function [ output_args ] = NormalizedResiduals(x,sigma,PDi,QDi,Volt0,mPD,mQD) PD=x(1:length(PDi)); QD=x(length(PDi)+1:length(PDi)+length(QDi)); SEVolt=x(length(PDi)+length(QDi)+1:length(PDi)+length(QDi)+length(Volt0)); mNum=length(PD)+length(QD)+length(SEVolt); %Á¿²âÁ¿ÊýÁ¿ % H=[eye(mNum),zeros(mNum,length(Volt0));]; H=[eye(mNum)]; R=sigma*eye(mNum); G=H'*inv(R)*H; K=H*inv(G)*H'*inv(R); S=eye(mNum)-K; omega=S*R; r=[mPD(PDi)-PD;mQD(QDi)-QD;Volt0'-SEVolt]; normR=abs(r)./diag(omega); maxR=max(normR); end