Mat_G=[
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;
PDbi;
QDbi;
];
Signed-off-by: dugg@lab-desk <dugg@lab-desk>
10 lines
281 B
Matlab
10 lines
281 B
Matlab
function deltF=func_deltF(PG,QG,PVi,PGi,wPG,wQG,wPD,wQD,PG0,QG0,PD0,PD,QD,QD0,Busnum,Loadi)
|
|
deltF=[sparse(length(Loadi),1);
|
|
sparse(length(Loadi),1);
|
|
sparse(2*Busnum,1);
|
|
sparse(ones(Busnum,1));
|
|
sparse(ones(length(Loadi),1));
|
|
sparse(ones(length(Loadi),1))
|
|
];
|
|
|
|
end |