From acabcecf8644258585248f85b95ee0335c022da8 Mon Sep 17 00:00:00 2001 From: Muhammad Yasirroni Date: Thu, 21 Nov 2024 17:20:39 +0700 Subject: [PATCH 1/3] minor fix case in load any keys example --- notebooks/load_any_keys.ipynb | 460 +++------------------------------- 1 file changed, 30 insertions(+), 430 deletions(-) diff --git a/notebooks/load_any_keys.ipynb b/notebooks/load_any_keys.ipynb index ad2a9a3..ba297ff 100644 --- a/notebooks/load_any_keys.ipynb +++ b/notebooks/load_any_keys.ipynb @@ -47,208 +47,28 @@ " \n", " 0\n", " 1\n", + " 5\n", " 1\n", - " 1\n", - " 74.150480\n", - " 34.896181\n", + " 90\n", + " 30\n", " 1\n", " \n", " \n", " 1\n", " 2\n", - " 8\n", - " 1\n", - " 28.081420\n", - " 15.758833\n", - " 1\n", - " \n", - " \n", - " 2\n", - " 3\n", - " 8\n", - " 1\n", - " 2.377862\n", - " 0.172607\n", - " 1\n", - " \n", - " \n", - " 3\n", - " 4\n", - " 10\n", - " 1\n", - " 17.485805\n", - " 11.688645\n", - " 1\n", - " \n", - " \n", - " 4\n", - " 5\n", - " 11\n", - " 1\n", - " 23.246418\n", - " 11.789581\n", - " 1\n", - " \n", - " \n", - " 5\n", - " 6\n", " 7\n", " 1\n", - " 17.744576\n", - " 0.808382\n", + " 100\n", + " 35\n", " 1\n", " \n", " \n", - " 6\n", - " 7\n", + " 2\n", " 3\n", - " 1\n", - " 16.111230\n", - " 9.895656\n", - " 1\n", - " \n", - " \n", - " 7\n", - " 8\n", - " 5\n", - " 1\n", - " 2.892705\n", - " 1.954340\n", - " 1\n", - " \n", - " \n", - " 8\n", - " 9\n", - " 6\n", - " 1\n", - " 26.623944\n", - " 21.383458\n", - " 1\n", - " \n", - " \n", - " 9\n", - " 10\n", " 9\n", " 1\n", - " 9.696765\n", - " 6.885234\n", - " 1\n", - " \n", - " \n", - " 10\n", - " 11\n", - " 12\n", - " 1\n", - " 16.159454\n", - " 13.865387\n", - " 1\n", - " \n", - " \n", - " 11\n", - " 12\n", - " 13\n", - " 1\n", - " 54.008581\n", - " 40.773567\n", - " 1\n", - " \n", - " \n", - " 12\n", - " 13\n", - " 13\n", - " 1\n", - " 13.839229\n", - " 10.447872\n", - " 1\n", - " \n", - " \n", - " 13\n", - " 14\n", - " 3\n", - " 1\n", - " 5.831158\n", - " 2.685637\n", - " 1\n", - " \n", - " \n", - " 14\n", - " 15\n", - " 3\n", - " 1\n", - " 8.277018\n", - " 11.404585\n", - " 1\n", - " \n", - " \n", - " 15\n", - " 16\n", - " 27\n", - " 1\n", - " 18.487879\n", - " 12.280164\n", - " 1\n", - " \n", - " \n", - " 16\n", - " 17\n", - " 2\n", - " 1\n", - " 0.010161\n", - " 0.191424\n", - " 1\n", - " \n", - " \n", - " 17\n", - " 18\n", - " 14\n", - " 1\n", - " 23.393146\n", - " 25.758367\n", - " 1\n", - " \n", - " \n", - " 18\n", - " 19\n", - " 16\n", - " 1\n", - " 15.395352\n", - " 9.293864\n", - " 1\n", - " \n", - " \n", - " 19\n", - " 20\n", - " 27\n", - " 1\n", - " 23.810698\n", - " 9.011489\n", - " 1\n", - " \n", - " \n", - " 20\n", - " 21\n", - " 16\n", - " 1\n", - " 3.466689\n", - " 1.079331\n", - " 1\n", - " \n", - " \n", - " 21\n", - " 22\n", - " 14\n", - " 1\n", - " 0.000000\n", - " 0.000000\n", - " 1\n", - " \n", - " \n", - " 22\n", - " 23\n", - " 16\n", - " 1\n", - " 0.000000\n", - " 0.000000\n", + " 125\n", + " 50\n", " 1\n", " \n", " \n", @@ -256,30 +76,10 @@ "" ], "text/plain": [ - " 0 1 2 3 4 5\n", - "0 1 1 1 74.150480 34.896181 1\n", - "1 2 8 1 28.081420 15.758833 1\n", - "2 3 8 1 2.377862 0.172607 1\n", - "3 4 10 1 17.485805 11.688645 1\n", - "4 5 11 1 23.246418 11.789581 1\n", - "5 6 7 1 17.744576 0.808382 1\n", - "6 7 3 1 16.111230 9.895656 1\n", - "7 8 5 1 2.892705 1.954340 1\n", - "8 9 6 1 26.623944 21.383458 1\n", - "9 10 9 1 9.696765 6.885234 1\n", - "10 11 12 1 16.159454 13.865387 1\n", - "11 12 13 1 54.008581 40.773567 1\n", - "12 13 13 1 13.839229 10.447872 1\n", - "13 14 3 1 5.831158 2.685637 1\n", - "14 15 3 1 8.277018 11.404585 1\n", - "15 16 27 1 18.487879 12.280164 1\n", - "16 17 2 1 0.010161 0.191424 1\n", - "17 18 14 1 23.393146 25.758367 1\n", - "18 19 16 1 15.395352 9.293864 1\n", - "19 20 27 1 23.810698 9.011489 1\n", - "20 21 16 1 3.466689 1.079331 1\n", - "21 22 14 1 0.000000 0.000000 1\n", - "22 23 16 1 0.000000 0.000000 1" + " 0 1 2 3 4 5\n", + "0 1 5 1 90 30 1\n", + "1 2 7 1 100 35 1\n", + "2 3 9 1 125 50 1" ] }, "execution_count": 2, @@ -321,7 +121,7 @@ " \n", " LD_ID\n", " LD_BUS\n", - " LD_STAUTS\n", + " LD_STATUS\n", " LD_PD\n", " LD_QD\n", " LD_FACT\n", @@ -331,208 +131,28 @@ " \n", " 0\n", " 1\n", + " 5\n", " 1\n", - " 1\n", - " 74.150480\n", - " 34.896181\n", + " 90\n", + " 30\n", " 1\n", " \n", " \n", " 1\n", " 2\n", - " 8\n", - " 1\n", - " 28.081420\n", - " 15.758833\n", - " 1\n", - " \n", - " \n", - " 2\n", - " 3\n", - " 8\n", - " 1\n", - " 2.377862\n", - " 0.172607\n", - " 1\n", - " \n", - " \n", - " 3\n", - " 4\n", - " 10\n", - " 1\n", - " 17.485805\n", - " 11.688645\n", - " 1\n", - " \n", - " \n", - " 4\n", - " 5\n", - " 11\n", - " 1\n", - " 23.246418\n", - " 11.789581\n", - " 1\n", - " \n", - " \n", - " 5\n", - " 6\n", " 7\n", " 1\n", - " 17.744576\n", - " 0.808382\n", + " 100\n", + " 35\n", " 1\n", " \n", " \n", - " 6\n", - " 7\n", + " 2\n", " 3\n", - " 1\n", - " 16.111230\n", - " 9.895656\n", - " 1\n", - " \n", - " \n", - " 7\n", - " 8\n", - " 5\n", - " 1\n", - " 2.892705\n", - " 1.954340\n", - " 1\n", - " \n", - " \n", - " 8\n", - " 9\n", - " 6\n", - " 1\n", - " 26.623944\n", - " 21.383458\n", - " 1\n", - " \n", - " \n", - " 9\n", - " 10\n", " 9\n", " 1\n", - " 9.696765\n", - " 6.885234\n", - " 1\n", - " \n", - " \n", - " 10\n", - " 11\n", - " 12\n", - " 1\n", - " 16.159454\n", - " 13.865387\n", - " 1\n", - " \n", - " \n", - " 11\n", - " 12\n", - " 13\n", - " 1\n", - " 54.008581\n", - " 40.773567\n", - " 1\n", - " \n", - " \n", - " 12\n", - " 13\n", - " 13\n", - " 1\n", - " 13.839229\n", - " 10.447872\n", - " 1\n", - " \n", - " \n", - " 13\n", - " 14\n", - " 3\n", - " 1\n", - " 5.831158\n", - " 2.685637\n", - " 1\n", - " \n", - " \n", - " 14\n", - " 15\n", - " 3\n", - " 1\n", - " 8.277018\n", - " 11.404585\n", - " 1\n", - " \n", - " \n", - " 15\n", - " 16\n", - " 27\n", - " 1\n", - " 18.487879\n", - " 12.280164\n", - " 1\n", - " \n", - " \n", - " 16\n", - " 17\n", - " 2\n", - " 1\n", - " 0.010161\n", - " 0.191424\n", - " 1\n", - " \n", - " \n", - " 17\n", - " 18\n", - " 14\n", - " 1\n", - " 23.393146\n", - " 25.758367\n", - " 1\n", - " \n", - " \n", - " 18\n", - " 19\n", - " 16\n", - " 1\n", - " 15.395352\n", - " 9.293864\n", - " 1\n", - " \n", - " \n", - " 19\n", - " 20\n", - " 27\n", - " 1\n", - " 23.810698\n", - " 9.011489\n", - " 1\n", - " \n", - " \n", - " 20\n", - " 21\n", - " 16\n", - " 1\n", - " 3.466689\n", - " 1.079331\n", - " 1\n", - " \n", - " \n", - " 21\n", - " 22\n", - " 14\n", - " 1\n", - " 0.000000\n", - " 0.000000\n", - " 1\n", - " \n", - " \n", - " 22\n", - " 23\n", - " 16\n", - " 1\n", - " 0.000000\n", - " 0.000000\n", + " 125\n", + " 50\n", " 1\n", " \n", " \n", @@ -540,30 +160,10 @@ "" ], "text/plain": [ - " LD_ID LD_BUS LD_STAUTS LD_PD LD_QD LD_FACT\n", - "0 1 1 1 74.150480 34.896181 1\n", - "1 2 8 1 28.081420 15.758833 1\n", - "2 3 8 1 2.377862 0.172607 1\n", - "3 4 10 1 17.485805 11.688645 1\n", - "4 5 11 1 23.246418 11.789581 1\n", - "5 6 7 1 17.744576 0.808382 1\n", - "6 7 3 1 16.111230 9.895656 1\n", - "7 8 5 1 2.892705 1.954340 1\n", - "8 9 6 1 26.623944 21.383458 1\n", - "9 10 9 1 9.696765 6.885234 1\n", - "10 11 12 1 16.159454 13.865387 1\n", - "11 12 13 1 54.008581 40.773567 1\n", - "12 13 13 1 13.839229 10.447872 1\n", - "13 14 3 1 5.831158 2.685637 1\n", - "14 15 3 1 8.277018 11.404585 1\n", - "15 16 27 1 18.487879 12.280164 1\n", - "16 17 2 1 0.010161 0.191424 1\n", - "17 18 14 1 23.393146 25.758367 1\n", - "18 19 16 1 15.395352 9.293864 1\n", - "19 20 27 1 23.810698 9.011489 1\n", - "20 21 16 1 3.466689 1.079331 1\n", - "21 22 14 1 0.000000 0.000000 1\n", - "22 23 16 1 0.000000 0.000000 1" + " LD_ID LD_BUS LD_STATUS LD_PD LD_QD LD_FACT\n", + "0 1 5 1 90 30 1\n", + "1 2 7 1 100 35 1\n", + "2 3 9 1 125 50 1" ] }, "execution_count": 3, @@ -573,10 +173,10 @@ ], "source": [ "CASE_NAME = \"../data/case9_load.m\"\n", - "columns_temlplates = {\n", - " \"load\": [\"LD_ID\", \"LD_BUS\", \"LD_STAUTS\", \"LD_PD\", \"LD_QD\", \"LD_FACT\"]\n", + "columns_templates = {\n", + " \"load\": [\"LD_ID\", \"LD_BUS\", \"LD_STATUS\", \"LD_PD\", \"LD_QD\", \"LD_FACT\"]\n", "}\n", - "cf = CaseFrames(CASE_NAME, allow_any_keys=True, columns_templates=columns_temlplates)\n", + "cf = CaseFrames(CASE_NAME, allow_any_keys=True, columns_templates=columns_templates)\n", "cf.load" ] }, @@ -588,7 +188,7 @@ { "data": { "text/plain": [ - "['version', 'baseMVA', 'bus', 'load', 'gen', 'branch', 'gencost']" + "['version', 'baseMVA', 'bus', 'gen', 'branch', 'gencost', 'load']" ] }, "execution_count": 4, @@ -624,7 +224,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.4" + "version": "3.12.7" } }, "nbformat": 4, From 32b32f78a18c9ebed4a2b6cc4660ff65bdff295c Mon Sep 17 00:00:00 2001 From: Muhammad Yasirroni Date: Thu, 21 Nov 2024 21:40:27 +0700 Subject: [PATCH 2/3] _read_oct2py_struct use same logic as _read_matpower --- matpowercaseframes/core.py | 4 ++- notebooks/load_case69.ipynb | 2 +- tests/test_read_matpower_cases.py | 42 +++++++++++++++++++++++++++++-- 3 files changed, 44 insertions(+), 4 deletions(-) diff --git a/matpowercaseframes/core.py b/matpowercaseframes/core.py index 7abef1c..5ba2332 100644 --- a/matpowercaseframes/core.py +++ b/matpowercaseframes/core.py @@ -208,7 +208,7 @@ def _read_oct2py_struct(self, struct, allow_any_keys=False): if attribute == "version" or attribute == "baseMVA": value = list_ elif attribute in ["bus_name", "branch_name", "gen_name"]: - value = pd.Index(list_, name=attribute) + value = pd.Index([name[0] for name in list_], name=attribute) else: # bus, branch, gen, gencost, dcline, dclinecost n_cols = list_.shape[1] value = self._get_dataframe(attribute, list_, n_cols) @@ -519,6 +519,8 @@ def to_dict(self): for attribute in self._attributes: if attribute == "version" or attribute == "baseMVA": data[attribute] = getattr(self, attribute) + elif attribute in ["bus_name", "branch_name", "gen_name"]: + data[attribute] = [list(i) for i in getattr(self, attribute)] else: data[attribute] = getattr(self, attribute).values.tolist() return data diff --git a/notebooks/load_case69.ipynb b/notebooks/load_case69.ipynb index 9345ee1..ed3b4d4 100644 --- a/notebooks/load_case69.ipynb +++ b/notebooks/load_case69.ipynb @@ -575,7 +575,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.4" + "version": "3.12.7" } }, "nbformat": 4, diff --git a/tests/test_read_matpower_cases.py b/tests/test_read_matpower_cases.py index c78dad6..764b491 100644 --- a/tests/test_read_matpower_cases.py +++ b/tests/test_read_matpower_cases.py @@ -1,4 +1,6 @@ +import pandas as pd from matpower import path_matpower, start_instance +from pandas.testing import assert_frame_equal, assert_index_equal from matpowercaseframes import CaseFrames @@ -7,6 +9,22 @@ """ +def assert_cf_equal(cf1, cf2): + for attribute in cf1.attributes: + df1 = getattr(cf1, attribute) + df2 = getattr(cf2, attribute) + if isinstance(df1, pd.DataFrame): + assert_frame_equal(df1, df2) + elif isinstance(df1, pd.Index): + assert_index_equal(df1, df2) + else: + try: + assert df1 == df2 + except ValueError as e: + print(df1, df2) + raise ValueError(e) + + def test_case9(): CASE_NAME = "case9.m" CaseFrames(CASE_NAME) @@ -18,8 +36,22 @@ def test_case4_dist(): def test_case118(): + m = start_instance() + CASE_NAME = "case118.m" - CaseFrames(CASE_NAME) + cf = CaseFrames(CASE_NAME) + cf_lc = CaseFrames(CASE_NAME) + mpc = m.loadcase(CASE_NAME) + cf_mpc = CaseFrames(mpc) + + cf.infer_numpy() + cf_lc.infer_numpy() + cf_mpc.infer_numpy() + + m.exit() + + assert_cf_equal(cf, cf_lc) + assert_cf_equal(cf, cf_mpc) def test_t_case9_dcline(): @@ -28,6 +60,7 @@ def test_t_case9_dcline(): def test_loadcase_case16am(): + # NOTE: case with code inside .m file m = start_instance() CASE_NAME = "case16am.m" CaseFrames(CASE_NAME, load_case_engine=m) @@ -35,8 +68,13 @@ def test_loadcase_case16am(): def test_read_without_ext(): + CASE_NAME = "case9.m" + cf = CaseFrames(CASE_NAME) + CASE_NAME = "case9" - CaseFrames(CASE_NAME) + cf_no_ext = CaseFrames(CASE_NAME) + + assert_cf_equal(cf, cf_no_ext) def test_read_allow_any_keys(): From 922518ecbf3ace03d04c47658d5e572fc8c2ecbf Mon Sep 17 00:00:00 2001 From: Muhammad Yasirroni Date: Thu, 21 Nov 2024 23:15:09 +0700 Subject: [PATCH 3/3] fix support bus_name to runpf --- .gitignore | 2 + matpowercaseframes/core.py | 3 +- notebooks/load_case118.ipynb | 1530 +++++++++++++++++ tests/results/case118/branch.csv | 187 ++ tests/results/case118/bus.csv | 119 ++ tests/results/case118/bus_name.csv | 119 ++ tests/results/case118/gen.csv | 55 + tests/results/case118/gencost.csv | 55 + tests/results/{ => case118}/info.csv | 0 .../case118_prefix_suffix/mpc.branch_test.csv | 187 ++ .../mpc.bus_name_test.csv | 119 ++ .../case118_prefix_suffix/mpc.bus_test.csv | 119 ++ .../case118_prefix_suffix/mpc.gen_test.csv | 55 + .../mpc.gencost_test.csv | 55 + .../mpc.info_test.csv | 0 tests/results/{ => case9}/branch.csv | 0 tests/results/{ => case9}/bus.csv | 0 tests/results/{ => case9}/gen.csv | 0 tests/results/{ => case9}/gencost.csv | 0 tests/results/case9/info.csv | 3 + .../mpc.branch_test.csv | 0 .../mpc.bus_test.csv | 0 .../mpc.gen_test.csv | 0 .../mpc.gencost_test.csv | 0 .../case9_prefix_suffix/mpc.info_test.csv | 3 + tests/test_core.py | 43 +- tests/test_read_matpower_cases.py | 5 +- 27 files changed, 2640 insertions(+), 19 deletions(-) create mode 100644 notebooks/load_case118.ipynb create mode 100644 tests/results/case118/branch.csv create mode 100644 tests/results/case118/bus.csv create mode 100644 tests/results/case118/bus_name.csv create mode 100644 tests/results/case118/gen.csv create mode 100644 tests/results/case118/gencost.csv rename tests/results/{ => case118}/info.csv (100%) create mode 100644 tests/results/case118_prefix_suffix/mpc.branch_test.csv create mode 100644 tests/results/case118_prefix_suffix/mpc.bus_name_test.csv create mode 100644 tests/results/case118_prefix_suffix/mpc.bus_test.csv create mode 100644 tests/results/case118_prefix_suffix/mpc.gen_test.csv create mode 100644 tests/results/case118_prefix_suffix/mpc.gencost_test.csv rename tests/results/{ => case118_prefix_suffix}/mpc.info_test.csv (100%) rename tests/results/{ => case9}/branch.csv (100%) rename tests/results/{ => case9}/bus.csv (100%) rename tests/results/{ => case9}/gen.csv (100%) rename tests/results/{ => case9}/gencost.csv (100%) create mode 100644 tests/results/case9/info.csv rename tests/results/{ => case9_prefix_suffix}/mpc.branch_test.csv (100%) rename tests/results/{ => case9_prefix_suffix}/mpc.bus_test.csv (100%) rename tests/results/{ => case9_prefix_suffix}/mpc.gen_test.csv (100%) rename tests/results/{ => case9_prefix_suffix}/mpc.gencost_test.csv (100%) create mode 100644 tests/results/case9_prefix_suffix/mpc.info_test.csv diff --git a/.gitignore b/.gitignore index 99a9a8d..baeba57 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ octave-workspace # Local tests/results/*.xlsx +tests/results/**/*.xlsx + # Playground playground.ipynb diff --git a/matpowercaseframes/core.py b/matpowercaseframes/core.py index 5ba2332..d36e3de 100644 --- a/matpowercaseframes/core.py +++ b/matpowercaseframes/core.py @@ -520,7 +520,8 @@ def to_dict(self): if attribute == "version" or attribute == "baseMVA": data[attribute] = getattr(self, attribute) elif attribute in ["bus_name", "branch_name", "gen_name"]: - data[attribute] = [list(i) for i in getattr(self, attribute)] + # NOTE: must be in 2D Cell or 2D np.array + data[attribute] = np.atleast_2d(getattr(self, attribute).values).T else: data[attribute] = getattr(self, attribute).values.tolist() return data diff --git a/notebooks/load_case118.ipynb b/notebooks/load_case118.ipynb new file mode 100644 index 0000000..e89a500 --- /dev/null +++ b/notebooks/load_case118.ipynb @@ -0,0 +1,1530 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [ + "%load_ext autoreload\n", + "%autoreload 2" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "\n", + "from matpower import path_matpower, start_instance\n", + "\n", + "from matpowercaseframes import CaseFrames" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [], + "source": [ + "m = start_instance()" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [], + "source": [ + "CASE_NAME = \"case118.m\"" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "function mpc = case118\n", + "%CASE118 Power flow data for IEEE 118 bus test case.\n", + "% Please see CASEFORMAT for details on the case file format.\n", + "% This data was converted from IEEE Common Data Format\n", + "% (ieee118cdf.txt) on 15-Oct-2014 by cdf2matp, rev. 2393\n", + "% See end of file for warnings generated during conversion.\n", + "%\n", + "% Converted from IEEE CDF file from:\n", + "% https://labs.ece.uw.edu/pstca/\n", + "% With baseKV data take from the PSAP format file from the same site,\n", + "% added manually on 10-Mar-2006.\n", + "% Branches 86--87, 68--116 changed from transmission lines (tap ratio = 0)\n", + "% to transformers (tap ratio = 1) for consistency with bus base voltages\n", + "% on 2019-02-15.\n", + "% \n", + "% 08/25/93 UW ARCHIVE 100.0 1961 W IEEE 118 Bus Test Case\n", + "\n", + "% MATPOWER\n", + "\n", + "%% MATPOWER Case Format : Version 2\n", + "mpc.version = '2';\n", + "\n", + "%%----- Power Flow Data -----%%\n", + "%% system MVA base\n", + "mpc.baseMVA = 100;\n", + "\n", + "%% bus data\n", + "%\tbus_i\ttype\tPd\tQd\tGs\tBs\tarea\tVm\tVa\tbaseKV\tzone\tVmax\tVmin\n", + "mpc.bus = [\n", + "\t1\t2\t51\t27\t0\t0\t1\t0.955\t10.67\t138\t1\t1.06\t0.94;\n", + "\t2\t1\t20\t9\t0\t0\t1\t0.971\t11.22\t138\t1\t1.06\t0.94;\n", + "\t3\t1\t39\t10\t0\t0\t1\t0.968\t11.56\t138\t1\t1.06\t0.94;\n", + "\t4\t2\t39\t12\t0\t0\t1\t0.998\t15.28\t138\t1\t1.06\t0.94;\n", + "\t5\t1\t0\t0\t0\t-40\t1\t1.002\t15.73\t138\t1\t1.06\t0.94;\n", + "\t6\t2\t52\t22\t0\t0\t1\t0.99\t13\t138\t1\t1.06\t0.94;\n", + "\t7\t1\t19\t2\t0\t0\t1\t0.989\t12.56\t138\t1\t1.06\t0.94;\n", + "\t8\t2\t28\t0\t0\t0\t1\t1.015\t20.77\t345\t1\t1.06\t0.94;\n", + "\t9\t1\t0\t0\t0\t0\t1\t1.043\t28.02\t345\t1\t1.06\t0.94;\n", + "\t10\t2\t0\t0\t0\t0\t1\t1.05\t35.61\t345\t1\t1.06\t0.94;\n", + "\t11\t1\t70\t23\t0\t0\t1\t0.985\t12.72\t138\t1\t1.06\t0.94;\n", + "\t12\t2\t47\t10\t0\t0\t1\t0.99\t12.2\t138\t1\t1.06\t0.94;\n", + "\t13\t1\t34\t16\t0\t0\t1\t0.968\t11.35\t138\t1\t1.06\t0.94;\n", + "\t14\t1\t14\t1\t0\t0\t1\t0.984\t11.5\t138\t1\t1.06\t0.94;\n", + "\t15\t2\t90\t30\t0\t0\t1\t0.97\t11.23\t138\t1\t1.06\t0.94;\n", + "\t16\t1\t25\t10\t0\t0\t1\t0.984\t11.91\t138\t1\t1.06\t0.94;\n", + "\t17\t1\t11\t3\t0\t0\t1\t0.995\t13.74\t138\t1\t1.06\t0.94;\n", + "\t18\t2\t60\t34\t0\t0\t1\t0.973\t11.53\t138\t1\t1.06\t0.94;\n", + "\t19\t2\t45\t25\t0\t0\t1\t0.963\t11.05\t138\t1\t1.06\t0.94;\n", + "\t20\t1\t18\t3\t0\t0\t1\t0.958\t11.93\t138\t1\t1.06\t0.94;\n", + "\t21\t1\t14\t8\t0\t0\t1\t0.959\t13.52\t138\t1\t1.06\t0.94;\n", + "\t22\t1\t10\t5\t0\t0\t1\t0.97\t16.08\t138\t1\t1.06\t0.94;\n", + "\t23\t1\t7\t3\t0\t0\t1\t1\t21\t138\t1\t1.06\t0.94;\n", + "\t24\t2\t13\t0\t0\t0\t1\t0.992\t20.89\t138\t1\t1.06\t0.94;\n", + "\t25\t2\t0\t0\t0\t0\t1\t1.05\t27.93\t138\t1\t1.06\t0.94;\n", + "\t26\t2\t0\t0\t0\t0\t1\t1.015\t29.71\t345\t1\t1.06\t0.94;\n", + "\t27\t2\t71\t13\t0\t0\t1\t0.968\t15.35\t138\t1\t1.06\t0.94;\n", + "\t28\t1\t17\t7\t0\t0\t1\t0.962\t13.62\t138\t1\t1.06\t0.94;\n", + "\t29\t1\t24\t4\t0\t0\t1\t0.963\t12.63\t138\t1\t1.06\t0.94;\n", + "\t30\t1\t0\t0\t0\t0\t1\t0.968\t18.79\t345\t1\t1.06\t0.94;\n", + "\t31\t2\t43\t27\t0\t0\t1\t0.967\t12.75\t138\t1\t1.06\t0.94;\n", + "\t32\t2\t59\t23\t0\t0\t1\t0.964\t14.8\t138\t1\t1.06\t0.94;\n", + "\t33\t1\t23\t9\t0\t0\t1\t0.972\t10.63\t138\t1\t1.06\t0.94;\n", + "\t34\t2\t59\t26\t0\t14\t1\t0.986\t11.3\t138\t1\t1.06\t0.94;\n", + "\t35\t1\t33\t9\t0\t0\t1\t0.981\t10.87\t138\t1\t1.06\t0.94;\n", + "\t36\t2\t31\t17\t0\t0\t1\t0.98\t10.87\t138\t1\t1.06\t0.94;\n", + "\t37\t1\t0\t0\t0\t-25\t1\t0.992\t11.77\t138\t1\t1.06\t0.94;\n", + "\t38\t1\t0\t0\t0\t0\t1\t0.962\t16.91\t345\t1\t1.06\t0.94;\n", + "\t39\t1\t27\t11\t0\t0\t1\t0.97\t8.41\t138\t1\t1.06\t0.94;\n", + "\t40\t2\t66\t23\t0\t0\t1\t0.97\t7.35\t138\t1\t1.06\t0.94;\n", + "\t41\t1\t37\t10\t0\t0\t1\t0.967\t6.92\t138\t1\t1.06\t0.94;\n", + "\t42\t2\t96\t23\t0\t0\t1\t0.985\t8.53\t138\t1\t1.06\t0.94;\n", + "\t43\t1\t18\t7\t0\t0\t1\t0.978\t11.28\t138\t1\t1.06\t0.94;\n", + "\t44\t1\t16\t8\t0\t10\t1\t0.985\t13.82\t138\t1\t1.06\t0.94;\n", + "\t45\t1\t53\t22\t0\t10\t1\t0.987\t15.67\t138\t1\t1.06\t0.94;\n", + "\t46\t2\t28\t10\t0\t10\t1\t1.005\t18.49\t138\t1\t1.06\t0.94;\n", + "\t47\t1\t34\t0\t0\t0\t1\t1.017\t20.73\t138\t1\t1.06\t0.94;\n", + "\t48\t1\t20\t11\t0\t15\t1\t1.021\t19.93\t138\t1\t1.06\t0.94;\n", + "\t49\t2\t87\t30\t0\t0\t1\t1.025\t20.94\t138\t1\t1.06\t0.94;\n", + "\t50\t1\t17\t4\t0\t0\t1\t1.001\t18.9\t138\t1\t1.06\t0.94;\n", + "\t51\t1\t17\t8\t0\t0\t1\t0.967\t16.28\t138\t1\t1.06\t0.94;\n", + "\t52\t1\t18\t5\t0\t0\t1\t0.957\t15.32\t138\t1\t1.06\t0.94;\n", + "\t53\t1\t23\t11\t0\t0\t1\t0.946\t14.35\t138\t1\t1.06\t0.94;\n", + "\t54\t2\t113\t32\t0\t0\t1\t0.955\t15.26\t138\t1\t1.06\t0.94;\n", + "\t55\t2\t63\t22\t0\t0\t1\t0.952\t14.97\t138\t1\t1.06\t0.94;\n", + "\t56\t2\t84\t18\t0\t0\t1\t0.954\t15.16\t138\t1\t1.06\t0.94;\n", + "\t57\t1\t12\t3\t0\t0\t1\t0.971\t16.36\t138\t1\t1.06\t0.94;\n", + "\t58\t1\t12\t3\t0\t0\t1\t0.959\t15.51\t138\t1\t1.06\t0.94;\n", + "\t59\t2\t277\t113\t0\t0\t1\t0.985\t19.37\t138\t1\t1.06\t0.94;\n", + "\t60\t1\t78\t3\t0\t0\t1\t0.993\t23.15\t138\t1\t1.06\t0.94;\n", + "\t61\t2\t0\t0\t0\t0\t1\t0.995\t24.04\t138\t1\t1.06\t0.94;\n", + "\t62\t2\t77\t14\t0\t0\t1\t0.998\t23.43\t138\t1\t1.06\t0.94;\n", + "\t63\t1\t0\t0\t0\t0\t1\t0.969\t22.75\t345\t1\t1.06\t0.94;\n", + "\t64\t1\t0\t0\t0\t0\t1\t0.984\t24.52\t345\t1\t1.06\t0.94;\n", + "\t65\t2\t0\t0\t0\t0\t1\t1.005\t27.65\t345\t1\t1.06\t0.94;\n", + "\t66\t2\t39\t18\t0\t0\t1\t1.05\t27.48\t138\t1\t1.06\t0.94;\n", + "\t67\t1\t28\t7\t0\t0\t1\t1.02\t24.84\t138\t1\t1.06\t0.94;\n", + "\t68\t1\t0\t0\t0\t0\t1\t1.003\t27.55\t345\t1\t1.06\t0.94;\n", + "\t69\t3\t0\t0\t0\t0\t1\t1.035\t30\t138\t1\t1.06\t0.94;\n", + "\t70\t2\t66\t20\t0\t0\t1\t0.984\t22.58\t138\t1\t1.06\t0.94;\n", + "\t71\t1\t0\t0\t0\t0\t1\t0.987\t22.15\t138\t1\t1.06\t0.94;\n", + "\t72\t2\t12\t0\t0\t0\t1\t0.98\t20.98\t138\t1\t1.06\t0.94;\n", + "\t73\t2\t6\t0\t0\t0\t1\t0.991\t21.94\t138\t1\t1.06\t0.94;\n", + "\t74\t2\t68\t27\t0\t12\t1\t0.958\t21.64\t138\t1\t1.06\t0.94;\n", + "\t75\t1\t47\t11\t0\t0\t1\t0.967\t22.91\t138\t1\t1.06\t0.94;\n", + "\t76\t2\t68\t36\t0\t0\t1\t0.943\t21.77\t138\t1\t1.06\t0.94;\n", + "\t77\t2\t61\t28\t0\t0\t1\t1.006\t26.72\t138\t1\t1.06\t0.94;\n", + "\t78\t1\t71\t26\t0\t0\t1\t1.003\t26.42\t138\t1\t1.06\t0.94;\n", + "\t79\t1\t39\t32\t0\t20\t1\t1.009\t26.72\t138\t1\t1.06\t0.94;\n", + "\t80\t2\t130\t26\t0\t0\t1\t1.04\t28.96\t138\t1\t1.06\t0.94;\n", + "\t81\t1\t0\t0\t0\t0\t1\t0.997\t28.1\t345\t1\t1.06\t0.94;\n", + "\t82\t1\t54\t27\t0\t20\t1\t0.989\t27.24\t138\t1\t1.06\t0.94;\n", + "\t83\t1\t20\t10\t0\t10\t1\t0.985\t28.42\t138\t1\t1.06\t0.94;\n", + "\t84\t1\t11\t7\t0\t0\t1\t0.98\t30.95\t138\t1\t1.06\t0.94;\n", + "\t85\t2\t24\t15\t0\t0\t1\t0.985\t32.51\t138\t1\t1.06\t0.94;\n", + "\t86\t1\t21\t10\t0\t0\t1\t0.987\t31.14\t138\t1\t1.06\t0.94;\n", + "\t87\t2\t0\t0\t0\t0\t1\t1.015\t31.4\t161\t1\t1.06\t0.94;\n", + "\t88\t1\t48\t10\t0\t0\t1\t0.987\t35.64\t138\t1\t1.06\t0.94;\n", + "\t89\t2\t0\t0\t0\t0\t1\t1.005\t39.69\t138\t1\t1.06\t0.94;\n", + "\t90\t2\t163\t42\t0\t0\t1\t0.985\t33.29\t138\t1\t1.06\t0.94;\n", + "\t91\t2\t10\t0\t0\t0\t1\t0.98\t33.31\t138\t1\t1.06\t0.94;\n", + "\t92\t2\t65\t10\t0\t0\t1\t0.993\t33.8\t138\t1\t1.06\t0.94;\n", + "\t93\t1\t12\t7\t0\t0\t1\t0.987\t30.79\t138\t1\t1.06\t0.94;\n", + "\t94\t1\t30\t16\t0\t0\t1\t0.991\t28.64\t138\t1\t1.06\t0.94;\n", + "\t95\t1\t42\t31\t0\t0\t1\t0.981\t27.67\t138\t1\t1.06\t0.94;\n", + "\t96\t1\t38\t15\t0\t0\t1\t0.993\t27.51\t138\t1\t1.06\t0.94;\n", + "\t97\t1\t15\t9\t0\t0\t1\t1.011\t27.88\t138\t1\t1.06\t0.94;\n", + "\t98\t1\t34\t8\t0\t0\t1\t1.024\t27.4\t138\t1\t1.06\t0.94;\n", + "\t99\t2\t42\t0\t0\t0\t1\t1.01\t27.04\t138\t1\t1.06\t0.94;\n", + "\t100\t2\t37\t18\t0\t0\t1\t1.017\t28.03\t138\t1\t1.06\t0.94;\n", + "\t101\t1\t22\t15\t0\t0\t1\t0.993\t29.61\t138\t1\t1.06\t0.94;\n", + "\t102\t1\t5\t3\t0\t0\t1\t0.991\t32.3\t138\t1\t1.06\t0.94;\n", + "\t103\t2\t23\t16\t0\t0\t1\t1.001\t24.44\t138\t1\t1.06\t0.94;\n", + "\t104\t2\t38\t25\t0\t0\t1\t0.971\t21.69\t138\t1\t1.06\t0.94;\n", + "\t105\t2\t31\t26\t0\t20\t1\t0.965\t20.57\t138\t1\t1.06\t0.94;\n", + "\t106\t1\t43\t16\t0\t0\t1\t0.962\t20.32\t138\t1\t1.06\t0.94;\n", + "\t107\t2\t50\t12\t0\t6\t1\t0.952\t17.53\t138\t1\t1.06\t0.94;\n", + "\t108\t1\t2\t1\t0\t0\t1\t0.967\t19.38\t138\t1\t1.06\t0.94;\n", + "\t109\t1\t8\t3\t0\t0\t1\t0.967\t18.93\t138\t1\t1.06\t0.94;\n", + "\t110\t2\t39\t30\t0\t6\t1\t0.973\t18.09\t138\t1\t1.06\t0.94;\n", + "\t111\t2\t0\t0\t0\t0\t1\t0.98\t19.74\t138\t1\t1.06\t0.94;\n", + "\t112\t2\t68\t13\t0\t0\t1\t0.975\t14.99\t138\t1\t1.06\t0.94;\n", + "\t113\t2\t6\t0\t0\t0\t1\t0.993\t13.74\t138\t1\t1.06\t0.94;\n", + "\t114\t1\t8\t3\t0\t0\t1\t0.96\t14.46\t138\t1\t1.06\t0.94;\n", + "\t115\t1\t22\t7\t0\t0\t1\t0.96\t14.46\t138\t1\t1.06\t0.94;\n", + "\t116\t2\t184\t0\t0\t0\t1\t1.005\t27.12\t138\t1\t1.06\t0.94;\n", + "\t117\t1\t20\t8\t0\t0\t1\t0.974\t10.67\t138\t1\t1.06\t0.94;\n", + "\t118\t1\t33\t15\t0\t0\t1\t0.949\t21.92\t138\t1\t1.06\t0.94;\n", + "];\n", + "\n", + "%% generator data\n", + "%\tbus\tPg\tQg\tQmax\tQmin\tVg\tmBase\tstatus\tPmax\tPmin\tPc1\tPc2\tQc1min\tQc1max\tQc2min\tQc2max\tramp_agc\tramp_10\tramp_30\tramp_q\tapf\n", + "mpc.gen = [\n", + "\t1\t0\t0\t15\t-5\t0.955\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t4\t0\t0\t300\t-300\t0.998\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t6\t0\t0\t50\t-13\t0.99\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t8\t0\t0\t300\t-300\t1.015\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t10\t450\t0\t200\t-147\t1.05\t100\t1\t550\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t12\t85\t0\t120\t-35\t0.99\t100\t1\t185\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t15\t0\t0\t30\t-10\t0.97\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t18\t0\t0\t50\t-16\t0.973\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t19\t0\t0\t24\t-8\t0.962\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t24\t0\t0\t300\t-300\t0.992\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t25\t220\t0\t140\t-47\t1.05\t100\t1\t320\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t26\t314\t0\t1000\t-1000\t1.015\t100\t1\t414\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t27\t0\t0\t300\t-300\t0.968\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t31\t7\t0\t300\t-300\t0.967\t100\t1\t107\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t32\t0\t0\t42\t-14\t0.963\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t34\t0\t0\t24\t-8\t0.984\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t36\t0\t0\t24\t-8\t0.98\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t40\t0\t0\t300\t-300\t0.97\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t42\t0\t0\t300\t-300\t0.985\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t46\t19\t0\t100\t-100\t1.005\t100\t1\t119\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t49\t204\t0\t210\t-85\t1.025\t100\t1\t304\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t54\t48\t0\t300\t-300\t0.955\t100\t1\t148\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t55\t0\t0\t23\t-8\t0.952\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t56\t0\t0\t15\t-8\t0.954\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t59\t155\t0\t180\t-60\t0.985\t100\t1\t255\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t61\t160\t0\t300\t-100\t0.995\t100\t1\t260\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t62\t0\t0\t20\t-20\t0.998\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t65\t391\t0\t200\t-67\t1.005\t100\t1\t491\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t66\t392\t0\t200\t-67\t1.05\t100\t1\t492\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t69\t516.4\t0\t300\t-300\t1.035\t100\t1\t805.2\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t70\t0\t0\t32\t-10\t0.984\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t72\t0\t0\t100\t-100\t0.98\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t73\t0\t0\t100\t-100\t0.991\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t74\t0\t0\t9\t-6\t0.958\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t76\t0\t0\t23\t-8\t0.943\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t77\t0\t0\t70\t-20\t1.006\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t80\t477\t0\t280\t-165\t1.04\t100\t1\t577\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t85\t0\t0\t23\t-8\t0.985\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t87\t4\t0\t1000\t-100\t1.015\t100\t1\t104\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t89\t607\t0\t300\t-210\t1.005\t100\t1\t707\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t90\t0\t0\t300\t-300\t0.985\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t91\t0\t0\t100\t-100\t0.98\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t92\t0\t0\t9\t-3\t0.99\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t99\t0\t0\t100\t-100\t1.01\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t100\t252\t0\t155\t-50\t1.017\t100\t1\t352\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t103\t40\t0\t40\t-15\t1.01\t100\t1\t140\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t104\t0\t0\t23\t-8\t0.971\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t105\t0\t0\t23\t-8\t0.965\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t107\t0\t0\t200\t-200\t0.952\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t110\t0\t0\t23\t-8\t0.973\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t111\t36\t0\t1000\t-100\t0.98\t100\t1\t136\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t112\t0\t0\t1000\t-100\t0.975\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t113\t0\t0\t200\t-100\t0.993\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "\t116\t0\t0\t1000\t-1000\t1.005\t100\t1\t100\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0;\n", + "];\n", + "\n", + "%% branch data\n", + "%\tfbus\ttbus\tr\tx\tb\trateA\trateB\trateC\tratio\tangle\tstatus\tangmin\tangmax\n", + "mpc.branch = [\n", + "\t1\t2\t0.0303\t0.0999\t0.0254\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t1\t3\t0.0129\t0.0424\t0.01082\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t4\t5\t0.00176\t0.00798\t0.0021\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t3\t5\t0.0241\t0.108\t0.0284\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t5\t6\t0.0119\t0.054\t0.01426\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t6\t7\t0.00459\t0.0208\t0.0055\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t8\t9\t0.00244\t0.0305\t1.162\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t8\t5\t0\t0.0267\t0\t0\t0\t0\t0.985\t0\t1\t-360\t360;\n", + "\t9\t10\t0.00258\t0.0322\t1.23\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t4\t11\t0.0209\t0.0688\t0.01748\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t5\t11\t0.0203\t0.0682\t0.01738\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t11\t12\t0.00595\t0.0196\t0.00502\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t2\t12\t0.0187\t0.0616\t0.01572\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t3\t12\t0.0484\t0.16\t0.0406\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t7\t12\t0.00862\t0.034\t0.00874\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t11\t13\t0.02225\t0.0731\t0.01876\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t12\t14\t0.0215\t0.0707\t0.01816\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t13\t15\t0.0744\t0.2444\t0.06268\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t14\t15\t0.0595\t0.195\t0.0502\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t12\t16\t0.0212\t0.0834\t0.0214\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t15\t17\t0.0132\t0.0437\t0.0444\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t16\t17\t0.0454\t0.1801\t0.0466\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t17\t18\t0.0123\t0.0505\t0.01298\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t18\t19\t0.01119\t0.0493\t0.01142\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t19\t20\t0.0252\t0.117\t0.0298\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t15\t19\t0.012\t0.0394\t0.0101\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t20\t21\t0.0183\t0.0849\t0.0216\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t21\t22\t0.0209\t0.097\t0.0246\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t22\t23\t0.0342\t0.159\t0.0404\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t23\t24\t0.0135\t0.0492\t0.0498\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t23\t25\t0.0156\t0.08\t0.0864\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t26\t25\t0\t0.0382\t0\t0\t0\t0\t0.96\t0\t1\t-360\t360;\n", + "\t25\t27\t0.0318\t0.163\t0.1764\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t27\t28\t0.01913\t0.0855\t0.0216\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t28\t29\t0.0237\t0.0943\t0.0238\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t30\t17\t0\t0.0388\t0\t0\t0\t0\t0.96\t0\t1\t-360\t360;\n", + "\t8\t30\t0.00431\t0.0504\t0.514\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t26\t30\t0.00799\t0.086\t0.908\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t17\t31\t0.0474\t0.1563\t0.0399\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t29\t31\t0.0108\t0.0331\t0.0083\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t23\t32\t0.0317\t0.1153\t0.1173\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t31\t32\t0.0298\t0.0985\t0.0251\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t27\t32\t0.0229\t0.0755\t0.01926\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t15\t33\t0.038\t0.1244\t0.03194\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t19\t34\t0.0752\t0.247\t0.0632\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t35\t36\t0.00224\t0.0102\t0.00268\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t35\t37\t0.011\t0.0497\t0.01318\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t33\t37\t0.0415\t0.142\t0.0366\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t34\t36\t0.00871\t0.0268\t0.00568\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t34\t37\t0.00256\t0.0094\t0.00984\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t38\t37\t0\t0.0375\t0\t0\t0\t0\t0.935\t0\t1\t-360\t360;\n", + "\t37\t39\t0.0321\t0.106\t0.027\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t37\t40\t0.0593\t0.168\t0.042\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t30\t38\t0.00464\t0.054\t0.422\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t39\t40\t0.0184\t0.0605\t0.01552\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t40\t41\t0.0145\t0.0487\t0.01222\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t40\t42\t0.0555\t0.183\t0.0466\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t41\t42\t0.041\t0.135\t0.0344\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t43\t44\t0.0608\t0.2454\t0.06068\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t34\t43\t0.0413\t0.1681\t0.04226\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t44\t45\t0.0224\t0.0901\t0.0224\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t45\t46\t0.04\t0.1356\t0.0332\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t46\t47\t0.038\t0.127\t0.0316\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t46\t48\t0.0601\t0.189\t0.0472\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t47\t49\t0.0191\t0.0625\t0.01604\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t42\t49\t0.0715\t0.323\t0.086\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t42\t49\t0.0715\t0.323\t0.086\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t45\t49\t0.0684\t0.186\t0.0444\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t48\t49\t0.0179\t0.0505\t0.01258\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t49\t50\t0.0267\t0.0752\t0.01874\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t49\t51\t0.0486\t0.137\t0.0342\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t51\t52\t0.0203\t0.0588\t0.01396\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t52\t53\t0.0405\t0.1635\t0.04058\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t53\t54\t0.0263\t0.122\t0.031\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t49\t54\t0.073\t0.289\t0.0738\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t49\t54\t0.0869\t0.291\t0.073\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t54\t55\t0.0169\t0.0707\t0.0202\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t54\t56\t0.00275\t0.00955\t0.00732\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t55\t56\t0.00488\t0.0151\t0.00374\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t56\t57\t0.0343\t0.0966\t0.0242\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t50\t57\t0.0474\t0.134\t0.0332\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t56\t58\t0.0343\t0.0966\t0.0242\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t51\t58\t0.0255\t0.0719\t0.01788\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t54\t59\t0.0503\t0.2293\t0.0598\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t56\t59\t0.0825\t0.251\t0.0569\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t56\t59\t0.0803\t0.239\t0.0536\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t55\t59\t0.04739\t0.2158\t0.05646\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t59\t60\t0.0317\t0.145\t0.0376\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t59\t61\t0.0328\t0.15\t0.0388\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t60\t61\t0.00264\t0.0135\t0.01456\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t60\t62\t0.0123\t0.0561\t0.01468\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t61\t62\t0.00824\t0.0376\t0.0098\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t63\t59\t0\t0.0386\t0\t0\t0\t0\t0.96\t0\t1\t-360\t360;\n", + "\t63\t64\t0.00172\t0.02\t0.216\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t64\t61\t0\t0.0268\t0\t0\t0\t0\t0.985\t0\t1\t-360\t360;\n", + "\t38\t65\t0.00901\t0.0986\t1.046\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t64\t65\t0.00269\t0.0302\t0.38\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t49\t66\t0.018\t0.0919\t0.0248\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t49\t66\t0.018\t0.0919\t0.0248\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t62\t66\t0.0482\t0.218\t0.0578\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t62\t67\t0.0258\t0.117\t0.031\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t65\t66\t0\t0.037\t0\t0\t0\t0\t0.935\t0\t1\t-360\t360;\n", + "\t66\t67\t0.0224\t0.1015\t0.02682\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t65\t68\t0.00138\t0.016\t0.638\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t47\t69\t0.0844\t0.2778\t0.07092\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t49\t69\t0.0985\t0.324\t0.0828\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t68\t69\t0\t0.037\t0\t0\t0\t0\t0.935\t0\t1\t-360\t360;\n", + "\t69\t70\t0.03\t0.127\t0.122\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t24\t70\t0.00221\t0.4115\t0.10198\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t70\t71\t0.00882\t0.0355\t0.00878\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t24\t72\t0.0488\t0.196\t0.0488\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t71\t72\t0.0446\t0.18\t0.04444\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t71\t73\t0.00866\t0.0454\t0.01178\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t70\t74\t0.0401\t0.1323\t0.03368\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t70\t75\t0.0428\t0.141\t0.036\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t69\t75\t0.0405\t0.122\t0.124\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t74\t75\t0.0123\t0.0406\t0.01034\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t76\t77\t0.0444\t0.148\t0.0368\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t69\t77\t0.0309\t0.101\t0.1038\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t75\t77\t0.0601\t0.1999\t0.04978\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t77\t78\t0.00376\t0.0124\t0.01264\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t78\t79\t0.00546\t0.0244\t0.00648\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t77\t80\t0.017\t0.0485\t0.0472\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t77\t80\t0.0294\t0.105\t0.0228\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t79\t80\t0.0156\t0.0704\t0.0187\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t68\t81\t0.00175\t0.0202\t0.808\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t81\t80\t0\t0.037\t0\t0\t0\t0\t0.935\t0\t1\t-360\t360;\n", + "\t77\t82\t0.0298\t0.0853\t0.08174\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t82\t83\t0.0112\t0.03665\t0.03796\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t83\t84\t0.0625\t0.132\t0.0258\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t83\t85\t0.043\t0.148\t0.0348\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t84\t85\t0.0302\t0.0641\t0.01234\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t85\t86\t0.035\t0.123\t0.0276\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t86\t87\t0.02828\t0.2074\t0.0445\t0\t0\t0\t1\t0\t1\t-360\t360;\n", + "\t85\t88\t0.02\t0.102\t0.0276\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t85\t89\t0.0239\t0.173\t0.047\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t88\t89\t0.0139\t0.0712\t0.01934\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t89\t90\t0.0518\t0.188\t0.0528\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t89\t90\t0.0238\t0.0997\t0.106\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t90\t91\t0.0254\t0.0836\t0.0214\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t89\t92\t0.0099\t0.0505\t0.0548\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t89\t92\t0.0393\t0.1581\t0.0414\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t91\t92\t0.0387\t0.1272\t0.03268\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t92\t93\t0.0258\t0.0848\t0.0218\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t92\t94\t0.0481\t0.158\t0.0406\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t93\t94\t0.0223\t0.0732\t0.01876\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t94\t95\t0.0132\t0.0434\t0.0111\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t80\t96\t0.0356\t0.182\t0.0494\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t82\t96\t0.0162\t0.053\t0.0544\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t94\t96\t0.0269\t0.0869\t0.023\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t80\t97\t0.0183\t0.0934\t0.0254\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t80\t98\t0.0238\t0.108\t0.0286\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t80\t99\t0.0454\t0.206\t0.0546\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t92\t100\t0.0648\t0.295\t0.0472\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t94\t100\t0.0178\t0.058\t0.0604\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t95\t96\t0.0171\t0.0547\t0.01474\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t96\t97\t0.0173\t0.0885\t0.024\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t98\t100\t0.0397\t0.179\t0.0476\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t99\t100\t0.018\t0.0813\t0.0216\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t100\t101\t0.0277\t0.1262\t0.0328\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t92\t102\t0.0123\t0.0559\t0.01464\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t101\t102\t0.0246\t0.112\t0.0294\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t100\t103\t0.016\t0.0525\t0.0536\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t100\t104\t0.0451\t0.204\t0.0541\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t103\t104\t0.0466\t0.1584\t0.0407\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t103\t105\t0.0535\t0.1625\t0.0408\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t100\t106\t0.0605\t0.229\t0.062\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t104\t105\t0.00994\t0.0378\t0.00986\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t105\t106\t0.014\t0.0547\t0.01434\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t105\t107\t0.053\t0.183\t0.0472\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t105\t108\t0.0261\t0.0703\t0.01844\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t106\t107\t0.053\t0.183\t0.0472\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t108\t109\t0.0105\t0.0288\t0.0076\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t103\t110\t0.03906\t0.1813\t0.0461\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t109\t110\t0.0278\t0.0762\t0.0202\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t110\t111\t0.022\t0.0755\t0.02\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t110\t112\t0.0247\t0.064\t0.062\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t17\t113\t0.00913\t0.0301\t0.00768\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t32\t113\t0.0615\t0.203\t0.0518\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t32\t114\t0.0135\t0.0612\t0.01628\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t27\t115\t0.0164\t0.0741\t0.01972\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t114\t115\t0.0023\t0.0104\t0.00276\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t68\t116\t0.00034\t0.00405\t0.164\t0\t0\t0\t1\t0\t1\t-360\t360;\n", + "\t12\t117\t0.0329\t0.14\t0.0358\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t75\t118\t0.0145\t0.0481\t0.01198\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "\t76\t118\t0.0164\t0.0544\t0.01356\t0\t0\t0\t0\t0\t1\t-360\t360;\n", + "];\n", + "\n", + "%%----- OPF Data -----%%\n", + "%% generator cost data\n", + "%\t1\tstartup\tshutdown\tn\tx1\ty1\t...\txn\tyn\n", + "%\t2\tstartup\tshutdown\tn\tc(n-1)\t...\tc0\n", + "mpc.gencost = [\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.0222222222\t20\t0;\n", + "\t2\t0\t0\t3\t0.117647059\t20\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.0454545455\t20\t0;\n", + "\t2\t0\t0\t3\t0.0318471338\t20\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t1.42857143\t20\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.526315789\t20\t0;\n", + "\t2\t0\t0\t3\t0.0490196078\t20\t0;\n", + "\t2\t0\t0\t3\t0.208333333\t20\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.064516129\t20\t0;\n", + "\t2\t0\t0\t3\t0.0625\t20\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.0255754476\t20\t0;\n", + "\t2\t0\t0\t3\t0.0255102041\t20\t0;\n", + "\t2\t0\t0\t3\t0.0193648335\t20\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.0209643606\t20\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t2.5\t20\t0;\n", + "\t2\t0\t0\t3\t0.0164744646\t20\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.0396825397\t20\t0;\n", + "\t2\t0\t0\t3\t0.25\t20\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.277777778\t20\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "\t2\t0\t0\t3\t0.01\t40\t0;\n", + "];\n", + "\n", + "%% bus names\n", + "mpc.bus_name = {\n", + "\t'Riversde V2';\n", + "\t'Pokagon V2';\n", + "\t'HickryCk V2';\n", + "\t'NwCarlsl V2';\n", + "\t'Olive V2';\n", + "\t'Kankakee V2';\n", + "\t'JacksnRd V2';\n", + "\t'Olive V1';\n", + "\t'Bequine V1';\n", + "\t'Breed V1';\n", + "\t'SouthBnd V2';\n", + "\t'TwinBrch V2';\n", + "\t'Concord V2';\n", + "\t'GoshenJt V2';\n", + "\t'FtWayne V2';\n", + "\t'N. E. V2';\n", + "\t'Sorenson V2';\n", + "\t'McKinley V2';\n", + "\t'Lincoln V2';\n", + "\t'Adams V2';\n", + "\t'Jay V2';\n", + "\t'Randolph V2';\n", + "\t'CollCrnr V2';\n", + "\t'Trenton V2';\n", + "\t'TannrsCk V2';\n", + "\t'TannrsCk V1';\n", + "\t'Madison V2';\n", + "\t'Mullin V2';\n", + "\t'Grant V2';\n", + "\t'Sorenson V1';\n", + "\t'DeerCrk V2';\n", + "\t'Delaware V2';\n", + "\t'Haviland V2';\n", + "\t'Rockhill V2';\n", + "\t'WestLima V2';\n", + "\t'Sterling V2';\n", + "\t'EastLima V2';\n", + "\t'EastLima V1';\n", + "\t'NwLibrty V2';\n", + "\t'West End V2';\n", + "\t'S.Tiffin V2';\n", + "\t'Howard V2';\n", + "\t'S.Kenton V2';\n", + "\t'WMVernon V2';\n", + "\t'N.Newark V2';\n", + "\t'W.Lancst V2';\n", + "\t'Crooksvl V2';\n", + "\t'Zanesvll V2';\n", + "\t'Philo V2';\n", + "\t'WCambrdg V2';\n", + "\t'Newcmrst V2';\n", + "\t'SCoshoct V2';\n", + "\t'Wooster V2';\n", + "\t'Torrey V2';\n", + "\t'Wagenhls V2';\n", + "\t'Sunnysde V2';\n", + "\t'WNwPhil1 V2';\n", + "\t'WNwPhil2 V2';\n", + "\t'Tidd V2';\n", + "\t'SWKammer V2';\n", + "\t'W.Kammer V2';\n", + "\t'Natrium V2';\n", + "\t'Tidd V1';\n", + "\t'Kammer V1';\n", + "\t'Muskngum V1';\n", + "\t'Muskngum V2';\n", + "\t'Summerfl V2';\n", + "\t'Sporn V1';\n", + "\t'Sporn V2';\n", + "\t'Portsmth V2';\n", + "\t'NPortsmt V2';\n", + "\t'Hillsbro V2';\n", + "\t'Sargents V2';\n", + "\t'Bellefnt V2';\n", + "\t'SthPoint V2';\n", + "\t'Darrah V2';\n", + "\t'Turner V2';\n", + "\t'Chemical V2';\n", + "\t'CapitlHl V2';\n", + "\t'CabinCrk V2';\n", + "\t'Kanawha V1';\n", + "\t'Logan V2';\n", + "\t'Sprigg V2';\n", + "\t'BetsyLne V2';\n", + "\t'BeaverCk V2';\n", + "\t'Hazard V2';\n", + "\t'Pinevlle V3';\n", + "\t'Fremont V2';\n", + "\t'ClinchRv V2';\n", + "\t'Holston V2';\n", + "\t'HolstonT V2';\n", + "\t'Saltvlle V2';\n", + "\t'Tazewell V2';\n", + "\t'Switchbk V2';\n", + "\t'Caldwell V2';\n", + "\t'Baileysv V2';\n", + "\t'Sundial V2';\n", + "\t'Bradley V2';\n", + "\t'Hinton V2';\n", + "\t'Glen Lyn V2';\n", + "\t'Wythe V2';\n", + "\t'Smythe V2';\n", + "\t'Claytor V2';\n", + "\t'Hancock V2';\n", + "\t'Roanoke V2';\n", + "\t'Cloverdl V2';\n", + "\t'Reusens V2';\n", + "\t'Blaine V2';\n", + "\t'Franklin V2';\n", + "\t'Fieldale V2';\n", + "\t'DanRiver V2';\n", + "\t'Danville V2';\n", + "\t'Deer Crk V2';\n", + "\t'WMedford V2';\n", + "\t'Medford V2';\n", + "\t'KygerCrk V2';\n", + "\t'Corey V2';\n", + "\t'WHuntngd V2';\n", + "};\n", + "\n", + "% Warnings from cdf2matp conversion:\n", + "%\n", + "% ***** check the title format in the first line of the cdf file.\n", + "% ***** negative Pg at bus 4 treated as Pd\n", + "% ***** negative Pg at bus 8 treated as Pd\n", + "% ***** negative Pg at bus 24 treated as Pd\n", + "% ***** negative Pg at bus 27 treated as Pd\n", + "% ***** negative Pg at bus 40 treated as Pd\n", + "% ***** negative Pg at bus 42 treated as Pd\n", + "% ***** negative Pg at bus 72 treated as Pd\n", + "% ***** negative Pg at bus 73 treated as Pd\n", + "% ***** negative Pg at bus 90 treated as Pd\n", + "% ***** negative Pg at bus 91 treated as Pd\n", + "% ***** negative Pg at bus 99 treated as Pd\n", + "% ***** negative Pg at bus 107 treated as Pd\n", + "% ***** negative Pg at bus 112 treated as Pd\n", + "% ***** negative Pg at bus 113 treated as Pd\n", + "% ***** negative Pg at bus 116 treated as Pd\n", + "% ***** Insufficient generation, setting Pmax at slack bus (bus 69) to 805.2\n", + "% ***** MVA limit of branch 1 - 2 not given, set to 0\n", + "% ***** MVA limit of branch 1 - 3 not given, set to 0\n", + "% ***** MVA limit of branch 4 - 5 not given, set to 0\n", + "% ***** MVA limit of branch 3 - 5 not given, set to 0\n", + "% ***** MVA limit of branch 5 - 6 not given, set to 0\n", + "% ***** MVA limit of branch 6 - 7 not given, set to 0\n", + "% ***** MVA limit of branch 8 - 9 not given, set to 0\n", + "% ***** MVA limit of branch 8 - 5 not given, set to 0\n", + "% ***** MVA limit of branch 9 - 10 not given, set to 0\n", + "% ***** MVA limit of branch 4 - 11 not given, set to 0\n", + "% ***** MVA limit of branch 5 - 11 not given, set to 0\n", + "% ***** MVA limit of branch 11 - 12 not given, set to 0\n", + "% ***** MVA limit of branch 2 - 12 not given, set to 0\n", + "% ***** MVA limit of branch 3 - 12 not given, set to 0\n", + "% ***** MVA limit of branch 7 - 12 not given, set to 0\n", + "% ***** MVA limit of branch 11 - 13 not given, set to 0\n", + "% ***** MVA limit of branch 12 - 14 not given, set to 0\n", + "% ***** MVA limit of branch 13 - 15 not given, set to 0\n", + "% ***** MVA limit of branch 14 - 15 not given, set to 0\n", + "% ***** MVA limit of branch 12 - 16 not given, set to 0\n", + "% ***** MVA limit of branch 15 - 17 not given, set to 0\n", + "% ***** MVA limit of branch 16 - 17 not given, set to 0\n", + "% ***** MVA limit of branch 17 - 18 not given, set to 0\n", + "% ***** MVA limit of branch 18 - 19 not given, set to 0\n", + "% ***** MVA limit of branch 19 - 20 not given, set to 0\n", + "% ***** MVA limit of branch 15 - 19 not given, set to 0\n", + "% ***** MVA limit of branch 20 - 21 not given, set to 0\n", + "% ***** MVA limit of branch 21 - 22 not given, set to 0\n", + "% ***** MVA limit of branch 22 - 23 not given, set to 0\n", + "% ***** MVA limit of branch 23 - 24 not given, set to 0\n", + "% ***** MVA limit of branch 23 - 25 not given, set to 0\n", + "% ***** MVA limit of branch 26 - 25 not given, set to 0\n", + "% ***** MVA limit of branch 25 - 27 not given, set to 0\n", + "% ***** MVA limit of branch 27 - 28 not given, set to 0\n", + "% ***** MVA limit of branch 28 - 29 not given, set to 0\n", + "% ***** MVA limit of branch 30 - 17 not given, set to 0\n", + "% ***** MVA limit of branch 8 - 30 not given, set to 0\n", + "% ***** MVA limit of branch 26 - 30 not given, set to 0\n", + "% ***** MVA limit of branch 17 - 31 not given, set to 0\n", + "% ***** MVA limit of branch 29 - 31 not given, set to 0\n", + "% ***** MVA limit of branch 23 - 32 not given, set to 0\n", + "% ***** MVA limit of branch 31 - 32 not given, set to 0\n", + "% ***** MVA limit of branch 27 - 32 not given, set to 0\n", + "% ***** MVA limit of branch 15 - 33 not given, set to 0\n", + "% ***** MVA limit of branch 19 - 34 not given, set to 0\n", + "% ***** MVA limit of branch 35 - 36 not given, set to 0\n", + "% ***** MVA limit of branch 35 - 37 not given, set to 0\n", + "% ***** MVA limit of branch 33 - 37 not given, set to 0\n", + "% ***** MVA limit of branch 34 - 36 not given, set to 0\n", + "% ***** MVA limit of branch 34 - 37 not given, set to 0\n", + "% ***** MVA limit of branch 38 - 37 not given, set to 0\n", + "% ***** MVA limit of branch 37 - 39 not given, set to 0\n", + "% ***** MVA limit of branch 37 - 40 not given, set to 0\n", + "% ***** MVA limit of branch 30 - 38 not given, set to 0\n", + "% ***** MVA limit of branch 39 - 40 not given, set to 0\n", + "% ***** MVA limit of branch 40 - 41 not given, set to 0\n", + "% ***** MVA limit of branch 40 - 42 not given, set to 0\n", + "% ***** MVA limit of branch 41 - 42 not given, set to 0\n", + "% ***** MVA limit of branch 43 - 44 not given, set to 0\n", + "% ***** MVA limit of branch 34 - 43 not given, set to 0\n", + "% ***** MVA limit of branch 44 - 45 not given, set to 0\n", + "% ***** MVA limit of branch 45 - 46 not given, set to 0\n", + "% ***** MVA limit of branch 46 - 47 not given, set to 0\n", + "% ***** MVA limit of branch 46 - 48 not given, set to 0\n", + "% ***** MVA limit of branch 47 - 49 not given, set to 0\n", + "% ***** MVA limit of branch 42 - 49 not given, set to 0\n", + "% ***** MVA limit of branch 42 - 49 not given, set to 0\n", + "% ***** MVA limit of branch 45 - 49 not given, set to 0\n", + "% ***** MVA limit of branch 48 - 49 not given, set to 0\n", + "% ***** MVA limit of branch 49 - 50 not given, set to 0\n", + "% ***** MVA limit of branch 49 - 51 not given, set to 0\n", + "% ***** MVA limit of branch 51 - 52 not given, set to 0\n", + "% ***** MVA limit of branch 52 - 53 not given, set to 0\n", + "% ***** MVA limit of branch 53 - 54 not given, set to 0\n", + "% ***** MVA limit of branch 49 - 54 not given, set to 0\n", + "% ***** MVA limit of branch 49 - 54 not given, set to 0\n", + "% ***** MVA limit of branch 54 - 55 not given, set to 0\n", + "% ***** MVA limit of branch 54 - 56 not given, set to 0\n", + "% ***** MVA limit of branch 55 - 56 not given, set to 0\n", + "% ***** MVA limit of branch 56 - 57 not given, set to 0\n", + "% ***** MVA limit of branch 50 - 57 not given, set to 0\n", + "% ***** MVA limit of branch 56 - 58 not given, set to 0\n", + "% ***** MVA limit of branch 51 - 58 not given, set to 0\n", + "% ***** MVA limit of branch 54 - 59 not given, set to 0\n", + "% ***** MVA limit of branch 56 - 59 not given, set to 0\n", + "% ***** MVA limit of branch 56 - 59 not given, set to 0\n", + "% ***** MVA limit of branch 55 - 59 not given, set to 0\n", + "% ***** MVA limit of branch 59 - 60 not given, set to 0\n", + "% ***** MVA limit of branch 59 - 61 not given, set to 0\n", + "% ***** MVA limit of branch 60 - 61 not given, set to 0\n", + "% ***** MVA limit of branch 60 - 62 not given, set to 0\n", + "% ***** MVA limit of branch 61 - 62 not given, set to 0\n", + "% ***** MVA limit of branch 63 - 59 not given, set to 0\n", + "% ***** MVA limit of branch 63 - 64 not given, set to 0\n", + "% ***** MVA limit of branch 64 - 61 not given, set to 0\n", + "% ***** MVA limit of branch 38 - 65 not given, set to 0\n", + "% ***** MVA limit of branch 64 - 65 not given, set to 0\n", + "% ***** MVA limit of branch 49 - 66 not given, set to 0\n", + "% ***** MVA limit of branch 49 - 66 not given, set to 0\n", + "% ***** MVA limit of branch 62 - 66 not given, set to 0\n", + "% ***** MVA limit of branch 62 - 67 not given, set to 0\n", + "% ***** MVA limit of branch 65 - 66 not given, set to 0\n", + "% ***** MVA limit of branch 66 - 67 not given, set to 0\n", + "% ***** MVA limit of branch 65 - 68 not given, set to 0\n", + "% ***** MVA limit of branch 47 - 69 not given, set to 0\n", + "% ***** MVA limit of branch 49 - 69 not given, set to 0\n", + "% ***** MVA limit of branch 68 - 69 not given, set to 0\n", + "% ***** MVA limit of branch 69 - 70 not given, set to 0\n", + "% ***** MVA limit of branch 24 - 70 not given, set to 0\n", + "% ***** MVA limit of branch 70 - 71 not given, set to 0\n", + "% ***** MVA limit of branch 24 - 72 not given, set to 0\n", + "% ***** MVA limit of branch 71 - 72 not given, set to 0\n", + "% ***** MVA limit of branch 71 - 73 not given, set to 0\n", + "% ***** MVA limit of branch 70 - 74 not given, set to 0\n", + "% ***** MVA limit of branch 70 - 75 not given, set to 0\n", + "% ***** MVA limit of branch 69 - 75 not given, set to 0\n", + "% ***** MVA limit of branch 74 - 75 not given, set to 0\n", + "% ***** MVA limit of branch 76 - 77 not given, set to 0\n", + "% ***** MVA limit of branch 69 - 77 not given, set to 0\n", + "% ***** MVA limit of branch 75 - 77 not given, set to 0\n", + "% ***** MVA limit of branch 77 - 78 not given, set to 0\n", + "% ***** MVA limit of branch 78 - 79 not given, set to 0\n", + "% ***** MVA limit of branch 77 - 80 not given, set to 0\n", + "% ***** MVA limit of branch 77 - 80 not given, set to 0\n", + "% ***** MVA limit of branch 79 - 80 not given, set to 0\n", + "% ***** MVA limit of branch 68 - 81 not given, set to 0\n", + "% ***** MVA limit of branch 81 - 80 not given, set to 0\n", + "% ***** MVA limit of branch 77 - 82 not given, set to 0\n", + "% ***** MVA limit of branch 82 - 83 not given, set to 0\n", + "% ***** MVA limit of branch 83 - 84 not given, set to 0\n", + "% ***** MVA limit of branch 83 - 85 not given, set to 0\n", + "% ***** MVA limit of branch 84 - 85 not given, set to 0\n", + "% ***** MVA limit of branch 85 - 86 not given, set to 0\n", + "% ***** MVA limit of branch 86 - 87 not given, set to 0\n", + "% ***** MVA limit of branch 85 - 88 not given, set to 0\n", + "% ***** MVA limit of branch 85 - 89 not given, set to 0\n", + "% ***** MVA limit of branch 88 - 89 not given, set to 0\n", + "% ***** MVA limit of branch 89 - 90 not given, set to 0\n", + "% ***** MVA limit of branch 89 - 90 not given, set to 0\n", + "% ***** MVA limit of branch 90 - 91 not given, set to 0\n", + "% ***** MVA limit of branch 89 - 92 not given, set to 0\n", + "% ***** MVA limit of branch 89 - 92 not given, set to 0\n", + "% ***** MVA limit of branch 91 - 92 not given, set to 0\n", + "% ***** MVA limit of branch 92 - 93 not given, set to 0\n", + "% ***** MVA limit of branch 92 - 94 not given, set to 0\n", + "% ***** MVA limit of branch 93 - 94 not given, set to 0\n", + "% ***** MVA limit of branch 94 - 95 not given, set to 0\n", + "% ***** MVA limit of branch 80 - 96 not given, set to 0\n", + "% ***** MVA limit of branch 82 - 96 not given, set to 0\n", + "% ***** MVA limit of branch 94 - 96 not given, set to 0\n", + "% ***** MVA limit of branch 80 - 97 not given, set to 0\n", + "% ***** MVA limit of branch 80 - 98 not given, set to 0\n", + "% ***** MVA limit of branch 80 - 99 not given, set to 0\n", + "% ***** MVA limit of branch 92 - 100 not given, set to 0\n", + "% ***** MVA limit of branch 94 - 100 not given, set to 0\n", + "% ***** MVA limit of branch 95 - 96 not given, set to 0\n", + "% ***** MVA limit of branch 96 - 97 not given, set to 0\n", + "% ***** MVA limit of branch 98 - 100 not given, set to 0\n", + "% ***** MVA limit of branch 99 - 100 not given, set to 0\n", + "% ***** MVA limit of branch 100 - 101 not given, set to 0\n", + "% ***** MVA limit of branch 92 - 102 not given, set to 0\n", + "% ***** MVA limit of branch 101 - 102 not given, set to 0\n", + "% ***** MVA limit of branch 100 - 103 not given, set to 0\n", + "% ***** MVA limit of branch 100 - 104 not given, set to 0\n", + "% ***** MVA limit of branch 103 - 104 not given, set to 0\n", + "% ***** MVA limit of branch 103 - 105 not given, set to 0\n", + "% ***** MVA limit of branch 100 - 106 not given, set to 0\n", + "% ***** MVA limit of branch 104 - 105 not given, set to 0\n", + "% ***** MVA limit of branch 105 - 106 not given, set to 0\n", + "% ***** MVA limit of branch 105 - 107 not given, set to 0\n", + "% ***** MVA limit of branch 105 - 108 not given, set to 0\n", + "% ***** MVA limit of branch 106 - 107 not given, set to 0\n", + "% ***** MVA limit of branch 108 - 109 not given, set to 0\n", + "% ***** MVA limit of branch 103 - 110 not given, set to 0\n", + "% ***** MVA limit of branch 109 - 110 not given, set to 0\n", + "% ***** MVA limit of branch 110 - 111 not given, set to 0\n", + "% ***** MVA limit of branch 110 - 112 not given, set to 0\n", + "% ***** MVA limit of branch 17 - 113 not given, set to 0\n", + "% ***** MVA limit of branch 32 - 113 not given, set to 0\n", + "% ***** MVA limit of branch 32 - 114 not given, set to 0\n", + "% ***** MVA limit of branch 27 - 115 not given, set to 0\n", + "% ***** MVA limit of branch 114 - 115 not given, set to 0\n", + "% ***** MVA limit of branch 68 - 116 not given, set to 0\n", + "% ***** MVA limit of branch 12 - 117 not given, set to 0\n", + "% ***** MVA limit of branch 75 - 118 not given, set to 0\n", + "% ***** MVA limit of branch 76 - 118 not given, set to 0\n", + "\n" + ] + } + ], + "source": [ + "case_path = os.path.join(path_matpower, \"data\", CASE_NAME)\n", + "with open(case_path, \"r\") as f:\n", + " print(f.read())" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
BUS_IBUS_TYPEPDQDGSBSBUS_AREAVMVABASE_KVZONEVMAXVMIN
bus_name
Riversde V21.02.051.027.00.00.01.00.95510.67138.01.01.060.94
Pokagon V22.01.020.09.00.00.01.00.97111.22138.01.01.060.94
HickryCk V23.01.039.010.00.00.01.00.96811.56138.01.01.060.94
NwCarlsl V24.02.039.012.00.00.01.00.99815.28138.01.01.060.94
Olive V25.01.00.00.00.0-40.01.01.00215.73138.01.01.060.94
..........................................
WMedford V2114.01.08.03.00.00.01.00.96014.46138.01.01.060.94
Medford V2115.01.022.07.00.00.01.00.96014.46138.01.01.060.94
KygerCrk V2116.02.0184.00.00.00.01.01.00527.12138.01.01.060.94
Corey V2117.01.020.08.00.00.01.00.97410.67138.01.01.060.94
WHuntngd V2118.01.033.015.00.00.01.00.94921.92138.01.01.060.94
\n", + "

118 rows × 13 columns

\n", + "
" + ], + "text/plain": [ + " BUS_I BUS_TYPE PD QD GS BS BUS_AREA VM VA \\\n", + "bus_name \n", + "Riversde V2 1.0 2.0 51.0 27.0 0.0 0.0 1.0 0.955 10.67 \n", + "Pokagon V2 2.0 1.0 20.0 9.0 0.0 0.0 1.0 0.971 11.22 \n", + "HickryCk V2 3.0 1.0 39.0 10.0 0.0 0.0 1.0 0.968 11.56 \n", + "NwCarlsl V2 4.0 2.0 39.0 12.0 0.0 0.0 1.0 0.998 15.28 \n", + "Olive V2 5.0 1.0 0.0 0.0 0.0 -40.0 1.0 1.002 15.73 \n", + "... ... ... ... ... ... ... ... ... ... \n", + "WMedford V2 114.0 1.0 8.0 3.0 0.0 0.0 1.0 0.960 14.46 \n", + "Medford V2 115.0 1.0 22.0 7.0 0.0 0.0 1.0 0.960 14.46 \n", + "KygerCrk V2 116.0 2.0 184.0 0.0 0.0 0.0 1.0 1.005 27.12 \n", + "Corey V2 117.0 1.0 20.0 8.0 0.0 0.0 1.0 0.974 10.67 \n", + "WHuntngd V2 118.0 1.0 33.0 15.0 0.0 0.0 1.0 0.949 21.92 \n", + "\n", + " BASE_KV ZONE VMAX VMIN \n", + "bus_name \n", + "Riversde V2 138.0 1.0 1.06 0.94 \n", + "Pokagon V2 138.0 1.0 1.06 0.94 \n", + "HickryCk V2 138.0 1.0 1.06 0.94 \n", + "NwCarlsl V2 138.0 1.0 1.06 0.94 \n", + "Olive V2 138.0 1.0 1.06 0.94 \n", + "... ... ... ... ... \n", + "WMedford V2 138.0 1.0 1.06 0.94 \n", + "Medford V2 138.0 1.0 1.06 0.94 \n", + "KygerCrk V2 138.0 1.0 1.06 0.94 \n", + "Corey V2 138.0 1.0 1.06 0.94 \n", + "WHuntngd V2 138.0 1.0 1.06 0.94 \n", + "\n", + "[118 rows x 13 columns]" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "cf = CaseFrames(CASE_NAME, load_case_engine=m, allow_any_keys=True)\n", + "cf.bus" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "MATPOWER Version 8.0, 17-May-2024\n", + "Power Flow -- AC-polar-power formulation\n", + "\n", + "Newton's method converged in 3 iterations.\n", + "PF successful\n", + "\n", + "Converged in 0.18 seconds\n", + "================================================================================\n", + "| System Summary |\n", + "================================================================================\n", + "\n", + "How many? How much? P (MW) Q (MVAr)\n", + "--------------------- ------------------- ------------- -----------------\n", + "Buses 118 Total Gen Capacity 9966.2 -7345.0 to 11777.0\n", + "Generators 54 On-line Capacity 9966.2 -7345.0 to 11777.0\n", + "Committed Gens 54 Generation (actual) 4374.9 795.7\n", + "Loads 99 Load 4242.0 1438.0\n", + " Fixed 99 Fixed 4242.0 1438.0\n", + " Dispatchable 0 Dispatchable -0.0 of -0.0 -0.0\n", + "Shunts 14 Shunt (inj) -0.0 84.4\n", + "Branches 186 Losses (I^2 * Z) 132.86 783.79\n", + "Transformers 11 Branch Charging (inj) - 1341.7\n", + "Inter-ties 0 Total Inter-tie Flow 0.0 0.0\n", + "Areas 1\n", + "\n", + " Minimum Maximum\n", + " ------------------------- --------------------------------\n", + "Voltage Magnitude 0.943 p.u. @ bus 76 1.050 p.u. @ bus 10\n", + "Voltage Angle 7.05 deg @ bus 41 39.75 deg @ bus 89\n", + "P Losses (I^2*R) - 6.40 MW @ line 25-27\n", + "Q Losses (I^2*X) - 59.22 MVAr @ line 9-10\n", + "\n", + "================================================================================\n", + "| Bus Data |\n", + "================================================================================\n", + " Bus Voltage Generation Load\n", + " # Mag(pu) Ang(deg) P (MW) Q (MVAr) P (MW) Q (MVAr)\n", + "----- ------- -------- -------- -------- -------- --------\n", + " 1 0.955 10.973 0.00 -3.10 51.00 27.00\n", + " 2 0.971 11.513 - - 20.00 9.00\n", + " 3 0.968 11.856 - - 39.00 10.00\n", + " 4 0.998 15.574 0.00 -15.01 39.00 12.00\n", + " 5 1.002 16.019 - - - -\n", + " 6 0.990 13.292 0.00 15.93 52.00 22.00\n", + " 7 0.989 12.847 - - 19.00 2.00\n", + " 8 1.015 21.041 0.00 63.14 28.00 0.00\n", + " 9 1.043 28.295 - - - -\n", + " 10 1.050 35.876 450.00 -51.04 - -\n", + " 11 0.985 13.006 - - 70.00 23.00\n", + " 12 0.990 12.489 85.00 91.29 47.00 10.00\n", + " 13 0.968 11.630 - - 34.00 16.00\n", + " 14 0.984 11.771 - - 14.00 1.00\n", + " 15 0.970 11.474 0.00 7.16 90.00 30.00\n", + " 16 0.984 12.187 - - 25.00 10.00\n", + " 17 0.995 13.995 - - 11.00 3.00\n", + " 18 0.973 11.781 0.00 28.43 60.00 34.00\n", + " 19 0.962 11.315 0.00 -14.27 45.00 25.00\n", + " 20 0.957 12.191 - - 18.00 3.00\n", + " 21 0.958 13.778 - - 14.00 8.00\n", + " 22 0.969 16.332 - - 10.00 5.00\n", + " 23 0.999 21.249 - - 7.00 3.00\n", + " 24 0.992 21.114 0.00 -14.91 13.00 0.00\n", + " 25 1.050 28.180 220.00 50.04 - -\n", + " 26 1.015 29.960 314.00 10.12 - -\n", + " 27 0.968 15.604 0.00 3.98 71.00 13.00\n", + " 28 0.962 13.879 - - 17.00 7.00\n", + " 29 0.963 12.885 - - 24.00 4.00\n", + " 30 0.985 19.034 - - - -\n", + " 31 0.967 13.002 7.00 32.59 43.00 27.00\n", + " 32 0.963 15.061 0.00 -16.28 59.00 23.00\n", + " 33 0.971 10.854 - - 23.00 9.00\n", + " 34 0.984 11.511 0.00 -20.83 59.00 26.00\n", + " 35 0.980 11.055 - - 33.00 9.00\n", + " 36 0.980 11.056 0.00 7.73 31.00 17.00\n", + " 37 0.991 11.967 - - - -\n", + " 38 0.961 17.108 - - - -\n", + " 39 0.970 8.577 - - 27.00 11.00\n", + " 40 0.970 7.496 0.00 28.45 66.00 23.00\n", + " 41 0.967 7.052 - - 37.00 10.00\n", + " 42 0.985 8.653 0.00 41.03 96.00 23.00\n", + " 43 0.977 11.460 - - 18.00 7.00\n", + " 44 0.984 13.943 - - 16.00 8.00\n", + " 45 0.986 15.773 - - 53.00 22.00\n", + " 46 1.005 18.576 19.00 -5.03 28.00 10.00\n", + " 47 1.017 20.799 - - 34.00 0.00\n", + " 48 1.021 20.019 - - 20.00 11.00\n", + " 49 1.025 21.022 204.00 115.85 87.00 30.00\n", + " 50 1.001 18.983 - - 17.00 4.00\n", + " 51 0.967 16.364 - - 17.00 8.00\n", + " 52 0.957 15.411 - - 18.00 5.00\n", + " 53 0.946 14.436 - - 23.00 11.00\n", + " 54 0.955 15.348 48.00 3.90 113.00 32.00\n", + " 55 0.952 15.058 0.00 4.66 63.00 22.00\n", + " 56 0.954 15.245 0.00 -2.29 84.00 18.00\n", + " 57 0.971 16.449 - - 12.00 3.00\n", + " 58 0.959 15.592 - - 12.00 3.00\n", + " 59 0.985 19.448 155.00 76.83 277.00 113.00\n", + " 60 0.993 23.230 - - 78.00 3.00\n", + " 61 0.995 24.121 160.00 -40.39 - -\n", + " 62 0.998 23.505 0.00 1.26 77.00 14.00\n", + " 63 0.969 22.827 - - - -\n", + " 64 0.984 24.593 - - - -\n", + " 65 1.005 27.719 391.00 81.51 - -\n", + " 66 1.050 27.559 392.00 -1.96 39.00 18.00\n", + " 67 1.020 24.919 - - 28.00 7.00\n", + " 68 1.003 27.598 - - - -\n", + " 69 1.035 30.000* 513.86 -82.42 - -\n", + " 70 0.984 22.618 0.00 9.67 66.00 20.00\n", + " 71 0.987 22.207 - - - -\n", + " 72 0.980 21.109 0.00 -11.13 12.00 0.00\n", + " 73 0.991 21.995 0.00 9.65 6.00 0.00\n", + " 74 0.958 21.669 0.00 -5.63 68.00 27.00\n", + " 75 0.967 22.930 - - 47.00 11.00\n", + " 76 0.943 21.799 0.00 5.27 68.00 36.00\n", + " 77 1.006 26.751 0.00 12.17 61.00 28.00\n", + " 78 1.003 26.447 - - 71.00 26.00\n", + " 79 1.009 26.745 - - 39.00 32.00\n", + " 80 1.040 28.990 477.00 105.47 130.00 26.00\n", + " 81 0.997 28.145 - - - -\n", + " 82 0.989 27.272 - - 54.00 27.00\n", + " 83 0.984 28.464 - - 20.00 10.00\n", + " 84 0.980 31.000 - - 11.00 7.00\n", + " 85 0.985 32.556 0.00 -5.61 24.00 15.00\n", + " 86 0.987 31.186 - - 21.00 10.00\n", + " 87 1.015 31.445 4.00 11.02 - -\n", + " 88 0.987 35.690 - - 48.00 10.00\n", + " 89 1.005 39.748 607.00 -5.90 - -\n", + " 90 0.985 33.338 0.00 59.31 163.00 42.00\n", + " 91 0.980 33.351 0.00 -13.09 10.00 0.00\n", + " 92 0.990 33.881 0.00 -13.96 65.00 10.00\n", + " 93 0.985 30.849 - - 12.00 7.00\n", + " 94 0.990 28.682 - - 30.00 16.00\n", + " 95 0.980 27.710 - - 42.00 31.00\n", + " 96 0.992 27.543 - - 38.00 15.00\n", + " 97 1.011 27.916 - - 15.00 9.00\n", + " 98 1.024 27.433 - - 34.00 8.00\n", + " 99 1.010 27.067 0.00 -17.54 42.00 0.00\n", + " 100 1.017 28.059 252.00 95.55 37.00 18.00\n", + " 101 0.991 29.647 - - 22.00 15.00\n", + " 102 0.989 32.365 - - 5.00 3.00\n", + " 103 1.010 24.318 40.00 75.42 23.00 16.00\n", + " 104 0.971 21.748 0.00 2.39 38.00 25.00\n", + " 105 0.965 20.644 0.00 -18.33 31.00 26.00\n", + " 106 0.961 20.383 - - 43.00 16.00\n", + " 107 0.952 17.583 0.00 6.56 50.00 12.00\n", + " 108 0.966 19.443 - - 2.00 1.00\n", + " 109 0.967 18.991 - - 8.00 3.00\n", + " 110 0.973 18.144 0.00 0.28 39.00 30.00\n", + " 111 0.980 19.789 36.00 -1.84 - -\n", + " 112 0.975 15.045 0.00 41.51 68.00 13.00\n", + " 113 0.993 13.993 0.00 6.75 6.00 0.00\n", + " 114 0.960 14.726 - - 8.00 3.00\n", + " 115 0.960 14.718 - - 22.00 7.00\n", + " 116 1.005 27.163 0.00 51.32 184.00 0.00\n", + " 117 0.974 10.948 - - 20.00 8.00\n", + " 118 0.949 21.942 - - 33.00 15.00\n", + " -------- -------- -------- --------\n", + " Total: 4374.86 795.68 4242.00 1438.00\n", + "\n", + "================================================================================\n", + "| Branch Data |\n", + "================================================================================\n", + "Brnch From To From Bus Injection To Bus Injection Loss (I^2 * Z)\n", + " # Bus Bus P (MW) Q (MVAr) P (MW) Q (MVAr) P (MW) Q (MVAr)\n", + "----- ----- ----- -------- -------- -------- -------- -------- --------\n", + " 1 1 2 -12.35 -13.04 12.45 11.01 0.098 0.32\n", + " 2 1 3 -38.65 -17.06 38.90 16.88 0.250 0.82\n", + " 3 4 5 -103.23 -26.79 103.43 27.49 0.201 0.91\n", + " 4 3 5 -68.11 -14.49 69.35 17.28 1.238 5.55\n", + " 5 5 6 88.47 4.11 -87.54 -1.30 0.930 4.22\n", + " 6 6 7 35.54 -4.77 -35.48 4.51 0.060 0.27\n", + " 7 8 9 -440.64 -89.73 445.25 24.43 4.620 57.75\n", + " 8 8 5 338.47 124.73 -338.47 -92.01 0.000 32.72\n", + " 9 9 10 -445.25 -24.43 450.00 -51.04 4.745 59.22\n", + " 10 4 11 64.23 -0.22 -63.36 1.35 0.866 2.85\n", + " 11 5 11 77.22 2.97 -76.02 -0.62 1.209 4.06\n", + " 12 11 12 34.29 -35.14 -34.15 35.13 0.147 0.48\n", + " 13 2 12 -32.45 -20.01 32.73 19.42 0.282 0.93\n", + " 14 3 12 -9.79 -12.40 9.89 8.86 0.106 0.35\n", + " 15 7 12 16.48 -6.51 -16.45 5.76 0.027 0.11\n", + " 16 11 13 35.09 11.41 -34.77 -12.16 0.317 1.04\n", + " 17 12 14 18.31 2.62 -18.24 -4.14 0.076 0.25\n", + " 18 13 15 0.77 -3.84 -0.77 -2.04 0.001 0.00\n", + " 19 14 15 4.24 3.14 -4.21 -7.83 0.030 0.10\n", + " 20 12 16 7.51 4.30 -7.49 -6.32 0.018 0.07\n", + " 21 15 17 -103.86 -24.27 105.44 25.22 1.582 5.24\n", + " 22 16 17 -17.51 -3.68 17.66 -0.30 0.145 0.57\n", + " 23 17 18 80.27 24.76 -79.39 -22.40 0.881 3.62\n", + " 24 18 19 19.39 16.83 -19.31 -17.55 0.080 0.35\n", + " 25 19 20 -10.62 5.17 10.67 -7.71 0.042 0.20\n", + " 26 15 19 11.53 15.72 -11.47 -16.50 0.050 0.17\n", + " 27 20 21 -28.67 4.71 28.84 -5.90 0.171 0.79\n", + " 28 21 22 -42.84 -2.10 43.26 1.76 0.418 1.94\n", + " 29 22 23 -53.26 -6.76 54.30 7.69 1.042 4.84\n", + " 30 23 24 8.28 10.42 -8.25 -15.24 0.032 0.12\n", + " 31 23 25 -162.56 -26.16 166.76 38.63 4.201 21.55\n", + " 32 26 25 90.29 21.58 -90.29 -18.64 0.000 2.94\n", + " 33 25 27 143.52 30.06 -137.13 -15.25 6.398 32.79\n", + " 34 27 28 32.88 -0.59 -32.66 -0.43 0.221 0.99\n", + " 35 28 29 15.66 -6.57 -15.58 4.64 0.070 0.28\n", + " 36 30 17 231.19 92.97 -231.19 -70.10 0.000 22.87\n", + " 37 8 30 74.16 28.15 -73.81 -75.42 0.355 4.15\n", + " 38 26 30 223.71 -11.46 -219.73 -36.57 3.978 42.82\n", + " 39 17 31 14.77 11.52 -14.57 -14.73 0.192 0.63\n", + " 40 29 31 -8.42 -8.64 8.43 7.92 0.016 0.05\n", + " 41 23 32 92.98 5.05 -90.20 -6.24 2.781 10.12\n", + " 42 31 32 -29.86 12.40 30.20 -13.60 0.343 1.13\n", + " 43 27 32 12.53 1.76 -12.49 -3.43 0.040 0.13\n", + " 44 15 33 7.31 -4.42 -7.28 1.49 0.025 0.08\n", + " 45 19 34 -3.59 -10.40 3.65 4.60 0.056 0.18\n", + " 46 35 36 0.84 4.04 -0.84 -4.29 0.000 0.00\n", + " 47 35 37 -33.84 -13.04 33.99 12.43 0.149 0.67\n", + " 48 33 37 -15.72 -10.49 15.86 7.46 0.143 0.49\n", + " 49 34 36 30.25 4.70 -30.16 -4.98 0.085 0.26\n", + " 50 34 37 -94.31 -44.20 94.59 44.29 0.286 1.05\n", + " 51 38 37 243.37 113.60 -243.37 -88.01 0.000 25.59\n", + " 52 37 39 54.91 2.98 -53.92 -2.30 0.992 3.28\n", + " 53 37 40 44.02 -3.68 -42.85 2.96 1.172 3.32\n", + " 54 30 38 62.35 19.03 -62.09 -55.98 0.260 3.03\n", + " 55 39 40 26.92 -8.70 -26.76 7.75 0.154 0.51\n", + " 56 40 41 15.45 1.19 -15.41 -2.21 0.037 0.13\n", + " 57 40 42 -11.84 -6.45 11.93 2.30 0.093 0.31\n", + " 58 41 42 -21.59 -7.79 21.81 5.24 0.221 0.73\n", + " 59 43 44 -16.59 -1.33 16.77 -3.79 0.177 0.71\n", + " 60 34 43 1.41 1.63 -1.41 -5.67 0.007 0.03\n", + " 61 44 45 -32.77 5.48 33.03 -6.62 0.258 1.04\n", + " 62 45 46 -36.33 -3.57 36.87 2.12 0.544 1.84\n", + " 63 46 47 -31.11 -1.22 31.48 -0.79 0.364 1.22\n", + " 64 46 48 -14.76 -5.83 14.90 1.42 0.137 0.43\n", + " 65 47 49 -9.54 -10.84 9.57 9.28 0.035 0.12\n", + " 66 42 49 -64.87 5.24 68.04 0.37 3.167 14.30\n", + " 67 42 49 -64.87 5.24 68.04 0.37 3.167 14.30\n", + " 68 45 49 -49.70 -2.08 51.44 2.31 1.737 4.72\n", + " 69 48 49 -34.90 3.21 35.11 -3.93 0.212 0.60\n", + " 70 49 50 53.66 13.43 -52.88 -13.14 0.785 2.21\n", + " 71 49 51 66.63 20.44 -64.35 -17.40 2.282 6.43\n", + " 72 51 52 28.56 6.25 -28.37 -6.99 0.187 0.54\n", + " 73 52 53 10.37 1.99 -10.32 -5.45 0.054 0.22\n", + " 74 53 54 -12.68 -5.55 12.74 2.99 0.052 0.24\n", + " 75 49 54 37.77 13.07 -36.58 -15.60 1.191 4.71\n", + " 76 49 54 37.74 11.20 -36.38 -13.79 1.365 4.57\n", + " 77 54 55 7.07 1.46 -7.06 -3.25 0.010 0.04\n", + " 78 54 56 18.53 4.35 -18.52 -4.98 0.011 0.04\n", + " 79 55 56 -21.42 -5.82 21.45 5.57 0.026 0.08\n", + " 80 56 57 -22.99 -9.10 23.21 7.49 0.223 0.63\n", + " 81 50 57 35.88 9.14 -35.21 -10.49 0.664 1.88\n", + " 82 56 58 -6.67 -3.69 6.69 1.53 0.019 0.05\n", + " 83 51 58 18.79 3.16 -18.69 -4.53 0.101 0.28\n", + " 84 54 59 -30.38 -7.51 30.90 4.26 0.522 2.38\n", + " 85 56 59 -27.96 -4.17 28.67 0.99 0.711 2.16\n", + " 86 56 59 -29.31 -3.91 30.07 1.13 0.760 2.26\n", + " 87 55 59 -34.52 -8.26 35.16 5.88 0.640 2.91\n", + " 88 59 60 -43.32 3.57 43.94 -4.40 0.623 2.85\n", + " 89 59 61 -51.72 5.03 52.64 -4.63 0.920 4.21\n", + " 90 60 61 -112.07 8.52 112.41 -8.23 0.338 1.73\n", + " 91 60 62 -9.87 -7.11 9.89 5.74 0.017 0.08\n", + " 92 61 62 25.49 -13.86 -25.42 13.20 0.069 0.31\n", + " 93 63 59 151.77 67.48 -151.77 -57.02 0.000 10.46\n", + " 94 63 64 -151.77 -67.48 152.25 52.51 0.482 5.61\n", + " 95 64 61 30.54 13.99 -30.54 -13.68 0.000 0.30\n", + " 96 38 65 -181.28 -57.63 184.49 -8.37 3.213 35.16\n", + " 97 64 65 -182.79 -66.49 183.78 40.06 0.993 11.15\n", + " 98 49 66 -132.22 4.33 135.22 8.32 3.001 15.32\n", + " 99 49 66 -132.22 4.33 135.22 8.32 3.001 15.32\n", + " 100 62 66 -37.16 -17.26 37.93 14.68 0.768 3.48\n", + " 101 62 67 -24.30 -14.41 24.50 12.15 0.196 0.89\n", + " 102 65 66 8.54 72.25 -8.54 -70.55 0.000 1.70\n", + " 103 66 67 53.16 19.27 -52.50 -19.15 0.662 3.00\n", + " 104 65 68 14.18 -22.43 -14.18 -41.85 0.004 0.05\n", + " 105 47 69 -55.94 11.63 58.68 -10.07 2.744 9.03\n", + " 106 49 69 -46.54 10.65 48.78 -12.06 2.242 7.37\n", + " 107 68 69 -125.80 112.82 125.80 -103.64 0.000 9.18\n", + " 108 69 70 108.38 16.07 -104.94 -13.98 3.432 14.53\n", + " 109 24 70 -6.22 -2.97 6.22 -6.80 0.001 0.18\n", + " 110 70 71 16.65 -12.38 -16.61 11.68 0.038 0.15\n", + " 111 24 72 1.47 3.31 -1.45 -7.98 0.017 0.07\n", + " 112 71 72 10.60 -0.94 -10.55 -3.15 0.052 0.21\n", + " 113 71 73 6.01 -10.74 -6.00 9.65 0.012 0.07\n", + " 114 70 74 16.21 12.89 -16.01 -15.42 0.196 0.65\n", + " 115 70 75 -0.13 9.94 0.19 -13.17 0.060 0.20\n", + " 116 69 75 110.01 20.49 -105.16 -18.31 4.854 14.62\n", + " 117 74 75 -51.99 -6.19 52.36 6.44 0.367 1.21\n", + " 118 76 77 -61.15 -21.04 63.21 24.39 2.055 6.85\n", + " 119 69 77 62.21 6.78 -61.05 -13.80 1.160 3.79\n", + " 120 75 77 -34.61 -9.55 35.41 7.38 0.803 2.67\n", + " 121 77 78 45.39 6.61 -45.32 -7.63 0.079 0.26\n", + " 122 78 79 -25.68 -18.37 25.74 17.95 0.053 0.24\n", + " 123 77 80 -96.57 -37.41 98.34 37.53 1.773 5.06\n", + " 124 77 80 -44.37 -20.55 45.05 20.59 0.681 2.43\n", + " 125 79 80 -64.74 -29.58 65.50 31.08 0.767 3.46\n", + " 126 68 81 -44.15 -4.61 44.20 -75.54 0.056 0.65\n", + " 127 81 80 -44.20 75.54 44.20 -73.05 0.000 2.49\n", + " 128 77 82 -3.03 17.55 3.17 -25.28 0.141 0.40\n", + " 129 82 83 -47.22 24.39 47.56 -26.99 0.335 1.09\n", + " 130 83 84 -24.79 14.69 25.35 -15.99 0.560 1.18\n", + " 131 83 85 -42.77 12.00 43.67 -12.29 0.895 3.08\n", + " 132 84 85 -36.35 8.99 36.79 -9.24 0.445 0.94\n", + " 133 85 86 17.17 -7.35 -17.05 5.09 0.119 0.42\n", + " 134 86 87 -3.95 -15.09 4.00 11.02 0.053 0.39\n", + " 135 85 88 -50.39 7.60 50.93 -7.53 0.540 2.75\n", + " 136 85 89 -71.24 0.68 72.49 3.73 1.252 9.06\n", + " 137 88 89 -98.93 -2.47 100.33 7.70 1.396 7.15\n", + " 138 89 90 58.22 -4.72 -56.48 5.81 1.740 6.32\n", + " 139 89 90 110.83 -5.44 -107.93 7.07 2.894 12.12\n", + " 140 90 91 1.41 4.42 -1.40 -6.46 0.008 0.03\n", + " 141 89 92 201.54 -2.10 -197.56 16.96 3.981 20.31\n", + " 142 89 92 63.59 -5.07 -62.02 7.29 1.577 6.34\n", + " 143 91 92 -8.60 -6.63 8.64 3.59 0.040 0.13\n", + " 144 92 93 57.62 -11.66 -56.72 12.50 0.904 2.97\n", + " 145 92 94 52.17 -15.21 -50.75 15.91 1.422 4.67\n", + " 146 93 94 44.72 -19.50 -44.18 19.44 0.539 1.77\n", + " 147 94 95 40.86 9.01 -40.62 -9.31 0.237 0.78\n", + " 148 80 96 18.97 21.07 -18.66 -24.62 0.304 1.55\n", + " 149 82 96 -9.94 -6.57 9.96 1.29 0.019 0.06\n", + " 150 94 96 19.79 -9.82 -19.66 7.98 0.128 0.41\n", + " 151 80 97 26.42 25.75 -26.18 -27.19 0.243 1.24\n", + " 152 80 98 28.95 8.32 -28.74 -10.43 0.206 0.93\n", + " 153 80 99 19.56 8.17 -19.35 -12.94 0.213 0.96\n", + " 154 92 100 31.50 -16.53 -30.71 15.37 0.790 3.59\n", + " 155 94 100 4.28 -50.54 -3.87 45.81 0.415 1.35\n", + " 156 95 96 -1.38 -21.69 1.45 20.51 0.079 0.25\n", + " 157 96 97 -11.10 -20.16 11.18 18.19 0.085 0.43\n", + " 158 98 100 -5.26 2.43 5.28 -7.30 0.020 0.09\n", + " 159 99 100 -22.65 -4.59 22.74 2.79 0.093 0.42\n", + " 160 100 101 -16.74 22.90 16.98 -25.13 0.237 1.08\n", + " 161 92 102 44.65 -8.39 -44.39 8.13 0.258 1.17\n", + " 162 101 102 -38.98 10.13 39.39 -11.13 0.414 1.88\n", + " 163 100 103 121.75 -22.15 -119.40 24.36 2.351 7.72\n", + " 164 100 104 56.18 10.65 -54.73 -9.41 1.455 6.58\n", + " 165 103 104 32.45 13.87 -31.85 -15.83 0.597 2.03\n", + " 166 103 105 43.35 12.85 -42.25 -13.48 1.103 3.35\n", + " 167 100 106 60.36 9.48 -58.14 -7.12 2.225 8.42\n", + " 168 104 105 48.58 2.63 -48.33 -2.61 0.250 0.95\n", + " 169 105 106 8.86 3.88 -8.85 -5.15 0.015 0.06\n", + " 170 105 107 26.75 -2.37 -26.35 -0.55 0.407 1.41\n", + " 171 105 108 23.97 -11.13 -23.77 9.92 0.191 0.51\n", + " 172 106 107 23.98 -3.73 -23.65 0.55 0.331 1.14\n", + " 173 108 109 21.77 -10.92 -21.71 10.39 0.066 0.18\n", + " 174 103 110 60.60 8.35 -59.15 -6.15 1.450 6.73\n", + " 175 109 110 13.71 -13.39 -13.61 11.77 0.102 0.28\n", + " 176 110 111 -35.70 0.96 36.00 -1.84 0.297 1.02\n", + " 177 110 112 69.46 -30.61 -68.00 28.51 1.459 3.78\n", + " 178 17 113 2.06 5.90 -2.05 -6.65 0.004 0.01\n", + " 179 32 113 4.12 -17.80 -3.95 13.40 0.168 0.56\n", + " 180 32 114 9.37 1.78 -9.36 -3.22 0.014 0.06\n", + " 181 27 115 20.72 5.06 -20.64 -6.53 0.081 0.37\n", + " 182 114 115 1.36 0.22 -1.36 -0.47 0.000 0.00\n", + " 183 68 116 184.13 -66.36 -184.00 51.32 0.126 1.50\n", + " 184 12 117 20.15 5.20 -20.00 -8.00 0.153 0.65\n", + " 185 75 118 40.21 23.59 -39.87 -23.56 0.341 1.13\n", + " 186 76 118 -6.85 -9.69 6.87 8.56 0.024 0.08\n", + " -------- --------\n", + " Total: 132.863 783.79\n" + ] + } + ], + "source": [ + "_ = m.runpf(cf.to_mpc())" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "env", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.12.7" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/tests/results/case118/branch.csv b/tests/results/case118/branch.csv new file mode 100644 index 0000000..fa5cbe1 --- /dev/null +++ b/tests/results/case118/branch.csv @@ -0,0 +1,187 @@ +,F_BUS,T_BUS,BR_R,BR_X,BR_B,RATE_A,RATE_B,RATE_C,TAP,SHIFT,BR_STATUS,ANGMIN,ANGMAX +1,1,2,0.0303,0.0999,0.0254,0,0,0,0.0,0,1,-360,360 +2,1,3,0.0129,0.0424,0.01082,0,0,0,0.0,0,1,-360,360 +3,4,5,0.00176,0.00798,0.0021,0,0,0,0.0,0,1,-360,360 +4,3,5,0.0241,0.108,0.0284,0,0,0,0.0,0,1,-360,360 +5,5,6,0.0119,0.054,0.01426,0,0,0,0.0,0,1,-360,360 +6,6,7,0.00459,0.0208,0.0055,0,0,0,0.0,0,1,-360,360 +7,8,9,0.00244,0.0305,1.162,0,0,0,0.0,0,1,-360,360 +8,8,5,0.0,0.0267,0.0,0,0,0,0.985,0,1,-360,360 +9,9,10,0.00258,0.0322,1.23,0,0,0,0.0,0,1,-360,360 +10,4,11,0.0209,0.0688,0.01748,0,0,0,0.0,0,1,-360,360 +11,5,11,0.0203,0.0682,0.01738,0,0,0,0.0,0,1,-360,360 +12,11,12,0.00595,0.0196,0.00502,0,0,0,0.0,0,1,-360,360 +13,2,12,0.0187,0.0616,0.01572,0,0,0,0.0,0,1,-360,360 +14,3,12,0.0484,0.16,0.0406,0,0,0,0.0,0,1,-360,360 +15,7,12,0.00862,0.034,0.00874,0,0,0,0.0,0,1,-360,360 +16,11,13,0.02225,0.0731,0.01876,0,0,0,0.0,0,1,-360,360 +17,12,14,0.0215,0.0707,0.01816,0,0,0,0.0,0,1,-360,360 +18,13,15,0.0744,0.2444,0.06268,0,0,0,0.0,0,1,-360,360 +19,14,15,0.0595,0.195,0.0502,0,0,0,0.0,0,1,-360,360 +20,12,16,0.0212,0.0834,0.0214,0,0,0,0.0,0,1,-360,360 +21,15,17,0.0132,0.0437,0.0444,0,0,0,0.0,0,1,-360,360 +22,16,17,0.0454,0.1801,0.0466,0,0,0,0.0,0,1,-360,360 +23,17,18,0.0123,0.0505,0.01298,0,0,0,0.0,0,1,-360,360 +24,18,19,0.01119,0.0493,0.01142,0,0,0,0.0,0,1,-360,360 +25,19,20,0.0252,0.117,0.0298,0,0,0,0.0,0,1,-360,360 +26,15,19,0.012,0.0394,0.0101,0,0,0,0.0,0,1,-360,360 +27,20,21,0.0183,0.0849,0.0216,0,0,0,0.0,0,1,-360,360 +28,21,22,0.0209,0.097,0.0246,0,0,0,0.0,0,1,-360,360 +29,22,23,0.0342,0.159,0.0404,0,0,0,0.0,0,1,-360,360 +30,23,24,0.0135,0.0492,0.0498,0,0,0,0.0,0,1,-360,360 +31,23,25,0.0156,0.08,0.0864,0,0,0,0.0,0,1,-360,360 +32,26,25,0.0,0.0382,0.0,0,0,0,0.96,0,1,-360,360 +33,25,27,0.0318,0.163,0.1764,0,0,0,0.0,0,1,-360,360 +34,27,28,0.01913,0.0855,0.0216,0,0,0,0.0,0,1,-360,360 +35,28,29,0.0237,0.0943,0.0238,0,0,0,0.0,0,1,-360,360 +36,30,17,0.0,0.0388,0.0,0,0,0,0.96,0,1,-360,360 +37,8,30,0.00431,0.0504,0.514,0,0,0,0.0,0,1,-360,360 +38,26,30,0.00799,0.086,0.908,0,0,0,0.0,0,1,-360,360 +39,17,31,0.0474,0.1563,0.0399,0,0,0,0.0,0,1,-360,360 +40,29,31,0.0108,0.0331,0.0083,0,0,0,0.0,0,1,-360,360 +41,23,32,0.0317,0.1153,0.1173,0,0,0,0.0,0,1,-360,360 +42,31,32,0.0298,0.0985,0.0251,0,0,0,0.0,0,1,-360,360 +43,27,32,0.0229,0.0755,0.01926,0,0,0,0.0,0,1,-360,360 +44,15,33,0.038,0.1244,0.03194,0,0,0,0.0,0,1,-360,360 +45,19,34,0.0752,0.247,0.0632,0,0,0,0.0,0,1,-360,360 +46,35,36,0.00224,0.0102,0.00268,0,0,0,0.0,0,1,-360,360 +47,35,37,0.011,0.0497,0.01318,0,0,0,0.0,0,1,-360,360 +48,33,37,0.0415,0.142,0.0366,0,0,0,0.0,0,1,-360,360 +49,34,36,0.00871,0.0268,0.00568,0,0,0,0.0,0,1,-360,360 +50,34,37,0.00256,0.0094,0.00984,0,0,0,0.0,0,1,-360,360 +51,38,37,0.0,0.0375,0.0,0,0,0,0.935,0,1,-360,360 +52,37,39,0.0321,0.106,0.027,0,0,0,0.0,0,1,-360,360 +53,37,40,0.0593,0.168,0.042,0,0,0,0.0,0,1,-360,360 +54,30,38,0.00464,0.054,0.422,0,0,0,0.0,0,1,-360,360 +55,39,40,0.0184,0.0605,0.01552,0,0,0,0.0,0,1,-360,360 +56,40,41,0.0145,0.0487,0.01222,0,0,0,0.0,0,1,-360,360 +57,40,42,0.0555,0.183,0.0466,0,0,0,0.0,0,1,-360,360 +58,41,42,0.041,0.135,0.0344,0,0,0,0.0,0,1,-360,360 +59,43,44,0.0608,0.2454,0.06068,0,0,0,0.0,0,1,-360,360 +60,34,43,0.0413,0.1681,0.04226,0,0,0,0.0,0,1,-360,360 +61,44,45,0.0224,0.0901,0.0224,0,0,0,0.0,0,1,-360,360 +62,45,46,0.04,0.1356,0.0332,0,0,0,0.0,0,1,-360,360 +63,46,47,0.038,0.127,0.0316,0,0,0,0.0,0,1,-360,360 +64,46,48,0.0601,0.189,0.0472,0,0,0,0.0,0,1,-360,360 +65,47,49,0.0191,0.0625,0.01604,0,0,0,0.0,0,1,-360,360 +66,42,49,0.0715,0.323,0.086,0,0,0,0.0,0,1,-360,360 +67,42,49,0.0715,0.323,0.086,0,0,0,0.0,0,1,-360,360 +68,45,49,0.0684,0.186,0.0444,0,0,0,0.0,0,1,-360,360 +69,48,49,0.0179,0.0505,0.01258,0,0,0,0.0,0,1,-360,360 +70,49,50,0.0267,0.0752,0.01874,0,0,0,0.0,0,1,-360,360 +71,49,51,0.0486,0.137,0.0342,0,0,0,0.0,0,1,-360,360 +72,51,52,0.0203,0.0588,0.01396,0,0,0,0.0,0,1,-360,360 +73,52,53,0.0405,0.1635,0.04058,0,0,0,0.0,0,1,-360,360 +74,53,54,0.0263,0.122,0.031,0,0,0,0.0,0,1,-360,360 +75,49,54,0.073,0.289,0.0738,0,0,0,0.0,0,1,-360,360 +76,49,54,0.0869,0.291,0.073,0,0,0,0.0,0,1,-360,360 +77,54,55,0.0169,0.0707,0.0202,0,0,0,0.0,0,1,-360,360 +78,54,56,0.00275,0.00955,0.00732,0,0,0,0.0,0,1,-360,360 +79,55,56,0.00488,0.0151,0.00374,0,0,0,0.0,0,1,-360,360 +80,56,57,0.0343,0.0966,0.0242,0,0,0,0.0,0,1,-360,360 +81,50,57,0.0474,0.134,0.0332,0,0,0,0.0,0,1,-360,360 +82,56,58,0.0343,0.0966,0.0242,0,0,0,0.0,0,1,-360,360 +83,51,58,0.0255,0.0719,0.01788,0,0,0,0.0,0,1,-360,360 +84,54,59,0.0503,0.2293,0.0598,0,0,0,0.0,0,1,-360,360 +85,56,59,0.0825,0.251,0.0569,0,0,0,0.0,0,1,-360,360 +86,56,59,0.0803,0.239,0.0536,0,0,0,0.0,0,1,-360,360 +87,55,59,0.04739,0.2158,0.05646,0,0,0,0.0,0,1,-360,360 +88,59,60,0.0317,0.145,0.0376,0,0,0,0.0,0,1,-360,360 +89,59,61,0.0328,0.15,0.0388,0,0,0,0.0,0,1,-360,360 +90,60,61,0.00264,0.0135,0.01456,0,0,0,0.0,0,1,-360,360 +91,60,62,0.0123,0.0561,0.01468,0,0,0,0.0,0,1,-360,360 +92,61,62,0.00824,0.0376,0.0098,0,0,0,0.0,0,1,-360,360 +93,63,59,0.0,0.0386,0.0,0,0,0,0.96,0,1,-360,360 +94,63,64,0.00172,0.02,0.216,0,0,0,0.0,0,1,-360,360 +95,64,61,0.0,0.0268,0.0,0,0,0,0.985,0,1,-360,360 +96,38,65,0.00901,0.0986,1.046,0,0,0,0.0,0,1,-360,360 +97,64,65,0.00269,0.0302,0.38,0,0,0,0.0,0,1,-360,360 +98,49,66,0.018,0.0919,0.0248,0,0,0,0.0,0,1,-360,360 +99,49,66,0.018,0.0919,0.0248,0,0,0,0.0,0,1,-360,360 +100,62,66,0.0482,0.218,0.0578,0,0,0,0.0,0,1,-360,360 +101,62,67,0.0258,0.117,0.031,0,0,0,0.0,0,1,-360,360 +102,65,66,0.0,0.037,0.0,0,0,0,0.935,0,1,-360,360 +103,66,67,0.0224,0.1015,0.02682,0,0,0,0.0,0,1,-360,360 +104,65,68,0.00138,0.016,0.638,0,0,0,0.0,0,1,-360,360 +105,47,69,0.0844,0.2778,0.07092,0,0,0,0.0,0,1,-360,360 +106,49,69,0.0985,0.324,0.0828,0,0,0,0.0,0,1,-360,360 +107,68,69,0.0,0.037,0.0,0,0,0,0.935,0,1,-360,360 +108,69,70,0.03,0.127,0.122,0,0,0,0.0,0,1,-360,360 +109,24,70,0.00221,0.4115,0.10198,0,0,0,0.0,0,1,-360,360 +110,70,71,0.00882,0.0355,0.00878,0,0,0,0.0,0,1,-360,360 +111,24,72,0.0488,0.196,0.0488,0,0,0,0.0,0,1,-360,360 +112,71,72,0.0446,0.18,0.04444,0,0,0,0.0,0,1,-360,360 +113,71,73,0.00866,0.0454,0.01178,0,0,0,0.0,0,1,-360,360 +114,70,74,0.0401,0.1323,0.03368,0,0,0,0.0,0,1,-360,360 +115,70,75,0.0428,0.141,0.036,0,0,0,0.0,0,1,-360,360 +116,69,75,0.0405,0.122,0.124,0,0,0,0.0,0,1,-360,360 +117,74,75,0.0123,0.0406,0.01034,0,0,0,0.0,0,1,-360,360 +118,76,77,0.0444,0.148,0.0368,0,0,0,0.0,0,1,-360,360 +119,69,77,0.0309,0.101,0.1038,0,0,0,0.0,0,1,-360,360 +120,75,77,0.0601,0.1999,0.04978,0,0,0,0.0,0,1,-360,360 +121,77,78,0.00376,0.0124,0.01264,0,0,0,0.0,0,1,-360,360 +122,78,79,0.00546,0.0244,0.00648,0,0,0,0.0,0,1,-360,360 +123,77,80,0.017,0.0485,0.0472,0,0,0,0.0,0,1,-360,360 +124,77,80,0.0294,0.105,0.0228,0,0,0,0.0,0,1,-360,360 +125,79,80,0.0156,0.0704,0.0187,0,0,0,0.0,0,1,-360,360 +126,68,81,0.00175,0.0202,0.808,0,0,0,0.0,0,1,-360,360 +127,81,80,0.0,0.037,0.0,0,0,0,0.935,0,1,-360,360 +128,77,82,0.0298,0.0853,0.08174,0,0,0,0.0,0,1,-360,360 +129,82,83,0.0112,0.03665,0.03796,0,0,0,0.0,0,1,-360,360 +130,83,84,0.0625,0.132,0.0258,0,0,0,0.0,0,1,-360,360 +131,83,85,0.043,0.148,0.0348,0,0,0,0.0,0,1,-360,360 +132,84,85,0.0302,0.0641,0.01234,0,0,0,0.0,0,1,-360,360 +133,85,86,0.035,0.123,0.0276,0,0,0,0.0,0,1,-360,360 +134,86,87,0.02828,0.2074,0.0445,0,0,0,1.0,0,1,-360,360 +135,85,88,0.02,0.102,0.0276,0,0,0,0.0,0,1,-360,360 +136,85,89,0.0239,0.173,0.047,0,0,0,0.0,0,1,-360,360 +137,88,89,0.0139,0.0712,0.01934,0,0,0,0.0,0,1,-360,360 +138,89,90,0.0518,0.188,0.0528,0,0,0,0.0,0,1,-360,360 +139,89,90,0.0238,0.0997,0.106,0,0,0,0.0,0,1,-360,360 +140,90,91,0.0254,0.0836,0.0214,0,0,0,0.0,0,1,-360,360 +141,89,92,0.0099,0.0505,0.0548,0,0,0,0.0,0,1,-360,360 +142,89,92,0.0393,0.1581,0.0414,0,0,0,0.0,0,1,-360,360 +143,91,92,0.0387,0.1272,0.03268,0,0,0,0.0,0,1,-360,360 +144,92,93,0.0258,0.0848,0.0218,0,0,0,0.0,0,1,-360,360 +145,92,94,0.0481,0.158,0.0406,0,0,0,0.0,0,1,-360,360 +146,93,94,0.0223,0.0732,0.01876,0,0,0,0.0,0,1,-360,360 +147,94,95,0.0132,0.0434,0.0111,0,0,0,0.0,0,1,-360,360 +148,80,96,0.0356,0.182,0.0494,0,0,0,0.0,0,1,-360,360 +149,82,96,0.0162,0.053,0.0544,0,0,0,0.0,0,1,-360,360 +150,94,96,0.0269,0.0869,0.023,0,0,0,0.0,0,1,-360,360 +151,80,97,0.0183,0.0934,0.0254,0,0,0,0.0,0,1,-360,360 +152,80,98,0.0238,0.108,0.0286,0,0,0,0.0,0,1,-360,360 +153,80,99,0.0454,0.206,0.0546,0,0,0,0.0,0,1,-360,360 +154,92,100,0.0648,0.295,0.0472,0,0,0,0.0,0,1,-360,360 +155,94,100,0.0178,0.058,0.0604,0,0,0,0.0,0,1,-360,360 +156,95,96,0.0171,0.0547,0.01474,0,0,0,0.0,0,1,-360,360 +157,96,97,0.0173,0.0885,0.024,0,0,0,0.0,0,1,-360,360 +158,98,100,0.0397,0.179,0.0476,0,0,0,0.0,0,1,-360,360 +159,99,100,0.018,0.0813,0.0216,0,0,0,0.0,0,1,-360,360 +160,100,101,0.0277,0.1262,0.0328,0,0,0,0.0,0,1,-360,360 +161,92,102,0.0123,0.0559,0.01464,0,0,0,0.0,0,1,-360,360 +162,101,102,0.0246,0.112,0.0294,0,0,0,0.0,0,1,-360,360 +163,100,103,0.016,0.0525,0.0536,0,0,0,0.0,0,1,-360,360 +164,100,104,0.0451,0.204,0.0541,0,0,0,0.0,0,1,-360,360 +165,103,104,0.0466,0.1584,0.0407,0,0,0,0.0,0,1,-360,360 +166,103,105,0.0535,0.1625,0.0408,0,0,0,0.0,0,1,-360,360 +167,100,106,0.0605,0.229,0.062,0,0,0,0.0,0,1,-360,360 +168,104,105,0.00994,0.0378,0.00986,0,0,0,0.0,0,1,-360,360 +169,105,106,0.014,0.0547,0.01434,0,0,0,0.0,0,1,-360,360 +170,105,107,0.053,0.183,0.0472,0,0,0,0.0,0,1,-360,360 +171,105,108,0.0261,0.0703,0.01844,0,0,0,0.0,0,1,-360,360 +172,106,107,0.053,0.183,0.0472,0,0,0,0.0,0,1,-360,360 +173,108,109,0.0105,0.0288,0.0076,0,0,0,0.0,0,1,-360,360 +174,103,110,0.03906,0.1813,0.0461,0,0,0,0.0,0,1,-360,360 +175,109,110,0.0278,0.0762,0.0202,0,0,0,0.0,0,1,-360,360 +176,110,111,0.022,0.0755,0.02,0,0,0,0.0,0,1,-360,360 +177,110,112,0.0247,0.064,0.062,0,0,0,0.0,0,1,-360,360 +178,17,113,0.00913,0.0301,0.00768,0,0,0,0.0,0,1,-360,360 +179,32,113,0.0615,0.203,0.0518,0,0,0,0.0,0,1,-360,360 +180,32,114,0.0135,0.0612,0.01628,0,0,0,0.0,0,1,-360,360 +181,27,115,0.0164,0.0741,0.01972,0,0,0,0.0,0,1,-360,360 +182,114,115,0.0023,0.0104,0.00276,0,0,0,0.0,0,1,-360,360 +183,68,116,0.00034,0.00405,0.164,0,0,0,1.0,0,1,-360,360 +184,12,117,0.0329,0.14,0.0358,0,0,0,0.0,0,1,-360,360 +185,75,118,0.0145,0.0481,0.01198,0,0,0,0.0,0,1,-360,360 +186,76,118,0.0164,0.0544,0.01356,0,0,0,0.0,0,1,-360,360 diff --git a/tests/results/case118/bus.csv b/tests/results/case118/bus.csv new file mode 100644 index 0000000..9a718c6 --- /dev/null +++ b/tests/results/case118/bus.csv @@ -0,0 +1,119 @@ +bus_name,BUS_I,BUS_TYPE,PD,QD,GS,BS,BUS_AREA,VM,VA,BASE_KV,ZONE,VMAX,VMIN +Riversde V2,1,2,51,27,0,0,1,0.955,10.67,138,1,1.06,0.94 +Pokagon V2,2,1,20,9,0,0,1,0.971,11.22,138,1,1.06,0.94 +HickryCk V2,3,1,39,10,0,0,1,0.968,11.56,138,1,1.06,0.94 +NwCarlsl V2,4,2,39,12,0,0,1,0.998,15.28,138,1,1.06,0.94 +Olive V2,5,1,0,0,0,-40,1,1.002,15.73,138,1,1.06,0.94 +Kankakee V2,6,2,52,22,0,0,1,0.99,13.0,138,1,1.06,0.94 +JacksnRd V2,7,1,19,2,0,0,1,0.989,12.56,138,1,1.06,0.94 +Olive V1,8,2,28,0,0,0,1,1.015,20.77,345,1,1.06,0.94 +Bequine V1,9,1,0,0,0,0,1,1.043,28.02,345,1,1.06,0.94 +Breed V1,10,2,0,0,0,0,1,1.05,35.61,345,1,1.06,0.94 +SouthBnd V2,11,1,70,23,0,0,1,0.985,12.72,138,1,1.06,0.94 +TwinBrch V2,12,2,47,10,0,0,1,0.99,12.2,138,1,1.06,0.94 +Concord V2,13,1,34,16,0,0,1,0.968,11.35,138,1,1.06,0.94 +GoshenJt V2,14,1,14,1,0,0,1,0.984,11.5,138,1,1.06,0.94 +FtWayne V2,15,2,90,30,0,0,1,0.97,11.23,138,1,1.06,0.94 +N. E. V2,16,1,25,10,0,0,1,0.984,11.91,138,1,1.06,0.94 +Sorenson V2,17,1,11,3,0,0,1,0.995,13.74,138,1,1.06,0.94 +McKinley V2,18,2,60,34,0,0,1,0.973,11.53,138,1,1.06,0.94 +Lincoln V2,19,2,45,25,0,0,1,0.963,11.05,138,1,1.06,0.94 +Adams V2,20,1,18,3,0,0,1,0.958,11.93,138,1,1.06,0.94 +Jay V2,21,1,14,8,0,0,1,0.959,13.52,138,1,1.06,0.94 +Randolph V2,22,1,10,5,0,0,1,0.97,16.08,138,1,1.06,0.94 +CollCrnr V2,23,1,7,3,0,0,1,1.0,21.0,138,1,1.06,0.94 +Trenton V2,24,2,13,0,0,0,1,0.992,20.89,138,1,1.06,0.94 +TannrsCk V2,25,2,0,0,0,0,1,1.05,27.93,138,1,1.06,0.94 +TannrsCk V1,26,2,0,0,0,0,1,1.015,29.71,345,1,1.06,0.94 +Madison V2,27,2,71,13,0,0,1,0.968,15.35,138,1,1.06,0.94 +Mullin V2,28,1,17,7,0,0,1,0.962,13.62,138,1,1.06,0.94 +Grant V2,29,1,24,4,0,0,1,0.963,12.63,138,1,1.06,0.94 +Sorenson V1,30,1,0,0,0,0,1,0.968,18.79,345,1,1.06,0.94 +DeerCrk V2,31,2,43,27,0,0,1,0.967,12.75,138,1,1.06,0.94 +Delaware V2,32,2,59,23,0,0,1,0.964,14.8,138,1,1.06,0.94 +Haviland V2,33,1,23,9,0,0,1,0.972,10.63,138,1,1.06,0.94 +Rockhill V2,34,2,59,26,0,14,1,0.986,11.3,138,1,1.06,0.94 +WestLima V2,35,1,33,9,0,0,1,0.981,10.87,138,1,1.06,0.94 +Sterling V2,36,2,31,17,0,0,1,0.98,10.87,138,1,1.06,0.94 +EastLima V2,37,1,0,0,0,-25,1,0.992,11.77,138,1,1.06,0.94 +EastLima V1,38,1,0,0,0,0,1,0.962,16.91,345,1,1.06,0.94 +NwLibrty V2,39,1,27,11,0,0,1,0.97,8.41,138,1,1.06,0.94 +West End V2,40,2,66,23,0,0,1,0.97,7.35,138,1,1.06,0.94 +S.Tiffin V2,41,1,37,10,0,0,1,0.967,6.92,138,1,1.06,0.94 +Howard V2,42,2,96,23,0,0,1,0.985,8.53,138,1,1.06,0.94 +S.Kenton V2,43,1,18,7,0,0,1,0.978,11.28,138,1,1.06,0.94 +WMVernon V2,44,1,16,8,0,10,1,0.985,13.82,138,1,1.06,0.94 +N.Newark V2,45,1,53,22,0,10,1,0.987,15.67,138,1,1.06,0.94 +W.Lancst V2,46,2,28,10,0,10,1,1.005,18.49,138,1,1.06,0.94 +Crooksvl V2,47,1,34,0,0,0,1,1.017,20.73,138,1,1.06,0.94 +Zanesvll V2,48,1,20,11,0,15,1,1.021,19.93,138,1,1.06,0.94 +Philo V2,49,2,87,30,0,0,1,1.025,20.94,138,1,1.06,0.94 +WCambrdg V2,50,1,17,4,0,0,1,1.001,18.9,138,1,1.06,0.94 +Newcmrst V2,51,1,17,8,0,0,1,0.967,16.28,138,1,1.06,0.94 +SCoshoct V2,52,1,18,5,0,0,1,0.957,15.32,138,1,1.06,0.94 +Wooster V2,53,1,23,11,0,0,1,0.946,14.35,138,1,1.06,0.94 +Torrey V2,54,2,113,32,0,0,1,0.955,15.26,138,1,1.06,0.94 +Wagenhls V2,55,2,63,22,0,0,1,0.952,14.97,138,1,1.06,0.94 +Sunnysde V2,56,2,84,18,0,0,1,0.954,15.16,138,1,1.06,0.94 +WNwPhil1 V2,57,1,12,3,0,0,1,0.971,16.36,138,1,1.06,0.94 +WNwPhil2 V2,58,1,12,3,0,0,1,0.959,15.51,138,1,1.06,0.94 +Tidd V2,59,2,277,113,0,0,1,0.985,19.37,138,1,1.06,0.94 +SWKammer V2,60,1,78,3,0,0,1,0.993,23.15,138,1,1.06,0.94 +W.Kammer V2,61,2,0,0,0,0,1,0.995,24.04,138,1,1.06,0.94 +Natrium V2,62,2,77,14,0,0,1,0.998,23.43,138,1,1.06,0.94 +Tidd V1,63,1,0,0,0,0,1,0.969,22.75,345,1,1.06,0.94 +Kammer V1,64,1,0,0,0,0,1,0.984,24.52,345,1,1.06,0.94 +Muskngum V1,65,2,0,0,0,0,1,1.005,27.65,345,1,1.06,0.94 +Muskngum V2,66,2,39,18,0,0,1,1.05,27.48,138,1,1.06,0.94 +Summerfl V2,67,1,28,7,0,0,1,1.02,24.84,138,1,1.06,0.94 +Sporn V1,68,1,0,0,0,0,1,1.003,27.55,345,1,1.06,0.94 +Sporn V2,69,3,0,0,0,0,1,1.035,30.0,138,1,1.06,0.94 +Portsmth V2,70,2,66,20,0,0,1,0.984,22.58,138,1,1.06,0.94 +NPortsmt V2,71,1,0,0,0,0,1,0.987,22.15,138,1,1.06,0.94 +Hillsbro V2,72,2,12,0,0,0,1,0.98,20.98,138,1,1.06,0.94 +Sargents V2,73,2,6,0,0,0,1,0.991,21.94,138,1,1.06,0.94 +Bellefnt V2,74,2,68,27,0,12,1,0.958,21.64,138,1,1.06,0.94 +SthPoint V2,75,1,47,11,0,0,1,0.967,22.91,138,1,1.06,0.94 +Darrah V2,76,2,68,36,0,0,1,0.943,21.77,138,1,1.06,0.94 +Turner V2,77,2,61,28,0,0,1,1.006,26.72,138,1,1.06,0.94 +Chemical V2,78,1,71,26,0,0,1,1.003,26.42,138,1,1.06,0.94 +CapitlHl V2,79,1,39,32,0,20,1,1.009,26.72,138,1,1.06,0.94 +CabinCrk V2,80,2,130,26,0,0,1,1.04,28.96,138,1,1.06,0.94 +Kanawha V1,81,1,0,0,0,0,1,0.997,28.1,345,1,1.06,0.94 +Logan V2,82,1,54,27,0,20,1,0.989,27.24,138,1,1.06,0.94 +Sprigg V2,83,1,20,10,0,10,1,0.985,28.42,138,1,1.06,0.94 +BetsyLne V2,84,1,11,7,0,0,1,0.98,30.95,138,1,1.06,0.94 +BeaverCk V2,85,2,24,15,0,0,1,0.985,32.51,138,1,1.06,0.94 +Hazard V2,86,1,21,10,0,0,1,0.987,31.14,138,1,1.06,0.94 +Pinevlle V3,87,2,0,0,0,0,1,1.015,31.4,161,1,1.06,0.94 +Fremont V2,88,1,48,10,0,0,1,0.987,35.64,138,1,1.06,0.94 +ClinchRv V2,89,2,0,0,0,0,1,1.005,39.69,138,1,1.06,0.94 +Holston V2,90,2,163,42,0,0,1,0.985,33.29,138,1,1.06,0.94 +HolstonT V2,91,2,10,0,0,0,1,0.98,33.31,138,1,1.06,0.94 +Saltvlle V2,92,2,65,10,0,0,1,0.993,33.8,138,1,1.06,0.94 +Tazewell V2,93,1,12,7,0,0,1,0.987,30.79,138,1,1.06,0.94 +Switchbk V2,94,1,30,16,0,0,1,0.991,28.64,138,1,1.06,0.94 +Caldwell V2,95,1,42,31,0,0,1,0.981,27.67,138,1,1.06,0.94 +Baileysv V2,96,1,38,15,0,0,1,0.993,27.51,138,1,1.06,0.94 +Sundial V2,97,1,15,9,0,0,1,1.011,27.88,138,1,1.06,0.94 +Bradley V2,98,1,34,8,0,0,1,1.024,27.4,138,1,1.06,0.94 +Hinton V2,99,2,42,0,0,0,1,1.01,27.04,138,1,1.06,0.94 +Glen Lyn V2,100,2,37,18,0,0,1,1.017,28.03,138,1,1.06,0.94 +Wythe V2,101,1,22,15,0,0,1,0.993,29.61,138,1,1.06,0.94 +Smythe V2,102,1,5,3,0,0,1,0.991,32.3,138,1,1.06,0.94 +Claytor V2,103,2,23,16,0,0,1,1.001,24.44,138,1,1.06,0.94 +Hancock V2,104,2,38,25,0,0,1,0.971,21.69,138,1,1.06,0.94 +Roanoke V2,105,2,31,26,0,20,1,0.965,20.57,138,1,1.06,0.94 +Cloverdl V2,106,1,43,16,0,0,1,0.962,20.32,138,1,1.06,0.94 +Reusens V2,107,2,50,12,0,6,1,0.952,17.53,138,1,1.06,0.94 +Blaine V2,108,1,2,1,0,0,1,0.967,19.38,138,1,1.06,0.94 +Franklin V2,109,1,8,3,0,0,1,0.967,18.93,138,1,1.06,0.94 +Fieldale V2,110,2,39,30,0,6,1,0.973,18.09,138,1,1.06,0.94 +DanRiver V2,111,2,0,0,0,0,1,0.98,19.74,138,1,1.06,0.94 +Danville V2,112,2,68,13,0,0,1,0.975,14.99,138,1,1.06,0.94 +Deer Crk V2,113,2,6,0,0,0,1,0.993,13.74,138,1,1.06,0.94 +WMedford V2,114,1,8,3,0,0,1,0.96,14.46,138,1,1.06,0.94 +Medford V2,115,1,22,7,0,0,1,0.96,14.46,138,1,1.06,0.94 +KygerCrk V2,116,2,184,0,0,0,1,1.005,27.12,138,1,1.06,0.94 +Corey V2,117,1,20,8,0,0,1,0.974,10.67,138,1,1.06,0.94 +WHuntngd V2,118,1,33,15,0,0,1,0.949,21.92,138,1,1.06,0.94 diff --git a/tests/results/case118/bus_name.csv b/tests/results/case118/bus_name.csv new file mode 100644 index 0000000..2a66912 --- /dev/null +++ b/tests/results/case118/bus_name.csv @@ -0,0 +1,119 @@ +,bus_name +0,Riversde V2 +1,Pokagon V2 +2,HickryCk V2 +3,NwCarlsl V2 +4,Olive V2 +5,Kankakee V2 +6,JacksnRd V2 +7,Olive V1 +8,Bequine V1 +9,Breed V1 +10,SouthBnd V2 +11,TwinBrch V2 +12,Concord V2 +13,GoshenJt V2 +14,FtWayne V2 +15,N. E. V2 +16,Sorenson V2 +17,McKinley V2 +18,Lincoln V2 +19,Adams V2 +20,Jay V2 +21,Randolph V2 +22,CollCrnr V2 +23,Trenton V2 +24,TannrsCk V2 +25,TannrsCk V1 +26,Madison V2 +27,Mullin V2 +28,Grant V2 +29,Sorenson V1 +30,DeerCrk V2 +31,Delaware V2 +32,Haviland V2 +33,Rockhill V2 +34,WestLima V2 +35,Sterling V2 +36,EastLima V2 +37,EastLima V1 +38,NwLibrty V2 +39,West End V2 +40,S.Tiffin V2 +41,Howard V2 +42,S.Kenton V2 +43,WMVernon V2 +44,N.Newark V2 +45,W.Lancst V2 +46,Crooksvl V2 +47,Zanesvll V2 +48,Philo V2 +49,WCambrdg V2 +50,Newcmrst V2 +51,SCoshoct V2 +52,Wooster V2 +53,Torrey V2 +54,Wagenhls V2 +55,Sunnysde V2 +56,WNwPhil1 V2 +57,WNwPhil2 V2 +58,Tidd V2 +59,SWKammer V2 +60,W.Kammer V2 +61,Natrium V2 +62,Tidd V1 +63,Kammer V1 +64,Muskngum V1 +65,Muskngum V2 +66,Summerfl V2 +67,Sporn V1 +68,Sporn V2 +69,Portsmth V2 +70,NPortsmt V2 +71,Hillsbro V2 +72,Sargents V2 +73,Bellefnt V2 +74,SthPoint V2 +75,Darrah V2 +76,Turner V2 +77,Chemical V2 +78,CapitlHl V2 +79,CabinCrk V2 +80,Kanawha V1 +81,Logan V2 +82,Sprigg V2 +83,BetsyLne V2 +84,BeaverCk V2 +85,Hazard V2 +86,Pinevlle V3 +87,Fremont V2 +88,ClinchRv V2 +89,Holston V2 +90,HolstonT V2 +91,Saltvlle V2 +92,Tazewell V2 +93,Switchbk V2 +94,Caldwell V2 +95,Baileysv V2 +96,Sundial V2 +97,Bradley V2 +98,Hinton V2 +99,Glen Lyn V2 +100,Wythe V2 +101,Smythe V2 +102,Claytor V2 +103,Hancock V2 +104,Roanoke V2 +105,Cloverdl V2 +106,Reusens V2 +107,Blaine V2 +108,Franklin V2 +109,Fieldale V2 +110,DanRiver V2 +111,Danville V2 +112,Deer Crk V2 +113,WMedford V2 +114,Medford V2 +115,KygerCrk V2 +116,Corey V2 +117,WHuntngd V2 diff --git a/tests/results/case118/gen.csv b/tests/results/case118/gen.csv new file mode 100644 index 0000000..a0fd3fa --- /dev/null +++ b/tests/results/case118/gen.csv @@ -0,0 +1,55 @@ +,GEN_BUS,PG,QG,QMAX,QMIN,VG,MBASE,GEN_STATUS,PMAX,PMIN,PC1,PC2,QC1MIN,QC1MAX,QC2MIN,QC2MAX,RAMP_AGC,RAMP_10,RAMP_30,RAMP_Q,APF +1,1,0.0,0,15,-5,0.955,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +2,4,0.0,0,300,-300,0.998,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +3,6,0.0,0,50,-13,0.99,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +4,8,0.0,0,300,-300,1.015,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +5,10,450.0,0,200,-147,1.05,100,1,550.0,0,0,0,0,0,0,0,0,0,0,0,0 +6,12,85.0,0,120,-35,0.99,100,1,185.0,0,0,0,0,0,0,0,0,0,0,0,0 +7,15,0.0,0,30,-10,0.97,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +8,18,0.0,0,50,-16,0.973,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +9,19,0.0,0,24,-8,0.962,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +10,24,0.0,0,300,-300,0.992,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +11,25,220.0,0,140,-47,1.05,100,1,320.0,0,0,0,0,0,0,0,0,0,0,0,0 +12,26,314.0,0,1000,-1000,1.015,100,1,414.0,0,0,0,0,0,0,0,0,0,0,0,0 +13,27,0.0,0,300,-300,0.968,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +14,31,7.0,0,300,-300,0.967,100,1,107.0,0,0,0,0,0,0,0,0,0,0,0,0 +15,32,0.0,0,42,-14,0.963,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +16,34,0.0,0,24,-8,0.984,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +17,36,0.0,0,24,-8,0.98,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +18,40,0.0,0,300,-300,0.97,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +19,42,0.0,0,300,-300,0.985,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +20,46,19.0,0,100,-100,1.005,100,1,119.0,0,0,0,0,0,0,0,0,0,0,0,0 +21,49,204.0,0,210,-85,1.025,100,1,304.0,0,0,0,0,0,0,0,0,0,0,0,0 +22,54,48.0,0,300,-300,0.955,100,1,148.0,0,0,0,0,0,0,0,0,0,0,0,0 +23,55,0.0,0,23,-8,0.952,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +24,56,0.0,0,15,-8,0.954,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +25,59,155.0,0,180,-60,0.985,100,1,255.0,0,0,0,0,0,0,0,0,0,0,0,0 +26,61,160.0,0,300,-100,0.995,100,1,260.0,0,0,0,0,0,0,0,0,0,0,0,0 +27,62,0.0,0,20,-20,0.998,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +28,65,391.0,0,200,-67,1.005,100,1,491.0,0,0,0,0,0,0,0,0,0,0,0,0 +29,66,392.0,0,200,-67,1.05,100,1,492.0,0,0,0,0,0,0,0,0,0,0,0,0 +30,69,516.4,0,300,-300,1.035,100,1,805.2,0,0,0,0,0,0,0,0,0,0,0,0 +31,70,0.0,0,32,-10,0.984,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +32,72,0.0,0,100,-100,0.98,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +33,73,0.0,0,100,-100,0.991,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +34,74,0.0,0,9,-6,0.958,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +35,76,0.0,0,23,-8,0.943,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +36,77,0.0,0,70,-20,1.006,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +37,80,477.0,0,280,-165,1.04,100,1,577.0,0,0,0,0,0,0,0,0,0,0,0,0 +38,85,0.0,0,23,-8,0.985,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +39,87,4.0,0,1000,-100,1.015,100,1,104.0,0,0,0,0,0,0,0,0,0,0,0,0 +40,89,607.0,0,300,-210,1.005,100,1,707.0,0,0,0,0,0,0,0,0,0,0,0,0 +41,90,0.0,0,300,-300,0.985,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +42,91,0.0,0,100,-100,0.98,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +43,92,0.0,0,9,-3,0.99,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +44,99,0.0,0,100,-100,1.01,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +45,100,252.0,0,155,-50,1.017,100,1,352.0,0,0,0,0,0,0,0,0,0,0,0,0 +46,103,40.0,0,40,-15,1.01,100,1,140.0,0,0,0,0,0,0,0,0,0,0,0,0 +47,104,0.0,0,23,-8,0.971,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +48,105,0.0,0,23,-8,0.965,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +49,107,0.0,0,200,-200,0.952,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +50,110,0.0,0,23,-8,0.973,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +51,111,36.0,0,1000,-100,0.98,100,1,136.0,0,0,0,0,0,0,0,0,0,0,0,0 +52,112,0.0,0,1000,-100,0.975,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +53,113,0.0,0,200,-100,0.993,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +54,116,0.0,0,1000,-1000,1.005,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 diff --git a/tests/results/case118/gencost.csv b/tests/results/case118/gencost.csv new file mode 100644 index 0000000..26fbdbe --- /dev/null +++ b/tests/results/case118/gencost.csv @@ -0,0 +1,55 @@ +,MODEL,STARTUP,SHUTDOWN,NCOST,COST_2,COST_1,COST_0 +1,2,0,0,3,0.01,40,0 +2,2,0,0,3,0.01,40,0 +3,2,0,0,3,0.01,40,0 +4,2,0,0,3,0.01,40,0 +5,2,0,0,3,0.0222222222,20,0 +6,2,0,0,3,0.117647059,20,0 +7,2,0,0,3,0.01,40,0 +8,2,0,0,3,0.01,40,0 +9,2,0,0,3,0.01,40,0 +10,2,0,0,3,0.01,40,0 +11,2,0,0,3,0.0454545455,20,0 +12,2,0,0,3,0.0318471338,20,0 +13,2,0,0,3,0.01,40,0 +14,2,0,0,3,1.42857143,20,0 +15,2,0,0,3,0.01,40,0 +16,2,0,0,3,0.01,40,0 +17,2,0,0,3,0.01,40,0 +18,2,0,0,3,0.01,40,0 +19,2,0,0,3,0.01,40,0 +20,2,0,0,3,0.526315789,20,0 +21,2,0,0,3,0.0490196078,20,0 +22,2,0,0,3,0.208333333,20,0 +23,2,0,0,3,0.01,40,0 +24,2,0,0,3,0.01,40,0 +25,2,0,0,3,0.064516129,20,0 +26,2,0,0,3,0.0625,20,0 +27,2,0,0,3,0.01,40,0 +28,2,0,0,3,0.0255754476,20,0 +29,2,0,0,3,0.0255102041,20,0 +30,2,0,0,3,0.0193648335,20,0 +31,2,0,0,3,0.01,40,0 +32,2,0,0,3,0.01,40,0 +33,2,0,0,3,0.01,40,0 +34,2,0,0,3,0.01,40,0 +35,2,0,0,3,0.01,40,0 +36,2,0,0,3,0.01,40,0 +37,2,0,0,3,0.0209643606,20,0 +38,2,0,0,3,0.01,40,0 +39,2,0,0,3,2.5,20,0 +40,2,0,0,3,0.0164744646,20,0 +41,2,0,0,3,0.01,40,0 +42,2,0,0,3,0.01,40,0 +43,2,0,0,3,0.01,40,0 +44,2,0,0,3,0.01,40,0 +45,2,0,0,3,0.0396825397,20,0 +46,2,0,0,3,0.25,20,0 +47,2,0,0,3,0.01,40,0 +48,2,0,0,3,0.01,40,0 +49,2,0,0,3,0.01,40,0 +50,2,0,0,3,0.01,40,0 +51,2,0,0,3,0.277777778,20,0 +52,2,0,0,3,0.01,40,0 +53,2,0,0,3,0.01,40,0 +54,2,0,0,3,0.01,40,0 diff --git a/tests/results/info.csv b/tests/results/case118/info.csv similarity index 100% rename from tests/results/info.csv rename to tests/results/case118/info.csv diff --git a/tests/results/case118_prefix_suffix/mpc.branch_test.csv b/tests/results/case118_prefix_suffix/mpc.branch_test.csv new file mode 100644 index 0000000..fa5cbe1 --- /dev/null +++ b/tests/results/case118_prefix_suffix/mpc.branch_test.csv @@ -0,0 +1,187 @@ +,F_BUS,T_BUS,BR_R,BR_X,BR_B,RATE_A,RATE_B,RATE_C,TAP,SHIFT,BR_STATUS,ANGMIN,ANGMAX +1,1,2,0.0303,0.0999,0.0254,0,0,0,0.0,0,1,-360,360 +2,1,3,0.0129,0.0424,0.01082,0,0,0,0.0,0,1,-360,360 +3,4,5,0.00176,0.00798,0.0021,0,0,0,0.0,0,1,-360,360 +4,3,5,0.0241,0.108,0.0284,0,0,0,0.0,0,1,-360,360 +5,5,6,0.0119,0.054,0.01426,0,0,0,0.0,0,1,-360,360 +6,6,7,0.00459,0.0208,0.0055,0,0,0,0.0,0,1,-360,360 +7,8,9,0.00244,0.0305,1.162,0,0,0,0.0,0,1,-360,360 +8,8,5,0.0,0.0267,0.0,0,0,0,0.985,0,1,-360,360 +9,9,10,0.00258,0.0322,1.23,0,0,0,0.0,0,1,-360,360 +10,4,11,0.0209,0.0688,0.01748,0,0,0,0.0,0,1,-360,360 +11,5,11,0.0203,0.0682,0.01738,0,0,0,0.0,0,1,-360,360 +12,11,12,0.00595,0.0196,0.00502,0,0,0,0.0,0,1,-360,360 +13,2,12,0.0187,0.0616,0.01572,0,0,0,0.0,0,1,-360,360 +14,3,12,0.0484,0.16,0.0406,0,0,0,0.0,0,1,-360,360 +15,7,12,0.00862,0.034,0.00874,0,0,0,0.0,0,1,-360,360 +16,11,13,0.02225,0.0731,0.01876,0,0,0,0.0,0,1,-360,360 +17,12,14,0.0215,0.0707,0.01816,0,0,0,0.0,0,1,-360,360 +18,13,15,0.0744,0.2444,0.06268,0,0,0,0.0,0,1,-360,360 +19,14,15,0.0595,0.195,0.0502,0,0,0,0.0,0,1,-360,360 +20,12,16,0.0212,0.0834,0.0214,0,0,0,0.0,0,1,-360,360 +21,15,17,0.0132,0.0437,0.0444,0,0,0,0.0,0,1,-360,360 +22,16,17,0.0454,0.1801,0.0466,0,0,0,0.0,0,1,-360,360 +23,17,18,0.0123,0.0505,0.01298,0,0,0,0.0,0,1,-360,360 +24,18,19,0.01119,0.0493,0.01142,0,0,0,0.0,0,1,-360,360 +25,19,20,0.0252,0.117,0.0298,0,0,0,0.0,0,1,-360,360 +26,15,19,0.012,0.0394,0.0101,0,0,0,0.0,0,1,-360,360 +27,20,21,0.0183,0.0849,0.0216,0,0,0,0.0,0,1,-360,360 +28,21,22,0.0209,0.097,0.0246,0,0,0,0.0,0,1,-360,360 +29,22,23,0.0342,0.159,0.0404,0,0,0,0.0,0,1,-360,360 +30,23,24,0.0135,0.0492,0.0498,0,0,0,0.0,0,1,-360,360 +31,23,25,0.0156,0.08,0.0864,0,0,0,0.0,0,1,-360,360 +32,26,25,0.0,0.0382,0.0,0,0,0,0.96,0,1,-360,360 +33,25,27,0.0318,0.163,0.1764,0,0,0,0.0,0,1,-360,360 +34,27,28,0.01913,0.0855,0.0216,0,0,0,0.0,0,1,-360,360 +35,28,29,0.0237,0.0943,0.0238,0,0,0,0.0,0,1,-360,360 +36,30,17,0.0,0.0388,0.0,0,0,0,0.96,0,1,-360,360 +37,8,30,0.00431,0.0504,0.514,0,0,0,0.0,0,1,-360,360 +38,26,30,0.00799,0.086,0.908,0,0,0,0.0,0,1,-360,360 +39,17,31,0.0474,0.1563,0.0399,0,0,0,0.0,0,1,-360,360 +40,29,31,0.0108,0.0331,0.0083,0,0,0,0.0,0,1,-360,360 +41,23,32,0.0317,0.1153,0.1173,0,0,0,0.0,0,1,-360,360 +42,31,32,0.0298,0.0985,0.0251,0,0,0,0.0,0,1,-360,360 +43,27,32,0.0229,0.0755,0.01926,0,0,0,0.0,0,1,-360,360 +44,15,33,0.038,0.1244,0.03194,0,0,0,0.0,0,1,-360,360 +45,19,34,0.0752,0.247,0.0632,0,0,0,0.0,0,1,-360,360 +46,35,36,0.00224,0.0102,0.00268,0,0,0,0.0,0,1,-360,360 +47,35,37,0.011,0.0497,0.01318,0,0,0,0.0,0,1,-360,360 +48,33,37,0.0415,0.142,0.0366,0,0,0,0.0,0,1,-360,360 +49,34,36,0.00871,0.0268,0.00568,0,0,0,0.0,0,1,-360,360 +50,34,37,0.00256,0.0094,0.00984,0,0,0,0.0,0,1,-360,360 +51,38,37,0.0,0.0375,0.0,0,0,0,0.935,0,1,-360,360 +52,37,39,0.0321,0.106,0.027,0,0,0,0.0,0,1,-360,360 +53,37,40,0.0593,0.168,0.042,0,0,0,0.0,0,1,-360,360 +54,30,38,0.00464,0.054,0.422,0,0,0,0.0,0,1,-360,360 +55,39,40,0.0184,0.0605,0.01552,0,0,0,0.0,0,1,-360,360 +56,40,41,0.0145,0.0487,0.01222,0,0,0,0.0,0,1,-360,360 +57,40,42,0.0555,0.183,0.0466,0,0,0,0.0,0,1,-360,360 +58,41,42,0.041,0.135,0.0344,0,0,0,0.0,0,1,-360,360 +59,43,44,0.0608,0.2454,0.06068,0,0,0,0.0,0,1,-360,360 +60,34,43,0.0413,0.1681,0.04226,0,0,0,0.0,0,1,-360,360 +61,44,45,0.0224,0.0901,0.0224,0,0,0,0.0,0,1,-360,360 +62,45,46,0.04,0.1356,0.0332,0,0,0,0.0,0,1,-360,360 +63,46,47,0.038,0.127,0.0316,0,0,0,0.0,0,1,-360,360 +64,46,48,0.0601,0.189,0.0472,0,0,0,0.0,0,1,-360,360 +65,47,49,0.0191,0.0625,0.01604,0,0,0,0.0,0,1,-360,360 +66,42,49,0.0715,0.323,0.086,0,0,0,0.0,0,1,-360,360 +67,42,49,0.0715,0.323,0.086,0,0,0,0.0,0,1,-360,360 +68,45,49,0.0684,0.186,0.0444,0,0,0,0.0,0,1,-360,360 +69,48,49,0.0179,0.0505,0.01258,0,0,0,0.0,0,1,-360,360 +70,49,50,0.0267,0.0752,0.01874,0,0,0,0.0,0,1,-360,360 +71,49,51,0.0486,0.137,0.0342,0,0,0,0.0,0,1,-360,360 +72,51,52,0.0203,0.0588,0.01396,0,0,0,0.0,0,1,-360,360 +73,52,53,0.0405,0.1635,0.04058,0,0,0,0.0,0,1,-360,360 +74,53,54,0.0263,0.122,0.031,0,0,0,0.0,0,1,-360,360 +75,49,54,0.073,0.289,0.0738,0,0,0,0.0,0,1,-360,360 +76,49,54,0.0869,0.291,0.073,0,0,0,0.0,0,1,-360,360 +77,54,55,0.0169,0.0707,0.0202,0,0,0,0.0,0,1,-360,360 +78,54,56,0.00275,0.00955,0.00732,0,0,0,0.0,0,1,-360,360 +79,55,56,0.00488,0.0151,0.00374,0,0,0,0.0,0,1,-360,360 +80,56,57,0.0343,0.0966,0.0242,0,0,0,0.0,0,1,-360,360 +81,50,57,0.0474,0.134,0.0332,0,0,0,0.0,0,1,-360,360 +82,56,58,0.0343,0.0966,0.0242,0,0,0,0.0,0,1,-360,360 +83,51,58,0.0255,0.0719,0.01788,0,0,0,0.0,0,1,-360,360 +84,54,59,0.0503,0.2293,0.0598,0,0,0,0.0,0,1,-360,360 +85,56,59,0.0825,0.251,0.0569,0,0,0,0.0,0,1,-360,360 +86,56,59,0.0803,0.239,0.0536,0,0,0,0.0,0,1,-360,360 +87,55,59,0.04739,0.2158,0.05646,0,0,0,0.0,0,1,-360,360 +88,59,60,0.0317,0.145,0.0376,0,0,0,0.0,0,1,-360,360 +89,59,61,0.0328,0.15,0.0388,0,0,0,0.0,0,1,-360,360 +90,60,61,0.00264,0.0135,0.01456,0,0,0,0.0,0,1,-360,360 +91,60,62,0.0123,0.0561,0.01468,0,0,0,0.0,0,1,-360,360 +92,61,62,0.00824,0.0376,0.0098,0,0,0,0.0,0,1,-360,360 +93,63,59,0.0,0.0386,0.0,0,0,0,0.96,0,1,-360,360 +94,63,64,0.00172,0.02,0.216,0,0,0,0.0,0,1,-360,360 +95,64,61,0.0,0.0268,0.0,0,0,0,0.985,0,1,-360,360 +96,38,65,0.00901,0.0986,1.046,0,0,0,0.0,0,1,-360,360 +97,64,65,0.00269,0.0302,0.38,0,0,0,0.0,0,1,-360,360 +98,49,66,0.018,0.0919,0.0248,0,0,0,0.0,0,1,-360,360 +99,49,66,0.018,0.0919,0.0248,0,0,0,0.0,0,1,-360,360 +100,62,66,0.0482,0.218,0.0578,0,0,0,0.0,0,1,-360,360 +101,62,67,0.0258,0.117,0.031,0,0,0,0.0,0,1,-360,360 +102,65,66,0.0,0.037,0.0,0,0,0,0.935,0,1,-360,360 +103,66,67,0.0224,0.1015,0.02682,0,0,0,0.0,0,1,-360,360 +104,65,68,0.00138,0.016,0.638,0,0,0,0.0,0,1,-360,360 +105,47,69,0.0844,0.2778,0.07092,0,0,0,0.0,0,1,-360,360 +106,49,69,0.0985,0.324,0.0828,0,0,0,0.0,0,1,-360,360 +107,68,69,0.0,0.037,0.0,0,0,0,0.935,0,1,-360,360 +108,69,70,0.03,0.127,0.122,0,0,0,0.0,0,1,-360,360 +109,24,70,0.00221,0.4115,0.10198,0,0,0,0.0,0,1,-360,360 +110,70,71,0.00882,0.0355,0.00878,0,0,0,0.0,0,1,-360,360 +111,24,72,0.0488,0.196,0.0488,0,0,0,0.0,0,1,-360,360 +112,71,72,0.0446,0.18,0.04444,0,0,0,0.0,0,1,-360,360 +113,71,73,0.00866,0.0454,0.01178,0,0,0,0.0,0,1,-360,360 +114,70,74,0.0401,0.1323,0.03368,0,0,0,0.0,0,1,-360,360 +115,70,75,0.0428,0.141,0.036,0,0,0,0.0,0,1,-360,360 +116,69,75,0.0405,0.122,0.124,0,0,0,0.0,0,1,-360,360 +117,74,75,0.0123,0.0406,0.01034,0,0,0,0.0,0,1,-360,360 +118,76,77,0.0444,0.148,0.0368,0,0,0,0.0,0,1,-360,360 +119,69,77,0.0309,0.101,0.1038,0,0,0,0.0,0,1,-360,360 +120,75,77,0.0601,0.1999,0.04978,0,0,0,0.0,0,1,-360,360 +121,77,78,0.00376,0.0124,0.01264,0,0,0,0.0,0,1,-360,360 +122,78,79,0.00546,0.0244,0.00648,0,0,0,0.0,0,1,-360,360 +123,77,80,0.017,0.0485,0.0472,0,0,0,0.0,0,1,-360,360 +124,77,80,0.0294,0.105,0.0228,0,0,0,0.0,0,1,-360,360 +125,79,80,0.0156,0.0704,0.0187,0,0,0,0.0,0,1,-360,360 +126,68,81,0.00175,0.0202,0.808,0,0,0,0.0,0,1,-360,360 +127,81,80,0.0,0.037,0.0,0,0,0,0.935,0,1,-360,360 +128,77,82,0.0298,0.0853,0.08174,0,0,0,0.0,0,1,-360,360 +129,82,83,0.0112,0.03665,0.03796,0,0,0,0.0,0,1,-360,360 +130,83,84,0.0625,0.132,0.0258,0,0,0,0.0,0,1,-360,360 +131,83,85,0.043,0.148,0.0348,0,0,0,0.0,0,1,-360,360 +132,84,85,0.0302,0.0641,0.01234,0,0,0,0.0,0,1,-360,360 +133,85,86,0.035,0.123,0.0276,0,0,0,0.0,0,1,-360,360 +134,86,87,0.02828,0.2074,0.0445,0,0,0,1.0,0,1,-360,360 +135,85,88,0.02,0.102,0.0276,0,0,0,0.0,0,1,-360,360 +136,85,89,0.0239,0.173,0.047,0,0,0,0.0,0,1,-360,360 +137,88,89,0.0139,0.0712,0.01934,0,0,0,0.0,0,1,-360,360 +138,89,90,0.0518,0.188,0.0528,0,0,0,0.0,0,1,-360,360 +139,89,90,0.0238,0.0997,0.106,0,0,0,0.0,0,1,-360,360 +140,90,91,0.0254,0.0836,0.0214,0,0,0,0.0,0,1,-360,360 +141,89,92,0.0099,0.0505,0.0548,0,0,0,0.0,0,1,-360,360 +142,89,92,0.0393,0.1581,0.0414,0,0,0,0.0,0,1,-360,360 +143,91,92,0.0387,0.1272,0.03268,0,0,0,0.0,0,1,-360,360 +144,92,93,0.0258,0.0848,0.0218,0,0,0,0.0,0,1,-360,360 +145,92,94,0.0481,0.158,0.0406,0,0,0,0.0,0,1,-360,360 +146,93,94,0.0223,0.0732,0.01876,0,0,0,0.0,0,1,-360,360 +147,94,95,0.0132,0.0434,0.0111,0,0,0,0.0,0,1,-360,360 +148,80,96,0.0356,0.182,0.0494,0,0,0,0.0,0,1,-360,360 +149,82,96,0.0162,0.053,0.0544,0,0,0,0.0,0,1,-360,360 +150,94,96,0.0269,0.0869,0.023,0,0,0,0.0,0,1,-360,360 +151,80,97,0.0183,0.0934,0.0254,0,0,0,0.0,0,1,-360,360 +152,80,98,0.0238,0.108,0.0286,0,0,0,0.0,0,1,-360,360 +153,80,99,0.0454,0.206,0.0546,0,0,0,0.0,0,1,-360,360 +154,92,100,0.0648,0.295,0.0472,0,0,0,0.0,0,1,-360,360 +155,94,100,0.0178,0.058,0.0604,0,0,0,0.0,0,1,-360,360 +156,95,96,0.0171,0.0547,0.01474,0,0,0,0.0,0,1,-360,360 +157,96,97,0.0173,0.0885,0.024,0,0,0,0.0,0,1,-360,360 +158,98,100,0.0397,0.179,0.0476,0,0,0,0.0,0,1,-360,360 +159,99,100,0.018,0.0813,0.0216,0,0,0,0.0,0,1,-360,360 +160,100,101,0.0277,0.1262,0.0328,0,0,0,0.0,0,1,-360,360 +161,92,102,0.0123,0.0559,0.01464,0,0,0,0.0,0,1,-360,360 +162,101,102,0.0246,0.112,0.0294,0,0,0,0.0,0,1,-360,360 +163,100,103,0.016,0.0525,0.0536,0,0,0,0.0,0,1,-360,360 +164,100,104,0.0451,0.204,0.0541,0,0,0,0.0,0,1,-360,360 +165,103,104,0.0466,0.1584,0.0407,0,0,0,0.0,0,1,-360,360 +166,103,105,0.0535,0.1625,0.0408,0,0,0,0.0,0,1,-360,360 +167,100,106,0.0605,0.229,0.062,0,0,0,0.0,0,1,-360,360 +168,104,105,0.00994,0.0378,0.00986,0,0,0,0.0,0,1,-360,360 +169,105,106,0.014,0.0547,0.01434,0,0,0,0.0,0,1,-360,360 +170,105,107,0.053,0.183,0.0472,0,0,0,0.0,0,1,-360,360 +171,105,108,0.0261,0.0703,0.01844,0,0,0,0.0,0,1,-360,360 +172,106,107,0.053,0.183,0.0472,0,0,0,0.0,0,1,-360,360 +173,108,109,0.0105,0.0288,0.0076,0,0,0,0.0,0,1,-360,360 +174,103,110,0.03906,0.1813,0.0461,0,0,0,0.0,0,1,-360,360 +175,109,110,0.0278,0.0762,0.0202,0,0,0,0.0,0,1,-360,360 +176,110,111,0.022,0.0755,0.02,0,0,0,0.0,0,1,-360,360 +177,110,112,0.0247,0.064,0.062,0,0,0,0.0,0,1,-360,360 +178,17,113,0.00913,0.0301,0.00768,0,0,0,0.0,0,1,-360,360 +179,32,113,0.0615,0.203,0.0518,0,0,0,0.0,0,1,-360,360 +180,32,114,0.0135,0.0612,0.01628,0,0,0,0.0,0,1,-360,360 +181,27,115,0.0164,0.0741,0.01972,0,0,0,0.0,0,1,-360,360 +182,114,115,0.0023,0.0104,0.00276,0,0,0,0.0,0,1,-360,360 +183,68,116,0.00034,0.00405,0.164,0,0,0,1.0,0,1,-360,360 +184,12,117,0.0329,0.14,0.0358,0,0,0,0.0,0,1,-360,360 +185,75,118,0.0145,0.0481,0.01198,0,0,0,0.0,0,1,-360,360 +186,76,118,0.0164,0.0544,0.01356,0,0,0,0.0,0,1,-360,360 diff --git a/tests/results/case118_prefix_suffix/mpc.bus_name_test.csv b/tests/results/case118_prefix_suffix/mpc.bus_name_test.csv new file mode 100644 index 0000000..2a66912 --- /dev/null +++ b/tests/results/case118_prefix_suffix/mpc.bus_name_test.csv @@ -0,0 +1,119 @@ +,bus_name +0,Riversde V2 +1,Pokagon V2 +2,HickryCk V2 +3,NwCarlsl V2 +4,Olive V2 +5,Kankakee V2 +6,JacksnRd V2 +7,Olive V1 +8,Bequine V1 +9,Breed V1 +10,SouthBnd V2 +11,TwinBrch V2 +12,Concord V2 +13,GoshenJt V2 +14,FtWayne V2 +15,N. E. V2 +16,Sorenson V2 +17,McKinley V2 +18,Lincoln V2 +19,Adams V2 +20,Jay V2 +21,Randolph V2 +22,CollCrnr V2 +23,Trenton V2 +24,TannrsCk V2 +25,TannrsCk V1 +26,Madison V2 +27,Mullin V2 +28,Grant V2 +29,Sorenson V1 +30,DeerCrk V2 +31,Delaware V2 +32,Haviland V2 +33,Rockhill V2 +34,WestLima V2 +35,Sterling V2 +36,EastLima V2 +37,EastLima V1 +38,NwLibrty V2 +39,West End V2 +40,S.Tiffin V2 +41,Howard V2 +42,S.Kenton V2 +43,WMVernon V2 +44,N.Newark V2 +45,W.Lancst V2 +46,Crooksvl V2 +47,Zanesvll V2 +48,Philo V2 +49,WCambrdg V2 +50,Newcmrst V2 +51,SCoshoct V2 +52,Wooster V2 +53,Torrey V2 +54,Wagenhls V2 +55,Sunnysde V2 +56,WNwPhil1 V2 +57,WNwPhil2 V2 +58,Tidd V2 +59,SWKammer V2 +60,W.Kammer V2 +61,Natrium V2 +62,Tidd V1 +63,Kammer V1 +64,Muskngum V1 +65,Muskngum V2 +66,Summerfl V2 +67,Sporn V1 +68,Sporn V2 +69,Portsmth V2 +70,NPortsmt V2 +71,Hillsbro V2 +72,Sargents V2 +73,Bellefnt V2 +74,SthPoint V2 +75,Darrah V2 +76,Turner V2 +77,Chemical V2 +78,CapitlHl V2 +79,CabinCrk V2 +80,Kanawha V1 +81,Logan V2 +82,Sprigg V2 +83,BetsyLne V2 +84,BeaverCk V2 +85,Hazard V2 +86,Pinevlle V3 +87,Fremont V2 +88,ClinchRv V2 +89,Holston V2 +90,HolstonT V2 +91,Saltvlle V2 +92,Tazewell V2 +93,Switchbk V2 +94,Caldwell V2 +95,Baileysv V2 +96,Sundial V2 +97,Bradley V2 +98,Hinton V2 +99,Glen Lyn V2 +100,Wythe V2 +101,Smythe V2 +102,Claytor V2 +103,Hancock V2 +104,Roanoke V2 +105,Cloverdl V2 +106,Reusens V2 +107,Blaine V2 +108,Franklin V2 +109,Fieldale V2 +110,DanRiver V2 +111,Danville V2 +112,Deer Crk V2 +113,WMedford V2 +114,Medford V2 +115,KygerCrk V2 +116,Corey V2 +117,WHuntngd V2 diff --git a/tests/results/case118_prefix_suffix/mpc.bus_test.csv b/tests/results/case118_prefix_suffix/mpc.bus_test.csv new file mode 100644 index 0000000..9a718c6 --- /dev/null +++ b/tests/results/case118_prefix_suffix/mpc.bus_test.csv @@ -0,0 +1,119 @@ +bus_name,BUS_I,BUS_TYPE,PD,QD,GS,BS,BUS_AREA,VM,VA,BASE_KV,ZONE,VMAX,VMIN +Riversde V2,1,2,51,27,0,0,1,0.955,10.67,138,1,1.06,0.94 +Pokagon V2,2,1,20,9,0,0,1,0.971,11.22,138,1,1.06,0.94 +HickryCk V2,3,1,39,10,0,0,1,0.968,11.56,138,1,1.06,0.94 +NwCarlsl V2,4,2,39,12,0,0,1,0.998,15.28,138,1,1.06,0.94 +Olive V2,5,1,0,0,0,-40,1,1.002,15.73,138,1,1.06,0.94 +Kankakee V2,6,2,52,22,0,0,1,0.99,13.0,138,1,1.06,0.94 +JacksnRd V2,7,1,19,2,0,0,1,0.989,12.56,138,1,1.06,0.94 +Olive V1,8,2,28,0,0,0,1,1.015,20.77,345,1,1.06,0.94 +Bequine V1,9,1,0,0,0,0,1,1.043,28.02,345,1,1.06,0.94 +Breed V1,10,2,0,0,0,0,1,1.05,35.61,345,1,1.06,0.94 +SouthBnd V2,11,1,70,23,0,0,1,0.985,12.72,138,1,1.06,0.94 +TwinBrch V2,12,2,47,10,0,0,1,0.99,12.2,138,1,1.06,0.94 +Concord V2,13,1,34,16,0,0,1,0.968,11.35,138,1,1.06,0.94 +GoshenJt V2,14,1,14,1,0,0,1,0.984,11.5,138,1,1.06,0.94 +FtWayne V2,15,2,90,30,0,0,1,0.97,11.23,138,1,1.06,0.94 +N. E. V2,16,1,25,10,0,0,1,0.984,11.91,138,1,1.06,0.94 +Sorenson V2,17,1,11,3,0,0,1,0.995,13.74,138,1,1.06,0.94 +McKinley V2,18,2,60,34,0,0,1,0.973,11.53,138,1,1.06,0.94 +Lincoln V2,19,2,45,25,0,0,1,0.963,11.05,138,1,1.06,0.94 +Adams V2,20,1,18,3,0,0,1,0.958,11.93,138,1,1.06,0.94 +Jay V2,21,1,14,8,0,0,1,0.959,13.52,138,1,1.06,0.94 +Randolph V2,22,1,10,5,0,0,1,0.97,16.08,138,1,1.06,0.94 +CollCrnr V2,23,1,7,3,0,0,1,1.0,21.0,138,1,1.06,0.94 +Trenton V2,24,2,13,0,0,0,1,0.992,20.89,138,1,1.06,0.94 +TannrsCk V2,25,2,0,0,0,0,1,1.05,27.93,138,1,1.06,0.94 +TannrsCk V1,26,2,0,0,0,0,1,1.015,29.71,345,1,1.06,0.94 +Madison V2,27,2,71,13,0,0,1,0.968,15.35,138,1,1.06,0.94 +Mullin V2,28,1,17,7,0,0,1,0.962,13.62,138,1,1.06,0.94 +Grant V2,29,1,24,4,0,0,1,0.963,12.63,138,1,1.06,0.94 +Sorenson V1,30,1,0,0,0,0,1,0.968,18.79,345,1,1.06,0.94 +DeerCrk V2,31,2,43,27,0,0,1,0.967,12.75,138,1,1.06,0.94 +Delaware V2,32,2,59,23,0,0,1,0.964,14.8,138,1,1.06,0.94 +Haviland V2,33,1,23,9,0,0,1,0.972,10.63,138,1,1.06,0.94 +Rockhill V2,34,2,59,26,0,14,1,0.986,11.3,138,1,1.06,0.94 +WestLima V2,35,1,33,9,0,0,1,0.981,10.87,138,1,1.06,0.94 +Sterling V2,36,2,31,17,0,0,1,0.98,10.87,138,1,1.06,0.94 +EastLima V2,37,1,0,0,0,-25,1,0.992,11.77,138,1,1.06,0.94 +EastLima V1,38,1,0,0,0,0,1,0.962,16.91,345,1,1.06,0.94 +NwLibrty V2,39,1,27,11,0,0,1,0.97,8.41,138,1,1.06,0.94 +West End V2,40,2,66,23,0,0,1,0.97,7.35,138,1,1.06,0.94 +S.Tiffin V2,41,1,37,10,0,0,1,0.967,6.92,138,1,1.06,0.94 +Howard V2,42,2,96,23,0,0,1,0.985,8.53,138,1,1.06,0.94 +S.Kenton V2,43,1,18,7,0,0,1,0.978,11.28,138,1,1.06,0.94 +WMVernon V2,44,1,16,8,0,10,1,0.985,13.82,138,1,1.06,0.94 +N.Newark V2,45,1,53,22,0,10,1,0.987,15.67,138,1,1.06,0.94 +W.Lancst V2,46,2,28,10,0,10,1,1.005,18.49,138,1,1.06,0.94 +Crooksvl V2,47,1,34,0,0,0,1,1.017,20.73,138,1,1.06,0.94 +Zanesvll V2,48,1,20,11,0,15,1,1.021,19.93,138,1,1.06,0.94 +Philo V2,49,2,87,30,0,0,1,1.025,20.94,138,1,1.06,0.94 +WCambrdg V2,50,1,17,4,0,0,1,1.001,18.9,138,1,1.06,0.94 +Newcmrst V2,51,1,17,8,0,0,1,0.967,16.28,138,1,1.06,0.94 +SCoshoct V2,52,1,18,5,0,0,1,0.957,15.32,138,1,1.06,0.94 +Wooster V2,53,1,23,11,0,0,1,0.946,14.35,138,1,1.06,0.94 +Torrey V2,54,2,113,32,0,0,1,0.955,15.26,138,1,1.06,0.94 +Wagenhls V2,55,2,63,22,0,0,1,0.952,14.97,138,1,1.06,0.94 +Sunnysde V2,56,2,84,18,0,0,1,0.954,15.16,138,1,1.06,0.94 +WNwPhil1 V2,57,1,12,3,0,0,1,0.971,16.36,138,1,1.06,0.94 +WNwPhil2 V2,58,1,12,3,0,0,1,0.959,15.51,138,1,1.06,0.94 +Tidd V2,59,2,277,113,0,0,1,0.985,19.37,138,1,1.06,0.94 +SWKammer V2,60,1,78,3,0,0,1,0.993,23.15,138,1,1.06,0.94 +W.Kammer V2,61,2,0,0,0,0,1,0.995,24.04,138,1,1.06,0.94 +Natrium V2,62,2,77,14,0,0,1,0.998,23.43,138,1,1.06,0.94 +Tidd V1,63,1,0,0,0,0,1,0.969,22.75,345,1,1.06,0.94 +Kammer V1,64,1,0,0,0,0,1,0.984,24.52,345,1,1.06,0.94 +Muskngum V1,65,2,0,0,0,0,1,1.005,27.65,345,1,1.06,0.94 +Muskngum V2,66,2,39,18,0,0,1,1.05,27.48,138,1,1.06,0.94 +Summerfl V2,67,1,28,7,0,0,1,1.02,24.84,138,1,1.06,0.94 +Sporn V1,68,1,0,0,0,0,1,1.003,27.55,345,1,1.06,0.94 +Sporn V2,69,3,0,0,0,0,1,1.035,30.0,138,1,1.06,0.94 +Portsmth V2,70,2,66,20,0,0,1,0.984,22.58,138,1,1.06,0.94 +NPortsmt V2,71,1,0,0,0,0,1,0.987,22.15,138,1,1.06,0.94 +Hillsbro V2,72,2,12,0,0,0,1,0.98,20.98,138,1,1.06,0.94 +Sargents V2,73,2,6,0,0,0,1,0.991,21.94,138,1,1.06,0.94 +Bellefnt V2,74,2,68,27,0,12,1,0.958,21.64,138,1,1.06,0.94 +SthPoint V2,75,1,47,11,0,0,1,0.967,22.91,138,1,1.06,0.94 +Darrah V2,76,2,68,36,0,0,1,0.943,21.77,138,1,1.06,0.94 +Turner V2,77,2,61,28,0,0,1,1.006,26.72,138,1,1.06,0.94 +Chemical V2,78,1,71,26,0,0,1,1.003,26.42,138,1,1.06,0.94 +CapitlHl V2,79,1,39,32,0,20,1,1.009,26.72,138,1,1.06,0.94 +CabinCrk V2,80,2,130,26,0,0,1,1.04,28.96,138,1,1.06,0.94 +Kanawha V1,81,1,0,0,0,0,1,0.997,28.1,345,1,1.06,0.94 +Logan V2,82,1,54,27,0,20,1,0.989,27.24,138,1,1.06,0.94 +Sprigg V2,83,1,20,10,0,10,1,0.985,28.42,138,1,1.06,0.94 +BetsyLne V2,84,1,11,7,0,0,1,0.98,30.95,138,1,1.06,0.94 +BeaverCk V2,85,2,24,15,0,0,1,0.985,32.51,138,1,1.06,0.94 +Hazard V2,86,1,21,10,0,0,1,0.987,31.14,138,1,1.06,0.94 +Pinevlle V3,87,2,0,0,0,0,1,1.015,31.4,161,1,1.06,0.94 +Fremont V2,88,1,48,10,0,0,1,0.987,35.64,138,1,1.06,0.94 +ClinchRv V2,89,2,0,0,0,0,1,1.005,39.69,138,1,1.06,0.94 +Holston V2,90,2,163,42,0,0,1,0.985,33.29,138,1,1.06,0.94 +HolstonT V2,91,2,10,0,0,0,1,0.98,33.31,138,1,1.06,0.94 +Saltvlle V2,92,2,65,10,0,0,1,0.993,33.8,138,1,1.06,0.94 +Tazewell V2,93,1,12,7,0,0,1,0.987,30.79,138,1,1.06,0.94 +Switchbk V2,94,1,30,16,0,0,1,0.991,28.64,138,1,1.06,0.94 +Caldwell V2,95,1,42,31,0,0,1,0.981,27.67,138,1,1.06,0.94 +Baileysv V2,96,1,38,15,0,0,1,0.993,27.51,138,1,1.06,0.94 +Sundial V2,97,1,15,9,0,0,1,1.011,27.88,138,1,1.06,0.94 +Bradley V2,98,1,34,8,0,0,1,1.024,27.4,138,1,1.06,0.94 +Hinton V2,99,2,42,0,0,0,1,1.01,27.04,138,1,1.06,0.94 +Glen Lyn V2,100,2,37,18,0,0,1,1.017,28.03,138,1,1.06,0.94 +Wythe V2,101,1,22,15,0,0,1,0.993,29.61,138,1,1.06,0.94 +Smythe V2,102,1,5,3,0,0,1,0.991,32.3,138,1,1.06,0.94 +Claytor V2,103,2,23,16,0,0,1,1.001,24.44,138,1,1.06,0.94 +Hancock V2,104,2,38,25,0,0,1,0.971,21.69,138,1,1.06,0.94 +Roanoke V2,105,2,31,26,0,20,1,0.965,20.57,138,1,1.06,0.94 +Cloverdl V2,106,1,43,16,0,0,1,0.962,20.32,138,1,1.06,0.94 +Reusens V2,107,2,50,12,0,6,1,0.952,17.53,138,1,1.06,0.94 +Blaine V2,108,1,2,1,0,0,1,0.967,19.38,138,1,1.06,0.94 +Franklin V2,109,1,8,3,0,0,1,0.967,18.93,138,1,1.06,0.94 +Fieldale V2,110,2,39,30,0,6,1,0.973,18.09,138,1,1.06,0.94 +DanRiver V2,111,2,0,0,0,0,1,0.98,19.74,138,1,1.06,0.94 +Danville V2,112,2,68,13,0,0,1,0.975,14.99,138,1,1.06,0.94 +Deer Crk V2,113,2,6,0,0,0,1,0.993,13.74,138,1,1.06,0.94 +WMedford V2,114,1,8,3,0,0,1,0.96,14.46,138,1,1.06,0.94 +Medford V2,115,1,22,7,0,0,1,0.96,14.46,138,1,1.06,0.94 +KygerCrk V2,116,2,184,0,0,0,1,1.005,27.12,138,1,1.06,0.94 +Corey V2,117,1,20,8,0,0,1,0.974,10.67,138,1,1.06,0.94 +WHuntngd V2,118,1,33,15,0,0,1,0.949,21.92,138,1,1.06,0.94 diff --git a/tests/results/case118_prefix_suffix/mpc.gen_test.csv b/tests/results/case118_prefix_suffix/mpc.gen_test.csv new file mode 100644 index 0000000..a0fd3fa --- /dev/null +++ b/tests/results/case118_prefix_suffix/mpc.gen_test.csv @@ -0,0 +1,55 @@ +,GEN_BUS,PG,QG,QMAX,QMIN,VG,MBASE,GEN_STATUS,PMAX,PMIN,PC1,PC2,QC1MIN,QC1MAX,QC2MIN,QC2MAX,RAMP_AGC,RAMP_10,RAMP_30,RAMP_Q,APF +1,1,0.0,0,15,-5,0.955,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +2,4,0.0,0,300,-300,0.998,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +3,6,0.0,0,50,-13,0.99,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +4,8,0.0,0,300,-300,1.015,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +5,10,450.0,0,200,-147,1.05,100,1,550.0,0,0,0,0,0,0,0,0,0,0,0,0 +6,12,85.0,0,120,-35,0.99,100,1,185.0,0,0,0,0,0,0,0,0,0,0,0,0 +7,15,0.0,0,30,-10,0.97,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +8,18,0.0,0,50,-16,0.973,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +9,19,0.0,0,24,-8,0.962,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +10,24,0.0,0,300,-300,0.992,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +11,25,220.0,0,140,-47,1.05,100,1,320.0,0,0,0,0,0,0,0,0,0,0,0,0 +12,26,314.0,0,1000,-1000,1.015,100,1,414.0,0,0,0,0,0,0,0,0,0,0,0,0 +13,27,0.0,0,300,-300,0.968,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +14,31,7.0,0,300,-300,0.967,100,1,107.0,0,0,0,0,0,0,0,0,0,0,0,0 +15,32,0.0,0,42,-14,0.963,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +16,34,0.0,0,24,-8,0.984,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +17,36,0.0,0,24,-8,0.98,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +18,40,0.0,0,300,-300,0.97,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +19,42,0.0,0,300,-300,0.985,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +20,46,19.0,0,100,-100,1.005,100,1,119.0,0,0,0,0,0,0,0,0,0,0,0,0 +21,49,204.0,0,210,-85,1.025,100,1,304.0,0,0,0,0,0,0,0,0,0,0,0,0 +22,54,48.0,0,300,-300,0.955,100,1,148.0,0,0,0,0,0,0,0,0,0,0,0,0 +23,55,0.0,0,23,-8,0.952,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +24,56,0.0,0,15,-8,0.954,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +25,59,155.0,0,180,-60,0.985,100,1,255.0,0,0,0,0,0,0,0,0,0,0,0,0 +26,61,160.0,0,300,-100,0.995,100,1,260.0,0,0,0,0,0,0,0,0,0,0,0,0 +27,62,0.0,0,20,-20,0.998,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +28,65,391.0,0,200,-67,1.005,100,1,491.0,0,0,0,0,0,0,0,0,0,0,0,0 +29,66,392.0,0,200,-67,1.05,100,1,492.0,0,0,0,0,0,0,0,0,0,0,0,0 +30,69,516.4,0,300,-300,1.035,100,1,805.2,0,0,0,0,0,0,0,0,0,0,0,0 +31,70,0.0,0,32,-10,0.984,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +32,72,0.0,0,100,-100,0.98,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +33,73,0.0,0,100,-100,0.991,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +34,74,0.0,0,9,-6,0.958,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +35,76,0.0,0,23,-8,0.943,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +36,77,0.0,0,70,-20,1.006,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +37,80,477.0,0,280,-165,1.04,100,1,577.0,0,0,0,0,0,0,0,0,0,0,0,0 +38,85,0.0,0,23,-8,0.985,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +39,87,4.0,0,1000,-100,1.015,100,1,104.0,0,0,0,0,0,0,0,0,0,0,0,0 +40,89,607.0,0,300,-210,1.005,100,1,707.0,0,0,0,0,0,0,0,0,0,0,0,0 +41,90,0.0,0,300,-300,0.985,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +42,91,0.0,0,100,-100,0.98,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +43,92,0.0,0,9,-3,0.99,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +44,99,0.0,0,100,-100,1.01,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +45,100,252.0,0,155,-50,1.017,100,1,352.0,0,0,0,0,0,0,0,0,0,0,0,0 +46,103,40.0,0,40,-15,1.01,100,1,140.0,0,0,0,0,0,0,0,0,0,0,0,0 +47,104,0.0,0,23,-8,0.971,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +48,105,0.0,0,23,-8,0.965,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +49,107,0.0,0,200,-200,0.952,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +50,110,0.0,0,23,-8,0.973,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +51,111,36.0,0,1000,-100,0.98,100,1,136.0,0,0,0,0,0,0,0,0,0,0,0,0 +52,112,0.0,0,1000,-100,0.975,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +53,113,0.0,0,200,-100,0.993,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 +54,116,0.0,0,1000,-1000,1.005,100,1,100.0,0,0,0,0,0,0,0,0,0,0,0,0 diff --git a/tests/results/case118_prefix_suffix/mpc.gencost_test.csv b/tests/results/case118_prefix_suffix/mpc.gencost_test.csv new file mode 100644 index 0000000..26fbdbe --- /dev/null +++ b/tests/results/case118_prefix_suffix/mpc.gencost_test.csv @@ -0,0 +1,55 @@ +,MODEL,STARTUP,SHUTDOWN,NCOST,COST_2,COST_1,COST_0 +1,2,0,0,3,0.01,40,0 +2,2,0,0,3,0.01,40,0 +3,2,0,0,3,0.01,40,0 +4,2,0,0,3,0.01,40,0 +5,2,0,0,3,0.0222222222,20,0 +6,2,0,0,3,0.117647059,20,0 +7,2,0,0,3,0.01,40,0 +8,2,0,0,3,0.01,40,0 +9,2,0,0,3,0.01,40,0 +10,2,0,0,3,0.01,40,0 +11,2,0,0,3,0.0454545455,20,0 +12,2,0,0,3,0.0318471338,20,0 +13,2,0,0,3,0.01,40,0 +14,2,0,0,3,1.42857143,20,0 +15,2,0,0,3,0.01,40,0 +16,2,0,0,3,0.01,40,0 +17,2,0,0,3,0.01,40,0 +18,2,0,0,3,0.01,40,0 +19,2,0,0,3,0.01,40,0 +20,2,0,0,3,0.526315789,20,0 +21,2,0,0,3,0.0490196078,20,0 +22,2,0,0,3,0.208333333,20,0 +23,2,0,0,3,0.01,40,0 +24,2,0,0,3,0.01,40,0 +25,2,0,0,3,0.064516129,20,0 +26,2,0,0,3,0.0625,20,0 +27,2,0,0,3,0.01,40,0 +28,2,0,0,3,0.0255754476,20,0 +29,2,0,0,3,0.0255102041,20,0 +30,2,0,0,3,0.0193648335,20,0 +31,2,0,0,3,0.01,40,0 +32,2,0,0,3,0.01,40,0 +33,2,0,0,3,0.01,40,0 +34,2,0,0,3,0.01,40,0 +35,2,0,0,3,0.01,40,0 +36,2,0,0,3,0.01,40,0 +37,2,0,0,3,0.0209643606,20,0 +38,2,0,0,3,0.01,40,0 +39,2,0,0,3,2.5,20,0 +40,2,0,0,3,0.0164744646,20,0 +41,2,0,0,3,0.01,40,0 +42,2,0,0,3,0.01,40,0 +43,2,0,0,3,0.01,40,0 +44,2,0,0,3,0.01,40,0 +45,2,0,0,3,0.0396825397,20,0 +46,2,0,0,3,0.25,20,0 +47,2,0,0,3,0.01,40,0 +48,2,0,0,3,0.01,40,0 +49,2,0,0,3,0.01,40,0 +50,2,0,0,3,0.01,40,0 +51,2,0,0,3,0.277777778,20,0 +52,2,0,0,3,0.01,40,0 +53,2,0,0,3,0.01,40,0 +54,2,0,0,3,0.01,40,0 diff --git a/tests/results/mpc.info_test.csv b/tests/results/case118_prefix_suffix/mpc.info_test.csv similarity index 100% rename from tests/results/mpc.info_test.csv rename to tests/results/case118_prefix_suffix/mpc.info_test.csv diff --git a/tests/results/branch.csv b/tests/results/case9/branch.csv similarity index 100% rename from tests/results/branch.csv rename to tests/results/case9/branch.csv diff --git a/tests/results/bus.csv b/tests/results/case9/bus.csv similarity index 100% rename from tests/results/bus.csv rename to tests/results/case9/bus.csv diff --git a/tests/results/gen.csv b/tests/results/case9/gen.csv similarity index 100% rename from tests/results/gen.csv rename to tests/results/case9/gen.csv diff --git a/tests/results/gencost.csv b/tests/results/case9/gencost.csv similarity index 100% rename from tests/results/gencost.csv rename to tests/results/case9/gencost.csv diff --git a/tests/results/case9/info.csv b/tests/results/case9/info.csv new file mode 100644 index 0000000..ab71732 --- /dev/null +++ b/tests/results/case9/info.csv @@ -0,0 +1,3 @@ +,INFO +version,2 +baseMVA,100 diff --git a/tests/results/mpc.branch_test.csv b/tests/results/case9_prefix_suffix/mpc.branch_test.csv similarity index 100% rename from tests/results/mpc.branch_test.csv rename to tests/results/case9_prefix_suffix/mpc.branch_test.csv diff --git a/tests/results/mpc.bus_test.csv b/tests/results/case9_prefix_suffix/mpc.bus_test.csv similarity index 100% rename from tests/results/mpc.bus_test.csv rename to tests/results/case9_prefix_suffix/mpc.bus_test.csv diff --git a/tests/results/mpc.gen_test.csv b/tests/results/case9_prefix_suffix/mpc.gen_test.csv similarity index 100% rename from tests/results/mpc.gen_test.csv rename to tests/results/case9_prefix_suffix/mpc.gen_test.csv diff --git a/tests/results/mpc.gencost_test.csv b/tests/results/case9_prefix_suffix/mpc.gencost_test.csv similarity index 100% rename from tests/results/mpc.gencost_test.csv rename to tests/results/case9_prefix_suffix/mpc.gencost_test.csv diff --git a/tests/results/case9_prefix_suffix/mpc.info_test.csv b/tests/results/case9_prefix_suffix/mpc.info_test.csv new file mode 100644 index 0000000..ab71732 --- /dev/null +++ b/tests/results/case9_prefix_suffix/mpc.info_test.csv @@ -0,0 +1,3 @@ +,INFO +version,2 +baseMVA,100 diff --git a/tests/test_core.py b/tests/test_core.py index 78c6c98..b231122 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -11,14 +11,19 @@ pytest -n auto -rA --lf -c pyproject.toml --cov-report term-missing --cov=matpowercaseframes tests/ """ -CASE_NAME = "case9.m" +CASE_NAME_CASE9 = "case9.m" CURDIR = os.path.realpath(os.path.dirname(__file__)) CASE_DIR = os.path.join(os.path.dirname(CURDIR), "data") -CASE_PATH = os.path.join(CASE_DIR, CASE_NAME) +CASE_PATH_CASE9 = os.path.join(CASE_DIR, CASE_NAME_CASE9) + +CASE_NAME_CASE118 = "case118.m" +CURDIR = os.path.realpath(os.path.dirname(__file__)) +CASE_DIR = os.path.join(os.path.dirname(CURDIR), "data") +CASE_PATH_CASE118 = os.path.join(CASE_DIR, CASE_NAME_CASE118) def test_input_str_path(): - CaseFrames(CASE_PATH) + CaseFrames(CASE_PATH_CASE9) def test_input_oct2py_io_Struct(): @@ -27,7 +32,7 @@ def test_input_oct2py_io_Struct(): m = start_instance() # before run - mpc = m.loadcase(CASE_NAME, verbose=False) + mpc = m.loadcase(CASE_NAME_CASE9, verbose=False) # after run mpc = m.runpf(mpc, verbose=False) @@ -42,9 +47,9 @@ def test_input_oct2py_io_Struct_and_parse_are_identical(): m = start_instance() # before run - mpc = m.loadcase(CASE_NAME, verbose=False) + mpc = m.loadcase(CASE_NAME_CASE9, verbose=False) cf_mpc = CaseFrames(mpc) # _read_oct2py_struct - cf_parse = CaseFrames(CASE_NAME) # _read_matpower + cf_parse = CaseFrames(CASE_NAME_CASE9) # _read_matpower # convert to data type recognizable by numpy from pd.convert_dtypes() cf_mpc.infer_numpy() @@ -72,7 +77,7 @@ def test_input_type_error(): def test_read_value(): - cf = CaseFrames(CASE_PATH) + cf = CaseFrames(CASE_PATH_CASE9) assert cf.version == "2" assert cf.baseMVA == 100 @@ -108,12 +113,12 @@ def test_read_value(): def test_read_case_name(): - cf = CaseFrames(CASE_PATH) + cf = CaseFrames(CASE_PATH_CASE9) assert cf.name == "case9" def test_get_attributes(): - cf = CaseFrames(CASE_PATH) + cf = CaseFrames(CASE_PATH_CASE9) assert cf.attributes == ["version", "baseMVA", "bus", "gen", "branch", "gencost"] with pytest.raises(AttributeError): @@ -130,26 +135,30 @@ def test_get_attributes(): def test_to_xlsx(): - cf = CaseFrames(CASE_PATH) - cf.to_excel("tests/results/test_to_xlsx.xlsx") + cf = CaseFrames(CASE_PATH_CASE9) + cf.to_excel("tests/results/case9/test_to_xlsx.xlsx") cf.to_excel( - "tests/results/test_to_xlsx_prefix_suffix.xlsx", + "tests/results/case9_prefix_suffix/test_to_xlsx_prefix_suffix.xlsx", prefix="mpc.", suffix="_test", ) def test_to_csv(): - cf = CaseFrames(CASE_PATH) - cf.to_csv("tests/results") - cf.to_csv("tests/results", prefix="mpc.", suffix="_test") + cf = CaseFrames(CASE_PATH_CASE9) + cf.to_csv("tests/results/case9") + cf.to_csv("tests/results/case9_prefix_suffix", prefix="mpc.", suffix="_test") + + cf = CaseFrames(CASE_PATH_CASE118) + cf.to_csv("tests/results/case118") + cf.to_csv("tests/results/case118_prefix_suffix", prefix="mpc.", suffix="_test") def test_to_dict(): - cf = CaseFrames(CASE_PATH) + cf = CaseFrames(CASE_PATH_CASE9) cf.to_dict() def test_to_mpc(): - cf = CaseFrames(CASE_PATH) + cf = CaseFrames(CASE_PATH_CASE9) cf.to_mpc() diff --git a/tests/test_read_matpower_cases.py b/tests/test_read_matpower_cases.py index 764b491..ddf158c 100644 --- a/tests/test_read_matpower_cases.py +++ b/tests/test_read_matpower_cases.py @@ -40,7 +40,7 @@ def test_case118(): CASE_NAME = "case118.m" cf = CaseFrames(CASE_NAME) - cf_lc = CaseFrames(CASE_NAME) + cf_lc = CaseFrames(CASE_NAME, load_case_engine=m) mpc = m.loadcase(CASE_NAME) cf_mpc = CaseFrames(mpc) @@ -48,6 +48,9 @@ def test_case118(): cf_lc.infer_numpy() cf_mpc.infer_numpy() + mpc = m.runpf(cf.to_mpc(), verbose=False) + _ = CaseFrames(mpc) + m.exit() assert_cf_equal(cf, cf_lc)