runpf runs the power flow --> finding voltage magnitude and angles for given 
values of P and Q (simplified explanation)
runopf runs the optimal power flow --> optimizing the power flowing in the grid 
to achieve a minimized generation cost (simplified explanation)
Check the matpower manual for more detail.

Losses can be calculated using both power flow and optimal power flow.
You can obtain losses using get_losses() function.
From: [email protected] 
[mailto:[email protected]] On Behalf Of Roshani Thapa
Sent: Tuesday, 18 July, 2017 10:34 AM
To: [email protected]
Subject: difference between runpf() and runopf()

What is the difference between runpf() and runopf()? i am using GA for an 
optimisation problem. i want to calculate the 24hours I2R loss(which is my 
fitness function) of a radial feeder using forecasted hourly load profile. Then 
Running matlab GA to minimise I2R loss will result a hourly switching schedule 
of feeder capacitors. which fxn do i need to call for power flow runpf() or 
runopf() to calculate loss inside fitness function?
--
With Regards,
Roshani Thapa
Electrical Engineer,
Chuhawat Niyantran Mahasakha,
Nepal Electricity Authority.

Reply via email to