|
|
|
|
@@ -4,10 +4,10 @@ function [JMeasurement,AME_Volt,AME_VAngle,AME_PD,AME_QD,AME_mVolt,AME_mPD,AME_m
|
|
|
|
|
close all
|
|
|
|
|
clc
|
|
|
|
|
clear
|
|
|
|
|
lineZ=readLineZ('E:\算例\modified-feeder69\lineParameter.txt');
|
|
|
|
|
lineZ=readLineZ('modified-feeder69\lineParameter.txt');
|
|
|
|
|
[ fsY0, fsY1, fsY2,phaseASpotLoadP,phaseBSpotLoadP,phaseCSpotLoadP ...
|
|
|
|
|
phaseASpotLoadQ,phaseBSpotLoadQ,phaseCSpotLoadQ,setIJ,nodeNum,Balance,phaseABCY ...
|
|
|
|
|
cap]=dataRead(lineZ,'E:\算例\modified-feeder69\data.txt');
|
|
|
|
|
cap]=dataRead(lineZ,'modified-feeder69\data.txt');
|
|
|
|
|
a=exp(1j*2*pi/3);
|
|
|
|
|
Tp2f=1/3*[1 1 1;
|
|
|
|
|
1 a a^2;
|
|
|
|
|
@@ -316,12 +316,13 @@ wV0i=wV0i(Loadi);
|
|
|
|
|
% matlabpool local 3
|
|
|
|
|
|
|
|
|
|
%% 不同量测配置
|
|
|
|
|
noLoadi=[1,8,10,12];
|
|
|
|
|
% noLoadi=[1:3:max(Loadi)];
|
|
|
|
|
% noLoadi=[1,8,10,12];
|
|
|
|
|
noLoadi=[1:4:max(Loadi)];
|
|
|
|
|
noLoadi=Loadi(1:6:end);
|
|
|
|
|
% noLoadi=[1,19];
|
|
|
|
|
% noLoadi=[4,3,2,5,6,7,11,14,22];
|
|
|
|
|
noLoadi=Loadi;
|
|
|
|
|
% noLoadi=[1];
|
|
|
|
|
noLoadi=[5];
|
|
|
|
|
wI0r(ismember(Loadi,noLoadi))=1e100000;
|
|
|
|
|
wI0i(ismember(Loadi,noLoadi))=1e100000;
|
|
|
|
|
wI1r(ismember(Loadi,noLoadi))=1e100000;
|
|
|
|
|
@@ -445,14 +446,14 @@ JMeasurement=sum(sum((( abs(mVoltABCV)-abs(SEVoltpABC) )./ abs(mVoltABCV)./sigma
|
|
|
|
|
Busnum=busNum;
|
|
|
|
|
mCount=Busnum*3+length(Loadi)*3*2;
|
|
|
|
|
%估计量质量
|
|
|
|
|
AME_Volt=sum(sum(abs( abs(rVoltABCV)-abs(SEVoltpABC))));
|
|
|
|
|
AME_VAngle=sum(sum(abs( angle(rVoltABCV)-angle(SEVoltpABC))));
|
|
|
|
|
AME_PD=sum(sum(abs(real(SEThreeLoad-rThreeLoad(:,Loadi)))));
|
|
|
|
|
AME_QD=sum(sum(abs(imag(SEThreeLoad-rThreeLoad(:,Loadi)))));
|
|
|
|
|
AME_Volt=sum(sum(abs( abs(rVoltABCV)-abs(SEVoltpABC))))/size(rVoltABCV,1)/size(rVoltABCV,2);
|
|
|
|
|
AME_VAngle=sum(sum(abs( angle(rVoltABCV)-angle(SEVoltpABC))))/size(rVoltABCV,1)/size(rVoltABCV,2);
|
|
|
|
|
AME_PD=sum(sum(abs(real(SEThreeLoad-rThreeLoad(:,Loadi)))))/length(Loadi)/3;
|
|
|
|
|
AME_QD=sum(sum(abs(imag(SEThreeLoad-rThreeLoad(:,Loadi)))))/length(Loadi)/3;
|
|
|
|
|
%计算与量测值的
|
|
|
|
|
AME_mVolt=sum(sum(abs( abs(mVoltABCV)-abs(rVoltABCV))));
|
|
|
|
|
AME_mPD=sum(sum(abs(real(rThreeLoad(:,Loadi)-mThreeLoad(:,Loadi)))));
|
|
|
|
|
AME_mQD=sum(sum(abs(imag(rThreeLoad(:,Loadi)-mThreeLoad(:,Loadi)))));
|
|
|
|
|
AME_mVolt=sum(sum(abs( abs(mVoltABCV)-abs(rVoltABCV))))/size(rVoltABCV,1)/size(rVoltABCV,2);
|
|
|
|
|
AME_mPD=sum(sum(abs(real(rThreeLoad(:,Loadi)-mThreeLoad(:,Loadi)))))/length(Loadi)/3;
|
|
|
|
|
AME_mQD=sum(sum(abs(imag(rThreeLoad(:,Loadi)-mThreeLoad(:,Loadi)))))/length(Loadi)/3;
|
|
|
|
|
%无偏估计
|
|
|
|
|
% AME_Volt=abs(rVoltABCV)-abs(SEVoltpABC);
|
|
|
|
|
% AME_VAngle= ( (( angle(rVoltABCV)-angle(SEVoltpABC))));
|
|
|
|
|
|