For example, if you run ...
[baseMVA, bus, gen, branch, success, et] = ...
runpf(casename, mpopt, 'output.txt', 'solvedcase');
... or ...
[baseMVA, bus, gen, gencost, branch, f, success, et] = ...
runopf(casename, mpopt, 'output.txt', 'solvedcase');
... then the pretty-printed output is stored in a file called
'output.txt' and the solved case file is in 'solvedcase.m'. The
results are also in the bus, gen and branch matrices. If you define
the column index labels as follows ...
[PQ, PV, REF, NONE, BUS_I, BUS_TYPE, PD, QD, GS, BS, BUS_AREA, VM, ...
VA, BASE_KV, ZONE, VMAX, VMIN, LAM_P, LAM_Q, MU_VMAX, MU_VMIN] =
idx_bus;
[GEN_BUS, PG, QG, QMAX, QMIN, VG, MBASE, GEN_STATUS, PMAX, PMIN, ...
MU_PMAX, MU_PMIN, MU_QMAX, MU_QMIN, PC1, PC2, QC1MIN, QC1MAX, ...
QC2MIN, QC2MAX, RAMP_AGC, RAMP_10, RAMP_30, RAMP_Q, APF] = idx_gen;
[F_BUS, T_BUS, BR_R, BR_X, BR_B, RATE_A, RATE_B, RATE_C, ...
TAP, SHIFT, BR_STATUS, PF, QF, PT, QT, MU_SF, MU_ST, ...
ANGMIN, ANGMAX, MU_ANGMIN, MU_ANGMAX] = idx_brch;
... then you can easily access any of the solution values. For
example, the voltage magnitudes and angles are in bus(:, VM) and
bus(:, VA), the real and reactive power generation is in gen(:, PG)
and gen(:, QG), the real and reactive power flows are in branch(:,
PF), branch(:, QF) and branch(:, PT), branch(:, QT). If you ran the
OPF the nodal prices for real power are in bus(:, LAM_P), etc, etc.
Type, 'help idx_bus' to see what the various columns of the bus matrix
are. Similarly, for 'idx_gen' and 'idx_brch'.
--
Ray Zimmerman
Senior Research Associate
428-B Phillips Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645
On Feb 5, 2008, at 10:00 AM, Ray Zimmerman wrote:
All of the top level programs (runpf, runopf, etc.) can store the
solution data in their return values. (See 'help runpf' or 'help
runopf' for the details of the return values). Please, also have a
look at the manual which describes where it stores the solution data
in the bus, branch and gen matrices.
--
Ray Zimmerman
Senior Research Associate
428-B Phillips Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645
On Feb 5, 2008, at 8:19 AM, Silas Stephen wrote:
Hi,
I am Silas Stephen doing my research in the area of research.
I would like to know how to retrieve the datas we need after the
program has been run.
Please help as early as possible.
With regards,
D.Silas Stephen.M.E., (Ph.d)
Mobile: +919884477596
In God I Trust