Dear MATPOWER team, Greetings!
Can the current MATPOWER OPF version accommodate a dispatchable component that can act as a load or a generator? For example, a microgrid that imports power to a utility grid can be modeled as a dispatchable "generator" from the perspective of the utility; similarly, the same microgrid may also export power from the utility grid and can be modeled as a dispatchable "load" from the perspective of the utility. Can the above be implemented in MATPOWER by specifying a generator output ranging from a minimum injection equal to the negative of the largest possible "load" up to a maximum injection equal to the largest possible "generation"? For instance, -5MW <= P <= 5MW with an associated cost of 20 dollars per MWh. Cheers, Ronald
