original.not modified.

This commit is contained in:
facat
2012-05-22 11:33:21 +08:00
commit cb34aec845
83 changed files with 13475 additions and 0 deletions

13
solvefun.m Normal file
View File

@@ -0,0 +1,13 @@
function[Uangle,U] = solvefun(Busnum,Jacob,PQ,Uangle,U)
%**************************************************************************
% :
%
% 2010.12
%**************************************************************************
%%
PQ = sparse(PQ);
X = (Jacob\-PQ')';
%%
Uangle = Uangle+X(1:Busnum); %
U = U+U.*X(Busnum+1:end); %
end