更换了约束表达形式

Signed-off-by: facat <dugg@21cn.com>
This commit is contained in:
facat
2013-04-17 16:05:40 +08:00
parent c8406a43c0
commit fd65438b98
7 changed files with 41 additions and 21 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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