In short, yes, to everything you are trying to do.
I would personally put 2 generators at each bus (2 rows in the gen table with
the same bus number), one for the distributed generation and the other to
represent the dispatchable portio of the load. I’d combine the fixed portion of
the load and the fixed injection from the solar PV (assuming it is not
curtailable) into a net load number to put in the PD, QD columns of the bus
matrix. No need to use the load2disp() function at all unless you find it
useful just to initially create the entries in the gen and gencost matrices for
you.
Ray
> On Dec 8, 2018, at 3:23 PM, Cody Rooks <[email protected]> wrote:
>
> Hello,
>
> I'm sure the answers to these questions are buried somewhere between the user
> manuals and the email archives, but I'm hoping that if I can clearly define
> my problem here I may be able to get the information I'm after more
> efficiently.
>
> I'd like to solve an ACOPF of the 33-bus distribution system that has
> flexible demand at every bus except the root bus, and has some distributed
> generation at certain buses. There will also be solar PV injections at select
> buses. In other words, one bus could be composed of: fixed demand,
> dispatchable demand, fixed generation and dispatchable generation.
>
> The solar I understand I can represent as a generation source with 0 cost and
> defined, equal upper/lower bounds. I understand that I can place a DG with
> the usual mpc.gen and mpg.gencost, and I know that I can change fixed load to
> dispatchable via the load2disp() function.
>
> My questions are:
> Can I have all three fixed generation, dispatchable generation and
> dispatchable load at the same bus and, if so, how does one implement this in
> MATPOWER's case structure?
> Is it possible to have a portion of the load, as opposed to all of it, made
> dispatchable? And if so, how would I implement this?
> Thank you,
>
> Cody