mp.xt_legacy_dcline
- class mp.xt_legacy_dcline
Bases:
mp.extension
mp.xt_legacy_dcline
- MATPOWER extension to add legacy DC line elements.For AC and DC power flow, continuation power flow, and optimial power flow problems, adds a new element type:
'legacy_dcline'
- legacy DC line
No changes are required for the task or container classes, so only the
..._element_classes
methods are overridden.The set of data model element classes depends on the task, with each OPF class inheriting from the corresponding class used for PF and CPF.
The set of network model element classes depends on the formulation, specifically whether cartesian or polar representations are used for voltages.
And the set of mathematical model element classes depends on both the task and the formulation.
- mp.xt_legacy_dcline Methods:
dmc_element_classes()
- add a class to data model converter elementsdm_element_classes()
- add a class to data model elementsnm_element_classes()
- add a class to network model elementsmm_element_classes()
- add a class to mathematical model elements
See the Customizing and Extensions sections in the MATPOWER Developer’s Manual for more information, and specifically the Element Classes section and the Element Class Modifiers table for details on element class modifiers.
See also
mp.extension
.- Method Summary
- dmc_element_classes(dmc_class, fmt, mpopt)
Add a class to data model converter elements.
For
'mpc2
data formats, adds the classes:
- dm_element_classes(dm_class, task_tag, mpopt)
Add a class to data model elements.
For
'PF'
and'CPF'
tasks, adds the class:For
'OPF'
tasks, adds the class:
- nm_element_classes(nm_class, task_tag, mpopt)
Add a class to network model elements.
For DC formulations, adds the class:
For AC cartesian voltage formulations, adds the class:
For AC polar voltage formulations, adds the class:
- mm_element_classes(mm_class, task_tag, mpopt)
Add a class to mathematical model elements.
For
'PF'
and'CPF'
tasks, adds the class:mp.mme_legacy_dcline_pf_dc
(DC formulation) ormp.mme_legacy_dcline_pf_ac
(AC formulation)
For
'OPF'
tasks, adds the class:mp.mme_legacy_dcline_opf_dc
(DC formulation) ormp.mme_legacy_dcline_opf_ac
(AC formulation)