Changes to pflowout.m, opflowout.m
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 15
- Forks
- 9
- Avg merge
- 4h 34m
- Merged PRs (30d)
- 1
Description
The current output has the following contents
function mpc = opflowout
%%----- Power Flow Data -----%%
%% system MVA base
mpc.baseMVA = xx;
%% OPF objective
mpc.obj = xx;
%% OPF convergence status
mpc.converged = xx;
%% bus data
% bus_i type Pd Qd Gs Bs area Vm Va baseKV zone Vmax Vmin mult_Pmis mult_Qmis Pslack Qslack
mpc.bus = [xx];
%% generator data
% bus Pg Qg Qmax Qmin Vg mBase status Pmax Pmin Pc1 Pc2 Qc1min Qc1max Qc2min Qc2max ramp_agc ramp_10 ramp_30 ramp_q apf pgs
mpc.gen = [xx];
%% branch data
% fbus tbus r x b rateA rateB rateC ratio angle status angmin angmax Pf Qf Pt Qt
mpc.branch = [xx];
%% generator cost data
% 2 startup shutdown n c(n-1) ... c0
% Using quadratic cost curves only
mpc.gencost = [xx];
%% summary data
mpc.summary_stats = [
**% Nbus Ngen NgenON Nline NlineON Nload GenPCap GenTotalP GenTotalQ GenPCapON LoadTotP LoadTotalQ LoadShedP LoadShedQ**
xx
];
%% solve time
mpc.solve_time = xx;
In the present form, the header of summary data is inside the data block, which makes it different from any other data block. Request to reorder data and header to match the structure of other data blocks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by opening pflowout.m and opflowout.m and compare the summary data block with the other data blocks shown in the issue. Move the summary header to match the surrounding structure, then verify that the generated output keeps the header outside the data matrix and remains valid MATLAB.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matlab
- Domain
- data
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 57/100