Skip to content

Changes to pflowout.m, opflowout.m #1

@tsybinae

Description

@tsybinae

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions