diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 412bb7e..68b3c5a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,3 +21,12 @@ repos: # Run the formatter. - id: ruff-format types_or: [ python, pyi, jupyter ] + + # clean notebooks with nb-clean + - repo: https://github.com/srstevenson/nb-clean + rev: 4.0.1 + hooks: + - id: nb-clean + args: + - --preserve-cell-outputs + - -- diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ab189dc..841ea7e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,18 +2,35 @@ ## env +To install Python environment, use: + ```sh -uv venv env --python 3.14 +uv venv env --python 3.12 source env/bin/activate +uv pip install pip ``` +> [!Note] +> Python 3.12 currently needed for `matlabengine`. + ## packages +### Requirements + ```sh uv pip install pru pru -r requirements-all.txt ``` +### Matlab + +Optionally, if you want to test matlab compatibility, you can install `matlabengine` + +```shell +uv pip install matlabengine +``` + + ## Install in development mode ```shell @@ -24,6 +41,7 @@ uv pip install -e ."[dev]" ```shell pytest -n auto -rA --lf -c pyproject.toml --cov-report term-missing --cov=matpowercaseframes tests/ +pytest --lf -rA -c pyproject.toml --cov-report term-missing --cov=matpowercaseframes --nbmake ``` ## Pre-Commit diff --git a/matpowercaseframes/core.py b/matpowercaseframes/core.py index 977c54b..05340b9 100644 --- a/matpowercaseframes/core.py +++ b/matpowercaseframes/core.py @@ -555,20 +555,11 @@ def _read_data( path_no_ext, ext = os.path.splitext(path) if ext == ".m": - # read `.m` file - if load_case_engine is None: - # read with matpower parser - self._read_matpower( - filepath=path, - allow_any_keys=allow_any_keys, - ) - else: - # read using loadcase - mpc = load_case_engine.loadcase(path) - self._read_oct2py_struct( - struct=mpc, - allow_any_keys=allow_any_keys, - ) + self._read_m_file( + path, + load_case_engine=load_case_engine, + allow_any_keys=allow_any_keys, + ) elif ext == ".xlsx": # read `.xlsx` file self._read_excel( @@ -683,6 +674,31 @@ def _get_path(path): message = f"Can't find data at {os.path.abspath(path)}" raise FileNotFoundError(message) + def _read_m_file(self, path, load_case_engine=None, allow_any_keys=False): + # read `.m` file + if load_case_engine is None: + # read with matpower parser + self._read_matpower( + filepath=path, + allow_any_keys=allow_any_keys, + ) + else: + # read using loadcase + mpc = load_case_engine.loadcase(path) + + # detect engine type + engine_type = _detect_engine(load_case_engine) + if engine_type == "matlab": + self._read_matlab_struct( + struct=mpc, + allow_any_keys=allow_any_keys, + ) + else: + self._read_oct2py_struct( + struct=mpc, + allow_any_keys=allow_any_keys, + ) + def _read_matpower(self, filepath, allow_any_keys=False): """ Read and parse a MATPOWER file. @@ -752,6 +768,42 @@ def _read_oct2py_struct(self, struct, allow_any_keys=False): return None + def _read_matlab_struct(self, struct, allow_any_keys=False): + """ + Read data from a MATLAB engine struct. + + MATLAB engine returns cell arrays (e.g. bus_name) as flat lists of str, + unlike oct2py which wraps each entry in a list. + + Args: + struct (matlab.engine struct / dict-like): + Data returned by matlab.engine loadcase. + allow_any_keys (bool): + Whether to allow any keys beyond ATTRIBUTES. + """ + self.name = "" + + for attribute, list_ in struct.items(): + if attribute not in ATTRIBUTES and not allow_any_keys: + continue + + if attribute in ATTRIBUTES_INFO: + value = list_ + elif attribute in ATTRIBUTES_NAME: + # MATLAB engine cell array of strings comes as a flat list of str + value = pd.Index(list(list_), name=attribute) + elif attribute in ["reserves"]: + dfs = reserves_data_to_dataframes(list_) + value = ReservesFrames(dfs) + else: # bus, branch, gen, gencost, dcline, dclinecost + arr = np.atleast_2d(np.array(list_)) + n_cols = arr.shape[1] + value = self._get_dataframe(attribute, arr, n_cols) + + self.set_attribute(attribute, value) + + return None + def _read_numpy_struct(self, array, allow_any_keys=False): """ Read data from a structured NumPy array. @@ -1259,6 +1311,7 @@ def to_dict(self): value = getattr(self, attribute) if attribute in ATTRIBUTES_NAME: # NOTE: must be in 2D Cell or 2D np.array + # ("bus_name", "branch_name", "gen_name") data[attribute] = np.atleast_2d(value.values).T elif isinstance(value, pd.DataFrame): data[attribute] = value.values.tolist() @@ -1268,15 +1321,69 @@ def to_dict(self): data[attribute] = value return data - def to_mpc(self): + def to_matlab(self): + """ + Convert the CaseFrames data into a MATLAB-compatible dictionary using + matlab.double for array fields. + + + Returns: + dict: Dictionary with MATLAB-compatible values (matlab.double for arrays). + + + Raises: + ImportError: If matlab.engine is not available. + """ + try: + import matlab + except ImportError: + raise ImportError( + "matlab.engine is required for MATLAB backend. " + "Install MATLAB Engine API for Python." + ) + + data = { + "version": None, + "baseMVA": None, + } + for attribute in self._attributes: + value = getattr(self, attribute) + if attribute in ATTRIBUTES_NAME: + # NOTE: matlab does not support [N, 1] cell array. + # See: https://github.com/mathworks/matlab-engine-for-python/issues/61 + continue + elif isinstance(value, pd.DataFrame): + data[attribute] = matlab.double(value.values.tolist()) + elif isinstance(value, DataFramesStruct): + # TODO: test with case with structs + # convert nested structs (e.g. reserves) as plain dict + data[attribute] = value.to_dict() + else: + data[attribute] = value + return data + + def to_mpc(self, backend=None): """ Convert the CaseFrames data into a format compatible with MATPOWER. + Args: + backend (str | None): + Backend format. None or 'dict' returns plain dict, + 'matlab' returns matlab.double arrays for matrix fields. + + Returns: dict: MATPOWER-compatible dictionary with data. """ - return self.to_dict() + if backend is None: + return self.to_dict() + elif backend == "octave": + raise NotImplementedError("Octave backend is not implemented yet.") + elif backend == "matlab": + return self.to_matlab() + elif backend == "numpy": + raise NotImplementedError("NumPy backend is not implemented yet.") def to_schema(self, path, prefix="", suffix=""): """ @@ -1306,6 +1413,30 @@ def to_schema(self, path, prefix="", suffix=""): self.to_csv(path, prefix=prefix, suffix=suffix) +def _detect_engine(m): + """Detect engine type from instance.""" + try: + from oct2py import Oct2Py + + if isinstance(m, Oct2Py): + return "octave" + except ImportError: + pass + + try: + import matlab.engine + + if isinstance(m, matlab.engine.MatlabEngine): + return "matlab" + except ImportError: + pass + + raise ValueError( + f"Unknown engine type: {type(m)}. Expected Oct2Py or" + " matlab.engine.MatlabEngine." + ) + + def reserves_data_to_dataframes(reserves): """ Convert all mpc.reserves struct data to DataFrames. diff --git a/notebooks/compare_load.ipynb b/notebooks/compare_load.ipynb index ee12a74..3b3c447 100644 --- a/notebooks/compare_load.ipynb +++ b/notebooks/compare_load.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -12,7 +12,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -26,7 +26,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -39,7 +39,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -73,7 +73,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -217,7 +217,7 @@ "[3 rows x 21 columns]" ] }, - "execution_count": 5, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -228,7 +228,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -271,7 +271,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -280,7 +280,7 @@ "(dtype(' **Requirement:** MATLAB Engine for Python must be installed (`import matlab.engine`).\n", + "> The cell below checks availability and skips if not found." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%load_ext autoreload\n", + "%autoreload 2" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from matpower import run_matlab_cmd, start_instance\n", + "\n", + "from matpowercaseframes import CaseFrames" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import pytest\n", + "\n", + "try:\n", + " import matlab.engine # noqa: F401\n", + "\n", + " MATLAB_AVAILABLE = True\n", + "except ImportError:\n", + " MATLAB_AVAILABLE = False\n", + "\n", + "if not MATLAB_AVAILABLE:\n", + " raise pytest.skip(\"MATLAB not available\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "m = start_instance(engine=\"matlab\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "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", + "
F_BUST_BUSBR_RBR_XBR_BRATE_ARATE_BRATE_CTAPSHIFTBR_STATUSANGMINANGMAX
branch
1140.00000.05760.000250250250001-360360
2450.01700.09200.158250250250001-360360
3560.03900.17000.358150150150001-360360
4360.00000.05860.000300300300001-360360
5670.01190.10080.209150150150001-360360
6780.00850.07200.149250250250001-360360
7820.00000.06250.000250250250001-360360
8890.03200.16100.306250250250001-360360
9940.01000.08500.176250250250001-360360
\n", + "
" + ], + "text/plain": [ + " F_BUS T_BUS BR_R BR_X BR_B RATE_A RATE_B RATE_C TAP \\\n", + "branch \n", + "1 1 4 0.0000 0.0576 0.000 250 250 250 0 \n", + "2 4 5 0.0170 0.0920 0.158 250 250 250 0 \n", + "3 5 6 0.0390 0.1700 0.358 150 150 150 0 \n", + "4 3 6 0.0000 0.0586 0.000 300 300 300 0 \n", + "5 6 7 0.0119 0.1008 0.209 150 150 150 0 \n", + "6 7 8 0.0085 0.0720 0.149 250 250 250 0 \n", + "7 8 2 0.0000 0.0625 0.000 250 250 250 0 \n", + "8 8 9 0.0320 0.1610 0.306 250 250 250 0 \n", + "9 9 4 0.0100 0.0850 0.176 250 250 250 0 \n", + "\n", + " SHIFT BR_STATUS ANGMIN ANGMAX \n", + "branch \n", + "1 0 1 -360 360 \n", + "2 0 1 -360 360 \n", + "3 0 1 -360 360 \n", + "4 0 1 -360 360 \n", + "5 0 1 -360 360 \n", + "6 0 1 -360 360 \n", + "7 0 1 -360 360 \n", + "8 0 1 -360 360 \n", + "9 0 1 -360 360 " + ] + }, + "execution_count": null, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "CASE_NAME = \"case9.m\"\n", + "cf_9 = CaseFrames(CASE_NAME, load_case_engine=m)\n", + "cf_9.infer_numpy()\n", + "cf_9.branch" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "{'version': '2',\n", + " 'baseMVA': 100.0,\n", + " 'bus': matlab.double([[1.0,3.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,345.0,1.0,1.1,0.9],[2.0,2.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,345.0,1.0,1.1,0.9],[3.0,2.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,345.0,1.0,1.1,0.9],[4.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,345.0,1.0,1.1,0.9],[5.0,1.0,90.0,30.0,0.0,0.0,1.0,1.0,0.0,345.0,1.0,1.1,0.9],[6.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,345.0,1.0,1.1,0.9],[7.0,1.0,100.0,35.0,0.0,0.0,1.0,1.0,0.0,345.0,1.0,1.1,0.9],[8.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,345.0,1.0,1.1,0.9],[9.0,1.0,125.0,50.0,0.0,0.0,1.0,1.0,0.0,345.0,1.0,1.1,0.9]]),\n", + " 'gen': matlab.double([[1.0,72.3,27.03,300.0,-300.0,1.04,100.0,1.0,250.0,10.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[2.0,163.0,6.54,300.0,-300.0,1.025,100.0,1.0,300.0,10.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[3.0,85.0,-10.95,300.0,-300.0,1.025,100.0,1.0,270.0,10.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]]),\n", + " 'branch': matlab.double([[1.0,4.0,0.0,0.0576,0.0,250.0,250.0,250.0,0.0,0.0,1.0,-360.0,360.0],[4.0,5.0,0.017,0.092,0.158,250.0,250.0,250.0,0.0,0.0,1.0,-360.0,360.0],[5.0,6.0,0.039,0.17,0.358,150.0,150.0,150.0,0.0,0.0,1.0,-360.0,360.0],[3.0,6.0,0.0,0.0586,0.0,300.0,300.0,300.0,0.0,0.0,1.0,-360.0,360.0],[6.0,7.0,0.0119,0.1008,0.209,150.0,150.0,150.0,0.0,0.0,1.0,-360.0,360.0],[7.0,8.0,0.0085,0.072,0.149,250.0,250.0,250.0,0.0,0.0,1.0,-360.0,360.0],[8.0,2.0,0.0,0.0625,0.0,250.0,250.0,250.0,0.0,0.0,1.0,-360.0,360.0],[8.0,9.0,0.032,0.161,0.306,250.0,250.0,250.0,0.0,0.0,1.0,-360.0,360.0],[9.0,4.0,0.01,0.085,0.176,250.0,250.0,250.0,0.0,0.0,1.0,-360.0,360.0]]),\n", + " 'gencost': matlab.double([[2.0,1500.0,0.0,3.0,0.11,5.0,150.0],[2.0,2000.0,0.0,3.0,0.085,1.2,600.0],[2.0,3000.0,0.0,3.0,0.1225,1.0,335.0]])}" + ] + }, + "execution_count": null, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# NOTE: need \"matlab\" backend due to matlab didn't support plain python types\n", + "mpc = cf_9.to_mpc(backend=\"matlab\")\n", + "mpc" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "MATPOWER Version 8.1, 12-Jul-2025\n", + "Power Flow -- AC-polar-power formulation\n", + "\n", + "Newton's method converged in 4 iterations.\n", + "PF successful\n", + "\n", + "Converged in 0.19 seconds\n", + "================================================================================\n", + "| System Summary |\n", + "================================================================================\n", + "\n", + "How many? How much? P (MW) Q (MVAr)\n", + "--------------------- ------------------- ------------- -----------------\n", + "Buses 9 Total Gen Capacity 820.0 -900.0 to 900.0\n", + "Generators 3 On-line Capacity 820.0 -900.0 to 900.0\n", + "Committed Gens 3 Generation (actual) 319.6 22.8\n", + "Loads 3 Load 315.0 115.0\n", + " Fixed 3 Fixed 315.0 115.0\n", + " Dispatchable 0 Dispatchable -0.0 of -0.0 -0.0\n", + "Shunts 0 Shunt (inj) -0.0 0.0\n", + "Branches 9 Losses (I^2 * Z) 4.64 48.38\n", + "Transformers 0 Branch Charging (inj) - 140.5\n", + "Inter-ties 0 Total Inter-tie Flow 0.0 0.0\n", + "Areas 1\n", + "\n", + " Minimum Maximum\n", + " ------------------------- --------------------------------\n", + "Voltage Magnitude 0.996 p.u. @ bus 9 1.040 p.u. @ bus 1 \n", + "Voltage Angle -3.99 deg @ bus 9 9.28 deg @ bus 2 \n", + "P Losses (I^2*R) - 2.30 MW @ line 8-9\n", + "Q Losses (I^2*X) - 15.83 MVAr @ line 8-2\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 1.040 0.000* 71.64 27.05 - - \n", + " 2 1.025 9.280 163.00 6.65 - - \n", + " 3 1.025 4.665 85.00 -10.86 - - \n", + " 4 1.026 -2.217 - - - - \n", + " 5 1.013 -3.687 - - 90.00 30.00 \n", + " 6 1.032 1.967 - - - - \n", + " 7 1.016 0.728 - - 100.00 35.00 \n", + " 8 1.026 3.720 - - - - \n", + " 9 0.996 -3.989 - - 125.00 50.00 \n", + " -------- -------- -------- --------\n", + " Total: 319.64 22.84 315.00 115.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 4 71.64 27.05 -71.64 -23.92 0.000 3.12\n", + " 2 4 5 30.70 1.03 -30.54 -16.54 0.166 0.90\n", + " 3 5 6 -59.46 -13.46 60.82 -18.07 1.354 5.90\n", + " 4 3 6 85.00 -10.86 -85.00 14.96 0.000 4.10\n", + " 5 6 7 24.18 3.12 -24.10 -24.30 0.088 0.75\n", + " 6 7 8 -75.90 -10.70 76.38 -0.80 0.475 4.03\n", + " 7 8 2 -163.00 9.18 163.00 6.65 0.000 15.83\n", + " 8 8 9 86.62 -8.38 -84.32 -11.31 2.300 11.57\n", + " 9 9 4 -40.68 -38.69 40.94 22.89 0.258 2.19\n", + " -------- --------\n", + " Total: 4.641 48.38\n" + ] + }, + { + "data": { + "text/plain": [ + "{'baseMVA': 100.0,\n", + " 'version': '2',\n", + " 'bus': matlab.double([[1.0,3.0,0.0,0.0,0.0,0.0,1.0,1.04,0.0,345.0,1.0,1.1,0.9],[2.0,2.0,0.0,0.0,0.0,0.0,1.0,1.025,9.280005481642794,345.0,1.0,1.1,0.9],[3.0,2.0,0.0,0.0,0.0,0.0,1.0,1.0250000000000001,4.664751333136763,345.0,1.0,1.1,0.9],[4.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0257883928440104,-2.2167877999497896,345.0,1.0,1.1,0.9],[5.0,1.0,90.0,30.0,0.0,0.0,1.0,1.0126543240177757,-3.6873961701570614,345.0,1.0,1.1,0.9],[6.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0323529490023684,1.9667160744490775,345.0,1.0,1.1,0.9],[7.0,1.0,100.0,35.0,0.0,0.0,1.0,1.015882583627499,0.7275360768742919,345.0,1.0,1.1,0.9],[8.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0257693723864543,3.7197011546217573,345.0,1.0,1.1,0.9],[9.0,1.0,125.0,50.0,0.0,0.0,1.0,0.9956308580482947,-3.988805272851468,345.0,1.0,1.1,0.9]]),\n", + " 'gen': matlab.double([[1.0,71.64102147448236,27.045923533492328,300.0,-300.0,1.04,100.0,1.0,250.0,10.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[2.0,163.0,6.653660318427293,300.0,-300.0,1.025,100.0,1.0,300.0,10.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[3.0,85.0,-10.859709070988508,300.0,-300.0,1.025,100.0,1.0,270.0,10.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]]),\n", + " 'branch': matlab.double([[1.0,4.0,0.0,0.0576,0.0,250.0,250.0,250.0,0.0,0.0,1.0,-360.0,360.0,71.64102147448236,27.045923533492328,-71.64102147448236,-23.92312699862956],[4.0,5.0,0.017,0.092,0.158,250.0,250.0,250.0,0.0,0.0,1.0,-360.0,360.0,30.703669762307857,1.0300063738837835,-30.537262874140026,-16.54336524376019],[5.0,6.0,0.039,0.17,0.358,150.0,150.0,150.0,0.0,0.0,1.0,-360.0,360.0,-59.4627371258602,-13.45663475623963,60.81658597710945,-18.074835718895642],[3.0,6.0,0.0,0.0586,0.0,300.0,300.0,300.0,0.0,0.0,1.0,-360.0,360.0,84.99999999999996,-10.859709070988508,-84.99999999999994,14.955327300831136],[6.0,7.0,0.0119,0.1008,0.209,150.0,150.0,150.0,0.0,0.0,1.0,-360.0,360.0,24.18341402289116,3.1195084180637918,-24.095417457392546,-24.295822611684702],[7.0,8.0,0.0085,0.072,0.149,250.0,250.0,250.0,0.0,0.0,1.0,-360.0,360.0,-75.9045825426081,-10.704177388315058,76.37986616683595,-0.7973314422488532],[8.0,2.0,0.0,0.0625,0.0,250.0,250.0,250.0,0.0,0.0,1.0,-360.0,360.0,-162.99999999999991,9.17814884018841,162.99999999999991,6.653660318427293],[8.0,9.0,0.032,0.161,0.306,250.0,250.0,250.0,0.0,0.0,1.0,-360.0,360.0,86.62013383316562,-8.380817397938172,-84.32016251844969,-11.312751170505827],[9.0,4.0,0.01,0.085,0.176,250.0,250.0,250.0,0.0,0.0,1.0,-360.0,360.0,-40.67983748155058,-38.68724882949277,40.93735171217394,22.893120624746526]]),\n", + " 'gencost': matlab.double([[2.0,1500.0,0.0,3.0,0.11,5.0,150.0],[2.0,2000.0,0.0,3.0,0.085,1.2,600.0],[2.0,3000.0,0.0,3.0,0.1225,1.0,335.0]])}" + ] + }, + "execution_count": null, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# Run power flow using the converted mpc from CaseFrames\n", + "r1 = run_matlab_cmd(\"runpf(mpc)\", m=m, mpc=mpc)\n", + "r1" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "m.exit()" + ] + }, + { + "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" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/notebooks/load_case_RTS_GMLC.ipynb b/notebooks/load_case_RTS_GMLC.ipynb index 61c3648..76ecdaa 100644 --- a/notebooks/load_case_RTS_GMLC.ipynb +++ b/notebooks/load_case_RTS_GMLC.ipynb @@ -1,8 +1,22 @@ { "cells": [ + { + "cell_type": "markdown", + "id": "6f454e75", + "metadata": {}, + "source": [ + "# Load case_RTS_GMLC\n", + "\n", + "This notebook loads the RTS-GMLC case which contains:\n", + "- Piecewise linear gencost (`TYPE=1`)\n", + "- `bus_name` field\n", + "\n", + "> **Note:** This notebook uses the **Octave** engine via `start_instance(engine=\"octave\")`. For MATLAB, see `load_case_RTS_GMLC_matlab.ipynb`." + ] + }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "91c6ca79", "metadata": {}, "outputs": [], @@ -13,13 +27,11 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "7b85f966", "metadata": {}, "outputs": [], "source": [ - "import warnings\n", - "\n", "from matpower import start_instance\n", "\n", "from matpowercaseframes import CaseFrames" @@ -27,24 +39,12 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "42a980d8", "metadata": {}, "outputs": [], "source": [ - "m = start_instance()" - ] - }, - { - "cell_type": "code", - "execution_count": 10, - "id": "ebf38c59", - "metadata": {}, - "outputs": [], - "source": [ - "CASE_NAME = \"case_RTS_GMLC.m\"\n", - "# NOTE: \"case_RTS_GMLC.m\" currently error without load_case_engine\n", - "cf_RTS_GMLC = CaseFrames(CASE_NAME)" + "m = start_instance(engine=\"octave\")" ] }, { @@ -87,15 +87,30 @@ " X4\n", " Y4\n", " \n", + " \n", + " gen\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", " \n", " 1\n", - " 1\n", + " 1.0\n", " 51.7470\n", " 51.7470\n", - " 4\n", - " 8\n", + " 4.0\n", + " 8.0\n", " 1085.77625\n", " 12.00000\n", " 1477.23196\n", @@ -106,11 +121,11 @@ " \n", " \n", " 2\n", - " 1\n", + " 1.0\n", " 51.7470\n", " 51.7470\n", - " 4\n", - " 8\n", + " 4.0\n", + " 8.0\n", " 1085.77625\n", " 12.00000\n", " 1477.23196\n", @@ -121,11 +136,11 @@ " \n", " \n", " 3\n", - " 1\n", + " 1.0\n", " 11172.0143\n", " 11172.0143\n", - " 4\n", - " 30\n", + " 4.0\n", + " 30.0\n", " 841.57942\n", " 45.33333\n", " 1059.17805\n", @@ -136,11 +151,11 @@ " \n", " \n", " 4\n", - " 1\n", + " 1.0\n", " 11172.0143\n", " 11172.0143\n", - " 4\n", - " 30\n", + " 4.0\n", + " 30.0\n", " 841.57942\n", " 45.33333\n", " 1059.17805\n", @@ -151,11 +166,11 @@ " \n", " \n", " 5\n", - " 1\n", + " 1.0\n", " 51.7470\n", " 51.7470\n", - " 4\n", - " 8\n", + " 4.0\n", + " 8.0\n", " 1212.03893\n", " 12.00000\n", " 1567.93410\n", @@ -169,41 +184,195 @@ "" ], "text/plain": [ - " MODEL STARTUP SHUTDOWN NCOST X1 Y1 X2 Y2 \\\n", - "1 1 51.7470 51.7470 4 8 1085.77625 12.00000 1477.23196 \n", - "2 1 51.7470 51.7470 4 8 1085.77625 12.00000 1477.23196 \n", - "3 1 11172.0143 11172.0143 4 30 841.57942 45.33333 1059.17805 \n", - "4 1 11172.0143 11172.0143 4 30 841.57942 45.33333 1059.17805 \n", - "5 1 51.7470 51.7470 4 8 1212.03893 12.00000 1567.93410 \n", + " MODEL STARTUP SHUTDOWN NCOST X1 Y1 X2 \\\n", + "gen \n", + "1 1.0 51.7470 51.7470 4.0 8.0 1085.77625 12.00000 \n", + "2 1.0 51.7470 51.7470 4.0 8.0 1085.77625 12.00000 \n", + "3 1.0 11172.0143 11172.0143 4.0 30.0 841.57942 45.33333 \n", + "4 1.0 11172.0143 11172.0143 4.0 30.0 841.57942 45.33333 \n", + "5 1.0 51.7470 51.7470 4.0 8.0 1212.03893 12.00000 \n", + "\n", + " Y2 X3 Y3 X4 Y4 \n", + "gen \n", + "1 1477.23196 16.00000 1869.51562 20.0 2298.06357 \n", + "2 1477.23196 16.00000 1869.51562 20.0 2298.06357 \n", + "3 1059.17805 60.66667 1319.40176 76.0 1596.51343 \n", + "4 1059.17805 60.66667 1319.40176 76.0 1596.51343 \n", + "5 1567.93410 16.00000 1946.59795 20.0 2344.92565 " + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "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", + "
BUS_IBUS_TYPEPDQDGSBSBUS_AREAVMVABASE_KVZONEVMAXVMIN
bus_name
ABEL101.02.0108.022.00.00.01.01.04777-7.74152138.011.01.050.95
ADAMS102.02.097.020.00.00.01.01.04783-7.81784138.012.01.050.95
ADLER103.01.0180.037.00.00.01.01.01085-7.21090138.011.01.050.95
AGRICOLA104.01.074.015.00.00.01.01.01765-10.56614138.011.01.050.95
AIKEN105.01.071.014.00.00.01.01.03568-10.70887138.011.01.050.95
\n", + "
" + ], + "text/plain": [ + " BUS_I BUS_TYPE PD QD GS BS BUS_AREA VM VA \\\n", + "bus_name \n", + "ABEL 101.0 2.0 108.0 22.0 0.0 0.0 1.0 1.04777 -7.74152 \n", + "ADAMS 102.0 2.0 97.0 20.0 0.0 0.0 1.0 1.04783 -7.81784 \n", + "ADLER 103.0 1.0 180.0 37.0 0.0 0.0 1.0 1.01085 -7.21090 \n", + "AGRICOLA 104.0 1.0 74.0 15.0 0.0 0.0 1.0 1.01765 -10.56614 \n", + "AIKEN 105.0 1.0 71.0 14.0 0.0 0.0 1.0 1.03568 -10.70887 \n", "\n", - " X3 Y3 X4 Y4 \n", - "1 16.00000 1869.51562 20.0 2298.06357 \n", - "2 16.00000 1869.51562 20.0 2298.06357 \n", - "3 60.66667 1319.40176 76.0 1596.51343 \n", - "4 60.66667 1319.40176 76.0 1596.51343 \n", - "5 16.00000 1946.59795 20.0 2344.92565 " + " BASE_KV ZONE VMAX VMIN \n", + "bus_name \n", + "ABEL 138.0 11.0 1.05 0.95 \n", + "ADAMS 138.0 12.0 1.05 0.95 \n", + "ADLER 138.0 11.0 1.05 0.95 \n", + "AGRICOLA 138.0 11.0 1.05 0.95 \n", + "AIKEN 138.0 11.0 1.05 0.95 " ] }, - "execution_count": 4, "metadata": {}, - "output_type": "execute_result" + "output_type": "display_data" } ], "source": [ "CASE_NAME = \"case_RTS_GMLC.m\"\n", - "# NOTE: \"case_RTS_GMLC.m\" currently error without load_case_engine\n", "cf_RTS_GMLC = CaseFrames(CASE_NAME, load_case_engine=m)\n", - "with warnings.catch_warnings():\n", - " warnings.filterwarnings(\n", - " \"ignore\", category=RuntimeWarning, message=\".*invalid value.*\"\n", - " )\n", - " cf_RTS_GMLC.infer_numpy()\n", - "cf_RTS_GMLC.gencost.head()" + "display(cf_RTS_GMLC.gencost.head()) # case_RTS_GMLC use linear cost function\n", + "display(cf_RTS_GMLC.bus.head()) # case_RTS_GMLC use bus_name" ] }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "id": "7281da34", "metadata": {}, "outputs": [ @@ -218,7 +387,7 @@ "Newton's method converged in 4 iterations.\n", "PF successful\n", "\n", - "Converged in 0.10 seconds\n", + "Converged in 0.12 seconds\n", "================================================================================\n", "| System Summary |\n", "================================================================================\n", @@ -453,7 +622,9 @@ " 119 318 223 -28.08 -8.12 28.18 -15.15 0.095 0.76\n", " 120 323 325 -115.62 9.54 115.62 -8.45 0.000 1.10\n", " -------- --------\n", - " Total: 153.965 1442.60\n" + " Total: 153.965 1442.60\n", + "warning: error caught while executing handle class delete method:\n", + "method delete: conflicting definitions in classes 'mp.task_pf' and 'mp.task_shared_legacy'\n" ] } ], @@ -464,268 +635,7 @@ }, { "cell_type": "code", - "execution_count": 6, - "id": "28f76ab2", - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - "MATPOWER Version 8.1, 12-Jul-2025\n", - "Power Flow -- AC-polar-power formulation\n", - "\n", - "Newton's method converged in 4 iterations.\n", - "PF successful\n", - "\n", - "Converged in 0.05 seconds\n", - "================================================================================\n", - "| System Summary |\n", - "================================================================================\n", - "\n", - "How many? How much? P (MW) Q (MVAr)\n", - "--------------------- ------------------- ------------- -----------------\n", - "Buses 73 Total Gen Capacity 14549.8 -1615.0 to 4406.0\n", - "Generators 158 On-line Capacity 9076.0 -1615.0 to 4406.0\n", - "Committed Gens 96 Generation (actual) 8704.0 1718.7\n", - "Loads 51 Load 8550.0 1740.0\n", - " Fixed 51 Fixed 8550.0 1740.0\n", - " Dispatchable 0 Dispatchable -0.0 of -0.0 -0.0\n", - "Shunts 3 Shunt (inj) -0.0 -316.1\n", - "Branches 120 Losses (I^2 * Z) 153.97 1442.60\n", - "Transformers 16 Branch Charging (inj) - 1780.0\n", - "Inter-ties 5 Total Inter-tie Flow 331.2 25.0\n", - "Areas 3\n", - "\n", - " Minimum Maximum\n", - " ------------------------- --------------------------------\n", - "Voltage Magnitude 0.951 p.u. @ bus 308 1.050 p.u. @ bus 121\n", - "Voltage Angle -30.66 deg @ bus 307 16.52 deg @ bus 122\n", - "P Losses (I^2*R) - 9.42 MW @ line 312-323\n", - "Q Losses (I^2*X) - 76.11 MVAr @ line 312-323\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", - " 101 1.047 -8.575 168.00 10.68 108.00 22.00\n", - " 102 1.047 -8.634 168.00 4.66 97.00 20.00\n", - " 103 1.011 -7.980 - - 180.00 37.00\n", - " 104 1.017 -10.745 - - 74.00 15.00\n", - " 105 1.035 -10.928 - - 71.00 14.00\n", - " 106 1.032 -13.157 - - 136.00 28.00\n", - " 107 1.050 -3.989 355.00 49.51 125.00 25.00\n", - " 108 1.017 -9.342 - - 171.00 35.00\n", - " 109 1.027 -8.460 - - 175.00 36.00\n", - " 110 1.050 -10.203 - - 195.00 40.00\n", - " 111 1.027 -4.083 - - - -\n", - " 112 1.020 -2.396 - - - -\n", - " 113 1.035 0.000* 220.00 76.07 265.00 54.00\n", - " 114 1.044 -2.552 0.00 103.20 194.00 39.00\n", - " 115 1.043 5.977 165.00 92.20 317.00 64.00\n", - " 116 1.046 5.824 155.00 79.87 100.00 20.00\n", - " 117 1.048 9.138 - - - -\n", - " 118 1.050 9.952 355.00 68.45 333.00 68.00\n", - " 119 1.040 5.368 - - 181.00 37.00\n", - " 120 1.044 6.847 - - 128.00 26.00\n", - " 121 1.050 10.564 400.00 -21.93 - -\n", - " 122 1.050 16.516 300.00 -40.76 - -\n", - " 123 1.050 8.378 670.00 25.07 - -\n", - " 124 1.013 0.844 - - - -\n", - " 201 1.050 -12.611 142.00 21.73 108.00 22.00\n", - " 202 1.050 -12.651 168.00 14.28 97.00 20.00\n", - " 203 1.019 -9.121 - - 180.00 37.00\n", - " 204 1.015 -14.429 - - 74.00 15.00\n", - " 205 1.033 -14.929 - - 71.00 14.00\n", - " 206 1.028 -17.155 - - 136.00 28.00\n", - " 207 0.970 -22.392 110.00 38.00 125.00 25.00\n", - " 208 0.964 -21.696 - - 171.00 35.00\n", - " 209 1.020 -11.846 - - 175.00 36.00\n", - " 210 1.043 -14.163 - - 195.00 40.00\n", - " 211 1.028 -5.950 - - - -\n", - " 212 1.018 -4.164 - - - -\n", - " 213 1.050 -0.390 465.00 154.25 265.00 54.00\n", - " 214 1.050 -4.128 0.00 125.29 194.00 39.00\n", - " 215 1.044 4.742 260.00 86.30 317.00 64.00\n", - " 216 1.047 4.679 155.00 79.81 100.00 20.00\n", - " 217 1.049 8.086 - - - -\n", - " 218 1.050 8.906 355.00 60.31 333.00 68.00\n", - " 219 1.040 4.449 - - 181.00 37.00\n", - " 220 1.044 6.123 - - 128.00 26.00\n", - " 221 1.050 9.516 296.97 -7.62 - -\n", - " 222 1.050 15.467 300.00 -41.84 - -\n", - " 223 1.050 7.762 726.00 0.68 - -\n", - " 224 1.017 -0.386 - - - -\n", - " 301 1.050 -23.504 104.00 48.97 108.00 22.00\n", - " 302 1.050 -23.570 126.00 34.30 97.00 20.00\n", - " 303 0.998 -17.733 - - 180.00 37.00\n", - " 304 1.007 -23.757 - - 74.00 15.00\n", - " 305 1.028 -24.498 - - 71.00 14.00\n", - " 306 1.020 -26.020 - - 136.00 28.00\n", - " 307 0.957 -30.662 110.00 37.98 125.00 25.00\n", - " 308 0.951 -29.947 - - 171.00 35.00\n", - " 309 1.007 -19.748 - - 175.00 36.00\n", - " 310 1.032 -22.314 - - 195.00 40.00\n", - " 311 1.018 -12.834 - - - -\n", - " 312 1.003 -11.045 - - - -\n", - " 313 1.035 -7.624 355.00 149.98 265.00 54.00\n", - " 314 1.050 -9.655 0.00 166.72 194.00 39.00\n", - " 315 1.042 1.503 190.00 128.78 317.00 64.00\n", - " 316 1.045 1.163 155.00 79.13 100.00 20.00\n", - " 317 1.047 5.119 - - - -\n", - " 318 1.050 6.217 355.00 63.24 333.00 68.00\n", - " 319 1.039 0.850 - - 181.00 37.00\n", - " 320 1.044 2.456 - - 128.00 26.00\n", - " 321 1.050 6.905 355.00 -3.52 - -\n", - " 322 1.050 12.932 310.00 -39.97 - -\n", - " 323 1.050 4.057 710.00 74.93 - -\n", - " 324 0.999 -5.501 - - - -\n", - " 325 1.049 4.598 - - - -\n", - " -------- -------- -------- --------\n", - " Total: 8703.97 1718.74 8550.00 1740.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 101 102 7.84 -26.19 -7.84 -24.32 0.002 0.01\n", - " 2 101 103 -0.58 14.65 0.73 -20.08 0.159 0.61\n", - " 3 101 105 52.74 0.21 -52.18 -0.55 0.559 2.16\n", - " 4 102 104 34.94 13.72 -34.50 -15.64 0.441 1.70\n", - " 5 102 106 43.90 -4.74 -43.02 2.51 0.881 3.38\n", - " 6 103 109 3.68 -15.56 -3.61 12.48 0.063 0.24\n", - " 7 103 124 -184.41 -1.36 185.10 30.14 0.685 28.78\n", - " 8 104 109 -39.50 0.64 39.91 -2.00 0.408 1.57\n", - " 9 105 110 -18.82 -13.45 18.93 11.25 0.108 0.41\n", - " 10 106 110 -92.98 -137.09 94.12 -124.54 1.140 4.97\n", - " 11 107 108 168.71 19.74 -164.51 -5.57 4.193 15.98\n", - " 12 107 203 61.29 4.77 -59.84 -3.91 1.451 5.56\n", - " 13 108 109 -10.60 -5.60 10.65 1.10 0.051 0.20\n", - " 14 108 110 4.11 -23.83 -3.91 19.79 0.199 0.77\n", - " 15 109 111 -93.72 -30.19 93.91 38.39 0.195 8.20\n", - " 16 109 112 -128.23 -17.38 128.57 31.54 0.337 14.16\n", - " 17 110 111 -134.37 19.56 134.71 -5.09 0.345 14.47\n", - " 18 110 112 -169.77 33.94 170.33 -10.41 0.560 23.53\n", - " 19 111 113 -156.55 3.54 157.95 -2.98 1.398 11.19\n", - " 20 111 114 -72.08 -36.85 72.37 29.89 0.295 2.48\n", - " 21 112 113 -94.16 -23.47 94.69 17.16 0.531 4.25\n", - " 22 112 123 -204.74 2.33 209.60 15.18 4.857 39.26\n", - " 23 113 123 -179.70 8.11 183.05 -1.38 3.351 26.50\n", - " 24 113 215 -117.94 -0.22 119.25 -7.05 1.306 9.79\n", - " 25 114 116 -266.37 34.31 269.69 -4.05 3.323 39.22\n", - " 26 115 116 14.59 -23.89 -14.58 20.08 0.013 0.11\n", - " 27 115 121 -177.03 7.91 178.77 -4.98 1.739 14.20\n", - " 28 115 121 -177.03 7.91 178.77 -4.98 1.739 14.20\n", - " 29 115 124 187.47 36.27 -185.10 -30.14 2.377 17.66\n", - " 30 116 117 -240.85 22.84 242.46 -14.93 1.609 13.94\n", - " 31 116 119 40.73 21.01 -40.67 -25.87 0.061 0.47\n", - " 32 117 118 -111.10 2.55 111.33 -4.27 0.225 1.57\n", - " 33 117 122 -131.35 12.39 133.63 -19.65 2.275 17.06\n", - " 34 118 121 -44.66 2.36 44.72 -7.95 0.055 0.48\n", - " 35 118 121 -44.66 2.36 44.72 -7.95 0.055 0.48\n", - " 36 119 120 -70.16 -5.56 70.39 -1.62 0.228 1.82\n", - " 37 119 120 -70.16 -5.56 70.39 -1.62 0.228 1.82\n", - " 38 120 123 -134.39 -11.38 134.89 10.00 0.499 3.66\n", - " 39 120 123 -134.39 -11.38 134.89 10.00 0.499 3.66\n", - " 40 121 122 -164.10 22.63 166.37 -21.11 2.274 17.18\n", - " 41 123 217 7.57 -8.73 -7.57 -8.31 0.005 0.04\n", - " 42 201 202 5.24 -26.53 -5.23 -24.29 0.001 0.00\n", - " 43 201 203 -24.84 19.93 25.42 -23.83 0.573 2.20\n", - " 44 201 205 53.61 6.34 -53.02 -6.57 0.585 2.26\n", - " 45 202 204 31.49 19.07 -31.06 -21.04 0.428 1.65\n", - " 46 202 206 44.74 -0.50 -43.83 -1.62 0.911 3.50\n", - " 47 203 209 38.80 -12.07 -38.31 10.60 0.482 1.85\n", - " 48 203 224 -184.37 2.82 185.04 25.55 0.675 28.36\n", - " 49 204 209 -42.94 6.04 43.44 -7.03 0.498 1.92\n", - " 50 205 210 -17.98 -7.43 18.06 5.14 0.078 0.30\n", - " 51 206 210 -92.17 -131.96 93.29 -126.64 1.127 4.91\n", - " 52 207 208 -15.00 13.00 15.07 -14.32 0.071 0.27\n", - " 53 208 209 -101.32 0.22 106.08 13.59 4.755 18.25\n", - " 54 208 210 -84.75 -20.90 88.24 29.75 3.489 13.39\n", - " 55 209 211 -125.38 -35.41 125.73 49.95 0.346 14.54\n", - " 56 209 212 -160.82 -17.75 161.35 40.17 0.534 22.42\n", - " 57 210 211 -179.30 15.98 179.91 9.81 0.614 25.79\n", - " 58 210 212 -215.29 35.77 216.19 2.14 0.902 37.90\n", - " 59 211 213 -218.99 -13.71 221.72 24.71 2.725 21.80\n", - " 60 211 214 -86.64 -46.05 87.08 40.21 0.436 3.66\n", - " 61 212 213 -152.09 -49.66 153.55 50.60 1.454 11.64\n", - " 62 212 223 -225.45 7.35 231.38 18.84 5.925 47.89\n", - " 63 213 223 -175.27 24.93 178.46 -19.79 3.187 25.21\n", - " 64 214 216 -281.08 46.08 284.78 -11.45 3.699 43.65\n", - " 65 215 216 4.47 -24.58 -4.46 20.73 0.010 0.08\n", - " 66 215 221 -184.05 11.27 185.93 -7.19 1.882 15.37\n", - " 67 215 221 -184.05 11.27 185.93 -7.19 1.882 15.37\n", - " 68 215 224 187.39 31.41 -185.04 -25.55 2.346 17.43\n", - " 69 216 217 -248.08 24.53 249.78 -15.81 1.704 14.77\n", - " 70 216 219 22.76 25.99 -22.72 -31.05 0.037 0.28\n", - " 71 217 218 -110.83 10.66 111.05 -12.38 0.226 1.58\n", - " 72 217 222 -131.39 13.47 133.67 -20.73 2.278 17.09\n", - " 73 218 221 -44.53 2.35 44.58 -7.94 0.055 0.47\n", - " 74 218 221 -44.53 2.35 44.58 -7.94 0.055 0.47\n", - " 75 219 220 -79.14 -2.97 79.43 -3.73 0.289 2.32\n", - " 76 219 220 -79.14 -2.97 79.43 -3.73 0.289 2.32\n", - " 77 220 223 -143.43 -9.27 144.00 8.39 0.567 4.16\n", - " 78 220 223 -143.43 -9.27 144.00 8.39 0.567 4.16\n", - " 79 221 222 -164.06 22.62 166.33 -21.11 2.273 17.17\n", - " 80 301 302 8.64 -27.26 -8.64 -23.56 0.002 0.01\n", - " 81 301 303 -39.86 35.56 41.40 -35.63 1.540 5.91\n", - " 82 301 305 27.21 18.68 -26.99 -20.28 0.227 0.88\n", - " 83 302 304 11.14 30.50 -10.79 -32.75 0.351 1.35\n", - " 84 302 306 26.50 7.36 -26.14 -11.52 0.366 1.41\n", - " 85 303 309 26.14 -15.26 -25.87 13.08 0.271 1.04\n", - " 86 303 324 -247.53 13.89 248.80 39.49 1.271 53.39\n", - " 87 304 309 -63.21 17.75 64.37 -16.11 1.161 4.47\n", - " 88 305 310 -44.01 6.28 44.45 -7.17 0.434 1.66\n", - " 89 306 310 -109.86 -120.44 111.49 -131.32 1.633 7.11\n", - " 90 307 308 -15.00 12.98 15.07 -14.25 0.072 0.28\n", - " 91 308 309 -101.87 1.21 106.82 13.44 4.943 18.97\n", - " 92 308 310 -84.20 -21.96 87.76 31.20 3.563 13.67\n", - " 93 309 311 -143.49 -35.07 143.94 54.24 0.457 19.18\n", - " 94 309 312 -176.84 -11.35 177.49 38.94 0.657 27.60\n", - " 95 310 311 -202.57 20.54 203.38 13.12 0.801 33.66\n", - " 96 310 312 -236.13 46.75 237.25 0.29 1.120 47.04\n", - " 97 311 313 -199.55 -7.00 201.85 14.90 2.305 18.44\n", - " 98 311 314 -147.77 -60.36 148.97 61.06 1.204 10.11\n", - " 99 312 313 -134.86 -52.09 136.08 51.45 1.218 9.74\n", - " 100 312 323 -279.89 12.86 289.30 41.86 9.416 76.11\n", - " 101 313 323 -247.93 29.63 254.40 1.78 6.471 51.18\n", - " 102 314 316 -342.97 66.67 348.54 -10.00 5.565 65.66\n", - " 103 315 316 35.64 -22.59 -35.61 18.93 0.031 0.27\n", - " 104 315 321 -207.93 13.19 210.34 -4.80 2.408 19.66\n", - " 105 315 321 -207.93 13.19 210.34 -4.80 2.408 19.66\n", - " 106 315 324 253.23 60.97 -248.80 -39.49 4.421 32.84\n", - " 107 316 317 -286.68 29.76 288.97 -15.95 2.288 19.83\n", - " 108 316 319 28.75 20.44 -28.72 -25.47 0.037 0.29\n", - " 109 317 318 -150.00 2.34 150.42 -2.77 0.410 2.87\n", - " 110 317 322 -138.97 13.61 141.51 -18.80 2.549 19.11\n", - " 111 318 321 -50.17 3.06 50.24 -8.52 0.069 0.60\n", - " 112 318 321 -50.17 3.06 50.24 -8.52 0.069 0.60\n", - " 113 319 320 -76.14 -5.76 76.41 -1.09 0.269 2.15\n", - " 114 319 320 -76.14 -5.76 76.41 -1.09 0.269 2.15\n", - " 115 320 323 -140.41 -11.91 140.96 10.87 0.546 4.00\n", - " 116 320 323 -140.41 -11.91 140.96 10.87 0.546 4.00\n", - " 117 321 322 -166.15 23.13 168.49 -21.16 2.332 17.62\n", - " 118 325 121 -115.62 8.45 117.11 -18.69 1.499 12.12\n", - " 119 318 223 -28.08 -8.12 28.18 -15.15 0.095 0.76\n", - " 120 323 325 -115.62 9.54 115.62 -8.45 0.000 1.10\n", - " -------- --------\n", - " Total: 153.965 1442.60\n" - ] - } - ], - "source": [ - "mpc = cf_RTS_GMLC.to_mpc()\n", - "_ = m.runpf(mpc)" - ] - }, - { - "cell_type": "code", - "execution_count": 7, + "execution_count": null, "id": "47837a00", "metadata": {}, "outputs": [], @@ -757,8 +667,7 @@ "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.14.2" + "pygments_lexer": "ipython3" } }, "nbformat": 4, diff --git a/notebooks/load_case_RTS_GMLC_matlab.ipynb b/notebooks/load_case_RTS_GMLC_matlab.ipynb new file mode 100644 index 0000000..8501eb5 --- /dev/null +++ b/notebooks/load_case_RTS_GMLC_matlab.ipynb @@ -0,0 +1,741 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "6f454e75", + "metadata": {}, + "source": [ + "# Load case_RTS_GMLC\n", + "\n", + "This notebook loads the RTS-GMLC case which contains:\n", + "- Piecewise linear gencost (`TYPE=1`)\n", + "- `bus_name` field\n", + "\n", + "This notebook loads `RTS-GMLC.m` using the **MATLAB** engine and runs power flow via `to_mpc(backend=\"matlab\")`.\n", + "\n", + "> **Requirement:** MATLAB Engine for Python must be installed (`import matlab.engine`).\n", + "> The cell below checks availability and skips if not found." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "91c6ca79", + "metadata": {}, + "outputs": [], + "source": [ + "%load_ext autoreload\n", + "%autoreload 2" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "7b85f966", + "metadata": {}, + "outputs": [], + "source": [ + "from matpower import run_matlab_cmd, start_instance\n", + "\n", + "from matpowercaseframes import CaseFrames" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "5432cec9", + "metadata": {}, + "outputs": [], + "source": [ + "import pytest\n", + "\n", + "try:\n", + " import matlab.engine # noqa: F401\n", + "\n", + " MATLAB_AVAILABLE = True\n", + "except ImportError:\n", + " MATLAB_AVAILABLE = False\n", + "\n", + "if not MATLAB_AVAILABLE:\n", + " raise pytest.skip(\"MATLAB not available\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "42a980d8", + "metadata": {}, + "outputs": [], + "source": [ + "m = start_instance(engine=\"matlab\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e3b7a6da", + "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", + "
MODELSTARTUPSHUTDOWNNCOSTX1Y1X2Y2X3Y3X4Y4
gen
11.051.747051.74704.08.01085.7762512.000001477.2319616.000001869.5156220.02298.06357
21.051.747051.74704.08.01085.7762512.000001477.2319616.000001869.5156220.02298.06357
31.011172.014311172.01434.030.0841.5794245.333331059.1780560.666671319.4017676.01596.51343
41.011172.014311172.01434.030.0841.5794245.333331059.1780560.666671319.4017676.01596.51343
51.051.747051.74704.08.01212.0389312.000001567.9341016.000001946.5979520.02344.92565
\n", + "
" + ], + "text/plain": [ + " MODEL STARTUP SHUTDOWN NCOST X1 Y1 X2 \\\n", + "gen \n", + "1 1.0 51.7470 51.7470 4.0 8.0 1085.77625 12.00000 \n", + "2 1.0 51.7470 51.7470 4.0 8.0 1085.77625 12.00000 \n", + "3 1.0 11172.0143 11172.0143 4.0 30.0 841.57942 45.33333 \n", + "4 1.0 11172.0143 11172.0143 4.0 30.0 841.57942 45.33333 \n", + "5 1.0 51.7470 51.7470 4.0 8.0 1212.03893 12.00000 \n", + "\n", + " Y2 X3 Y3 X4 Y4 \n", + "gen \n", + "1 1477.23196 16.00000 1869.51562 20.0 2298.06357 \n", + "2 1477.23196 16.00000 1869.51562 20.0 2298.06357 \n", + "3 1059.17805 60.66667 1319.40176 76.0 1596.51343 \n", + "4 1059.17805 60.66667 1319.40176 76.0 1596.51343 \n", + "5 1567.93410 16.00000 1946.59795 20.0 2344.92565 " + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "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", + "
BUS_IBUS_TYPEPDQDGSBSBUS_AREAVMVABASE_KVZONEVMAXVMIN
bus_name
ABEL101.02.0108.022.00.00.01.01.04777-7.74152138.011.01.050.95
ADAMS102.02.097.020.00.00.01.01.04783-7.81784138.012.01.050.95
ADLER103.01.0180.037.00.00.01.01.01085-7.21090138.011.01.050.95
AGRICOLA104.01.074.015.00.00.01.01.01765-10.56614138.011.01.050.95
AIKEN105.01.071.014.00.00.01.01.03568-10.70887138.011.01.050.95
\n", + "
" + ], + "text/plain": [ + " BUS_I BUS_TYPE PD QD GS BS BUS_AREA VM VA \\\n", + "bus_name \n", + "ABEL 101.0 2.0 108.0 22.0 0.0 0.0 1.0 1.04777 -7.74152 \n", + "ADAMS 102.0 2.0 97.0 20.0 0.0 0.0 1.0 1.04783 -7.81784 \n", + "ADLER 103.0 1.0 180.0 37.0 0.0 0.0 1.0 1.01085 -7.21090 \n", + "AGRICOLA 104.0 1.0 74.0 15.0 0.0 0.0 1.0 1.01765 -10.56614 \n", + "AIKEN 105.0 1.0 71.0 14.0 0.0 0.0 1.0 1.03568 -10.70887 \n", + "\n", + " BASE_KV ZONE VMAX VMIN \n", + "bus_name \n", + "ABEL 138.0 11.0 1.05 0.95 \n", + "ADAMS 138.0 12.0 1.05 0.95 \n", + "ADLER 138.0 11.0 1.05 0.95 \n", + "AGRICOLA 138.0 11.0 1.05 0.95 \n", + "AIKEN 138.0 11.0 1.05 0.95 " + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "CASE_NAME = \"case_RTS_GMLC.m\"\n", + "cf_RTS_GMLC = CaseFrames(CASE_NAME, load_case_engine=m)\n", + "display(cf_RTS_GMLC.gencost.head()) # case_RTS_GMLC use linear cost function\n", + "display(cf_RTS_GMLC.bus.head()) # case_RTS_GMLC use bus_name" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "7281da34", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "{'version': '2',\n", + " 'baseMVA': 100.0,\n", + " 'bus': matlab.double([[101.0,2.0,108.0,22.0,0.0,0.0,1.0,1.04777,-7.74152,138.0,11.0,1.05,0.95],[102.0,2.0,97.0,20.0,0.0,0.0,1.0,1.04783,-7.81784,138.0,12.0,1.05,0.95],[103.0,1.0,180.0,37.0,0.0,0.0,1.0,1.01085,-7.2109,138.0,11.0,1.05,0.95],[104.0,1.0,74.0,15.0,0.0,0.0,1.0,1.01765,-10.56614,138.0,11.0,1.05,0.95],[105.0,1.0,71.0,14.0,0.0,0.0,1.0,1.03568,-10.70887,138.0,11.0,1.05,0.95],[106.0,1.0,136.0,28.0,0.0,-100.0,1.0,1.03242,-13.27944,138.0,12.0,1.05,0.95],[107.0,2.0,125.0,25.0,0.0,0.0,1.0,1.03745,-11.27673,138.0,12.0,1.05,0.95],[108.0,1.0,171.0,35.0,0.0,0.0,1.0,1.01024,-13.74967,138.0,12.0,1.05,0.95],[109.0,1.0,175.0,36.0,0.0,0.0,1.0,1.0261,-8.81524,138.0,13.0,1.05,0.95],[110.0,1.0,195.0,40.0,0.0,0.0,1.0,1.05,-10.62063,138.0,13.0,1.05,0.95],[111.0,1.0,0.0,0.0,0.0,0.0,1.0,1.02764,-3.91674,230.0,13.0,1.05,0.95],[112.0,1.0,0.0,0.0,0.0,0.0,1.0,1.02024,-2.42424,230.0,13.0,1.05,0.95],[113.0,3.0,265.0,54.0,0.0,0.0,1.0,1.03943,0.0,230.0,14.0,1.05,0.95],[114.0,2.0,194.0,39.0,0.0,0.0,1.0,1.04401,-1.73056,230.0,16.0,1.05,0.95],[115.0,2.0,317.0,64.0,0.0,0.0,1.0,1.04335,7.9597,230.0,16.0,1.05,0.95],[116.0,2.0,100.0,20.0,0.0,0.0,1.0,1.04565,7.56929,230.0,16.0,1.05,0.95],[117.0,1.0,0.0,0.0,0.0,0.0,1.0,1.04783,11.43417,230.0,17.0,1.05,0.95],[118.0,2.0,333.0,68.0,0.0,0.0,1.0,1.05,12.52457,230.0,17.0,1.05,0.95],[119.0,1.0,181.0,37.0,0.0,0.0,1.0,1.03962,6.65777,230.0,15.0,1.05,0.95],[120.0,1.0,128.0,26.0,0.0,0.0,1.0,1.04399,7.7406,230.0,15.0,1.05,0.95],[121.0,2.0,0.0,0.0,0.0,0.0,1.0,1.05,13.08653,230.0,17.0,1.05,0.95],[122.0,2.0,0.0,0.0,0.0,0.0,1.0,1.05,18.94978,230.0,17.0,1.05,0.95],[123.0,2.0,0.0,0.0,0.0,0.0,1.0,1.05,9.05617,230.0,15.0,1.05,0.95],[124.0,1.0,0.0,0.0,0.0,0.0,1.0,1.01155,2.38339,230.0,16.0,1.05,0.95],[201.0,2.0,108.0,22.0,0.0,0.0,2.0,1.04841,-10.68973,138.0,21.0,1.05,0.95],[202.0,2.0,97.0,20.0,0.0,0.0,2.0,1.04844,-10.75906,138.0,22.0,1.05,0.95],[203.0,1.0,180.0,37.0,0.0,0.0,2.0,1.01886,-10.47453,138.0,21.0,1.05,0.95],[204.0,1.0,74.0,15.0,0.0,0.0,2.0,1.0189,-13.48479,138.0,21.0,1.05,0.95],[205.0,1.0,71.0,14.0,0.0,0.0,2.0,1.03603,-13.61187,138.0,21.0,1.05,0.95],[206.0,1.0,136.0,28.0,0.0,-100.0,2.0,1.03259,-16.15672,138.0,22.0,1.05,0.95],[207.0,2.0,125.0,25.0,0.0,0.0,2.0,1.03973,-13.46606,138.0,22.0,1.05,0.95],[208.0,1.0,171.0,35.0,0.0,0.0,2.0,1.01203,-16.22359,138.0,22.0,1.05,0.95],[209.0,1.0,175.0,36.0,0.0,0.0,2.0,1.02781,-11.72409,138.0,23.0,1.05,0.95],[210.0,1.0,195.0,40.0,0.0,0.0,2.0,1.05,-13.47986,138.0,23.0,1.05,0.95],[211.0,1.0,0.0,0.0,0.0,0.0,2.0,1.02735,-6.93336,230.0,23.0,1.05,0.95],[212.0,1.0,0.0,0.0,0.0,0.0,2.0,1.01921,-5.25334,230.0,23.0,1.05,0.95],[213.0,2.0,265.0,54.0,0.0,0.0,2.0,1.03752,-3.2151,230.0,24.0,1.05,0.95],[214.0,2.0,194.0,39.0,0.0,0.0,2.0,1.04335,-4.68519,230.0,26.0,1.05,0.95],[215.0,2.0,317.0,64.0,0.0,0.0,2.0,1.04327,4.63351,230.0,26.0,1.05,0.95],[216.0,2.0,100.0,20.0,0.0,0.0,2.0,1.04556,4.70009,230.0,26.0,1.05,0.95],[217.0,1.0,0.0,0.0,0.0,0.0,2.0,1.04847,8.81839,230.0,27.0,1.05,0.95],[218.0,2.0,333.0,68.0,0.0,0.0,2.0,1.05,9.99473,230.0,27.0,1.05,0.95],[219.0,1.0,181.0,37.0,0.0,0.0,2.0,1.03946,4.21233,230.0,25.0,1.05,0.95],[220.0,1.0,128.0,26.0,0.0,0.0,2.0,1.0438,5.66449,230.0,25.0,1.05,0.95],[221.0,2.0,0.0,0.0,0.0,0.0,2.0,1.05,10.63209,230.0,27.0,1.05,0.95],[222.0,2.0,0.0,0.0,0.0,0.0,2.0,1.05,16.43203,230.0,27.0,1.05,0.95],[223.0,2.0,0.0,0.0,0.0,0.0,2.0,1.05,7.18151,230.0,25.0,1.05,0.95],[224.0,1.0,0.0,0.0,0.0,0.0,2.0,1.01456,-0.96005,230.0,26.0,1.05,0.95],[301.0,2.0,108.0,22.0,0.0,0.0,3.0,1.0486,-9.34821,138.0,31.0,1.05,0.95],[302.0,2.0,97.0,20.0,0.0,0.0,3.0,1.04864,-9.431,138.0,32.0,1.05,0.95],[303.0,1.0,180.0,37.0,0.0,0.0,3.0,1.01045,-8.57689,138.0,31.0,1.05,0.95],[304.0,1.0,74.0,15.0,0.0,0.0,3.0,1.01785,-12.18784,138.0,31.0,1.05,0.95],[305.0,1.0,71.0,14.0,0.0,0.0,3.0,1.03609,-12.35005,138.0,31.0,1.05,0.95],[306.0,1.0,136.0,28.0,0.0,-100.0,3.0,1.0326,-14.94205,138.0,32.0,1.05,0.95],[307.0,2.0,125.0,25.0,0.0,0.0,3.0,1.03804,-12.54795,138.0,32.0,1.05,0.95],[308.0,1.0,171.0,35.0,0.0,0.0,3.0,1.01056,-15.18287,138.0,32.0,1.05,0.95],[309.0,1.0,175.0,36.0,0.0,0.0,3.0,1.02579,-10.44617,138.0,33.0,1.05,0.95],[310.0,1.0,195.0,40.0,0.0,0.0,3.0,1.05,-12.30117,138.0,33.0,1.05,0.95],[311.0,1.0,0.0,0.0,0.0,0.0,3.0,1.0283,-5.74069,230.0,33.0,1.05,0.95],[312.0,1.0,0.0,0.0,0.0,0.0,3.0,1.019,-4.14604,230.0,33.0,1.05,0.95],[313.0,2.0,265.0,54.0,0.0,0.0,3.0,1.03802,-2.41513,230.0,34.0,1.05,0.95],[314.0,2.0,194.0,39.0,0.0,0.0,3.0,1.04631,-3.20793,230.0,36.0,1.05,0.95],[315.0,2.0,317.0,64.0,0.0,0.0,3.0,1.043,7.05088,230.0,36.0,1.05,0.95],[316.0,2.0,100.0,20.0,0.0,0.0,3.0,1.04558,6.59875,230.0,36.0,1.05,0.95],[317.0,1.0,0.0,0.0,0.0,0.0,3.0,1.04785,10.34418,230.0,37.0,1.05,0.95],[318.0,2.0,333.0,68.0,0.0,0.0,3.0,1.05,11.34262,230.0,37.0,1.05,0.95],[319.0,1.0,181.0,37.0,0.0,0.0,3.0,1.03953,5.91539,230.0,35.0,1.05,0.95],[320.0,1.0,128.0,26.0,0.0,0.0,3.0,1.04389,7.19709,230.0,35.0,1.05,0.95],[321.0,2.0,0.0,0.0,0.0,0.0,3.0,1.05,12.34122,230.0,37.0,1.05,0.95],[322.0,2.0,0.0,0.0,0.0,0.0,3.0,1.05,18.06914,230.0,37.0,1.05,0.95],[323.0,2.0,0.0,0.0,0.0,0.0,3.0,1.05,8.62112,230.0,35.0,1.05,0.95],[324.0,1.0,0.0,0.0,0.0,0.0,3.0,1.01046,1.30606,230.0,36.0,1.05,0.95],[325.0,1.0,0.0,0.0,0.0,0.0,3.0,1.04986,8.99332,230.0,35.0,1.05,0.95]]),\n", + " 'gen': matlab.double([[101.0,8.0,4.96,10.0,0.0,1.0468,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[101.0,8.0,4.96,10.0,0.0,1.0468,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[101.0,76.0,0.14,30.0,-25.0,1.0468,100.0,1.0,76.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0],[101.0,76.0,0.14,30.0,-25.0,1.0468,100.0,1.0,76.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0],[102.0,8.0,4.88,10.0,0.0,1.0467,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[102.0,8.0,4.88,10.0,0.0,1.0467,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[102.0,76.0,-2.31,30.0,-25.0,1.0467,100.0,1.0,76.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0],[102.0,76.0,-2.31,30.0,-25.0,1.0467,100.0,1.0,76.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0],[107.0,355.0,49.51,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[113.0,55.0,19.0,19.0,-15.0,1.0347,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[113.0,55.0,19.0,19.0,-15.0,1.0347,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[113.0,55.0,19.0,19.0,-15.0,1.0347,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[113.0,55.0,19.0,19.0,-15.0,1.0347,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[115.0,5.0,6.0,6.0,0.0,1.0428,100.0,1.0,12.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,0.0],[115.0,5.0,6.0,6.0,0.0,1.0428,100.0,1.0,12.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,0.0],[115.0,155.0,80.0,80.0,-50.0,1.0428,100.0,1.0,155.0,62.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[116.0,155.0,80.0,80.0,-50.0,1.0461,100.0,1.0,155.0,62.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[118.0,355.0,68.43,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[123.0,155.0,-5.19,80.0,-50.0,1.05,100.0,1.0,155.0,62.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[123.0,350.0,28.41,150.0,-25.0,1.05,100.0,1.0,350.0,140.0,0.0,0.0,0.0,0.0,0.0,0.0,4.0,4.0,4.0,4.0,0.0],[123.0,55.0,0.62,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[123.0,55.0,0.62,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[123.0,55.0,0.62,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[201.0,8.0,5.29,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[201.0,8.0,5.29,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[201.0,76.0,6.99,30.0,-25.0,1.05,100.0,1.0,76.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0],[202.0,8.0,5.13,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[202.0,8.0,5.13,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[202.0,76.0,2.01,30.0,-25.0,1.05,100.0,1.0,76.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0],[202.0,76.0,2.01,30.0,-25.0,1.05,100.0,1.0,76.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0],[207.0,55.0,19.0,19.0,-15.0,0.9699,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[207.0,55.0,19.0,19.0,-15.0,0.9699,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[213.0,355.0,135.8,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[213.0,55.0,9.23,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[213.0,55.0,9.23,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[215.0,55.0,19.0,19.0,-15.0,1.0437,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[215.0,55.0,19.0,19.0,-15.0,1.0437,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[216.0,155.0,80.0,80.0,-50.0,1.0473,100.0,1.0,155.0,62.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[218.0,355.0,60.3,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[221.0,296.97,-7.52,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[223.0,155.0,-10.31,80.0,-50.0,1.05,100.0,1.0,155.0,62.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[223.0,155.0,-10.31,80.0,-50.0,1.05,100.0,1.0,155.0,62.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[223.0,350.0,20.59,150.0,-25.0,1.05,100.0,1.0,350.0,140.0,0.0,0.0,0.0,0.0,0.0,0.0,4.0,4.0,4.0,4.0,0.0],[223.0,22.0,0.24,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[223.0,22.0,0.24,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[223.0,22.0,0.24,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[301.0,8.0,7.95,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[301.0,8.0,7.95,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[301.0,44.0,16.53,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[301.0,44.0,16.53,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[302.0,8.0,6.16,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[302.0,8.0,6.16,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[302.0,55.0,10.99,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[302.0,55.0,10.99,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[307.0,55.0,19.0,19.0,-15.0,0.9568,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[307.0,55.0,19.0,19.0,-15.0,0.9568,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[313.0,355.0,150.0,150.0,-25.0,1.035,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[315.0,5.0,6.0,6.0,0.0,1.0422,100.0,1.0,12.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,0.0],[315.0,5.0,6.0,6.0,0.0,1.0422,100.0,1.0,12.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,0.0],[315.0,5.0,6.0,6.0,0.0,1.0422,100.0,1.0,12.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,0.0],[315.0,5.0,6.0,6.0,0.0,1.0422,100.0,1.0,12.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,0.0],[315.0,5.0,6.0,6.0,0.0,1.0422,100.0,1.0,12.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,0.0],[315.0,55.0,19.0,19.0,-15.0,1.0422,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[315.0,55.0,19.0,19.0,-15.0,1.0422,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[315.0,55.0,60.0,60.0,0.0,1.0422,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[316.0,155.0,80.0,80.0,-50.0,1.0449,100.0,1.0,155.0,62.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[318.0,355.0,63.12,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[321.0,355.0,-3.34,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[322.0,55.0,-9.73,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[322.0,55.0,-9.73,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[323.0,355.0,37.41,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[323.0,355.0,37.41,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[114.0,0.0,103.32,200.0,-50.0,1.0441,100.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[121.0,400.0,-21.87,200.0,-50.0,1.05,100.0,1.0,400.0,396.0,0.0,0.0,0.0,0.0,0.0,0.0,20.0,20.0,20.0,20.0,0.0],[122.0,50.0,-6.79,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[122.0,50.0,-6.79,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[122.0,50.0,-6.79,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[122.0,50.0,-6.79,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[122.0,50.0,-6.79,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[122.0,50.0,-6.79,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[201.0,50.0,4.15,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[214.0,0.0,125.28,200.0,-50.0,1.05,100.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[215.0,50.0,16.0,16.0,-10.0,1.0437,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[215.0,50.0,16.0,16.0,-10.0,1.0437,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[215.0,50.0,16.0,16.0,-10.0,1.0437,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[222.0,50.0,-6.97,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[222.0,50.0,-6.97,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[222.0,50.0,-6.97,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[222.0,50.0,-6.97,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[222.0,50.0,-6.97,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[222.0,50.0,-6.97,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[314.0,0.0,166.63,200.0,-50.0,1.05,100.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[322.0,50.0,-5.13,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[322.0,50.0,-5.13,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[322.0,50.0,-5.13,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[322.0,50.0,-5.13,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[320.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.6,51.6,51.6,51.6,0.0],[314.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.6,51.6,51.6,51.6,0.0],[314.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.6,51.6,51.6,51.6,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,95.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,95.1,95.1,95.1,95.1,0.0],[314.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,92.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,92.7,92.7,92.7,92.7,0.0],[314.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.6,51.6,51.6,51.6,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,93.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,93.3,93.3,93.3,93.3,0.0],[310.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.7,51.7,51.7,51.7,0.0],[324.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,49.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,49.7,49.7,49.7,49.7,0.0],[312.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,94.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,94.1,94.1,94.1,94.1,0.0],[310.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.6,51.6,51.6,51.6,0.0],[324.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.6,51.6,51.6,51.6,0.0],[324.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.0,51.0,51.0,51.0,0.0],[113.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,93.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,93.6,93.6,93.6,93.6,0.0],[319.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,188.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,188.2,188.2,188.2,188.2,0.0],[215.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,125.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,125.1,125.1,125.1,125.1,0.0],[102.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,25.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,25.6,25.6,25.6,25.6,0.0],[101.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,25.9,0.0,0.0,0.0,0.0,0.0,0.0,0.0,25.9,25.9,25.9,25.9,0.0],[102.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,25.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,25.3,25.3,25.3,25.3,0.0],[104.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,26.8,0.0,0.0,0.0,0.0,0.0,0.0,0.0,26.8,26.8,26.8,26.8,0.0],[212.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,200.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,20.0,20.0,20.0,20.0,0.0],[101.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,26.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,26.7,26.7,26.7,26.7,0.0],[101.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,26.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,26.2,26.2,26.2,26.2,0.0],[101.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,25.8,0.0,0.0,0.0,0.0,0.0,0.0,0.0,25.8,25.8,25.8,25.8,0.0],[103.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,61.5,0.0,0.0,0.0,0.0,0.0,0.0,0.0,61.5,61.5,61.5,61.5,0.0],[119.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,66.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,66.6,66.6,66.6,66.6,0.0],[308.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,100.9,0.0,0.0,0.0,0.0,0.0,0.0,0.0,100.9,100.9,100.9,100.9,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,101.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,101.7,101.7,101.7,101.7,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,63.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,63.1,63.1,63.1,63.1,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,65.4,0.0,0.0,0.0,0.0,0.0,0.0,0.0,65.4,65.4,65.4,65.4,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,67.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,67.0,67.0,67.0,67.0,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,64.8,0.0,0.0,0.0,0.0,0.0,0.0,0.0,64.8,64.8,64.8,64.8,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,63.8,0.0,0.0,0.0,0.0,0.0,0.0,0.0,63.8,63.8,63.8,63.8,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,64.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,64.1,64.1,64.1,64.1,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,66.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,66.6,66.6,66.6,66.6,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,62.4,0.0,0.0,0.0,0.0,0.0,0.0,0.0,62.4,62.4,62.4,62.4,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,66.9,0.0,0.0,0.0,0.0,0.0,0.0,0.0,66.9,66.9,66.9,66.9,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,65.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,65.2,65.2,65.2,65.2,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,27.8,0.0,0.0,0.0,0.0,0.0,0.0,0.0,27.8,27.8,27.8,27.8,0.0],[320.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,27.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,27.3,27.3,27.3,27.3,0.0],[320.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,27.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,27.0,27.0,27.0,27.0,0.0],[320.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,28.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,28.3,28.3,28.3,28.3,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,27.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,27.2,27.2,27.2,27.2,0.0],[320.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,27.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,27.0,27.0,27.0,27.0,0.0],[320.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,28.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,28.2,28.2,28.2,28.2,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,9.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.3,9.3,9.3,9.3,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,9.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.7,9.7,9.7,9.7,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,9.4,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.4,9.4,9.4,9.4,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,9.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.1,9.1,9.1,9.1,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,9.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.1,9.1,9.1,9.1,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,9.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.7,9.7,9.7,9.7,0.0],[320.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,9.4,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.4,9.4,9.4,9.4,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,11.8,0.0,0.0,0.0,0.0,0.0,0.0,0.0,11.8,11.8,11.8,11.8,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,11.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,11.2,11.2,11.2,11.2,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,10.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,10.3,10.3,10.3,10.3,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,4.5,0.0,0.0,0.0,0.0,0.0,0.0,0.0,4.5,4.5,4.5,4.5,0.0],[213.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,13.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,13.2,13.2,13.2,13.2,0.0],[309.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,148.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,148.3,148.3,148.3,148.3,0.0],[317.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,799.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,799.1,799.1,799.1,799.1,0.0],[303.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,847.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,847.0,847.0,847.0,847.0,0.0],[122.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,713.5,0.0,0.0,0.0,0.0,0.0,0.0,0.0,713.5,713.5,713.5,713.5,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0]]),\n", + " 'branch': matlab.double([[101.0,102.0,0.003,0.014,0.461,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[101.0,103.0,0.055,0.211,0.057,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[101.0,105.0,0.022,0.085,0.023,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[102.0,104.0,0.033,0.127,0.034,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[102.0,106.0,0.05,0.192,0.052,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[103.0,109.0,0.031,0.119,0.032,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[103.0,124.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0],[104.0,109.0,0.027,0.104,0.028,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[105.0,110.0,0.023,0.088,0.024,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[106.0,110.0,0.014,0.061,2.459,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[107.0,108.0,0.016,0.061,0.017,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[107.0,203.0,0.042,0.161,0.044,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[108.0,109.0,0.043,0.165,0.045,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[108.0,110.0,0.043,0.165,0.045,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[109.0,111.0,0.002,0.084,0.0,400.0,400.0,400.0,1.03,0.0,1.0,-180.0,180.0],[109.0,112.0,0.002,0.084,0.0,400.0,400.0,400.0,1.03,0.0,1.0,-180.0,180.0],[110.0,111.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0],[110.0,112.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0],[111.0,113.0,0.006,0.048,0.1,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[111.0,114.0,0.005,0.042,0.088,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[112.0,113.0,0.006,0.048,0.1,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[112.0,123.0,0.012,0.097,0.203,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[113.0,123.0,0.011,0.087,0.182,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[113.0,215.0,0.01,0.075,0.158,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[114.0,116.0,0.005,0.059,0.082,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[115.0,116.0,0.002,0.017,0.036,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[115.0,121.0,0.006,0.049,0.103,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[115.0,121.0,0.006,0.049,0.103,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[115.0,124.0,0.007,0.052,0.109,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[116.0,117.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[116.0,119.0,0.003,0.023,0.049,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[117.0,118.0,0.002,0.014,0.03,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[117.0,122.0,0.014,0.105,0.221,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[118.0,121.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[118.0,121.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[119.0,120.0,0.005,0.04,0.083,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[119.0,120.0,0.005,0.04,0.083,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[120.0,123.0,0.003,0.022,0.046,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[120.0,123.0,0.003,0.022,0.046,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[121.0,122.0,0.009,0.068,0.142,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[123.0,217.0,0.01,0.074,0.155,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[201.0,202.0,0.003,0.014,0.461,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[201.0,203.0,0.055,0.211,0.057,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[201.0,205.0,0.022,0.085,0.023,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[202.0,204.0,0.033,0.127,0.034,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[202.0,206.0,0.05,0.192,0.052,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[203.0,209.0,0.031,0.119,0.032,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[203.0,224.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0],[204.0,209.0,0.027,0.104,0.028,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[205.0,210.0,0.023,0.088,0.024,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[206.0,210.0,0.014,0.061,2.459,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[207.0,208.0,0.016,0.061,0.017,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[208.0,209.0,0.043,0.165,0.045,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[208.0,210.0,0.043,0.165,0.045,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[209.0,211.0,0.002,0.084,0.0,400.0,400.0,400.0,1.03,0.0,1.0,-180.0,180.0],[209.0,212.0,0.002,0.084,0.0,400.0,400.0,400.0,1.03,0.0,1.0,-180.0,180.0],[210.0,211.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0],[210.0,212.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0],[211.0,213.0,0.006,0.048,0.1,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[211.0,214.0,0.005,0.042,0.088,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[212.0,213.0,0.006,0.048,0.1,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[212.0,223.0,0.012,0.097,0.203,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[213.0,223.0,0.011,0.087,0.182,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[214.0,216.0,0.005,0.059,0.082,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[215.0,216.0,0.002,0.017,0.036,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[215.0,221.0,0.006,0.049,0.103,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[215.0,221.0,0.006,0.049,0.103,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[215.0,224.0,0.007,0.052,0.109,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[216.0,217.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[216.0,219.0,0.003,0.023,0.049,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[217.0,218.0,0.002,0.014,0.03,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[217.0,222.0,0.014,0.105,0.221,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[218.0,221.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[218.0,221.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[219.0,220.0,0.005,0.04,0.083,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[219.0,220.0,0.005,0.04,0.083,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[220.0,223.0,0.003,0.022,0.046,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[220.0,223.0,0.003,0.022,0.046,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[221.0,222.0,0.009,0.068,0.142,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[301.0,302.0,0.003,0.014,0.461,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[301.0,303.0,0.055,0.211,0.057,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[301.0,305.0,0.022,0.085,0.023,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[302.0,304.0,0.033,0.127,0.034,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[302.0,306.0,0.05,0.192,0.052,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[303.0,309.0,0.031,0.119,0.032,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[303.0,324.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0],[304.0,309.0,0.027,0.104,0.028,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[305.0,310.0,0.023,0.088,0.024,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[306.0,310.0,0.014,0.061,2.459,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[307.0,308.0,0.016,0.061,0.017,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[308.0,309.0,0.043,0.165,0.045,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[308.0,310.0,0.043,0.165,0.045,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0],[309.0,311.0,0.002,0.084,0.0,400.0,400.0,400.0,1.03,0.0,1.0,-180.0,180.0],[309.0,312.0,0.002,0.084,0.0,400.0,400.0,400.0,1.03,0.0,1.0,-180.0,180.0],[310.0,311.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0],[310.0,312.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0],[311.0,313.0,0.006,0.048,0.1,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[311.0,314.0,0.005,0.042,0.088,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[312.0,313.0,0.006,0.048,0.1,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[312.0,323.0,0.012,0.097,0.203,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[313.0,323.0,0.011,0.087,0.182,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[314.0,316.0,0.005,0.059,0.082,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[315.0,316.0,0.002,0.017,0.036,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[315.0,321.0,0.006,0.049,0.103,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[315.0,321.0,0.006,0.049,0.103,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[315.0,324.0,0.007,0.052,0.109,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[316.0,317.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[316.0,319.0,0.003,0.023,0.049,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[317.0,318.0,0.002,0.014,0.03,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[317.0,322.0,0.014,0.105,0.221,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[318.0,321.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[318.0,321.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[319.0,320.0,0.005,0.04,0.083,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[319.0,320.0,0.005,0.04,0.083,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[320.0,323.0,0.003,0.022,0.046,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[320.0,323.0,0.003,0.022,0.046,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[321.0,322.0,0.009,0.068,0.142,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[325.0,121.0,0.012,0.097,0.203,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[318.0,223.0,0.013,0.104,0.218,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0],[323.0,325.0,0.0,0.009,0.0,722.0,722.0,722.0,1.0,0.0,1.0,-180.0,180.0]]),\n", + " 'gencost': matlab.double([[1.0,51.747,51.747,4.0,8.0,1085.77625,12.0,1477.23196,16.0,1869.51562,20.0,2298.06357],[1.0,51.747,51.747,4.0,8.0,1085.77625,12.0,1477.23196,16.0,1869.51562,20.0,2298.06357],[1.0,11172.0143,11172.0143,4.0,30.0,841.57942,45.33333,1059.17805,60.66667,1319.40176,76.0,1596.51343],[1.0,11172.0143,11172.0143,4.0,30.0,841.57942,45.33333,1059.17805,60.66667,1319.40176,76.0,1596.51343],[1.0,51.747,51.747,4.0,8.0,1212.03893,12.0,1567.9341,16.0,1946.59795,20.0,2344.92565],[1.0,51.747,51.747,4.0,8.0,1212.03893,12.0,1567.9341,16.0,1946.59795,20.0,2344.92565],[1.0,11172.0143,11172.0143,4.0,30.0,735.09774,45.33333,1018.2061,60.66667,1337.84562,76.0,1683.0926],[1.0,11172.0143,11172.0143,4.0,30.0,735.09774,45.33333,1018.2061,60.66667,1337.84562,76.0,1683.0926],[1.0,28046.681,28046.681,4.0,170.0,4772.49548,231.66667,6203.57553,293.33333,7855.66994,355.0,9738.3672],[1.0,5665.23443,5665.23443,4.0,22.0,1122.43477,33.0,1417.43201,44.0,1742.48912,55.0,2075.88432],[1.0,5665.23443,5665.23443,4.0,22.0,1122.43477,33.0,1417.43201,44.0,1742.48912,55.0,2075.88432],[1.0,5665.23443,5665.23443,4.0,22.0,1122.43477,33.0,1417.43201,44.0,1742.48912,55.0,2075.88432],[1.0,5665.23443,5665.23443,4.0,22.0,1122.43477,33.0,1417.43201,44.0,1742.48912,55.0,2075.88432],[1.0,703.7592,703.7592,4.0,5.0,897.29298,7.33333,1187.80064,9.66667,1479.58817,12.0,1791.41904],[1.0,703.7592,703.7592,4.0,5.0,897.29298,7.33333,1187.80064,9.66667,1479.58817,12.0,1791.41904],[1.0,22784.7956,22784.7956,4.0,62.0,1500.19723,93.0,2132.59734,124.0,2829.8758,155.0,3668.4449],[1.0,22784.7956,22784.7956,4.0,62.0,1735.06998,93.0,2345.3197,124.0,3011.01092,155.0,3751.14842],[1.0,28046.681,28046.681,4.0,170.0,4795.62444,231.66667,6187.87116,293.33333,7899.41412,355.0,9901.2482],[1.0,22784.7956,22784.7956,4.0,62.0,1437.41596,93.0,2039.7361,124.0,2751.75964,155.0,3775.85462],[1.0,36749.8136,36749.8136,4.0,140.0,3582.87481,210.0,4981.72313,280.0,6497.03117,350.0,8137.67767],[1.0,5665.23443,5665.23443,4.0,22.0,1088.22724,33.0,1377.15264,44.0,1704.98911,55.0,2046.97895],[1.0,5665.23443,5665.23443,4.0,22.0,1088.22724,33.0,1377.15264,44.0,1704.98911,55.0,2046.97895],[1.0,5665.23443,5665.23443,4.0,22.0,1088.22724,33.0,1377.15264,44.0,1704.98911,55.0,2046.97895],[1.0,51.747,51.747,4.0,8.0,1157.22851,12.0,1487.12598,16.0,1822.73633,20.0,2269.08525],[1.0,51.747,51.747,4.0,8.0,1157.22851,12.0,1487.12598,16.0,1822.73633,20.0,2269.08525],[1.0,11172.0143,11172.0143,4.0,30.0,823.75848,45.33333,1163.9488,60.66667,1523.42575,76.0,1918.3966],[1.0,51.747,51.747,4.0,8.0,1131.23082,12.0,1455.62241,16.0,1805.10095,20.0,2196.47386],[1.0,51.747,51.747,4.0,8.0,1131.23082,12.0,1455.62241,16.0,1805.10095,20.0,2196.47386],[1.0,11172.0143,11172.0143,4.0,30.0,751.26977,45.33333,1075.05834,60.66667,1401.47249,76.0,1819.68454],[1.0,11172.0143,11172.0143,4.0,30.0,751.26977,45.33333,1075.05834,60.66667,1401.47249,76.0,1819.68454],[1.0,5665.23443,5665.23443,4.0,22.0,1116.10638,33.0,1492.56031,44.0,1897.96238,55.0,2366.39182],[1.0,5665.23443,5665.23443,4.0,22.0,1116.10638,33.0,1492.56031,44.0,1897.96238,55.0,2366.39182],[1.0,28046.681,28046.681,4.0,170.0,5170.31357,231.66667,6688.64875,293.33333,8361.5981,355.0,10458.8375],[1.0,5665.23443,5665.23443,4.0,22.0,1122.43477,33.0,1417.43201,44.0,1742.48912,55.0,2075.88432],[1.0,5665.23443,5665.23443,4.0,22.0,1122.43477,33.0,1417.43201,44.0,1742.48912,55.0,2075.88432],[1.0,5665.23443,5665.23443,4.0,22.0,1216.84757,33.0,1501.96739,44.0,1800.72745,55.0,2160.80453],[1.0,5665.23443,5665.23443,4.0,22.0,1216.84757,33.0,1501.96739,44.0,1800.72745,55.0,2160.80453],[1.0,22784.7956,22784.7956,4.0,62.0,1426.14416,93.0,2001.92316,124.0,2679.08278,155.0,3412.47031],[1.0,28046.681,28046.681,4.0,170.0,7523.51994,231.66667,8815.08767,293.33333,10151.4815,355.0,11987.1952],[1.0,28046.681,28046.681,4.0,170.0,4551.1183,231.66667,5977.40411,293.33333,7600.7331,355.0,9828.37578],[1.0,22784.7956,22784.7956,4.0,62.0,1422.99854,93.0,2013.06389,124.0,2623.44468,155.0,3256.43459],[1.0,22784.7956,22784.7956,4.0,62.0,1422.99854,93.0,2013.06389,124.0,2623.44468,155.0,3256.43459],[1.0,36749.8136,36749.8136,4.0,140.0,3323.31912,210.0,4643.59043,280.0,6258.48853,350.0,7981.70748],[1.0,5665.23443,5665.23443,4.0,22.0,1692.75992,33.0,2103.03655,44.0,2540.25162,55.0,2996.75119],[1.0,5665.23443,5665.23443,4.0,22.0,1692.75992,33.0,2103.03655,44.0,2540.25162,55.0,2996.75119],[1.0,5665.23443,5665.23443,4.0,22.0,1692.75992,33.0,2103.03655,44.0,2540.25162,55.0,2996.75119],[1.0,51.747,51.747,4.0,8.0,1208.23035,12.0,1557.25352,16.0,1956.0366,20.0,2377.50557],[1.0,51.747,51.747,4.0,8.0,1208.23035,12.0,1557.25352,16.0,1956.0366,20.0,2377.50557],[1.0,5665.23443,5665.23443,4.0,22.0,1119.44162,33.0,1432.61161,44.0,1754.76108,55.0,2235.93283],[1.0,5665.23443,5665.23443,4.0,22.0,1119.44162,33.0,1432.61161,44.0,1754.76108,55.0,2235.93283],[1.0,51.747,51.747,4.0,8.0,1208.23035,12.0,1557.25352,16.0,1956.0366,20.0,2377.50557],[1.0,51.747,51.747,4.0,8.0,1208.23035,12.0,1557.25352,16.0,1956.0366,20.0,2377.50557],[1.0,5665.23443,5665.23443,4.0,22.0,1316.56254,33.0,1688.27018,44.0,2110.47669,55.0,2535.46257],[1.0,5665.23443,5665.23443,4.0,22.0,1316.56254,33.0,1688.27018,44.0,2110.47669,55.0,2535.46257],[1.0,5665.23443,5665.23443,4.0,22.0,1141.93307,33.0,1448.77467,44.0,1770.19723,55.0,2160.4197],[1.0,5665.23443,5665.23443,4.0,22.0,1141.93307,33.0,1448.77467,44.0,1770.19723,55.0,2160.4197],[1.0,28046.681,28046.681,4.0,170.0,5243.00459,231.66667,6213.11865,293.33333,7863.05566,355.0,9944.47408],[1.0,703.7592,703.7592,4.0,5.0,745.67427,7.33333,921.69342,9.66667,1155.95898,12.0,1445.52485],[1.0,703.7592,703.7592,4.0,5.0,745.67427,7.33333,921.69342,9.66667,1155.95898,12.0,1445.52485],[1.0,703.7592,703.7592,4.0,5.0,745.67427,7.33333,921.69342,9.66667,1155.95898,12.0,1445.52485],[1.0,703.7592,703.7592,4.0,5.0,745.67427,7.33333,921.69342,9.66667,1155.95898,12.0,1445.52485],[1.0,703.7592,703.7592,4.0,5.0,745.67427,7.33333,921.69342,9.66667,1155.95898,12.0,1445.52485],[1.0,5665.23443,5665.23443,4.0,22.0,884.43584,33.0,1174.85782,44.0,1470.71025,55.0,1821.1237],[1.0,5665.23443,5665.23443,4.0,22.0,884.43584,33.0,1174.85782,44.0,1470.71025,55.0,1821.1237],[1.0,5665.23443,5665.23443,4.0,22.0,884.43584,33.0,1174.85782,44.0,1470.71025,55.0,1821.1237],[1.0,22784.7956,22784.7956,4.0,62.0,1552.62418,93.0,2207.24021,124.0,2867.16447,155.0,3712.68014],[1.0,28046.681,28046.681,4.0,170.0,5254.89948,231.66667,6910.34987,293.33333,8592.40827,355.0,10536.7115],[1.0,28046.681,28046.681,4.0,170.0,4775.79962,231.66667,6177.63481,293.33333,7775.31462,355.0,9868.71865],[1.0,5665.23443,5665.23443,4.0,22.0,1031.69929,33.0,1288.38408,44.0,1579.87505,55.0,1886.71665],[1.0,5665.23443,5665.23443,4.0,22.0,1031.69929,33.0,1288.38408,44.0,1579.87505,55.0,1886.71665],[1.0,28046.681,28046.681,4.0,170.0,4877.56703,231.66667,6507.36825,293.33333,8374.48424,355.0,10331.0128],[1.0,28046.681,28046.681,4.0,170.0,4877.56703,231.66667,6507.36825,293.33333,8374.48424,355.0,10331.0128],[1.0,0.0,0.0,4.0,0.0,0.0,0.33333,0.0,0.66667,0.0,1.0,0.0],[1.0,63999.8223,63999.8223,4.0,396.0,3208.986,397.33333,3219.79067,398.66667,3230.59533,400.0,3241.4],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,0.33333,0.0,0.66667,0.0,1.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,0.33333,0.0,0.66667,0.0,1.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.2,0.0,34.4,0.0,51.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.2,0.0,34.4,0.0,51.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.2,0.0,34.4,0.0,51.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,31.7,0.0,63.4,0.0,95.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,30.9,0.0,61.8,0.0,92.7,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.2,0.0,34.4,0.0,51.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,31.1,0.0,62.2,0.0,93.3,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.23333,0.0,34.46667,0.0,51.7,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.56667,0.0,33.13333,0.0,49.7,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,31.36667,0.0,62.73333,0.0,94.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.2,0.0,34.4,0.0,51.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.2,0.0,34.4,0.0,51.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.0,0.0,34.0,0.0,51.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,31.2,0.0,62.4,0.0,93.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,62.73333,0.0,125.46667,0.0,188.2,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,41.7,0.0,83.4,0.0,125.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,8.53333,0.0,17.06667,0.0,25.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,8.63333,0.0,17.26667,0.0,25.9,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,8.43333,0.0,16.86667,0.0,25.3,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,8.93333,0.0,17.86667,0.0,26.8,0.0],[1.0,10000.0,0.0,4.0,30.0,0.0,66.0,0.0,120.0,0.0,160.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,8.9,0.0,17.8,0.0,26.7,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,8.73333,0.0,17.46667,0.0,26.2,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,8.6,0.0,17.2,0.0,25.8,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,20.5,0.0,41.0,0.0,61.5,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,22.2,0.0,44.4,0.0,66.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,33.63333,0.0,67.26667,0.0,100.9,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,33.9,0.0,67.8,0.0,101.7,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,21.03333,0.0,42.06667,0.0,63.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,21.8,0.0,43.6,0.0,65.4,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,22.33333,0.0,44.66667,0.0,67.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,21.6,0.0,43.2,0.0,64.8,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,21.26667,0.0,42.53333,0.0,63.8,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,21.36667,0.0,42.73333,0.0,64.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,22.2,0.0,44.4,0.0,66.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,20.8,0.0,41.6,0.0,62.4,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,22.3,0.0,44.6,0.0,66.9,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,21.73333,0.0,43.46667,0.0,65.2,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,9.26667,0.0,18.53333,0.0,27.8,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,9.1,0.0,18.2,0.0,27.3,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,9.0,0.0,18.0,0.0,27.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,9.43333,0.0,18.86667,0.0,28.3,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,9.06667,0.0,18.13333,0.0,27.2,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,9.0,0.0,18.0,0.0,27.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,9.4,0.0,18.8,0.0,28.2,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.1,0.0,6.2,0.0,9.3,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.23333,0.0,6.46667,0.0,9.7,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.13333,0.0,6.26667,0.0,9.4,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.03333,0.0,6.06667,0.0,9.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.03333,0.0,6.06667,0.0,9.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.23333,0.0,6.46667,0.0,9.7,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.13333,0.0,6.26667,0.0,9.4,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.93333,0.0,7.86667,0.0,11.8,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.73333,0.0,7.46667,0.0,11.2,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.43333,0.0,6.86667,0.0,10.3,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,1.5,0.0,3.0,0.0,4.5,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,4.4,0.0,8.8,0.0,13.2,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,49.43333,0.0,98.86667,0.0,148.3,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,266.36667,0.0,532.73333,0.0,799.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,282.33333,0.0,564.66667,0.0,847.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,237.83333,0.0,475.66667,0.0,713.5,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0]]),\n", + " 'dcline': matlab.double([[113.0,316.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,-100.0,100.0,-inf,inf,-inf,inf,0.0,0.0]])}" + ] + }, + "execution_count": null, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# NOTE: bus_name is not supported in MATLAB\n", + "# See: https://github.com/mathworks/matlab-engine-for-python/issues/61\n", + "mpc = cf_RTS_GMLC.to_mpc(backend=\"matlab\")\n", + "mpc" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "6b5e25a3", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "MATPOWER Version 8.1, 12-Jul-2025\n", + "Power Flow -- AC-polar-power formulation\n", + "\n", + "Newton's method converged in 4 iterations.\n", + "PF successful\n", + "\n", + "Converged in 0.06 seconds\n", + "================================================================================\n", + "| System Summary |\n", + "================================================================================\n", + "\n", + "How many? How much? P (MW) Q (MVAr)\n", + "--------------------- ------------------- ------------- -----------------\n", + "Buses 73 Total Gen Capacity 14549.8 -1615.0 to 4406.0\n", + "Generators 158 On-line Capacity 9076.0 -1615.0 to 4406.0\n", + "Committed Gens 96 Generation (actual) 8704.0 1718.7\n", + "Loads 51 Load 8550.0 1740.0\n", + " Fixed 51 Fixed 8550.0 1740.0\n", + " Dispatchable 0 Dispatchable -0.0 of -0.0 -0.0\n", + "Shunts 3 Shunt (inj) -0.0 -316.1\n", + "Branches 120 Losses (I^2 * Z) 153.97 1442.60\n", + "Transformers 16 Branch Charging (inj) - 1780.0\n", + "Inter-ties 5 Total Inter-tie Flow 331.2 25.0\n", + "Areas 3\n", + "\n", + " Minimum Maximum\n", + " ------------------------- --------------------------------\n", + "Voltage Magnitude 0.951 p.u. @ bus 308 1.050 p.u. @ bus 107 \n", + "Voltage Angle -30.66 deg @ bus 307 16.52 deg @ bus 122 \n", + "P Losses (I^2*R) - 9.42 MW @ line 312-323\n", + "Q Losses (I^2*X) - 76.11 MVAr @ line 312-323\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", + " 101 1.047 -8.575 168.00 10.68 108.00 22.00 \n", + " 102 1.047 -8.634 168.00 4.66 97.00 20.00 \n", + " 103 1.011 -7.980 - - 180.00 37.00 \n", + " 104 1.017 -10.745 - - 74.00 15.00 \n", + " 105 1.035 -10.928 - - 71.00 14.00 \n", + " 106 1.032 -13.157 - - 136.00 28.00 \n", + " 107 1.050 -3.989 355.00 49.51 125.00 25.00 \n", + " 108 1.017 -9.342 - - 171.00 35.00 \n", + " 109 1.027 -8.460 - - 175.00 36.00 \n", + " 110 1.050 -10.203 - - 195.00 40.00 \n", + " 111 1.027 -4.083 - - - - \n", + " 112 1.020 -2.396 - - - - \n", + " 113 1.035 0.000* 220.00 76.07 265.00 54.00 \n", + " 114 1.044 -2.552 0.00 103.20 194.00 39.00 \n", + " 115 1.043 5.977 165.00 92.20 317.00 64.00 \n", + " 116 1.046 5.824 155.00 79.87 100.00 20.00 \n", + " 117 1.048 9.138 - - - - \n", + " 118 1.050 9.952 355.00 68.45 333.00 68.00 \n", + " 119 1.040 5.368 - - 181.00 37.00 \n", + " 120 1.044 6.847 - - 128.00 26.00 \n", + " 121 1.050 10.564 400.00 -21.93 - - \n", + " 122 1.050 16.516 300.00 -40.76 - - \n", + " 123 1.050 8.378 670.00 25.07 - - \n", + " 124 1.013 0.844 - - - - \n", + " 201 1.050 -12.611 142.00 21.73 108.00 22.00 \n", + " 202 1.050 -12.651 168.00 14.28 97.00 20.00 \n", + " 203 1.019 -9.121 - - 180.00 37.00 \n", + " 204 1.015 -14.429 - - 74.00 15.00 \n", + " 205 1.033 -14.929 - - 71.00 14.00 \n", + " 206 1.028 -17.155 - - 136.00 28.00 \n", + " 207 0.970 -22.392 110.00 38.00 125.00 25.00 \n", + " 208 0.964 -21.696 - - 171.00 35.00 \n", + " 209 1.020 -11.846 - - 175.00 36.00 \n", + " 210 1.043 -14.163 - - 195.00 40.00 \n", + " 211 1.028 -5.950 - - - - \n", + " 212 1.018 -4.164 - - - - \n", + " 213 1.050 -0.390 465.00 154.25 265.00 54.00 \n", + " 214 1.050 -4.128 0.00 125.29 194.00 39.00 \n", + " 215 1.044 4.742 260.00 86.30 317.00 64.00 \n", + " 216 1.047 4.679 155.00 79.81 100.00 20.00 \n", + " 217 1.049 8.086 - - - - \n", + " 218 1.050 8.906 355.00 60.31 333.00 68.00 \n", + " 219 1.040 4.449 - - 181.00 37.00 \n", + " 220 1.044 6.123 - - 128.00 26.00 \n", + " 221 1.050 9.516 296.97 -7.62 - - \n", + " 222 1.050 15.467 300.00 -41.84 - - \n", + " 223 1.050 7.762 726.00 0.68 - - \n", + " 224 1.017 -0.386 - - - - \n", + " 301 1.050 -23.504 104.00 48.97 108.00 22.00 \n", + " 302 1.050 -23.570 126.00 34.30 97.00 20.00 \n", + " 303 0.998 -17.733 - - 180.00 37.00 \n", + " 304 1.007 -23.757 - - 74.00 15.00 \n", + " 305 1.028 -24.498 - - 71.00 14.00 \n", + " 306 1.020 -26.020 - - 136.00 28.00 \n", + " 307 0.957 -30.662 110.00 37.98 125.00 25.00 \n", + " 308 0.951 -29.947 - - 171.00 35.00 \n", + " 309 1.007 -19.748 - - 175.00 36.00 \n", + " 310 1.032 -22.314 - - 195.00 40.00 \n", + " 311 1.018 -12.834 - - - - \n", + " 312 1.003 -11.045 - - - - \n", + " 313 1.035 -7.624 355.00 149.98 265.00 54.00 \n", + " 314 1.050 -9.655 0.00 166.72 194.00 39.00 \n", + " 315 1.042 1.503 190.00 128.78 317.00 64.00 \n", + " 316 1.045 1.163 155.00 79.13 100.00 20.00 \n", + " 317 1.047 5.119 - - - - \n", + " 318 1.050 6.217 355.00 63.24 333.00 68.00 \n", + " 319 1.039 0.850 - - 181.00 37.00 \n", + " 320 1.044 2.456 - - 128.00 26.00 \n", + " 321 1.050 6.905 355.00 -3.52 - - \n", + " 322 1.050 12.932 310.00 -39.97 - - \n", + " 323 1.050 4.057 710.00 74.93 - - \n", + " 324 0.999 -5.501 - - - - \n", + " 325 1.049 4.598 - - - - \n", + " -------- -------- -------- --------\n", + " Total: 8703.97 1718.74 8550.00 1740.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 101 102 7.84 -26.19 -7.84 -24.32 0.002 0.01\n", + " 2 101 103 -0.58 14.65 0.73 -20.08 0.159 0.61\n", + " 3 101 105 52.74 0.21 -52.18 -0.55 0.559 2.16\n", + " 4 102 104 34.94 13.72 -34.50 -15.64 0.441 1.70\n", + " 5 102 106 43.90 -4.74 -43.02 2.51 0.881 3.38\n", + " 6 103 109 3.68 -15.56 -3.61 12.48 0.063 0.24\n", + " 7 103 124 -184.41 -1.36 185.10 30.14 0.685 28.78\n", + " 8 104 109 -39.50 0.64 39.91 -2.00 0.408 1.57\n", + " 9 105 110 -18.82 -13.45 18.93 11.25 0.108 0.41\n", + " 10 106 110 -92.98 -137.09 94.12 -124.54 1.140 4.97\n", + " 11 107 108 168.71 19.74 -164.51 -5.57 4.193 15.98\n", + " 12 107 203 61.29 4.77 -59.84 -3.91 1.451 5.56\n", + " 13 108 109 -10.60 -5.60 10.65 1.10 0.051 0.20\n", + " 14 108 110 4.11 -23.83 -3.91 19.79 0.199 0.77\n", + " 15 109 111 -93.72 -30.19 93.91 38.39 0.195 8.20\n", + " 16 109 112 -128.23 -17.38 128.57 31.54 0.337 14.16\n", + " 17 110 111 -134.37 19.56 134.71 -5.09 0.345 14.47\n", + " 18 110 112 -169.77 33.94 170.33 -10.41 0.560 23.53\n", + " 19 111 113 -156.55 3.54 157.95 -2.98 1.398 11.19\n", + " 20 111 114 -72.08 -36.85 72.37 29.89 0.295 2.48\n", + " 21 112 113 -94.16 -23.47 94.69 17.16 0.531 4.25\n", + " 22 112 123 -204.74 2.33 209.60 15.18 4.857 39.26\n", + " 23 113 123 -179.70 8.11 183.05 -1.38 3.351 26.50\n", + " 24 113 215 -117.94 -0.22 119.25 -7.05 1.306 9.79\n", + " 25 114 116 -266.37 34.31 269.69 -4.05 3.323 39.22\n", + " 26 115 116 14.59 -23.89 -14.58 20.08 0.013 0.11\n", + " 27 115 121 -177.03 7.91 178.77 -4.98 1.739 14.20\n", + " 28 115 121 -177.03 7.91 178.77 -4.98 1.739 14.20\n", + " 29 115 124 187.47 36.27 -185.10 -30.14 2.377 17.66\n", + " 30 116 117 -240.85 22.84 242.46 -14.93 1.609 13.94\n", + " 31 116 119 40.73 21.01 -40.67 -25.87 0.061 0.47\n", + " 32 117 118 -111.10 2.55 111.33 -4.27 0.225 1.57\n", + " 33 117 122 -131.35 12.39 133.63 -19.65 2.275 17.06\n", + " 34 118 121 -44.66 2.36 44.72 -7.95 0.055 0.48\n", + " 35 118 121 -44.66 2.36 44.72 -7.95 0.055 0.48\n", + " 36 119 120 -70.16 -5.56 70.39 -1.62 0.228 1.82\n", + " 37 119 120 -70.16 -5.56 70.39 -1.62 0.228 1.82\n", + " 38 120 123 -134.39 -11.38 134.89 10.00 0.499 3.66\n", + " 39 120 123 -134.39 -11.38 134.89 10.00 0.499 3.66\n", + " 40 121 122 -164.10 22.63 166.37 -21.11 2.274 17.18\n", + " 41 123 217 7.57 -8.73 -7.57 -8.31 0.005 0.04\n", + " 42 201 202 5.24 -26.53 -5.23 -24.29 0.001 0.00\n", + " 43 201 203 -24.84 19.93 25.42 -23.83 0.573 2.20\n", + " 44 201 205 53.61 6.34 -53.02 -6.57 0.585 2.26\n", + " 45 202 204 31.49 19.07 -31.06 -21.04 0.428 1.65\n", + " 46 202 206 44.74 -0.50 -43.83 -1.62 0.911 3.50\n", + " 47 203 209 38.80 -12.07 -38.31 10.60 0.482 1.85\n", + " 48 203 224 -184.37 2.82 185.04 25.55 0.675 28.36\n", + " 49 204 209 -42.94 6.04 43.44 -7.03 0.498 1.92\n", + " 50 205 210 -17.98 -7.43 18.06 5.14 0.078 0.30\n", + " 51 206 210 -92.17 -131.96 93.29 -126.64 1.127 4.91\n", + " 52 207 208 -15.00 13.00 15.07 -14.32 0.071 0.27\n", + " 53 208 209 -101.32 0.22 106.08 13.59 4.755 18.25\n", + " 54 208 210 -84.75 -20.90 88.24 29.75 3.489 13.39\n", + " 55 209 211 -125.38 -35.41 125.73 49.95 0.346 14.54\n", + " 56 209 212 -160.82 -17.75 161.35 40.17 0.534 22.42\n", + " 57 210 211 -179.30 15.98 179.91 9.81 0.614 25.79\n", + " 58 210 212 -215.29 35.77 216.19 2.14 0.902 37.90\n", + " 59 211 213 -218.99 -13.71 221.72 24.71 2.725 21.80\n", + " 60 211 214 -86.64 -46.05 87.08 40.21 0.436 3.66\n", + " 61 212 213 -152.09 -49.66 153.55 50.60 1.454 11.64\n", + " 62 212 223 -225.45 7.35 231.38 18.84 5.925 47.89\n", + " 63 213 223 -175.27 24.93 178.46 -19.79 3.187 25.21\n", + " 64 214 216 -281.08 46.08 284.78 -11.45 3.699 43.65\n", + " 65 215 216 4.47 -24.58 -4.46 20.73 0.010 0.08\n", + " 66 215 221 -184.05 11.27 185.93 -7.19 1.882 15.37\n", + " 67 215 221 -184.05 11.27 185.93 -7.19 1.882 15.37\n", + " 68 215 224 187.39 31.41 -185.04 -25.55 2.346 17.43\n", + " 69 216 217 -248.08 24.53 249.78 -15.81 1.704 14.77\n", + " 70 216 219 22.76 25.99 -22.72 -31.05 0.037 0.28\n", + " 71 217 218 -110.83 10.66 111.05 -12.38 0.226 1.58\n", + " 72 217 222 -131.39 13.47 133.67 -20.73 2.278 17.09\n", + " 73 218 221 -44.53 2.35 44.58 -7.94 0.055 0.47\n", + " 74 218 221 -44.53 2.35 44.58 -7.94 0.055 0.47\n", + " 75 219 220 -79.14 -2.97 79.43 -3.73 0.289 2.32\n", + " 76 219 220 -79.14 -2.97 79.43 -3.73 0.289 2.32\n", + " 77 220 223 -143.43 -9.27 144.00 8.39 0.567 4.16\n", + " 78 220 223 -143.43 -9.27 144.00 8.39 0.567 4.16\n", + " 79 221 222 -164.06 22.62 166.33 -21.11 2.273 17.17\n", + " 80 301 302 8.64 -27.26 -8.64 -23.56 0.002 0.01\n", + " 81 301 303 -39.86 35.56 41.40 -35.63 1.540 5.91\n", + " 82 301 305 27.21 18.68 -26.99 -20.28 0.227 0.88\n", + " 83 302 304 11.14 30.50 -10.79 -32.75 0.351 1.35\n", + " 84 302 306 26.50 7.36 -26.14 -11.52 0.366 1.41\n", + " 85 303 309 26.14 -15.26 -25.87 13.08 0.271 1.04\n", + " 86 303 324 -247.53 13.89 248.80 39.49 1.271 53.39\n", + " 87 304 309 -63.21 17.75 64.37 -16.11 1.161 4.47\n", + " 88 305 310 -44.01 6.28 44.45 -7.17 0.434 1.66\n", + " 89 306 310 -109.86 -120.44 111.49 -131.32 1.633 7.11\n", + " 90 307 308 -15.00 12.98 15.07 -14.25 0.072 0.28\n", + " 91 308 309 -101.87 1.21 106.82 13.44 4.943 18.97\n", + " 92 308 310 -84.20 -21.96 87.76 31.20 3.563 13.67\n", + " 93 309 311 -143.49 -35.07 143.94 54.24 0.457 19.18\n", + " 94 309 312 -176.84 -11.35 177.49 38.94 0.657 27.60\n", + " 95 310 311 -202.57 20.54 203.38 13.12 0.801 33.66\n", + " 96 310 312 -236.13 46.75 237.25 0.29 1.120 47.04\n", + " 97 311 313 -199.55 -7.00 201.85 14.90 2.305 18.44\n", + " 98 311 314 -147.77 -60.36 148.97 61.06 1.204 10.11\n", + " 99 312 313 -134.86 -52.09 136.08 51.45 1.218 9.74\n", + " 100 312 323 -279.89 12.86 289.30 41.86 9.416 76.11\n", + " 101 313 323 -247.93 29.63 254.40 1.78 6.471 51.18\n", + " 102 314 316 -342.97 66.67 348.54 -10.00 5.565 65.66\n", + " 103 315 316 35.64 -22.59 -35.61 18.93 0.031 0.27\n", + " 104 315 321 -207.93 13.19 210.34 -4.80 2.408 19.66\n", + " 105 315 321 -207.93 13.19 210.34 -4.80 2.408 19.66\n", + " 106 315 324 253.23 60.97 -248.80 -39.49 4.421 32.84\n", + " 107 316 317 -286.68 29.76 288.97 -15.95 2.288 19.83\n", + " 108 316 319 28.75 20.44 -28.72 -25.47 0.037 0.29\n", + " 109 317 318 -150.00 2.34 150.42 -2.77 0.410 2.87\n", + " 110 317 322 -138.97 13.61 141.51 -18.80 2.549 19.11\n", + " 111 318 321 -50.17 3.06 50.24 -8.52 0.069 0.60\n", + " 112 318 321 -50.17 3.06 50.24 -8.52 0.069 0.60\n", + " 113 319 320 -76.14 -5.76 76.41 -1.09 0.269 2.15\n", + " 114 319 320 -76.14 -5.76 76.41 -1.09 0.269 2.15\n", + " 115 320 323 -140.41 -11.91 140.96 10.87 0.546 4.00\n", + " 116 320 323 -140.41 -11.91 140.96 10.87 0.546 4.00\n", + " 117 321 322 -166.15 23.13 168.49 -21.16 2.332 17.62\n", + " 118 325 121 -115.62 8.45 117.11 -18.69 1.499 12.12\n", + " 119 318 223 -28.08 -8.12 28.18 -15.15 0.095 0.76\n", + " 120 323 325 -115.62 9.54 115.62 -8.45 0.000 1.10\n", + " -------- --------\n", + " Total: 153.965 1442.60\n" + ] + }, + { + "data": { + "text/plain": [ + "{'baseMVA': 100.0,\n", + " 'version': '2',\n", + " 'bus': matlab.double([[101.0,2.0,108.0,22.0,0.0,0.0,1.0,1.0468,-8.575015383184203,138.0,11.0,1.05,0.95],[102.0,2.0,97.0,20.0,0.0,0.0,1.0,1.0467,-8.633843977493418,138.0,12.0,1.05,0.95],[103.0,1.0,180.0,37.0,0.0,0.0,1.0,1.0113364158876532,-7.980239232397278,138.0,11.0,1.05,0.95],[104.0,1.0,74.0,15.0,0.0,0.0,1.0,1.0174699497169186,-10.744881948471232,138.0,11.0,1.05,0.95],[105.0,1.0,71.0,14.0,0.0,0.0,1.0,1.0353916382243726,-10.928291745909647,138.0,11.0,1.05,0.95],[106.0,1.0,136.0,28.0,0.0,-100.0,1.0,1.032420306222382,-13.157403492583988,138.0,12.0,1.05,0.95],[107.0,2.0,125.0,25.0,0.0,0.0,1.0,1.05,-3.9889120653589614,138.0,12.0,1.05,0.95],[108.0,1.0,171.0,35.0,0.0,0.0,1.0,1.0167151042161735,-9.342435452926068,138.0,12.0,1.05,0.95],[109.0,1.0,175.0,36.0,0.0,0.0,1.0,1.0266283751552445,-8.459834837803605,138.0,13.0,1.05,0.95],[110.0,1.0,195.0,40.0,0.0,0.0,1.0,1.0499956050092165,-10.202905829754016,138.0,13.0,1.05,0.95],[111.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0270479227186984,-4.083378440486649,230.0,13.0,1.05,0.95],[112.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0196552041635625,-2.395680123893637,230.0,13.0,1.05,0.95],[113.0,3.0,265.0,54.0,0.0,0.0,1.0,1.0347,0.0,230.0,14.0,1.05,0.95],[114.0,2.0,194.0,39.0,0.0,0.0,1.0,1.0441,-2.5517838077312054,230.0,16.0,1.05,0.95],[115.0,2.0,317.0,64.0,0.0,0.0,1.0,1.0428,5.97726410372864,230.0,16.0,1.05,0.95],[116.0,2.0,100.0,20.0,0.0,0.0,1.0,1.0461,5.823905560766533,230.0,16.0,1.05,0.95],[117.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0483347025953365,9.137903539799291,230.0,17.0,1.05,0.95],[118.0,2.0,333.0,68.0,0.0,0.0,1.0,1.05,9.951923359694828,230.0,17.0,1.05,0.95],[119.0,1.0,181.0,37.0,0.0,0.0,1.0,1.0397564708103708,5.367816482196885,230.0,15.0,1.05,0.95],[120.0,1.0,128.0,26.0,0.0,0.0,1.0,1.0438929450900027,6.8466479154072415,230.0,15.0,1.05,0.95],[121.0,2.0,0.0,0.0,0.0,0.0,1.0,1.05,10.563837495536973,230.0,17.0,1.05,0.95],[122.0,2.0,0.0,0.0,0.0,0.0,1.0,1.05,16.516046291937137,230.0,17.0,1.05,0.95],[123.0,2.0,0.0,0.0,0.0,0.0,1.0,1.05,8.378423891504838,230.0,15.0,1.05,0.95],[124.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0132350061413218,0.8442684962620942,230.0,16.0,1.05,0.95],[201.0,2.0,108.0,22.0,0.0,0.0,2.0,1.05,-12.610892591442711,138.0,21.0,1.05,0.95],[202.0,2.0,97.0,20.0,0.0,0.0,2.0,1.05,-12.650726916920163,138.0,22.0,1.05,0.95],[203.0,1.0,180.0,37.0,0.0,0.0,2.0,1.0185380732763811,-9.12071208919604,138.0,21.0,1.05,0.95],[204.0,1.0,74.0,15.0,0.0,0.0,2.0,1.0152655019407386,-14.429049807313985,138.0,21.0,1.05,0.95],[205.0,1.0,71.0,14.0,0.0,0.0,2.0,1.033457796743739,-14.929109962948063,138.0,21.0,1.05,0.95],[206.0,1.0,136.0,28.0,0.0,-100.0,2.0,1.0275306699679247,-17.15468889424572,138.0,22.0,1.05,0.95],[207.0,2.0,125.0,25.0,0.0,0.0,2.0,0.9699,-22.39188213645141,138.0,22.0,1.05,0.95],[208.0,1.0,171.0,35.0,0.0,0.0,2.0,0.9637667118436953,-21.69568359142626,138.0,22.0,1.05,0.95],[209.0,1.0,175.0,36.0,0.0,0.0,2.0,1.0200512996251072,-11.845733133483792,138.0,23.0,1.05,0.95],[210.0,1.0,195.0,40.0,0.0,0.0,2.0,1.0427851986261436,-14.163118754373974,138.0,23.0,1.05,0.95],[211.0,1.0,0.0,0.0,0.0,0.0,2.0,1.0283500298925368,-5.949920363893076,230.0,23.0,1.05,0.95],[212.0,1.0,0.0,0.0,0.0,0.0,2.0,1.0177803627680642,-4.1639764936599315,230.0,23.0,1.05,0.95],[213.0,2.0,265.0,54.0,0.0,0.0,2.0,1.0499999999999998,-0.39019764958804537,230.0,24.0,1.05,0.95],[214.0,2.0,194.0,39.0,0.0,0.0,2.0,1.05,-4.1284594119736715,230.0,26.0,1.05,0.95],[215.0,2.0,317.0,64.0,0.0,0.0,2.0,1.0437,4.7421537608602655,230.0,26.0,1.05,0.95],[216.0,2.0,100.0,20.0,0.0,0.0,2.0,1.0473,4.678596569233497,230.0,26.0,1.05,0.95],[217.0,1.0,0.0,0.0,0.0,0.0,2.0,1.0494223357576271,8.086158902585073,230.0,27.0,1.05,0.95],[218.0,2.0,333.0,68.0,0.0,0.0,2.0,1.05,8.905759421570453,230.0,27.0,1.05,0.95],[219.0,1.0,181.0,37.0,0.0,0.0,2.0,1.0403576048755565,4.448594498499758,230.0,25.0,1.05,0.95],[220.0,1.0,128.0,26.0,0.0,0.0,2.0,1.0440230810221425,6.122707473492559,230.0,25.0,1.05,0.95],[221.0,2.0,0.0,0.0,0.0,0.0,2.0,1.05,9.515784448684993,230.0,27.0,1.05,0.95],[222.0,2.0,0.0,0.0,0.0,0.0,2.0,1.05,15.46663066199324,230.0,27.0,1.05,0.95],[223.0,2.0,0.0,0.0,0.0,0.0,2.0,1.05,7.761555184776429,230.0,25.0,1.05,0.95],[224.0,1.0,0.0,0.0,0.0,0.0,2.0,1.0165952520957195,-0.38552091021155804,230.0,26.0,1.05,0.95],[301.0,2.0,108.0,22.0,0.0,0.0,3.0,1.05,-23.50377423841507,138.0,31.0,1.05,0.95],[302.0,2.0,97.0,20.0,0.0,0.0,3.0,1.05,-23.56954566704558,138.0,32.0,1.05,0.95],[303.0,1.0,180.0,37.0,0.0,0.0,3.0,0.9981710833271644,-17.73313421694736,138.0,31.0,1.05,0.95],[304.0,1.0,74.0,15.0,0.0,0.0,3.0,1.0073510822103555,-23.757061684067786,138.0,31.0,1.05,0.95],[305.0,1.0,71.0,14.0,0.0,0.0,3.0,1.0283088638841027,-24.498418814980543,138.0,31.0,1.05,0.95],[306.0,1.0,136.0,28.0,0.0,-100.0,3.0,1.0196144008513128,-26.020161568867774,138.0,32.0,1.05,0.95],[307.0,2.0,125.0,25.0,0.0,0.0,3.0,0.9568,-30.661573824723465,138.0,32.0,1.05,0.95],[308.0,1.0,171.0,35.0,0.0,0.0,3.0,0.9506125860540953,-29.946518489340466,138.0,32.0,1.05,0.95],[309.0,1.0,175.0,36.0,0.0,0.0,3.0,1.0069697013744288,-19.748100755193086,138.0,33.0,1.05,0.95],[310.0,1.0,195.0,40.0,0.0,0.0,3.0,1.0324424021907217,-22.31383326614859,138.0,33.0,1.05,0.95],[311.0,1.0,0.0,0.0,0.0,0.0,3.0,1.018109208149911,-12.833535787560375,230.0,33.0,1.05,0.95],[312.0,1.0,0.0,0.0,0.0,0.0,3.0,1.0025506193921978,-11.04460494372713,230.0,33.0,1.05,0.95],[313.0,2.0,265.0,54.0,0.0,0.0,3.0,1.035,-7.624189520072496,230.0,34.0,1.05,0.95],[314.0,2.0,194.0,39.0,0.0,0.0,3.0,1.05,-9.655014432375769,230.0,36.0,1.05,0.95],[315.0,2.0,317.0,64.0,0.0,0.0,3.0,1.0422,1.5030088722665156,230.0,36.0,1.05,0.95],[316.0,2.0,100.0,20.0,0.0,0.0,3.0,1.0449,1.162518268933895,230.0,36.0,1.05,0.95],[317.0,1.0,0.0,0.0,0.0,0.0,3.0,1.047475700131407,5.11903662255048,230.0,37.0,1.05,0.95],[318.0,2.0,333.0,68.0,0.0,0.0,3.0,1.05,6.2172684697299365,230.0,37.0,1.05,0.95],[319.0,1.0,181.0,37.0,0.0,0.0,3.0,1.0390020172771457,0.8500993433279175,230.0,35.0,1.05,0.95],[320.0,1.0,128.0,26.0,0.0,0.0,3.0,1.043570442911973,2.4563399572663207,230.0,35.0,1.05,0.95],[321.0,2.0,0.0,0.0,0.0,0.0,3.0,1.05,6.904630181411163,230.0,37.0,1.05,0.95],[322.0,2.0,0.0,0.0,0.0,0.0,3.0,1.05,12.932205382500152,230.0,37.0,1.05,0.95],[323.0,2.0,0.0,0.0,0.0,0.0,3.0,1.05,4.057021273882944,230.0,35.0,1.05,0.95],[324.0,1.0,0.0,0.0,0.0,0.0,3.0,0.9992732181255859,-5.501144633747852,230.0,36.0,1.05,0.95],[325.0,1.0,0.0,0.0,0.0,0.0,3.0,1.0492287268737672,4.598183390271284,230.0,35.0,1.05,0.95]]),\n", + " 'gen': matlab.double([[101.0,8.0,4.667501015969943,10.0,0.0,1.0468,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[101.0,8.0,4.667501015969943,10.0,0.0,1.0468,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[101.0,76.0,0.6712555878346868,30.0,-25.0,1.0468,100.0,1.0,76.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0],[101.0,76.0,0.6712555878346868,30.0,-25.0,1.0468,100.0,1.0,76.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0],[102.0,8.0,4.2045394101801925,10.0,0.0,1.0467,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[102.0,8.0,4.2045394101801925,10.0,0.0,1.0467,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[102.0,76.0,-1.8750332440089414,30.0,-25.0,1.0467,100.0,1.0,76.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0],[102.0,76.0,-1.8750332440089414,30.0,-25.0,1.0467,100.0,1.0,76.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0],[107.0,355.0,49.505761113045345,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[113.0,54.995291537791445,19.017851032504762,19.0,-15.0,1.0347,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[113.0,55.00000000000001,19.017851032504762,19.0,-15.0,1.0347,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[113.0,55.00000000000001,19.017851032504762,19.0,-15.0,1.0347,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[113.0,55.00000000000001,19.017851032504762,19.0,-15.0,1.0347,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[115.0,5.0,6.0085122587124635,6.0,0.0,1.0428,100.0,1.0,12.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,0.0],[115.0,5.0,6.0085122587124635,6.0,0.0,1.0428,100.0,1.0,12.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,0.0],[115.0,155.0,80.18443227210341,80.0,-50.0,1.0428,100.0,1.0,155.0,62.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[116.0,155.0,79.87474937387118,80.0,-50.0,1.0461,100.0,1.0,155.0,62.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[118.0,355.0,68.45249121787177,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[123.0,155.0,-3.6637918845902395,80.0,-50.0,1.05,100.0,1.0,155.0,62.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[123.0,350.0,37.37566477074391,150.0,-25.0,1.05,100.0,1.0,350.0,140.0,0.0,0.0,0.0,0.0,0.0,0.0,4.0,4.0,4.0,4.0,0.0],[123.0,55.00000000000001,-2.8812994159697554,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[123.0,55.00000000000001,-2.8812994159697554,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[123.0,55.00000000000001,-2.8812994159697554,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[201.0,8.0,5.617221849057471,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[201.0,8.0,5.617221849057471,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[201.0,76.0,5.894720169816088,30.0,-25.0,1.05,100.0,1.0,76.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0],[202.0,8.0,4.9446573955815145,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[202.0,8.0,4.9446573955815145,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[202.0,76.0,2.195615675698327,30.0,-25.0,1.05,100.0,1.0,76.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0],[202.0,76.0,2.195615675698327,30.0,-25.0,1.05,100.0,1.0,76.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0],[207.0,55.00000000000001,18.99993913326893,19.0,-15.0,0.9699,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[207.0,55.00000000000001,18.99993913326893,19.0,-15.0,0.9699,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[213.0,355.0,125.69289639477341,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[213.0,55.00000000000001,14.277477013841688,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[213.0,55.00000000000001,14.277477013841688,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[215.0,55.00000000000001,19.07022741809246,19.0,-15.0,1.0437,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[215.0,55.00000000000001,19.07022741809246,19.0,-15.0,1.0437,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[216.0,155.0,79.81163287131365,80.0,-50.0,1.0473,100.0,1.0,155.0,62.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[218.0,355.0,60.31158381121855,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[221.0,296.97,-7.622896937372614,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[223.0,155.0,-8.680648671516519,80.0,-50.0,1.05,100.0,1.0,155.0,62.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[223.0,155.0,-8.680648671516519,80.0,-50.0,1.05,100.0,1.0,155.0,62.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[223.0,350.0,30.622203711420067,150.0,-25.0,1.05,100.0,1.0,350.0,140.0,0.0,0.0,0.0,0.0,0.0,0.0,4.0,4.0,4.0,4.0,0.0],[223.0,22.0,-4.193400421781244,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[223.0,22.0,-4.193400421781244,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[223.0,22.0,-4.193400421781244,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[301.0,8.0,8.974017644887164,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[301.0,8.0,8.974017644887164,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[301.0,44.0,15.511659992616353,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[301.0,44.0,15.511659992616353,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[302.0,8.0,7.306808961051972,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[302.0,8.0,7.306808961051972,10.0,0.0,1.05,100.0,1.0,20.0,8.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[302.0,55.00000000000001,9.843150467576702,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[302.0,55.00000000000001,9.843150467576702,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[307.0,55.00000000000001,18.988753589098888,19.0,-15.0,0.9568,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[307.0,55.00000000000001,18.988753589098888,19.0,-15.0,0.9568,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[313.0,355.0,149.9796421537576,150.0,-25.0,1.035,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[315.0,5.0,6.029433059781055,6.0,0.0,1.0422,100.0,1.0,12.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,0.0],[315.0,5.0,6.029433059781055,6.0,0.0,1.0422,100.0,1.0,12.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,0.0],[315.0,5.0,6.029433059781055,6.0,0.0,1.0422,100.0,1.0,12.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,0.0],[315.0,5.0,6.029433059781055,6.0,0.0,1.0422,100.0,1.0,12.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,0.0],[315.0,5.0,6.029433059781055,6.0,0.0,1.0422,100.0,1.0,12.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,1.0,0.0],[315.0,55.00000000000001,19.16678733875931,19.0,-15.0,1.0422,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[315.0,55.00000000000001,19.16678733875931,19.0,-15.0,1.0422,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[315.0,55.00000000000001,60.29433059781054,60.0,0.0,1.0422,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[316.0,155.0,79.1289770078451,80.0,-50.0,1.0449,100.0,1.0,155.0,62.0,0.0,0.0,0.0,0.0,0.0,0.0,3.0,3.0,3.0,3.0,0.0],[318.0,355.0,63.235213643864995,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[321.0,355.0,-3.5242143522305884,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[322.0,55.00000000000001,-9.063161650927897,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[322.0,55.00000000000001,-9.063161650927897,19.0,-15.0,1.05,100.0,1.0,55.0,22.0,0.0,0.0,0.0,0.0,0.0,0.0,3.7,3.7,3.7,3.7,0.0],[323.0,355.0,37.46330960072207,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[323.0,355.0,37.46330960072207,150.0,-25.0,1.05,100.0,1.0,355.0,170.0,0.0,0.0,0.0,0.0,0.0,0.0,4.14,4.14,4.14,4.14,0.0],[114.0,0.0,103.2003853743867,200.0,-50.0,1.0441,100.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[121.0,400.0,-21.92870902337025,200.0,-50.0,1.05,100.0,1.0,400.0,396.0,0.0,0.0,0.0,0.0,0.0,0.0,20.0,20.0,20.0,20.0,0.0],[122.0,50.0,-6.793501784229493,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[122.0,50.0,-6.793501784229493,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[122.0,50.0,-6.793501784229493,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[122.0,50.0,-6.793501784229493,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[122.0,50.0,-6.793501784229493,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[122.0,50.0,-6.793501784229493,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[201.0,50.0,4.604776807549422,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[214.0,0.0,125.28697655287453,200.0,-50.0,1.05,100.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[215.0,50.0,16.053703319717766,16.0,-10.0,1.0437,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[215.0,50.0,16.053703319717766,16.0,-10.0,1.0437,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[215.0,50.0,16.053703319717766,16.0,-10.0,1.0437,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[222.0,50.0,-6.973032505576547,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[222.0,50.0,-6.973032505576547,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[222.0,50.0,-6.973032505576547,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[222.0,50.0,-6.973032505576547,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[222.0,50.0,-6.973032505576547,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[222.0,50.0,-6.973032505576547,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[314.0,0.0,166.72294643614413,200.0,-50.0,1.05,100.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[322.0,50.0,-5.460064791886039,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[322.0,50.0,-5.460064791886039,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[322.0,50.0,-5.460064791886039,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[322.0,50.0,-5.460064791886039,16.0,-10.0,1.05,100.0,1.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0],[320.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.6,51.6,51.6,51.6,0.0],[314.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.6,51.6,51.6,51.6,0.0],[314.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.6,51.6,51.6,51.6,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,95.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,95.1,95.1,95.1,95.1,0.0],[314.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,92.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,92.7,92.7,92.7,92.7,0.0],[314.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.6,51.6,51.6,51.6,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,93.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,93.3,93.3,93.3,93.3,0.0],[310.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.7,51.7,51.7,51.7,0.0],[324.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,49.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,49.7,49.7,49.7,49.7,0.0],[312.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,94.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,94.1,94.1,94.1,94.1,0.0],[310.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.6,51.6,51.6,51.6,0.0],[324.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.6,51.6,51.6,51.6,0.0],[324.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,51.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51.0,51.0,51.0,51.0,0.0],[113.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,93.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,93.6,93.6,93.6,93.6,0.0],[319.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,188.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,188.2,188.2,188.2,188.2,0.0],[215.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,125.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,125.1,125.1,125.1,125.1,0.0],[102.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,25.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,25.6,25.6,25.6,25.6,0.0],[101.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,25.9,0.0,0.0,0.0,0.0,0.0,0.0,0.0,25.9,25.9,25.9,25.9,0.0],[102.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,25.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,25.3,25.3,25.3,25.3,0.0],[104.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,26.8,0.0,0.0,0.0,0.0,0.0,0.0,0.0,26.8,26.8,26.8,26.8,0.0],[212.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,200.0,30.0,0.0,0.0,0.0,0.0,0.0,0.0,20.0,20.0,20.0,20.0,0.0],[101.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,26.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,26.7,26.7,26.7,26.7,0.0],[101.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,26.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,26.2,26.2,26.2,26.2,0.0],[101.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,25.8,0.0,0.0,0.0,0.0,0.0,0.0,0.0,25.8,25.8,25.8,25.8,0.0],[103.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,61.5,0.0,0.0,0.0,0.0,0.0,0.0,0.0,61.5,61.5,61.5,61.5,0.0],[119.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,66.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,66.6,66.6,66.6,66.6,0.0],[308.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,100.9,0.0,0.0,0.0,0.0,0.0,0.0,0.0,100.9,100.9,100.9,100.9,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,101.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,101.7,101.7,101.7,101.7,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,63.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,63.1,63.1,63.1,63.1,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,65.4,0.0,0.0,0.0,0.0,0.0,0.0,0.0,65.4,65.4,65.4,65.4,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,67.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,67.0,67.0,67.0,67.0,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,64.8,0.0,0.0,0.0,0.0,0.0,0.0,0.0,64.8,64.8,64.8,64.8,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,63.8,0.0,0.0,0.0,0.0,0.0,0.0,0.0,63.8,63.8,63.8,63.8,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,64.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,64.1,64.1,64.1,64.1,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,66.6,0.0,0.0,0.0,0.0,0.0,0.0,0.0,66.6,66.6,66.6,66.6,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,62.4,0.0,0.0,0.0,0.0,0.0,0.0,0.0,62.4,62.4,62.4,62.4,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,66.9,0.0,0.0,0.0,0.0,0.0,0.0,0.0,66.9,66.9,66.9,66.9,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,65.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,65.2,65.2,65.2,65.2,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,27.8,0.0,0.0,0.0,0.0,0.0,0.0,0.0,27.8,27.8,27.8,27.8,0.0],[320.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,27.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,27.3,27.3,27.3,27.3,0.0],[320.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,27.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,27.0,27.0,27.0,27.0,0.0],[320.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,28.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,28.3,28.3,28.3,28.3,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,27.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,27.2,27.2,27.2,27.2,0.0],[320.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,27.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,27.0,27.0,27.0,27.0,0.0],[320.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,28.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,28.2,28.2,28.2,28.2,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,9.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.3,9.3,9.3,9.3,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,9.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.7,9.7,9.7,9.7,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,9.4,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.4,9.4,9.4,9.4,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,9.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.1,9.1,9.1,9.1,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,9.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.1,9.1,9.1,9.1,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,9.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.7,9.7,9.7,9.7,0.0],[320.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,9.4,0.0,0.0,0.0,0.0,0.0,0.0,0.0,9.4,9.4,9.4,9.4,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,11.8,0.0,0.0,0.0,0.0,0.0,0.0,0.0,11.8,11.8,11.8,11.8,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,11.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,11.2,11.2,11.2,11.2,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,10.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,10.3,10.3,10.3,10.3,0.0],[118.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,4.5,0.0,0.0,0.0,0.0,0.0,0.0,0.0,4.5,4.5,4.5,4.5,0.0],[213.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,13.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,13.2,13.2,13.2,13.2,0.0],[309.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,148.3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,148.3,148.3,148.3,148.3,0.0],[317.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,799.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,799.1,799.1,799.1,799.1,0.0],[303.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,847.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,847.0,847.0,847.0,847.0,0.0],[122.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,713.5,0.0,0.0,0.0,0.0,0.0,0.0,0.0,713.5,713.5,713.5,713.5,0.0],[313.0,0.0,0.0,0.0,0.0,1.0,100.0,0.0,50.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,50.0,50.0,50.0,50.0,0.0]]),\n", + " 'branch': matlab.double([[101.0,102.0,0.003,0.014,0.461,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,7.836947725444094,-26.18547134936827,-7.835242708862921,-24.317676453089028],[101.0,103.0,0.055,0.211,0.057,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-0.5760549573418248,14.648159473053859,0.7347352484487001,-20.07739019483028],[101.0,105.0,0.022,0.085,0.023,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,52.73910723189774,0.214825083923674,-52.18025065549581,-0.5486064904604835],[102.0,104.0,0.033,0.127,0.034,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,34.938480887838296,13.718759655974793,-34.497668165803816,-15.644702754786561],[102.0,106.0,0.05,0.192,0.052,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,43.89676182102484,-4.742070870543262,-43.015717213742086,2.5054534578882155],[103.0,109.0,0.031,0.119,0.032,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,3.6761010765403044,-15.559619474744585,-3.613250243814937,12.47805810772234],[103.0,124.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0,-184.4108363249892,-1.3629903304253899,185.09595749602443,30.138079513907],[104.0,109.0,0.027,0.104,0.028,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-39.50233183419636,0.6447027547862263,39.910448904913856,-1.9975915471217396],[105.0,110.0,0.023,0.088,0.024,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-18.819749344504164,-13.45139350953917,18.927487222266,11.25417606031459],[106.0,110.0,0.014,0.061,2.459,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-92.984282786258,-137.09462232791978,94.12470228181515,-124.5390303763003],[107.0,108.0,0.016,0.061,0.017,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,168.70736219730168,19.73934430785464,-164.51475406050565,-5.570803948989611],[107.0,203.0,0.042,0.161,0.044,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,61.29263780269822,4.766416805190705,-59.84177642511895,-3.91260509924002],[108.0,109.0,0.043,0.165,0.045,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-10.596996848534474,-5.597619173704875,10.648162437159762,1.0966825427525895],[108.0,110.0,0.043,0.165,0.045,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,4.111750909040057,-23.8315768773051,-3.9123300472515323,19.7903456224579],[109.0,111.0,0.002,0.084,0.0,400.0,400.0,400.0,1.03,0.0,1.0,-180.0,180.0,-93.7150689609019,-30.193950223788246,93.91022832329219,38.39064344418029],[109.0,112.0,0.002,0.084,0.0,400.0,400.0,400.0,1.03,0.0,1.0,-180.0,180.0,-128.23029213735654,-17.38319887956489,128.5673991810012,31.54169471264169],[110.0,111.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0,-134.3691756314392,19.55752778830791,134.7137562552775,-5.085141587097251],[110.0,112.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0,-169.7706838253904,33.93698090521918,170.3308656029312,-10.409346248506207],[111.0,113.0,0.006,0.048,0.1,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-156.54777948882625,3.541414911930886,157.94620279823468,-2.9811860644674724],[111.0,114.0,0.005,0.042,0.088,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-72.07620508974361,-36.84691676901373,72.37161762358744,29.890504172834053],[112.0,113.0,0.006,0.048,0.1,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-94.16040267967861,-23.46673644405678,94.69132156278664,17.162583382031645],[112.0,123.0,0.012,0.097,0.203,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-204.7378621042538,2.334387979922564,209.59508712020912,15.184884034964433],[113.0,123.0,0.011,0.087,0.182,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-179.70253449617687,8.109907339871796,183.053248407439,-1.3840536243436397],[113.0,215.0,0.01,0.075,0.158,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-117.939698327053,-0.2199005274169199,119.24528225892455,-7.051538845547071],[114.0,116.0,0.005,0.059,0.082,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-266.3716176235875,34.309881201552635,269.6949231920777,-4.051202575367552],[115.0,116.0,0.002,0.017,0.036,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,14.594748989317308,-23.894008716912868,-14.581980878803474,20.075374966278794],[115.0,121.0,0.006,0.049,0.103,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-177.03388490214164,7.9104605419209575,178.77322350845432,-4.984010899702179],[115.0,121.0,0.006,0.049,0.103,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-177.03388490214164,7.9104605419209575,178.77322350845432,-4.984010899702179],[115.0,124.0,0.007,0.052,0.109,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,187.47302081496613,36.27454442259928,-185.09595749602443,-30.138079513906824],[116.0,117.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-240.8470930505362,22.84296825194444,242.45563682744046,-14.933915380105194],[116.0,119.0,0.003,0.023,0.049,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,40.73415073726224,21.0076087310155,-40.67327964197768,-25.870706218884703],[117.0,118.0,0.002,0.014,0.03,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-111.10215781223573,2.546809587481019,111.32711189102827,-4.274389508932994],[117.0,122.0,0.014,0.105,0.221,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-131.3534790152046,12.387105792623817,133.62805486696837,-19.65442432215064],[118.0,121.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-44.66355594551416,2.3634403634023777,44.718629215107654,-7.949888693591091],[118.0,121.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-44.66355594551416,2.3634403634023777,44.718629215107654,-7.949888693591091],[119.0,120.0,0.005,0.04,0.083,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-70.16336017901106,-5.564646890558149,70.39109530763248,-1.6223169779820275],[119.0,120.0,0.005,0.04,0.083,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-70.16336017901106,-5.564646890558149,70.39109530763248,-1.6223169779820275],[120.0,123.0,0.003,0.022,0.046,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-134.3910953076328,-11.377683022017724,134.8904839326349,9.997777566173221],[120.0,123.0,0.003,0.022,0.046,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-134.3910953076328,-11.377683022017724,134.8904839326349,9.997777566173221],[121.0,122.0,0.009,0.068,0.142,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-164.09798989849796,22.632081488594093,166.37194513303177,-21.10658638322632],[123.0,217.0,0.01,0.074,0.155,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,7.570696607081604,-8.728410904722827,-7.565494855033522,-8.312447230720316],[201.0,202.0,0.003,0.014,0.461,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,5.2350390108466645,-26.532515848377937,-5.234259152643871,-24.289094813343386],[201.0,203.0,0.055,0.211,0.057,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-24.84207148586165,19.929797451739518,25.415489324165762,-23.828729557561164],[201.0,205.0,0.022,0.085,0.023,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,53.60703247501492,6.336659072118872,-53.02205339906856,-6.572627912624088],[202.0,204.0,0.033,0.127,0.034,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,31.489506683378426,19.0652101085573,-31.061464500281684,-21.044445119429895],[202.0,206.0,0.05,0.192,0.052,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,44.74475246926566,-0.49556915265423357,-43.834224493474856,-1.6196335423933839],[203.0,209.0,0.031,0.119,0.032,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,38.795414987870416,-12.074164776924139,-38.313259228573635,10.600341619231532],[203.0,224.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0,-184.36912788691703,2.815499433726143,185.04440995068407,25.546347244490885],[204.0,209.0,0.027,0.104,0.028,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-42.938535499718355,6.044445119429961,43.43616713182355,-7.027417966382223],[205.0,210.0,0.023,0.088,0.024,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-17.977946600931475,-7.427372087376124,18.055682450314176,5.138273021004165],[206.0,210.0,0.014,0.061,2.459,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-92.16577550652491,-131.96229423007912,93.29274958881213,-126.6362482131036],[207.0,208.0,0.016,0.061,0.017,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-14.999999999999837,12.999878266537863,15.070657671834752,-14.319615334796653],[208.0,209.0,0.043,0.165,0.045,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-101.32229592941502,0.2222132501380869,106.07740787999347,13.593106970590178],[208.0,210.0,0.043,0.165,0.045,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-84.74836174241956,-20.90259791534159,88.23717045281795,29.753330850920385],[209.0,211.0,0.002,0.084,0.0,400.0,400.0,400.0,1.03,0.0,1.0,-180.0,180.0,-125.38086459249105,-35.41324323812848,125.72700823517324,49.95127623078035],[209.0,212.0,0.002,0.084,0.0,400.0,400.0,400.0,1.03,0.0,1.0,-180.0,180.0,-160.81945119075232,-17.752787385310963,161.35327486814026,40.17338183560509],[210.0,211.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0,-179.29633533180657,15.976110285725104,179.91030893991044,9.810781254634602],[210.0,212.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0,-215.28926716013817,35.768534055453365,216.19175741176386,2.1360565128234588],[211.0,213.0,0.006,0.048,0.1,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-218.99370163538413,-13.71383372543791,221.71875538165492,24.714244775704415],[211.0,214.0,0.005,0.042,0.088,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-86.64361553969935,-46.04822375997614,87.07957990338258,40.20630776540357],[212.0,213.0,0.006,0.048,0.1,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-152.09497058403244,-49.65774546277138,153.54946033023182,50.601779098185176],[212.0,223.0,0.012,0.097,0.203,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-225.45006169587154,7.34830711434318,231.3751054153396,18.841271086301496],[213.0,223.0,0.011,0.087,0.182,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-175.26821571188697,24.931826548567187,178.45511965358799,-19.791813555113265],[214.0,216.0,0.005,0.059,0.082,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-281.07957990338264,46.08066878747095,284.7787265347113,-11.448021426792298],[215.0,216.0,0.002,0.017,0.036,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,4.470832109722153,-24.584664082532985,-4.461067586440989,20.732597966425004],[215.0,221.0,0.006,0.049,0.103,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-184.05333421802214,11.266024163789021,185.93491638784917,-7.187589680367834],[215.0,221.0,0.006,0.049,0.103,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-184.05333421802214,11.266024163789021,185.93491638784917,-7.187589680367834],[215.0,224.0,0.007,0.052,0.109,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,187.39055406739763,31.405719395840233,-185.04440995068404,-25.546347244491425],[216.0,217.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-248.07540824018415,24.532495251874575,249.77940786715865,-15.809340938927624],[216.0,219.0,0.003,0.023,0.049,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,22.757749291913832,25.99456107980637,-22.721083100950416,-31.05244764400954],[217.0,218.0,0.002,0.014,0.03,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-110.8257150330766,10.655470723149715,111.05152008753232,-12.38051620014135],[217.0,222.0,0.014,0.105,0.221,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-131.38819797904839,13.466317446495225,133.66626445347936,-20.732667876859374],[218.0,221.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-44.525760043765814,2.346050005679949,44.58049379573449,-7.935440821953909],[218.0,221.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-44.525760043765814,2.346050005679949,44.58049379573449,-7.935440821953909],[219.0,220.0,0.005,0.04,0.083,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-79.13945844952482,-2.9737761779954033,79.42889315660416,-3.725907945245799],[219.0,220.0,0.005,0.04,0.083,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-79.13945844952482,-2.9737761779954033,79.42889315660416,-3.725907945245799],[220.0,223.0,0.003,0.022,0.046,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-143.4288931566045,-9.27409205475217,143.9963594062456,8.392797573261248],[220.0,223.0,0.003,0.022,0.046,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-143.4288931566045,-9.27409205475217,143.9963594062456,8.392797573261248],[221.0,222.0,0.009,0.068,0.142,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-164.06082036716717,22.623164067270874,166.3337355465207,-21.10552715659991],[301.0,302.0,0.003,0.014,0.461,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,8.64411889835002,-27.259747597120455,-8.641992839753735,-23.55558079609772],[301.0,303.0,0.055,0.211,0.057,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-39.85632976978689,35.5558047391427,41.39585923359414,-35.63131959511525],[301.0,305.0,0.022,0.085,0.023,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,27.21221087143661,18.675298132984793,-26.985080162568398,-20.28165465437695],[302.0,304.0,0.033,0.127,0.034,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,11.137202180446959,30.497207941465764,-10.786414855867163,-32.7465437825916],[302.0,306.0,0.05,0.192,0.052,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,26.504790659306554,7.358291711889303,-26.138781455930026,-11.522311539624244],[303.0,309.0,0.031,0.119,0.032,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,26.137878054746544,-15.261189925927802,-25.867196113253886,13.083725728515777],[303.0,324.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0,-247.53373728834055,13.892509521043571,248.8048578104283,39.49455240663935],[304.0,309.0,0.027,0.104,0.028,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-63.21358514413259,17.74654378259142,64.37455516427086,-16.11490111582013],[305.0,310.0,0.023,0.088,0.024,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-44.0149198374313,6.281654654377008,44.44870671705115,-7.169976052414402],[306.0,310.0,0.014,0.061,2.459,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-109.86121854406967,-120.43904110271393,111.49389855489824,-131.32461466065308],[307.0,308.0,0.016,0.061,0.017,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-14.999999999999044,12.977507178197776,15.072394674471875,-14.247763431220239],[308.0,309.0,0.043,0.165,0.045,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-101.87306506589874,1.2125248942853883,106.81640775417162,13.441398050174701],[308.0,310.0,0.043,0.165,0.045,175.0,175.0,175.0,0.0,0.0,1.0,-180.0,180.0,-84.19932960856852,-21.96476146306148,87.76184812534778,31.20328704949103],[309.0,311.0,0.002,0.084,0.0,400.0,400.0,400.0,1.03,0.0,1.0,-180.0,180.0,-143.48817316793549,-35.06514969811053,143.94473010634027,54.24054111111346],[309.0,312.0,0.002,0.084,0.0,400.0,400.0,400.0,1.03,0.0,1.0,-180.0,180.0,-176.835593637254,-11.345072964757419,177.4926383041942,38.94094897624896],[310.0,311.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0,-202.57387579664586,20.54166405540264,203.37525889294534,13.116425989174068],[310.0,312.0,0.002,0.084,0.0,400.0,400.0,400.0,1.015,0.0,1.0,-180.0,180.0,-236.130577600652,46.7496396081767,237.25061552926144,0.2919533934174545],[311.0,313.0,0.006,0.048,0.1,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-199.54906121350834,-6.9980400980957755,201.8542040256167,14.900325796364717],[311.0,314.0,0.005,0.042,0.088,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-147.77092778577827,-60.3589270021919,148.97442811150938,61.05652575556704],[312.0,313.0,0.006,0.048,0.1,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-134.8578430726855,-52.09274350705525,136.0757399429817,51.45425474720655],[312.0,323.0,0.012,0.097,0.203,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-279.8854107607715,12.859841137388022,289.3014382339559,41.860828998082525],[313.0,323.0,0.011,0.087,0.182,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-247.9299439685985,29.625061610186332,254.4011761918099,1.7756048370321798],[314.0,316.0,0.005,0.059,0.082,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-342.97442811150967,66.66642068057709,348.53900862946887,-10.001066209657784],[315.0,316.0,0.002,0.017,0.036,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,35.64036760169472,-22.587585671330718,-35.609140127363524,18.932624873146565],[315.0,321.0,0.006,0.049,0.103,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-207.93304452491435,13.194584532290357,210.34088421259645,-4.802266742220568],[315.0,321.0,0.006,0.049,0.103,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-207.93304452491435,13.194584532290357,210.34088421259645,-4.802266742220568],[315.0,324.0,0.007,0.052,0.109,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,253.22572144813407,60.973487180984435,-248.80485781042853,-39.49455240663951],[316.0,317.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-286.6828740983598,29.757796020836842,288.97063062902305,-15.950381474093406],[316.0,319.0,0.003,0.023,0.049,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,28.753005596254226,20.439622323519473,-28.715608670319785,-25.472698502692104],[317.0,318.0,0.002,0.014,0.03,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-150.00463843268093,2.3398195516650233,150.41508624785175,-2.7662428590148087],[317.0,322.0,0.014,0.105,0.221,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-138.9659921963426,13.610561922428154,141.51458980407057,-18.80282389760971],[318.0,321.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-50.166403918808086,3.0616936307226665,50.23589506604086,-8.523187021373497],[318.0,321.0,0.003,0.026,0.055,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-50.166403918808086,3.0616936307226665,50.23589506604086,-8.523187021373497],[319.0,320.0,0.005,0.04,0.083,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-76.14219566484016,-5.763650748654516,76.41079901414298,-1.0870649710089977],[319.0,320.0,0.005,0.04,0.083,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-76.14219566484016,-5.763650748654516,76.41079901414298,-1.0870649710089977],[320.0,323.0,0.003,0.022,0.046,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-140.41079901414335,-11.912935028992905,140.9563359720266,10.872999067367864],[320.0,323.0,0.003,0.022,0.046,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-140.41079901414335,-11.912935028992905,140.9563359720266,10.872999067367864],[321.0,322.0,0.009,0.068,0.142,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-166.15355855727515,23.126693174957538,168.48541019592963,-21.163758571790236],[325.0,121.0,0.012,0.097,0.203,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-115.61528636981873,8.445576133445204,117.11428445137331,-18.692991325377804],[318.0,223.0,0.013,0.104,0.218,500.0,500.0,500.0,0.0,0.0,1.0,-180.0,180.0,-28.082278410235357,-8.121930758565538,28.177056118581206,-15.154347574667437],[323.0,325.0,0.0,0.009,0.0,722.0,722.0,722.0,1.0,0.0,1.0,-180.0,180.0,-115.61528636981852,9.544187231593705,115.6152863698185,-8.44557613344784]]),\n", + " 'gencost': matlab.double([[1.0,51.747,51.747,4.0,8.0,1085.77625,12.0,1477.23196,16.0,1869.51562,20.0,2298.06357],[1.0,51.747,51.747,4.0,8.0,1085.77625,12.0,1477.23196,16.0,1869.51562,20.0,2298.06357],[1.0,11172.0143,11172.0143,4.0,30.0,841.57942,45.33333,1059.17805,60.66667,1319.40176,76.0,1596.51343],[1.0,11172.0143,11172.0143,4.0,30.0,841.57942,45.33333,1059.17805,60.66667,1319.40176,76.0,1596.51343],[1.0,51.747,51.747,4.0,8.0,1212.03893,12.0,1567.9341,16.0,1946.59795,20.0,2344.92565],[1.0,51.747,51.747,4.0,8.0,1212.03893,12.0,1567.9341,16.0,1946.59795,20.0,2344.92565],[1.0,11172.0143,11172.0143,4.0,30.0,735.09774,45.33333,1018.2061,60.66667,1337.84562,76.0,1683.0926],[1.0,11172.0143,11172.0143,4.0,30.0,735.09774,45.33333,1018.2061,60.66667,1337.84562,76.0,1683.0926],[1.0,28046.681,28046.681,4.0,170.0,4772.49548,231.66667,6203.57553,293.33333,7855.66994,355.0,9738.3672],[1.0,5665.23443,5665.23443,4.0,22.0,1122.43477,33.0,1417.43201,44.0,1742.48912,55.0,2075.88432],[1.0,5665.23443,5665.23443,4.0,22.0,1122.43477,33.0,1417.43201,44.0,1742.48912,55.0,2075.88432],[1.0,5665.23443,5665.23443,4.0,22.0,1122.43477,33.0,1417.43201,44.0,1742.48912,55.0,2075.88432],[1.0,5665.23443,5665.23443,4.0,22.0,1122.43477,33.0,1417.43201,44.0,1742.48912,55.0,2075.88432],[1.0,703.7592,703.7592,4.0,5.0,897.29298,7.33333,1187.80064,9.66667,1479.58817,12.0,1791.41904],[1.0,703.7592,703.7592,4.0,5.0,897.29298,7.33333,1187.80064,9.66667,1479.58817,12.0,1791.41904],[1.0,22784.7956,22784.7956,4.0,62.0,1500.19723,93.0,2132.59734,124.0,2829.8758,155.0,3668.4449],[1.0,22784.7956,22784.7956,4.0,62.0,1735.06998,93.0,2345.3197,124.0,3011.01092,155.0,3751.14842],[1.0,28046.681,28046.681,4.0,170.0,4795.62444,231.66667,6187.87116,293.33333,7899.41412,355.0,9901.2482],[1.0,22784.7956,22784.7956,4.0,62.0,1437.41596,93.0,2039.7361,124.0,2751.75964,155.0,3775.85462],[1.0,36749.8136,36749.8136,4.0,140.0,3582.87481,210.0,4981.72313,280.0,6497.03117,350.0,8137.67767],[1.0,5665.23443,5665.23443,4.0,22.0,1088.22724,33.0,1377.15264,44.0,1704.98911,55.0,2046.97895],[1.0,5665.23443,5665.23443,4.0,22.0,1088.22724,33.0,1377.15264,44.0,1704.98911,55.0,2046.97895],[1.0,5665.23443,5665.23443,4.0,22.0,1088.22724,33.0,1377.15264,44.0,1704.98911,55.0,2046.97895],[1.0,51.747,51.747,4.0,8.0,1157.22851,12.0,1487.12598,16.0,1822.73633,20.0,2269.08525],[1.0,51.747,51.747,4.0,8.0,1157.22851,12.0,1487.12598,16.0,1822.73633,20.0,2269.08525],[1.0,11172.0143,11172.0143,4.0,30.0,823.75848,45.33333,1163.9488,60.66667,1523.42575,76.0,1918.3966],[1.0,51.747,51.747,4.0,8.0,1131.23082,12.0,1455.62241,16.0,1805.10095,20.0,2196.47386],[1.0,51.747,51.747,4.0,8.0,1131.23082,12.0,1455.62241,16.0,1805.10095,20.0,2196.47386],[1.0,11172.0143,11172.0143,4.0,30.0,751.26977,45.33333,1075.05834,60.66667,1401.47249,76.0,1819.68454],[1.0,11172.0143,11172.0143,4.0,30.0,751.26977,45.33333,1075.05834,60.66667,1401.47249,76.0,1819.68454],[1.0,5665.23443,5665.23443,4.0,22.0,1116.10638,33.0,1492.56031,44.0,1897.96238,55.0,2366.39182],[1.0,5665.23443,5665.23443,4.0,22.0,1116.10638,33.0,1492.56031,44.0,1897.96238,55.0,2366.39182],[1.0,28046.681,28046.681,4.0,170.0,5170.31357,231.66667,6688.64875,293.33333,8361.5981,355.0,10458.8375],[1.0,5665.23443,5665.23443,4.0,22.0,1122.43477,33.0,1417.43201,44.0,1742.48912,55.0,2075.88432],[1.0,5665.23443,5665.23443,4.0,22.0,1122.43477,33.0,1417.43201,44.0,1742.48912,55.0,2075.88432],[1.0,5665.23443,5665.23443,4.0,22.0,1216.84757,33.0,1501.96739,44.0,1800.72745,55.0,2160.80453],[1.0,5665.23443,5665.23443,4.0,22.0,1216.84757,33.0,1501.96739,44.0,1800.72745,55.0,2160.80453],[1.0,22784.7956,22784.7956,4.0,62.0,1426.14416,93.0,2001.92316,124.0,2679.08278,155.0,3412.47031],[1.0,28046.681,28046.681,4.0,170.0,7523.51994,231.66667,8815.08767,293.33333,10151.4815,355.0,11987.1952],[1.0,28046.681,28046.681,4.0,170.0,4551.1183,231.66667,5977.40411,293.33333,7600.7331,355.0,9828.37578],[1.0,22784.7956,22784.7956,4.0,62.0,1422.99854,93.0,2013.06389,124.0,2623.44468,155.0,3256.43459],[1.0,22784.7956,22784.7956,4.0,62.0,1422.99854,93.0,2013.06389,124.0,2623.44468,155.0,3256.43459],[1.0,36749.8136,36749.8136,4.0,140.0,3323.31912,210.0,4643.59043,280.0,6258.48853,350.0,7981.70748],[1.0,5665.23443,5665.23443,4.0,22.0,1692.75992,33.0,2103.03655,44.0,2540.25162,55.0,2996.75119],[1.0,5665.23443,5665.23443,4.0,22.0,1692.75992,33.0,2103.03655,44.0,2540.25162,55.0,2996.75119],[1.0,5665.23443,5665.23443,4.0,22.0,1692.75992,33.0,2103.03655,44.0,2540.25162,55.0,2996.75119],[1.0,51.747,51.747,4.0,8.0,1208.23035,12.0,1557.25352,16.0,1956.0366,20.0,2377.50557],[1.0,51.747,51.747,4.0,8.0,1208.23035,12.0,1557.25352,16.0,1956.0366,20.0,2377.50557],[1.0,5665.23443,5665.23443,4.0,22.0,1119.44162,33.0,1432.61161,44.0,1754.76108,55.0,2235.93283],[1.0,5665.23443,5665.23443,4.0,22.0,1119.44162,33.0,1432.61161,44.0,1754.76108,55.0,2235.93283],[1.0,51.747,51.747,4.0,8.0,1208.23035,12.0,1557.25352,16.0,1956.0366,20.0,2377.50557],[1.0,51.747,51.747,4.0,8.0,1208.23035,12.0,1557.25352,16.0,1956.0366,20.0,2377.50557],[1.0,5665.23443,5665.23443,4.0,22.0,1316.56254,33.0,1688.27018,44.0,2110.47669,55.0,2535.46257],[1.0,5665.23443,5665.23443,4.0,22.0,1316.56254,33.0,1688.27018,44.0,2110.47669,55.0,2535.46257],[1.0,5665.23443,5665.23443,4.0,22.0,1141.93307,33.0,1448.77467,44.0,1770.19723,55.0,2160.4197],[1.0,5665.23443,5665.23443,4.0,22.0,1141.93307,33.0,1448.77467,44.0,1770.19723,55.0,2160.4197],[1.0,28046.681,28046.681,4.0,170.0,5243.00459,231.66667,6213.11865,293.33333,7863.05566,355.0,9944.47408],[1.0,703.7592,703.7592,4.0,5.0,745.67427,7.33333,921.69342,9.66667,1155.95898,12.0,1445.52485],[1.0,703.7592,703.7592,4.0,5.0,745.67427,7.33333,921.69342,9.66667,1155.95898,12.0,1445.52485],[1.0,703.7592,703.7592,4.0,5.0,745.67427,7.33333,921.69342,9.66667,1155.95898,12.0,1445.52485],[1.0,703.7592,703.7592,4.0,5.0,745.67427,7.33333,921.69342,9.66667,1155.95898,12.0,1445.52485],[1.0,703.7592,703.7592,4.0,5.0,745.67427,7.33333,921.69342,9.66667,1155.95898,12.0,1445.52485],[1.0,5665.23443,5665.23443,4.0,22.0,884.43584,33.0,1174.85782,44.0,1470.71025,55.0,1821.1237],[1.0,5665.23443,5665.23443,4.0,22.0,884.43584,33.0,1174.85782,44.0,1470.71025,55.0,1821.1237],[1.0,5665.23443,5665.23443,4.0,22.0,884.43584,33.0,1174.85782,44.0,1470.71025,55.0,1821.1237],[1.0,22784.7956,22784.7956,4.0,62.0,1552.62418,93.0,2207.24021,124.0,2867.16447,155.0,3712.68014],[1.0,28046.681,28046.681,4.0,170.0,5254.89948,231.66667,6910.34987,293.33333,8592.40827,355.0,10536.7115],[1.0,28046.681,28046.681,4.0,170.0,4775.79962,231.66667,6177.63481,293.33333,7775.31462,355.0,9868.71865],[1.0,5665.23443,5665.23443,4.0,22.0,1031.69929,33.0,1288.38408,44.0,1579.87505,55.0,1886.71665],[1.0,5665.23443,5665.23443,4.0,22.0,1031.69929,33.0,1288.38408,44.0,1579.87505,55.0,1886.71665],[1.0,28046.681,28046.681,4.0,170.0,4877.56703,231.66667,6507.36825,293.33333,8374.48424,355.0,10331.0128],[1.0,28046.681,28046.681,4.0,170.0,4877.56703,231.66667,6507.36825,293.33333,8374.48424,355.0,10331.0128],[1.0,0.0,0.0,4.0,0.0,0.0,0.33333,0.0,0.66667,0.0,1.0,0.0],[1.0,63999.8223,63999.8223,4.0,396.0,3208.986,397.33333,3219.79067,398.66667,3230.59533,400.0,3241.4],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,0.33333,0.0,0.66667,0.0,1.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,0.33333,0.0,0.66667,0.0,1.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.2,0.0,34.4,0.0,51.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.2,0.0,34.4,0.0,51.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.2,0.0,34.4,0.0,51.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,31.7,0.0,63.4,0.0,95.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,30.9,0.0,61.8,0.0,92.7,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.2,0.0,34.4,0.0,51.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,31.1,0.0,62.2,0.0,93.3,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.23333,0.0,34.46667,0.0,51.7,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.56667,0.0,33.13333,0.0,49.7,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,31.36667,0.0,62.73333,0.0,94.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.2,0.0,34.4,0.0,51.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.2,0.0,34.4,0.0,51.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,17.0,0.0,34.0,0.0,51.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,31.2,0.0,62.4,0.0,93.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,62.73333,0.0,125.46667,0.0,188.2,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,41.7,0.0,83.4,0.0,125.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,8.53333,0.0,17.06667,0.0,25.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,8.63333,0.0,17.26667,0.0,25.9,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,8.43333,0.0,16.86667,0.0,25.3,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,8.93333,0.0,17.86667,0.0,26.8,0.0],[1.0,10000.0,0.0,4.0,30.0,0.0,66.0,0.0,120.0,0.0,160.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,8.9,0.0,17.8,0.0,26.7,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,8.73333,0.0,17.46667,0.0,26.2,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,8.6,0.0,17.2,0.0,25.8,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,20.5,0.0,41.0,0.0,61.5,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,22.2,0.0,44.4,0.0,66.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,33.63333,0.0,67.26667,0.0,100.9,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,33.9,0.0,67.8,0.0,101.7,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,21.03333,0.0,42.06667,0.0,63.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,21.8,0.0,43.6,0.0,65.4,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,22.33333,0.0,44.66667,0.0,67.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,21.6,0.0,43.2,0.0,64.8,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,21.26667,0.0,42.53333,0.0,63.8,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,21.36667,0.0,42.73333,0.0,64.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,22.2,0.0,44.4,0.0,66.6,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,20.8,0.0,41.6,0.0,62.4,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,22.3,0.0,44.6,0.0,66.9,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,21.73333,0.0,43.46667,0.0,65.2,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,9.26667,0.0,18.53333,0.0,27.8,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,9.1,0.0,18.2,0.0,27.3,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,9.0,0.0,18.0,0.0,27.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,9.43333,0.0,18.86667,0.0,28.3,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,9.06667,0.0,18.13333,0.0,27.2,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,9.0,0.0,18.0,0.0,27.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,9.4,0.0,18.8,0.0,28.2,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.1,0.0,6.2,0.0,9.3,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.23333,0.0,6.46667,0.0,9.7,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.13333,0.0,6.26667,0.0,9.4,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.03333,0.0,6.06667,0.0,9.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.03333,0.0,6.06667,0.0,9.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.23333,0.0,6.46667,0.0,9.7,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.13333,0.0,6.26667,0.0,9.4,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.93333,0.0,7.86667,0.0,11.8,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.73333,0.0,7.46667,0.0,11.2,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,3.43333,0.0,6.86667,0.0,10.3,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,1.5,0.0,3.0,0.0,4.5,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,4.4,0.0,8.8,0.0,13.2,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,49.43333,0.0,98.86667,0.0,148.3,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,266.36667,0.0,532.73333,0.0,799.1,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,282.33333,0.0,564.66667,0.0,847.0,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,237.83333,0.0,475.66667,0.0,713.5,0.0],[1.0,0.0,0.0,4.0,0.0,0.0,16.66667,0.0,33.33333,0.0,50.0,0.0]])}" + ] + }, + "execution_count": null, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "r1 = run_matlab_cmd(\"runpf(mpc)\", m=m, mpc=mpc)\n", + "r1" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "47837a00", + "metadata": {}, + "outputs": [], + "source": [ + "m.exit()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "9b8aa6bd", + "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" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/notebooks/load_excel.ipynb b/notebooks/load_excel.ipynb index 70a89c4..295ad4f 100644 --- a/notebooks/load_excel.ipynb +++ b/notebooks/load_excel.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -12,7 +12,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -26,7 +26,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -42,7 +42,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -53,7 +53,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -69,7 +69,7 @@ " dtype='object', name='bus_name', length=118)" ] }, - "execution_count": 14, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -83,7 +83,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -95,7 +95,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -121,7 +121,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -177,7 +177,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -424,7 +424,7 @@ " dtype='object', name='bus_name', length=118)}" ] }, - "execution_count": 18, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -436,7 +436,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -445,7 +445,7 @@ "dict_keys(['info', 'bus', 'gen', 'branch', 'gencost', 'bus_name'])" ] }, - "execution_count": 19, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -463,7 +463,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -472,7 +472,7 @@ "['version', 'baseMVA', 'bus', 'gen', 'branch', 'gencost', 'bus_name']" ] }, - "execution_count": 20, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -491,7 +491,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -875,7 +875,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -931,7 +931,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -1178,7 +1178,7 @@ " dtype='object', name='bus_name', length=118)}" ] }, - "execution_count": 23, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -1190,7 +1190,7 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -1199,7 +1199,7 @@ "dict_keys(['mpc.info_test', 'mpc.bus_test', 'mpc.gen_test', 'mpc.branch_test', 'mpc.gencost_test', 'mpc.bus_name_test'])" ] }, - "execution_count": 24, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -1217,7 +1217,7 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -3946,7 +3946,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -4323,7 +4323,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -4353,8 +4353,7 @@ "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.12" + "pygments_lexer": "ipython3" } }, "nbformat": 4, diff --git a/notebooks/load_from_data.ipynb b/notebooks/load_from_data.ipynb index c24e43f..4af21ae 100644 --- a/notebooks/load_from_data.ipynb +++ b/notebooks/load_from_data.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -22,7 +22,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -32,7 +32,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -244,7 +244,7 @@ "9 0.9 " ] }, - "execution_count": 4, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -255,7 +255,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -277,7 +277,7 @@ "dtype: object" ] }, - "execution_count": 5, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -288,7 +288,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -371,7 +371,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -583,7 +583,7 @@ "9 345.0 1.0 1.1 0.9 " ] }, - "execution_count": 9, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -595,7 +595,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -617,7 +617,7 @@ "dtype: object" ] }, - "execution_count": 10, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -628,7 +628,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -739,8 +739,7 @@ "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.3" + "pygments_lexer": "ipython3" } }, "nbformat": 4, diff --git a/notebooks/load_mfile_dclines.ipynb b/notebooks/load_mfile_dclines.ipynb index ff29dd5..6d14ae0 100644 --- a/notebooks/load_mfile_dclines.ipynb +++ b/notebooks/load_mfile_dclines.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -165,7 +165,7 @@ "3 10 -10 10 0 0.05 " ] }, - "execution_count": 3, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -176,7 +176,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -303,7 +303,7 @@ "3 0 0 0 0 0 " ] }, - "execution_count": 4, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -335,10 +335,8 @@ "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.8.10" + "pygments_lexer": "ipython3" }, - "orig_nbformat": 4, "vscode": { "interpreter": { "hash": "7d9fbcc9d36fec826ec7ea63260f41bcb424332a9e727079e8172fbdc4352c28" diff --git a/notebooks/load_most_ex_case3a.ipynb b/notebooks/load_most_ex_case3a.ipynb index f04c7c5..cb8bd67 100644 --- a/notebooks/load_most_ex_case3a.ipynb +++ b/notebooks/load_most_ex_case3a.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "aa3d7f0f", "metadata": {}, "outputs": [], @@ -13,7 +13,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "eae79aa2", "metadata": {}, "outputs": [], @@ -41,7 +41,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "5bc86ee4", "metadata": {}, "outputs": [ @@ -64,7 +64,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "3116b86b", "metadata": {}, "outputs": [], @@ -78,7 +78,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "id": "10fd2d91", "metadata": {}, "outputs": [], @@ -88,7 +88,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "id": "7e230eb0", "metadata": {}, "outputs": [], @@ -98,7 +98,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "id": "33e60f85", "metadata": {}, "outputs": [ @@ -183,7 +183,7 @@ " 'price_stage_warn_tol': 1e-07}}" ] }, - "execution_count": 7, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -209,7 +209,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "id": "87bc9631", "metadata": {}, "outputs": [ @@ -1082,7 +1082,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "id": "d2baa348", "metadata": {}, "outputs": [ @@ -1198,7 +1198,7 @@ " 'cont': {'contab': []}}" ] }, - "execution_count": 9, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -1212,7 +1212,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "id": "f10d8d18", "metadata": {}, "outputs": [ @@ -1835,7 +1835,7 @@ " 'SetupTime': 0.03305697441101074}}" ] }, - "execution_count": 10, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -1851,7 +1851,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "id": "5faf9637", "metadata": {}, "outputs": [], @@ -1869,7 +1869,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": null, "id": "f798f194", "metadata": {}, "outputs": [ @@ -2826,7 +2826,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": null, "id": "8c9c81c2", "metadata": {}, "outputs": [ @@ -2846,7 +2846,7 @@ " Name: LAM_P, dtype: float64)" ] }, - "execution_count": 13, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -2869,7 +2869,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": null, "id": "575be760", "metadata": {}, "outputs": [ @@ -3044,7 +3044,7 @@ "4 800.0 " ] }, - "execution_count": 14, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -3062,7 +3062,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": null, "id": "63a198e4", "metadata": {}, "outputs": [ @@ -3262,7 +3262,7 @@ "4 1.0 " ] }, - "execution_count": 15, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -3275,7 +3275,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "id": "13caf9af", "metadata": {}, "outputs": [ @@ -3745,7 +3745,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": null, "id": "126c9a34", "metadata": {}, "outputs": [ @@ -4270,7 +4270,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": null, "id": "676057c0", "metadata": {}, "outputs": [], @@ -4283,7 +4283,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": null, "id": "159b9137", "metadata": {}, "outputs": [], @@ -4315,8 +4315,7 @@ "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.14.2" + "pygments_lexer": "ipython3" } }, "nbformat": 4, diff --git a/notebooks/load_pypglib.ipynb b/notebooks/load_pypglib.ipynb index fceaf89..d13a052 100644 --- a/notebooks/load_pypglib.ipynb +++ b/notebooks/load_pypglib.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -12,7 +12,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -27,7 +27,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -37,7 +37,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -122,8 +122,7 @@ "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.4" + "pygments_lexer": "ipython3" } }, "nbformat": 4, diff --git a/notebooks/load_t_case30_userfcns.ipynb b/notebooks/load_t_case30_userfcns.ipynb index 39d9b92..75f220e 100644 --- a/notebooks/load_t_case30_userfcns.ipynb +++ b/notebooks/load_t_case30_userfcns.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "eae79aa2", "metadata": {}, "outputs": [], @@ -30,7 +30,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "5bc86ee4", "metadata": {}, "outputs": [ @@ -53,7 +53,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "3116b86b", "metadata": {}, "outputs": [], @@ -66,7 +66,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "10fd2d91", "metadata": {}, "outputs": [], @@ -76,7 +76,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "id": "7e230eb0", "metadata": {}, "outputs": [], @@ -86,7 +86,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "id": "6d93dd06", "metadata": {}, "outputs": [ @@ -366,7 +366,7 @@ " [ 2., -10., 20.]])}}" ] }, - "execution_count": 6, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -379,7 +379,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "id": "b6bbbce4", "metadata": {}, "outputs": [ @@ -389,7 +389,7 @@ "dict_keys(['version', 'baseMVA', 'bus', 'gen', 'branch', 'gencost', 'reserves', 'if'])" ] }, - "execution_count": 7, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -400,7 +400,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "id": "ea66211a", "metadata": {}, "outputs": [], @@ -410,7 +410,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "id": "a911808f", "metadata": {}, "outputs": [ @@ -420,7 +420,7 @@ "dict_keys(['bus', 'gen', 'branch', 'dcline', 'if', 'gencost', 'dclinecost', 'bus_name', 'branch_name', 'gen_name', 'case'])" ] }, - "execution_count": 9, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -431,7 +431,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "id": "f63470e2", "metadata": {}, "outputs": [ @@ -441,7 +441,7 @@ "{'baseMVA', 'reserves', 'version'}" ] }, - "execution_count": 10, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -455,7 +455,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "id": "8577fe89", "metadata": {}, "outputs": [ @@ -480,7 +480,7 @@ " [25.]])}" ] }, - "execution_count": 11, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -510,7 +510,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": null, "id": "370d5e7c", "metadata": {}, "outputs": [ @@ -582,7 +582,7 @@ "2 0.0 0.0 0.0 0.0 1.0 1.0" ] }, - "execution_count": 12, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -620,7 +620,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": null, "id": "b817c54f", "metadata": {}, "outputs": [ @@ -672,7 +672,7 @@ "2 20.0" ] }, - "execution_count": 13, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -689,7 +689,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": null, "id": "227155ed", "metadata": {}, "outputs": [ @@ -699,7 +699,7 @@ "RangeIndex(start=1, stop=7, step=1, name='gen')" ] }, - "execution_count": 14, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -712,7 +712,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": null, "id": "8c5f69a2", "metadata": {}, "outputs": [ @@ -784,7 +784,7 @@ "6 5.5" ] }, - "execution_count": 15, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -812,7 +812,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "id": "bd64557b", "metadata": {}, "outputs": [ @@ -884,7 +884,7 @@ "6 25.0" ] }, - "execution_count": 16, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -898,7 +898,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": null, "id": "6bda4dbb", "metadata": {}, "outputs": [ @@ -923,7 +923,7 @@ " [ 2., -10., 20.]])}" ] }, - "execution_count": 17, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -935,7 +935,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": null, "id": "159b9137", "metadata": {}, "outputs": [], @@ -967,8 +967,7 @@ "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.14.2" + "pygments_lexer": "ipython3" } }, "nbformat": 4, diff --git a/notebooks/to_pu.ipynb b/notebooks/to_pu.ipynb index 4ac3900..c255f0c 100644 --- a/notebooks/to_pu.ipynb +++ b/notebooks/to_pu.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -12,7 +12,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -21,7 +21,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -30,7 +30,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -242,7 +242,7 @@ "9 0.9 " ] }, - "execution_count": 4, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -255,7 +255,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -467,7 +467,7 @@ "9 1.1 0.9 " ] }, - "execution_count": 5, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -500,8 +500,7 @@ "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.4" + "pygments_lexer": "ipython3" } }, "nbformat": 4, diff --git a/requirements-all.txt b/requirements-all.txt index 2950b7a..fa71396 100644 --- a/requirements-all.txt +++ b/requirements-all.txt @@ -1,14 +1,14 @@ -pandas==3.0.0rc1 -numpy==2.4.1 +pandas==3.0.1 +numpy==2.4.2 openpyxl==3.1.5 oct2py==5.8.0 -matpower==8.1.0.2.2.3 +matpower==8.1.0.2.3.0 pre-commit==4.5.1 -ruff==0.14.13 -setuptools==80.9.0 +ruff==0.15.5 +setuptools==82.0.0 pytest==9.0.2 pytest-cov==7.0.0 diff --git a/tests/test_core.py b/tests/test_core.py index 8b78a4d..e88f8c6 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -8,6 +8,13 @@ from matpowercaseframes.idx import BUS_I, BUS_TYPE from matpowercaseframes.testing import assert_frames_struct_equal +try: + import matlab.engine # noqa: F401 + + MATLAB_AVAILABLE = True +except ImportError: + MATLAB_AVAILABLE = False + """ pytest -n auto -rA --lf -c pyproject.toml --cov-report term-missing --cov=matpowercaseframes tests/ """ diff --git a/tests/test_read_matpower_cases.py b/tests/test_read_matpower_cases.py index 037db46..7c840aa 100644 --- a/tests/test_read_matpower_cases.py +++ b/tests/test_read_matpower_cases.py @@ -2,17 +2,39 @@ import numpy as np import pandas as pd -from matpower import path_matpower, start_instance +import pytest +from matpower import path_matpower, run_matlab_cmd, start_instance from matpowercaseframes import CaseFrames, ReservesFrames, xGenDataTableFrames from matpowercaseframes.testing import assert_frames_struct_equal +try: + import matlab.engine # noqa: F401 + + MATLAB_AVAILABLE = True +except ImportError: + MATLAB_AVAILABLE = False + """ pytest -n auto -rA --cov-report term --cov=matpowercaseframes tests/ + + case9 : default MATPOWER case, polynomial gencost (TYPE=2) + case4_dist : small distribution network case + case118 : medium-scale IEEE case, tests all three loading methods + case_RTS_GMLC : piecewise linear gencost (TYPE=1) and contains bus_name + t_case9_dcline : case with DC lines + case16am : case with executable code inside .m file, requires load_case_engine + case9_load : case with non-standard keys, tests allow_any_keys + ex_case3a : case with operating reserves (ReservesFrames) + ex_xgd_uc : case with unit-commitment extended data (xGenDataTableFrames) """ def test_case9(): + """ + Default MATPOWER 9-bus case, polynomial gencost columns: + MODEL, STARTUP, SHUTDOWN, NCOST, C2, C1, C0. + """ CASE_NAME = "case9.m" cf = CaseFrames(CASE_NAME) cols = pd.Index(["MODEL", "STARTUP", "SHUTDOWN", "NCOST", "C2", "C1", "C0"]) @@ -20,11 +42,16 @@ def test_case9(): def test_case4_dist(): + """Small 4-bus radial distribution network case.""" CASE_NAME = "case4_dist.m" CaseFrames(CASE_NAME) def test_case118(): + """ + IEEE 118-bus case; tests file, engine, and MPC loading methods plus runpf + round-trip. + """ m = start_instance() CASE_NAME = "case118.m" @@ -47,7 +74,10 @@ def test_case118(): def test_case_RTS_GMLC(): - # NOTE: case with gencost piecewise linear + """ + RTS-GMLC 73-bus case with piecewise linear gencost (TYPE=1): + MODEL, STARTUP, SHUTDOWN, NCOST, X1, Y1, ... + """ m = start_instance() # TODO: test read without load_case_engine @@ -86,13 +116,33 @@ def test_case_RTS_GMLC(): m.exit() +@pytest.mark.skipif(not MATLAB_AVAILABLE, reason="MATLAB not available") +def test_case_RTS_GMLC_matlab(): + """ + RTS-GMLC 73-bus case with bus_name; run power flow via to_mpc(backend="matlab") + using the MATLAB engine. + """ + CASE_NAME = "case_RTS_GMLC.m" + + m = start_instance(engine="matlab") + + cf = CaseFrames(CASE_NAME, load_case_engine=m) + mpc = cf.to_mpc(backend="matlab") + run_matlab_cmd("runpf(mpc)", m=m, mpc=mpc) + + m.exit() + + def test_t_case9_dcline(): + """case9 extended with DC lines from MATPOWER internal test library.""" CASE_NAME = f"{path_matpower}/lib/t/t_case9_dcline.m" CaseFrames(CASE_NAME) def test_loadcase_case16am(): - # NOTE: case with code inside .m file + """ + 16-bus case with executable MATLAB code in .m file that requires load_case_engine. + """ m = start_instance() CASE_NAME = "case16am.m" CaseFrames(CASE_NAME, load_case_engine=m) @@ -100,6 +150,7 @@ def test_loadcase_case16am(): def test_read_without_ext(): + """case9 and case9.m must resolve to identical frames.""" CASE_NAME = "case9.m" cf = CaseFrames(CASE_NAME) @@ -110,6 +161,10 @@ def test_read_without_ext(): def test_read_allow_any_keys(): + """ + case9_load has a non-standard 'load' field that only visible with + `allow_any_keys=True`. + """ CASE_NAME = "data/case9_load.m" cf = CaseFrames(CASE_NAME) assert "load" not in cf.attributes @@ -119,6 +174,10 @@ def test_read_allow_any_keys(): def test_read_case_reserve(): + """ + ex_case3a includes operating reserve data parsed into ReservesFrames: + zones, req, cost, qty. + """ m = start_instance() CASE_NAME = "data/ex_case3a.m" cf = CaseFrames(CASE_NAME, load_case_engine=m) @@ -168,7 +227,10 @@ def test_read_case_reserve(): def test_read_xgd_table(): - """Test reading and using xGenDataTableFrames.""" + """Test reading and using xGenDataTableFrames. + + ex_xgd_uc provides unit-commitment extended data parsed into xGenDataTableFrames. + """ m = start_instance() CASE_NAME = "data/ex_case3a.m" diff --git a/tests/test_run_matpower_cases.py b/tests/test_run_matpower_cases.py index 6bf0b8c..6821ec2 100644 --- a/tests/test_run_matpower_cases.py +++ b/tests/test_run_matpower_cases.py @@ -1,16 +1,46 @@ -from matpower import start_instance +import pytest +from matpower import run_matlab_cmd, start_instance from matpowercaseframes import CaseFrames +try: + import matlab.engine # noqa: F401 + + MATLAB_AVAILABLE = True +except ImportError: + MATLAB_AVAILABLE = False + """ pytest -n auto -rA --cov-report term --cov=matpowercaseframes tests/ + + case9 : default MATPOWER case, run power flow via to_dict() + case_RTS_GMLC : piecewise linear gencost (TYPE=1) and contains bus_name, + run power flow via to_mpc(backend="matlab") """ def test_case9(): + """Load case9, convert to dict, and run power flow with octave engine.""" CASE_NAME = "case9.m" cf = CaseFrames(CASE_NAME) mpc = cf.to_dict() m = start_instance() m.runpf(mpc) + + +@pytest.mark.skipif(not MATLAB_AVAILABLE, reason="MATLAB not available") +def test_case_RTS_GMLC_matlab(): + """ + Load case_RTS_GMLC (has bus_name), convert via to_mpc(backend="matlab"), and run + power flow with matlab engine. + """ + CASE_NAME = "case_RTS_GMLC.m" + + m = start_instance(engine="matlab") + + cf = CaseFrames(CASE_NAME, load_case_engine=m) + mpc = cf.to_mpc(backend="matlab") + _ = run_matlab_cmd("runpf(mpc)", m=m, mpc=mpc) + + m.exit()