不等式约束是这样的:
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:
9
FormG.m
9
FormG.m
@@ -1,10 +1,13 @@
|
||||
function Mat_G=FormG(Volt,PVi,PGi,PG,QG,PD,QD,Loadi,Vbi)
|
||||
function Mat_G=FormG(Volt,PD,QD,Loadi,bigM,mVolt,rVolt,sigma,Vbi,PDbi)
|
||||
|
||||
Mat_G=[
|
||||
sparse(PD(Loadi));
|
||||
sparse(PD(Loadi))-0.001;
|
||||
sparse(QD(Loadi));
|
||||
Volt';
|
||||
Volt';
|
||||
sparse(QD(Loadi))-0.001;
|
||||
Volt'-mVolt'-bigM*Vbi-0.03;
|
||||
Volt'-mVolt'+bigM*Vbi+0.03;
|
||||
Vbi;
|
||||
% PDbi;
|
||||
];
|
||||
end
|
||||
Reference in New Issue
Block a user