I’m not sure what you mean by “save losses” and “50 PF iteration”. If you mean 
something like record the value of total branch active power losses for 50 
different power flow runs, then you could do something like the following:

losses = zeros(50, 1);
mpc = loadcase(<your_base_case_name>);
for k = 1:50
    <update some parameter in mpc>
    r = runpf(mpc);
    losses(k) = sum(get_losses(r));
end

Then the losses will be stored in the losses vector.

   Ray



> On Feb 12, 2016, at 1:41 PM, Fereshteh Moghateli <[email protected]> 
> wrote:
> 
> hi community
> how to save losses in matpower in for example 50 PF iteration?

Reply via email to