mp.dm_converter_mpc2_legacy

class mp.dm_converter_mpc2_legacy

Bases: mp.dm_converter_mpc2

mp.dm_converter_mpc2_legacy - Legacy MATPOWER data model converter for MATPOWER case v2.

Adds to mp.dm_converter_mpc2 the ability to handle legacy user customization.

mp.dm_converter_mpc2_legacy Methods:

See also mp.dm_converter, mp.dm_converter_mpc2, mp.task_opf_legacy.

Method Summary
legacy_user_mod_inputs(dm, mpopt, dc)

Handle pre-processing of inputs related to legacy user-defined variables, costs, and constraints. This includes optional mpc fields A, l, u, N, fparm, H1, Cw, z0, zl, zu and user_constraints.

legacy_user_nln_constraints(dm, mpopt)

Handle pre-processing of inputs related to legacy user-defined non-linear constraints, specifically optional mpc fields user_constraints.nle and user_constraints.nli.

Called by legacy_user_mod_inputs() method.