No, those numbers are not included in the results structure, but they are 
trivial to compute …

r = rundcpf('mycasefile');
Pd = total_load(r.bus, r.gen);
define_constants;
Pg = sum( r.gen(r.gen(:, GEN_STATUS) > 0 & ~isload(r.gen), PG) );

For the DC OPF, which uses a lossless model, total Pd and Pg should always be 
equal.

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




On Nov 14, 2012, at 12:04 PM, "Calvo, Jose" <[email protected]> wrote:

> Dear Professor Zimmerman,
>  
> I’m currently running dc power flows in Matpower 4.1. I would like to know if 
> the structure results includes the aggregated load and generation across the 
> system (as printed in Matlab screen).
>  
> Thank you very much for your support.
> Jose
>  
>  

Reply via email to