Dear Stefanie Aebi,
Hi. As far as I know, the objective function in ORPD is "loss minimization"
and loss minimization is nothing else than Pg minimization (marginal active
power cost) for each generator. I believe you don't need to change the
objective function formulation, subsequently first and second derivatives.
Instead, follow the instruction in FAQs. Set the coefficients as follows in
generator cost data and leave the generators constraints unchanged to have
a feasible optimization problem.

%% An example of generator cost data for loss minimization
% 1 startup shutdown         n x1 y1 ... xn yn
% 2 startup shutdown  n c(n-1) ... c0
mpc.gencost = [
2 0               0                     2 *1*           *0*;
2 0               0                     2 *1 *          *0*;
2 0               0                     2 *1*           *0*;
...
...
...
];

I hope it helps,
Ehsan

On Wed, Mar 28, 2018 at 3:43 PM, Stefanie Aebi <[email protected]>
wrote:

> Dear MATPOWER friends
>
> I am trying to adjust the standard OPF formulation of MATPOWER so that I
> can use it for optimal reactive power dispatch (ORPD). That is, I would
> like to includ reactive power generation cost and active power losses cost
> in the objective function.
>
> I set cost for Pg to zero and set Pmin = Pg =  Pmax for all apart the
> slack bus because I only want to optimize reactive power dispatch. However,
> how do I include the losses then?
>
> I‘ve read in the FAQs that losses are implicitely minimized by minimizing
> overall generation - however, could anyone give me a hint on how to
> minimize active power losses without optimizing Pg? I could of course just
> keep the limits Pmin = Pg = Pmax, but would the optimization then return
> correct results?
>
> Thanks in advance for your help!
>
> Stefanie
>
>

Reply via email to