ORNL / ORNL/ExaGO

Changes to pflowout.m, opflowout.m

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.