mp.dme_gen

class mp.dme_gen

Bases: mp.dm_element

mp.dme_gen - Data model element for generator.

Implements the data element model for generator elements.

Adds the following columns in the main data table, found in the tab property:

Name

Type

Description

bus

integer

bus ID (uid)

vm_setpoint

double

voltage magnitude setpoint (p.u.)

pg_lb

double

active power output lower bound (MW)

pg_ub

double

active power output upper bound (MW)

qg_lb

double

reactive power output lower bound (MVAr)

qg_ub

double

reactive power output upper bound (MVAr)

pg

double

active power output (MW)

qg

double

reactive power output (MVAr)

startup_cost_cold

double

cold startup cost (USD)

pc1

double

lower active power output of PQ capability curve (MW)

pc2

double

upper active power output of PQ capability curve (MW)

qc1_lb

double

lower bound on reactive power output at pc1 (MVAr)

qc1_ub

double

upper bound on reactive power output at pc1 (MVAr)

qc2_lb

double

lower bound on reactive power output at pc2 (MVAr)

qc2_ub

double

upper bound on reactive power output at pc2 (MVAr)

Property Summary
bus

bus index vector (all gens)

bus_on

vector of indices into online buses for gens that are on

pg_start

initial active power (p.u.) for gens that are on

qg_start

initial reactive power (p.u.) for gens that are on

vm_setpoint

generator voltage setpoint for gens that are on

pg_lb

active power lower bound (p.u.) for gens that are on

pg_ub

active power upper bound (p.u.) for gens that are on

qg_lb

reactive power lower bound (p.u.) for gens that are on

qg_ub

reactive power upper bound (p.u.) for gens that are on

Method Summary
name()
label()
labels()
cxn_type()
cxn_idx_prop()
main_table_var_names()
export_vars()
export_vars_offline_val()
have_cost()
initialize(dm)
update_status(dm)
apply_vm_setpoint(dm)
build_params(dm)
violated_q_lims(dm, mpopt)
isload(idx)
pp_have_section_sum(mpopt, pp_args)
pp_data_sum(dm, rows, out_e, mpopt, fd, pp_args)
pp_have_section_det(mpopt, pp_args)
pp_get_headers_det(dm, out_e, mpopt, pp_args)
pp_get_footers_det(dm, out_e, mpopt, pp_args)
pp_data_row_det(dm, k, out_e, mpopt, fd, pp_args)