It sounds to me like you simply need to run power flow and you want to treat DG as a specified P and Q, as opposed to specifying P and V as is normally done for conventional generation. If so, I would suggest simply adding them as negative loads (P and Q) to the bus matrix as opposed to trying to add them to the gen matrix.
Ray -- Ray Zimmerman Senior Research Associate B30 Warren Hall, Cornell University, Ithaca, NY 14853 phone: (607) 255-9645 On Nov 13, 2013, at 10:29 AM, 小柳拓也 <[email protected]> wrote: > Thanks Ray > > But I only use runpf.m as power flow calculation tool. > I insert distributed generator at optimal location and optimal size in > my study. > These two factors are treated by matpower using manual appendix B. > For example when inserting 100MW DG at bus2, I change "mpc.bus(2,BUS_ > TYPE)=2, mpc.gen(,PG)=100...". > > Journal I have read decide optimal location, optimal size and "optimal > DG power factor", but in manual appendix B how to change power factor of > generator is not written. > > I want to optimize location , size and power factor. > Can matpower treat power factor of generator? > > regards, > > ----- Original Message ----- >> If you mean that you would like to constrain the power factor of a > distributed generator to remain constant as it gets redispatched by the > OPF, then, yes, it is possible. You will have to add a user-defined > linear equality constraint for each distributed generator. This is > already done for dispatchable loads, so you could probably re-use some > of the code in makeAvl.m (see also lines 168 and 245 of opf_setup.m). > You’ll also want to become familiar with extending the OPF formulation > as described in sections 5.3 and 6 of the User’s Manual). >> >> -- >> Ray Zimmerman >> Senior Research Associate >> B30 Warren Hall, Cornell University, Ithaca, NY 14853 >> phone: (607) 255-9645 >> >> >> >> On Nov 13, 2013, at 5:08 AM, 小柳拓也 <[email protected]> > wrote: >> >>> Hello, >>> >>> I have a question about power factor. >>> >>> I have read many journal about distributed generator insertion. >>> >>> Journal I have read treat power factor of distributed generator. >>> >>> I want to treat power factor of distributed generator, but how to > treat >>> power factor of distributed generator is not written in matpower's >>> manual. >>> >>> On matpower, can treating power factor of distributed generator be >>> possible? >>> >>> If that is possible, please tell me how to treat power factor of >>> distributed generator. >>> >>> Regards, >>> >>> >>> Takuya Koyanagi >>> [email protected] >>> >>> >>> >>> >>> >>> >>> >> >> > > > > >
