13 lines
396 B
Mathematica
13 lines
396 B
Mathematica
|
|
function [ out_arg ] = equ(this, x )
|
|||
|
|
%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);
|
|||
|
|
out_arg=[real(PQ(this.zerosInjectionIndex));imag(PQ(this.zerosInjectionIndex));];
|
|||
|
|
|
|||
|
|
out_arg=[out_arg;x(this.Busnum+this.Balance)];
|
|||
|
|
end
|
|||
|
|
|