1.用这个参数
2.电压分布的函数单独提出来 Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
parent
f301fe4953
commit
b3410ff033
|
|
@ -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
|
||||
|
|
@ -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
3
OPF.m
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
function [ output_args ] = VoltDistribution( CV4 )
|
||||
hist(CV4)
|
||||
xlabel('电压/p.u');
|
||||
ylabel('数量/个');
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue