2013-04-14 21:58:12 +08:00
|
|
|
|
function [ out_arg,this ] = equ(this, x )
|
2013-04-14 19:40:35 +08:00
|
|
|
|
%EQU Summary of this function goes here
|
|
|
|
|
|
% Detailed explanation goes here
|
|
|
|
|
|
SEVolt=x(1:this.Busnum);
|
|
|
|
|
|
SEVAngel=x(this.Busnum+1:2*this.Busnum);
|
|
|
|
|
|
cmpSEV=SEVolt.*exp(1j*SEVAngel); %<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹ
|
|
|
|
|
|
PQ=diag(cmpSEV)*conj(this.cmpY*cmpSEV);
|
2013-04-14 21:58:12 +08:00
|
|
|
|
YAngle=sparse(this.r,this.c,SEVAngel(this.r)-SEVAngel(this.c)-this.Yangle,this.Busnum,this.Busnum);
|
|
|
|
|
|
PQ1=diag(SEVolt)*(this.Y.*cos(YAngle))*SEVolt;
|
|
|
|
|
|
PQ2=diag(SEVolt)*(this.Y.*sin(YAngle))*SEVolt;
|
|
|
|
|
|
% out_arg=[real(PQ(this.zerosInjectionIndex));imag(PQ(this.zerosInjectionIndex));];
|
|
|
|
|
|
out_arg=[PQ1(this.zerosInjectionIndex);PQ2(this.zerosInjectionIndex);];
|
2013-04-14 19:40:35 +08:00
|
|
|
|
out_arg=[out_arg;x(this.Busnum+this.Balance)];
|
2013-04-14 21:58:12 +08:00
|
|
|
|
out_arg=full(out_arg);
|
|
|
|
|
|
this.mnle=zeros(2*length(this.zerosInjectionIndex)+1,1);
|
|
|
|
|
|
this.mnlrhs=this.mnle;
|
2013-04-14 19:40:35 +08:00
|
|
|
|
end
|
|
|
|
|
|
|