@@ -1,7 +1,7 @@
|
||||
function [ output_args ] = Geteb( this )
|
||||
function [ output_args ] = Getcl( this )
|
||||
%BE Summary of this function goes here
|
||||
% Detailed explanation goes here
|
||||
output_args=this.eb;
|
||||
output_args=this.cl;
|
||||
|
||||
end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
function [ output_args ] = Getgle( this )
|
||||
function [ output_args ] = Getcu( this )
|
||||
%GLE Summary of this function goes here
|
||||
% Detailed explanation goes here
|
||||
output_args=this.gle;
|
||||
output_args=this.cu;
|
||||
|
||||
end
|
||||
|
||||
@@ -17,8 +17,8 @@ classdef Opti
|
||||
c=NaN;
|
||||
PG=NaN;
|
||||
QG=NaN;
|
||||
gle=NaN;%opti toolbox大于小于等于
|
||||
eb=NaN;%等式、不等式约束右边的值
|
||||
cl=NaN;%opti toolbox大于小于等于
|
||||
cu=NaN;%等式、不等式约束右边的值
|
||||
Balance=NaN;
|
||||
end
|
||||
|
||||
|
||||
@@ -24,8 +24,11 @@ VMatrix=sparse(r,c,VAngel(r)-VAngel(c)-Angel,busNum,busNum);
|
||||
dP=PG-PD_-diag(Volt)*(Y.*cos(VMatrix))*Volt;
|
||||
dQ=QG-QD_-diag(Volt)*(Y.*spfun(@sin,VMatrix))*Volt;
|
||||
output_args=[dP;dQ;VAngel(Balance)];
|
||||
%% 开始增加不等式约束-电压\PD\QD
|
||||
%电压不等式约束
|
||||
|
||||
output_args=full(output_args);
|
||||
this.gle=zeros(length(output_args),1);
|
||||
this.eb=this.gle;
|
||||
this.cu=zeros(length(output_args),1);
|
||||
this.cl=this.cu;
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user