优化稀疏化。删掉了很多注释。

Signed-off-by: facat <dmy@dmy-PC.(none)>
This commit is contained in:
facat
2012-05-24 21:06:34 +08:00
parent 9c5239bd1e
commit f2781393a7
11 changed files with 37 additions and 173 deletions

View File

@@ -1,5 +1,5 @@
function [Busnum,Balance,PQstandard,Precision,Linei,Linej,Liner,Linex,Lineb,kmax,Transfori ,...
Transforj,Transforr,Transforx,Transfork0,Branchi,Branchb,Pointpoweri,PG,QG,PD,QD,PVi,PVu,Gen,GenU,GenL,GenC,CenterA,PGi,PVQU,PVQL] = openfile(FileName)
Transforj,Transforr,Transforx,Transfork0,Branchi,Branchb,Pointpoweri,PG,QG,PD,QD,PVi,PVu,GenU,GenL,GenC,CenterA,PGi,PVQU,PVQL] = openfile(FileName)
%**************************************************************************
% :
%
@@ -48,6 +48,11 @@ PG=PG/Base;
QG=QG/Base;
PD=PD/Base;
QD=QD/Base;
%%
PD=sparse(PD);
QD=sparse(QD);
PG=sparse(PG);
QG=sparse(QG);
%% pv
PVi = PV(:,1); % PV
PVu = PV(:,2); % PV