pes2014-wronglowervoltagebound/ObjectiveFun.m

5 lines
236 B
Mathematica
Raw Normal View History

function [out_arg]=ObjectiveFun(PG,PG0,PGi,QG,QG0,PVi,PD,PD0,QD,QD0,wPG,wQG,wPD,wQD,Loadi)
t4=wPD.*((PD(Loadi)-PD0(Loadi)).*(PD(Loadi)-PD0(Loadi)));
t5=wQD.*((QD(Loadi)-QD0(Loadi)).*(QD(Loadi)-QD0(Loadi)));
2013-01-21 22:52:03 +08:00
out_arg= sum(t4)+sum(t5);
end