mp.mme_legacy_dcline_opf

class mp.mme_legacy_dcline_opf

Bases: mp.mme_legacy_dcline

mp.mme_legacy_dcline_opf - Math model element abstract base class for legacy DC line for OPF.

Math model element abstract base class for legacy DC line elements for OPF problems.

Implements methods to add costs, including piecewise linear cost variables, and to form an interior initial point for cost variables.

Property Summary
cost

struct for cost parameters with fields:

  • poly - polynomial costs for active power, struct with fields:

    • have_quad_cost

    • i0, i1, i2, i3

    • k, c, Q

  • pwl - piecewise linear costs for actve power, struct with fields:

    • n, i, A, b

Method Summary
build_cost_params(dm)
add_vars(mm, nm, dm, mpopt)
add_constraints(mm, nm, dm, mpopt)
add_costs(mm, nm, dm, mpopt)
interior_x0(mm, nm, dm, x0)