See FAQ #1 <https://www.pserc.cornell.edu/matpower/#lossminimization> regarding the first objective. For the second objective, you will need to specify a user-defined objective function based on deviations from the desired voltage profile. For example, specifying something like …
define_constants; mpc = loadcase(<your_case>); nb = size(mpc.bus, 1); ng = size(mpc.gen, 1); mpc.N = sparse(1:nb, nb+1:2*nb, 1, nb, 2*nb+2*ng); mpc.fparm = ones(nb, 1) * [2 1 0 1]; mpc.Cw = ones(nb, 1); mpc.gencost = ones(ng, 1) * [2 0 0 2 0 0]; % zero out gen costs … should put a quadratic cost on the deviations of voltage magnitudes from 1 p.u. See sections 6.3.3 and 7.1.3 in the latest User’s Manual <https://www.pserc.cornell.edu/matpower/docs/MATPOWER-manual-7.0b1.pdf>. Here N selects the voltage magnitudes, the second column of fparm defines the offset (\hat{r}) of 1 p.u., and the first column of fparm specifies the quadratic option (as in Figure 6-2). Hope this helps, Ray > On May 24, 2019, at 8:56 AM, hind lamini <[email protected]> wrote: > > Dear Dr. Ray, > > Thanks for your reply, I want to use Optimal reactive power dispatch > (ORPD) to minimiz two objectives funtions: Real power loss and voltage > deviation of the network. > > Regards, > > 2019-05-23 22:58 UTC+01:00, Ray Zimmerman <[email protected]>: >> What is the objective you would like to optimize for ORPD? >> >> Ray >> >>> On May 23, 2019, at 11:34 AM, hind lamini <[email protected]> wrote: >>> >>> Dear Dr. Ray, >>> I want to use Optimal reactive power dispatch (ORPD) with matpower >>> command runopf. Please guide me if how it can be possible to replace >>> OPF with ORPD. >>> Regards, >>> >> >> >> >
