From 570808f747df7aadacc3b21e8303097548a92433 Mon Sep 17 00:00:00 2001 From: "dugg@lab-desk" Date: Sun, 25 May 2014 11:38:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=8F=98=E4=BA=86=E4=B8=80=E4=B8=8BVb?= =?UTF-8?q?i,PDbi,QDbi=E7=9A=84=E5=88=9D=E5=80=BC=EF=BC=8C=E6=94=B6?= =?UTF-8?q?=E6=95=9B=E6=AC=A1=E6=95=B0=E5=8F=98=E4=B8=BA14~15=E6=AC=A1?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dugg@lab-desk --- OPF.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OPF.m b/OPF.m index cc068d5..3b3c2c2 100644 --- a/OPF.m +++ b/OPF.m @@ -56,9 +56,9 @@ mPD=PD0; mQD=QD0; mVolt=rVolt.*(1+normrnd(0,sigma,length(rVolt),1))'; bigM=10; -Vbi=sparse(ones(Busnum,1)); -PDbi=sparse(ones(length(Loadi),1)); -QDbi=sparse(ones(length(Loadi),1)); +Vbi=sparse(0.5*ones(Busnum,1)); +PDbi=sparse(0.5*ones(length(Loadi),1)); +QDbi=sparse(0.5*ones(length(Loadi),1)); while(abs(Gap)>Precision) if KK>kmax break;