1.用这个参数

2.电压分布的函数单独提出来

Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
dmy@lab 2015-04-21 16:03:11 +08:00
parent f301fe4953
commit b3410ff033
5 changed files with 15 additions and 6 deletions

View File

@ -35,5 +35,6 @@ ss=Volt(Branchi)'.^2.*(Branchg)
%%
dispTransloss=[Transi Transj real(deltTransS)*100 imag(deltTransS)*100];
dispTransloss=sortrows(dispTransloss,-3);
full(dispTransloss);
dispLineloss=full(dispLineloss);
dispTransloss=full(dispTransloss);
end

View File

@ -20,6 +20,7 @@ while 1
% totallossSum=totallossSum+totalloss;
[totalloss,JSM]=OPF('E://906_2729823_2012-09-06/newFIle20.txt');
totallossSum=totallossSum+totalloss;
totallossSum*4
JSM_Sum=JSM_Sum+JSM;
loopN=loopN+1;
% totallossSum=totallossSum*4;

3
OPF.m
View File

@ -166,7 +166,8 @@ setIneq=0;
fprintf('%f(MW )\n',full(totalLoss));
fprintf('线 %f\n',full(totalLoss/sum(PG)));
%% 线
%Lineloss(Linei,Linej,Liner,Linex,Lineb,Transfori,Transforj,Transforr,Transforx,Transfork0,Volt,UAngel);
% Lineloss(Linei,Linej,Liner,Linex,Lineb,Transfori,Transforj,Transforr,Transforx,Transfork0,Volt,UAngel);
% Lineloss(Linei,Linej,Liner,Linex,Lineb,Transfori,Transforj,Transforr,Transforx,Branchi,Branchg,Branchb,k0,Volt,Angle)
thesis=thesis.AddPDQDPGQG(PD(Loadi),QD(Loadi),PG(Balance),QG(PVi));
end

View File

@ -20,10 +20,10 @@ wQG=0;
%randInt=randperm(size(Loadi,1));
%randPDind=randInt(1:10);
randPDind=0;
wPD=zeros(size(Loadi,1),1);
wPD(1:2:end)=0;
wQD=zeros(size(Loadi,1),1);
wQD(1:2:end)=0;
wPD=ones(size(Loadi,1),1);
% wPD(1:2:end)=0;
wQD=ones(size(Loadi,1),1);
% wQD(1:2:end)=0;
%wD(randPDind)=0;%
%wD(7)=0;
% wD(11)=0;

6
VoltDistribution.m Normal file
View File

@ -0,0 +1,6 @@
function [ output_args ] = VoltDistribution( CV4 )
hist(CV4)
xlabel('/p.u');
ylabel('/');
end