把PQQG作为常数加入潮流方程中。

添加了很多统计函数。
This commit is contained in:
facat
2013-01-23 21:27:33 +08:00
parent e96ebb226d
commit 4944e38cbd
17 changed files with 256 additions and 176 deletions

View File

@@ -15,19 +15,20 @@ tPU=sparse(GenU(:,2));%
tQU=sparse(PVQU(:,1));%
tPL=sparse(GenL(:,2));%
tQL=sparse(PVQL(:,1));%
PG(PGi)=(tPU+tPL)/2;
wPG=0*ones(size(PGi,1),1);
wQG=0*ones(size(PVi,1),0);
wPG=0;
wQG=0;
%randInt=randperm(size(Loadi,1));
%randPDind=randInt(1:10);
randPDind=0;
wPD=20*ones(size(Loadi,1),1);
wQD=0;
wPD=0/.05^2*ones(size(Loadi,1),1);
% wPD([2 7])=0;
wQD=0/.05^2*ones(size(Loadi,1),1);
% wQD([2 7])=0;
%wD(randPDind)=0;%
%wD(7)=0;
% wD(11)=0;
PD=1*PD0;
PD=0.5*PD0;
%powerFacter=0.98;
%QD=PD*sqrt((1-powerFacter^2)/powerFacter^2);
QD=QD0;
QD=.5*QD0;
end