The reactive power cost functions are specified by adding another set of ng 
rows to the gencost matrix. If you want to know the total reactive costs at the 
solution, you can do it something like this.

define_constants;
mpc = loadcase(‘mycase’);
results = runopf(mpc);
ng = size(mpc.gen, 1);
per_gen_costQ = totcost(mpc.gencost(ng+1:2*ng, :), results.gen(:, QG));
total_costQ = sum(costQ);

-- 
Ray Zimmerman
Senior Research Associate
B30 Warren Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645



On Mar 4, 2014, at 2:54 PM, Sashireka Appalasamy 
<[email protected]> wrote:

> Dear Dr. Zimmerman,
> 
> From the MATPOWER manual it is seen that the standard AC OPF  model considers 
> reactive power as part of the cost, hence could I know where could I obtain 
> the reactive power cost details/data? 
> 
> Sincerely,
> Sashi
> 
> 
> On Wed, Mar 5, 2014 at 3:23 AM, Sashireka Appalasamy 
> <[email protected]> wrote:
> Dear Dr. Zimmerman,
> 
> Could I know how could I obtain the reactive branch flow using MATPOWER? and 
> also is rate A used as the limit of branch flows  for both real and apparent 
> power?
> 
> Sincerely,
> Sashi
> 
> 

Reply via email to