diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch.m new file mode 120000 index 00000000..4a9e106b --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_branch.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf.m new file mode 120000 index 00000000..fac2e52c --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_branch_opf.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf_ac.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf_ac.m new file mode 120000 index 00000000..a13f8d03 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf_ac.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_branch_opf_ac.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf_acc.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf_acc.m new file mode 120000 index 00000000..2927ebfc --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf_acc.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_branch_opf_acc.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf_acp.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf_acp.m new file mode 120000 index 00000000..1518c308 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf_acp.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_branch_opf_acp.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf_dc.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf_dc.m new file mode 120000 index 00000000..d9b7e892 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_opf_dc.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_branch_opf_dc.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_pf_ac.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_pf_ac.m new file mode 120000 index 00000000..9fe5007e --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_pf_ac.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_branch_pf_ac.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_pf_dc.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_pf_dc.m new file mode 120000 index 00000000..14813cbc --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_branch_pf_dc.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_branch_pf_dc.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus.m new file mode 120000 index 00000000..ec90000e --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_bus.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_opf_ac.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_opf_ac.m new file mode 120000 index 00000000..a8492c84 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_opf_ac.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_bus_opf_ac.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_opf_acc.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_opf_acc.m new file mode 120000 index 00000000..237526b6 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_opf_acc.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_bus_opf_acc.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_opf_acp.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_opf_acp.m new file mode 120000 index 00000000..4c858746 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_opf_acp.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_bus_opf_acp.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_opf_dc.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_opf_dc.m new file mode 120000 index 00000000..88c60771 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_opf_dc.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_bus_opf_dc.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_pf_acc.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_pf_acc.m new file mode 120000 index 00000000..ffc51c33 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_pf_acc.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_bus_pf_acc.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_pf_acp.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_pf_acp.m new file mode 120000 index 00000000..60183253 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_pf_acp.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_bus_pf_acp.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_pf_dc.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_pf_dc.m new file mode 120000 index 00000000..6287c4ca --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_bus_pf_dc.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_bus_pf_dc.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen.m new file mode 120000 index 00000000..4a27fb27 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_gen.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_opf.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_opf.m new file mode 120000 index 00000000..39af418c --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_opf.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_gen_opf.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_opf_ac.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_opf_ac.m new file mode 120000 index 00000000..b33a50e5 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_opf_ac.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_gen_opf_ac.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_opf_dc.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_opf_dc.m new file mode 120000 index 00000000..3b622341 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_opf_dc.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_gen_opf_dc.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_pf_ac.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_pf_ac.m new file mode 120000 index 00000000..c5765e7b --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_pf_ac.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_gen_pf_ac.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_pf_dc.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_pf_dc.m new file mode 120000 index 00000000..04ff828b --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_gen_pf_dc.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_gen_pf_dc.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_load.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_load.m new file mode 120000 index 00000000..aec863c6 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_load.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_load.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_load_cpf.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_load_cpf.m new file mode 120000 index 00000000..b5df450b --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_load_cpf.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_load_cpf.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_load_pf_ac.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_load_pf_ac.m new file mode 120000 index 00000000..bae54cb1 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_load_pf_ac.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_load_pf_ac.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_load_pf_dc.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_load_pf_dc.m new file mode 120000 index 00000000..81701522 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_load_pf_dc.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_load_pf_dc.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_shunt.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_shunt.m new file mode 120000 index 00000000..b9e43058 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_shunt.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_shunt.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_shunt_cpf.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_shunt_cpf.m new file mode 120000 index 00000000..22c184f6 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_shunt_cpf.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_shunt_cpf.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_shunt_pf_ac.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_shunt_pf_ac.m new file mode 120000 index 00000000..ea4b85a0 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_shunt_pf_ac.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_shunt_pf_ac.m \ No newline at end of file diff --git a/docs/sphinx/source/matlab-source/matpower/+mp/mme_shunt_pf_dc.m b/docs/sphinx/source/matlab-source/matpower/+mp/mme_shunt_pf_dc.m new file mode 120000 index 00000000..e3ef2326 --- /dev/null +++ b/docs/sphinx/source/matlab-source/matpower/+mp/mme_shunt_pf_dc.m @@ -0,0 +1 @@ +../../../../../../lib/+mp/mme_shunt_pf_dc.m \ No newline at end of file diff --git a/docs/sphinx/source/ref-manual/classes/index.rst b/docs/sphinx/source/ref-manual/classes/index.rst index 2c0da30d..b4d6e870 100644 --- a/docs/sphinx/source/ref-manual/classes/index.rst +++ b/docs/sphinx/source/ref-manual/classes/index.rst @@ -198,12 +198,42 @@ Elements :name: sec_math_model_element_classes mp/mm_element + mp/mme_branch_opf_ac + mp/mme_branch_opf_acc + mp/mme_branch_opf_acp + mp/mme_branch_opf_dc + mp/mme_branch_opf + mp/mme_branch_pf_ac + mp/mme_branch_pf_dc + mp/mme_branch + mp/mme_bus_opf_ac + mp/mme_bus_opf_acc + mp/mme_bus_opf_acp + mp/mme_bus_opf_dc + mp/mme_bus_pf_acc + mp/mme_bus_pf_acp + mp/mme_bus_pf_dc + mp/mme_bus + mp/mme_gen_opf_ac + mp/mme_gen_opf_dc + mp/mme_gen_opf + mp/mme_gen_pf_ac + mp/mme_gen_pf_dc + mp/mme_gen + mp/mme_load_cpf + mp/mme_load_pf_ac + mp/mme_load_pf_dc + mp/mme_load + mp/mme_shunt_cpf + mp/mme_shunt_pf_ac + mp/mme_shunt_pf_dc + mp/mme_shunt Miscellaneous Classes --------------------- -Could include description of this category of classes here. +:hl:`Include description of this category of classes here.` .. toctree:: :name: sec_misc_classes diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_branch.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_branch.rst new file mode 100644 index 00000000..b5781423 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_branch.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_branch +------------- + +.. autoclass:: mme_branch + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf.rst new file mode 100644 index 00000000..c4a5f9c8 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_branch_opf +----------------- + +.. autoclass:: mme_branch_opf + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf_ac.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf_ac.rst new file mode 100644 index 00000000..df5071a8 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf_ac.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_branch_opf_ac +-------------------- + +.. autoclass:: mme_branch_opf_ac + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf_acc.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf_acc.rst new file mode 100644 index 00000000..efbcd765 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf_acc.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_branch_opf_acc +--------------------- + +.. autoclass:: mme_branch_opf_acc + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf_acp.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf_acp.rst new file mode 100644 index 00000000..e5d76022 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf_acp.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_branch_opf_acp +--------------------- + +.. autoclass:: mme_branch_opf_acp + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf_dc.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf_dc.rst new file mode 100644 index 00000000..7adf5ba0 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_branch_opf_dc.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_branch_opf_dc +-------------------- + +.. autoclass:: mme_branch_opf_dc + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_branch_pf_ac.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_branch_pf_ac.rst new file mode 100644 index 00000000..8a930820 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_branch_pf_ac.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_branch_pf_ac +------------------- + +.. autoclass:: mme_branch_pf_ac + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_branch_pf_dc.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_branch_pf_dc.rst new file mode 100644 index 00000000..70afc974 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_branch_pf_dc.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_branch_pf_dc +------------------- + +.. autoclass:: mme_branch_pf_dc + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_bus.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_bus.rst new file mode 100644 index 00000000..c62e95e6 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_bus.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_bus +---------- + +.. autoclass:: mme_bus + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_bus_opf_ac.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_bus_opf_ac.rst new file mode 100644 index 00000000..cad11d62 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_bus_opf_ac.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_bus_opf_ac +----------------- + +.. autoclass:: mme_bus_opf_ac + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_bus_opf_acc.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_bus_opf_acc.rst new file mode 100644 index 00000000..16f5c860 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_bus_opf_acc.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_bus_opf_acc +------------------ + +.. autoclass:: mme_bus_opf_acc + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_bus_opf_acp.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_bus_opf_acp.rst new file mode 100644 index 00000000..c38051a7 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_bus_opf_acp.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_bus_opf_acp +------------------ + +.. autoclass:: mme_bus_opf_acp + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_bus_opf_dc.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_bus_opf_dc.rst new file mode 100644 index 00000000..6d29746b --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_bus_opf_dc.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_bus_opf_dc +----------------- + +.. autoclass:: mme_bus_opf_dc + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_bus_pf_acc.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_bus_pf_acc.rst new file mode 100644 index 00000000..c939f577 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_bus_pf_acc.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_bus_pf_acc +----------------- + +.. autoclass:: mme_bus_pf_acc + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_bus_pf_acp.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_bus_pf_acp.rst new file mode 100644 index 00000000..589a2136 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_bus_pf_acp.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_bus_pf_acp +----------------- + +.. autoclass:: mme_bus_pf_acp + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_bus_pf_dc.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_bus_pf_dc.rst new file mode 100644 index 00000000..17af2def --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_bus_pf_dc.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_bus_pf_dc +---------------- + +.. autoclass:: mme_bus_pf_dc + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_gen.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_gen.rst new file mode 100644 index 00000000..593a152a --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_gen.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_gen +---------- + +.. autoclass:: mme_gen + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_gen_opf.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_gen_opf.rst new file mode 100644 index 00000000..d1b6b029 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_gen_opf.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_gen_opf +-------------- + +.. autoclass:: mme_gen_opf + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_gen_opf_ac.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_gen_opf_ac.rst new file mode 100644 index 00000000..05cc0364 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_gen_opf_ac.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_gen_opf_ac +----------------- + +.. autoclass:: mme_gen_opf_ac + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_gen_opf_dc.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_gen_opf_dc.rst new file mode 100644 index 00000000..fdc45fc7 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_gen_opf_dc.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_gen_opf_dc +----------------- + +.. autoclass:: mme_gen_opf_dc + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_gen_pf_ac.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_gen_pf_ac.rst new file mode 100644 index 00000000..ebe1875d --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_gen_pf_ac.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_gen_pf_ac +---------------- + +.. autoclass:: mme_gen_pf_ac + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_gen_pf_dc.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_gen_pf_dc.rst new file mode 100644 index 00000000..e4ddedbc --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_gen_pf_dc.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_gen_pf_dc +---------------- + +.. autoclass:: mme_gen_pf_dc + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_load.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_load.rst new file mode 100644 index 00000000..7c094a44 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_load.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_load +----------- + +.. autoclass:: mme_load + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_load_cpf.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_load_cpf.rst new file mode 100644 index 00000000..a685ba0f --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_load_cpf.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_load_cpf +--------------- + +.. autoclass:: mme_load_cpf + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_load_pf_ac.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_load_pf_ac.rst new file mode 100644 index 00000000..885c1720 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_load_pf_ac.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_load_pf_ac +----------------- + +.. autoclass:: mme_load_pf_ac + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_load_pf_dc.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_load_pf_dc.rst new file mode 100644 index 00000000..9862beed --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_load_pf_dc.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_load_pf_dc +----------------- + +.. autoclass:: mme_load_pf_dc + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_shunt.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_shunt.rst new file mode 100644 index 00000000..550ac0ec --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_shunt.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_shunt +------------ + +.. autoclass:: mme_shunt + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_shunt_cpf.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_shunt_cpf.rst new file mode 100644 index 00000000..8e1ce7bd --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_shunt_cpf.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_shunt_cpf +---------------- + +.. autoclass:: mme_shunt_cpf + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_shunt_pf_ac.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_shunt_pf_ac.rst new file mode 100644 index 00000000..3bfc7ede --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_shunt_pf_ac.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_shunt_pf_ac +------------------ + +.. autoclass:: mme_shunt_pf_ac + :show-inheritance: + :members: diff --git a/docs/sphinx/source/ref-manual/classes/mp/mme_shunt_pf_dc.rst b/docs/sphinx/source/ref-manual/classes/mp/mme_shunt_pf_dc.rst new file mode 100644 index 00000000..7d45cfa2 --- /dev/null +++ b/docs/sphinx/source/ref-manual/classes/mp/mme_shunt_pf_dc.rst @@ -0,0 +1,10 @@ +.. automodule:: matpower.+mp + +:raw-html:`
` + +mp.mme_shunt_pf_dc +------------------ + +.. autoclass:: mme_shunt_pf_dc + :show-inheritance: + :members: diff --git a/lib/+mp/mme_branch.m b/lib/+mp/mme_branch.m index 426afb36..73d21dbf 100644 --- a/lib/+mp/mme_branch.m +++ b/lib/+mp/mme_branch.m @@ -1,7 +1,8 @@ classdef (Abstract) mme_branch < mp.mm_element +% mp.mme_branch - Math model element abstract base class for branch. % MATPOWER -% Copyright (c) 2021-2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2021-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,11 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function name = name(obj) + % name = 'branch'; end end %% methods diff --git a/lib/+mp/mme_branch_opf.m b/lib/+mp/mme_branch_opf.m index e672cb20..b1539943 100644 --- a/lib/+mp/mme_branch_opf.m +++ b/lib/+mp/mme_branch_opf.m @@ -1,7 +1,8 @@ classdef (Abstract) mme_branch_opf < mp.mme_branch +% mp.mme_branch_opf - Math model element abstract base class for branch for OPF. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,11 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function [A, l, u, i] = ang_diff_params(obj, dm, ignore) + % dme = obj.data_model_element(dm); %% from makeAang() @@ -51,6 +53,8 @@ end function [mu_vad_lb, mu_vad_ub] = ang_diff_prices(obj, mm, nme) + % + %% shadow prices on angle difference limits iang = mm.userdata.ang_diff_constrained_branch_idx; mu_vad_lb = zeros(nme.nk, 1); diff --git a/lib/+mp/mme_branch_opf_ac.m b/lib/+mp/mme_branch_opf_ac.m index cfb44c16..678263fc 100644 --- a/lib/+mp/mme_branch_opf_ac.m +++ b/lib/+mp/mme_branch_opf_ac.m @@ -1,7 +1,8 @@ classdef (Abstract) mme_branch_opf_ac < mp.mme_branch_opf +% mp.mme_branch_opf_ac - Math model element abstract base class for branch for AC OPF. % MATPOWER -% Copyright (c) 2021-2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2021-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = add_constraints(obj, mm, nm, dm, mpopt) + % + %% find branches with flow limits dme = obj.data_model_element(dm); nme = obj.network_model_element(nm); @@ -62,6 +65,7 @@ end function obj = data_model_update(obj, mm, nm, dm, mpopt) + % dme = obj.data_model_element(dm); nme = obj.network_model_element(nm); diff --git a/lib/+mp/mme_branch_opf_acc.m b/lib/+mp/mme_branch_opf_acc.m index a82e6bf6..8b0dc1a4 100644 --- a/lib/+mp/mme_branch_opf_acc.m +++ b/lib/+mp/mme_branch_opf_acc.m @@ -1,7 +1,8 @@ classdef mme_branch_opf_acc < mp.mme_branch_opf_ac +% mp.mme_branch_opf_acc - Math model element for branch for AC cartesian voltage OPF. % MATPOWER -% Copyright (c) 2021-2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2021-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % and Baljinnyam Sereeter, Delft University of Technology % @@ -10,11 +11,11 @@ % See https://matpower.org for more info. % properties -% name = 'branch'; -% end +% end %% properties methods function obj = add_constraints(obj, mm, nm, dm, mpopt) + % nme = obj.network_model_element(nm); %% call parent @@ -33,6 +34,8 @@ end function [mu_vad_lb, mu_vad_ub] = ang_diff_prices(obj, mm, nme) + % + %% shadow prices on angle difference limits iang = mm.userdata.ang_diff_constrained_branch_idx; mu_vad_lb = zeros(nme.nk, 1); diff --git a/lib/+mp/mme_branch_opf_acp.m b/lib/+mp/mme_branch_opf_acp.m index 76b121ef..256c5e41 100644 --- a/lib/+mp/mme_branch_opf_acp.m +++ b/lib/+mp/mme_branch_opf_acp.m @@ -1,7 +1,8 @@ classdef mme_branch_opf_acp < mp.mme_branch_opf_ac +% mp.mme_branch_opf_acp - Math model element for branch for AC polar voltage OPF. % MATPOWER -% Copyright (c) 2021-2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2021-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,11 +10,12 @@ % See https://matpower.org for more info. % properties -% name = 'branch'; -% end +% end %% properties methods function obj = add_constraints(obj, mm, nm, dm, mpopt) + % + %% call parent add_constraints@mp.mme_branch_opf_ac(obj, mm, nm, dm, mpopt); diff --git a/lib/+mp/mme_branch_opf_dc.m b/lib/+mp/mme_branch_opf_dc.m index 84effcf4..b4414d3d 100644 --- a/lib/+mp/mme_branch_opf_dc.m +++ b/lib/+mp/mme_branch_opf_dc.m @@ -1,7 +1,8 @@ classdef mme_branch_opf_dc < mp.mme_branch_opf +% mp.mme_branch_opf_dc - Math model element for branch for DC OPF. % MATPOWER -% Copyright (c) 2021-2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2021-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = add_constraints(obj, mm, nm, dm, mpopt) + % + %% find branches with flow limits dme = obj.data_model_element(dm); nme = obj.network_model_element(nm); @@ -41,6 +44,7 @@ end function obj = data_model_update(obj, mm, nm, dm, mpopt) + % dme = obj.data_model_element(dm); nme = obj.network_model_element(nm); diff --git a/lib/+mp/mme_branch_pf_ac.m b/lib/+mp/mme_branch_pf_ac.m index 73cdfcab..dec0942b 100644 --- a/lib/+mp/mme_branch_pf_ac.m +++ b/lib/+mp/mme_branch_pf_ac.m @@ -1,7 +1,8 @@ classdef mme_branch_pf_ac < mp.mme_branch +% mp.mme_branch_pf_ac - Math model element for branch for AC power flow. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% branch complex power flows pp = nm.get_idx('port'); S_fr = nm.soln.gs_(pp.i1.branch(1):pp.iN.branch(1)) * dm.base_mva; diff --git a/lib/+mp/mme_branch_pf_dc.m b/lib/+mp/mme_branch_pf_dc.m index 39ec26c8..eb016bc8 100644 --- a/lib/+mp/mme_branch_pf_dc.m +++ b/lib/+mp/mme_branch_pf_dc.m @@ -1,7 +1,8 @@ classdef mme_branch_pf_dc < mp.mme_branch +% mp.mme_branch_pf_dc - Math model element for branch for DC power flow. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% branch active power flows pp = nm.get_idx('port'); pl_fr = nm.soln.gp(pp.i1.branch(1):pp.iN.branch(1)) * dm.base_mva; diff --git a/lib/+mp/mme_bus.m b/lib/+mp/mme_bus.m index dc86bb63..a48ad4db 100644 --- a/lib/+mp/mme_bus.m +++ b/lib/+mp/mme_bus.m @@ -1,7 +1,8 @@ classdef (Abstract) mme_bus < mp.mm_element +% mp.mme_bus - Math model element abstract base class for bus. % MATPOWER -% Copyright (c) 2021-2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2021-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,11 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function name = name(obj) + % name = 'bus'; end end %% methods diff --git a/lib/+mp/mme_bus_opf_ac.m b/lib/+mp/mme_bus_opf_ac.m index 9e6dbb85..0a52f2f5 100644 --- a/lib/+mp/mme_bus_opf_ac.m +++ b/lib/+mp/mme_bus_opf_ac.m @@ -1,7 +1,8 @@ classdef (Abstract) mme_bus_opf_ac < mp.mme_bus +% mp.mme_bus_opf_ac - Math model element abstract base class for bus for AC OPF. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,11 +10,11 @@ % See https://matpower.org for more info. % properties -% name = 'bus'; -% end +% end %% properties methods function vm = interior_vm(obj, mm, nm, dm) + % %% return vm equal to avg of clipped limits dme = obj.data_model_element(dm); vm_ub = min(dme.vm_ub, 1.5); diff --git a/lib/+mp/mme_bus_opf_acc.m b/lib/+mp/mme_bus_opf_acc.m index 46e6afad..5d9bb4b4 100644 --- a/lib/+mp/mme_bus_opf_acc.m +++ b/lib/+mp/mme_bus_opf_acc.m @@ -1,7 +1,8 @@ classdef mme_bus_opf_acc < mp.mme_bus_opf_ac +% mp.mme_bus_opf_acc - Math model element for bus for AC cartesian voltage OPF. % MATPOWER -% Copyright (c) 2021-2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2021-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,11 +10,11 @@ % See https://matpower.org for more info. % properties -% name = 'bus'; -% end +% end %% properties methods function add_constraints(obj, mm, nm, dm, mpopt) + % dme = obj.data_model_element(dm); nme = obj.network_model_element(nm); @@ -47,6 +48,7 @@ function add_constraints(obj, mm, nm, dm, mpopt) end function x0 = interior_x0(obj, mm, nm, dm, x0) + % vv = mm.get_idx(); varef1 = mm.interior_va(nm, dm); vm = obj.interior_vm(mm, nm, dm); @@ -56,6 +58,8 @@ function add_constraints(obj, mm, nm, dm, mpopt) end function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% complex bus voltages nn = nm.get_idx('node'); V = nm.soln.v(nn.i1.bus:nn.iN.bus); diff --git a/lib/+mp/mme_bus_opf_acp.m b/lib/+mp/mme_bus_opf_acp.m index 7ecc411d..efe1b018 100644 --- a/lib/+mp/mme_bus_opf_acp.m +++ b/lib/+mp/mme_bus_opf_acp.m @@ -1,7 +1,8 @@ classdef mme_bus_opf_acp < mp.mme_bus_opf_ac +% mp.mme_bus_opf_acp - Math model element for bus for AC polar voltage OPF. % MATPOWER -% Copyright (c) 2021-2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2021-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,11 +10,11 @@ % See https://matpower.org for more info. % properties -% name = 'bus'; -% end +% end %% properties methods function x0 = interior_x0(obj, mm, nm, dm, x0) + % vv = mm.get_idx(); varef1 = mm.interior_va(nm, dm); vm = obj.interior_vm(mm, nm, dm); @@ -22,6 +23,8 @@ end function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% complex bus voltages nn = nm.get_idx('node'); V = nm.soln.v(nn.i1.bus:nn.iN.bus); diff --git a/lib/+mp/mme_bus_opf_dc.m b/lib/+mp/mme_bus_opf_dc.m index e16c045f..60f84912 100644 --- a/lib/+mp/mme_bus_opf_dc.m +++ b/lib/+mp/mme_bus_opf_dc.m @@ -1,7 +1,8 @@ classdef mme_bus_opf_dc < mp.mme_bus +% mp.mme_bus_opf_dc - Math model element for bus for DC OPF. % MATPOWER -% Copyright (c) 2021-2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2021-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,17 +10,19 @@ % See https://matpower.org for more info. % properties -% name = 'bus'; -% end +% end %% properties methods function x0 = interior_x0(obj, mm, nm, dm, x0) + % vv = mm.get_idx(); varef1 = mm.interior_va(nm, dm); x0(vv.i1.Va:vv.iN.Va) = varef1; %% angles set to 1st ref angle end function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% bus voltage angles nn = nm.get_idx('node'); va = nm.soln.v(nn.i1.bus:nn.iN.bus); diff --git a/lib/+mp/mme_bus_pf_acc.m b/lib/+mp/mme_bus_pf_acc.m index 850f8ed7..3fb05c0e 100644 --- a/lib/+mp/mme_bus_pf_acc.m +++ b/lib/+mp/mme_bus_pf_acc.m @@ -1,7 +1,8 @@ classdef mme_bus_pf_acc < mp.mme_bus +% mp.mme_bus_pf_acc - Math model element for bus for AC cartesian voltage power flow. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% complex bus voltages nn = nm.get_idx('node'); V = nm.soln.v(nn.i1.bus:nn.iN.bus); diff --git a/lib/+mp/mme_bus_pf_acp.m b/lib/+mp/mme_bus_pf_acp.m index 4b118f56..2f91c4d2 100644 --- a/lib/+mp/mme_bus_pf_acp.m +++ b/lib/+mp/mme_bus_pf_acp.m @@ -1,7 +1,8 @@ classdef mme_bus_pf_acp < mp.mme_bus +% mp.mme_bus_pf_acp - Math model element for bus for AC polar voltage power flow. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% complex bus voltages nn = nm.get_idx('node'); V = nm.soln.v(nn.i1.bus:nn.iN.bus); diff --git a/lib/+mp/mme_bus_pf_dc.m b/lib/+mp/mme_bus_pf_dc.m index a1e2b389..4b1c355c 100644 --- a/lib/+mp/mme_bus_pf_dc.m +++ b/lib/+mp/mme_bus_pf_dc.m @@ -1,7 +1,8 @@ classdef mme_bus_pf_dc < mp.mme_bus +% mp.mme_bus_pf_dc - Math model element for bus for DC power flow. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% bus voltage angles nn = nm.get_idx('node'); va = nm.soln.v(nn.i1.bus:nn.iN.bus); diff --git a/lib/+mp/mme_gen.m b/lib/+mp/mme_gen.m index 270333fa..b6255d0b 100644 --- a/lib/+mp/mme_gen.m +++ b/lib/+mp/mme_gen.m @@ -1,7 +1,8 @@ classdef (Abstract) mme_gen < mp.mm_element +% mp.mme_gen - Math model element abstract base class for generator. % MATPOWER -% Copyright (c) 2021-2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2021-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,11 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function name = name(obj) + % name = 'gen'; end end %% methods diff --git a/lib/+mp/mme_gen_opf.m b/lib/+mp/mme_gen_opf.m index ece62a05..d129fc37 100644 --- a/lib/+mp/mme_gen_opf.m +++ b/lib/+mp/mme_gen_opf.m @@ -1,7 +1,8 @@ classdef (Abstract) mme_gen_opf < mp.mme_gen +% mp.mme_gen_opf - Math model element abstract base class for generator for OPF. % MATPOWER -% Copyright (c) 2021-2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2021-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,21 +10,27 @@ % See https://matpower.org for more info. properties - cost %% struct for cost parameters with fields - %% .poly_p - polynomial costs for active power, - %% struct with fields: - %% .have_quad_cost - %% .i0, .i1, .i2, .i3 - %% .k, .c, .Q - %% .poly_q - polynomial costs for reactive power, - %% same struct as .poly_p - %% .pwl - piecewise linear costs for actve & reactive - %% struct with fields: - %% .n, .i, .A, .b + % struct for cost parameters with fields: + % + % - ``poly_p`` - polynomial costs for active power, struct with + % fields: + % + % - ``have_quad_cost`` + % - ``i0``, ``i1``, ``i2``, ``i3`` + % - ``k``, ``c``, ``Q`` + % - ``poly_q`` - polynomial costs for reactive power + % *(same struct as* ``poly_p`` *)* + % - ``pwl`` - piecewise linear costs for actve & reactive struct + % with fields: + % + % - ``n``, ``i``, ``A``, ``b`` + cost end methods function obj = add_vars(obj, mm, nm, dm, mpopt) + % + %% collect/construct all generator cost parameters obj.build_cost_params(dm); @@ -34,6 +41,8 @@ end function obj = add_costs(obj, mm, nm, dm, mpopt) + % + %% (quadratic) polynomial costs on Pg if obj.cost.poly_p.have_quad_cost mm.add_quad_cost('polPg', obj.cost.poly_p.Q, obj.cost.poly_p.c, obj.cost.poly_p.k, {'Pg'}); @@ -53,6 +62,7 @@ end function [f, df, d2f] = poly_cost_fcn(obj, xx, x_scale, cost, idx) + % x = xx{1}(idx) * x_scale; n = length(xx{1}); @@ -76,6 +86,8 @@ end function x0 = interior_x0(obj, mm, nm, dm, x0) + % + %% set gen cost variables to something feasible if obj.cost.pwl.n > 0 vv = mm.get_idx(); diff --git a/lib/+mp/mme_gen_opf_ac.m b/lib/+mp/mme_gen_opf_ac.m index 1393afc3..faa35ac7 100644 --- a/lib/+mp/mme_gen_opf_ac.m +++ b/lib/+mp/mme_gen_opf_ac.m @@ -1,7 +1,8 @@ classdef mme_gen_opf_ac < mp.mme_gen_opf +% mp.mme_gen_opf_ac - Math model element for generator for AC OPF. % MATPOWER -% Copyright (c) 2021, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2021-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,11 +10,12 @@ % See https://matpower.org for more info. % properties -% name = 'gen'; -% end +% end %% properties methods function obj = add_constraints(obj, mm, nm, dm, mpopt) + % + %% generator PQ capability curve constraints [Apqh, ubpqh, Apql, ubpql, Apqdata] = ... obj.pq_capability_constraint(dm.elements.gen, dm.base_mva); @@ -37,6 +39,8 @@ end function obj = add_costs(obj, mm, nm, dm, mpopt) + % + %% call parent add_costs@mp.mme_gen_opf(obj, mm, nm, dm, mpopt); @@ -56,8 +60,9 @@ end end - %% from makeApq() function [Ah, uh, Al, ul, data] = pq_capability_constraint(obj, dme, base_mva) + % from legacy :func:`makeApq` + gen = dme.tab(dme.on, :); %% data dimensions @@ -113,8 +118,9 @@ data.ipqh = ipqh; end - %% from hasPQcap() function TorF = has_pq_cap(obj, gen, upper_lower) + % from legacy :func:`hasPQcap` + %% default value if nargin < 3 upper_lower = 'B'; %% look at both top and bottom by default @@ -171,8 +177,9 @@ end end - %% from makeAvl() function [A, l, u] = disp_load_constant_pf_constraint(obj, dm) + % from legacy :func:`makeAvl` + dme = obj.data_model_element(dm); %% data dimensions @@ -229,11 +236,13 @@ end function build_cost_params(obj, dm) + % dme = obj.data_model_element(dm); obj.cost = dme.build_cost_params(dm, 0); end function obj = data_model_update(obj, mm, nm, dm, mpopt) + % dme = obj.data_model_element(dm); nme = obj.network_model_element(nm); diff --git a/lib/+mp/mme_gen_opf_dc.m b/lib/+mp/mme_gen_opf_dc.m index 490e272a..8e19f1bb 100644 --- a/lib/+mp/mme_gen_opf_dc.m +++ b/lib/+mp/mme_gen_opf_dc.m @@ -1,7 +1,8 @@ classdef mme_gen_opf_dc < mp.mme_gen_opf +% mp.mme_gen_opf_dc - Math model element for generator for DC OPF. % MATPOWER -% Copyright (c) 2021, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2021-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,11 +10,12 @@ % See https://matpower.org for more info. % properties -% name = 'gen'; -% end +% end %% properties methods function obj = add_constraints(obj, mm, nm, dm, mpopt) + % + %% piecewise linear costs if obj.cost.pwl.n mm.add_lin_constraint('ycon', obj.cost.pwl.A, [], obj.cost.pwl.b, {'Pg', 'y'}); @@ -24,11 +26,14 @@ end function build_cost_params(obj, dm) + % dme = obj.data_model_element(dm); obj.cost = dme.build_cost_params(dm, 1); end function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% generator active power ss = nm.get_idx('state'); pg = nm.soln.z(ss.i1.gen:ss.iN.gen) * dm.base_mva; diff --git a/lib/+mp/mme_gen_pf_ac.m b/lib/+mp/mme_gen_pf_ac.m index ffb6dc09..c3bb1c07 100644 --- a/lib/+mp/mme_gen_pf_ac.m +++ b/lib/+mp/mme_gen_pf_ac.m @@ -1,7 +1,8 @@ classdef mme_gen_pf_ac < mp.mme_gen +% mp.mme_gen_pf_ac - Math model element for generator for AC power flow. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% generator active power ss = nm.get_idx('state'); Sg = nm.soln.z(ss.i1.gen:ss.iN.gen) * dm.base_mva; diff --git a/lib/+mp/mme_gen_pf_dc.m b/lib/+mp/mme_gen_pf_dc.m index 960a92a0..fabeae56 100644 --- a/lib/+mp/mme_gen_pf_dc.m +++ b/lib/+mp/mme_gen_pf_dc.m @@ -1,7 +1,8 @@ classdef mme_gen_pf_dc < mp.mme_gen +% mp.mme_gen_pf_dc - Math model element for generator for DC power flow. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% generator active power ss = nm.get_idx('state'); pg = nm.soln.z(ss.i1.gen:ss.iN.gen) * dm.base_mva; diff --git a/lib/+mp/mme_load.m b/lib/+mp/mme_load.m index 6b256176..804447d7 100644 --- a/lib/+mp/mme_load.m +++ b/lib/+mp/mme_load.m @@ -1,7 +1,8 @@ classdef (Abstract) mme_load < mp.mm_element +% mp.mme_load - Math model element abstract base class for load. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,11 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function name = name(obj) + % name = 'load'; end end %% methods diff --git a/lib/+mp/mme_load_cpf.m b/lib/+mp/mme_load_cpf.m index 2bfd297c..f2d65113 100644 --- a/lib/+mp/mme_load_cpf.m +++ b/lib/+mp/mme_load_cpf.m @@ -1,7 +1,8 @@ classdef mme_load_cpf < mp.mme_load_pf_ac +% mp.mme_load_cpf - Math model element for load for CPF. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% call parent to compute injections data_model_update@mp.mme_load_pf_ac(obj, mm, nm, dm, mpopt); diff --git a/lib/+mp/mme_load_pf_ac.m b/lib/+mp/mme_load_pf_ac.m index 1e3962c3..b42aad1b 100644 --- a/lib/+mp/mme_load_pf_ac.m +++ b/lib/+mp/mme_load_pf_ac.m @@ -1,7 +1,8 @@ classdef mme_load_pf_ac < mp.mme_load +% mp.mme_load_pf_ac - Math model element for load for AC power flow. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% load complex power consumption pp = nm.get_idx('port'); S = nm.soln.gs_(pp.i1.load:pp.iN.load) * dm.base_mva; diff --git a/lib/+mp/mme_load_pf_dc.m b/lib/+mp/mme_load_pf_dc.m index 987238de..c435de69 100644 --- a/lib/+mp/mme_load_pf_dc.m +++ b/lib/+mp/mme_load_pf_dc.m @@ -1,7 +1,8 @@ classdef mme_load_pf_dc < mp.mme_load +% mp.mme_load_pf_dc - Math model element for load for DC power flow. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% load active power consumption pp = nm.get_idx('port'); P = nm.soln.gp(pp.i1.load:pp.iN.load) * dm.base_mva; diff --git a/lib/+mp/mme_shunt.m b/lib/+mp/mme_shunt.m index 7350fff7..3eeae5c9 100644 --- a/lib/+mp/mme_shunt.m +++ b/lib/+mp/mme_shunt.m @@ -1,7 +1,8 @@ classdef (Abstract) mme_shunt < mp.mm_element +% mp.mme_shunt - Math model element abstract base class for shunt. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,11 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function name = name(obj) + % name = 'shunt'; end end %% methods diff --git a/lib/+mp/mme_shunt_cpf.m b/lib/+mp/mme_shunt_cpf.m index d97f5a32..27bf15fc 100644 --- a/lib/+mp/mme_shunt_cpf.m +++ b/lib/+mp/mme_shunt_cpf.m @@ -1,7 +1,8 @@ classdef mme_shunt_cpf < mp.mme_shunt_pf_ac +% mp.mme_shunt_cpf - Math model element for shunt for CPF. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% call parent to compute injections data_model_update@mp.mme_shunt_pf_ac(obj, mm, nm, dm, mpopt); diff --git a/lib/+mp/mme_shunt_pf_ac.m b/lib/+mp/mme_shunt_pf_ac.m index b866cc0d..6380a112 100644 --- a/lib/+mp/mme_shunt_pf_ac.m +++ b/lib/+mp/mme_shunt_pf_ac.m @@ -1,7 +1,8 @@ classdef mme_shunt_pf_ac < mp.mme_shunt +% mp.mme_shunt_pf_ac - Math model element for shunt for AC power flow. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% shunt complex power consumption pp = nm.get_idx('port'); S = nm.soln.gs_(pp.i1.shunt:pp.iN.shunt) * dm.base_mva; diff --git a/lib/+mp/mme_shunt_pf_dc.m b/lib/+mp/mme_shunt_pf_dc.m index 2c06dadb..b814ee55 100644 --- a/lib/+mp/mme_shunt_pf_dc.m +++ b/lib/+mp/mme_shunt_pf_dc.m @@ -1,7 +1,8 @@ classdef mme_shunt_pf_dc < mp.mme_shunt +% mp.mme_shunt_pf_dc - Math model element for shunt for DC power flow. % MATPOWER -% Copyright (c) 2022, Power Systems Engineering Research Center (PSERC) +% Copyright (c) 2022-2023, Power Systems Engineering Research Center (PSERC) % by Ray Zimmerman, PSERC Cornell % % This file is part of MATPOWER. @@ -9,10 +10,12 @@ % See https://matpower.org for more info. % properties -% end +% end %% properties methods function obj = data_model_update(obj, mm, nm, dm, mpopt) + % + %% shunt complex power consumption pp = nm.get_idx('port'); P = nm.soln.gp(pp.i1.shunt:pp.iN.shunt) * dm.base_mva;