加入了几个时间的比较

Signed-off-by: facat <facat@ipso.laptop>
This commit is contained in:
facat 2014-04-23 09:46:18 +08:00
parent 8163082770
commit 35b4aaf821
1 changed files with 7 additions and 3 deletions

10
run.m
View File

@ -74,12 +74,13 @@ while(k<=kmax && maxD> EPS)
If0(Balance)=0;
If2(Balance)=0;
%Vf0=fsY0\If0;
%[fsY0L,fsY0U,fsY0P,fsY0Q,fsY0R]
Vf0=fsY0Q*(fsY0U\(fsY0L\(fsY0P*(fsY0R\If0))));
%Vf2=fsY2\If2;
Vf2=fsY2Q*(fsY2U\(fsY2L\(fsY2P*(fsY2R\If2))));
fprintf('%f\n',toc);
end
fprintf('Fortiscue %f\n',toc);
FortiscueToc=toc;
fprintf('Fortiscue %f\n',FortiscueToc);
Vf1=Vmf1.*exp(1j*Vaf1);
%%
(Vf0.*conj(fsY00*Vf0)+Vf1.*conj(fsY11*Vf1)+Vf2.*conj(fsY22*Vf2))*3;
@ -143,7 +144,10 @@ jaco=Jacobi(Balance3P,busNum*3,QGi3P,Vp3m,YdotSinVolt,YdotCosVolt,diag_Volt_Ydot
[dV, dVangle]=Solv(busNum*3,jaco,dP,dQ);%
[Vp3m, Vp3a]=Modify(Vp3m,Vp3a,dV,dVangle,1);
fprintf(' %d %f\n',k,full(maxD));
fprintf('%f\n',toc);
end
fprintf(' %f\n',toc);
NewtonToc=toc;
fprintf(' %f\n',NewtonToc);
fprintf('%f\n',NewtonToc/FortiscueToc);