stateestimation-ipm-forcomp.../TransPower.m

12 lines
477 B
Matlab

function [ output_args ] = TransPower( newwordParameter,cmpY,Volt,VAngel )
%TRANSPOWER Summary of this function goes here
% Detailed explanation goes here
transI=newwordParameter.trans.transI;
transJ=newwordParameter.trans.transJ;
cmpSEV=Volt.*exp(1j*VAngel); %¸´Êýµçѹ
% cmpY=sparse(r,c,Y.*(1j*YAngel),length(Volt),length(Volt));
cmpSETransI=(cmpSEV(transI)-cmpSEV(transJ)).*cmpY(sub2ind(size(cmpY),transI,transJ));
output_args=real(cmpSEV(transI).*conj(cmpSETransI));
end