不等式约束是这样的:
sparse(PD(Loadi));
sparse(PD(Loadi))-0.001;
sparse(QD(Loadi));
sparse(QD(Loadi))-0.001;
Volt'-mVolt'-bigM*Vbi-0.03;
Volt'-mVolt'+bigM*Vbi+0.03;
Vbi;
Signed-off-by: dugg@lab-desk <dugg@lab-desk>
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
function deltF=func_deltF(PG,QG,PVi,PGi,wPG,wQG,wPD,wQD,PG0,QG0,PD0,PD,QD,QD0,Busnum,Loadi)
|
||||
t3=2*wPD.*(PD(Loadi)-PD0(Loadi));
|
||||
t4=2*wQD.*(QD(Loadi)-QD0(Loadi));
|
||||
deltF=[sparse(t3);
|
||||
sparse(t4);
|
||||
deltF=[sparse(length(Loadi),1);
|
||||
sparse(length(Loadi),1);
|
||||
sparse(2*Busnum,1);
|
||||
sparse(Busnum,1);
|
||||
sparse(ones(Busnum,1));
|
||||
%sparse(ones(length(Loadi),1));
|
||||
];
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user