约束QD 。

This commit is contained in:
unknown
2012-11-16 22:47:06 +08:00
parent 941ffc39f6
commit 28cb11581a
5 changed files with 11 additions and 9 deletions

View File

@@ -1,13 +1,14 @@
function deltF=func_deltF(PG,QG,PVi,PGi,wPG,wQG,wPD,PG0,QG0,PD0,PD,Busnum,Loadi)
function deltF=func_deltF(PG,QG,PVi,PGi,wPG,wQG,wPD,wQD,PG0,QG0,PD0,PD,QD,QD0,Busnum,Loadi)
t1=2*wPG.*(PG(PGi) - PG0(PGi) );
t2=2*wQG.*(QG(PVi) - QG0(PVi) );
t3=2*wPD.*(PD(Loadi)-PD0(Loadi));
t4=2*wQD.*(QD(Loadi)-QD0(Loadi));
deltF=[
sparse(t1);
sparse(t2);
sparse(t3);
sparse(length(Loadi),1);
sparse(t4);
sparse(2*Busnum,1);
];