mp.dme_legacy_dcline

class mp.dme_legacy_dcline

Bases: mp.dm_element

mp.dme_legacy_dcline - Data model element for legacy DC line.

Implements the data element model for legacy DC line elements, with linear line losses.

\(p_\mathrm{loss} = \param{l}_0 + \param{l}_1 p_\mathrm{fr}\)

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

Name

Type

Description

bus_fr

integer

bus ID (uid) of “from” bus

bus_to

integer

bus ID (uid) of “to” bus

loss0

double

\(\param{l}_0\), constant term of loss function (MW)

loss1

double

\(\param{l}_1\), linear coefficient of loss function (MW/MW)

vm_setpoint_fr

double

per unit “from” bus voltage magnitude setpoint

vm_setpoint_to

double

per unit “to” bus voltage magnitude setpoint

p_fr_lb

double

lower bound on MW flow at “from” port

p_fr_ub

double

upper bound on MW flow at “from” port

q_fr_lb

double

lower bound on MVAr injection into “from” bus

q_fr_ub

double

upper bound on MVAr injection into “from” bus

q_to_lb

double

lower bound on MVAr injection into “to” bus

q_to_ub

double

upper bound on MVAr injection into “to” bus

p_fr

double

MW flow at “from” end (“from” –> “to”)

q_fr

double

MVAr injection into “from” bus

p_to

double

MW flow at “to” end (“from” –> “to”)

q_to

double

MVAr injection into “to” bus

Property Summary
fbus

bus index vector for “from” port (port 1) (all DC lines)

tbus

bus index vector for “to” port (port 2) (all DC lines)

fbus_on

vector of “from” bus indices into online buses (in-service DC lines)

tbus_on

vector of “to” bus indices into online buses (in-service DC lines)

loss0

constant term of loss function (p.u.) (in-service DC lines)

loss1

linear coefficient of loss function (in-service DC lines)

p_fr_start

initial active power (p.u.) at “from” port (in-service DC lines)

p_to_start

initial active power (p.u.) at “to” port (in-service DC lines)

q_fr_start

initial reactive power (p.u.) at “from” port (in-service DC lines)

q_to_start

initial reactive power (p.u.) at “to” port (in-service DC lines)

vm_setpoint_fr

from bus voltage magnitude setpoint (p.u.) (in-service DC lines)

vm_setpoint_to

to bus voltage magnitude setpoint (p.u.) (in-service DC lines)

p_fr_lb

p.u. lower bound on active power flow at “from” port (in-service DC lines)

p_fr_ub

p.u. upper bound on active power flow at “from” port (in-service DC lines)

q_fr_lb

p.u. lower bound on reactive power flow at “from” port (in-service DC lines)

q_fr_ub

p.u. upper bound on reactive power flow at “from” port (in-service DC lines)

q_to_lb

p.u. lower bound on reactive power flow at “to” port (in-service DC lines)

q_to_ub

p.u. upper bound on reactive power flow at “to” port (in-service DC lines)

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_setpoints(dm)
build_params(dm)
pp_have_section_sum(mpopt, pp_args)
pp_data_sum(dm, rows, out_e, mpopt, fd, pp_args)
pp_get_headers_det(dm, out_e, mpopt, pp_args)
pp_have_section_det(mpopt, pp_args)
pp_data_row_det(dm, k, out_e, mpopt, fd, pp_args)