2014-10-19 17:02:55 +08:00
|
|
|
|
function deltF=func_deltF(V1measurement,wV1r,wV1i,I1measurement,wI1r,wI1i,busNum,fsY11,Loadi,V1r,V1i,I1r,I1i)
|
2014-10-19 11:42:44 +08:00
|
|
|
|
%t1=PG(setdiff(PVi,Balance));
|
|
|
|
|
|
% t2=Volt'*Volt;
|
|
|
|
|
|
% t3=real(GB).*cos(AngleIJMat)+imag(GB).*sin(AngleIJMat);
|
|
|
|
|
|
% t4=t2.*t3;
|
|
|
|
|
|
% t5=sum(t4,2);
|
|
|
|
|
|
% PBal=t5(Balance);
|
|
|
|
|
|
% PPG=([PQ(1),PBal])';%<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>취<EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>
|
|
|
|
|
|
%%
|
2014-05-21 22:26:48 +08:00
|
|
|
|
deltF=[
|
2014-10-19 14:50:04 +08:00
|
|
|
|
%zeros(busNum*2,1);
|
2014-10-19 17:02:55 +08:00
|
|
|
|
sparse(Loadi,1,-2*(real(V1measurement)-V1r(Loadi))./wV1r./wV1r,busNum,1);
|
|
|
|
|
|
sparse(Loadi,1,-2*(imag(V1measurement)-V1i(Loadi))./wV1i./wV1i,busNum,1);
|
|
|
|
|
|
%-2*( [real(Imeasurement);imag(Imeasurement)]-[I1r;I1i]);
|
|
|
|
|
|
sparse(1:length(Loadi),1,-2*(real(I1measurement)-V1r(Loadi))./wI1r./wI1r,length(Loadi),1);
|
|
|
|
|
|
sparse(1:length(Loadi),1,-2*(imag(I1measurement)-V1i(Loadi))./wI1i./wI1i,length(Loadi),1);
|
2014-05-21 22:26:48 +08:00
|
|
|
|
];
|
2014-10-19 11:42:44 +08:00
|
|
|
|
|
2014-05-21 22:26:48 +08:00
|
|
|
|
end
|