@@ -38,27 +38,35 @@ this.cl=zeros(length(output_args),1);
|
||||
%% 开始增加不等式约束-电压\PD\QD
|
||||
%电压不等式约束
|
||||
output_args=[output_args;Volt];
|
||||
this.cu=[this.cu;1.07*ones(length(Volt),1)];%9节点
|
||||
this.cl=[this.cl;0.93*ones(length(Volt),1)];%9节点
|
||||
% this.cu=[this.cu;1.00*ones(length(Volt),1)];
|
||||
% this.cl=[this.cl;0.90*ones(length(Volt),1)];
|
||||
% this.cu=[this.cu;1.07*ones(length(Volt),1)];%9节点
|
||||
% this.cl=[this.cl;0.93*ones(length(Volt),1)];%9节点
|
||||
this.cu=[this.cu;1.00*ones(length(Volt),1)];
|
||||
this.cl=[this.cl;0.90*ones(length(Volt),1)];
|
||||
%% PD
|
||||
rPD=this.rPD;
|
||||
output_args=[output_args;PD];
|
||||
% PDU=[0.124;0.315;0.5;1;1;0.5;0.63;0.4];%原始数据
|
||||
% PDU=[0.63;0.4;0.5;1;0.8;1;0.63;0.4];%偏差比较大
|
||||
this.cu=[this.cu;1.2*rPD];
|
||||
this.cl=[this.cl;0.8*rPD];
|
||||
this.cu=[this.cu;PDU];
|
||||
this.cl=[this.cl;0*PDU];
|
||||
%Generate values from the uniform distribution on the interval [a, b].
|
||||
global loadFlag;
|
||||
if loadFlag==0
|
||||
r =-0.201 + (-0.01-(-0.2)).*rand(length(rPD),1);
|
||||
else
|
||||
|
||||
end
|
||||
|
||||
this.cu=[this.cu;(r+1.4).*rPD];
|
||||
this.cl=[this.cl;(r+1).*rPD];
|
||||
% this.cu=[this.cu;PDU];
|
||||
% this.cl=[this.cl;0*PDU];
|
||||
%% QD
|
||||
rQD=this.rQD;
|
||||
output_args=[output_args;QD];
|
||||
QDU=PDU;
|
||||
% this.cu=[this.cu;1.2*rQD];
|
||||
% this.cl=[this.cl;0.8*rQD];
|
||||
this.cu=[this.cu;QDU];
|
||||
this.cl=[this.cl;0*QDU];
|
||||
% QDU=PDU;
|
||||
this.cu=[this.cu;(r+1.4).*rQD];
|
||||
this.cl=[this.cl;(r+1).*rQD];
|
||||
% this.cu=[this.cu;QDU];
|
||||
% this.cl=[this.cl;0*QDU];
|
||||
%% 稠密化
|
||||
output_args=full(output_args);
|
||||
this.cu=full(this.cu);
|
||||
|
||||
19
@Opti/equ.m
19
@Opti/equ.m
@@ -47,16 +47,27 @@ rPD=this.rPD;
|
||||
output_args=[output_args;PD];
|
||||
% PDU=[0.124;0.315;0.5;1;1;0.5;0.63;0.4];%原始数据
|
||||
% PDU=[0.63;0.4;0.5;1;0.8;1;0.63;0.4];%偏差比较大
|
||||
this.cu=[this.cu;1.2*rPD];
|
||||
this.cl=[this.cl;0.8*rPD];
|
||||
%Generate values from the uniform distribution on the interval [a, b].
|
||||
global loadFlag;
|
||||
if loadFlag==1
|
||||
r=load('rLD');
|
||||
r=r.r;
|
||||
|
||||
else
|
||||
%r=-0.2;
|
||||
r =-0.201 + (-0.001-(-0.2)).*rand(length(rPD),1);
|
||||
end
|
||||
|
||||
this.cu=[this.cu;(r+1.4).*rPD];
|
||||
this.cl=[this.cl;(r+1).*rPD];
|
||||
% this.cu=[this.cu;PDU];
|
||||
% this.cl=[this.cl;0*PDU];
|
||||
%% QD
|
||||
rQD=this.rQD;
|
||||
output_args=[output_args;QD];
|
||||
% QDU=PDU;
|
||||
this.cu=[this.cu;1.2*rQD];
|
||||
this.cl=[this.cl;0.8*rQD];
|
||||
this.cu=[this.cu;(r+1.4).*rQD];
|
||||
this.cl=[this.cl;(r+1).*rQD];
|
||||
% this.cu=[this.cu;QDU];
|
||||
% this.cl=[this.cl;0*QDU];
|
||||
%% 稠密化
|
||||
|
||||
Reference in New Issue
Block a user