parent
b57e14a499
commit
b3892896ec
|
|
@ -22,7 +22,7 @@ Init_L=1*sparse(ones(RestraintCount,1));
|
||||||
Init_U=1*sparse(ones(RestraintCount,1));
|
Init_U=1*sparse(ones(RestraintCount,1));
|
||||||
Init_Y=sparse(2*busNum,1);%µÈÊ½Ô¼Êø³Ë×Ó
|
Init_Y=sparse(2*busNum,1);%µÈÊ½Ô¼Êø³Ë×Ó
|
||||||
Gap=(Init_L'*Init_Z-Init_U'*Init_W);
|
Gap=(Init_L'*Init_Z-Init_U'*Init_W);
|
||||||
kmax=100;
|
kmax=30;
|
||||||
isSetBound=0;
|
isSetBound=0;
|
||||||
largerBound=1;
|
largerBound=1;
|
||||||
realBound=0;
|
realBound=0;
|
||||||
|
|
@ -70,7 +70,7 @@ while(abs(Gap)>1e-4)
|
||||||
lower=ones(length(Loadi)*2,1);
|
lower=ones(length(Loadi)*2,1);
|
||||||
% if abs(Gap)<1 || isSetBound==1
|
% if abs(Gap)<1 || isSetBound==1
|
||||||
|
|
||||||
if abs(Gap)<1000
|
if abs(Gap)<0.01
|
||||||
largerBound=0;
|
largerBound=0;
|
||||||
realBound=1;
|
realBound=1;
|
||||||
end
|
end
|
||||||
|
|
|
||||||
2
run.m
2
run.m
|
|
@ -294,7 +294,7 @@ noLoadi=[1,8,10,12];
|
||||||
noLoadi=[1:2:max(Loadi)];
|
noLoadi=[1:2:max(Loadi)];
|
||||||
noLoadi=[4,3,2,5,6,7,11,14,22];
|
noLoadi=[4,3,2,5,6,7,11,14,22];
|
||||||
noLoadi=Loadi;
|
noLoadi=Loadi;
|
||||||
% noLoadi=[];
|
noLoadi=[];
|
||||||
wI0r(ismember(Loadi,noLoadi))=1e100000;
|
wI0r(ismember(Loadi,noLoadi))=1e100000;
|
||||||
wI0i(ismember(Loadi,noLoadi))=1e100000;
|
wI0i(ismember(Loadi,noLoadi))=1e100000;
|
||||||
wI1r(ismember(Loadi,noLoadi))=1e100000;
|
wI1r(ismember(Loadi,noLoadi))=1e100000;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue