PowerZooJax commited on
Commit
27bea43
·
1 Parent(s): 91eb8a9

Initial release: parquet traces + manifests + grid cases

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitignore +51 -0
  2. README.md +278 -0
  3. manifests/aemo_5min_demand.json +24 -0
  4. manifests/aemo_forecast.json +28 -0
  5. manifests/alibaba_dc_2018.json +33 -0
  6. manifests/alibaba_gpu_2020.json +27 -0
  7. manifests/ausgrid_zone_substation_fy25_imputed.json +203 -0
  8. manifests/azure_dc_v2.json +24 -0
  9. manifests/gb_forecast_actual_demand.json +27 -0
  10. manifests/gb_gen_by_type.json +25 -0
  11. manifests/gb_market_mid.json +24 -0
  12. manifests/gb_neso_demand.json +44 -0
  13. manifests/google_dc_2019.json +26 -0
  14. parquet/AEMO_5min_Demand_2025_2026.json +32 -0
  15. parquet/AEMO_5min_Demand_2025_2026.parquet +3 -0
  16. parquet/AEMO_Forecast_vs_Actual_2025.json +42 -0
  17. parquet/AEMO_Forecast_vs_Actual_2025.parquet +3 -0
  18. parquet/Ausgrid_Zone_Substation_FY25_imputed_15min.json +208 -0
  19. parquet/Ausgrid_Zone_Substation_FY25_imputed_15min.parquet +3 -0
  20. parquet/GB_Forecast_Actual_Demand_2023_2025_30min.json +77 -0
  21. parquet/GB_Forecast_Actual_Demand_2023_2025_30min.parquet +3 -0
  22. parquet/GB_Gen_by_Type_2016_2025_30min.json +208 -0
  23. parquet/GB_Gen_by_Type_2016_2025_30min.parquet +3 -0
  24. parquet/GB_NESO_Demand_2009_2025_30min.json +271 -0
  25. parquet/GB_NESO_Demand_2009_2025_30min.parquet +3 -0
  26. parquet/MID_GB_30min_aligned_to_gen.json +117 -0
  27. parquet/MID_GB_30min_aligned_to_gen.parquet +3 -0
  28. parquet/alibaba_dc_2018_300s.json +77 -0
  29. parquet/alibaba_dc_2018_300s.parquet +3 -0
  30. parquet/alibaba_gpu_2020_300s.json +47 -0
  31. parquet/alibaba_gpu_2020_300s.parquet +3 -0
  32. parquet/azure_dc_v2_300s.json +47 -0
  33. parquet/azure_dc_v2_300s.parquet +3 -0
  34. parquet/google_dc_2019_300s.json +67 -0
  35. parquet/google_dc_2019_300s.parquet +3 -0
  36. powergrid_case/CaseBase.py +602 -0
  37. powergrid_case/distribution/Case118zh.py +452 -0
  38. powergrid_case/distribution/Case123.py +458 -0
  39. powergrid_case/distribution/Case141.py +505 -0
  40. powergrid_case/distribution/Case33bw.py +184 -0
  41. powergrid_case/distribution/Case533mt_hi.py +0 -0
  42. powergrid_case/distribution/Case533mt_lo.py +0 -0
  43. powergrid_case/distribution/__init__.py +17 -0
  44. powergrid_case/transmission/Case118.py +535 -0
  45. powergrid_case/transmission/Case1354pegase.py +0 -0
  46. powergrid_case/transmission/Case14.py +142 -0
  47. powergrid_case/transmission/Case2383wp.py +0 -0
  48. powergrid_case/transmission/Case29GB.py +235 -0
  49. powergrid_case/transmission/Case300.py +1160 -0
  50. powergrid_case/transmission/Case5.py +53 -0
.gitignore ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # macOS
2
+ .DS_Store
3
+ ._*
4
+ .AppleDouble
5
+ .LSOverride
6
+ .Spotlight-V100
7
+ .Trashes
8
+ .fseventsd
9
+
10
+ # Windows
11
+ Thumbs.db
12
+ ehthumbs.db
13
+ Desktop.ini
14
+
15
+ # Linux
16
+ *~
17
+ .directory
18
+
19
+ # Python
20
+ __pycache__/
21
+ *.py[cod]
22
+ *$py.class
23
+ *.so
24
+ .Python
25
+ *.egg-info/
26
+ .pytest_cache/
27
+ .mypy_cache/
28
+ .ruff_cache/
29
+ .ipynb_checkpoints/
30
+
31
+ # Editors / IDEs
32
+ .idea/
33
+ .vscode/
34
+ *.swp
35
+ *.swo
36
+ *.bak
37
+ *.tmp
38
+
39
+ # Local virtual envs (should never be committed to a dataset repo)
40
+ .venv/
41
+ venv/
42
+ env/
43
+
44
+ # Hugging Face / huggingface_hub local cache (in case it gets created here)
45
+ .cache/
46
+ .huggingface/
47
+
48
+ # Logs / scratch
49
+ *.log
50
+ scratch/
51
+ tmp/
README.md ADDED
@@ -0,0 +1,278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: PowerZoo Dataset
3
+ license: other
4
+ license_name: mixed-upstream-licences
5
+ language:
6
+ - en
7
+ size_categories:
8
+ - 1M<n<10M
9
+ tags:
10
+ - power-systems
11
+ - electricity
12
+ - reinforcement-learning
13
+ - benchmark
14
+ - time-series
15
+ - smart-grid
16
+ - data-center
17
+ - load-forecasting
18
+ - opf
19
+ task_categories:
20
+ - time-series-forecasting
21
+ - tabular-regression
22
+ - reinforcement-learning
23
+ configs:
24
+ - config_name: aemo_5min_demand
25
+ data_files: parquet/AEMO_5min_Demand_2025_2026.parquet
26
+ - config_name: aemo_forecast
27
+ data_files: parquet/AEMO_Forecast_vs_Actual_2025.parquet
28
+ - config_name: ausgrid_zone_substation
29
+ data_files: parquet/Ausgrid_Zone_Substation_FY25_imputed_15min.parquet
30
+ - config_name: gb_forecast_actual_demand
31
+ data_files: parquet/GB_Forecast_Actual_Demand_2023_2025_30min.parquet
32
+ - config_name: gb_gen_by_type
33
+ data_files: parquet/GB_Gen_by_Type_2016_2025_30min.parquet
34
+ - config_name: gb_neso_demand
35
+ data_files: parquet/GB_NESO_Demand_2009_2025_30min.parquet
36
+ - config_name: gb_market_mid
37
+ data_files: parquet/MID_GB_30min_aligned_to_gen.parquet
38
+ - config_name: alibaba_dc_2018
39
+ data_files: parquet/alibaba_dc_2018_300s.parquet
40
+ - config_name: alibaba_gpu_2020
41
+ data_files: parquet/alibaba_gpu_2020_300s.parquet
42
+ - config_name: azure_dc_v2
43
+ data_files: parquet/azure_dc_v2_300s.parquet
44
+ - config_name: google_dc_2019
45
+ data_files: parquet/google_dc_2019_300s.parquet
46
+ ---
47
+
48
+ # PowerZoo Dataset
49
+
50
+ A curated, harmonised collection of **real-world power-system and data-centre traces**, plus a library of **canonical electrical-network case files** (transmission and distribution), used by the *PowerZoo* / *PowerZooJax* benchmark suite for reinforcement-learning research on power systems.
51
+
52
+ This release is the data companion submitted to *******. Source code for environments, baselines and reproducibility scripts is released separately under a ***; this dataset repository is self-contained and can be loaded standalone.
53
+
54
+ > *****.** Author names, affiliations and contact information are intentionally omitted during the review period, in compliance with ***.
55
+
56
+ ---
57
+
58
+ ## 1. Why this dataset?
59
+
60
+ Power-system RL benchmarks have historically suffered from three gaps:
61
+
62
+ 1. **Synthetic load curves** that do not capture the multi-scale structure of real demand (sub-hour ramping, weekly seasonality, event-driven spikes).
63
+ 2. **Inconsistent grid topologies** scattered across `MATPOWER`, `pandapower`, OpenDSS, IEEE PES test feeders, etc., each with its own conventions.
64
+ 3. **No canonical link** between high-fidelity demand traces and a fixed set of grid topologies, making cross-paper comparison difficult.
65
+
66
+ PowerZoo Dataset addresses all three by shipping (a) cleaned, parquet-encoded traces from public regulators and cloud providers under a single schema, (b) a unified Python representation of standard transmission and distribution test cases, and (c) lightweight JSON manifests that wire the two together for reproducible experiment configuration.
67
+
68
+ ---
69
+
70
+ ## 2. Repository layout
71
+
72
+ ```
73
+ PowerZooDataset/
74
+ ├── README.md # this file
75
+ ├── parquet/ # harmonised time-series traces
76
+ │ ├── *.parquet # primary data files
77
+ │ └── *.json # per-file provenance metadata (rows, dtypes, source URL, generation timestamp)
78
+ ├── manifests/ # loader manifests (column maps, derivations, normalisation)
79
+ │ └── <dataset_id>.json
80
+ └── powergrid_case/ # electrical-network case definitions (Python)
81
+ ├── CaseBase.py # ClearCase base class + ext. DataFrame
82
+ ├── transmission/ # HV / sub-transmission test systems
83
+ │ ├── Case5.py, Case14.py, Case29GB.py, Case118.py,
84
+ │ ├── Case300.py, Case552GB.py, Case1354pegase.py, Case2383wp.py
85
+ │ └── __init__.py
86
+ └── distribution/ # MV distribution test feeders
87
+ ├── Case33bw.py, Case118zh.py, Case123.py, Case141.py,
88
+ ├── Case533mt_hi.py, Case533mt_lo.py
89
+ └── __init__.py
90
+ ```
91
+
92
+ ### 2.1 Parquet traces
93
+
94
+
95
+ | File | Domain | Resolution | Rows | Columns | Bytes |
96
+ | ---------------------------------------------------- | --------------------------------------------- | ---------- | --------- | ------- | ------- |
97
+ | `AEMO_5min_Demand_2025_2026.parquet` | AU NEM demand (5 regions) | 5 min | 737,400 | 5 | 6.5 MB |
98
+ | `AEMO_Forecast_vs_Actual_2025.parquet` | AU NEM probabilistic forecast vs. actual | 30 min | 89,145 | 10 | 1.6 MB |
99
+ | `Ausgrid_Zone_Substation_FY25_imputed_15min.parquet` | NSW zone substations (175 sites) | 15 min | 6,095,040 | 4 | 60 MB |
100
+ | `GB_NESO_Demand_2009_2025_30min.parquet` | GB NESO historical demand | 30 min | 285,454 | 22 | 4.7 MB |
101
+ | `GB_Forecast_Actual_Demand_2023_2025_30min.parquet` | GB day-ahead forecast vs. actual | 30 min | 48,283 | 3 | 0.8 MB |
102
+ | `GB_Gen_by_Type_2016_2025_30min.parquet` | GB generation by fuel type | 30 min | 180,048 | 13 | 6.2 MB |
103
+ | `MID_GB_30min_aligned_to_gen.parquet` | GB APX/N2EX mid prices & volumes | 30 min | 48,283 | 6 | 0.8 MB |
104
+ | `alibaba_dc_2018_300s.parquet` | Alibaba production cluster (CPU/mem/net/disk) | 5 min | 2,243 | 6 | 0.1 MB |
105
+ | `alibaba_gpu_2020_300s.parquet` | Alibaba GPU cluster (GPU/CPU util) | 5 min | 415 | 3 | <0.1 MB |
106
+ | `azure_dc_v2_300s.parquet` | Azure VM trace v2 (CPU, assigned memory) | 5 min | 8,640 | 3 | 0.2 MB |
107
+ | `google_dc_2019_300s.parquet` | Google Borg 2019 (CPU/mem/CPI) | 5 min | 8,064 | 5 | 0.3 MB |
108
+
109
+
110
+ Each `*.parquet` ships with a sibling `*.json` capturing source URL, source organisation, generation timestamp, exact column dtypes, region/category enumerations and (where applicable) timezone conventions.
111
+
112
+ ### 2.2 Manifests
113
+
114
+ Manifests in `manifests/` are the contract used by PowerZoo / PowerZooJax loaders. A manifest declares:
115
+
116
+ - `parquet_file` and the matching `metadata_json`
117
+ - `column_map`: rename rules from raw column → canonical schema (e.g. `OPERATIONAL_DEMAND → load.actual_mw`)
118
+ - `index_map`: which raw columns serve as `datetime` / `region` / `issue_time` / `target_time`
119
+ - `derived`: closed-form derivations from raw columns (e.g. `wind.available_mw = "Wind Offshore + Wind Onshore"`)
120
+ - `normalize`: per-channel scaling factors applied at load time
121
+ - `time_mode`: `calendar` (absolute UTC) or `profile` (cyclical, anchored to `data_epoch`)
122
+ - `region_values`, `date_range`, `source_url`, `source_organization`
123
+
124
+ The 11 manifests cover every parquet file shipped here. Note that `gb_neso_demand` uses a two-column index (`SETTLEMENT_DATE` + `SETTLEMENT_PERIOD` 1–50) instead of a single `datetime` column — the manifest's `datetime_recipe` field documents the exact reconstruction (Europe/London tz-localise then convert to UTC; SP=49–50 absorb the autumn clock-change repeat).
125
+
126
+ ### 2.3 Power-grid case files
127
+
128
+ `powergrid_case/` contains a unified Python representation for both transmission and distribution test systems. Every case subclasses `ClearCase` and exposes four `pandas.DataFrame` tables in MATPOWER-compatible units (MW, MVAr, p.u.):
129
+
130
+ - `nodes` — `id, type (1=PQ / 2=PV / 3=Ref), Pd, Qd, x, y`
131
+ - `units` — `id, bus_id, mc_a, mc_b, mc_c, p_max, p_min` (quadratic cost + capacity)
132
+ - `lines` — `id, from, to, x, floor, cap` (reactance + thermal limits)
133
+ - `loads` — `id, bus_id, mc_a, mc_b, mc_c, d_max, d_min` (price-responsive demand)
134
+
135
+ Each file declares `BUS_COUNT`, `VOLTAGE_LEVEL`, `SOURCE` and `DESCRIPTION` as class-level metadata. The values below are reproduced verbatim from those declarations (so the file itself is the source of truth):
136
+
137
+
138
+ | File | Voltage | Buses | `SOURCE` | `DESCRIPTION` |
139
+ | -------------------------------- | ------- | ----- | -------- | ------------------------------------------------------------------ |
140
+ | `transmission/Case5.py` | HV | 5 | MATPOWER | IEEE 5-bus test system |
141
+ | `transmission/Case14.py` | HV | 14 | MATPOWER | IEEE 14-bus test system |
142
+ | `transmission/Case29GB.py` | HV | 29 | custom | GB reduced 29-bus transmission network |
143
+ | `transmission/Case118.py` | HV | 118 | MATPOWER | IEEE 118-bus test system |
144
+ | `transmission/Case300.py` | HV | 300 | MATPOWER | IEEE 300-bus test system |
145
+ | `transmission/Case552GB.py` | HV | 552 | GB | Great Britain 552-bus transmission (distinct from 29-bus Case29GB) |
146
+ | `transmission/Case1354pegase.py` | HV | 1354 | MATPOWER | European PEGASE 1354-bus system |
147
+ | `transmission/Case2383wp.py` | HV | 2383 | MATPOWER | Polish 2383-bus winter peak system |
148
+ | `distribution/Case33bw.py` | MV | 33 | MATPOWER | IEEE 33-bus Baran & Wu radial distribution |
149
+ | `distribution/Case118zh.py` | MV | 118 | MATPOWER | 118-bus Zhang distribution system |
150
+ | `distribution/Case123.py` | MV | 123 | MATPOWER | IEEE 123-bus three-phase distribution |
151
+ | `distribution/Case141.py` | MV | 141 | MATPOWER | 141-bus Caracas distribution system (Khodr et al., EPSR 2008) |
152
+ | `distribution/Case533mt_hi.py` | MV | 533 | MATPOWER | 533-bus Swedish distribution (high load) |
153
+ | `distribution/Case533mt_lo.py` | MV | 533 | MATPOWER | 533-bus Swedish distribution (low load) |
154
+
155
+
156
+ ---
157
+
158
+ ## 3. Loading
159
+
160
+ ### 3.1 Direct parquet load (no extra dependency on PowerZoo)
161
+
162
+ ```python
163
+ import pandas as pd
164
+ from huggingface_hub import hf_hub_download
165
+
166
+ path = hf_hub_download(
167
+ repo_id="PowerZooJax/PowerZooDataset",
168
+ repo_type="dataset",
169
+ filename="parquet/AEMO_5min_Demand_2025_2026.parquet",
170
+ )
171
+ df = pd.read_parquet(path)
172
+ print(df.head())
173
+ ```
174
+
175
+ ### 3.2 Via `datasets` (per-config)
176
+
177
+ ```python
178
+ from datasets import load_dataset
179
+
180
+ ds = load_dataset(
181
+ "PowerZooJax/PowerZooDataset",
182
+ name="aemo_5min_demand",
183
+ split="train",
184
+ )
185
+ ```
186
+
187
+ ### 3.3 Via the PowerZooJax `DataLoader`
188
+
189
+ If you have the (separately released) benchmark package installed, instantiate `DataLoader` with this repository's `parquet/` and `manifests/` directories:
190
+
191
+ ```python
192
+ from powerzoojax.data import DataLoader
193
+
194
+ loader = DataLoader(
195
+ data_dir="/path/to/PowerZooDataset/parquet",
196
+ manifest_dir="/path/to/PowerZooDataset/manifests",
197
+ )
198
+ print(loader.list_available_datasets())
199
+ df = loader.load_actual_series("aemo_5min_demand")
200
+ ```
201
+
202
+ ### 3.4 Power-grid cases
203
+
204
+ ```python
205
+ from powerzoo.case.distribution.Case141 import Case141
206
+ case = Case141()
207
+ case.check()
208
+ case.get_node_ptdf()
209
+ ```
210
+
211
+ ---
212
+
213
+ ## 4. Schema conventions
214
+
215
+ - **Time stamps.** Calendar-mode parquet files store timestamps as `datetime64[ns, UTC]`, with the exception of `GB_NESO_Demand_2009_2025_30min.parquet`, which uses two columns (`SETTLEMENT_DATE` + `SETTLEMENT_PERIOD`) — see the `datetime_recipe` in `manifests/gb_neso_demand.json`. The Ausgrid metadata explicitly declares `timezone_local = "Australia/Sydney"` and `timezone_stored = "UTC"`; for the other calendar sources, only the stored UTC representation is documented in metadata.
216
+ - **Profile-mode traces.** The data-centre traces (Alibaba / Azure / Google) are tagged `time_mode = "profile"` and `cyclical = true` in their manifests, anchored to a `data_epoch` (Alibaba DC: `2018-01-06`, Alibaba GPU: `2020-07-01`, Azure: `2019-01-01`, Google: `2019-05-01`). They are intended as periodic exogenous signals, not absolute calendar series.
217
+ - **Imputation.** `Ausgrid_Zone_Substation_FY25_imputed_15min.parquet` contains imputed values (as indicated by its filename suffix and source path); the imputation method is not documented inside the metadata shipped here. Users requiring raw observations should pull from the upstream Ausgrid release.
218
+ - **Units.** Power columns in the parquet traces are in MW. The GB market-mid file uses prices in `mid_price_`* columns (the upstream Elexon convention is £/MWh; consult the source URL for any unit caveats). Data-centre utilisation columns are 0–100 (percent) before the manifest's `normalize` factor is applied.
219
+
220
+ ---
221
+
222
+ ## 5. Source acknowledgements & licensing
223
+
224
+ This repository **redistributes derivative datasets** built from publicly accessible upstream releases. Each upstream is governed by its own terms; users are responsible for complying with them. The `source_url` and `source_organization` fields in every `parquet/*.json` and `manifests/*.json` give the canonical pointer.
225
+
226
+
227
+ | Trace | Upstream | Original portal |
228
+ | ------------------------------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
229
+ | AEMO 5-min demand & POE forecasts | Australian Energy Market Operator | [https://visualisations.aemo.com.au/aemo/nemweb/](https://visualisations.aemo.com.au/aemo/nemweb/) |
230
+ | Ausgrid zone-substation load | Ausgrid | [https://www.ausgrid.com.au/Industry/Our-Research/Data-to-share/Distribution-zone-substation-data](https://www.ausgrid.com.au/Industry/Our-Research/Data-to-share/Distribution-zone-substation-data) |
231
+ | GB demand actual & day-ahead forecast | Elexon (BMRS) | [https://data.elexon.co.uk/bmrs/api/v1](https://data.elexon.co.uk/bmrs/api/v1) |
232
+ | GB generation by fuel type | Elexon (BMRS) | [https://data.elexon.co.uk/bmrs/api/v1/generation/actual/per-type](https://data.elexon.co.uk/bmrs/api/v1/generation/actual/per-type) |
233
+ | GB historical demand 2009–2025 | National Energy System Operator (NESO) | [https://www.neso.energy/data-portal/historic-demand-data](https://www.neso.energy/data-portal/historic-demand-data) |
234
+ | Alibaba cluster trace 2018 | Alibaba Group | [https://github.com/alibaba/clusterdata/tree/master/cluster-trace-v2018](https://github.com/alibaba/clusterdata/tree/master/cluster-trace-v2018) |
235
+ | Alibaba GPU trace 2020 | Alibaba Group | [https://github.com/alibaba/clusterdata/tree/master/cluster-trace-gpu-v2020](https://github.com/alibaba/clusterdata/tree/master/cluster-trace-gpu-v2020) |
236
+ | Azure public dataset v2 | Microsoft | [https://github.com/Azure/AzurePublicDataset](https://github.com/Azure/AzurePublicDataset) |
237
+ | Google cluster data 2019 | Google | [https://github.com/google/cluster-data](https://github.com/google/cluster-data) |
238
+
239
+
240
+ The packaging artefacts authored for this benchmark (the manifest schema, case-file Python representations, schema harmonisation logic) are intended to be released under a permissive open-source licence at camera-ready time; the underlying parquet data inherits the upstream licence in every case. **Do not assume any single licence applies to the data themselves.** When in doubt, redownload from the upstream URL above and treat that copy as authoritative.
241
+
242
+ No personally identifiable information is present in any trace; demand and generation series are aggregated at substation, regional or national level.
243
+
244
+ ---
245
+
246
+ ## 6. Intended use & limitations
247
+
248
+ - **Intended use.** Reinforcement-learning research, load / generation forecasting, market-clearing simulation, OPF benchmarking, distribution-system control, data-centre power-shaping research, demand-response studies.
249
+ - **Out-of-scope.** Short-term operational decisions for real grids, retail tariff design, settlement of real markets. The forecasts and prices included are historical educational artefacts, not signals for live trading.
250
+ - **Known limitations.**
251
+ - Several calendar-mode traces extend slightly past the `date_range` declared in their manifest (e.g. AEMO 5-min runs through 2026-02-12; GB demand/generation through April 2026). The manifest `date_range` is a planning bound, not a strict assertion of file extent — consult the parquet itself for the authoritative range.
252
+ - The Ausgrid trace is imputed; the imputation procedure is not documented in this repository.
253
+ - The data-centre traces are stored at 5-minute (300 s) resolution. The upstream releases provide additional fields and finer resolutions; this repository ships only the columns mapped by each manifest.
254
+ - The grid-case files use parameters consistent with the cited source systems but are not guaranteed to be byte-identical to any specific MATPOWER / IEEE PES / PEGASE release; they should not be used for compliance studies of real networks.
255
+
256
+ ---
257
+
258
+ ## 7. File integrity
259
+
260
+ To regenerate provenance metadata locally:
261
+
262
+ ```bash
263
+ python -c "
264
+ import pyarrow.parquet as pq, glob, os
265
+ for p in sorted(glob.glob('parquet/*.parquet')):
266
+ m = pq.read_metadata(p)
267
+ print(f'{os.path.basename(p):60s} rows={m.num_rows:>10,} cols={m.num_columns:>3} bytes={os.path.getsize(p):>10,}')
268
+ "
269
+ ```
270
+
271
+ Expected output is reproduced in §2.1.
272
+
273
+ ---
274
+
275
+ ## 8. Changelog
276
+
277
+ - **v0.1 (***)** — initial public release: 11 harmonised parquet traces, 11 loader manifests, 14 grid-case files (8 transmission + 6 distribution).
278
+
manifests/aemo_5min_demand.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "aemo_5min_demand",
3
+ "source": "aemo",
4
+ "data_type": "actual_series",
5
+ "time_mode": "calendar",
6
+ "resolution": "5min",
7
+ "parquet_file": "AEMO_5min_Demand_2025_2026.parquet",
8
+ "metadata_json": "AEMO_5min_Demand_2025_2026.json",
9
+ "column_map": {
10
+ "OPERATIONAL_DEMAND": "load.actual_mw"
11
+ },
12
+ "index_map": {
13
+ "INTERVAL_DATETIME": "datetime",
14
+ "REGIONID": "region"
15
+ },
16
+ "derived": {},
17
+ "normalize": {},
18
+ "data_epoch": null,
19
+ "cyclical": false,
20
+ "region_values": ["NSW1", "QLD1", "SA1", "TAS1", "VIC1"],
21
+ "date_range": ["2024-09-18", "2026-12-31"],
22
+ "source_url": "https://visualisations.aemo.com.au/aemo/nemweb/index.html#",
23
+ "source_organization": "Australian Energy Market Operator (AEMO)"
24
+ }
manifests/aemo_forecast.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "aemo_forecast",
3
+ "source": "aemo",
4
+ "data_type": "forecast_panel",
5
+ "time_mode": "calendar",
6
+ "resolution": "30min",
7
+ "parquet_file": "AEMO_Forecast_vs_Actual_2025.parquet",
8
+ "metadata_json": "AEMO_Forecast_vs_Actual_2025.json",
9
+ "column_map": {
10
+ "OPERATIONAL_DEMAND_POE10": "load.forecast_p10_mw",
11
+ "OPERATIONAL_DEMAND_POE50": "load.forecast_p50_mw",
12
+ "OPERATIONAL_DEMAND_POE90": "load.forecast_p90_mw",
13
+ "OPERATIONAL_DEMAND": "load.actual_mw"
14
+ },
15
+ "index_map": {
16
+ "REGIONID": "region",
17
+ "FORECAST_DATETIME": "issue_time",
18
+ "INTERVAL_DATETIME": "target_time"
19
+ },
20
+ "derived": {},
21
+ "normalize": {},
22
+ "data_epoch": null,
23
+ "cyclical": false,
24
+ "region_values": ["NSW1", "QLD1", "SA1", "TAS1", "VIC1"],
25
+ "date_range": ["2025-01-26", "2025-12-31"],
26
+ "source_url": "https://visualisations.aemo.com.au/aemo/nemweb/index.html#",
27
+ "source_organization": "Australian Energy Market Operator (AEMO)"
28
+ }
manifests/alibaba_dc_2018.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "alibaba_dc_2018",
3
+ "source": "alibaba",
4
+ "data_type": "actual_series",
5
+ "time_mode": "profile",
6
+ "resolution": "300s",
7
+ "parquet_file": "alibaba_dc_2018_300s.parquet",
8
+ "column_map": {
9
+ "cpu_util_percent": "datacenter.cpu_util",
10
+ "mem_util_percent": "datacenter.mem_util",
11
+ "net_in": "datacenter.net_in",
12
+ "net_out": "datacenter.net_out",
13
+ "disk_io_percent": "datacenter.disk_io"
14
+ },
15
+ "index_map": {
16
+ "time_stamp": "datetime"
17
+ },
18
+ "derived": {},
19
+ "normalize": {
20
+ "datacenter.cpu_util": 100,
21
+ "datacenter.mem_util": 100,
22
+ "datacenter.net_in": 100,
23
+ "datacenter.net_out": 100,
24
+ "datacenter.disk_io": 100
25
+ },
26
+ "data_epoch": "2018-01-06T00:00:00",
27
+ "cyclical": true,
28
+ "region_values": [],
29
+ "date_range": null,
30
+ "metadata_json": null,
31
+ "source_url": "https://github.com/alibaba/clusterdata/tree/master/cluster-trace-v2018",
32
+ "source_organization": "Alibaba Group"
33
+ }
manifests/alibaba_gpu_2020.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "alibaba_gpu_2020",
3
+ "source": "alibaba",
4
+ "data_type": "actual_series",
5
+ "time_mode": "profile",
6
+ "resolution": "300s",
7
+ "parquet_file": "alibaba_gpu_2020_300s.parquet",
8
+ "column_map": {
9
+ "gpu_util_percent": "datacenter.gpu_util",
10
+ "cpu_util_percent": "datacenter.cpu_util"
11
+ },
12
+ "index_map": {
13
+ "time_stamp": "datetime"
14
+ },
15
+ "derived": {},
16
+ "normalize": {
17
+ "datacenter.gpu_util": 100,
18
+ "datacenter.cpu_util": 100
19
+ },
20
+ "data_epoch": "2020-07-01T00:00:00",
21
+ "cyclical": true,
22
+ "region_values": [],
23
+ "date_range": null,
24
+ "metadata_json": null,
25
+ "source_url": "https://github.com/alibaba/clusterdata/tree/master/cluster-trace-gpu-v2020",
26
+ "source_organization": "Alibaba Group"
27
+ }
manifests/ausgrid_zone_substation_fy25_imputed.json ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ausgrid_zone_substation_fy25_imputed",
3
+ "source": "ausgrid",
4
+ "data_type": "actual_series",
5
+ "time_mode": "calendar",
6
+ "resolution": "15min",
7
+ "parquet_file": "Ausgrid_Zone_Substation_FY25_imputed_15min.parquet",
8
+ "column_map": {
9
+ "load_mw": "load.actual_mw"
10
+ },
11
+ "index_map": {
12
+ "interval_start": "datetime",
13
+ "zone_substation": "region"
14
+ },
15
+ "derived": {},
16
+ "normalize": {},
17
+ "data_epoch": null,
18
+ "cyclical": false,
19
+ "region_values": [
20
+ "Aberdeen 66_11kV",
21
+ "Adamstown 132_11kV",
22
+ "Argenton 132_11kV",
23
+ "Auburn 33_11kV",
24
+ "Avoca 66_11kV",
25
+ "Avondale 33_11kV",
26
+ "Baerami 33_11kV",
27
+ "Balgowlah North 132_11kV",
28
+ "Bankstown 132_11kV",
29
+ "Bass Hill 33_11kV",
30
+ "Beacon Hill 33_11kV",
31
+ "Belmore Park 132_11kV",
32
+ "Belrose 33_11kV",
33
+ "Berkeley Vale 132_11kV",
34
+ "Berowra 132_11kV",
35
+ "Blakehurst 33_11kV",
36
+ "Botany 33_11kV",
37
+ "Brandy Hill 132_11kV",
38
+ "Branxton 66_11kV",
39
+ "Broadmeadow 132_11kV",
40
+ "Brookvale 33_11kV",
41
+ "Burwood 132_11kV",
42
+ "Campbell St 132_11kV",
43
+ "Camperdown 33_11kV",
44
+ "Campsie 33_11kV",
45
+ "Cardiff 33_11kV",
46
+ "Careel Bay 33_11kV",
47
+ "Caringbah 33_11kV",
48
+ "Castle Cove 132_11kV",
49
+ "Cessnock South 33_11kV",
50
+ "Charlestown 132_11kV",
51
+ "Charmhaven 132_11kV",
52
+ "Chatswood 33_11kV",
53
+ "City Central 132_11kV",
54
+ "City North 132_11kV",
55
+ "City South 132_11kV",
56
+ "Clovelly 132_11kV",
57
+ "Concord 33_11kV",
58
+ "Cronulla 132_11kV",
59
+ "Croudace Bay 33_11kV",
60
+ "Crows Nest 132_11kV",
61
+ "Croydon 132_11kV",
62
+ "Dalley St 132_11kV",
63
+ "Darling Harbour 132_11kV",
64
+ "Darlinghurst 33_11kV",
65
+ "Dee Why West 33_11kV",
66
+ "Denman 66_11kV",
67
+ "Double Bay 132_11kV",
68
+ "Drummoyne 132_11kV",
69
+ "Edgeworth 33_11kV",
70
+ "Empire Bay 66_11kV",
71
+ "Engadine 132_11kV",
72
+ "Epping 66_11kV",
73
+ "Erina 66_11kV",
74
+ "Flemington 132_11kV",
75
+ "Galston 132_11kV",
76
+ "Gateshead 33_11kV",
77
+ "Gore Hill 33_11kV",
78
+ "Green Square 132_11kV",
79
+ "Greenacre 132_11kV",
80
+ "Gwawley Bay 132_11kV",
81
+ "Harbord 33_11kV",
82
+ "Homebush Bay 132_11kV",
83
+ "Hornsby 132_11kV",
84
+ "Hunters Hill 66_11kV",
85
+ "Hurstville North 132_11kV",
86
+ "Jannali 33_11kV",
87
+ "Jesmond 132_11kV",
88
+ "Jewells 33_11kV",
89
+ "Killarney 33_11kV",
90
+ "Kingsford 132_11kV",
91
+ "Kirrawee 132_11kV",
92
+ "Kogarah 132_11kV",
93
+ "Kotara 33_11kV",
94
+ "Kurnell South 132_11kV",
95
+ "Kurri 132_11kV",
96
+ "Lake Munmorah 132_11kV",
97
+ "Leichhardt 132_11kV",
98
+ "Leightonfield 33_11kV",
99
+ "Lemington 66_11kV",
100
+ "Lidcombe 33_11kV",
101
+ "Lindfield 33_11kV",
102
+ "Lisarow 33_11kV",
103
+ "Long Jetty 66_11kV",
104
+ "Lucas Heights 33_11kV",
105
+ "Macquarie Park 132_11kV",
106
+ "Maitland 33_11kV",
107
+ "Manly 33_11kV",
108
+ "Maroubra 132_11kV",
109
+ "Marrickville 132_11kV",
110
+ "Maryland 132_11kV",
111
+ "Mascot 33_11kV",
112
+ "Matraville 33_11kV",
113
+ "Mayfield West 132_11kV",
114
+ "Meadowbank 132_11kV",
115
+ "Medowie 33_11kV",
116
+ "Menai 132_11kV",
117
+ "Merriwa 33_11kV",
118
+ "Metford 33_11kV",
119
+ "Milperra 132_11kV",
120
+ "Miranda 33_11kV",
121
+ "Mitchell Line 66_11kV",
122
+ "Mitchells Flat 66_11kV",
123
+ "Mona Vale 33_11kV",
124
+ "Moonan 33_11kV",
125
+ "Morisset 132_11kV",
126
+ "Mortdale 33_11kV",
127
+ "Mosman 132_11kV",
128
+ "Mt Hutton 33_11kV",
129
+ "Mt Thorley 66_11kV",
130
+ "Muswellbrook 33_11kV",
131
+ "Narrabeen 33_11kV",
132
+ "Nelson Bay 33_11kV",
133
+ "New Lambton 33_11kV",
134
+ "Newcastle CBD 33_11kV",
135
+ "Newdell 66_11kV",
136
+ "Newport 33_11kV",
137
+ "Noraville 33_11kV",
138
+ "North Head 33_11kV",
139
+ "North Sydney 132_11kV",
140
+ "Nulkaba 33_11kV",
141
+ "Olympic Park 132_11kV",
142
+ "Paddington 33_11kV",
143
+ "Paxton 33_11kV",
144
+ "Peats Ridge 33_11kV",
145
+ "Pelican 33_11kV",
146
+ "Pennant Hills 132_11kV",
147
+ "Port Botany 33_11kV",
148
+ "Potts Hill 132_11kV",
149
+ "Punchbowl 33_11kV",
150
+ "Pymble 33_11kV",
151
+ "RNS Hospital 132_11kV",
152
+ "Rathmines 132_11kV",
153
+ "Raymond Terr NEW 33_11kV",
154
+ "Revesby 132_11kV",
155
+ "Riverwood 33_11kV",
156
+ "Rockdale 132_11kV",
157
+ "Rose Bay 132_11kV",
158
+ "Rothbury 132_11kV",
159
+ "Rouchel 33_11kV",
160
+ "Rutherford 33_11kV",
161
+ "Sans Souci 33_11kV",
162
+ "Scone 66_11kV",
163
+ "Sefton 132_11kV",
164
+ "Singleton 66_11kV",
165
+ "Singleton North 66_11kV",
166
+ "Somersby 132_11kV",
167
+ "St Ives 33_11kV",
168
+ "St Peters 132_11kV",
169
+ "Stockton 33_11kV",
170
+ "Strathfield South 132_11kV",
171
+ "Summer Hill 33_11kV",
172
+ "Surry Hills 33_11kV",
173
+ "Swansea 33_11kV",
174
+ "Tanilba Bay 33_11kV",
175
+ "Tarro 33_11kV",
176
+ "Telarah 33_11kV",
177
+ "Terrey Hills 33_11kV",
178
+ "Thornton 33_11kV",
179
+ "Tighes Hill 33_11kV",
180
+ "Tomago 33_11kV",
181
+ "Tomalpin 33_11kV",
182
+ "Tomaree 33_11kV",
183
+ "Top Ryde 132_11kV",
184
+ "Toronto West 132_11kV",
185
+ "Turramurra 33_11kV",
186
+ "Umina 66_11kV",
187
+ "Vales Point 33_11kV",
188
+ "Wamberal 132_11kV",
189
+ "Waverley 132_11kV",
190
+ "West Gosford 132_11kV",
191
+ "Williamtown 33_11kV",
192
+ "Woy Woy 66_11kV",
193
+ "Wyong 132_11kV",
194
+ "Zetland 132_11kV"
195
+ ],
196
+ "date_range": [
197
+ "2024-04-30",
198
+ "2025-04-29"
199
+ ],
200
+ "metadata_json": "Ausgrid_Zone_Substation_FY25_imputed_15min.json",
201
+ "source_url": "https://www.ausgrid.com.au/Industry/Our-Research/Data-to-share/Distribution-zone-substation-data",
202
+ "source_organization": "Ausgrid"
203
+ }
manifests/azure_dc_v2.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "azure_dc_v2",
3
+ "source": "azure",
4
+ "data_type": "actual_series",
5
+ "time_mode": "profile",
6
+ "resolution": "300s",
7
+ "parquet_file": "azure_dc_v2_300s.parquet",
8
+ "column_map": {
9
+ "cpu_usage": "datacenter.cpu_util",
10
+ "assigned_mem": "datacenter.mem_util"
11
+ },
12
+ "index_map": {
13
+ "time_stamp": "datetime"
14
+ },
15
+ "derived": {},
16
+ "normalize": {},
17
+ "data_epoch": "2019-01-01T00:00:00",
18
+ "cyclical": true,
19
+ "region_values": [],
20
+ "date_range": null,
21
+ "metadata_json": null,
22
+ "source_url": "https://github.com/Azure/AzurePublicDataset/blob/master/AzurePublicDatasetV2.md",
23
+ "source_organization": "Microsoft Corporation"
24
+ }
manifests/gb_forecast_actual_demand.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "gb_forecast_actual_demand",
3
+ "source": "gb",
4
+ "data_type": "actual_series",
5
+ "time_mode": "calendar",
6
+ "resolution": "30min",
7
+ "parquet_file": "GB_Forecast_Actual_Demand_2023_2025_30min.parquet",
8
+ "column_map": {
9
+ "Actual": "load.actual_mw",
10
+ "DAForecast": "load.forecast_da_mw"
11
+ },
12
+ "index_map": {
13
+ "startTime": "datetime"
14
+ },
15
+ "derived": {},
16
+ "normalize": {},
17
+ "data_epoch": null,
18
+ "cyclical": false,
19
+ "region_values": [],
20
+ "date_range": ["2023-07-05", "2026-04-05"],
21
+ "metadata_json": "GB_Forecast_Actual_Demand_2023_2025_30min.json",
22
+ "source_urls": [
23
+ "https://data.elexon.co.uk/bmrs/api/v1/demand/actual/total",
24
+ "https://data.elexon.co.uk/bmrs/api/v1/forecast/demand/total/day-ahead"
25
+ ],
26
+ "source_organization": "Elexon Limited"
27
+ }
manifests/gb_gen_by_type.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "gb_gen_by_type",
3
+ "source": "gb",
4
+ "data_type": "actual_series",
5
+ "time_mode": "calendar",
6
+ "resolution": "30min",
7
+ "parquet_file": "GB_Gen_by_Type_2016_2025_30min.parquet",
8
+ "column_map": {
9
+ "Solar": "solar.available_mw"
10
+ },
11
+ "index_map": {
12
+ "startTime": "datetime"
13
+ },
14
+ "derived": {
15
+ "wind.available_mw": "Wind Offshore + Wind Onshore"
16
+ },
17
+ "normalize": {},
18
+ "data_epoch": null,
19
+ "cyclical": false,
20
+ "region_values": [],
21
+ "date_range": ["2016-01-01", "2026-04-08"],
22
+ "metadata_json": "GB_Gen_by_Type_2016_2025_30min.json",
23
+ "source_url": "https://data.elexon.co.uk/bmrs/api/v1/generation/actual/per-type",
24
+ "source_organization": "Elexon Limited"
25
+ }
manifests/gb_market_mid.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "gb_market_mid",
3
+ "source": "gb",
4
+ "data_type": "actual_series",
5
+ "time_mode": "calendar",
6
+ "resolution": "30min",
7
+ "parquet_file": "MID_GB_30min_aligned_to_gen.parquet",
8
+ "column_map": {
9
+ "mid_price_APXMIDP": "market.mid_price_apx",
10
+ "mid_price_N2EXMIDP": "market.mid_price_n2ex",
11
+ "mid_volume_APXMIDP": "market.mid_volume_apx",
12
+ "mid_volume_N2EXMIDP": "market.mid_volume_n2ex"
13
+ },
14
+ "index_map": {
15
+ "startTime": "datetime"
16
+ },
17
+ "derived": {},
18
+ "normalize": {},
19
+ "data_epoch": null,
20
+ "cyclical": false,
21
+ "region_values": [],
22
+ "date_range": ["2023-07-05", "2026-04-05"],
23
+ "metadata_json": "MID_GB_30min_aligned_to_gen.json"
24
+ }
manifests/gb_neso_demand.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "gb_neso_demand",
3
+ "source": "gb",
4
+ "data_type": "actual_series",
5
+ "time_mode": "calendar",
6
+ "resolution": "30min",
7
+ "parquet_file": "GB_NESO_Demand_2009_2025_30min.parquet",
8
+ "metadata_json": "GB_NESO_Demand_2009_2025_30min.json",
9
+ "column_map": {
10
+ "ND": "load.actual_mw",
11
+ "TSD": "load.tsd_mw",
12
+ "ENGLAND_WALES_DEMAND": "load.england_wales_mw",
13
+ "EMBEDDED_WIND_GENERATION": "wind.embedded_mw",
14
+ "EMBEDDED_WIND_CAPACITY": "wind.embedded_capacity_mw",
15
+ "EMBEDDED_SOLAR_GENERATION": "solar.embedded_mw",
16
+ "EMBEDDED_SOLAR_CAPACITY": "solar.embedded_capacity_mw",
17
+ "NON_BM_STOR": "storage.non_bm_mw",
18
+ "PUMP_STORAGE_PUMPING": "storage.pump_mw",
19
+ "IFA_FLOW": "interconnector.ifa_mw",
20
+ "IFA2_FLOW": "interconnector.ifa2_mw",
21
+ "BRITNED_FLOW": "interconnector.britned_mw",
22
+ "MOYLE_FLOW": "interconnector.moyle_mw",
23
+ "EAST_WEST_FLOW": "interconnector.east_west_mw",
24
+ "NEMO_FLOW": "interconnector.nemo_mw",
25
+ "NSL_FLOW": "interconnector.nsl_mw",
26
+ "ELECLINK_FLOW": "interconnector.eleclink_mw",
27
+ "VIKING_FLOW": "interconnector.viking_mw",
28
+ "GREENLINK_FLOW": "interconnector.greenlink_mw",
29
+ "SCOTTISH_TRANSFER": "interconnector.scottish_transfer_mw"
30
+ },
31
+ "index_map": {
32
+ "SETTLEMENT_DATE": "settlement_date",
33
+ "SETTLEMENT_PERIOD": "settlement_period"
34
+ },
35
+ "datetime_recipe": "datetime_utc = tz_localize(SETTLEMENT_DATE + (SETTLEMENT_PERIOD - 1) * 30min, tz='Europe/London', ambiguous='infer', nonexistent='shift_forward').tz_convert('UTC'); SETTLEMENT_PERIOD ranges 1..50 to absorb GB DST clock changes (46 on spring-forward day, 50 on fall-back day).",
36
+ "derived": {},
37
+ "normalize": {},
38
+ "data_epoch": null,
39
+ "cyclical": false,
40
+ "region_values": [],
41
+ "date_range": ["2009-01-01", "2025-04-13"],
42
+ "source_url": "https://www.neso.energy/data-portal/historic-demand-data",
43
+ "source_organization": "National Energy System Operator (NESO)"
44
+ }
manifests/google_dc_2019.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "google_dc_2019",
3
+ "source": "google",
4
+ "data_type": "actual_series",
5
+ "time_mode": "profile",
6
+ "resolution": "300s",
7
+ "parquet_file": "google_dc_2019_300s.parquet",
8
+ "column_map": {
9
+ "cpu_util": "datacenter.cpu_util",
10
+ "mem_util": "datacenter.mem_util",
11
+ "assigned_mem": "datacenter.assigned_mem",
12
+ "cycles_per_instruction": "datacenter.cycles_per_instruction"
13
+ },
14
+ "index_map": {
15
+ "time_stamp": "datetime"
16
+ },
17
+ "derived": {},
18
+ "normalize": {},
19
+ "data_epoch": "2019-05-01T00:00:00",
20
+ "cyclical": true,
21
+ "region_values": [],
22
+ "date_range": null,
23
+ "metadata_json": null,
24
+ "source_url": "https://github.com/google/cluster-data/blob/master/ClusterData2019.md",
25
+ "source_organization": "Google LLC"
26
+ }
parquet/AEMO_5min_Demand_2025_2026.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_file": "AEMO_5min_Demand_2025_2026.csv",
3
+ "parquet_file": "AEMO_5min_Demand_2025_2026.parquet",
4
+ "source_url": "https://visualisations.aemo.com.au/aemo/nemweb/index.html#",
5
+ "source_organization": "Australian Energy Market Operator (AEMO)",
6
+ "generated_at": "2026-03-25T16:17:26.313070",
7
+ "shape": {
8
+ "rows": 737400,
9
+ "columns": 5
10
+ },
11
+ "columns": [
12
+ "REGIONID",
13
+ "INTERVAL_DATETIME",
14
+ "OPERATIONAL_DEMAND",
15
+ "OPERATIONAL_DEMAND_ADJUSTMENT",
16
+ "WDR_ESTIMATE"
17
+ ],
18
+ "dtypes": {
19
+ "REGIONID": "object",
20
+ "INTERVAL_DATETIME": "datetime64[ns, UTC]",
21
+ "OPERATIONAL_DEMAND": "int64",
22
+ "OPERATIONAL_DEMAND_ADJUSTMENT": "int64",
23
+ "WDR_ESTIMATE": "int64"
24
+ },
25
+ "regions": [
26
+ "NSW1",
27
+ "QLD1",
28
+ "SA1",
29
+ "TAS1",
30
+ "VIC1"
31
+ ]
32
+ }
parquet/AEMO_5min_Demand_2025_2026.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d3129e3a2e14523e4b19fda24deabb993247d29296b9e57814bba7bf9acbb2d
3
+ size 6820957
parquet/AEMO_Forecast_vs_Actual_2025.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_file": "AEMO_Forecast_vs_Actual_2025.csv",
3
+ "parquet_file": "AEMO_Forecast_vs_Actual_2025.parquet",
4
+ "source_url": "https://visualisations.aemo.com.au/aemo/nemweb/index.html#",
5
+ "source_organization": "Australian Energy Market Operator (AEMO)",
6
+ "generated_at": "2026-03-25T16:17:26.444637",
7
+ "shape": {
8
+ "rows": 89145,
9
+ "columns": 10
10
+ },
11
+ "columns": [
12
+ "REGIONID",
13
+ "FORECAST_DATETIME",
14
+ "INTERVAL_DATETIME",
15
+ "LOAD_DATE",
16
+ "OPERATIONAL_DEMAND_POE10",
17
+ "OPERATIONAL_DEMAND_POE50",
18
+ "OPERATIONAL_DEMAND_POE90",
19
+ "OPERATIONAL_DEMAND",
20
+ "OPERATIONAL_DEMAND_ADJUSTMENT",
21
+ "WDR_ESTIMATE"
22
+ ],
23
+ "dtypes": {
24
+ "REGIONID": "object",
25
+ "FORECAST_DATETIME": "datetime64[ns, UTC]",
26
+ "INTERVAL_DATETIME": "datetime64[ns, UTC]",
27
+ "LOAD_DATE": "datetime64[ns, UTC]",
28
+ "OPERATIONAL_DEMAND_POE10": "int64",
29
+ "OPERATIONAL_DEMAND_POE50": "int64",
30
+ "OPERATIONAL_DEMAND_POE90": "int64",
31
+ "OPERATIONAL_DEMAND": "float64",
32
+ "OPERATIONAL_DEMAND_ADJUSTMENT": "float64",
33
+ "WDR_ESTIMATE": "float64"
34
+ },
35
+ "regions": [
36
+ "NSW1",
37
+ "QLD1",
38
+ "SA1",
39
+ "TAS1",
40
+ "VIC1"
41
+ ]
42
+ }
parquet/AEMO_Forecast_vs_Actual_2025.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41298fbbd1c722b392d71501b6d9eb2600813a98abda7509cc9ae39fca92bea9
3
+ size 1660988
parquet/Ausgrid_Zone_Substation_FY25_imputed_15min.json ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_dir": "Ausgrid Distribution Zone Substation Data FY25_imputed",
3
+ "source_files": 175,
4
+ "parquet_file": "Ausgrid_Zone_Substation_FY25_imputed_15min.parquet",
5
+ "source_url": "https://www.ausgrid.com.au/Industry/Our-Research/Data-to-share/Distribution-zone-substation-data",
6
+ "source_organization": "Ausgrid",
7
+ "generated_at": "2026-04-10T05:34:20.253058",
8
+ "timezone_local": "Australia/Sydney",
9
+ "timezone_stored": "UTC",
10
+ "interval_convention": "interval_start is UTC start of 15-minute block; CSV column HH:MM is interval end in local civil time. Local\u2192UTC uses pandas tz_localize (ambiguous=False, nonexistent=shift_forward).",
11
+ "shape": {
12
+ "rows": 6095040,
13
+ "columns": 4
14
+ },
15
+ "columns": [
16
+ "interval_start",
17
+ "zone_substation",
18
+ "load_mw",
19
+ "fiscal_year"
20
+ ],
21
+ "dtypes": {
22
+ "interval_start": "datetime64[ns, UTC]",
23
+ "zone_substation": "object",
24
+ "load_mw": "float64",
25
+ "fiscal_year": "Int64"
26
+ },
27
+ "zone_substation_values": [
28
+ "Aberdeen 66_11kV",
29
+ "Adamstown 132_11kV",
30
+ "Argenton 132_11kV",
31
+ "Auburn 33_11kV",
32
+ "Avoca 66_11kV",
33
+ "Avondale 33_11kV",
34
+ "Baerami 33_11kV",
35
+ "Balgowlah North 132_11kV",
36
+ "Bankstown 132_11kV",
37
+ "Bass Hill 33_11kV",
38
+ "Beacon Hill 33_11kV",
39
+ "Belmore Park 132_11kV",
40
+ "Belrose 33_11kV",
41
+ "Berkeley Vale 132_11kV",
42
+ "Berowra 132_11kV",
43
+ "Blakehurst 33_11kV",
44
+ "Botany 33_11kV",
45
+ "Brandy Hill 132_11kV",
46
+ "Branxton 66_11kV",
47
+ "Broadmeadow 132_11kV",
48
+ "Brookvale 33_11kV",
49
+ "Burwood 132_11kV",
50
+ "Campbell St 132_11kV",
51
+ "Camperdown 33_11kV",
52
+ "Campsie 33_11kV",
53
+ "Cardiff 33_11kV",
54
+ "Careel Bay 33_11kV",
55
+ "Caringbah 33_11kV",
56
+ "Castle Cove 132_11kV",
57
+ "Cessnock South 33_11kV",
58
+ "Charlestown 132_11kV",
59
+ "Charmhaven 132_11kV",
60
+ "Chatswood 33_11kV",
61
+ "City Central 132_11kV",
62
+ "City North 132_11kV",
63
+ "City South 132_11kV",
64
+ "Clovelly 132_11kV",
65
+ "Concord 33_11kV",
66
+ "Cronulla 132_11kV",
67
+ "Croudace Bay 33_11kV",
68
+ "Crows Nest 132_11kV",
69
+ "Croydon 132_11kV",
70
+ "Dalley St 132_11kV",
71
+ "Darling Harbour 132_11kV",
72
+ "Darlinghurst 33_11kV",
73
+ "Dee Why West 33_11kV",
74
+ "Denman 66_11kV",
75
+ "Double Bay 132_11kV",
76
+ "Drummoyne 132_11kV",
77
+ "Edgeworth 33_11kV",
78
+ "Empire Bay 66_11kV",
79
+ "Engadine 132_11kV",
80
+ "Epping 66_11kV",
81
+ "Erina 66_11kV",
82
+ "Flemington 132_11kV",
83
+ "Galston 132_11kV",
84
+ "Gateshead 33_11kV",
85
+ "Gore Hill 33_11kV",
86
+ "Green Square 132_11kV",
87
+ "Greenacre 132_11kV",
88
+ "Gwawley Bay 132_11kV",
89
+ "Harbord 33_11kV",
90
+ "Homebush Bay 132_11kV",
91
+ "Hornsby 132_11kV",
92
+ "Hunters Hill 66_11kV",
93
+ "Hurstville North 132_11kV",
94
+ "Jannali 33_11kV",
95
+ "Jesmond 132_11kV",
96
+ "Jewells 33_11kV",
97
+ "Killarney 33_11kV",
98
+ "Kingsford 132_11kV",
99
+ "Kirrawee 132_11kV",
100
+ "Kogarah 132_11kV",
101
+ "Kotara 33_11kV",
102
+ "Kurnell South 132_11kV",
103
+ "Kurri 132_11kV",
104
+ "Lake Munmorah 132_11kV",
105
+ "Leichhardt 132_11kV",
106
+ "Leightonfield 33_11kV",
107
+ "Lemington 66_11kV",
108
+ "Lidcombe 33_11kV",
109
+ "Lindfield 33_11kV",
110
+ "Lisarow 33_11kV",
111
+ "Long Jetty 66_11kV",
112
+ "Lucas Heights 33_11kV",
113
+ "Macquarie Park 132_11kV",
114
+ "Maitland 33_11kV",
115
+ "Manly 33_11kV",
116
+ "Maroubra 132_11kV",
117
+ "Marrickville 132_11kV",
118
+ "Maryland 132_11kV",
119
+ "Mascot 33_11kV",
120
+ "Matraville 33_11kV",
121
+ "Mayfield West 132_11kV",
122
+ "Meadowbank 132_11kV",
123
+ "Medowie 33_11kV",
124
+ "Menai 132_11kV",
125
+ "Merriwa 33_11kV",
126
+ "Metford 33_11kV",
127
+ "Milperra 132_11kV",
128
+ "Miranda 33_11kV",
129
+ "Mitchell Line 66_11kV",
130
+ "Mitchells Flat 66_11kV",
131
+ "Mona Vale 33_11kV",
132
+ "Moonan 33_11kV",
133
+ "Morisset 132_11kV",
134
+ "Mortdale 33_11kV",
135
+ "Mosman 132_11kV",
136
+ "Mt Hutton 33_11kV",
137
+ "Mt Thorley 66_11kV",
138
+ "Muswellbrook 33_11kV",
139
+ "Narrabeen 33_11kV",
140
+ "Nelson Bay 33_11kV",
141
+ "New Lambton 33_11kV",
142
+ "Newcastle CBD 33_11kV",
143
+ "Newdell 66_11kV",
144
+ "Newport 33_11kV",
145
+ "Noraville 33_11kV",
146
+ "North Head 33_11kV",
147
+ "North Sydney 132_11kV",
148
+ "Nulkaba 33_11kV",
149
+ "Olympic Park 132_11kV",
150
+ "Paddington 33_11kV",
151
+ "Paxton 33_11kV",
152
+ "Peats Ridge 33_11kV",
153
+ "Pelican 33_11kV",
154
+ "Pennant Hills 132_11kV",
155
+ "Port Botany 33_11kV",
156
+ "Potts Hill 132_11kV",
157
+ "Punchbowl 33_11kV",
158
+ "Pymble 33_11kV",
159
+ "RNS Hospital 132_11kV",
160
+ "Rathmines 132_11kV",
161
+ "Raymond Terr NEW 33_11kV",
162
+ "Revesby 132_11kV",
163
+ "Riverwood 33_11kV",
164
+ "Rockdale 132_11kV",
165
+ "Rose Bay 132_11kV",
166
+ "Rothbury 132_11kV",
167
+ "Rouchel 33_11kV",
168
+ "Rutherford 33_11kV",
169
+ "Sans Souci 33_11kV",
170
+ "Scone 66_11kV",
171
+ "Sefton 132_11kV",
172
+ "Singleton 66_11kV",
173
+ "Singleton North 66_11kV",
174
+ "Somersby 132_11kV",
175
+ "St Ives 33_11kV",
176
+ "St Peters 132_11kV",
177
+ "Stockton 33_11kV",
178
+ "Strathfield South 132_11kV",
179
+ "Summer Hill 33_11kV",
180
+ "Surry Hills 33_11kV",
181
+ "Swansea 33_11kV",
182
+ "Tanilba Bay 33_11kV",
183
+ "Tarro 33_11kV",
184
+ "Telarah 33_11kV",
185
+ "Terrey Hills 33_11kV",
186
+ "Thornton 33_11kV",
187
+ "Tighes Hill 33_11kV",
188
+ "Tomago 33_11kV",
189
+ "Tomalpin 33_11kV",
190
+ "Tomaree 33_11kV",
191
+ "Top Ryde 132_11kV",
192
+ "Toronto West 132_11kV",
193
+ "Turramurra 33_11kV",
194
+ "Umina 66_11kV",
195
+ "Vales Point 33_11kV",
196
+ "Wamberal 132_11kV",
197
+ "Waverley 132_11kV",
198
+ "West Gosford 132_11kV",
199
+ "Williamtown 33_11kV",
200
+ "Woy Woy 66_11kV",
201
+ "Wyong 132_11kV",
202
+ "Zetland 132_11kV"
203
+ ],
204
+ "date_range": [
205
+ "2024-04-30",
206
+ "2025-04-29"
207
+ ]
208
+ }
parquet/Ausgrid_Zone_Substation_FY25_imputed_15min.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0dd0ad6eb4bc95b76beb4be4eb96e6a8bfacdb399d0632b5de82e55ad1ba88db
3
+ size 62966729
parquet/GB_Forecast_Actual_Demand_2023_2025_30min.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_file": "GB_Forecast_Actual_Demand_2023_2025_30min.csv",
3
+ "parquet_file": "GB_Forecast_Actual_Demand_2023_2025_30min.parquet",
4
+ "source_urls": [
5
+ "https://data.elexon.co.uk/bmrs/api/v1/demand/actual/total",
6
+ "https://data.elexon.co.uk/bmrs/api/v1/forecast/demand/total/day-ahead"
7
+ ],
8
+ "source_organization": "Elexon Limited",
9
+ "generated_at": "2026-04-09T20:46:35.514125",
10
+ "shape": {
11
+ "rows": 48283,
12
+ "columns": 3
13
+ },
14
+ "columns": [
15
+ "startTime",
16
+ "DAForecast",
17
+ "Actual"
18
+ ],
19
+ "dtypes": {
20
+ "startTime": "datetime64[ns, UTC]",
21
+ "DAForecast": "float64",
22
+ "Actual": "float64"
23
+ },
24
+ "sample_data": {
25
+ "row_0": {
26
+ "startTime": "2023-07-05T00:00:00+00:00",
27
+ "DAForecast": 19981.0,
28
+ "Actual": 24906.0
29
+ },
30
+ "row_1": {
31
+ "startTime": "2023-07-05T00:30:00+00:00",
32
+ "DAForecast": 19757.0,
33
+ "Actual": 24671.0
34
+ },
35
+ "row_2": {
36
+ "startTime": "2023-07-05T01:00:00+00:00",
37
+ "DAForecast": 19466.0,
38
+ "Actual": 23532.0
39
+ },
40
+ "row_3": {
41
+ "startTime": "2023-07-05T01:30:00+00:00",
42
+ "DAForecast": 19199.0,
43
+ "Actual": 22903.0
44
+ },
45
+ "row_4": {
46
+ "startTime": "2023-07-05T02:00:00+00:00",
47
+ "DAForecast": 19024.0,
48
+ "Actual": 22303.0
49
+ }
50
+ },
51
+ "date_ranges": {
52
+ "startTime": {
53
+ "min": "2023-07-05T00:00:00+00:00",
54
+ "max": "2026-04-05T23:30:00+00:00",
55
+ "count": 48283,
56
+ "missing": 0
57
+ }
58
+ },
59
+ "numeric_statistics": {
60
+ "DAForecast": {
61
+ "count": 46747,
62
+ "mean": 29701.024087107195,
63
+ "std": 6326.6484975890935,
64
+ "min": 16890.0,
65
+ "max": 56386.0,
66
+ "missing": 1536
67
+ },
68
+ "Actual": {
69
+ "count": 48283,
70
+ "mean": 33136.38461777437,
71
+ "std": 7492.878071340489,
72
+ "min": 750.0,
73
+ "max": 53130.0,
74
+ "missing": 0
75
+ }
76
+ }
77
+ }
parquet/GB_Forecast_Actual_Demand_2023_2025_30min.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06e3e61a5cf8d864de6194e62080157ff0795201ca0af9765e46789b70d5a92d
3
+ size 834967
parquet/GB_Gen_by_Type_2016_2025_30min.json ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_file": "GB_Gen_by_Type_2016_2025_30min.csv",
3
+ "parquet_file": "GB_Gen_by_Type_2016_2025_30min.parquet",
4
+ "source_url": "https://data.elexon.co.uk/bmrs/api/v1/generation/actual/per-type",
5
+ "source_organization": "Elexon Limited",
6
+ "generated_at": "2026-04-09T21:17:12.843641",
7
+ "shape": {
8
+ "rows": 180048,
9
+ "columns": 13
10
+ },
11
+ "columns": [
12
+ "startTime",
13
+ "settlementPeriod",
14
+ "Fossil Gas",
15
+ "Fossil Hard coal",
16
+ "Fossil Oil",
17
+ "Hydro Pumped Storage",
18
+ "Hydro Run-of-river and poundage",
19
+ "Nuclear",
20
+ "Other",
21
+ "Solar",
22
+ "Wind Offshore",
23
+ "Wind Onshore",
24
+ "Biomass"
25
+ ],
26
+ "dtypes": {
27
+ "startTime": "datetime64[ns, UTC]",
28
+ "settlementPeriod": "int64",
29
+ "Fossil Gas": "float64",
30
+ "Fossil Hard coal": "float64",
31
+ "Fossil Oil": "float64",
32
+ "Hydro Pumped Storage": "float64",
33
+ "Hydro Run-of-river and poundage": "float64",
34
+ "Nuclear": "float64",
35
+ "Other": "float64",
36
+ "Solar": "float64",
37
+ "Wind Offshore": "float64",
38
+ "Wind Onshore": "float64",
39
+ "Biomass": "float64"
40
+ },
41
+ "sample_data": {
42
+ "row_0": {
43
+ "startTime": "2016-01-01T00:00:00+00:00",
44
+ "settlementPeriod": 1,
45
+ "Fossil Gas": 5199.0,
46
+ "Fossil Hard coal": 3514.0,
47
+ "Fossil Oil": 0.0,
48
+ "Hydro Pumped Storage": 0.0,
49
+ "Hydro Run-of-river and poundage": 851.0,
50
+ "Nuclear": 8289.0,
51
+ "Other": 2036.0,
52
+ "Solar": 0.0,
53
+ "Wind Offshore": 3252.0,
54
+ "Wind Onshore": 3728.0,
55
+ "Biomass": 0.0
56
+ },
57
+ "row_1": {
58
+ "startTime": "2016-01-01T00:30:00+00:00",
59
+ "settlementPeriod": 2,
60
+ "Fossil Gas": 6530.0,
61
+ "Fossil Hard coal": 3409.0,
62
+ "Fossil Oil": 0.0,
63
+ "Hydro Pumped Storage": 0.0,
64
+ "Hydro Run-of-river and poundage": 662.0,
65
+ "Nuclear": 8292.0,
66
+ "Other": 2043.0,
67
+ "Solar": 0.0,
68
+ "Wind Offshore": 2817.0,
69
+ "Wind Onshore": 3627.0,
70
+ "Biomass": 0.0
71
+ },
72
+ "row_2": {
73
+ "startTime": "2016-01-01T01:00:00+00:00",
74
+ "settlementPeriod": 3,
75
+ "Fossil Gas": 6884.0,
76
+ "Fossil Hard coal": 3861.0,
77
+ "Fossil Oil": 0.0,
78
+ "Hydro Pumped Storage": 6.833333333333333,
79
+ "Hydro Run-of-river and poundage": 646.0,
80
+ "Nuclear": 8299.0,
81
+ "Other": 1940.0,
82
+ "Solar": 0.0,
83
+ "Wind Offshore": 2501.0,
84
+ "Wind Onshore": 3342.0,
85
+ "Biomass": 0.0
86
+ },
87
+ "row_3": {
88
+ "startTime": "2016-01-01T01:30:00+00:00",
89
+ "settlementPeriod": 4,
90
+ "Fossil Gas": 7028.0,
91
+ "Fossil Hard coal": 3828.0,
92
+ "Fossil Oil": 0.0,
93
+ "Hydro Pumped Storage": 13.666666666666666,
94
+ "Hydro Run-of-river and poundage": 643.0,
95
+ "Nuclear": 8286.0,
96
+ "Other": 1946.0,
97
+ "Solar": 0.0,
98
+ "Wind Offshore": 2155.0,
99
+ "Wind Onshore": 3244.0,
100
+ "Biomass": 0.0
101
+ },
102
+ "row_4": {
103
+ "startTime": "2016-01-01T02:00:00+00:00",
104
+ "settlementPeriod": 5,
105
+ "Fossil Gas": 6831.0,
106
+ "Fossil Hard coal": 3634.0,
107
+ "Fossil Oil": 0.0,
108
+ "Hydro Pumped Storage": 20.5,
109
+ "Hydro Run-of-river and poundage": 642.0,
110
+ "Nuclear": 8282.0,
111
+ "Other": 2047.0,
112
+ "Solar": 0.0,
113
+ "Wind Offshore": 1605.0,
114
+ "Wind Onshore": 2974.0,
115
+ "Biomass": 0.0
116
+ }
117
+ },
118
+ "date_ranges": {
119
+ "startTime": {
120
+ "min": "2016-01-01T00:00:00+00:00",
121
+ "max": "2026-04-08T23:30:00+00:00",
122
+ "count": 180048,
123
+ "missing": 0
124
+ }
125
+ },
126
+ "numeric_statistics": {
127
+ "settlementPeriod": {
128
+ "count": 180048,
129
+ "mean": 24.49971118812761,
130
+ "std": 13.853822446922047,
131
+ "min": 1.0,
132
+ "max": 50.0,
133
+ "missing": 0
134
+ },
135
+ "Fossil Gas": {
136
+ "count": 180048,
137
+ "mean": 11348.885448341725,
138
+ "std": 5865.513952954916,
139
+ "min": 0.0,
140
+ "max": 27323.0,
141
+ "missing": 0
142
+ },
143
+ "Fossil Hard coal": {
144
+ "count": 180048,
145
+ "mean": 959.9046502185397,
146
+ "std": 1792.431089045837,
147
+ "min": 0.0,
148
+ "max": 14665.0,
149
+ "missing": 0
150
+ },
151
+ "Fossil Oil": {
152
+ "count": 180048,
153
+ "mean": 0.0003165822447347374,
154
+ "std": 0.05917048296783205,
155
+ "min": 0.0,
156
+ "max": 18.0,
157
+ "missing": 0
158
+ },
159
+ "Hydro Pumped Storage": {
160
+ "count": 180048,
161
+ "mean": 243.1558024958454,
162
+ "std": 347.62707168699353,
163
+ "min": 0.0,
164
+ "max": 2473.0,
165
+ "missing": 0
166
+ },
167
+ "Hydro Run-of-river and poundage": {
168
+ "count": 180048,
169
+ "mean": 390.7947370378715,
170
+ "std": 251.34687721610507,
171
+ "min": 0.0,
172
+ "max": 1405.0,
173
+ "missing": 0
174
+ },
175
+ "Nuclear": {
176
+ "count": 180048,
177
+ "mean": 5454.804107414016,
178
+ "std": 1682.557533570437,
179
+ "min": 0.0,
180
+ "max": 8864.0,
181
+ "missing": 0
182
+ },
183
+ "Other": {
184
+ "count": 180048,
185
+ "mean": 501.17920207419724,
186
+ "std": 621.3086224889691,
187
+ "min": 0.0,
188
+ "max": 3723.0,
189
+ "missing": 0
190
+ },
191
+ "Solar": {
192
+ "count": 180048,
193
+ "mean": 1310.9320885076213,
194
+ "std": 2087.1572081593754,
195
+ "min": 0.0,
196
+ "max": 14072.0,
197
+ "missing": 0
198
+ },
199
+ "Wind Offshore": {
200
+ "count": 180048,
201
+ "mean": 2998.5777442318517,
202
+ "std": 2639.5279571521005,
203
+ "min": 0.0,
204
+ "max": 13219.935,
205
+ "missing": 0
206
+ }
207
+ }
208
+ }
parquet/GB_Gen_by_Type_2016_2025_30min.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b2d8ed8bfcc29e818c176b72ac13a9532a60853de0b8394ac2d2b142860edd3
3
+ size 6498157
parquet/GB_NESO_Demand_2009_2025_30min.json ADDED
@@ -0,0 +1,271 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_file": "GB_NESO_Demand_2009_2025_30min.csv",
3
+ "parquet_file": "GB_NESO_Demand_2009_2025_30min.parquet",
4
+ "source_url": "https://www.neso.energy/data-portal/historic-demand-data",
5
+ "source_organization": "National Energy System Operator (NESO)",
6
+ "generated_at": "2026-04-09T20:46:35.376137",
7
+ "shape": {
8
+ "rows": 285454,
9
+ "columns": 22
10
+ },
11
+ "columns": [
12
+ "SETTLEMENT_DATE",
13
+ "SETTLEMENT_PERIOD",
14
+ "ND",
15
+ "TSD",
16
+ "ENGLAND_WALES_DEMAND",
17
+ "EMBEDDED_WIND_GENERATION",
18
+ "EMBEDDED_WIND_CAPACITY",
19
+ "EMBEDDED_SOLAR_GENERATION",
20
+ "EMBEDDED_SOLAR_CAPACITY",
21
+ "NON_BM_STOR",
22
+ "PUMP_STORAGE_PUMPING",
23
+ "IFA_FLOW",
24
+ "IFA2_FLOW",
25
+ "BRITNED_FLOW",
26
+ "MOYLE_FLOW",
27
+ "EAST_WEST_FLOW",
28
+ "NEMO_FLOW",
29
+ "NSL_FLOW",
30
+ "ELECLINK_FLOW",
31
+ "VIKING_FLOW",
32
+ "GREENLINK_FLOW",
33
+ "SCOTTISH_TRANSFER"
34
+ ],
35
+ "dtypes": {
36
+ "SETTLEMENT_DATE": "datetime64[ns]",
37
+ "SETTLEMENT_PERIOD": "int64",
38
+ "ND": "int64",
39
+ "TSD": "int64",
40
+ "ENGLAND_WALES_DEMAND": "int64",
41
+ "EMBEDDED_WIND_GENERATION": "int64",
42
+ "EMBEDDED_WIND_CAPACITY": "int64",
43
+ "EMBEDDED_SOLAR_GENERATION": "int64",
44
+ "EMBEDDED_SOLAR_CAPACITY": "int64",
45
+ "NON_BM_STOR": "int64",
46
+ "PUMP_STORAGE_PUMPING": "int64",
47
+ "IFA_FLOW": "int64",
48
+ "IFA2_FLOW": "int64",
49
+ "BRITNED_FLOW": "int64",
50
+ "MOYLE_FLOW": "int64",
51
+ "EAST_WEST_FLOW": "int64",
52
+ "NEMO_FLOW": "int64",
53
+ "NSL_FLOW": "float64",
54
+ "ELECLINK_FLOW": "float64",
55
+ "VIKING_FLOW": "float64",
56
+ "GREENLINK_FLOW": "float64",
57
+ "SCOTTISH_TRANSFER": "float64"
58
+ },
59
+ "sample_data": {
60
+ "row_0": {
61
+ "SETTLEMENT_DATE": "2009-01-01T00:00:00",
62
+ "SETTLEMENT_PERIOD": 1,
63
+ "ND": 37910,
64
+ "TSD": 38704,
65
+ "ENGLAND_WALES_DEMAND": 33939,
66
+ "EMBEDDED_WIND_GENERATION": 54,
67
+ "EMBEDDED_WIND_CAPACITY": 1403,
68
+ "EMBEDDED_SOLAR_GENERATION": 0,
69
+ "EMBEDDED_SOLAR_CAPACITY": 0,
70
+ "NON_BM_STOR": 0,
71
+ "PUMP_STORAGE_PUMPING": 33,
72
+ "IFA_FLOW": 2002,
73
+ "IFA2_FLOW": 0,
74
+ "BRITNED_FLOW": 0,
75
+ "MOYLE_FLOW": -161,
76
+ "EAST_WEST_FLOW": 0,
77
+ "NEMO_FLOW": 0,
78
+ "NSL_FLOW": null,
79
+ "ELECLINK_FLOW": null,
80
+ "VIKING_FLOW": null,
81
+ "GREENLINK_FLOW": null,
82
+ "SCOTTISH_TRANSFER": null
83
+ },
84
+ "row_1": {
85
+ "SETTLEMENT_DATE": "2009-01-01T00:00:00",
86
+ "SETTLEMENT_PERIOD": 2,
87
+ "ND": 38047,
88
+ "TSD": 38964,
89
+ "ENGLAND_WALES_DEMAND": 34072,
90
+ "EMBEDDED_WIND_GENERATION": 53,
91
+ "EMBEDDED_WIND_CAPACITY": 1403,
92
+ "EMBEDDED_SOLAR_GENERATION": 0,
93
+ "EMBEDDED_SOLAR_CAPACITY": 0,
94
+ "NON_BM_STOR": 0,
95
+ "PUMP_STORAGE_PUMPING": 157,
96
+ "IFA_FLOW": 2002,
97
+ "IFA2_FLOW": 0,
98
+ "BRITNED_FLOW": 0,
99
+ "MOYLE_FLOW": -160,
100
+ "EAST_WEST_FLOW": 0,
101
+ "NEMO_FLOW": 0,
102
+ "NSL_FLOW": null,
103
+ "ELECLINK_FLOW": null,
104
+ "VIKING_FLOW": null,
105
+ "GREENLINK_FLOW": null,
106
+ "SCOTTISH_TRANSFER": null
107
+ },
108
+ "row_2": {
109
+ "SETTLEMENT_DATE": "2009-01-01T00:00:00",
110
+ "SETTLEMENT_PERIOD": 3,
111
+ "ND": 37380,
112
+ "TSD": 38651,
113
+ "ENGLAND_WALES_DEMAND": 33615,
114
+ "EMBEDDED_WIND_GENERATION": 53,
115
+ "EMBEDDED_WIND_CAPACITY": 1403,
116
+ "EMBEDDED_SOLAR_GENERATION": 0,
117
+ "EMBEDDED_SOLAR_CAPACITY": 0,
118
+ "NON_BM_STOR": 0,
119
+ "PUMP_STORAGE_PUMPING": 511,
120
+ "IFA_FLOW": 2002,
121
+ "IFA2_FLOW": 0,
122
+ "BRITNED_FLOW": 0,
123
+ "MOYLE_FLOW": -160,
124
+ "EAST_WEST_FLOW": 0,
125
+ "NEMO_FLOW": 0,
126
+ "NSL_FLOW": null,
127
+ "ELECLINK_FLOW": null,
128
+ "VIKING_FLOW": null,
129
+ "GREENLINK_FLOW": null,
130
+ "SCOTTISH_TRANSFER": null
131
+ },
132
+ "row_3": {
133
+ "SETTLEMENT_DATE": "2009-01-01T00:00:00",
134
+ "SETTLEMENT_PERIOD": 4,
135
+ "ND": 36426,
136
+ "TSD": 37775,
137
+ "ENGLAND_WALES_DEMAND": 32526,
138
+ "EMBEDDED_WIND_GENERATION": 50,
139
+ "EMBEDDED_WIND_CAPACITY": 1403,
140
+ "EMBEDDED_SOLAR_GENERATION": 0,
141
+ "EMBEDDED_SOLAR_CAPACITY": 0,
142
+ "NON_BM_STOR": 0,
143
+ "PUMP_STORAGE_PUMPING": 589,
144
+ "IFA_FLOW": 1772,
145
+ "IFA2_FLOW": 0,
146
+ "BRITNED_FLOW": 0,
147
+ "MOYLE_FLOW": -160,
148
+ "EAST_WEST_FLOW": 0,
149
+ "NEMO_FLOW": 0,
150
+ "NSL_FLOW": null,
151
+ "ELECLINK_FLOW": null,
152
+ "VIKING_FLOW": null,
153
+ "GREENLINK_FLOW": null,
154
+ "SCOTTISH_TRANSFER": null
155
+ },
156
+ "row_4": {
157
+ "SETTLEMENT_DATE": "2009-01-01T00:00:00",
158
+ "SETTLEMENT_PERIOD": 5,
159
+ "ND": 35687,
160
+ "TSD": 37298,
161
+ "ENGLAND_WALES_DEMAND": 31877,
162
+ "EMBEDDED_WIND_GENERATION": 50,
163
+ "EMBEDDED_WIND_CAPACITY": 1403,
164
+ "EMBEDDED_SOLAR_GENERATION": 0,
165
+ "EMBEDDED_SOLAR_CAPACITY": 0,
166
+ "NON_BM_STOR": 0,
167
+ "PUMP_STORAGE_PUMPING": 851,
168
+ "IFA_FLOW": 1753,
169
+ "IFA2_FLOW": 0,
170
+ "BRITNED_FLOW": 0,
171
+ "MOYLE_FLOW": -160,
172
+ "EAST_WEST_FLOW": 0,
173
+ "NEMO_FLOW": 0,
174
+ "NSL_FLOW": null,
175
+ "ELECLINK_FLOW": null,
176
+ "VIKING_FLOW": null,
177
+ "GREENLINK_FLOW": null,
178
+ "SCOTTISH_TRANSFER": null
179
+ }
180
+ },
181
+ "date_ranges": {
182
+ "SETTLEMENT_DATE": {
183
+ "min": "2009-01-01T00:00:00",
184
+ "max": "2025-04-13T00:00:00",
185
+ "count": 285454,
186
+ "missing": 0
187
+ }
188
+ },
189
+ "numeric_statistics": {
190
+ "SETTLEMENT_PERIOD": {
191
+ "count": 285454,
192
+ "mean": 24.50006305744533,
193
+ "std": 13.853726478201388,
194
+ "min": 1.0,
195
+ "max": 50.0,
196
+ "missing": 0
197
+ },
198
+ "ND": {
199
+ "count": 285454,
200
+ "mean": 31156.502126437183,
201
+ "std": 7802.460785073801,
202
+ "min": 13367.0,
203
+ "max": 59095.0,
204
+ "missing": 0
205
+ },
206
+ "TSD": {
207
+ "count": 285454,
208
+ "mean": 32613.254212587668,
209
+ "std": 7681.583240208366,
210
+ "min": 0.0,
211
+ "max": 60147.0,
212
+ "missing": 0
213
+ },
214
+ "ENGLAND_WALES_DEMAND": {
215
+ "count": 285454,
216
+ "mean": 28367.868311531805,
217
+ "std": 7062.856377746041,
218
+ "min": 0.0,
219
+ "max": 53325.0,
220
+ "missing": 0
221
+ },
222
+ "EMBEDDED_WIND_GENERATION": {
223
+ "count": 285454,
224
+ "mean": 1323.3953561694705,
225
+ "std": 1035.409423930617,
226
+ "min": 0.0,
227
+ "max": 5962.0,
228
+ "missing": 0
229
+ },
230
+ "EMBEDDED_WIND_CAPACITY": {
231
+ "count": 285454,
232
+ "mean": 4494.534334778984,
233
+ "std": 1961.2762740076082,
234
+ "min": 1403.0,
235
+ "max": 6622.0,
236
+ "missing": 0
237
+ },
238
+ "EMBEDDED_SOLAR_GENERATION": {
239
+ "count": 285454,
240
+ "mean": 904.831174199696,
241
+ "std": 1774.4490848016615,
242
+ "min": 0.0,
243
+ "max": 12688.0,
244
+ "missing": 0
245
+ },
246
+ "EMBEDDED_SOLAR_CAPACITY": {
247
+ "count": 285454,
248
+ "mean": 9028.708905813195,
249
+ "std": 6122.6023899205875,
250
+ "min": 0.0,
251
+ "max": 18722.0,
252
+ "missing": 0
253
+ },
254
+ "NON_BM_STOR": {
255
+ "count": 285454,
256
+ "mean": 6.509938554022715,
257
+ "std": 38.7360877946937,
258
+ "min": -24.0,
259
+ "max": 893.0,
260
+ "missing": 0
261
+ },
262
+ "PUMP_STORAGE_PUMPING": {
263
+ "count": 285454,
264
+ "mean": 302.56626286547043,
265
+ "std": 525.5986148465628,
266
+ "min": 0.0,
267
+ "max": 2019.0,
268
+ "missing": 0
269
+ }
270
+ }
271
+ }
parquet/GB_NESO_Demand_2009_2025_30min.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:120af3409274732714586659627b1562c668d48a5ac0a136d0d9cc6264291617
3
+ size 4898227
parquet/MID_GB_30min_aligned_to_gen.json ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_file": "MID_GB_30min_aligned_to_gen.csv",
3
+ "parquet_file": "MID_GB_30min_aligned_to_gen.parquet",
4
+ "generated_at": "2026-04-27T02:44:29.385830",
5
+ "shape": {
6
+ "rows": 48283,
7
+ "columns": 6
8
+ },
9
+ "columns": [
10
+ "startTime",
11
+ "settlementPeriod",
12
+ "mid_price_APXMIDP",
13
+ "mid_price_N2EXMIDP",
14
+ "mid_volume_APXMIDP",
15
+ "mid_volume_N2EXMIDP"
16
+ ],
17
+ "dtypes": {
18
+ "startTime": "datetime64[ns, UTC]",
19
+ "settlementPeriod": "int64",
20
+ "mid_price_APXMIDP": "float64",
21
+ "mid_price_N2EXMIDP": "float64",
22
+ "mid_volume_APXMIDP": "float64",
23
+ "mid_volume_N2EXMIDP": "float64"
24
+ },
25
+ "sample_data": {
26
+ "row_0": {
27
+ "startTime": "2023-07-05T00:00:00+00:00",
28
+ "settlementPeriod": 3,
29
+ "mid_price_APXMIDP": 77.76,
30
+ "mid_price_N2EXMIDP": 0.0,
31
+ "mid_volume_APXMIDP": 1575.25,
32
+ "mid_volume_N2EXMIDP": 0.0
33
+ },
34
+ "row_1": {
35
+ "startTime": "2023-07-05T00:30:00+00:00",
36
+ "settlementPeriod": 4,
37
+ "mid_price_APXMIDP": 73.94,
38
+ "mid_price_N2EXMIDP": 0.0,
39
+ "mid_volume_APXMIDP": 1363.15,
40
+ "mid_volume_N2EXMIDP": 0.0
41
+ },
42
+ "row_2": {
43
+ "startTime": "2023-07-05T01:00:00+00:00",
44
+ "settlementPeriod": 5,
45
+ "mid_price_APXMIDP": 69.95,
46
+ "mid_price_N2EXMIDP": 0.0,
47
+ "mid_volume_APXMIDP": 1528.6,
48
+ "mid_volume_N2EXMIDP": 0.0
49
+ },
50
+ "row_3": {
51
+ "startTime": "2023-07-05T01:30:00+00:00",
52
+ "settlementPeriod": 6,
53
+ "mid_price_APXMIDP": 61.94,
54
+ "mid_price_N2EXMIDP": 0.0,
55
+ "mid_volume_APXMIDP": 1457.35,
56
+ "mid_volume_N2EXMIDP": 0.0
57
+ },
58
+ "row_4": {
59
+ "startTime": "2023-07-05T02:00:00+00:00",
60
+ "settlementPeriod": 7,
61
+ "mid_price_APXMIDP": 52.76,
62
+ "mid_price_N2EXMIDP": 0.0,
63
+ "mid_volume_APXMIDP": 1338.3,
64
+ "mid_volume_N2EXMIDP": 0.0
65
+ }
66
+ },
67
+ "date_ranges": {
68
+ "startTime": {
69
+ "min": "2023-07-05T00:00:00+00:00",
70
+ "max": "2026-04-05T23:30:00+00:00",
71
+ "count": 48283,
72
+ "missing": 0
73
+ }
74
+ },
75
+ "numeric_statistics": {
76
+ "settlementPeriod": {
77
+ "count": 48283,
78
+ "mean": 24.500031066835117,
79
+ "std": 13.853994309184106,
80
+ "min": 1.0,
81
+ "max": 50.0,
82
+ "missing": 0
83
+ },
84
+ "mid_price_APXMIDP": {
85
+ "count": 48283,
86
+ "mean": 78.82135608868516,
87
+ "std": 33.7223218137947,
88
+ "min": 0.0,
89
+ "max": 1352.9,
90
+ "missing": 0
91
+ },
92
+ "mid_price_N2EXMIDP": {
93
+ "count": 48283,
94
+ "mean": 0.19690491477331565,
95
+ "std": 4.167874586301418,
96
+ "min": 0.0,
97
+ "max": 189.1,
98
+ "missing": 0
99
+ },
100
+ "mid_volume_APXMIDP": {
101
+ "count": 48283,
102
+ "mean": 2251.981193691361,
103
+ "std": 848.7497308809703,
104
+ "min": 0.0,
105
+ "max": 8004.7,
106
+ "missing": 0
107
+ },
108
+ "mid_volume_N2EXMIDP": {
109
+ "count": 48283,
110
+ "mean": 0.1878502785659549,
111
+ "std": 4.981298346288336,
112
+ "min": 0.0,
113
+ "max": 385.0,
114
+ "missing": 0
115
+ }
116
+ }
117
+ }
parquet/MID_GB_30min_aligned_to_gen.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2ce7af2a6f4cbe87b8c05a84077c8dd58ad2df69804ba82314f9e60790c1dab
3
+ size 851396
parquet/alibaba_dc_2018_300s.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_file": "alibaba_dc_2018_300s.parquet",
3
+ "parquet_file": "alibaba_dc_2018_300s.parquet",
4
+ "source_url": "https://github.com/alibaba/clusterdata/tree/master/cluster-trace-v2018",
5
+ "source_organization": "Alibaba Group",
6
+ "generated_at": "2026-03-25T18:32:50.161432",
7
+ "shape": {
8
+ "rows": 2243,
9
+ "columns": 6
10
+ },
11
+ "columns": [
12
+ "time_stamp",
13
+ "cpu_util_percent",
14
+ "mem_util_percent",
15
+ "net_in",
16
+ "net_out",
17
+ "disk_io_percent"
18
+ ],
19
+ "dtypes": {
20
+ "time_stamp": "int64",
21
+ "cpu_util_percent": "float64",
22
+ "mem_util_percent": "float64",
23
+ "net_in": "float64",
24
+ "net_out": "float64",
25
+ "disk_io_percent": "float64"
26
+ },
27
+ "numeric_statistics": {
28
+ "time_stamp": {
29
+ "count": 2243,
30
+ "mean": 1121.0,
31
+ "std": 647.6426483794902,
32
+ "min": 0.0,
33
+ "max": 2242.0,
34
+ "missing": 0
35
+ },
36
+ "cpu_util_percent": {
37
+ "count": 2243,
38
+ "mean": 40.17565699733218,
39
+ "std": 9.790954178009287,
40
+ "min": 16.126976521322472,
41
+ "max": 79.07429568686113,
42
+ "missing": 0
43
+ },
44
+ "mem_util_percent": {
45
+ "count": 2243,
46
+ "mean": 87.97396097592305,
47
+ "std": 2.5411023968194444,
48
+ "min": 78.264269549912,
49
+ "max": 95.02071375093588,
50
+ "missing": 0
51
+ },
52
+ "net_in": {
53
+ "count": 2243,
54
+ "mean": 41.02701936074196,
55
+ "std": 3.7665091906228363,
56
+ "min": 34.700788402848424,
57
+ "max": 47.45905189620758,
58
+ "missing": 0
59
+ },
60
+ "net_out": {
61
+ "count": 2243,
62
+ "mean": 32.521239358058985,
63
+ "std": 3.0147116301511714,
64
+ "min": 27.493448626653105,
65
+ "max": 37.77077844311377,
66
+ "missing": 0
67
+ },
68
+ "disk_io_percent": {
69
+ "count": 2243,
70
+ "mean": 7.677442360831148,
71
+ "std": 3.4712061410411734,
72
+ "min": 3.314343845371312,
73
+ "max": 25.7999487047961,
74
+ "missing": 0
75
+ }
76
+ }
77
+ }
parquet/alibaba_dc_2018_300s.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02255943514f380627299681a19a05c0ad69d93b55c829a044c8551899d9e7d5
3
+ size 123111
parquet/alibaba_gpu_2020_300s.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_file": "alibaba_gpu_2020_300s.parquet",
3
+ "parquet_file": "alibaba_gpu_2020_300s.parquet",
4
+ "source_url": "https://github.com/alibaba/clusterdata/tree/master/cluster-trace-gpu-v2020",
5
+ "source_organization": "Alibaba Group",
6
+ "generated_at": "2026-03-25T18:32:50.164604",
7
+ "shape": {
8
+ "rows": 415,
9
+ "columns": 3
10
+ },
11
+ "columns": [
12
+ "time_stamp",
13
+ "gpu_util_percent",
14
+ "cpu_util_percent"
15
+ ],
16
+ "dtypes": {
17
+ "time_stamp": "int64",
18
+ "gpu_util_percent": "float64",
19
+ "cpu_util_percent": "float64"
20
+ },
21
+ "numeric_statistics": {
22
+ "time_stamp": {
23
+ "count": 415,
24
+ "mean": 207.0,
25
+ "std": 119.94443157840495,
26
+ "min": 0.0,
27
+ "max": 414.0,
28
+ "missing": 0
29
+ },
30
+ "gpu_util_percent": {
31
+ "count": 415,
32
+ "mean": 17.8272743627179,
33
+ "std": 0.6858864172206723,
34
+ "min": 17.744300311346027,
35
+ "max": 23.483338864567205,
36
+ "missing": 0
37
+ },
38
+ "cpu_util_percent": {
39
+ "count": 415,
40
+ "mean": 23.913208911272793,
41
+ "std": 0.5255485850535567,
42
+ "min": 23.849631481832862,
43
+ "max": 28.247070351427517,
44
+ "missing": 0
45
+ }
46
+ }
47
+ }
parquet/alibaba_gpu_2020_300s.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:500e888e822726ee993887a1e1c5aea44e3e0a2802a9a4ad2a119800c1ff6da2
3
+ size 4601
parquet/azure_dc_v2_300s.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_file": "azure_dc_v2_300s.parquet",
3
+ "parquet_file": "azure_dc_v2_300s.parquet",
4
+ "source_url": "https://github.com/Azure/AzurePublicDataset/blob/master/AzurePublicDatasetV2.md",
5
+ "source_organization": "Microsoft Corporation",
6
+ "generated_at": "2026-03-25T18:32:50.166873",
7
+ "shape": {
8
+ "rows": 8640,
9
+ "columns": 3
10
+ },
11
+ "columns": [
12
+ "time_stamp",
13
+ "cpu_usage",
14
+ "assigned_mem"
15
+ ],
16
+ "dtypes": {
17
+ "time_stamp": "int64",
18
+ "cpu_usage": "float64",
19
+ "assigned_mem": "float64"
20
+ },
21
+ "numeric_statistics": {
22
+ "time_stamp": {
23
+ "count": 8640,
24
+ "mean": 4319.5,
25
+ "std": 2494.297496290288,
26
+ "min": 0.0,
27
+ "max": 8639.0,
28
+ "missing": 0
29
+ },
30
+ "cpu_usage": {
31
+ "count": 8640,
32
+ "mean": 6184580.55930899,
33
+ "std": 429753.20335834904,
34
+ "min": 5188680.089725921,
35
+ "max": 7812353.006218912,
36
+ "missing": 0
37
+ },
38
+ "assigned_mem": {
39
+ "count": 8640,
40
+ "mean": 1987180.0532407407,
41
+ "std": 45651.993997762016,
42
+ "min": 1906372.0,
43
+ "max": 2191468.0,
44
+ "missing": 0
45
+ }
46
+ }
47
+ }
parquet/azure_dc_v2_300s.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a856debcebbc69a6a3af8c9810115b2034eb5cbd9d40799f4ff02304d2a4c15
3
+ size 186388
parquet/google_dc_2019_300s.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_file": "google_dc_2019_300s.parquet",
3
+ "parquet_file": "google_dc_2019_300s.parquet",
4
+ "source_url": "https://github.com/google/cluster-data/blob/master/ClusterData2019.md",
5
+ "source_organization": "Google LLC",
6
+ "generated_at": "2026-03-25T18:32:50.169391",
7
+ "shape": {
8
+ "rows": 8064,
9
+ "columns": 5
10
+ },
11
+ "columns": [
12
+ "time_stamp",
13
+ "cpu_util",
14
+ "mem_util",
15
+ "assigned_mem",
16
+ "cycles_per_instruction"
17
+ ],
18
+ "dtypes": {
19
+ "time_stamp": "int64",
20
+ "cpu_util": "float64",
21
+ "mem_util": "float64",
22
+ "assigned_mem": "float64",
23
+ "cycles_per_instruction": "float64"
24
+ },
25
+ "numeric_statistics": {
26
+ "time_stamp": {
27
+ "count": 8064,
28
+ "mean": 4031.5,
29
+ "std": 2328.020618465395,
30
+ "min": 0.0,
31
+ "max": 8063.0,
32
+ "missing": 0
33
+ },
34
+ "cpu_util": {
35
+ "count": 8064,
36
+ "mean": 0.47282318454346245,
37
+ "std": 0.03991285651187808,
38
+ "min": 0.3202867061157718,
39
+ "max": 0.5924373024521205,
40
+ "missing": 0
41
+ },
42
+ "mem_util": {
43
+ "count": 8064,
44
+ "mean": 0.32715492839768506,
45
+ "std": 0.022817123485826107,
46
+ "min": 0.2449798751942896,
47
+ "max": 0.4022383946974674,
48
+ "missing": 0
49
+ },
50
+ "assigned_mem": {
51
+ "count": 8064,
52
+ "mean": 0.5974625439506724,
53
+ "std": 0.037009806749554564,
54
+ "min": 0.4953768611854249,
55
+ "max": 0.7190462882388798,
56
+ "missing": 0
57
+ },
58
+ "cycles_per_instruction": {
59
+ "count": 8064,
60
+ "mean": 166.1271898386057,
61
+ "std": 9.533894892593189,
62
+ "min": 119.71908041274574,
63
+ "max": 201.31324445163875,
64
+ "missing": 0
65
+ }
66
+ }
67
+ }
parquet/google_dc_2019_300s.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fe98aa4249301749505d97f1b2b0801496d2a7fa81e76b767cd7234a0970223
3
+ size 359554
powergrid_case/CaseBase.py ADDED
@@ -0,0 +1,602 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Power market case base module
2
+
3
+ This module contains basic data structures and computation methods for power market simulation.
4
+ """
5
+ from typing import List, Union
6
+ import pandas as pd
7
+ import numpy as np
8
+ from scipy.sparse import coo_matrix
9
+ import scipy.sparse as sp
10
+
11
+
12
+ class DataFrame(pd.DataFrame):
13
+ """Extended DataFrame for power market data display
14
+
15
+ Inherits from pandas.DataFrame with label feature and custom display format.
16
+ """
17
+
18
+ def __init__(self, columns: List[str], data: Union[List, np.ndarray]):
19
+ """Initialize DataFrame
20
+
21
+ Args:
22
+ columns: column names
23
+ data: data content
24
+ """
25
+ super(DataFrame, self).__init__(data=data, columns=columns)
26
+ self.loc[:, '#id'] = self.index
27
+ self.index = self['id']
28
+ self.label = ''
29
+
30
+ def __repr__(self) -> str:
31
+ """Custom string representation"""
32
+ return f'{"=" * 20} {self.label} {"=" * 20}\n{self.to_string(index=False)}'
33
+
34
+ def __str__(self) -> str:
35
+ """String representation"""
36
+ return self.__repr__()
37
+
38
+ def set_label(self, label: str) -> 'DataFrame':
39
+ """Set label
40
+
41
+ Args:
42
+ label: label name
43
+
44
+ Returns:
45
+ self to support method chaining
46
+ """
47
+ self.label = label
48
+ return self
49
+
50
+
51
+ class ClearCase(object):
52
+ """Base class for power market clearing cases
53
+
54
+ Contains basic data for nodes, units, lines and loads,
55
+ along with matrix computations and data processing methods.
56
+
57
+ Subclasses should override the class-level metadata attributes below
58
+ to enable automatic discovery, filtering, and compatibility validation.
59
+ """
60
+
61
+ GRID_TYPE: str = ""
62
+ BUS_COUNT: int = 0
63
+ PHASE: str = "1"
64
+ VOLTAGE_LEVEL: str = ""
65
+ SOURCE: str = ""
66
+ DESCRIPTION: str = ""
67
+
68
+ def __init__(self, mock=True):
69
+ """Initialize clearing case"""
70
+ self.init_flag = False
71
+ self._node_gsdf = None
72
+ self._node_ptdf = None
73
+ self._plotter = None
74
+ self.mocker = None
75
+ self.nodes_map_units = None
76
+ self.flexloads_num = len(getattr(self, 'flexloads', []))
77
+ if mock:
78
+ from .CaseMocker import CaseMocker
79
+ self.mocker, _ = CaseMocker(self).mock_c()
80
+
81
+ # if lines['cap'] == 0 or lines['floor'], set to 1000000
82
+ self.lines.loc[self.lines['cap'] == 0, 'cap'] = 1000000
83
+ self.lines.loc[self.lines['floor'] == 0, 'floor'] = -1000000
84
+
85
+ def init(self) -> 'ClearCase':
86
+ """Initialize case data
87
+
88
+ Set node ID mapping and basic flags.
89
+
90
+ Returns:
91
+ self to support method chaining
92
+ """
93
+ self.init_flag = True
94
+ self.units['#bus_id'], self.loads['#bus_id'] = self.get_nodes_id(
95
+ self.units['bus_id'], self.loads['bus_id']
96
+ )
97
+ if self.flexloads_num > 0:
98
+ # The trailing comma is required because the function returns a list object which needs ',' unpacking.
99
+ self.flexloads['#bus_id'], = self.get_nodes_id(self.flexloads['bus_id'])
100
+ self.lines['#from'], self.lines['#to'] = self.get_nodes_id(
101
+ self.lines['from'], self.lines['to'])
102
+ if not hasattr(self, 'name'):
103
+ self.name = 'Case'
104
+ return self
105
+
106
+ def __repr__(self) -> str:
107
+ """String representation"""
108
+ return '\n'.join(self.to_str())
109
+
110
+ # =============================================================================
111
+ # Plotter property
112
+ # =============================================================================
113
+
114
+ @property
115
+ def plotter(self):
116
+ """Get the CasePlotter instance (lazy initialization)
117
+
118
+ Returns:
119
+ CasePlotter instance for visualizing this case
120
+ """
121
+ if self._plotter is None:
122
+ from .CasePlotter import CasePlotter
123
+ self._plotter = CasePlotter(self)
124
+ return self._plotter
125
+
126
+ # =============================================================================
127
+ # Data validation methods
128
+ # =============================================================================
129
+
130
+ def check(self) -> None:
131
+ """Check data integrity
132
+
133
+ Verify that each table contains the required columns.
134
+
135
+ Raises:
136
+ AssertionError: raised when required columns are missing
137
+ """
138
+ nodes_col = {'id'}
139
+ units_col = {'id', 'bus_id', 'mc_a', 'mc_b', 'mc_c', 'p_max', 'p_min'}
140
+ lines_col = {'id', 'from', 'to', 'x', 'floor', 'cap'}
141
+ loads_col = {'id', 'bus_id', 'mc_a', 'mc_b', 'mc_c', 'd_max', 'd_min'}
142
+
143
+ self.assert_cols(nodes_col, getattr(self, "nodes"))
144
+ self.assert_cols(units_col, getattr(self, "units"))
145
+ self.assert_cols(lines_col, getattr(self, "lines"))
146
+ self.assert_cols(loads_col, getattr(self, "loads"))
147
+
148
+ @staticmethod
149
+ def assert_cols(min_col_set: set, df_to_check: pd.DataFrame) -> None:
150
+ """Assert that a DataFrame contains at least a set of columns
151
+
152
+ Args:
153
+ min_col_set: minimal required column set
154
+ df_to_check: DataFrame to check
155
+
156
+ Raises:
157
+ AssertionError: raised when required columns are missing
158
+ """
159
+ assert set(df_to_check.columns) & min_col_set == min_col_set, \
160
+ f'最少需要以下列:{min_col_set}'
161
+
162
+ def get_nodes_id(self, *args) -> List[np.ndarray]:
163
+ """Get node ID mapping
164
+
165
+ Args:
166
+ *args: node ID arrays
167
+
168
+ Returns:
169
+ list of mapped node IDs
170
+ """
171
+ return [self.nodes.loc[np.array(a).flatten(), '#id'].values for a in args]
172
+
173
+ # =============================================================================
174
+ # Matrix computation methods
175
+ # =============================================================================
176
+
177
+ def get_node_gsdf(self) -> pd.DataFrame:
178
+ """Get node GSDF matrix (cached)
179
+
180
+ Returns:
181
+ generation shift distribution factor matrix per node
182
+ """
183
+ if self._node_gsdf is None:
184
+ self.cal_gsdf(False)
185
+ self._node_gsdf = self.node_gsdf
186
+ return self._node_gsdf
187
+
188
+ def get_node_ptdf(self) -> pd.DataFrame:
189
+ """Get node PTDF matrix (cached)
190
+
191
+ Returns:
192
+ power transfer distribution factor matrix per node
193
+ """
194
+ if self._node_ptdf is None:
195
+ self.cal_gsdf(True)
196
+ self._node_ptdf = self.node_ptdf
197
+ return self._node_ptdf
198
+
199
+ def cal_gsdf(self, ptdf: bool = False) -> 'ClearCase':
200
+ """Compute GSDF and optionally PTDF matrices
201
+
202
+ Args:
203
+ ptdf: whether to compute PTDF matrices as well
204
+
205
+ Returns:
206
+ self to support method chaining
207
+ """
208
+ if not hasattr(self, 'init_flag') or not self.init_flag:
209
+ self.init()
210
+
211
+ # Build line-node incidence matrix
212
+ lines_nodes = coo_matrix(
213
+ (np.repeat((1, -1), len(self.lines)),
214
+ (np.tile(np.arange(len(self.lines)), 2),
215
+ self.lines[['#from', '#to']].values.T.flatten()))
216
+ ).toarray()
217
+
218
+ # Line susceptance matrix
219
+ lines_B = np.diag(-1 / self.lines['x'])
220
+
221
+ # Node admittance matrix (excluding reference node)
222
+ self.node_Y = lines_nodes.T.dot(lines_B).dot(lines_nodes)[1:, 1:]
223
+ node_Y_inv = np.linalg.inv(self.node_Y)
224
+
225
+ # Compute GSDF matrix
226
+ node_gsdf_1 = lines_B.dot(lines_nodes.dot(
227
+ np.vstack((np.zeros(len(self.nodes) - 1), node_Y_inv))
228
+ ))
229
+ self.node_gsdf = pd.DataFrame(
230
+ np.hstack((np.zeros((len(self.lines), 1)), node_gsdf_1)),
231
+ index=self.lines['id'],
232
+ columns=self.nodes['id']
233
+ )
234
+
235
+ # GSDF matrices for units and loads
236
+ self.unit_gsdf = self.node_gsdf[self.units['bus_id']]
237
+ self.unit_load_gsdf = pd.concat((
238
+ self.node_gsdf[self.units['bus_id']],
239
+ -self.node_gsdf[self.loads['bus_id']]
240
+ ), axis=1)
241
+
242
+ # Compute PTDF matrix (only for constrained lines)
243
+ if ptdf:
244
+ self.ptdf_lines_flag = np.where(
245
+ (self.lines.loc[:, 'floor'] == 0) & (self.lines.loc[:, 'cap'] == 0),
246
+ False, True
247
+ )
248
+ self.ptdf_lines = self.lines.loc[self.ptdf_lines_flag]
249
+ self.node_ptdf = self.node_gsdf[self.ptdf_lines_flag]
250
+ self.unit_load_ptdf = pd.concat((
251
+ self.node_ptdf[self.units['bus_id']],
252
+ -self.node_ptdf[self.loads['bus_id']]
253
+ ), axis=1)
254
+ return self
255
+
256
+ def get_A_matrix(self) -> np.ndarray:
257
+ """Get adjacency matrix
258
+
259
+ Returns:
260
+ network adjacency matrix
261
+ """
262
+ if not hasattr(self, 'init_flag') or not self.init_flag:
263
+ self.init()
264
+ row = np.hstack((self.lines['#from'], self.lines['#to']))
265
+ col = np.hstack((self.lines['#to'], self.lines['#from']))
266
+ A = coo_matrix(
267
+ (np.ones(len(row)), (row, col)),
268
+ shape=(len(self.nodes), len(self.nodes))
269
+ ).toarray()
270
+ return A
271
+
272
+ def get_D_matrix(self) -> np.ndarray:
273
+ """Get degree matrix
274
+
275
+ Returns:
276
+ diagonal degree matrix whose diagonal is node degrees
277
+ """
278
+ if not hasattr(self, 'init_flag') or not self.init_flag:
279
+ self.init()
280
+ A = self.get_A_matrix()
281
+ d = np.sum(A, axis=1)
282
+ D = np.diag(d)
283
+ return D
284
+
285
+ def normalize_adjacency(self, adjacency: np.ndarray) -> np.ndarray:
286
+ """Normalize adjacency matrix
287
+
288
+ Args:
289
+ adjacency: adjacency matrix
290
+
291
+ Returns:
292
+ normalized adjacency matrix
293
+ """
294
+ adj = sp.coo_matrix(adjacency)
295
+ rowsum = np.array(adj.sum(1)) # node degree per row
296
+ rowsum[rowsum == 0] = 1 # avoid division by zero
297
+ degree_mat_inv_sqrt = sp.diags(np.power(rowsum, -0.5).flatten())
298
+ normalized_adjacency = adj.dot(degree_mat_inv_sqrt).transpose().dot(degree_mat_inv_sqrt).tocoo()
299
+ return normalized_adjacency.todense()
300
+
301
+ def get_L_matrix(self) -> np.ndarray:
302
+ """Get normalized Laplacian matrix
303
+
304
+ Returns:
305
+ normalized Laplacian matrix
306
+ """
307
+ if not hasattr(self, 'init_flag') or not self.init_flag:
308
+ self.init()
309
+ A = self.get_A_matrix()
310
+ A_self = A + np.eye(len(A))
311
+ D_half_inv = np.diag(np.power(np.sum(A_self, axis=1), -0.5))
312
+ L = np.eye(A_self.shape[0]) - np.dot(np.dot(D_half_inv, A_self), D_half_inv)
313
+ return L
314
+
315
+ # =============================================================================
316
+ # Node mapping methods
317
+ # =============================================================================
318
+
319
+ def get_nodes_map_units_and_loads(self) -> np.ndarray:
320
+ """Get node-to-units and node-to-loads mapping matrix
321
+
322
+ Returns:
323
+ mapping matrix (units positive, loads negative)
324
+ """
325
+ if not hasattr(self, 'init_flag') or not self.init_flag:
326
+ self.init()
327
+
328
+ # Node-to-unit relationship
329
+ self.nodes_map_units = coo_matrix(
330
+ (np.ones(len(self.units)), (self.units['#bus_id'], self.units['#id'])),
331
+ shape=(len(self.nodes), len(self.units))
332
+ ).toarray()
333
+
334
+ # Node-to-load relationship
335
+ self.nodes_map_loads = coo_matrix(
336
+ (np.ones(len(self.loads)), (self.loads['#bus_id'], self.loads['#id'])),
337
+ shape=(len(self.nodes), len(self.loads))
338
+ ).toarray()
339
+
340
+ return np.hstack([self.nodes_map_units, -self.nodes_map_loads])
341
+
342
+ def get_nodes_units_map(self) -> np.ndarray:
343
+ """Get node-to-units mapping matrix
344
+
345
+ Returns:
346
+ node-to-units mapping matrix
347
+ """
348
+ if not hasattr(self, 'init_flag') or not self.init_flag:
349
+ self.init()
350
+
351
+ self.nodes_map_units = coo_matrix(
352
+ (np.ones(len(self.units)), (self.units['#bus_id'], self.units['#id'])),
353
+ shape=(len(self.nodes), len(self.units))
354
+ ).toarray()
355
+ return self.nodes_map_units
356
+
357
+ def get_nodes_loads_map(self) -> np.ndarray:
358
+ """Get node-to-loads mapping matrix
359
+
360
+ Returns:
361
+ node-to-loads mapping matrix
362
+ """
363
+ if not hasattr(self, 'init_flag') or not self.init_flag:
364
+ self.init()
365
+
366
+ self.nodes_map_loads = coo_matrix(
367
+ (np.ones(len(self.loads)), (self.loads['#bus_id'], self.loads['#id'])),
368
+ shape=(len(self.nodes), len(self.loads))
369
+ ).toarray()
370
+ return self.nodes_map_loads
371
+
372
+ def get_nodes_flexloads_map(self) -> np.ndarray:
373
+ """Get node-to-flexloads mapping matrix
374
+
375
+ Returns:
376
+ node-to-flexloads mapping matrix
377
+ """
378
+ if not hasattr(self, 'init_flag') or not self.init_flag:
379
+ self.init()
380
+
381
+ self.nodes_map_flexloads = coo_matrix(
382
+ (np.ones(len(self.flexloads)), (self.flexloads['#bus_id'], self.flexloads['#id'])),
383
+ shape=(len(self.nodes), len(self.flexloads))
384
+ ).toarray()
385
+ return self.nodes_map_flexloads
386
+
387
+ # =============================================================================
388
+ # Utility methods
389
+ # =============================================================================
390
+
391
+ def length(self) -> List[int]:
392
+ """Get lengths of each data table
393
+
394
+ Returns:
395
+ [nodes, units, lines, loads]
396
+ """
397
+ return [len(getattr(self, v)) for v in ["nodes", "units", "lines", "loads"]]
398
+
399
+ def to_str(self) -> List[str]:
400
+ """Convert to string representation
401
+
402
+ Returns:
403
+ list of string representations of tables
404
+ """
405
+ v_list = [getattr(self, v).set_label(v) for v in ["nodes", "units", "lines", "loads"]]
406
+ v_str_list = [str(v) for v in v_list]
407
+ return v_str_list
408
+
409
+ # =============================================================================
410
+ # Cost calculation methods
411
+ # =============================================================================
412
+ def cal_unit_piecewise_by_margin_cost(self, band_num: int = 5) -> np.ndarray:
413
+ """Compute piecewise linear parameters based on marginal cost
414
+
415
+ Args:
416
+ band_num: number of segments
417
+
418
+ Returns:
419
+ piecewise cost matrix
420
+ """
421
+ a, b, c = self.units['mc_a'], self.units['mc_b'], self.units['mc_c']
422
+ p_max, p_min = self.units['p_max'], self.units['p_min']
423
+
424
+ # Compute segment ratios
425
+ xs = np.tile((p_max - p_min) / p_max / band_num, (band_num, 1)).T
426
+ ys = []
427
+
428
+ # Compute marginal cost per segment
429
+ for x in np.cumsum(xs, 1).T:
430
+ y = list(a * (p_min + p_max * x) ** 2 + b * (p_min + p_max * x) + c)
431
+ # Ensure costs are monotonically increasing
432
+ if len(ys) > 0:
433
+ for i in range(len(y)):
434
+ if y[i] <= ys[-1][i]:
435
+ y[i] = ys[-1][i] + 1
436
+ ys.append(y)
437
+
438
+ return np.array(ys).T
439
+
440
+ def cal_units_cost(self, units_power: Union[List, np.ndarray]) -> np.ndarray:
441
+ """Compute generation cost for units
442
+
443
+ Args:
444
+ units_power: unit output array
445
+
446
+ Returns:
447
+ unit generation cost array
448
+ """
449
+ units_power = np.array(units_power) if isinstance(units_power, list) else units_power
450
+ units_cost = (
451
+ (self.units['mc_a'].values / 3) * units_power ** 3 +
452
+ (self.units['mc_b'].values / 2) * units_power ** 2 +
453
+ self.units['mc_c'].values * units_power
454
+ )
455
+ return units_cost
456
+
457
+ # =============================================================================
458
+ # Graph connectivity methods
459
+ # =============================================================================
460
+
461
+ def is_connected_graph(self) -> bool:
462
+ """Check if the power network forms a connected graph.
463
+
464
+ Returns:
465
+ True if the graph is connected, False otherwise
466
+ """
467
+ return len(self.get_graph_components()) <= 1
468
+
469
+ def get_graph_components(self) -> List[List]:
470
+ """Get all connected components of the power network graph.
471
+
472
+ Only in-service lines (status == 1, or missing status column) are
473
+ considered.
474
+
475
+ Returns:
476
+ List of connected components, each component is a list of node IDs
477
+ """
478
+ if len(self.nodes) == 0:
479
+ return []
480
+
481
+ adjacency: dict = {node_id: [] for node_id in self.nodes['id'].values}
482
+
483
+ for _, line in self.lines.iterrows():
484
+ if line.get('status', 1) == 1:
485
+ from_bus, to_bus = line['from'], line['to']
486
+ adjacency[from_bus].append(to_bus)
487
+ adjacency[to_bus].append(from_bus)
488
+
489
+ visited: set = set()
490
+ components: List[List] = []
491
+
492
+ for node_id in self.nodes['id'].values:
493
+ if node_id not in visited:
494
+ component = []
495
+ queue = [node_id]
496
+ visited.add(node_id)
497
+ while queue:
498
+ current = queue.pop(0)
499
+ component.append(current)
500
+ for neighbor in adjacency[current]:
501
+ if neighbor not in visited:
502
+ visited.add(neighbor)
503
+ queue.append(neighbor)
504
+ components.append(component)
505
+
506
+ return components
507
+
508
+ def get_3ph_matrix(self, config: pd.Series, matrix_type: str = 'Z') -> np.ndarray:
509
+ """Extract 3x3 matrix from line configuration
510
+
511
+ For three-phase systems, extract impedance (Z), capacitance (C), or other
512
+ 3x3 matrices from line configuration data.
513
+
514
+ Args:
515
+ config: Line configuration series with elements like Z11, Z12, ..., Z33
516
+ matrix_type: Type of matrix to extract ('Z' for impedance, 'C' for capacitance, etc.)
517
+
518
+ Returns:
519
+ 3x3 numpy array (complex128 for 'Z', float64 for others)
520
+
521
+ Raises:
522
+ AttributeError: If line_config does not exist for this case
523
+ KeyError: If required matrix elements are not in config
524
+
525
+ Example:
526
+ >>> config = case.line_config.iloc[0]
527
+ >>> z_matrix = case.get_3ph_matrix(config, 'Z')
528
+ >>> z_matrix.shape
529
+ (3, 3)
530
+ """
531
+ if not hasattr(self, 'line_config'):
532
+ raise AttributeError(
533
+ f"Case {self.name} does not have 'line_config' attribute. "
534
+ "This method is only available for three-phase cases."
535
+ )
536
+
537
+ # Create matrix with appropriate data type
538
+ dtype = np.complex128 if matrix_type == 'Z' else np.float64
539
+
540
+ # Generate all element names: Z11, Z12, ..., Z33
541
+ element_names = [f'{matrix_type}{i + 1}{j + 1}' for i in range(3) for j in range(3)]
542
+
543
+ # Validate all elements exist (fail fast)
544
+ missing_elements = [name for name in element_names if name not in config.index]
545
+ if missing_elements:
546
+ raise KeyError(
547
+ f"Elements {missing_elements} not found in config. "
548
+ f"Available elements: {list(config.index)}"
549
+ )
550
+
551
+ # Extract values and reshape to 3x3 matrix (vectorized)
552
+ matrix_3x3 = np.array([config[name] for name in element_names], dtype=dtype).reshape(3, 3)
553
+
554
+ return matrix_3x3
555
+
556
+ def get_line_impedance_matrices(self, reshape_2d: bool = False) -> np.ndarray:
557
+ """Get impedance matrices for all lines in three-phase system
558
+
559
+ For each line, extract its 3x3 impedance matrix from line_config and
560
+ multiply by line length to get total impedance.
561
+
562
+ Args:
563
+ reshape_2d: If True, reshape output to (n_lines * 3, 3) instead of (n_lines, 3, 3)
564
+
565
+ Returns:
566
+ numpy array of shape (n_lines, 3, 3) or (n_lines * 3, 3) if reshape_2d=True
567
+ Each element is the total impedance matrix (config impedance * length)
568
+
569
+ Raises:
570
+ AttributeError: If line_config or lines does not exist
571
+
572
+ Example:
573
+ >>> z_matrices = case.get_line_impedance_matrices()
574
+ >>> z_matrices.shape
575
+ (113, 3, 3) # For 113 lines
576
+ >>> z_matrices_2d = case.get_line_impedance_matrices(reshape_2d=True)
577
+ >>> z_matrices_2d.shape
578
+ (339, 3) # 113 * 3 rows, 3 columns
579
+ """
580
+ if not hasattr(self, 'line_config'):
581
+ raise AttributeError(
582
+ f"Case {self.name} does not have 'line_config' attribute. "
583
+ "This method is only available for three-phase cases."
584
+ )
585
+
586
+ if not hasattr(self, 'lines'):
587
+ raise AttributeError(
588
+ f"Case {self.name} does not have 'lines' attribute."
589
+ )
590
+
591
+ # Build impedance matrices using list comprehension
592
+ z_matrices = np.array([
593
+ self.get_3ph_matrix(self.line_config.loc[int(line['config_name'])]) * line['length']
594
+ for _, line in self.lines.iterrows()
595
+ ])
596
+
597
+ # Optionally reshape to 2D
598
+ if reshape_2d:
599
+ return z_matrices.reshape(-1, 3)
600
+
601
+ return z_matrices
602
+
powergrid_case/distribution/Case118zh.py ADDED
@@ -0,0 +1,452 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Power System Case: 118zh
2
+
3
+ Data Source: MATPOWER case file
4
+ Base MVA: 10.0 MVA
5
+ Base kV: 11.0 kV
6
+
7
+ Unit conversions applied:
8
+ - Pd/Qd converted from kW/kVar to MW/MVAr (divided by 1000)
9
+ - Pd converted from kVA to MW/MVAr (divided by 1000)
10
+ - r/x converted from Ohms to p.u. (Z_pu = Z_ohm * Sbase / Vbase^2)
11
+
12
+
13
+ Nodes (bus) columns:
14
+ id, type, Pd, Qd, Gs, Bs, Vm, Va, baseKV, Vmax, Vmin
15
+ - type: 1=PQ, 2=PV, 3=Slack
16
+ - Pd/Qd: Active/Reactive power demand (MW/MVAr)
17
+ - Gs/Bs: Shunt conductance/susceptance (MW/MVAr at V=1.0 p.u.)
18
+ - Vm: Voltage magnitude (p.u.)
19
+ - Va: Voltage angle (degrees)
20
+ - baseKV: Base voltage (kV)
21
+ - Vmax/Vmin: Voltage limits (p.u.)
22
+
23
+ Units (generators) columns:
24
+ id, bus_id, Pg, Qg, Qmax, Qmin, Vg, mBase, status, Pmax, Pmin, mc_a, mc_b, mc_c
25
+ - Pg/Qg: Active/Reactive power output (MW/MVAr)
26
+ - Qmax/Qmin: Reactive power limits (MVAr)
27
+ - Vg: Voltage setpoint (p.u.)
28
+ - mBase: Machine base (MVA)
29
+ - status: >0 in-service, <=0 out-of-service
30
+ - Pmax/Pmin: Active power limits (MW)
31
+ - mc_a/mc_b/mc_c: Marginal cost coefficients (quadratic)
32
+
33
+ Lines (branches) columns:
34
+ id, from, to, r, x, b, rateA, ratio, angle, status, floor, cap
35
+ - r/x: Resistance/Reactance (p.u.)
36
+ - b: Line charging susceptance (p.u.)
37
+ - rateA: Long-term rating (MVA)
38
+ - ratio: Transformer tap ratio (0 for line)
39
+ - angle: Transformer phase shift (degrees)
40
+ - status: 1=in-service, 0=out-of-service
41
+ - floor/cap: Power flow limits (MW)
42
+
43
+ Loads columns:
44
+ id, bus_id, Pd, Qd, mc_a, mc_b, mc_c, d_max, d_min
45
+ - Pd/Qd: Active/Reactive power demand (MW/MVAr)
46
+ - mc_a/mc_b/mc_c: Marginal utility coefficients
47
+ - d_max/d_min: Demand limits (MW)
48
+ """
49
+ from math import inf
50
+
51
+ from powerzoo.case.CaseBase import ClearCase, DataFrame
52
+
53
+
54
+ class Case118zh(ClearCase):
55
+ GRID_TYPE = "distribution"
56
+ BUS_COUNT = 118
57
+ VOLTAGE_LEVEL = "MV"
58
+ SOURCE = "MATPOWER"
59
+ DESCRIPTION = "118-bus Zhang distribution system"
60
+
61
+ def __init__(self, *args, **kwargs):
62
+ # System base values
63
+ self.baseMVA = 10.0
64
+ self.baseKV = 11.0
65
+
66
+ # Node (bus) data
67
+ self.nodes = DataFrame(
68
+ ['id', 'type', 'Pd', 'Qd', 'Gs', 'Bs', 'Vm', 'Va', 'baseKV', 'Vmax', 'Vmin'],
69
+ [[1.0, 3.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 11.0, 1.0, 1.0],
70
+ [2.0, 1.0, 0.13384000000000001, 0.10114, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
71
+ [3.0, 1.0, 0.016214, 0.011292, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
72
+ [4.0, 1.0, 0.034315, 0.021845, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
73
+ [5.0, 1.0, 0.07301600000000001, 0.06360199999999999, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
74
+ [6.0, 1.0, 0.1442, 0.068604, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
75
+ [7.0, 1.0, 0.10447, 0.061725, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
76
+ [8.0, 1.0, 0.028547, 0.011503, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
77
+ [9.0, 1.0, 0.08756, 0.051073, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
78
+ [10.0, 1.0, 0.1982, 0.10676999999999999, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
79
+ [11.0, 1.0, 0.1468, 0.07599500000000001, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
80
+ [12.0, 1.0, 0.02604, 0.018687000000000002, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
81
+ [13.0, 1.0, 0.0521, 0.023219999999999998, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
82
+ [14.0, 1.0, 0.1419, 0.1175, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
83
+ [15.0, 1.0, 0.02187, 0.02879, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
84
+ [16.0, 1.0, 0.03337, 0.026449999999999998, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
85
+ [17.0, 1.0, 0.03243, 0.02523, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
86
+ [18.0, 1.0, 0.020234000000000002, 0.011906, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
87
+ [19.0, 1.0, 0.15694, 0.078523, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
88
+ [20.0, 1.0, 0.5462899999999999, 0.3514, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
89
+ [21.0, 1.0, 0.18031, 0.16419999999999998, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
90
+ [22.0, 1.0, 0.093167, 0.054594000000000004, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
91
+ [23.0, 1.0, 0.08518, 0.03965, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
92
+ [24.0, 1.0, 0.1681, 0.095178, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
93
+ [25.0, 1.0, 0.12511, 0.15022, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
94
+ [26.0, 1.0, 0.016030000000000003, 0.02462, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
95
+ [27.0, 1.0, 0.02603, 0.02462, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
96
+ [28.0, 1.0, 0.59456, 0.52262, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
97
+ [29.0, 1.0, 0.12062, 0.059116999999999996, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
98
+ [30.0, 1.0, 0.10238, 0.099554, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
99
+ [31.0, 1.0, 0.5134, 0.3185, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
100
+ [32.0, 1.0, 0.47525, 0.45614, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
101
+ [33.0, 1.0, 0.15143, 0.13679, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
102
+ [34.0, 1.0, 0.20538, 0.083302, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
103
+ [35.0, 1.0, 0.1316, 0.093082, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
104
+ [36.0, 1.0, 0.44839999999999997, 0.36979, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
105
+ [37.0, 1.0, 0.44051999999999997, 0.32164, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
106
+ [38.0, 1.0, 0.11254, 0.055134, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
107
+ [39.0, 1.0, 0.053963000000000004, 0.038998, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
108
+ [40.0, 1.0, 0.39305, 0.3426, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
109
+ [41.0, 1.0, 0.32674000000000003, 0.27856000000000003, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
110
+ [42.0, 1.0, 0.53626, 0.24024, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
111
+ [43.0, 1.0, 0.076247, 0.066562, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
112
+ [44.0, 1.0, 0.053520000000000005, 0.03976, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
113
+ [45.0, 1.0, 0.040328, 0.031964, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
114
+ [46.0, 1.0, 0.039653, 0.020758, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
115
+ [47.0, 1.0, 0.06619499999999999, 0.042360999999999996, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
116
+ [48.0, 1.0, 0.073904, 0.051653, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
117
+ [49.0, 1.0, 0.11477, 0.057965, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
118
+ [50.0, 1.0, 0.91837, 1.2050999999999998, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
119
+ [51.0, 1.0, 0.21030000000000001, 0.14665999999999998, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
120
+ [52.0, 1.0, 0.06668, 0.056608, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
121
+ [53.0, 1.0, 0.042207, 0.040184, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
122
+ [54.0, 1.0, 0.43374, 0.28341000000000005, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
123
+ [55.0, 1.0, 0.0621, 0.02686, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
124
+ [56.0, 1.0, 0.09246, 0.08838, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
125
+ [57.0, 1.0, 0.085188, 0.055436, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
126
+ [58.0, 1.0, 0.3453, 0.3324, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
127
+ [59.0, 1.0, 0.0225, 0.016829999999999998, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
128
+ [60.0, 1.0, 0.080551, 0.049156, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
129
+ [61.0, 1.0, 0.09586, 0.09075799999999999, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
130
+ [62.0, 1.0, 0.06292, 0.047700000000000006, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
131
+ [63.0, 1.0, 0.4788, 0.46374, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
132
+ [64.0, 1.0, 0.12093999999999999, 0.052006000000000004, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
133
+ [65.0, 1.0, 0.13911, 0.10034, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
134
+ [66.0, 1.0, 0.39177999999999996, 0.1935, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
135
+ [67.0, 1.0, 0.027741, 0.026713, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
136
+ [68.0, 1.0, 0.052814, 0.025257, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
137
+ [69.0, 1.0, 0.06689, 0.038713000000000004, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
138
+ [70.0, 1.0, 0.4675, 0.39514, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
139
+ [71.0, 1.0, 0.59485, 0.23974, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
140
+ [72.0, 1.0, 0.1325, 0.084363, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
141
+ [73.0, 1.0, 0.052698999999999996, 0.022482, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
142
+ [74.0, 1.0, 0.86979, 0.614775, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
143
+ [75.0, 1.0, 0.031349, 0.029817, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
144
+ [76.0, 1.0, 0.19238999999999998, 0.12243000000000001, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
145
+ [77.0, 1.0, 0.06575, 0.04537, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
146
+ [78.0, 1.0, 0.23815, 0.22322, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
147
+ [79.0, 1.0, 0.29455000000000003, 0.16247, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
148
+ [80.0, 1.0, 0.48557, 0.43792000000000003, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
149
+ [81.0, 1.0, 0.24353, 0.18303, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
150
+ [82.0, 1.0, 0.24353, 0.18303, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
151
+ [83.0, 1.0, 0.13425, 0.11929000000000001, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
152
+ [84.0, 1.0, 0.02271, 0.027960000000000002, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
153
+ [85.0, 1.0, 0.049513, 0.026515, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
154
+ [86.0, 1.0, 0.38377999999999995, 0.25716, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
155
+ [87.0, 1.0, 0.049640000000000004, 0.0206, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
156
+ [88.0, 1.0, 0.022473, 0.011805999999999999, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
157
+ [89.0, 1.0, 0.06293, 0.04296, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
158
+ [90.0, 1.0, 0.030670000000000003, 0.03493, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
159
+ [91.0, 1.0, 0.06253, 0.06679, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
160
+ [92.0, 1.0, 0.11456999999999999, 0.081748, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
161
+ [93.0, 1.0, 0.081292, 0.066526, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
162
+ [94.0, 1.0, 0.031733, 0.015960000000000002, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
163
+ [95.0, 1.0, 0.03332, 0.06048, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
164
+ [96.0, 1.0, 0.53128, 0.22485, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
165
+ [97.0, 1.0, 0.50703, 0.36742, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
166
+ [98.0, 1.0, 0.02639, 0.011699999999999999, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
167
+ [99.0, 1.0, 0.04599, 0.030392, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
168
+ [100.0, 1.0, 0.10066, 0.047572, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
169
+ [101.0, 1.0, 0.45648, 0.3503, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
170
+ [102.0, 1.0, 0.5225599999999999, 0.44929, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
171
+ [103.0, 1.0, 0.40843, 0.16846, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
172
+ [104.0, 1.0, 0.14148, 0.13425, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
173
+ [105.0, 1.0, 0.10443000000000001, 0.066024, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
174
+ [106.0, 1.0, 0.096793, 0.083647, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
175
+ [107.0, 1.0, 0.49392, 0.41934, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
176
+ [108.0, 1.0, 0.22538, 0.13588, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
177
+ [109.0, 1.0, 0.5092099999999999, 0.38721, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
178
+ [110.0, 1.0, 0.1885, 0.17346, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
179
+ [111.0, 1.0, 0.91803, 0.89855, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
180
+ [112.0, 1.0, 0.30507999999999996, 0.21537, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
181
+ [113.0, 1.0, 0.054380000000000005, 0.04097, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
182
+ [114.0, 1.0, 0.21114, 0.19290000000000002, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
183
+ [115.0, 1.0, 0.067009, 0.053336, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
184
+ [116.0, 1.0, 0.16207, 0.090321, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
185
+ [117.0, 1.0, 0.048784999999999995, 0.029155999999999998, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9],
186
+ [118.0, 1.0, 0.0339, 0.01898, 0.0, 0.0, 1.0, 0.0, 11.0, 1.1, 0.9]])
187
+
188
+ # Generator (unit) data
189
+ self.units = DataFrame(
190
+ ['id', 'bus_id', 'Pg', 'Qg', 'Qmax', 'Qmin', 'Vg', 'mBase', 'status', 'Pmax', 'Pmin', 'mc_a', 'mc_b', 'mc_c', 'p_max', 'p_min'],
191
+ [[1.0, 1.0, 0.0, 0.0, 10.0, -10.0, 1.0, 100.0, 1.0, 10.0, 0.0, 0.0, 0.0, 20.0, 10.0, 0.0]])
192
+
193
+ # Branch (line) data
194
+ self.lines = DataFrame(
195
+ ['id', 'from', 'to', 'r', 'x', 'b', 'rateA', 'ratio', 'angle', 'status', 'floor', 'cap'],
196
+ [[1.0, 1.0, 2.0, 0.0029752066115702478, 0.0010710743801652892, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
197
+ [2.0, 2.0, 3.0, 0.0027272727272727275, 0.0009818181818181818, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
198
+ [3.0, 2.0, 4.0, 0.00371900826446281, 0.0013388429752066115, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
199
+ [4.0, 4.0, 5.0, 0.0012396694214876034, 0.004462809917355372, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
200
+ [5.0, 5.0, 6.0, 0.0012396694214876034, 0.004462809917355372, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
201
+ [6.0, 6.0, 7.0, 0.0012396694214876034, 0.0010330578512396695, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
202
+ [7.0, 7.0, 8.0, 0.0014876033057851239, 0.0011570247933884298, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
203
+ [8.0, 8.0, 9.0, 0.0017355371900826448, 0.005206611570247934, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
204
+ [9.0, 2.0, 10.0, 0.01371900826446281, 0.011107438016528925, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
205
+ [10.0, 10.0, 11.0, 0.009256198347107438, 0.006520661157024793, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
206
+ [11.0, 11.0, 12.0, 0.015454545454545455, 0.025867768595041325, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
207
+ [12.0, 12.0, 13.0, 0.011735537190082643, 0.012495867768595043, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
208
+ [13.0, 13.0, 14.0, 0.01487603305785124, 0.009752066115702479, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
209
+ [14.0, 14.0, 15.0, 0.012396694214876033, 0.00371900826446281, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
210
+ [15.0, 15.0, 16.0, 0.01322314049586777, 0.01487603305785124, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
211
+ [16.0, 16.0, 17.0, 0.012975206611570249, 0.01413223140495868, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
212
+ [17.0, 11.0, 18.0, 0.018016528925619835, 0.023553719008264463, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
213
+ [18.0, 18.0, 19.0, 0.009752066115702479, 0.015289256198347107, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
214
+ [19.0, 19.0, 20.0, 0.01322314049586777, 0.01619834710743802, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
215
+ [20.0, 20.0, 21.0, 0.009917355371900827, 0.015619834710743801, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
216
+ [21.0, 21.0, 22.0, 0.009917355371900827, 0.006520661157024793, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
217
+ [22.0, 22.0, 23.0, 0.1165289256198347, 0.05975206611570248, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
218
+ [23.0, 23.0, 24.0, 0.02421487603305785, 0.011140495867768595, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
219
+ [24.0, 24.0, 25.0, 0.010991735537190083, 0.00859504132231405, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
220
+ [25.0, 25.0, 26.0, 0.014710743801652892, 0.011074380165289258, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
221
+ [26.0, 26.0, 27.0, 0.014710743801652892, 0.011074380165289258, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
222
+ [27.0, 4.0, 28.0, 0.0012396694214876034, 0.0024462809917355373, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
223
+ [28.0, 28.0, 29.0, 0.0009917355371900827, 0.00228099173553719, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
224
+ [29.0, 29.0, 30.0, 0.009917355371900827, 0.022859504132231406, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
225
+ [30.0, 30.0, 31.0, 0.017355371900826446, 0.020082644628099174, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
226
+ [31.0, 31.0, 32.0, 0.009917355371900827, 0.004462809917355372, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
227
+ [32.0, 32.0, 33.0, 0.014710743801652892, 0.019338842975206612, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
228
+ [33.0, 33.0, 34.0, 0.014710743801652892, 0.019338842975206612, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
229
+ [34.0, 34.0, 35.0, 0.012727272727272728, 0.013388429752066116, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
230
+ [35.0, 30.0, 36.0, 0.015454545454545455, 0.0215702479338843, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
231
+ [36.0, 36.0, 37.0, 0.010991735537190083, 0.008181818181818182, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
232
+ [37.0, 29.0, 38.0, 0.027272727272727275, 0.01603305785123967, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
233
+ [38.0, 38.0, 39.0, 0.0256198347107438, 0.01603305785123967, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
234
+ [39.0, 39.0, 40.0, 0.010743801652892562, 0.01603305785123967, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
235
+ [40.0, 40.0, 41.0, 0.023140495867768597, 0.012396694214876033, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
236
+ [41.0, 41.0, 42.0, 0.09752066115702479, 0.07024793388429752, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
237
+ [42.0, 42.0, 43.0, 0.03471074380165289, 0.020132231404958678, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
238
+ [43.0, 43.0, 44.0, 0.022314049586776862, 0.008033057851239669, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
239
+ [44.0, 44.0, 45.0, 0.028016528925619837, 0.010090909090909091, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
240
+ [45.0, 45.0, 46.0, 0.022314049586776862, 0.014702479338842975, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
241
+ [46.0, 35.0, 47.0, 0.017355371900826446, 0.011429752066115703, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
242
+ [47.0, 47.0, 48.0, 0.009917355371900827, 0.006520661157024793, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
243
+ [48.0, 48.0, 49.0, 0.012396694214876033, 0.00815702479338843, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
244
+ [49.0, 49.0, 50.0, 0.012396694214876033, 0.00815702479338843, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
245
+ [50.0, 50.0, 51.0, 0.019834710743801654, 0.013066115702479338, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
246
+ [51.0, 51.0, 52.0, 0.009917355371900827, 0.006520661157024793, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
247
+ [52.0, 52.0, 53.0, 0.03347107438016529, 0.012049586776859505, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
248
+ [53.0, 53.0, 54.0, 0.03347107438016529, 0.012049586776859505, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
249
+ [54.0, 29.0, 55.0, 0.03231404958677686, 0.01165289256198347, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
250
+ [55.0, 55.0, 56.0, 0.03355371900826447, 0.012074380165289257, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
251
+ [56.0, 56.0, 57.0, 0.03355371900826447, 0.012074380165289257, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
252
+ [57.0, 57.0, 58.0, 0.05834710743801653, 0.04513223140495868, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
253
+ [58.0, 58.0, 59.0, 0.027933884297520663, 0.010066115702479339, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
254
+ [59.0, 59.0, 60.0, 0.027933884297520663, 0.010066115702479339, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
255
+ [60.0, 60.0, 61.0, 0.017107438016528927, 0.006173553719008265, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
256
+ [61.0, 61.0, 62.0, 0.02041322314049587, 0.07373553719008265, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
257
+ [62.0, 1.0, 63.0, 0.0023140495867768596, 0.0034545454545454545, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
258
+ [63.0, 63.0, 64.0, 0.009669421487603306, 0.01666115702479339, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
259
+ [64.0, 64.0, 65.0, 0.021074380165289258, 0.007586776859504133, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
260
+ [65.0, 65.0, 66.0, 0.017355371900826446, 0.006272727272727273, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
261
+ [66.0, 66.0, 67.0, 0.031652892561983476, 0.011404958677685952, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
262
+ [67.0, 67.0, 68.0, 0.04165289256198347, 0.027297520661157024, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
263
+ [68.0, 68.0, 69.0, 0.03355371900826447, 0.012074380165289257, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
264
+ [69.0, 69.0, 70.0, 0.07950413223140496, 0.06289256198347108, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
265
+ [70.0, 70.0, 71.0, 0.013636363636363637, 0.0049586776859504135, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
266
+ [71.0, 71.0, 72.0, 0.025041322314049586, 0.009024793388429753, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
267
+ [72.0, 72.0, 73.0, 0.025041322314049586, 0.009024793388429753, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
268
+ [73.0, 73.0, 74.0, 0.01702479338842975, 0.011900826446280991, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
269
+ [74.0, 74.0, 75.0, 0.01925619834710744, 0.006942148760330579, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
270
+ [75.0, 75.0, 76.0, 0.04884297520661157, 0.014652892561983473, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
271
+ [76.0, 76.0, 77.0, 0.010413223140495868, 0.0037438016528925622, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
272
+ [77.0, 64.0, 78.0, 0.046198347107438024, 0.030471074380165292, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
273
+ [78.0, 78.0, 79.0, 0.015371900826446282, 0.010140495867768596, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
274
+ [79.0, 79.0, 80.0, 0.015371900826446282, 0.010140495867768596, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
275
+ [80.0, 80.0, 81.0, 0.021487603305785124, 0.011487603305785125, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
276
+ [81.0, 81.0, 82.0, 0.012727272727272728, 0.012231404958677685, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
277
+ [82.0, 82.0, 83.0, 0.01900826446280992, 0.010578512396694216, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
278
+ [83.0, 83.0, 84.0, 0.020826446280991735, 0.008760330578512396, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
279
+ [84.0, 84.0, 85.0, 0.01487603305785124, 0.012231404958677685, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
280
+ [85.0, 79.0, 86.0, 0.01322314049586777, 0.015041322314049586, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
281
+ [86.0, 86.0, 87.0, 0.01652892561983471, 0.01900826446280992, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
282
+ [87.0, 87.0, 88.0, 0.01322314049586777, 0.03247933884297521, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
283
+ [88.0, 65.0, 89.0, 0.05528925619834711, 0.01993388429752066, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
284
+ [89.0, 89.0, 90.0, 0.021983471074380166, 0.010140495867768596, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
285
+ [90.0, 90.0, 91.0, 0.021983471074380166, 0.010140495867768596, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
286
+ [91.0, 91.0, 92.0, 0.021983471074380166, 0.010140495867768596, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
287
+ [92.0, 92.0, 93.0, 0.021983471074380166, 0.010140495867768596, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
288
+ [93.0, 93.0, 94.0, 0.01925619834710744, 0.00950413223140496, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
289
+ [94.0, 94.0, 95.0, 0.040991735537190085, 0.011404958677685952, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
290
+ [95.0, 91.0, 96.0, 0.01619834710743802, 0.01487603305785124, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
291
+ [96.0, 96.0, 97.0, 0.01619834710743802, 0.01487603305785124, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
292
+ [97.0, 97.0, 98.0, 0.015421487603305785, 0.010082644628099173, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
293
+ [98.0, 98.0, 99.0, 0.006165289256198347, 0.02628099173553719, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
294
+ [99.0, 1.0, 100.0, 0.005165289256198347, 0.002190082644628099, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
295
+ [100.0, 100.0, 101.0, 0.012404958677685951, 0.019338842975206612, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
296
+ [101.0, 101.0, 102.0, 0.011132231404958677, 0.0073388429752066124, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
297
+ [102.0, 102.0, 103.0, 0.01906611570247934, 0.00994214876033058, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
298
+ [103.0, 103.0, 104.0, 0.03694214876033058, 0.013289256198347107, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
299
+ [104.0, 104.0, 105.0, 0.013487603305785125, 0.004859504132231405, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
300
+ [105.0, 105.0, 106.0, 0.027272727272727275, 0.008181818181818182, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
301
+ [106.0, 106.0, 107.0, 0.012892561983471074, 0.004636363636363636, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
302
+ [107.0, 107.0, 108.0, 0.03156198347107438, 0.011355371900826446, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
303
+ [108.0, 108.0, 109.0, 0.013438016528925619, 0.004834710743801653, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
304
+ [109.0, 109.0, 110.0, 0.03156198347107438, 0.011355371900826446, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
305
+ [110.0, 110.0, 111.0, 0.020206611570247935, 0.0072644628099173564, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
306
+ [111.0, 110.0, 112.0, 0.01725619834710744, 0.006223140495867769, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
307
+ [112.0, 112.0, 113.0, 0.019016528925619836, 0.00684297520661157, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
308
+ [113.0, 100.0, 114.0, 0.050429752066115704, 0.018148760330578512, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
309
+ [114.0, 114.0, 115.0, 0.015421487603305785, 0.010495867768595043, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
310
+ [115.0, 115.0, 116.0, 0.03084297520661157, 0.020330578512396693, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
311
+ [116.0, 116.0, 117.0, 0.03347107438016529, 0.030330578512396695, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
312
+ [117.0, 117.0, 118.0, 0.04041322314049587, 0.036198347107438016, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
313
+ [118.0, 46.0, 27.0, 0.04345454545454546, 0.024173553719008263, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
314
+ [119.0, 17.0, 27.0, 0.04345454545454546, 0.02409917355371901, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
315
+ [120.0, 8.0, 24.0, 0.03530578512396695, 0.012719008264462811, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
316
+ [121.0, 54.0, 43.0, 0.03966942148760331, 0.014280991735537192, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
317
+ [122.0, 62.0, 49.0, 0.02975206611570248, 0.010710743801652892, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
318
+ [123.0, 37.0, 62.0, 0.047107438016528926, 0.04727272727272727, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
319
+ [124.0, 9.0, 40.0, 0.043801652892561986, 0.027669421487603305, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
320
+ [125.0, 58.0, 96.0, 0.032702479338842974, 0.011776859504132231, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
321
+ [126.0, 73.0, 91.0, 0.05619834710743802, 0.053553719008264465, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
322
+ [127.0, 88.0, 75.0, 0.0335702479338843, 0.01209917355371901, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
323
+ [128.0, 99.0, 77.0, 0.03823140495867769, 0.013834710743801652, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
324
+ [129.0, 108.0, 83.0, 0.05380165289256199, 0.019338842975206612, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
325
+ [130.0, 105.0, 86.0, 0.06714876033057851, 0.024173553719008263, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
326
+ [131.0, 110.0, 118.0, 0.058586776859504135, 0.02109917355371901, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
327
+ [132.0, 25.0, 35.0, 0.04132231404958678, 0.04132231404958678, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]])
328
+
329
+ # Load data
330
+ self.loads = DataFrame(
331
+ ['id', 'bus_id', 'Pd', 'Qd', 'mc_a', 'mc_b', 'mc_c', 'd_max', 'd_min'],
332
+ [[1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
333
+ [2.0, 2.0, 0.13384000000000001, 0.10114, 0.0, 0.0, 0.0, 0.13384000000000001, 0.13384000000000001],
334
+ [3.0, 3.0, 0.016214, 0.011292, 0.0, 0.0, 0.0, 0.016214, 0.016214],
335
+ [4.0, 4.0, 0.034315, 0.021845, 0.0, 0.0, 0.0, 0.034315, 0.034315],
336
+ [5.0, 5.0, 0.07301600000000001, 0.06360199999999999, 0.0, 0.0, 0.0, 0.07301600000000001, 0.07301600000000001],
337
+ [6.0, 6.0, 0.1442, 0.068604, 0.0, 0.0, 0.0, 0.1442, 0.1442],
338
+ [7.0, 7.0, 0.10447, 0.061725, 0.0, 0.0, 0.0, 0.10447, 0.10447],
339
+ [8.0, 8.0, 0.028547, 0.011503, 0.0, 0.0, 0.0, 0.028547, 0.028547],
340
+ [9.0, 9.0, 0.08756, 0.051073, 0.0, 0.0, 0.0, 0.08756, 0.08756],
341
+ [10.0, 10.0, 0.1982, 0.10676999999999999, 0.0, 0.0, 0.0, 0.1982, 0.1982],
342
+ [11.0, 11.0, 0.1468, 0.07599500000000001, 0.0, 0.0, 0.0, 0.1468, 0.1468],
343
+ [12.0, 12.0, 0.02604, 0.018687000000000002, 0.0, 0.0, 0.0, 0.02604, 0.02604],
344
+ [13.0, 13.0, 0.0521, 0.023219999999999998, 0.0, 0.0, 0.0, 0.0521, 0.0521],
345
+ [14.0, 14.0, 0.1419, 0.1175, 0.0, 0.0, 0.0, 0.1419, 0.1419],
346
+ [15.0, 15.0, 0.02187, 0.02879, 0.0, 0.0, 0.0, 0.02187, 0.02187],
347
+ [16.0, 16.0, 0.03337, 0.026449999999999998, 0.0, 0.0, 0.0, 0.03337, 0.03337],
348
+ [17.0, 17.0, 0.03243, 0.02523, 0.0, 0.0, 0.0, 0.03243, 0.03243],
349
+ [18.0, 18.0, 0.020234000000000002, 0.011906, 0.0, 0.0, 0.0, 0.020234000000000002, 0.020234000000000002],
350
+ [19.0, 19.0, 0.15694, 0.078523, 0.0, 0.0, 0.0, 0.15694, 0.15694],
351
+ [20.0, 20.0, 0.5462899999999999, 0.3514, 0.0, 0.0, 0.0, 0.5462899999999999, 0.5462899999999999],
352
+ [21.0, 21.0, 0.18031, 0.16419999999999998, 0.0, 0.0, 0.0, 0.18031, 0.18031],
353
+ [22.0, 22.0, 0.093167, 0.054594000000000004, 0.0, 0.0, 0.0, 0.093167, 0.093167],
354
+ [23.0, 23.0, 0.08518, 0.03965, 0.0, 0.0, 0.0, 0.08518, 0.08518],
355
+ [24.0, 24.0, 0.1681, 0.095178, 0.0, 0.0, 0.0, 0.1681, 0.1681],
356
+ [25.0, 25.0, 0.12511, 0.15022, 0.0, 0.0, 0.0, 0.12511, 0.12511],
357
+ [26.0, 26.0, 0.016030000000000003, 0.02462, 0.0, 0.0, 0.0, 0.016030000000000003, 0.016030000000000003],
358
+ [27.0, 27.0, 0.02603, 0.02462, 0.0, 0.0, 0.0, 0.02603, 0.02603],
359
+ [28.0, 28.0, 0.59456, 0.52262, 0.0, 0.0, 0.0, 0.59456, 0.59456],
360
+ [29.0, 29.0, 0.12062, 0.059116999999999996, 0.0, 0.0, 0.0, 0.12062, 0.12062],
361
+ [30.0, 30.0, 0.10238, 0.099554, 0.0, 0.0, 0.0, 0.10238, 0.10238],
362
+ [31.0, 31.0, 0.5134, 0.3185, 0.0, 0.0, 0.0, 0.5134, 0.5134],
363
+ [32.0, 32.0, 0.47525, 0.45614, 0.0, 0.0, 0.0, 0.47525, 0.47525],
364
+ [33.0, 33.0, 0.15143, 0.13679, 0.0, 0.0, 0.0, 0.15143, 0.15143],
365
+ [34.0, 34.0, 0.20538, 0.083302, 0.0, 0.0, 0.0, 0.20538, 0.20538],
366
+ [35.0, 35.0, 0.1316, 0.093082, 0.0, 0.0, 0.0, 0.1316, 0.1316],
367
+ [36.0, 36.0, 0.44839999999999997, 0.36979, 0.0, 0.0, 0.0, 0.44839999999999997, 0.44839999999999997],
368
+ [37.0, 37.0, 0.44051999999999997, 0.32164, 0.0, 0.0, 0.0, 0.44051999999999997, 0.44051999999999997],
369
+ [38.0, 38.0, 0.11254, 0.055134, 0.0, 0.0, 0.0, 0.11254, 0.11254],
370
+ [39.0, 39.0, 0.053963000000000004, 0.038998, 0.0, 0.0, 0.0, 0.053963000000000004, 0.053963000000000004],
371
+ [40.0, 40.0, 0.39305, 0.3426, 0.0, 0.0, 0.0, 0.39305, 0.39305],
372
+ [41.0, 41.0, 0.32674000000000003, 0.27856000000000003, 0.0, 0.0, 0.0, 0.32674000000000003, 0.32674000000000003],
373
+ [42.0, 42.0, 0.53626, 0.24024, 0.0, 0.0, 0.0, 0.53626, 0.53626],
374
+ [43.0, 43.0, 0.076247, 0.066562, 0.0, 0.0, 0.0, 0.076247, 0.076247],
375
+ [44.0, 44.0, 0.053520000000000005, 0.03976, 0.0, 0.0, 0.0, 0.053520000000000005, 0.053520000000000005],
376
+ [45.0, 45.0, 0.040328, 0.031964, 0.0, 0.0, 0.0, 0.040328, 0.040328],
377
+ [46.0, 46.0, 0.039653, 0.020758, 0.0, 0.0, 0.0, 0.039653, 0.039653],
378
+ [47.0, 47.0, 0.06619499999999999, 0.042360999999999996, 0.0, 0.0, 0.0, 0.06619499999999999, 0.06619499999999999],
379
+ [48.0, 48.0, 0.073904, 0.051653, 0.0, 0.0, 0.0, 0.073904, 0.073904],
380
+ [49.0, 49.0, 0.11477, 0.057965, 0.0, 0.0, 0.0, 0.11477, 0.11477],
381
+ [50.0, 50.0, 0.91837, 1.2050999999999998, 0.0, 0.0, 0.0, 0.91837, 0.91837],
382
+ [51.0, 51.0, 0.21030000000000001, 0.14665999999999998, 0.0, 0.0, 0.0, 0.21030000000000001, 0.21030000000000001],
383
+ [52.0, 52.0, 0.06668, 0.056608, 0.0, 0.0, 0.0, 0.06668, 0.06668],
384
+ [53.0, 53.0, 0.042207, 0.040184, 0.0, 0.0, 0.0, 0.042207, 0.042207],
385
+ [54.0, 54.0, 0.43374, 0.28341000000000005, 0.0, 0.0, 0.0, 0.43374, 0.43374],
386
+ [55.0, 55.0, 0.0621, 0.02686, 0.0, 0.0, 0.0, 0.0621, 0.0621],
387
+ [56.0, 56.0, 0.09246, 0.08838, 0.0, 0.0, 0.0, 0.09246, 0.09246],
388
+ [57.0, 57.0, 0.085188, 0.055436, 0.0, 0.0, 0.0, 0.085188, 0.085188],
389
+ [58.0, 58.0, 0.3453, 0.3324, 0.0, 0.0, 0.0, 0.3453, 0.3453],
390
+ [59.0, 59.0, 0.0225, 0.016829999999999998, 0.0, 0.0, 0.0, 0.0225, 0.0225],
391
+ [60.0, 60.0, 0.080551, 0.049156, 0.0, 0.0, 0.0, 0.080551, 0.080551],
392
+ [61.0, 61.0, 0.09586, 0.09075799999999999, 0.0, 0.0, 0.0, 0.09586, 0.09586],
393
+ [62.0, 62.0, 0.06292, 0.047700000000000006, 0.0, 0.0, 0.0, 0.06292, 0.06292],
394
+ [63.0, 63.0, 0.4788, 0.46374, 0.0, 0.0, 0.0, 0.4788, 0.4788],
395
+ [64.0, 64.0, 0.12093999999999999, 0.052006000000000004, 0.0, 0.0, 0.0, 0.12093999999999999, 0.12093999999999999],
396
+ [65.0, 65.0, 0.13911, 0.10034, 0.0, 0.0, 0.0, 0.13911, 0.13911],
397
+ [66.0, 66.0, 0.39177999999999996, 0.1935, 0.0, 0.0, 0.0, 0.39177999999999996, 0.39177999999999996],
398
+ [67.0, 67.0, 0.027741, 0.026713, 0.0, 0.0, 0.0, 0.027741, 0.027741],
399
+ [68.0, 68.0, 0.052814, 0.025257, 0.0, 0.0, 0.0, 0.052814, 0.052814],
400
+ [69.0, 69.0, 0.06689, 0.038713000000000004, 0.0, 0.0, 0.0, 0.06689, 0.06689],
401
+ [70.0, 70.0, 0.4675, 0.39514, 0.0, 0.0, 0.0, 0.4675, 0.4675],
402
+ [71.0, 71.0, 0.59485, 0.23974, 0.0, 0.0, 0.0, 0.59485, 0.59485],
403
+ [72.0, 72.0, 0.1325, 0.084363, 0.0, 0.0, 0.0, 0.1325, 0.1325],
404
+ [73.0, 73.0, 0.052698999999999996, 0.022482, 0.0, 0.0, 0.0, 0.052698999999999996, 0.052698999999999996],
405
+ [74.0, 74.0, 0.86979, 0.614775, 0.0, 0.0, 0.0, 0.86979, 0.86979],
406
+ [75.0, 75.0, 0.031349, 0.029817, 0.0, 0.0, 0.0, 0.031349, 0.031349],
407
+ [76.0, 76.0, 0.19238999999999998, 0.12243000000000001, 0.0, 0.0, 0.0, 0.19238999999999998, 0.19238999999999998],
408
+ [77.0, 77.0, 0.06575, 0.04537, 0.0, 0.0, 0.0, 0.06575, 0.06575],
409
+ [78.0, 78.0, 0.23815, 0.22322, 0.0, 0.0, 0.0, 0.23815, 0.23815],
410
+ [79.0, 79.0, 0.29455000000000003, 0.16247, 0.0, 0.0, 0.0, 0.29455000000000003, 0.29455000000000003],
411
+ [80.0, 80.0, 0.48557, 0.43792000000000003, 0.0, 0.0, 0.0, 0.48557, 0.48557],
412
+ [81.0, 81.0, 0.24353, 0.18303, 0.0, 0.0, 0.0, 0.24353, 0.24353],
413
+ [82.0, 82.0, 0.24353, 0.18303, 0.0, 0.0, 0.0, 0.24353, 0.24353],
414
+ [83.0, 83.0, 0.13425, 0.11929000000000001, 0.0, 0.0, 0.0, 0.13425, 0.13425],
415
+ [84.0, 84.0, 0.02271, 0.027960000000000002, 0.0, 0.0, 0.0, 0.02271, 0.02271],
416
+ [85.0, 85.0, 0.049513, 0.026515, 0.0, 0.0, 0.0, 0.049513, 0.049513],
417
+ [86.0, 86.0, 0.38377999999999995, 0.25716, 0.0, 0.0, 0.0, 0.38377999999999995, 0.38377999999999995],
418
+ [87.0, 87.0, 0.049640000000000004, 0.0206, 0.0, 0.0, 0.0, 0.049640000000000004, 0.049640000000000004],
419
+ [88.0, 88.0, 0.022473, 0.011805999999999999, 0.0, 0.0, 0.0, 0.022473, 0.022473],
420
+ [89.0, 89.0, 0.06293, 0.04296, 0.0, 0.0, 0.0, 0.06293, 0.06293],
421
+ [90.0, 90.0, 0.030670000000000003, 0.03493, 0.0, 0.0, 0.0, 0.030670000000000003, 0.030670000000000003],
422
+ [91.0, 91.0, 0.06253, 0.06679, 0.0, 0.0, 0.0, 0.06253, 0.06253],
423
+ [92.0, 92.0, 0.11456999999999999, 0.081748, 0.0, 0.0, 0.0, 0.11456999999999999, 0.11456999999999999],
424
+ [93.0, 93.0, 0.081292, 0.066526, 0.0, 0.0, 0.0, 0.081292, 0.081292],
425
+ [94.0, 94.0, 0.031733, 0.015960000000000002, 0.0, 0.0, 0.0, 0.031733, 0.031733],
426
+ [95.0, 95.0, 0.03332, 0.06048, 0.0, 0.0, 0.0, 0.03332, 0.03332],
427
+ [96.0, 96.0, 0.53128, 0.22485, 0.0, 0.0, 0.0, 0.53128, 0.53128],
428
+ [97.0, 97.0, 0.50703, 0.36742, 0.0, 0.0, 0.0, 0.50703, 0.50703],
429
+ [98.0, 98.0, 0.02639, 0.011699999999999999, 0.0, 0.0, 0.0, 0.02639, 0.02639],
430
+ [99.0, 99.0, 0.04599, 0.030392, 0.0, 0.0, 0.0, 0.04599, 0.04599],
431
+ [100.0, 100.0, 0.10066, 0.047572, 0.0, 0.0, 0.0, 0.10066, 0.10066],
432
+ [101.0, 101.0, 0.45648, 0.3503, 0.0, 0.0, 0.0, 0.45648, 0.45648],
433
+ [102.0, 102.0, 0.5225599999999999, 0.44929, 0.0, 0.0, 0.0, 0.5225599999999999, 0.5225599999999999],
434
+ [103.0, 103.0, 0.40843, 0.16846, 0.0, 0.0, 0.0, 0.40843, 0.40843],
435
+ [104.0, 104.0, 0.14148, 0.13425, 0.0, 0.0, 0.0, 0.14148, 0.14148],
436
+ [105.0, 105.0, 0.10443000000000001, 0.066024, 0.0, 0.0, 0.0, 0.10443000000000001, 0.10443000000000001],
437
+ [106.0, 106.0, 0.096793, 0.083647, 0.0, 0.0, 0.0, 0.096793, 0.096793],
438
+ [107.0, 107.0, 0.49392, 0.41934, 0.0, 0.0, 0.0, 0.49392, 0.49392],
439
+ [108.0, 108.0, 0.22538, 0.13588, 0.0, 0.0, 0.0, 0.22538, 0.22538],
440
+ [109.0, 109.0, 0.5092099999999999, 0.38721, 0.0, 0.0, 0.0, 0.5092099999999999, 0.5092099999999999],
441
+ [110.0, 110.0, 0.1885, 0.17346, 0.0, 0.0, 0.0, 0.1885, 0.1885],
442
+ [111.0, 111.0, 0.91803, 0.89855, 0.0, 0.0, 0.0, 0.91803, 0.91803],
443
+ [112.0, 112.0, 0.30507999999999996, 0.21537, 0.0, 0.0, 0.0, 0.30507999999999996, 0.30507999999999996],
444
+ [113.0, 113.0, 0.054380000000000005, 0.04097, 0.0, 0.0, 0.0, 0.054380000000000005, 0.054380000000000005],
445
+ [114.0, 114.0, 0.21114, 0.19290000000000002, 0.0, 0.0, 0.0, 0.21114, 0.21114],
446
+ [115.0, 115.0, 0.067009, 0.053336, 0.0, 0.0, 0.0, 0.067009, 0.067009],
447
+ [116.0, 116.0, 0.16207, 0.090321, 0.0, 0.0, 0.0, 0.16207, 0.16207],
448
+ [117.0, 117.0, 0.048784999999999995, 0.029155999999999998, 0.0, 0.0, 0.0, 0.048784999999999995, 0.048784999999999995],
449
+ [118.0, 118.0, 0.0339, 0.01898, 0.0, 0.0, 0.0, 0.0339, 0.0339]])
450
+
451
+ self.real_params = True
452
+ super().__init__(*args, **kwargs)
powergrid_case/distribution/Case123.py ADDED
@@ -0,0 +1,458 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from powerzoo.case.CaseBase import ClearCase, DataFrame
2
+
3
+ class Case123(ClearCase):
4
+ GRID_TYPE = "distribution"
5
+ BUS_COUNT = 123
6
+ PHASE = "3"
7
+ VOLTAGE_LEVEL = "MV"
8
+ SOURCE = "MATPOWER"
9
+ DESCRIPTION = "IEEE 123-bus three-phase distribution"
10
+
11
+ def __init__(self, *args, **kwargs):
12
+ # System base values
13
+ self.baseMVA = 10
14
+ self.baseKV = 4.16
15
+
16
+ # Node (bus) data
17
+ self.nodes = DataFrame(
18
+ ['id', 'type', 'Pd_A', 'Qd_A', 'Pd_B', 'Qd_B', 'Pd_C', 'Qd_C', 'Gs', 'Bs', 'Vm', 'Va', 'baseKV', 'Vmax', 'Vmin'],
19
+ [[1, 3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.0, 1.0],
20
+ [2, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
21
+ [3, 1, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
22
+ [4, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
23
+ [5, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
24
+ [6, 1, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
25
+ [7, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
26
+ [8, 1, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
27
+ [9, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
28
+ [10, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
29
+ [11, 1, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
30
+ [12, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
31
+ [13, 1, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
32
+ [14, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
33
+ [15, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
34
+ [16, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
35
+ [17, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
36
+ [18, 1, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
37
+ [19, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
38
+ [20, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
39
+ [21, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
40
+ [22, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
41
+ [23, 1, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
42
+ [24, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
43
+ [25, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
44
+ [26, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
45
+ [27, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
46
+ [28, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
47
+ [29, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
48
+ [30, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
49
+ [31, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
50
+ [32, 1, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
51
+ [33, 1, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
52
+ [34, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
53
+ [35, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
54
+ [36, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
55
+ [37, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
56
+ [38, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
57
+ [39, 1, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
58
+ [40, 1, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
59
+ [41, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
60
+ [42, 1, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
61
+ [43, 1, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
62
+ [44, 1, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
63
+ [45, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
64
+ [46, 1, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
65
+ [47, 1, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
66
+ [48, 1, 0.0035, 0.0025, 0.0035, 0.0025, 0.0035, 0.0025, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
67
+ [49, 1, 0.007, 0.005, 0.007, 0.005, 0.007, 0.005, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
68
+ [50, 1, 0.0035, 0.0025, 0.007, 0.005, 0.0035, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
69
+ [51, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
70
+ [52, 1, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
71
+ [53, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
72
+ [54, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
73
+ [55, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
74
+ [56, 1, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
75
+ [57, 1, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
76
+ [58, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
77
+ [59, 1, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
78
+ [60, 1, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
79
+ [61, 1, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
80
+ [62, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
81
+ [63, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
82
+ [64, 1, 0.0, 0.0, 0.0075, 0.0035, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
83
+ [65, 1, 0.0035, 0.0025, 0.0035, 0.0025, 0.007, 0.005, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
84
+ [66, 1, 0.0, 0.0, 0.0, 0.0, 0.0075, 0.0035, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
85
+ [67, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
86
+ [68, 1, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
87
+ [69, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
88
+ [70, 1, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
89
+ [71, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
90
+ [72, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
91
+ [73, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
92
+ [74, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
93
+ [75, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
94
+ [76, 1, 0.0105, 0.008, 0.007, 0.005, 0.007, 0.005, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
95
+ [77, 1, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
96
+ [78, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
97
+ [79, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
98
+ [80, 1, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
99
+ [81, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
100
+ [82, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
101
+ [83, 1, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
102
+ [84, 1, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
103
+ [85, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
104
+ [86, 1, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
105
+ [87, 1, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
106
+ [88, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
107
+ [89, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
108
+ [90, 1, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
109
+ [91, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
110
+ [92, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
111
+ [93, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
112
+ [94, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
113
+ [95, 1, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
114
+ [96, 1, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
115
+ [97, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
116
+ [98, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
117
+ [99, 1, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
118
+ [100, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
119
+ [101, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
120
+ [102, 1, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
121
+ [103, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
122
+ [104, 1, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
123
+ [105, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
124
+ [106, 1, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
125
+ [107, 1, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
126
+ [108, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
127
+ [109, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
128
+ [110, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
129
+ [111, 1, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
130
+ [112, 1, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
131
+ [113, 1, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8],
132
+ [114, 1, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 4.16, 1.2, 0.8]])
133
+
134
+ # Generator (unit) data
135
+ self.units = DataFrame(
136
+ ['id', 'bus_id', 'Pg', 'Qg', 'Qmax', 'Qmin', 'Vg', 'mBase', 'status', 'Pmax', 'Pmin', 'mc_a', 'mc_b', 'mc_c', 'p_max', 'p_min'],
137
+ [[1, 114, 0.0, 0.0, 200.0, -200.0, 1.0, 1.0, 1, 200.0, -200.0, 0.0, 0.0, 0.0, 200.0, -200.0]])
138
+
139
+ # Line (branch) data
140
+ self.lines = DataFrame(
141
+ ['id', 'from', 'to', 'config_name', 'length', 'type', 'rateA', 'ratio', 'angle', 'status', 'floor', 'cap'],
142
+ [[1, 1, 2, 1, 0.075758, 'ABCN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
143
+ [2, 2, 3, 10, 0.033144, 'BN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
144
+ [3, 2, 4, 11, 0.047348, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
145
+ [4, 4, 5, 11, 0.037879, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
146
+ [5, 4, 6, 11, 0.061553, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
147
+ [6, 6, 7, 11, 0.047348, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
148
+ [7, 2, 8, 1, 0.056818, 'ABCN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
149
+ [8, 8, 9, 1, 0.037879, 'ABCN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
150
+ [9, 9, 10, 9, 0.042614, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
151
+ [10, 15, 11, 9, 0.047348, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
152
+ [11, 15, 12, 9, 0.047348, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
153
+ [12, 9, 13, 10, 0.042614, 'BN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
154
+ [13, 9, 14, 1, 0.056818, 'ABCN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
155
+ [14, 10, 15, 9, 0.080492, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
156
+ [15, 35, 16, 11, 0.018939, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
157
+ [16, 16, 17, 11, 0.071023, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
158
+ [17, 16, 18, 11, 0.066288, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
159
+ [18, 14, 19, 2, 0.15625, 'CABN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
160
+ [19, 19, 20, 9, 0.047348, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
161
+ [20, 20, 21, 9, 0.061553, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
162
+ [21, 19, 22, 2, 0.056818, 'CABN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
163
+ [22, 22, 23, 10, 0.099432, 'BN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
164
+ [23, 22, 24, 2, 0.047348, 'CABN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
165
+ [24, 24, 25, 11, 0.104167, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
166
+ [25, 24, 26, 2, 0.052083, 'CABN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
167
+ [26, 26, 27, 7, 0.066288, 'ACN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
168
+ [27, 27, 28, 7, 0.052083, 'ACN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
169
+ [28, 26, 29, 2, 0.037879, 'CABN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
170
+ [29, 29, 30, 2, 0.056818, 'CABN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
171
+ [30, 30, 31, 2, 0.066288, 'CABN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
172
+ [31, 27, 32, 11, 0.042614, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
173
+ [32, 32, 33, 11, 0.056818, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
174
+ [33, 28, 34, 9, 0.094697, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
175
+ [34, 14, 35, 11, 0.028409, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
176
+ [35, 19, 36, 4, 0.071023, 'CBAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
177
+ [36, 36, 37, 8, 0.123106, 'ABN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
178
+ [37, 37, 38, 9, 0.056818, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
179
+ [38, 37, 39, 10, 0.047348, 'BN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
180
+ [39, 39, 40, 10, 0.061553, 'BN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
181
+ [40, 36, 41, 1, 0.047348, 'ABCN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
182
+ [41, 41, 42, 11, 0.061553, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
183
+ [42, 41, 43, 1, 0.047348, 'ABCN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
184
+ [43, 43, 44, 10, 0.094697, 'BN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
185
+ [44, 43, 45, 1, 0.037879, 'ABCN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
186
+ [45, 45, 46, 9, 0.037879, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
187
+ [46, 46, 47, 9, 0.056818, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
188
+ [47, 45, 48, 1, 0.047348, 'ABCN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
189
+ [48, 48, 49, 4, 0.028409, 'CBAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
190
+ [49, 48, 50, 4, 0.047348, 'CBAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
191
+ [50, 50, 51, 4, 0.047348, 'CBAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
192
+ [51, 51, 52, 4, 0.047348, 'CBAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
193
+ [52, 14, 53, 1, 0.075758, 'ABCN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
194
+ [53, 53, 54, 1, 0.037879, 'ABCN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
195
+ [54, 54, 55, 1, 0.023674, 'ABCN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
196
+ [55, 55, 56, 1, 0.052083, 'ABCN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
197
+ [56, 56, 57, 1, 0.052083, 'ABCN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
198
+ [57, 55, 58, 3, 0.066288, 'BCAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
199
+ [58, 58, 59, 10, 0.047348, 'BN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
200
+ [59, 59, 60, 10, 0.047348, 'BN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
201
+ [60, 58, 61, 3, 0.142045, 'BCAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
202
+ [61, 61, 62, 12, 0.047348, 'nan', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
203
+ [62, 62, 63, 12, 0.033144, 'nan', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
204
+ [63, 63, 64, 12, 0.066288, 'nan', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
205
+ [64, 64, 65, 12, 0.080492, 'nan', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
206
+ [65, 65, 66, 12, 0.061553, 'nan', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
207
+ [66, 61, 67, 6, 0.066288, 'ACBN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
208
+ [67, 67, 68, 9, 0.037879, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
209
+ [68, 68, 69, 9, 0.052083, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
210
+ [69, 69, 70, 9, 0.061553, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
211
+ [70, 70, 71, 9, 0.052083, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
212
+ [71, 67, 72, 3, 0.052083, 'BCAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
213
+ [72, 72, 73, 11, 0.052083, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
214
+ [73, 73, 74, 11, 0.066288, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
215
+ [74, 74, 75, 11, 0.075758, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
216
+ [75, 72, 76, 3, 0.037879, 'BCAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
217
+ [76, 76, 77, 6, 0.075758, 'ACBN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
218
+ [77, 77, 78, 6, 0.018939, 'ACBN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
219
+ [78, 78, 79, 6, 0.042614, 'ACBN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
220
+ [79, 78, 80, 6, 0.089962, 'ACBN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
221
+ [80, 80, 81, 6, 0.089962, 'ACBN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
222
+ [81, 81, 82, 6, 0.047348, 'ACBN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
223
+ [82, 82, 83, 6, 0.047348, 'ACBN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
224
+ [83, 81, 84, 11, 0.127841, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
225
+ [84, 84, 85, 11, 0.089962, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
226
+ [85, 76, 86, 3, 0.132576, 'BCAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
227
+ [86, 86, 87, 6, 0.085227, 'ACBN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
228
+ [87, 87, 88, 9, 0.033144, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
229
+ [88, 87, 89, 6, 0.052083, 'ACBN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
230
+ [89, 89, 90, 10, 0.042614, 'BN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
231
+ [90, 89, 91, 6, 0.042614, 'ACBN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
232
+ [91, 91, 92, 11, 0.056818, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
233
+ [92, 91, 93, 6, 0.042614, 'ACBN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
234
+ [93, 93, 94, 9, 0.052083, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
235
+ [94, 93, 95, 6, 0.056818, 'ACBN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
236
+ [95, 95, 96, 10, 0.037879, 'BN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
237
+ [96, 67, 97, 3, 0.047348, 'BCAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
238
+ [97, 97, 98, 3, 0.052083, 'BCAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
239
+ [98, 98, 99, 3, 0.104167, 'BCAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
240
+ [99, 99, 100, 3, 0.056818, 'BCAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
241
+ [100, 97, 101, 3, 0.047348, 'BCAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
242
+ [101, 101, 102, 11, 0.042614, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
243
+ [102, 102, 103, 11, 0.061553, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
244
+ [103, 103, 104, 11, 0.132576, 'CN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
245
+ [104, 101, 105, 3, 0.052083, 'BCAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
246
+ [105, 105, 106, 10, 0.042614, 'BN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
247
+ [106, 106, 107, 10, 0.108902, 'BN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
248
+ [107, 105, 108, 3, 0.061553, 'BCAN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
249
+ [108, 108, 109, 9, 0.085227, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
250
+ [109, 109, 110, 9, 0.056818, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
251
+ [110, 110, 111, 9, 0.108902, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
252
+ [111, 110, 112, 9, 0.023674, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
253
+ [112, 112, 113, 9, 0.099432, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
254
+ [113, 113, 114, 9, 0.061553, 'AN', 0.0, 0.0, 0.0, 1.0, 0.0, 0.0]])
255
+
256
+ # Line configuration data (Z in ohms per mile, B in micro Siemens per mile)
257
+ self.line_config = DataFrame(
258
+ ['id', 'Z11', 'Z12', 'Z13', 'Z21', 'Z22', 'Z23', 'Z31', 'Z32', 'Z33', 'B11', 'B12', 'B13', 'B21', 'B22', 'B23', 'B31', 'B32', 'B33'],
259
+ [[1, (0.4576+1.078j), (0.156+0.5017j), (0.1535+0.3849j), (0.156+0.5017j), (0.4666+1.0482j), (0.158+0.4236j), (0.1535+0.3849j), (0.158+0.4236j), (0.4615+1.0651j), 5.6765, -1.8319, -0.6982, -1.8319, 5.9809, -1.1645, -0.6982, -1.1645, 5.3971],
260
+ [2, (0.4666+1.0482j), (0.158+0.4236j), (0.156+0.5017j), (0.158+0.4236j), (0.4615+1.0651j), (0.1535+0.3849j), (0.156+0.5017j), (0.1535+0.3849j), (0.4576+1.078j), 5.9809, -1.1645, -1.8319, -1.1645, 5.3971, -0.6982, -1.8319, -0.6982, 5.6765],
261
+ [3, (0.4615+1.0651j), (0.1535+0.3849j), (0.158+0.4236j), (0.1535+0.3849j), (0.4576+1.078j), (0.156+0.5017j), (0.158+0.4236j), (0.156+0.5017j), (0.4666+1.0482j), 5.3971, -0.6982, -1.1645, -0.6982, 5.6765, -1.8319, -1.1645, -1.8319, 5.9809],
262
+ [4, (0.4615+1.0651j), (0.158+0.4236j), (0.1535+0.3849j), (0.158+0.4236j), (0.4666+1.0482j), (0.156+0.5017j), (0.1535+0.3849j), (0.156+0.5017j), (0.4576+1.078j), 5.3971, -1.1645, -0.6982, -1.1645, 5.9809, -1.8319, -0.6982, -1.8319, 5.6765],
263
+ [5, (0.4666+1.0482j), (0.156+0.5017j), (0.158+0.4236j), (0.156+0.5017j), (0.4576+1.078j), (0.1535+0.3849j), (0.158+0.4236j), (0.1535+0.3849j), (0.4615+1.0651j), 5.9809, -1.8319, -1.1645, -1.8319, 5.6765, -0.6982, -1.1645, -0.6982, 5.3971],
264
+ [6, (0.4576+1.078j), (0.1535+0.3849j), (0.156+0.5017j), (0.1535+0.3849j), (0.4615+1.0651j), (0.158+0.4236j), (0.156+0.5017j), (0.158+0.4236j), (0.4666+1.0482j), 5.6765, -0.6982, -1.8319, -0.6982, 5.3971, -1.1645, -1.8319, -1.1645, 5.9809],
265
+ [7, (0.4576+1.078j), 0j, (0.1535+0.3849j), 0j, 0j, 0j, (0.1535+0.3849j), 0j, (0.4615+1.0651j), 5.1154, 0.0, -1.0549, 0.0, 0.0, 0.0, -1.0549, 0.0, 5.1704],
266
+ [8, (0.4576+1.078j), (0.1535+0.3849j), 0j, (0.1535+0.3849j), (0.4615+1.0651j), 0j, 0j, 0j, 0j, 5.1154, -1.0549, 0.0, -1.0549, 5.1704, 0.0, 0.0, 0.0, 0.0],
267
+ [9, (1.3292+1.3475j), 0j, 0j, 0j, 0j, 0j, 0j, 0j, 0j, 4.5193, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
268
+ [10, 0j, 0j, 0j, 0j, (1.3292+1.3475j), 0j, 0j, 0j, 0j, 0.0, 0.0, 0.0, 0.0, 4.5193, 0.0, 0.0, 0.0, 0.0],
269
+ [11, 0j, 0j, 0j, 0j, 0j, 0j, 0j, 0j, (1.3292+1.3475j), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.5193],
270
+ [12, (1.5209+0.7521j), (0.5198+0.2775j), (0.4924+0.2157j), (0.5198+0.2775j), (1.5329+0.7162j), (0.5198+0.2775j), (0.4924+0.2157j), (0.5198+0.2775j), (1.5209+0.7521j), 67.2242, 0.0, 0.0, 0.0, 67.2242, 0.0, 0.0, 0.0, 67.2242]])
271
+
272
+ # Load data
273
+ self.loads = DataFrame(
274
+ ['id', 'bus_id', 'Pd_A', 'Qd_A', 'Pd_B', 'Qd_B', 'Pd_C', 'Qd_C', 'mc_a', 'mc_b', 'mc_c', 'd_max', 'd_min'],
275
+ [[1, 1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
276
+ [2, 2, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
277
+ [3, 3, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
278
+ [4, 4, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
279
+ [5, 5, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
280
+ [6, 6, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.002, 0.002],
281
+ [7, 7, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
282
+ [8, 8, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
283
+ [9, 9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
284
+ [10, 10, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
285
+ [11, 11, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
286
+ [12, 12, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
287
+ [13, 13, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
288
+ [14, 14, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
289
+ [15, 15, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
290
+ [16, 16, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
291
+ [17, 17, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
292
+ [18, 18, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.002, 0.002],
293
+ [19, 19, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
294
+ [20, 20, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
295
+ [21, 21, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
296
+ [22, 22, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
297
+ [23, 23, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
298
+ [24, 24, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
299
+ [25, 25, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
300
+ [26, 26, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
301
+ [27, 27, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
302
+ [28, 28, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
303
+ [29, 29, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
304
+ [30, 30, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
305
+ [31, 31, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
306
+ [32, 32, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.002, 0.002],
307
+ [33, 33, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.002, 0.002],
308
+ [34, 34, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
309
+ [35, 35, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
310
+ [36, 36, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
311
+ [37, 37, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
312
+ [38, 38, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
313
+ [39, 39, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
314
+ [40, 40, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
315
+ [41, 41, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
316
+ [42, 42, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.002, 0.002],
317
+ [43, 43, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
318
+ [44, 44, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
319
+ [45, 45, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
320
+ [46, 46, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
321
+ [47, 47, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
322
+ [48, 48, 0.0035, 0.0025, 0.0035, 0.0025, 0.0035, 0.0025, 0.0, 0.0, 0.0, 0.0105, 0.0105],
323
+ [49, 49, 0.007, 0.005, 0.007, 0.005, 0.007, 0.005, 0.0, 0.0, 0.0, 0.021, 0.021],
324
+ [50, 50, 0.0035, 0.0025, 0.007, 0.005, 0.0035, 0.002, 0.0, 0.0, 0.0, 0.014, 0.014],
325
+ [51, 51, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
326
+ [52, 52, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
327
+ [53, 53, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
328
+ [54, 54, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
329
+ [55, 55, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
330
+ [56, 56, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
331
+ [57, 57, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
332
+ [58, 58, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
333
+ [59, 59, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
334
+ [60, 60, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
335
+ [61, 61, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
336
+ [62, 62, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
337
+ [63, 63, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
338
+ [64, 64, 0.0, 0.0, 0.0075, 0.0035, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0075, 0.0075],
339
+ [65, 65, 0.0035, 0.0025, 0.0035, 0.0025, 0.007, 0.005, 0.0, 0.0, 0.0, 0.014, 0.014],
340
+ [66, 66, 0.0, 0.0, 0.0, 0.0, 0.0075, 0.0035, 0.0, 0.0, 0.0, 0.0075, 0.0075],
341
+ [67, 67, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
342
+ [68, 68, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
343
+ [69, 69, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
344
+ [70, 70, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
345
+ [71, 71, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
346
+ [72, 72, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
347
+ [73, 73, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
348
+ [74, 74, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
349
+ [75, 75, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
350
+ [76, 76, 0.0105, 0.008, 0.007, 0.005, 0.007, 0.005, 0.0, 0.0, 0.0, 0.0245, 0.0245],
351
+ [77, 77, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
352
+ [78, 78, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
353
+ [79, 79, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
354
+ [80, 80, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
355
+ [81, 81, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
356
+ [82, 82, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
357
+ [83, 83, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.002, 0.002],
358
+ [84, 84, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.002, 0.002],
359
+ [85, 85, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
360
+ [86, 86, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
361
+ [87, 87, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
362
+ [88, 88, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
363
+ [89, 89, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
364
+ [90, 90, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
365
+ [91, 91, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
366
+ [92, 92, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
367
+ [93, 93, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
368
+ [94, 94, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
369
+ [95, 95, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
370
+ [96, 96, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
371
+ [97, 97, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
372
+ [98, 98, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
373
+ [99, 99, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
374
+ [100, 100, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
375
+ [101, 101, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
376
+ [102, 102, 0.0, 0.0, 0.0, 0.0, 0.002, 0.001, 0.0, 0.0, 0.0, 0.002, 0.002],
377
+ [103, 103, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
378
+ [104, 104, 0.0, 0.0, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.004, 0.004],
379
+ [105, 105, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
380
+ [106, 106, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
381
+ [107, 107, 0.0, 0.0, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
382
+ [108, 108, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
383
+ [109, 109, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
384
+ [110, 110, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
385
+ [111, 111, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
386
+ [112, 112, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002],
387
+ [113, 113, 0.004, 0.002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004, 0.004],
388
+ [114, 114, 0.002, 0.001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002, 0.002]])
389
+
390
+ self.real_params = True
391
+ super().__init__(*args, **kwargs)
392
+
393
+ if __name__ == '__main__':
394
+ print("=" * 60)
395
+ print("Testing IEEE 123-bus System - Graph Connectivity")
396
+ print("=" * 60)
397
+
398
+ # Create case instance
399
+ case = Casegrid_IEEE123()
400
+
401
+ # Basic information
402
+ print(f"\nSystem Information:")
403
+ print(f" Base MVA: {case.baseMVA}")
404
+ print(f" Base KV: {case.baseKV}")
405
+ print(f" Number of nodes: {len(case.nodes)}")
406
+ print(f" Number of lines: {len(case.lines)}")
407
+ print(f" Number of units: {len(case.units)}")
408
+ print(f" Number of loads: {len(case.loads)}")
409
+ print(f" Number of line configs: {len(case.line_config)}")
410
+
411
+ # Test graph connectivity
412
+ print(f"\n{'=' * 60}")
413
+ print("Graph Connectivity Analysis")
414
+ print("=" * 60)
415
+
416
+ is_connected = case.is_connected_graph()
417
+ print(f"\nIs the graph connected? {'✓ YES' if is_connected else '✗ NO'}")
418
+
419
+ # Get connected components
420
+ components = case.get_graph_components()
421
+ print(f"\nNumber of connected components: {len(components)}")
422
+
423
+ if len(components) == 1:
424
+ print(f" ✓ All {len(case.nodes)} nodes form a single connected component")
425
+ else:
426
+ print(f" ✗ The graph is disconnected with {len(components)} separate components:")
427
+ for i, component in enumerate(components):
428
+ print(f" Component {i+1}: {len(component)} nodes")
429
+ if len(component) <= 10:
430
+ print(f" Nodes: {sorted(component)}")
431
+ else:
432
+ print(f" Nodes: {sorted(component[:5])} ... {sorted(component[-5:])}")
433
+
434
+ # Additional statistics
435
+ print(f"\n{'=' * 60}")
436
+ print("Network Statistics")
437
+ print("=" * 60)
438
+
439
+ active_lines = case.lines[case.lines['status'] == 1]
440
+ print(f"\nActive lines: {len(active_lines)} / {len(case.lines)}")
441
+
442
+ # Count lines per configuration
443
+ print(f"\nLines per configuration:")
444
+ config_counts = case.lines.groupby('config_name').size().sort_index()
445
+ for config_id, count in config_counts.items():
446
+ config_name = int(config_id)
447
+ print(f" Config {config_name:2d}: {count:3d} lines")
448
+
449
+ # Load statistics
450
+ total_pd = case.loads['Pd'].sum()
451
+ total_qd = case.loads['Qd'].sum()
452
+ print(f"\nTotal system load:")
453
+ print(f" Active power (P): {total_pd:.4f} p.u. ({total_pd * case.baseMVA:.2f} MW)")
454
+ print(f" Reactive power (Q): {total_qd:.4f} p.u. ({total_qd * case.baseMVA:.2f} MVar)")
455
+
456
+ print(f"\n{'=' * 60}")
457
+ print("Test completed successfully!")
458
+ print("=" * 60)
powergrid_case/distribution/Case141.py ADDED
@@ -0,0 +1,505 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Power System Case: 141
2
+
3
+ Data Source: MATPOWER case file
4
+ Base MVA: 10.0 MVA
5
+ Base kV: 12.47 kV
6
+
7
+ Unit conversions applied:
8
+ - Pd converted from kVA to MW/MVAr (divided by 1000, power factor=0.85)
9
+ - r/x converted from Ohms to p.u. (Z_pu = Z_ohm * Sbase / Vbase^2)
10
+
11
+
12
+ Nodes (bus) columns:
13
+ id, type, Pd, Qd, Gs, Bs, Vm, Va, baseKV, Vmax, Vmin
14
+ - type: 1=PQ, 2=PV, 3=Slack
15
+ - Pd/Qd: Active/Reactive power demand (MW/MVAr)
16
+ - Gs/Bs: Shunt conductance/susceptance (MW/MVAr at V=1.0 p.u.)
17
+ - Vm: Voltage magnitude (p.u.)
18
+ - Va: Voltage angle (degrees)
19
+ - baseKV: Base voltage (kV)
20
+ - Vmax/Vmin: Voltage limits (p.u.)
21
+
22
+ Units (generators) columns:
23
+ id, bus_id, Pg, Qg, Qmax, Qmin, Vg, mBase, status, Pmax, Pmin, mc_a, mc_b, mc_c
24
+ - Pg/Qg: Active/Reactive power output (MW/MVAr)
25
+ - Qmax/Qmin: Reactive power limits (MVAr)
26
+ - Vg: Voltage setpoint (p.u.)
27
+ - mBase: Machine base (MVA)
28
+ - status: >0 in-service, <=0 out-of-service
29
+ - Pmax/Pmin: Active power limits (MW)
30
+ - mc_a/mc_b/mc_c: Marginal cost coefficients (quadratic)
31
+
32
+ Lines (branches) columns:
33
+ id, from, to, r, x, b, rateA, ratio, angle, status, floor, cap
34
+ - r/x: Resistance/Reactance (p.u.)
35
+ - b: Line charging susceptance (p.u.)
36
+ - rateA: Long-term rating (MVA)
37
+ - ratio: Transformer tap ratio (0 for line)
38
+ - angle: Transformer phase shift (degrees)
39
+ - status: 1=in-service, 0=out-of-service
40
+ - floor/cap: Power flow limits (MW)
41
+
42
+ Loads columns:
43
+ id, bus_id, Pd, Qd, mc_a, mc_b, mc_c, d_max, d_min
44
+ - Pd/Qd: Active/Reactive power demand (MW/MVAr)
45
+ - mc_a/mc_b/mc_c: Marginal utility coefficients
46
+ - d_max/d_min: Demand limits (MW)
47
+ """
48
+ from math import inf
49
+
50
+ from powerzoo.case.CaseBase import ClearCase, DataFrame
51
+
52
+
53
+ class Case141(ClearCase):
54
+ GRID_TYPE = "distribution"
55
+ BUS_COUNT = 141
56
+ VOLTAGE_LEVEL = "MV"
57
+ SOURCE = "MATPOWER"
58
+ DESCRIPTION = "141-bus Caracas distribution system (Khodr et al., EPSR 2008)"
59
+
60
+ def __init__(self, *args, **kwargs):
61
+ # System base values
62
+ self.baseMVA = 10.0
63
+ self.baseKV = 12.47
64
+
65
+ # Node (bus) data
66
+ self.nodes = DataFrame(
67
+ ['id', 'type', 'Pd', 'Qd', 'Gs', 'Bs', 'Vm', 'Va', 'baseKV', 'Vmax', 'Vmin'],
68
+ [[1.0, 3.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.0, 1.0],
69
+ [2.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
70
+ [3.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
71
+ [4.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
72
+ [5.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
73
+ [6.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
74
+ [7.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
75
+ [8.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
76
+ [9.0, 1.0, 0.0085, 0.00526782687642637, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
77
+ [10.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
78
+ [11.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
79
+ [12.0, 1.0, 0.02125, 0.013169567191065924, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
80
+ [13.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
81
+ [14.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
82
+ [15.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
83
+ [16.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
84
+ [17.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
85
+ [18.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
86
+ [19.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
87
+ [20.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
88
+ [21.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
89
+ [22.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
90
+ [23.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
91
+ [24.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
92
+ [25.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
93
+ [26.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
94
+ [27.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
95
+ [28.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
96
+ [29.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
97
+ [30.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
98
+ [31.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
99
+ [32.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
100
+ [33.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
101
+ [34.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
102
+ [35.0, 1.0, 0.255, 0.15803480629279107, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
103
+ [36.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
104
+ [37.0, 1.0, 0.0425, 0.026339134382131847, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
105
+ [38.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
106
+ [39.0, 1.0, 0.017, 0.01053565375285274, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
107
+ [40.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
108
+ [41.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
109
+ [42.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
110
+ [43.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
111
+ [44.0, 1.0, 0.0425, 0.026339134382131847, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
112
+ [45.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
113
+ [46.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
114
+ [47.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
115
+ [48.0, 1.0, 0.10625, 0.06584783595532961, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
116
+ [49.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
117
+ [50.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
118
+ [51.0, 1.0, 0.10625, 0.06584783595532961, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
119
+ [52.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
120
+ [53.0, 1.0, 0.085, 0.052678268764263694, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
121
+ [54.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
122
+ [55.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
123
+ [56.0, 1.0, 0.02125, 0.013169567191065924, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
124
+ [57.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
125
+ [58.0, 1.0, 0.255, 0.15803480629279107, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
126
+ [59.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
127
+ [60.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
128
+ [61.0, 1.0, 0.255, 0.15803480629279107, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
129
+ [62.0, 1.0, 0.17, 0.10535653752852739, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
130
+ [63.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
131
+ [64.0, 1.0, 0.255, 0.15803480629279107, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
132
+ [65.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
133
+ [66.0, 1.0, 0.19125, 0.11852610471959331, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
134
+ [67.0, 1.0, 0.0425, 0.026339134382131847, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
135
+ [68.0, 1.0, 0.085, 0.052678268764263694, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
136
+ [69.0, 1.0, 0.255, 0.15803480629279107, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
137
+ [70.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
138
+ [71.0, 1.0, 0.255, 0.15803480629279107, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
139
+ [72.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
140
+ [73.0, 1.0, 0.255, 0.15803480629279107, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
141
+ [74.0, 1.0, 0.255, 0.15803480629279107, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
142
+ [75.0, 1.0, 0.03825, 0.02370522094391866, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
143
+ [76.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
144
+ [77.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
145
+ [78.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
146
+ [79.0, 1.0, 0.4271249999999999, 0.26470830054042505, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
147
+ [80.0, 1.0, 0.6375, 0.3950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
148
+ [81.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
149
+ [82.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
150
+ [83.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
151
+ [84.0, 1.0, 0.19125, 0.11852610471959331, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
152
+ [85.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
153
+ [86.0, 1.0, 0.425, 0.26339134382131846, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
154
+ [87.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
155
+ [88.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
156
+ [89.0, 1.0, 0.05525, 0.0342408746967714, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
157
+ [90.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
158
+ [91.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
159
+ [92.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
160
+ [93.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
161
+ [94.0, 1.0, 0.0935, 0.05794609564069006, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
162
+ [95.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
163
+ [96.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
164
+ [97.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
165
+ [98.0, 1.0, 0.255, 0.15803480629279107, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
166
+ [99.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
167
+ [100.0, 1.0, 0.255, 0.15803480629279107, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
168
+ [101.0, 1.0, 0.01275, 0.007901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
169
+ [102.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
170
+ [103.0, 1.0, 0.10625, 0.06584783595532961, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
171
+ [104.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
172
+ [105.0, 1.0, 0.255, 0.15803480629279107, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
173
+ [106.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
174
+ [107.0, 1.0, 0.4271249999999999, 0.26470830054042505, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
175
+ [108.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
176
+ [109.0, 1.0, 0.6375, 0.3950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
177
+ [110.0, 1.0, 0.6375, 0.3950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
178
+ [111.0, 1.0, 0.02125, 0.013169567191065924, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
179
+ [112.0, 1.0, 0.425, 0.26339134382131846, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
180
+ [113.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
181
+ [114.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
182
+ [115.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
183
+ [116.0, 1.0, 0.255, 0.15803480629279107, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
184
+ [117.0, 1.0, 0.05525, 0.0342408746967714, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
185
+ [118.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
186
+ [119.0, 1.0, 0.0935, 0.05794609564069006, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
187
+ [120.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
188
+ [121.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
189
+ [122.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
190
+ [123.0, 1.0, 0.085, 0.052678268764263694, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
191
+ [124.0, 1.0, 0.10625, 0.06584783595532961, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
192
+ [125.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
193
+ [126.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
194
+ [127.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
195
+ [128.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
196
+ [129.0, 1.0, 0.0935, 0.05794609564069006, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
197
+ [130.0, 1.0, 0.095625, 0.059263052359796654, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
198
+ [131.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
199
+ [132.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
200
+ [133.0, 1.0, 0.03825, 0.02370522094391866, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
201
+ [134.0, 1.0, 0.029750000000000002, 0.018437394067492292, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
202
+ [135.0, 1.0, 0.02125, 0.013169567191065924, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
203
+ [136.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
204
+ [137.0, 1.0, 0.04675, 0.02897304782034503, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
205
+ [138.0, 1.0, 0.0425, 0.026339134382131847, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
206
+ [139.0, 1.0, 0.0425, 0.026339134382131847, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
207
+ [140.0, 1.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9],
208
+ [141.0, 1.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 1.0, 0.0, 12.47, 1.1, 0.9]])
209
+
210
+ # Generator (unit) data
211
+ self.units = DataFrame(
212
+ ['id', 'bus_id', 'Pg', 'Qg', 'Qmax', 'Qmin', 'Vg', 'mBase', 'status', 'Pmax', 'Pmin', 'mc_a', 'mc_b', 'mc_c', 'p_max', 'p_min'],
213
+ [[1.0, 1.0, 0.0, 0.0, 100.0, -100.0, 1.0, 100.0, 1.0, 100.0, 0.0, 0.0, 0.0, 20.0, 100.0, 0.0]])
214
+
215
+ # Branch (line) data
216
+ self.lines = DataFrame(
217
+ ['id', 'from', 'to', 'r', 'x', 'b', 'rateA', 'ratio', 'angle', 'status', 'floor', 'cap'],
218
+ [[1.0, 1.0, 2.0, 0.003710589456395429, 0.002630209857306292, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
219
+ [2.0, 2.0, 3.0, 0.011093183383504531, 0.00786490624813104, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
220
+ [3.0, 3.0, 4.0, 5.787747852263234e-05, 3.8584985681754894e-05, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
221
+ [4.0, 4.0, 5.0, 0.0005916364471202417, 0.00041800401155234467, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
222
+ [5.0, 5.0, 6.0, 0.0004372965043932221, 0.0003151107164009983, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
223
+ [6.0, 6.0, 7.0, 0.0030160597141238405, 0.004019269341849468, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
224
+ [7.0, 7.0, 8.0, 0.004733091576961934, 0.0063086451589669254, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
225
+ [8.0, 8.0, 9.0, 0.004173609284576487, 0.0029517514046542496, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
226
+ [9.0, 9.0, 10.0, 0.003260431290108289, 0.0023086683099583344, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
227
+ [10.0, 10.0, 11.0, 0.0007459763898472612, 0.0005273281376506503, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
228
+ [11.0, 11.0, 12.0, 0.008302202752524262, 0.005871348654573704, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
229
+ [12.0, 12.0, 13.0, 0.007890629571918877, 0.005569099600066623, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
230
+ [13.0, 13.0, 14.0, 0.003138245502116065, 0.0022186366767009066, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
231
+ [14.0, 14.0, 15.0, 0.006154305216239905, 0.004353672551091344, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
232
+ [15.0, 15.0, 16.0, 0.005530514614384868, 0.003916376046698122, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
233
+ [16.0, 16.0, 17.0, 0.0025594707168897415, 0.00181349432704248, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
234
+ [17.0, 17.0, 18.0, 0.005324728024082175, 0.003639850315978878, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
235
+ [18.0, 18.0, 19.0, 0.0011961345561344017, 0.0008488696849986077, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
236
+ [19.0, 19.0, 20.0, 0.0035948344993501644, 0.002540178224048864, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
237
+ [20.0, 20.0, 21.0, 0.0023472532956400893, 0.0015819844129519507, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
238
+ [21.0, 21.0, 22.0, 0.003684866132607592, 0.001974265100716459, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
239
+ [22.0, 22.0, 23.0, 0.0016913085390502563, 0.0012282887108691974, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
240
+ [23.0, 23.0, 24.0, 0.004392257536773099, 0.003196122980638697, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
241
+ [24.0, 24.0, 25.0, 0.0025594707168897415, 0.00181349432704248, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
242
+ [25.0, 25.0, 26.0, 0.00468807576033322, 0.0034083404018883487, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
243
+ [26.0, 26.0, 27.0, 0.002154328367231315, 0.0015691227510580324, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
244
+ [27.0, 27.0, 28.0, 0.003755605273024143, 0.0026623640120410877, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
245
+ [28.0, 28.0, 29.0, 0.004212194270258243, 0.002977474728442086, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
246
+ [29.0, 61.0, 62.0, 0.00264307151920021, 0.0018713718055651124, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
247
+ [30.0, 60.0, 63.0, 0.0022700833242765795, 0.0016077077367397873, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
248
+ [31.0, 63.0, 64.0, 0.006733080001466229, 0.00476524573169673, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
249
+ [32.0, 64.0, 65.0, 0.004334380058250467, 0.003067506361699514, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
250
+ [33.0, 65.0, 66.0, 0.0019421109459816632, 0.0013761978226492578, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
251
+ [34.0, 66.0, 67.0, 0.002932458911813372, 0.0020771583958678055, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
252
+ [35.0, 67.0, 68.0, 0.0014019211464370944, 0.000990347965831709, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
253
+ [36.0, 70.0, 72.0, 0.004501581662871405, 0.003183261318744779, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
254
+ [37.0, 42.0, 73.0, 0.0014855219487475634, 0.0010546562753013006, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
255
+ [38.0, 73.0, 74.0, 0.00019292492840877447, 0.00041157318060538556, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
256
+ [39.0, 43.0, 75.0, 0.0024372849288975176, 0.001723462693785052, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
257
+ [40.0, 44.0, 76.0, 0.0035498186827214503, 0.0025144549002610274, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
258
+ [41.0, 46.0, 77.0, 0.003318308768630921, 0.002803842292874189, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
259
+ [42.0, 76.0, 78.0, 0.0010739487681421778, 0.0007073914041655063, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
260
+ [43.0, 78.0, 79.0, 0.002668794842988047, 0.000649513925642874, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
261
+ [44.0, 79.0, 80.0, 0.006450123439800027, 0.0015691227510580324, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
262
+ [45.0, 79.0, 81.0, 0.009729847222749192, 0.002379407450374885, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
263
+ [46.0, 81.0, 82.0, 0.00021221742124965192, 5.1446647575673195e-05, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
264
+ [47.0, 47.0, 83.0, 0.0005466206304915277, 0.0003987115187114672, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
265
+ [48.0, 49.0, 84.0, 0.00332473959957788, 0.0028874430951846583, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
266
+ [49.0, 50.0, 85.0, 0.0009453321492029949, 0.00023150991409052937, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
267
+ [50.0, 85.0, 86.0, 0.00023794074503748853, 0.00010289329515134639, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
268
+ [51.0, 86.0, 87.0, 0.0, 6.43083094695915e-07, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
269
+ [52.0, 7.0, 88.0, 0.001118964584770892, 0.0014855219487475634, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
270
+ [53.0, 88.0, 89.0, 0.0030160597141238405, 0.004019269341849468, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
271
+ [54.0, 89.0, 90.0, 0.0019228184531407855, 0.0025594707168897415, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
272
+ [55.0, 90.0, 91.0, 0.0013633361607553395, 0.001819925157989439, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
273
+ [56.0, 91.0, 92.0, 0.002025711748292132, 0.0027009489977228426, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
274
+ [57.0, 92.0, 93.0, 0.0018006326651485618, 0.0023986999432157627, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
275
+ [58.0, 93.0, 94.0, 0.0013247511750735846, 0.001762047679466807, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
276
+ [59.0, 94.0, 95.0, 0.0013247511750735846, 0.001762047679466807, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
277
+ [60.0, 89.0, 96.0, 0.004417980860560935, 0.0031253838402221464, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
278
+ [61.0, 96.0, 97.0, 0.0062379060185503744, 0.0044115500296139755, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
279
+ [62.0, 97.0, 98.0, 0.005800609514157153, 0.0012604428656039933, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
280
+ [63.0, 97.0, 99.0, 0.00021221742124965192, 5.1446647575673195e-05, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
281
+ [64.0, 131.0, 132.0, 0.0022314983385948246, 0.0015755535820049917, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
282
+ [65.0, 131.0, 133.0, 0.005916364471202417, 0.004302225903515671, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
283
+ [66.0, 121.0, 134.0, 0.005408328826392644, 0.003935668539538999, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
284
+ [67.0, 16.0, 135.0, 0.0033890479090474715, 0.0023986999432157627, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
285
+ [68.0, 16.0, 136.0, 0.0019421109459816632, 0.0013761978226492578, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
286
+ [69.0, 18.0, 137.0, 0.003755605273024143, 0.0026623640120410877, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
287
+ [70.0, 23.0, 138.0, 0.004945308998211585, 0.0035948344993501644, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
288
+ [71.0, 29.0, 30.0, 0.002199344183860029, 0.001594846074845869, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
289
+ [72.0, 30.0, 31.0, 0.0008231463612107711, 0.0005852056161732826, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
290
+ [73.0, 31.0, 32.0, 0.0022314983385948246, 0.0015755535820049917, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
291
+ [74.0, 2.0, 33.0, 0.002848858109502903, 0.0020192809173451725, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
292
+ [75.0, 33.0, 34.0, 0.000128616618939183, 5.787747852263234e-05, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
293
+ [76.0, 5.0, 35.0, 0.014623709573385104, 0.0035626803446153683, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
294
+ [77.0, 5.0, 36.0, 0.008135001147903324, 0.010064250431991068, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
295
+ [78.0, 6.0, 37.0, 0.00035369570208275316, 0.0004694506591280179, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
296
+ [79.0, 37.0, 38.0, 0.013093171808008827, 0.009260396563621175, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
297
+ [80.0, 38.0, 39.0, 0.006032119428247681, 0.004263640917833916, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
298
+ [81.0, 39.0, 40.0, 0.0022314983385948246, 0.0015755535820049917, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
299
+ [82.0, 40.0, 41.0, 0.005903502809308499, 0.004180040115523447, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
300
+ [83.0, 41.0, 42.0, 0.014906666135051308, 0.010546562753013005, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
301
+ [84.0, 42.0, 43.0, 0.007762012952979693, 0.0054919296287031134, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
302
+ [85.0, 43.0, 44.0, 0.002848858109502903, 0.0020192809173451725, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
303
+ [86.0, 44.0, 45.0, 0.0026044865335184556, 0.001852079312724235, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
304
+ [87.0, 45.0, 46.0, 0.001028932951513464, 0.0008167155302638119, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
305
+ [88.0, 46.0, 47.0, 0.004090008482266019, 0.002893873926131617, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
306
+ [89.0, 47.0, 48.0, 0.0026816565048819654, 0.0018970951293529488, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
307
+ [90.0, 48.0, 49.0, 0.004707368253174097, 0.003279723782949166, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
308
+ [91.0, 49.0, 50.0, 0.005324728024082175, 0.0035755420065092867, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
309
+ [92.0, 50.0, 51.0, 0.0025594707168897415, 0.00181349432704248, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
310
+ [93.0, 51.0, 52.0, 0.0014469369630658085, 0.0010225021205665047, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
311
+ [94.0, 38.0, 53.0, 0.005408328826392644, 0.0038263444134406933, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
312
+ [95.0, 42.0, 54.0, 0.001035363782460423, 0.000733114727953343, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
313
+ [96.0, 54.0, 55.0, 0.0033890479090474715, 0.0023986999432157627, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
314
+ [97.0, 55.0, 56.0, 0.00574273203563452, 0.004064285158478183, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
315
+ [98.0, 56.0, 57.0, 0.005575530431013582, 0.003942099370485958, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
316
+ [99.0, 57.0, 58.0, 0.004334380058250467, 0.003067506361699514, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
317
+ [100.0, 58.0, 59.0, 0.0030160597141238405, 0.0021350358743904376, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
318
+ [101.0, 55.0, 60.0, 0.0021478975362843556, 0.001517676103482359, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
319
+ [102.0, 60.0, 61.0, 0.002102881719655642, 0.0014919527796945224, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
320
+ [103.0, 63.0, 69.0, 0.0023536841265870486, 0.0016655852152624197, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
321
+ [104.0, 55.0, 70.0, 0.0014855219487475634, 0.0010546562753013006, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
322
+ [105.0, 70.0, 71.0, 0.0007716997136350979, 0.0001864940974618153, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
323
+ [106.0, 99.0, 100.0, 0.00021221742124965192, 5.1446647575673195e-05, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
324
+ [107.0, 91.0, 101.0, 0.0014855219487475634, 0.0010546562753013006, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
325
+ [108.0, 101.0, 102.0, 0.003717020287342388, 0.002630209857306292, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
326
+ [109.0, 102.0, 103.0, 0.005717008711846684, 0.0013954903154901354, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
327
+ [110.0, 103.0, 104.0, 0.004044992665637305, 0.0009839171348847498, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
328
+ [111.0, 104.0, 105.0, 0.007524072207942205, 0.0018327868198833575, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
329
+ [112.0, 104.0, 106.0, 0.000733114727953343, 0.00016720160462093786, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
330
+ [113.0, 92.0, 107.0, 0.005459775473968318, 0.0013311820060205439, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
331
+ [114.0, 94.0, 108.0, 0.003935668539538999, 0.0016720160462093787, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
332
+ [115.0, 108.0, 109.0, 0.002906735588025535, 0.0012347195418161566, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
333
+ [116.0, 94.0, 110.0, 0.00021221742124965192, 5.1446647575673195e-05, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
334
+ [117.0, 7.0, 111.0, 0.0046237674508636285, 0.003273292952002207, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
335
+ [118.0, 10.0, 112.0, 0.00688098911324629, 0.0016784468771563381, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
336
+ [119.0, 11.0, 113.0, 0.0022314983385948246, 0.0015755535820049917, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
337
+ [120.0, 13.0, 114.0, 0.00400640767995555, 0.002835996447608985, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
338
+ [121.0, 114.0, 115.0, 0.004295795072568711, 0.0030417830379116774, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
339
+ [122.0, 115.0, 116.0, 0.000257233237878366, 6.43083094695915e-05, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
340
+ [123.0, 14.0, 117.0, 0.0032540004591613296, 0.0023536841265870486, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
341
+ [124.0, 15.0, 118.0, 0.001035363782460423, 0.000733114727953343, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
342
+ [125.0, 118.0, 119.0, 0.002971043897495127, 0.002102881719655642, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
343
+ [126.0, 119.0, 120.0, 0.002726672321510679, 0.0019292492840877447, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
344
+ [127.0, 120.0, 121.0, 0.003260431290108289, 0.0023086683099583344, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
345
+ [128.0, 121.0, 122.0, 0.004707368253174097, 0.0033311704305248394, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
346
+ [129.0, 122.0, 123.0, 0.003755605273024143, 0.0026623640120410877, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
347
+ [130.0, 123.0, 124.0, 0.003922806877645081, 0.0027781189690863524, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
348
+ [131.0, 124.0, 125.0, 0.0050353406314690135, 0.0035626803446153683, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
349
+ [132.0, 125.0, 126.0, 0.005363313009763931, 0.003903514384804203, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
350
+ [133.0, 126.0, 127.0, 0.0022314983385948246, 0.0015755535820049917, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
351
+ [134.0, 127.0, 128.0, 0.003665573639766715, 0.0027009489977228426, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
352
+ [135.0, 128.0, 129.0, 0.0037620361039711024, 0.0027331031524576387, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
353
+ [136.0, 129.0, 130.0, 0.0006623755875367923, 0.0004694506591280179, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
354
+ [137.0, 119.0, 131.0, 0.0022829449861704976, 0.0016270002295806648, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
355
+ [138.0, 25.0, 139.0, 0.006109289399611192, 0.004327949227303507, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
356
+ [139.0, 30.0, 140.0, 0.0033376012614717986, 0.002424423267003599, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
357
+ [140.0, 31.0, 141.0, 0.003755605273024143, 0.0026623640120410877, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0]])
358
+
359
+ # Load data
360
+ self.loads = DataFrame(
361
+ ['id', 'bus_id', 'Pd', 'Qd', 'mc_a', 'mc_b', 'mc_c', 'd_max', 'd_min'],
362
+ [[1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
363
+ [2.0, 2.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
364
+ [3.0, 3.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
365
+ [4.0, 4.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
366
+ [5.0, 5.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
367
+ [6.0, 6.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
368
+ [7.0, 7.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
369
+ [8.0, 8.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
370
+ [9.0, 9.0, 0.0085, 0.00526782687642637, 0.0, 0.0, 0.0, 0.0085, 0.0085],
371
+ [10.0, 10.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
372
+ [11.0, 11.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
373
+ [12.0, 12.0, 0.02125, 0.013169567191065924, 0.0, 0.0, 0.0, 0.02125, 0.02125],
374
+ [13.0, 13.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
375
+ [14.0, 14.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
376
+ [15.0, 15.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
377
+ [16.0, 16.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
378
+ [17.0, 17.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
379
+ [18.0, 18.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
380
+ [19.0, 19.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
381
+ [20.0, 20.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
382
+ [21.0, 21.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
383
+ [22.0, 22.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
384
+ [23.0, 23.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
385
+ [24.0, 24.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
386
+ [25.0, 25.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
387
+ [26.0, 26.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
388
+ [27.0, 27.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
389
+ [28.0, 28.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
390
+ [29.0, 29.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
391
+ [30.0, 30.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
392
+ [31.0, 31.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
393
+ [32.0, 32.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
394
+ [33.0, 33.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
395
+ [34.0, 34.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
396
+ [35.0, 35.0, 0.255, 0.15803480629279107, 0.0, 0.0, 0.0, 0.255, 0.255],
397
+ [36.0, 36.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
398
+ [37.0, 37.0, 0.0425, 0.026339134382131847, 0.0, 0.0, 0.0, 0.0425, 0.0425],
399
+ [38.0, 38.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
400
+ [39.0, 39.0, 0.017, 0.01053565375285274, 0.0, 0.0, 0.0, 0.017, 0.017],
401
+ [40.0, 40.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
402
+ [41.0, 41.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
403
+ [42.0, 42.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
404
+ [43.0, 43.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
405
+ [44.0, 44.0, 0.0425, 0.026339134382131847, 0.0, 0.0, 0.0, 0.0425, 0.0425],
406
+ [45.0, 45.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
407
+ [46.0, 46.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
408
+ [47.0, 47.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
409
+ [48.0, 48.0, 0.10625, 0.06584783595532961, 0.0, 0.0, 0.0, 0.10625, 0.10625],
410
+ [49.0, 49.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
411
+ [50.0, 50.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
412
+ [51.0, 51.0, 0.10625, 0.06584783595532961, 0.0, 0.0, 0.0, 0.10625, 0.10625],
413
+ [52.0, 52.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
414
+ [53.0, 53.0, 0.085, 0.052678268764263694, 0.0, 0.0, 0.0, 0.085, 0.085],
415
+ [54.0, 54.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
416
+ [55.0, 55.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
417
+ [56.0, 56.0, 0.02125, 0.013169567191065924, 0.0, 0.0, 0.0, 0.02125, 0.02125],
418
+ [57.0, 57.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
419
+ [58.0, 58.0, 0.255, 0.15803480629279107, 0.0, 0.0, 0.0, 0.255, 0.255],
420
+ [59.0, 59.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
421
+ [60.0, 60.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
422
+ [61.0, 61.0, 0.255, 0.15803480629279107, 0.0, 0.0, 0.0, 0.255, 0.255],
423
+ [62.0, 62.0, 0.17, 0.10535653752852739, 0.0, 0.0, 0.0, 0.17, 0.17],
424
+ [63.0, 63.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
425
+ [64.0, 64.0, 0.255, 0.15803480629279107, 0.0, 0.0, 0.0, 0.255, 0.255],
426
+ [65.0, 65.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
427
+ [66.0, 66.0, 0.19125, 0.11852610471959331, 0.0, 0.0, 0.0, 0.19125, 0.19125],
428
+ [67.0, 67.0, 0.0425, 0.026339134382131847, 0.0, 0.0, 0.0, 0.0425, 0.0425],
429
+ [68.0, 68.0, 0.085, 0.052678268764263694, 0.0, 0.0, 0.0, 0.085, 0.085],
430
+ [69.0, 69.0, 0.255, 0.15803480629279107, 0.0, 0.0, 0.0, 0.255, 0.255],
431
+ [70.0, 70.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
432
+ [71.0, 71.0, 0.255, 0.15803480629279107, 0.0, 0.0, 0.0, 0.255, 0.255],
433
+ [72.0, 72.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
434
+ [73.0, 73.0, 0.255, 0.15803480629279107, 0.0, 0.0, 0.0, 0.255, 0.255],
435
+ [74.0, 74.0, 0.255, 0.15803480629279107, 0.0, 0.0, 0.0, 0.255, 0.255],
436
+ [75.0, 75.0, 0.03825, 0.02370522094391866, 0.0, 0.0, 0.0, 0.03825, 0.03825],
437
+ [76.0, 76.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
438
+ [77.0, 77.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
439
+ [78.0, 78.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
440
+ [79.0, 79.0, 0.4271249999999999, 0.26470830054042505, 0.0, 0.0, 0.0, 0.4271249999999999, 0.4271249999999999],
441
+ [80.0, 80.0, 0.6375, 0.3950870157319777, 0.0, 0.0, 0.0, 0.6375, 0.6375],
442
+ [81.0, 81.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
443
+ [82.0, 82.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
444
+ [83.0, 83.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
445
+ [84.0, 84.0, 0.19125, 0.11852610471959331, 0.0, 0.0, 0.0, 0.19125, 0.19125],
446
+ [85.0, 85.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
447
+ [86.0, 86.0, 0.425, 0.26339134382131846, 0.0, 0.0, 0.0, 0.425, 0.425],
448
+ [87.0, 87.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
449
+ [88.0, 88.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
450
+ [89.0, 89.0, 0.05525, 0.0342408746967714, 0.0, 0.0, 0.0, 0.05525, 0.05525],
451
+ [90.0, 90.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
452
+ [91.0, 91.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
453
+ [92.0, 92.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
454
+ [93.0, 93.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
455
+ [94.0, 94.0, 0.0935, 0.05794609564069006, 0.0, 0.0, 0.0, 0.0935, 0.0935],
456
+ [95.0, 95.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
457
+ [96.0, 96.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
458
+ [97.0, 97.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
459
+ [98.0, 98.0, 0.255, 0.15803480629279107, 0.0, 0.0, 0.0, 0.255, 0.255],
460
+ [99.0, 99.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
461
+ [100.0, 100.0, 0.255, 0.15803480629279107, 0.0, 0.0, 0.0, 0.255, 0.255],
462
+ [101.0, 101.0, 0.01275, 0.007901740314639553, 0.0, 0.0, 0.0, 0.01275, 0.01275],
463
+ [102.0, 102.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
464
+ [103.0, 103.0, 0.10625, 0.06584783595532961, 0.0, 0.0, 0.0, 0.10625, 0.10625],
465
+ [104.0, 104.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
466
+ [105.0, 105.0, 0.255, 0.15803480629279107, 0.0, 0.0, 0.0, 0.255, 0.255],
467
+ [106.0, 106.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
468
+ [107.0, 107.0, 0.4271249999999999, 0.26470830054042505, 0.0, 0.0, 0.0, 0.4271249999999999, 0.4271249999999999],
469
+ [108.0, 108.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
470
+ [109.0, 109.0, 0.6375, 0.3950870157319777, 0.0, 0.0, 0.0, 0.6375, 0.6375],
471
+ [110.0, 110.0, 0.6375, 0.3950870157319777, 0.0, 0.0, 0.0, 0.6375, 0.6375],
472
+ [111.0, 111.0, 0.02125, 0.013169567191065924, 0.0, 0.0, 0.0, 0.02125, 0.02125],
473
+ [112.0, 112.0, 0.425, 0.26339134382131846, 0.0, 0.0, 0.0, 0.425, 0.425],
474
+ [113.0, 113.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
475
+ [114.0, 114.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
476
+ [115.0, 115.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
477
+ [116.0, 116.0, 0.255, 0.15803480629279107, 0.0, 0.0, 0.0, 0.255, 0.255],
478
+ [117.0, 117.0, 0.05525, 0.0342408746967714, 0.0, 0.0, 0.0, 0.05525, 0.05525],
479
+ [118.0, 118.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
480
+ [119.0, 119.0, 0.0935, 0.05794609564069006, 0.0, 0.0, 0.0, 0.0935, 0.0935],
481
+ [120.0, 120.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
482
+ [121.0, 121.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
483
+ [122.0, 122.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
484
+ [123.0, 123.0, 0.085, 0.052678268764263694, 0.0, 0.0, 0.0, 0.085, 0.085],
485
+ [124.0, 124.0, 0.10625, 0.06584783595532961, 0.0, 0.0, 0.0, 0.10625, 0.10625],
486
+ [125.0, 125.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
487
+ [126.0, 126.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
488
+ [127.0, 127.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
489
+ [128.0, 128.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
490
+ [129.0, 129.0, 0.0935, 0.05794609564069006, 0.0, 0.0, 0.0, 0.0935, 0.0935],
491
+ [130.0, 130.0, 0.095625, 0.059263052359796654, 0.0, 0.0, 0.0, 0.095625, 0.095625],
492
+ [131.0, 131.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
493
+ [132.0, 132.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
494
+ [133.0, 133.0, 0.03825, 0.02370522094391866, 0.0, 0.0, 0.0, 0.03825, 0.03825],
495
+ [134.0, 134.0, 0.029750000000000002, 0.018437394067492292, 0.0, 0.0, 0.0, 0.029750000000000002, 0.029750000000000002],
496
+ [135.0, 135.0, 0.02125, 0.013169567191065924, 0.0, 0.0, 0.0, 0.02125, 0.02125],
497
+ [136.0, 136.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375],
498
+ [137.0, 137.0, 0.04675, 0.02897304782034503, 0.0, 0.0, 0.0, 0.04675, 0.04675],
499
+ [138.0, 138.0, 0.0425, 0.026339134382131847, 0.0, 0.0, 0.0, 0.0425, 0.0425],
500
+ [139.0, 139.0, 0.0425, 0.026339134382131847, 0.0, 0.0, 0.0, 0.0425, 0.0425],
501
+ [140.0, 140.0, 0.1275, 0.07901740314639553, 0.0, 0.0, 0.0, 0.1275, 0.1275],
502
+ [141.0, 141.0, 0.06375, 0.03950870157319777, 0.0, 0.0, 0.0, 0.06375, 0.06375]])
503
+
504
+ self.real_params = True
505
+ super().__init__(*args, **kwargs)
powergrid_case/distribution/Case33bw.py ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Power System Case: 33bw
2
+
3
+ Data Source: MATPOWER case file
4
+ Base MVA: 100.0 MVA
5
+ Base kV: 12.66 kV
6
+
7
+ Unit conversions applied:
8
+ - Pd/Qd converted from kW/kVar to MW/MVAr (divided by 1000)
9
+ - r/x converted from Ohms to p.u. (Z_pu = Z_ohm * Sbase / Vbase^2)
10
+
11
+
12
+ Nodes (bus) columns:
13
+ id, type, Pd, Qd, Gs, Bs, Vm, Va, baseKV, Vmax, Vmin
14
+ - type: 1=PQ, 2=PV, 3=Slack
15
+ - Pd/Qd: Active/Reactive power demand (MW/MVAr)
16
+ - Gs/Bs: Shunt conductance/susceptance (MW/MVAr at V=1.0 p.u.)
17
+ - Vm: Voltage magnitude (p.u.)
18
+ - Va: Voltage angle (degrees)
19
+ - baseKV: Base voltage (kV)
20
+ - Vmax/Vmin: Voltage limits (p.u.)
21
+
22
+ Units (generators) columns:
23
+ id, bus_id, Pg, Qg, Qmax, Qmin, Vg, mBase, status, Pmax, Pmin, mc_a, mc_b, mc_c
24
+ - Pg/Qg: Active/Reactive power output (MW/MVAr)
25
+ - Qmax/Qmin: Reactive power limits (MVAr)
26
+ - Vg: Voltage setpoint (p.u.)
27
+ - mBase: Machine base (MVA)
28
+ - status: >0 in-service, <=0 out-of-service
29
+ - Pmax/Pmin: Active power limits (MW)
30
+ - mc_a/mc_b/mc_c: Marginal cost coefficients (quadratic)
31
+
32
+ Lines (branches) columns:
33
+ id, from, to, r, x, b, rateA, ratio, angle, status, floor, cap
34
+ - r/x: Resistance/Reactance (p.u.)
35
+ - b: Line charging susceptance (p.u.)
36
+ - rateA: Long-term rating (MVA)
37
+ - ratio: Transformer tap ratio (0 for line)
38
+ - angle: Transformer phase shift (degrees)
39
+ - status: 1=in-service, 0=out-of-service
40
+ - floor/cap: Power flow limits (MW)
41
+
42
+ Loads columns:
43
+ id, bus_id, Pd, Qd, mc_a, mc_b, mc_c, d_max, d_min
44
+ - Pd/Qd: Active/Reactive power demand (MW/MVAr)
45
+ - mc_a/mc_b/mc_c: Marginal utility coefficients
46
+ - d_max/d_min: Demand limits (MW)
47
+ """
48
+ from powerzoo.case.CaseBase import ClearCase, DataFrame
49
+
50
+
51
+ class Case33bw(ClearCase):
52
+ GRID_TYPE = "distribution"
53
+ BUS_COUNT = 33
54
+ VOLTAGE_LEVEL = "MV"
55
+ SOURCE = "MATPOWER"
56
+ DESCRIPTION = "IEEE 33-bus Baran & Wu radial distribution"
57
+
58
+ def __init__(self, *args, **kwargs):
59
+ # System base values
60
+ self.baseMVA = 100.0
61
+ self.baseKV = 12.66
62
+
63
+ # Node (bus) data
64
+ self.nodes = DataFrame(
65
+ ['id', 'type', 'Pd', 'Qd', 'Gs', 'Bs', 'Vm', 'Va', 'baseKV', 'Vmax', 'Vmin'],
66
+ [[1.0, 3.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 12.66, 1.0, 1.0],
67
+ [2.0, 1.0, 0.1, 0.06, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
68
+ [3.0, 1.0, 0.09, 0.04, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
69
+ [4.0, 1.0, 0.12, 0.08, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
70
+ [5.0, 1.0, 0.06, 0.03, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
71
+ [6.0, 1.0, 0.06, 0.02, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
72
+ [7.0, 1.0, 0.2, 0.1, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
73
+ [8.0, 1.0, 0.2, 0.1, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
74
+ [9.0, 1.0, 0.06, 0.02, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
75
+ [10.0, 1.0, 0.06, 0.02, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
76
+ [11.0, 1.0, 0.045, 0.03, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
77
+ [12.0, 1.0, 0.06, 0.035, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
78
+ [13.0, 1.0, 0.06, 0.035, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
79
+ [14.0, 1.0, 0.12, 0.08, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
80
+ [15.0, 1.0, 0.06, 0.01, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
81
+ [16.0, 1.0, 0.06, 0.02, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
82
+ [17.0, 1.0, 0.06, 0.02, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
83
+ [18.0, 1.0, 0.09, 0.04, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
84
+ [19.0, 1.0, 0.09, 0.04, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
85
+ [20.0, 1.0, 0.09, 0.04, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
86
+ [21.0, 1.0, 0.09, 0.04, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
87
+ [22.0, 1.0, 0.09, 0.04, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
88
+ [23.0, 1.0, 0.09, 0.05, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
89
+ [24.0, 1.0, 0.42, 0.2, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
90
+ [25.0, 1.0, 0.42, 0.2, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
91
+ [26.0, 1.0, 0.06, 0.025, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
92
+ [27.0, 1.0, 0.06, 0.025, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
93
+ [28.0, 1.0, 0.06, 0.02, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
94
+ [29.0, 1.0, 0.12, 0.07, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
95
+ [30.0, 1.0, 0.2, 0.6, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
96
+ [31.0, 1.0, 0.15, 0.07, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
97
+ [32.0, 1.0, 0.21, 0.1, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9],
98
+ [33.0, 1.0, 0.06, 0.04, 0.0, 0.0, 1.0, 0.0, 12.66, 1.1, 0.9]])
99
+
100
+ # Generator (unit) data
101
+ self.units = DataFrame(
102
+ ['id', 'bus_id', 'Pg', 'Qg', 'Qmax', 'Qmin', 'Vg', 'mBase', 'status', 'Pmax', 'Pmin', 'mc_a', 'mc_b', 'mc_c', 'p_max', 'p_min'],
103
+ [[1.0, 1.0, 0.0, 0.0, 10.0, -10.0, 1.0, 100.0, 1.0, 10.0, 0.0, 0.0, 0.0, 20.0, 10.0, 0.0]])
104
+
105
+ # Branch (line) data
106
+ self.lines = DataFrame(
107
+ ['id', 'from', 'to', 'r', 'x', 'b', 'rateA', 'ratio', 'angle', 'status', 'floor', 'cap'],
108
+ [[1.0, 1.0, 2.0, 0.05752591161723931, 0.02932448856844086, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
109
+ [2.0, 2.0, 3.0, 0.3075951673242839, 0.156667639990117, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
110
+ [3.0, 3.0, 4.0, 0.22835665566062455, 0.11629967381185907, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
111
+ [4.0, 4.0, 5.0, 0.23777792751984705, 0.12110389853477384, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
112
+ [5.0, 5.0, 6.0, 0.5109948114372992, 0.44111517910399334, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
113
+ [6.0, 6.0, 7.0, 0.11679881404281126, 0.386084968641515, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
114
+ [7.0, 7.0, 8.0, 0.4438604503742304, 0.14668483537107332, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
115
+ [8.0, 8.0, 9.0, 0.642643047350938, 0.461704713630771, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
116
+ [9.0, 9.0, 10.0, 0.6513780013926013, 0.461704713630771, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
117
+ [10.0, 10.0, 11.0, 0.12266371175649943, 0.04055514376486502, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
118
+ [11.0, 11.0, 12.0, 0.2335976280856225, 0.0772419507398506, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
119
+ [12.0, 12.0, 13.0, 0.9159223237972591, 0.7206337084372169, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
120
+ [13.0, 13.0, 14.0, 0.33791793635462913, 0.4447963383072657, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
121
+ [14.0, 14.0, 15.0, 0.36873984561592654, 0.3281847018510615, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
122
+ [15.0, 15.0, 16.0, 0.4656354429495194, 0.340039282336176, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
123
+ [16.0, 16.0, 17.0, 0.8042396971217077, 1.0737754218358877, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
124
+ [17.0, 17.0, 18.0, 0.4567133113212491, 0.3581331157081926, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
125
+ [18.0, 2.0, 19.0, 0.10232374734519789, 0.09764430768002116, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
126
+ [19.0, 19.0, 20.0, 0.9385084192478456, 0.8456683362907391, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
127
+ [20.0, 20.0, 21.0, 0.2554974057186496, 0.29848585810940653, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
128
+ [21.0, 21.0, 22.0, 0.4423006371525048, 0.5848051730893535, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
129
+ [22.0, 3.0, 23.0, 0.28151509025703225, 0.19235616650319826, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
130
+ [23.0, 23.0, 24.0, 0.5602849092438275, 0.4424254222102428, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
131
+ [24.0, 24.0, 25.0, 0.559037058666447, 0.43743401990072095, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
132
+ [25.0, 6.0, 26.0, 0.12665683360411692, 0.06451387485056989, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
133
+ [26.0, 26.0, 27.0, 0.17731956704576368, 0.09028198927347643, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
134
+ [27.0, 27.0, 28.0, 0.6607368807229547, 0.5825590420500687, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
135
+ [28.0, 28.0, 29.0, 0.5017607171646838, 0.4371220572563759, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
136
+ [29.0, 29.0, 30.0, 0.3166420840102922, 0.16128468712642474, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
137
+ [30.0, 30.0, 31.0, 0.6079528012997611, 0.6008400530086925, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
138
+ [31.0, 31.0, 32.0, 0.19372880213831675, 0.2257985619769946, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
139
+ [32.0, 32.0, 33.0, 0.2127585234433688, 0.3308051880635605, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
140
+ [33.0, 21.0, 8.0, 1.247850577380462, 1.247850577380462, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
141
+ [34.0, 9.0, 15.0, 1.247850577380462, 1.247850577380462, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
142
+ [35.0, 12.0, 22.0, 1.247850577380462, 1.247850577380462, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
143
+ [36.0, 18.0, 33.0, 0.3119626443451155, 0.3119626443451155, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
144
+ [37.0, 25.0, 29.0, 0.3119626443451155, 0.3119626443451155, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]])
145
+
146
+ # Load data
147
+ self.loads = DataFrame(
148
+ ['id', 'bus_id', 'Pd', 'Qd', 'mc_a', 'mc_b', 'mc_c', 'd_max', 'd_min'],
149
+ [[1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
150
+ [2.0, 2.0, 0.1, 0.06, 0.0, 0.0, 0.0, 0.1, 0.1],
151
+ [3.0, 3.0, 0.09, 0.04, 0.0, 0.0, 0.0, 0.09, 0.09],
152
+ [4.0, 4.0, 0.12, 0.08, 0.0, 0.0, 0.0, 0.12, 0.12],
153
+ [5.0, 5.0, 0.06, 0.03, 0.0, 0.0, 0.0, 0.06, 0.06],
154
+ [6.0, 6.0, 0.06, 0.02, 0.0, 0.0, 0.0, 0.06, 0.06],
155
+ [7.0, 7.0, 0.2, 0.1, 0.0, 0.0, 0.0, 0.2, 0.2],
156
+ [8.0, 8.0, 0.2, 0.1, 0.0, 0.0, 0.0, 0.2, 0.2],
157
+ [9.0, 9.0, 0.06, 0.02, 0.0, 0.0, 0.0, 0.06, 0.06],
158
+ [10.0, 10.0, 0.06, 0.02, 0.0, 0.0, 0.0, 0.06, 0.06],
159
+ [11.0, 11.0, 0.045, 0.03, 0.0, 0.0, 0.0, 0.045, 0.045],
160
+ [12.0, 12.0, 0.06, 0.035, 0.0, 0.0, 0.0, 0.06, 0.06],
161
+ [13.0, 13.0, 0.06, 0.035, 0.0, 0.0, 0.0, 0.06, 0.06],
162
+ [14.0, 14.0, 0.12, 0.08, 0.0, 0.0, 0.0, 0.12, 0.12],
163
+ [15.0, 15.0, 0.06, 0.01, 0.0, 0.0, 0.0, 0.06, 0.06],
164
+ [16.0, 16.0, 0.06, 0.02, 0.0, 0.0, 0.0, 0.06, 0.06],
165
+ [17.0, 17.0, 0.06, 0.02, 0.0, 0.0, 0.0, 0.06, 0.06],
166
+ [18.0, 18.0, 0.09, 0.04, 0.0, 0.0, 0.0, 0.09, 0.09],
167
+ [19.0, 19.0, 0.09, 0.04, 0.0, 0.0, 0.0, 0.09, 0.09],
168
+ [20.0, 20.0, 0.09, 0.04, 0.0, 0.0, 0.0, 0.09, 0.09],
169
+ [21.0, 21.0, 0.09, 0.04, 0.0, 0.0, 0.0, 0.09, 0.09],
170
+ [22.0, 22.0, 0.09, 0.04, 0.0, 0.0, 0.0, 0.09, 0.09],
171
+ [23.0, 23.0, 0.09, 0.05, 0.0, 0.0, 0.0, 0.09, 0.09],
172
+ [24.0, 24.0, 0.42, 0.2, 0.0, 0.0, 0.0, 0.42, 0.42],
173
+ [25.0, 25.0, 0.42, 0.2, 0.0, 0.0, 0.0, 0.42, 0.42],
174
+ [26.0, 26.0, 0.06, 0.025, 0.0, 0.0, 0.0, 0.06, 0.06],
175
+ [27.0, 27.0, 0.06, 0.025, 0.0, 0.0, 0.0, 0.06, 0.06],
176
+ [28.0, 28.0, 0.06, 0.02, 0.0, 0.0, 0.0, 0.06, 0.06],
177
+ [29.0, 29.0, 0.12, 0.07, 0.0, 0.0, 0.0, 0.12, 0.12],
178
+ [30.0, 30.0, 0.2, 0.6, 0.0, 0.0, 0.0, 0.2, 0.2],
179
+ [31.0, 31.0, 0.15, 0.07, 0.0, 0.0, 0.0, 0.15, 0.15],
180
+ [32.0, 32.0, 0.21, 0.1, 0.0, 0.0, 0.0, 0.21, 0.21],
181
+ [33.0, 33.0, 0.06, 0.04, 0.0, 0.0, 0.0, 0.06, 0.06]])
182
+
183
+ self.real_params = True
184
+ super().__init__(*args, **kwargs)
powergrid_case/distribution/Case533mt_hi.py ADDED
The diff for this file is too large to render. See raw diff
 
powergrid_case/distribution/Case533mt_lo.py ADDED
The diff for this file is too large to render. See raw diff
 
powergrid_case/distribution/__init__.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Distribution grid case data."""
2
+
3
+ from .Case33bw import Case33bw
4
+ from .Case118zh import Case118zh
5
+ from .Case123 import Case123
6
+ from .Case141 import Case141
7
+ from .Case533mt_hi import Case533mt_hi
8
+ from .Case533mt_lo import Case533mt_lo
9
+
10
+ __all__ = [
11
+ "Case33bw",
12
+ "Case118zh",
13
+ "Case123",
14
+ "Case141",
15
+ "Case533mt_hi",
16
+ "Case533mt_lo",
17
+ ]
powergrid_case/transmission/Case118.py ADDED
@@ -0,0 +1,535 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """IEEE 118-bus system (MATPOWER case118)
2
+
3
+ Topology and power-flow data (nodes / lines / generator Pg–Qg–Vg) follow
4
+ MATPOWER `data/case118.m` (bundled as `source_mfile/case118.m`).
5
+
6
+ UC-style economic columns (`type`, `mc_*`, `p_max`/`p_min`, ramps, …) are
7
+ preserved from the previous PowerZoo Case118 SCUC-style table, keyed by
8
+ `bus_id` (54 generators; unique buses).
9
+
10
+ Nodes / lines include full MATPOWER fields so `cal_pf_trans.run_acpf` and
11
+ `run_dcpf` work on `Case118().init()`.
12
+
13
+ Base MVA: 100 MVA
14
+ """
15
+ from powerzoo.case.CaseBase import ClearCase, DataFrame
16
+
17
+
18
+ class Case118(ClearCase):
19
+ GRID_TYPE = "transmission"
20
+ BUS_COUNT = 118
21
+ VOLTAGE_LEVEL = "HV"
22
+ SOURCE = "MATPOWER"
23
+ DESCRIPTION = "IEEE 118-bus test system"
24
+
25
+ def __init__(self, *args, **kwargs):
26
+ self.baseMVA = 100
27
+ self.baseKV = 138.0
28
+
29
+ self.nodes = DataFrame(
30
+ ['id', 'type', 'Pd', 'Qd', 'Gs', 'Bs', 'Vm', 'Va', 'baseKV', 'Vmax', 'Vmin'],
31
+ [
32
+ [1, 2, 51, 27, 0, 0, 0.955, 10.67, 138, 1.06, 0.94],
33
+ [2, 1, 20, 9, 0, 0, 0.971, 11.22, 138, 1.06, 0.94],
34
+ [3, 1, 39, 10, 0, 0, 0.968, 11.56, 138, 1.06, 0.94],
35
+ [4, 2, 39, 12, 0, 0, 0.998, 15.28, 138, 1.06, 0.94],
36
+ [5, 1, 0, 0, 0, -40, 1.002, 15.73, 138, 1.06, 0.94],
37
+ [6, 2, 52, 22, 0, 0, 0.99, 13, 138, 1.06, 0.94],
38
+ [7, 1, 19, 2, 0, 0, 0.989, 12.56, 138, 1.06, 0.94],
39
+ [8, 2, 28, 0, 0, 0, 1.015, 20.77, 345, 1.06, 0.94],
40
+ [9, 1, 0, 0, 0, 0, 1.043, 28.02, 345, 1.06, 0.94],
41
+ [10, 2, 0, 0, 0, 0, 1.05, 35.61, 345, 1.06, 0.94],
42
+ [11, 1, 70, 23, 0, 0, 0.985, 12.72, 138, 1.06, 0.94],
43
+ [12, 2, 47, 10, 0, 0, 0.99, 12.2, 138, 1.06, 0.94],
44
+ [13, 1, 34, 16, 0, 0, 0.968, 11.35, 138, 1.06, 0.94],
45
+ [14, 1, 14, 1, 0, 0, 0.984, 11.5, 138, 1.06, 0.94],
46
+ [15, 2, 90, 30, 0, 0, 0.97, 11.23, 138, 1.06, 0.94],
47
+ [16, 1, 25, 10, 0, 0, 0.984, 11.91, 138, 1.06, 0.94],
48
+ [17, 1, 11, 3, 0, 0, 0.995, 13.74, 138, 1.06, 0.94],
49
+ [18, 2, 60, 34, 0, 0, 0.973, 11.53, 138, 1.06, 0.94],
50
+ [19, 2, 45, 25, 0, 0, 0.963, 11.05, 138, 1.06, 0.94],
51
+ [20, 1, 18, 3, 0, 0, 0.958, 11.93, 138, 1.06, 0.94],
52
+ [21, 1, 14, 8, 0, 0, 0.959, 13.52, 138, 1.06, 0.94],
53
+ [22, 1, 10, 5, 0, 0, 0.97, 16.08, 138, 1.06, 0.94],
54
+ [23, 1, 7, 3, 0, 0, 1, 21, 138, 1.06, 0.94],
55
+ [24, 2, 13, 0, 0, 0, 0.992, 20.89, 138, 1.06, 0.94],
56
+ [25, 2, 0, 0, 0, 0, 1.05, 27.93, 138, 1.06, 0.94],
57
+ [26, 2, 0, 0, 0, 0, 1.015, 29.71, 345, 1.06, 0.94],
58
+ [27, 2, 71, 13, 0, 0, 0.968, 15.35, 138, 1.06, 0.94],
59
+ [28, 1, 17, 7, 0, 0, 0.962, 13.62, 138, 1.06, 0.94],
60
+ [29, 1, 24, 4, 0, 0, 0.963, 12.63, 138, 1.06, 0.94],
61
+ [30, 1, 0, 0, 0, 0, 0.968, 18.79, 345, 1.06, 0.94],
62
+ [31, 2, 43, 27, 0, 0, 0.967, 12.75, 138, 1.06, 0.94],
63
+ [32, 2, 59, 23, 0, 0, 0.964, 14.8, 138, 1.06, 0.94],
64
+ [33, 1, 23, 9, 0, 0, 0.972, 10.63, 138, 1.06, 0.94],
65
+ [34, 2, 59, 26, 0, 14, 0.986, 11.3, 138, 1.06, 0.94],
66
+ [35, 1, 33, 9, 0, 0, 0.981, 10.87, 138, 1.06, 0.94],
67
+ [36, 2, 31, 17, 0, 0, 0.98, 10.87, 138, 1.06, 0.94],
68
+ [37, 1, 0, 0, 0, -25, 0.992, 11.77, 138, 1.06, 0.94],
69
+ [38, 1, 0, 0, 0, 0, 0.962, 16.91, 345, 1.06, 0.94],
70
+ [39, 1, 27, 11, 0, 0, 0.97, 8.41, 138, 1.06, 0.94],
71
+ [40, 2, 66, 23, 0, 0, 0.97, 7.35, 138, 1.06, 0.94],
72
+ [41, 1, 37, 10, 0, 0, 0.967, 6.92, 138, 1.06, 0.94],
73
+ [42, 2, 96, 23, 0, 0, 0.985, 8.53, 138, 1.06, 0.94],
74
+ [43, 1, 18, 7, 0, 0, 0.978, 11.28, 138, 1.06, 0.94],
75
+ [44, 1, 16, 8, 0, 10, 0.985, 13.82, 138, 1.06, 0.94],
76
+ [45, 1, 53, 22, 0, 10, 0.987, 15.67, 138, 1.06, 0.94],
77
+ [46, 2, 28, 10, 0, 10, 1.005, 18.49, 138, 1.06, 0.94],
78
+ [47, 1, 34, 0, 0, 0, 1.017, 20.73, 138, 1.06, 0.94],
79
+ [48, 1, 20, 11, 0, 15, 1.021, 19.93, 138, 1.06, 0.94],
80
+ [49, 2, 87, 30, 0, 0, 1.025, 20.94, 138, 1.06, 0.94],
81
+ [50, 1, 17, 4, 0, 0, 1.001, 18.9, 138, 1.06, 0.94],
82
+ [51, 1, 17, 8, 0, 0, 0.967, 16.28, 138, 1.06, 0.94],
83
+ [52, 1, 18, 5, 0, 0, 0.957, 15.32, 138, 1.06, 0.94],
84
+ [53, 1, 23, 11, 0, 0, 0.946, 14.35, 138, 1.06, 0.94],
85
+ [54, 2, 113, 32, 0, 0, 0.955, 15.26, 138, 1.06, 0.94],
86
+ [55, 2, 63, 22, 0, 0, 0.952, 14.97, 138, 1.06, 0.94],
87
+ [56, 2, 84, 18, 0, 0, 0.954, 15.16, 138, 1.06, 0.94],
88
+ [57, 1, 12, 3, 0, 0, 0.971, 16.36, 138, 1.06, 0.94],
89
+ [58, 1, 12, 3, 0, 0, 0.959, 15.51, 138, 1.06, 0.94],
90
+ [59, 2, 277, 113, 0, 0, 0.985, 19.37, 138, 1.06, 0.94],
91
+ [60, 1, 78, 3, 0, 0, 0.993, 23.15, 138, 1.06, 0.94],
92
+ [61, 2, 0, 0, 0, 0, 0.995, 24.04, 138, 1.06, 0.94],
93
+ [62, 2, 77, 14, 0, 0, 0.998, 23.43, 138, 1.06, 0.94],
94
+ [63, 1, 0, 0, 0, 0, 0.969, 22.75, 345, 1.06, 0.94],
95
+ [64, 1, 0, 0, 0, 0, 0.984, 24.52, 345, 1.06, 0.94],
96
+ [65, 2, 0, 0, 0, 0, 1.005, 27.65, 345, 1.06, 0.94],
97
+ [66, 2, 39, 18, 0, 0, 1.05, 27.48, 138, 1.06, 0.94],
98
+ [67, 1, 28, 7, 0, 0, 1.02, 24.84, 138, 1.06, 0.94],
99
+ [68, 1, 0, 0, 0, 0, 1.003, 27.55, 345, 1.06, 0.94],
100
+ [69, 3, 0, 0, 0, 0, 1.035, 30, 138, 1.06, 0.94],
101
+ [70, 2, 66, 20, 0, 0, 0.984, 22.58, 138, 1.06, 0.94],
102
+ [71, 1, 0, 0, 0, 0, 0.987, 22.15, 138, 1.06, 0.94],
103
+ [72, 2, 12, 0, 0, 0, 0.98, 20.98, 138, 1.06, 0.94],
104
+ [73, 2, 6, 0, 0, 0, 0.991, 21.94, 138, 1.06, 0.94],
105
+ [74, 2, 68, 27, 0, 12, 0.958, 21.64, 138, 1.06, 0.94],
106
+ [75, 1, 47, 11, 0, 0, 0.967, 22.91, 138, 1.06, 0.94],
107
+ [76, 2, 68, 36, 0, 0, 0.943, 21.77, 138, 1.06, 0.94],
108
+ [77, 2, 61, 28, 0, 0, 1.006, 26.72, 138, 1.06, 0.94],
109
+ [78, 1, 71, 26, 0, 0, 1.003, 26.42, 138, 1.06, 0.94],
110
+ [79, 1, 39, 32, 0, 20, 1.009, 26.72, 138, 1.06, 0.94],
111
+ [80, 2, 130, 26, 0, 0, 1.04, 28.96, 138, 1.06, 0.94],
112
+ [81, 1, 0, 0, 0, 0, 0.997, 28.1, 345, 1.06, 0.94],
113
+ [82, 1, 54, 27, 0, 20, 0.989, 27.24, 138, 1.06, 0.94],
114
+ [83, 1, 20, 10, 0, 10, 0.985, 28.42, 138, 1.06, 0.94],
115
+ [84, 1, 11, 7, 0, 0, 0.98, 30.95, 138, 1.06, 0.94],
116
+ [85, 2, 24, 15, 0, 0, 0.985, 32.51, 138, 1.06, 0.94],
117
+ [86, 1, 21, 10, 0, 0, 0.987, 31.14, 138, 1.06, 0.94],
118
+ [87, 2, 0, 0, 0, 0, 1.015, 31.4, 161, 1.06, 0.94],
119
+ [88, 1, 48, 10, 0, 0, 0.987, 35.64, 138, 1.06, 0.94],
120
+ [89, 2, 0, 0, 0, 0, 1.005, 39.69, 138, 1.06, 0.94],
121
+ [90, 2, 163, 42, 0, 0, 0.985, 33.29, 138, 1.06, 0.94],
122
+ [91, 2, 10, 0, 0, 0, 0.98, 33.31, 138, 1.06, 0.94],
123
+ [92, 2, 65, 10, 0, 0, 0.993, 33.8, 138, 1.06, 0.94],
124
+ [93, 1, 12, 7, 0, 0, 0.987, 30.79, 138, 1.06, 0.94],
125
+ [94, 1, 30, 16, 0, 0, 0.991, 28.64, 138, 1.06, 0.94],
126
+ [95, 1, 42, 31, 0, 0, 0.981, 27.67, 138, 1.06, 0.94],
127
+ [96, 1, 38, 15, 0, 0, 0.993, 27.51, 138, 1.06, 0.94],
128
+ [97, 1, 15, 9, 0, 0, 1.011, 27.88, 138, 1.06, 0.94],
129
+ [98, 1, 34, 8, 0, 0, 1.024, 27.4, 138, 1.06, 0.94],
130
+ [99, 2, 42, 0, 0, 0, 1.01, 27.04, 138, 1.06, 0.94],
131
+ [100, 2, 37, 18, 0, 0, 1.017, 28.03, 138, 1.06, 0.94],
132
+ [101, 1, 22, 15, 0, 0, 0.993, 29.61, 138, 1.06, 0.94],
133
+ [102, 1, 5, 3, 0, 0, 0.991, 32.3, 138, 1.06, 0.94],
134
+ [103, 2, 23, 16, 0, 0, 1.001, 24.44, 138, 1.06, 0.94],
135
+ [104, 2, 38, 25, 0, 0, 0.971, 21.69, 138, 1.06, 0.94],
136
+ [105, 2, 31, 26, 0, 20, 0.965, 20.57, 138, 1.06, 0.94],
137
+ [106, 1, 43, 16, 0, 0, 0.962, 20.32, 138, 1.06, 0.94],
138
+ [107, 2, 50, 12, 0, 6, 0.952, 17.53, 138, 1.06, 0.94],
139
+ [108, 1, 2, 1, 0, 0, 0.967, 19.38, 138, 1.06, 0.94],
140
+ [109, 1, 8, 3, 0, 0, 0.967, 18.93, 138, 1.06, 0.94],
141
+ [110, 2, 39, 30, 0, 6, 0.973, 18.09, 138, 1.06, 0.94],
142
+ [111, 2, 0, 0, 0, 0, 0.98, 19.74, 138, 1.06, 0.94],
143
+ [112, 2, 68, 13, 0, 0, 0.975, 14.99, 138, 1.06, 0.94],
144
+ [113, 2, 6, 0, 0, 0, 0.993, 13.74, 138, 1.06, 0.94],
145
+ [114, 1, 8, 3, 0, 0, 0.96, 14.46, 138, 1.06, 0.94],
146
+ [115, 1, 22, 7, 0, 0, 0.96, 14.46, 138, 1.06, 0.94],
147
+ [116, 2, 184, 0, 0, 0, 1.005, 27.12, 138, 1.06, 0.94],
148
+ [117, 1, 20, 8, 0, 0, 0.974, 10.67, 138, 1.06, 0.94],
149
+ [118, 1, 33, 15, 0, 0, 0.949, 21.92, 138, 1.06, 0.94]
150
+ ])
151
+
152
+ self.units = DataFrame(
153
+ ['id', 'bus_id', 'Pg', 'Qg', 'Qmax', 'Qmin', 'Vg', 'mBase', 'status',
154
+ 'Pmax', 'Pmin', 'mc_a', 'mc_b', 'mc_c', 'p_max', 'p_min',
155
+ 'type', 'ramp_up', 'ramp_down', 'init_start_up_cost', 'keep_time',
156
+ 'init_power', 'init_state', 'min_up_time', 'min_down_time', 'init_no_load_cost'],
157
+ [
158
+ [1, 1, 0, 0, 15, -5, 0.955, 100, 1, 100, 0, 0.030864, -2.335, 70, 90, 18, 'coal', 0.7, 0.7, 14167, -96, 0, 0, 4, 4, 941.73],
159
+ [2, 4, 0, 0, 300, -300, 0.998, 100, 1, 100, 0, 0.029537, -2.284239, 70, 92, 18, 'coal', 0.7, 0.7, 11377, -96, 0, 0, 4, 4, 962.66],
160
+ [3, 6, 0, 0, 50, -13, 0.99, 100, 1, 100, 0, 0.043824, -4.543579, 138, 95, 19, 'gas', 0.7, 0.7, 9153, -96, 0, 0, 1, 1, 1902.08],
161
+ [4, 8, 0, 0, 300, -300, 1.015, 100, 1, 100, 0, 0.042916, -4.49625, 138, 96, 19, 'gas', 0.7, 0.7, 8777, -96, 0, 0, 1, 1, 1922.1],
162
+ [5, 10, 450, 0, 200, -147, 1.05, 100, 1, 550, 0, 0.000826, -0.382091, 64, 550, 110, 'coal', 0.7, 0.7, 11948, 96, 110, 1, 4, 4, 5095.02],
163
+ [6, 12, 85, 0, 120, -35, 0.99, 100, 1, 185, 0, 0.00303, -0.629467, 33, 169, 34, 'nuclear', 0.7, 0.7, 25094, 96, 169, 1, 96, 96, 794.84],
164
+ [7, 15, 0, 0, 30, -10, 0.97, 100, 1, 100, 0, 0.046728, -4.691739, 139, 92, 18, 'gas', 0.7, 0.7, 9745, -96, 0, 0, 1, 1, 1860.41],
165
+ [8, 18, 0, 0, 50, -16, 0.973, 100, 1, 100, 0, 0.028905, -2.259677, 70, 93, 19, 'coal', 0.6999, 0.6999, 11402, 96, 93, 1, 4, 4, 973.12],
166
+ [9, 19, 0, 0, 24, -8, 0.962, 100, 1, 100, 0, 0.032283, -2.388068, 70, 88, 18, 'coal', 0.7, 0.7, 14277, 96, 88, 1, 4, 4, 920.8],
167
+ [10, 24, 0, 0, 300, -300, 0.992, 100, 1, 100, 0, 0.029537, -2.284239, 70, 92, 18, 'coal', 0.7, 0.7, 15093, 96, 92, 1, 4, 4, 962.66],
168
+ [11, 25, 220, 0, 140, -47, 1.05, 100, 1, 320, 0, 0.000883, -0.339872, 32, 313, 63, 'nuclear', 0.7, 0.7, 49408, 96, 313, 1, 96, 96, 1409.49],
169
+ [12, 26, 314, 0, 1000, -1000, 1.015, 100, 1, 414, 0, 0.002319, -1.045133, 130, 413, 83, 'gas', 0.7, 0.7, 8867, -96, 0, 0, 1, 1, 7608.24],
170
+ [13, 27, 0, 0, 300, -300, 0.968, 100, 1, 100, 0, 0.032283, -2.388068, 70, 88, 18, 'coal', 0.7, 0.7, 13902, 96, 88, 1, 4, 4, 920.8],
171
+ [14, 31, 7, 0, 300, -300, 0.967, 100, 1, 107, 0, 0.0352, -4.072075, 138, 106, 21, 'gas', 0.7, 0.7, 9954, -96, 0, 0, 1, 1, 2122.32],
172
+ [15, 32, 0, 0, 42, -14, 0.963, 100, 1, 100, 0, 0.032283, -2.388068, 70, 88, 18, 'coal', 0.7001, 0.7001, 11115, 96, 88, 1, 4, 4, 920.8],
173
+ [16, 34, 0, 0, 24, -8, 0.984, 100, 1, 100, 0, 0.029537, -2.284239, 70, 92, 18, 'coal', 0.7, 0.7, 11897, -96, 0, 0, 4, 4, 962.66],
174
+ [17, 36, 0, 0, 24, -8, 0.98, 100, 1, 100, 0, 0.046728, -4.691739, 139, 92, 18, 'gas', 0.7001, 0.7001, 9925, 96, 92, 1, 1, 1, 1860.41],
175
+ [18, 40, 0, 0, 300, -300, 0.97, 100, 1, 100, 0, 0.044761, -4.591915, 138, 94, 19, 'gas', 0.7, 0.7, 8680, -96, 0, 0, 1, 1, 1882.06],
176
+ [19, 42, 0, 0, 300, -300, 0.985, 100, 1, 100, 0, 0.043824, -4.543579, 138, 95, 19, 'gas', 0.7, 0.7, 7309, 96, 95, 1, 1, 1, 1902.08],
177
+ [20, 46, 19, 0, 100, -100, 1.005, 100, 1, 119, 0, 0.017955, -1.780932, 69, 118, 24, 'coal', 0.7, 0.7, 17685, 96, 24, 1, 4, 4, 1211.11],
178
+ [21, 49, 204, 0, 210, -85, 1.025, 100, 1, 304, 0, 0.000949, -0.352252, 32, 302, 60, 'nuclear', 0.7, 0.7, 53638, 96, 302, 1, 96, 96, 1359.96],
179
+ [22, 54, 48, 0, 300, -300, 0.955, 100, 1, 148, 0, 0.012056, -1.459375, 69, 144, 29, 'coal', 0.7, 0.7, 12008, -96, 0, 0, 4, 4, 1477.97],
180
+ [23, 55, 0, 0, 23, -8, 0.952, 100, 1, 100, 0, 0.042916, -4.49625, 138, 96, 19, 'gas', 0.7, 0.7, 7920, -96, 0, 0, 1, 1, 1922.1],
181
+ [24, 56, 0, 0, 15, -8, 0.954, 100, 1, 100, 0, 0.029537, -2.284239, 70, 92, 18, 'coal', 0.7, 0.7, 14251, -96, 0, 0, 4, 4, 962.66],
182
+ [25, 59, 155, 0, 180, -60, 0.985, 100, 1, 255, 0, 0.004032, -0.843976, 68, 249, 50, 'coal', 0.7, 0.7, 18429, 96, 249, 1, 4, 4, 2505.85],
183
+ [26, 61, 160, 0, 300, -100, 0.995, 100, 1, 260, 0, 0.003815, -0.820898, 68, 256, 51, 'coal', 0.7, 0.7, 18041, 96, 256, 1, 4, 4, 2576.3],
184
+ [27, 62, 0, 0, 20, -20, 0.998, 100, 1, 100, 0, 0.042916, -4.49625, 138, 96, 19, 'gas', 0.7, 0.7, 5163, -96, 0, 0, 1, 1, 1922.1],
185
+ [28, 65, 391, 0, 200, -67, 1.005, 100, 1, 491, 0, 0.001641, -0.879104, 128, 491, 98, 'gas', 0.7, 0.7, 8340, 96, 98, 1, 1, 1, 8848.75],
186
+ [29, 66, 392, 0, 200, -67, 1.05, 100, 1, 492, 0, 0.001033, -0.427134, 65, 492, 98, 'coal', 0.7, 0.7, 10019, 96, 98, 1, 4, 4, 4656.12],
187
+ [30, 69, 516.4, 0, 300, -300, 1.035, 100, 1, 805.2, 0, 0.000134, -0.132149, 30, 805, 161, 'nuclear', 0.7, 0.7, 105237, -96, 0, 0, 96, 96, 3303.05],
188
+ [31, 70, 0, 0, 32, -10, 0.984, 100, 1, 100, 0, 0.028905, -2.259677, 70, 93, 19, 'coal', 0.7, 0.7, 14265, -96, 0, 0, 4, 4, 973.12],
189
+ [32, 72, 0, 0, 100, -100, 0.98, 100, 1, 100, 0, 0.028293, -2.235638, 70, 94, 19, 'coal', 0.7, 0.7, 11281, 96, 94, 1, 4, 4, 983.58],
190
+ [33, 73, 0, 0, 100, -100, 0.991, 100, 1, 100, 0, 0.035431, -2.501786, 70, 84, 17, 'coal', 0.7, 0.7, 12609, -96, 0, 0, 4, 4, 878.95],
191
+ [34, 74, 0, 0, 9, -6, 0.958, 100, 1, 100, 0, 0.047761, -4.743297, 139, 91, 18, 'gas', 0.7, 0.7, 7543, 96, 85, 1, 1, 1, 1840.19],
192
+ [35, 76, 0, 0, 23, -8, 0.943, 100, 1, 100, 0, 0.028293, -2.235638, 70, 94, 19, 'coal', 0.7, 0.7, 12383, -96, 0, 0, 4, 4, 983.58],
193
+ [36, 77, 0, 0, 70, -20, 1.006, 100, 1, 100, 0, 0.029537, -2.284239, 70, 92, 18, 'coal', 0.7, 0.7, 11580, -96, 0, 0, 4, 4, 962.66],
194
+ [37, 80, 477, 0, 280, -165, 1.04, 100, 1, 577, 0, 0.000751, -0.364211, 64, 577, 115, 'coal', 0.7, 0.7, 11367, 96, 115, 1, 4, 4, 5345.14],
195
+ [38, 85, 0, 0, 23, -8, 0.985, 100, 1, 100, 0, 0.029537, -2.284239, 70, 92, 18, 'coal', 0.7, 0.7, 11322, 96, 92, 1, 4, 4, 962.66],
196
+ [39, 87, 4, 0, 1000, -100, 1.015, 100, 1, 104, 0, 0.025508, -2.122727, 70, 99, 20, 'coal', 0.7, 0.7, 10239, -96, 0, 0, 4, 4, 1035.9],
197
+ [40, 89, 607, 0, 300, -210, 1.005, 100, 1, 707, 0, 0.000518, -0.302374, 62, 695, 139, 'coal', 0.7, 0.7, 18192, 96, 139, 1, 4, 4, 6160.25],
198
+ [41, 90, 0, 0, 300, -300, 0.985, 100, 1, 100, 0, 0.045729, -4.64129, 139, 93, 19, 'gas', 0.6999, 0.6999, 7559, -96, 0, 0, 1, 1, 1880.64],
199
+ [42, 91, 0, 0, 100, -100, 0.98, 100, 1, 100, 0, 0.028905, -2.259677, 70, 93, 19, 'coal', 0.7, 0.7, 13464, 96, 93, 1, 4, 4, 973.12],
200
+ [43, 92, 0, 0, 9, -3, 0.99, 100, 1, 100, 0, 0.028293, -2.235638, 70, 94, 19, 'coal', 0.7, 0.7, 13218, 96, 94, 1, 4, 4, 983.58],
201
+ [44, 99, 0, 0, 100, -100, 1.01, 100, 1, 100, 0, 0.028293, -2.235638, 70, 94, 19, 'coal', 0.7, 0.7, 10277, -96, 0, 0, 4, 4, 983.58],
202
+ [45, 100, 252, 0, 155, -50, 1.017, 100, 1, 352, 0, 0.000698, -0.302216, 32, 352, 70, 'nuclear', 0.7, 0.7, 33872, -96, 0, 0, 96, 96, 1585.12],
203
+ [46, 103, 40, 0, 40, -15, 1.01, 100, 1, 140, 0, 0.013717, -1.556667, 69, 135, 27, 'coal', 0.7, 0.7, 16123, -96, 0, 0, 4, 4, 1385.6],
204
+ [47, 104, 0, 0, 23, -8, 0.971, 100, 1, 100, 0, 0.043824, -4.543579, 138, 95, 19, 'gas', 0.7, 0.7, 7948, 96, 95, 1, 1, 1, 1902.08],
205
+ [48, 105, 0, 0, 23, -8, 0.965, 100, 1, 100, 0, 0.048828, -4.796, 139, 90, 18, 'gas', 0.7, 0.7, 9611, 96, 90, 1, 1, 1, 1819.97],
206
+ [49, 107, 0, 0, 200, -200, 0.952, 100, 1, 100, 0, 0.046728, -4.691739, 139, 92, 18, 'gas', 0.7, 0.7, 7920, 96, 92, 1, 1, 1, 1860.41],
207
+ [50, 110, 0, 0, 23, -8, 0.973, 100, 1, 100, 0, 0.029537, -2.284239, 70, 92, 18, 'coal', 0.7, 0.7, 11775, 96, 92, 1, 4, 4, 962.66],
208
+ [51, 111, 36, 0, 1000, -100, 0.98, 100, 1, 136, 0, 0.014348, -1.592045, 69, 132, 26, 'coal', 0.7, 0.7, 19880, 96, 132, 1, 4, 4, 1354.8],
209
+ [52, 112, 0, 0, 1000, -100, 0.975, 100, 1, 100, 0, 0.028293, -2.235638, 70, 94, 19, 'coal', 0.7, 0.7, 10897, -96, 0, 0, 4, 4, 983.58],
210
+ [53, 113, 0, 0, 200, -100, 0.993, 100, 1, 100, 0, 0.027701, -2.212105, 70, 95, 19, 'coal', 0.7, 0.7, 11855, 96, 95, 1, 4, 4, 994.05],
211
+ [54, 116, 0, 0, 1000, -1000, 1.005, 100, 1, 100, 0, 0.045729, -4.64129, 139, 93, 19, 'gas', 0.7, 0.7, 7749, -96, 0, 0, 1, 1, 1880.64]
212
+ ])
213
+
214
+ self.lines = DataFrame(
215
+ ['id', 'from', 'to', 'r', 'x', 'b', 'rateA', 'ratio', 'angle', 'status', 'floor', 'cap'],
216
+ [
217
+ [1, 1, 2, 0.0303, 0.0999, 0.0254, 0, 0, 0, 1, 0, 0],
218
+ [2, 1, 3, 0.0129, 0.0424, 0.01082, 0, 0, 0, 1, 0, 0],
219
+ [3, 4, 5, 0.00176, 0.00798, 0.0021, 0, 0, 0, 1, 0, 0],
220
+ [4, 3, 5, 0.0241, 0.108, 0.0284, 0, 0, 0, 1, 0, 0],
221
+ [5, 5, 6, 0.0119, 0.054, 0.01426, 0, 0, 0, 1, 0, 0],
222
+ [6, 6, 7, 0.00459, 0.0208, 0.0055, 0, 0, 0, 1, 0, 0],
223
+ [7, 8, 9, 0.00244, 0.0305, 1.162, 0, 0, 0, 1, 0, 0],
224
+ [8, 8, 5, 0, 0.0267, 0, 0, 0.985, 0, 1, 0, 0],
225
+ [9, 9, 10, 0.00258, 0.0322, 1.23, 0, 0, 0, 1, 0, 0],
226
+ [10, 4, 11, 0.0209, 0.0688, 0.01748, 0, 0, 0, 1, 0, 0],
227
+ [11, 5, 11, 0.0203, 0.0682, 0.01738, 0, 0, 0, 1, 0, 0],
228
+ [12, 11, 12, 0.00595, 0.0196, 0.00502, 0, 0, 0, 1, 0, 0],
229
+ [13, 2, 12, 0.0187, 0.0616, 0.01572, 0, 0, 0, 1, 0, 0],
230
+ [14, 3, 12, 0.0484, 0.16, 0.0406, 0, 0, 0, 1, 0, 0],
231
+ [15, 7, 12, 0.00862, 0.034, 0.00874, 0, 0, 0, 1, 0, 0],
232
+ [16, 11, 13, 0.02225, 0.0731, 0.01876, 0, 0, 0, 1, 0, 0],
233
+ [17, 12, 14, 0.0215, 0.0707, 0.01816, 0, 0, 0, 1, 0, 0],
234
+ [18, 13, 15, 0.0744, 0.2444, 0.06268, 0, 0, 0, 1, 0, 0],
235
+ [19, 14, 15, 0.0595, 0.195, 0.0502, 0, 0, 0, 1, 0, 0],
236
+ [20, 12, 16, 0.0212, 0.0834, 0.0214, 0, 0, 0, 1, 0, 0],
237
+ [21, 15, 17, 0.0132, 0.0437, 0.0444, 0, 0, 0, 1, 0, 0],
238
+ [22, 16, 17, 0.0454, 0.1801, 0.0466, 0, 0, 0, 1, 0, 0],
239
+ [23, 17, 18, 0.0123, 0.0505, 0.01298, 0, 0, 0, 1, 0, 0],
240
+ [24, 18, 19, 0.01119, 0.0493, 0.01142, 0, 0, 0, 1, 0, 0],
241
+ [25, 19, 20, 0.0252, 0.117, 0.0298, 0, 0, 0, 1, 0, 0],
242
+ [26, 15, 19, 0.012, 0.0394, 0.0101, 0, 0, 0, 1, 0, 0],
243
+ [27, 20, 21, 0.0183, 0.0849, 0.0216, 0, 0, 0, 1, 0, 0],
244
+ [28, 21, 22, 0.0209, 0.097, 0.0246, 0, 0, 0, 1, 0, 0],
245
+ [29, 22, 23, 0.0342, 0.159, 0.0404, 0, 0, 0, 1, 0, 0],
246
+ [30, 23, 24, 0.0135, 0.0492, 0.0498, 0, 0, 0, 1, 0, 0],
247
+ [31, 23, 25, 0.0156, 0.08, 0.0864, 0, 0, 0, 1, 0, 0],
248
+ [32, 26, 25, 0, 0.0382, 0, 0, 0.96, 0, 1, 0, 0],
249
+ [33, 25, 27, 0.0318, 0.163, 0.1764, 0, 0, 0, 1, 0, 0],
250
+ [34, 27, 28, 0.01913, 0.0855, 0.0216, 0, 0, 0, 1, 0, 0],
251
+ [35, 28, 29, 0.0237, 0.0943, 0.0238, 0, 0, 0, 1, 0, 0],
252
+ [36, 30, 17, 0, 0.0388, 0, 0, 0.96, 0, 1, 0, 0],
253
+ [37, 8, 30, 0.00431, 0.0504, 0.514, 0, 0, 0, 1, 0, 0],
254
+ [38, 26, 30, 0.00799, 0.086, 0.908, 0, 0, 0, 1, 0, 0],
255
+ [39, 17, 31, 0.0474, 0.1563, 0.0399, 0, 0, 0, 1, 0, 0],
256
+ [40, 29, 31, 0.0108, 0.0331, 0.0083, 0, 0, 0, 1, 0, 0],
257
+ [41, 23, 32, 0.0317, 0.1153, 0.1173, 0, 0, 0, 1, 0, 0],
258
+ [42, 31, 32, 0.0298, 0.0985, 0.0251, 0, 0, 0, 1, 0, 0],
259
+ [43, 27, 32, 0.0229, 0.0755, 0.01926, 0, 0, 0, 1, 0, 0],
260
+ [44, 15, 33, 0.038, 0.1244, 0.03194, 0, 0, 0, 1, 0, 0],
261
+ [45, 19, 34, 0.0752, 0.247, 0.0632, 0, 0, 0, 1, 0, 0],
262
+ [46, 35, 36, 0.00224, 0.0102, 0.00268, 0, 0, 0, 1, 0, 0],
263
+ [47, 35, 37, 0.011, 0.0497, 0.01318, 0, 0, 0, 1, 0, 0],
264
+ [48, 33, 37, 0.0415, 0.142, 0.0366, 0, 0, 0, 1, 0, 0],
265
+ [49, 34, 36, 0.00871, 0.0268, 0.00568, 0, 0, 0, 1, 0, 0],
266
+ [50, 34, 37, 0.00256, 0.0094, 0.00984, 0, 0, 0, 1, 0, 0],
267
+ [51, 38, 37, 0, 0.0375, 0, 0, 0.935, 0, 1, 0, 0],
268
+ [52, 37, 39, 0.0321, 0.106, 0.027, 0, 0, 0, 1, 0, 0],
269
+ [53, 37, 40, 0.0593, 0.168, 0.042, 0, 0, 0, 1, 0, 0],
270
+ [54, 30, 38, 0.00464, 0.054, 0.422, 0, 0, 0, 1, 0, 0],
271
+ [55, 39, 40, 0.0184, 0.0605, 0.01552, 0, 0, 0, 1, 0, 0],
272
+ [56, 40, 41, 0.0145, 0.0487, 0.01222, 0, 0, 0, 1, 0, 0],
273
+ [57, 40, 42, 0.0555, 0.183, 0.0466, 0, 0, 0, 1, 0, 0],
274
+ [58, 41, 42, 0.041, 0.135, 0.0344, 0, 0, 0, 1, 0, 0],
275
+ [59, 43, 44, 0.0608, 0.2454, 0.06068, 0, 0, 0, 1, 0, 0],
276
+ [60, 34, 43, 0.0413, 0.1681, 0.04226, 0, 0, 0, 1, 0, 0],
277
+ [61, 44, 45, 0.0224, 0.0901, 0.0224, 0, 0, 0, 1, 0, 0],
278
+ [62, 45, 46, 0.04, 0.1356, 0.0332, 0, 0, 0, 1, 0, 0],
279
+ [63, 46, 47, 0.038, 0.127, 0.0316, 0, 0, 0, 1, 0, 0],
280
+ [64, 46, 48, 0.0601, 0.189, 0.0472, 0, 0, 0, 1, 0, 0],
281
+ [65, 47, 49, 0.0191, 0.0625, 0.01604, 0, 0, 0, 1, 0, 0],
282
+ [66, 42, 49, 0.0715, 0.323, 0.086, 0, 0, 0, 1, 0, 0],
283
+ [67, 42, 49, 0.0715, 0.323, 0.086, 0, 0, 0, 1, 0, 0],
284
+ [68, 45, 49, 0.0684, 0.186, 0.0444, 0, 0, 0, 1, 0, 0],
285
+ [69, 48, 49, 0.0179, 0.0505, 0.01258, 0, 0, 0, 1, 0, 0],
286
+ [70, 49, 50, 0.0267, 0.0752, 0.01874, 0, 0, 0, 1, 0, 0],
287
+ [71, 49, 51, 0.0486, 0.137, 0.0342, 0, 0, 0, 1, 0, 0],
288
+ [72, 51, 52, 0.0203, 0.0588, 0.01396, 0, 0, 0, 1, 0, 0],
289
+ [73, 52, 53, 0.0405, 0.1635, 0.04058, 0, 0, 0, 1, 0, 0],
290
+ [74, 53, 54, 0.0263, 0.122, 0.031, 0, 0, 0, 1, 0, 0],
291
+ [75, 49, 54, 0.073, 0.289, 0.0738, 0, 0, 0, 1, 0, 0],
292
+ [76, 49, 54, 0.0869, 0.291, 0.073, 0, 0, 0, 1, 0, 0],
293
+ [77, 54, 55, 0.0169, 0.0707, 0.0202, 0, 0, 0, 1, 0, 0],
294
+ [78, 54, 56, 0.00275, 0.00955, 0.00732, 0, 0, 0, 1, 0, 0],
295
+ [79, 55, 56, 0.00488, 0.0151, 0.00374, 0, 0, 0, 1, 0, 0],
296
+ [80, 56, 57, 0.0343, 0.0966, 0.0242, 0, 0, 0, 1, 0, 0],
297
+ [81, 50, 57, 0.0474, 0.134, 0.0332, 0, 0, 0, 1, 0, 0],
298
+ [82, 56, 58, 0.0343, 0.0966, 0.0242, 0, 0, 0, 1, 0, 0],
299
+ [83, 51, 58, 0.0255, 0.0719, 0.01788, 0, 0, 0, 1, 0, 0],
300
+ [84, 54, 59, 0.0503, 0.2293, 0.0598, 0, 0, 0, 1, 0, 0],
301
+ [85, 56, 59, 0.0825, 0.251, 0.0569, 0, 0, 0, 1, 0, 0],
302
+ [86, 56, 59, 0.0803, 0.239, 0.0536, 0, 0, 0, 1, 0, 0],
303
+ [87, 55, 59, 0.04739, 0.2158, 0.05646, 0, 0, 0, 1, 0, 0],
304
+ [88, 59, 60, 0.0317, 0.145, 0.0376, 0, 0, 0, 1, 0, 0],
305
+ [89, 59, 61, 0.0328, 0.15, 0.0388, 0, 0, 0, 1, 0, 0],
306
+ [90, 60, 61, 0.00264, 0.0135, 0.01456, 0, 0, 0, 1, 0, 0],
307
+ [91, 60, 62, 0.0123, 0.0561, 0.01468, 0, 0, 0, 1, 0, 0],
308
+ [92, 61, 62, 0.00824, 0.0376, 0.0098, 0, 0, 0, 1, 0, 0],
309
+ [93, 63, 59, 0, 0.0386, 0, 0, 0.96, 0, 1, 0, 0],
310
+ [94, 63, 64, 0.00172, 0.02, 0.216, 0, 0, 0, 1, 0, 0],
311
+ [95, 64, 61, 0, 0.0268, 0, 0, 0.985, 0, 1, 0, 0],
312
+ [96, 38, 65, 0.00901, 0.0986, 1.046, 0, 0, 0, 1, 0, 0],
313
+ [97, 64, 65, 0.00269, 0.0302, 0.38, 0, 0, 0, 1, 0, 0],
314
+ [98, 49, 66, 0.018, 0.0919, 0.0248, 0, 0, 0, 1, 0, 0],
315
+ [99, 49, 66, 0.018, 0.0919, 0.0248, 0, 0, 0, 1, 0, 0],
316
+ [100, 62, 66, 0.0482, 0.218, 0.0578, 0, 0, 0, 1, 0, 0],
317
+ [101, 62, 67, 0.0258, 0.117, 0.031, 0, 0, 0, 1, 0, 0],
318
+ [102, 65, 66, 0, 0.037, 0, 0, 0.935, 0, 1, 0, 0],
319
+ [103, 66, 67, 0.0224, 0.1015, 0.02682, 0, 0, 0, 1, 0, 0],
320
+ [104, 65, 68, 0.00138, 0.016, 0.638, 0, 0, 0, 1, 0, 0],
321
+ [105, 47, 69, 0.0844, 0.2778, 0.07092, 0, 0, 0, 1, 0, 0],
322
+ [106, 49, 69, 0.0985, 0.324, 0.0828, 0, 0, 0, 1, 0, 0],
323
+ [107, 68, 69, 0, 0.037, 0, 0, 0.935, 0, 1, 0, 0],
324
+ [108, 69, 70, 0.03, 0.127, 0.122, 0, 0, 0, 1, 0, 0],
325
+ [109, 24, 70, 0.00221, 0.4115, 0.10198, 0, 0, 0, 1, 0, 0],
326
+ [110, 70, 71, 0.00882, 0.0355, 0.00878, 0, 0, 0, 1, 0, 0],
327
+ [111, 24, 72, 0.0488, 0.196, 0.0488, 0, 0, 0, 1, 0, 0],
328
+ [112, 71, 72, 0.0446, 0.18, 0.04444, 0, 0, 0, 1, 0, 0],
329
+ [113, 71, 73, 0.00866, 0.0454, 0.01178, 0, 0, 0, 1, 0, 0],
330
+ [114, 70, 74, 0.0401, 0.1323, 0.03368, 0, 0, 0, 1, 0, 0],
331
+ [115, 70, 75, 0.0428, 0.141, 0.036, 0, 0, 0, 1, 0, 0],
332
+ [116, 69, 75, 0.0405, 0.122, 0.124, 0, 0, 0, 1, 0, 0],
333
+ [117, 74, 75, 0.0123, 0.0406, 0.01034, 0, 0, 0, 1, 0, 0],
334
+ [118, 76, 77, 0.0444, 0.148, 0.0368, 0, 0, 0, 1, 0, 0],
335
+ [119, 69, 77, 0.0309, 0.101, 0.1038, 0, 0, 0, 1, 0, 0],
336
+ [120, 75, 77, 0.0601, 0.1999, 0.04978, 0, 0, 0, 1, 0, 0],
337
+ [121, 77, 78, 0.00376, 0.0124, 0.01264, 0, 0, 0, 1, 0, 0],
338
+ [122, 78, 79, 0.00546, 0.0244, 0.00648, 0, 0, 0, 1, 0, 0],
339
+ [123, 77, 80, 0.017, 0.0485, 0.0472, 0, 0, 0, 1, 0, 0],
340
+ [124, 77, 80, 0.0294, 0.105, 0.0228, 0, 0, 0, 1, 0, 0],
341
+ [125, 79, 80, 0.0156, 0.0704, 0.0187, 0, 0, 0, 1, 0, 0],
342
+ [126, 68, 81, 0.00175, 0.0202, 0.808, 0, 0, 0, 1, 0, 0],
343
+ [127, 81, 80, 0, 0.037, 0, 0, 0.935, 0, 1, 0, 0],
344
+ [128, 77, 82, 0.0298, 0.0853, 0.08174, 0, 0, 0, 1, 0, 0],
345
+ [129, 82, 83, 0.0112, 0.03665, 0.03796, 0, 0, 0, 1, 0, 0],
346
+ [130, 83, 84, 0.0625, 0.132, 0.0258, 0, 0, 0, 1, 0, 0],
347
+ [131, 83, 85, 0.043, 0.148, 0.0348, 0, 0, 0, 1, 0, 0],
348
+ [132, 84, 85, 0.0302, 0.0641, 0.01234, 0, 0, 0, 1, 0, 0],
349
+ [133, 85, 86, 0.035, 0.123, 0.0276, 0, 0, 0, 1, 0, 0],
350
+ [134, 86, 87, 0.02828, 0.2074, 0.0445, 0, 1, 0, 1, 0, 0],
351
+ [135, 85, 88, 0.02, 0.102, 0.0276, 0, 0, 0, 1, 0, 0],
352
+ [136, 85, 89, 0.0239, 0.173, 0.047, 0, 0, 0, 1, 0, 0],
353
+ [137, 88, 89, 0.0139, 0.0712, 0.01934, 0, 0, 0, 1, 0, 0],
354
+ [138, 89, 90, 0.0518, 0.188, 0.0528, 0, 0, 0, 1, 0, 0],
355
+ [139, 89, 90, 0.0238, 0.0997, 0.106, 0, 0, 0, 1, 0, 0],
356
+ [140, 90, 91, 0.0254, 0.0836, 0.0214, 0, 0, 0, 1, 0, 0],
357
+ [141, 89, 92, 0.0099, 0.0505, 0.0548, 0, 0, 0, 1, 0, 0],
358
+ [142, 89, 92, 0.0393, 0.1581, 0.0414, 0, 0, 0, 1, 0, 0],
359
+ [143, 91, 92, 0.0387, 0.1272, 0.03268, 0, 0, 0, 1, 0, 0],
360
+ [144, 92, 93, 0.0258, 0.0848, 0.0218, 0, 0, 0, 1, 0, 0],
361
+ [145, 92, 94, 0.0481, 0.158, 0.0406, 0, 0, 0, 1, 0, 0],
362
+ [146, 93, 94, 0.0223, 0.0732, 0.01876, 0, 0, 0, 1, 0, 0],
363
+ [147, 94, 95, 0.0132, 0.0434, 0.0111, 0, 0, 0, 1, 0, 0],
364
+ [148, 80, 96, 0.0356, 0.182, 0.0494, 0, 0, 0, 1, 0, 0],
365
+ [149, 82, 96, 0.0162, 0.053, 0.0544, 0, 0, 0, 1, 0, 0],
366
+ [150, 94, 96, 0.0269, 0.0869, 0.023, 0, 0, 0, 1, 0, 0],
367
+ [151, 80, 97, 0.0183, 0.0934, 0.0254, 0, 0, 0, 1, 0, 0],
368
+ [152, 80, 98, 0.0238, 0.108, 0.0286, 0, 0, 0, 1, 0, 0],
369
+ [153, 80, 99, 0.0454, 0.206, 0.0546, 0, 0, 0, 1, 0, 0],
370
+ [154, 92, 100, 0.0648, 0.295, 0.0472, 0, 0, 0, 1, 0, 0],
371
+ [155, 94, 100, 0.0178, 0.058, 0.0604, 0, 0, 0, 1, 0, 0],
372
+ [156, 95, 96, 0.0171, 0.0547, 0.01474, 0, 0, 0, 1, 0, 0],
373
+ [157, 96, 97, 0.0173, 0.0885, 0.024, 0, 0, 0, 1, 0, 0],
374
+ [158, 98, 100, 0.0397, 0.179, 0.0476, 0, 0, 0, 1, 0, 0],
375
+ [159, 99, 100, 0.018, 0.0813, 0.0216, 0, 0, 0, 1, 0, 0],
376
+ [160, 100, 101, 0.0277, 0.1262, 0.0328, 0, 0, 0, 1, 0, 0],
377
+ [161, 92, 102, 0.0123, 0.0559, 0.01464, 0, 0, 0, 1, 0, 0],
378
+ [162, 101, 102, 0.0246, 0.112, 0.0294, 0, 0, 0, 1, 0, 0],
379
+ [163, 100, 103, 0.016, 0.0525, 0.0536, 0, 0, 0, 1, 0, 0],
380
+ [164, 100, 104, 0.0451, 0.204, 0.0541, 0, 0, 0, 1, 0, 0],
381
+ [165, 103, 104, 0.0466, 0.1584, 0.0407, 0, 0, 0, 1, 0, 0],
382
+ [166, 103, 105, 0.0535, 0.1625, 0.0408, 0, 0, 0, 1, 0, 0],
383
+ [167, 100, 106, 0.0605, 0.229, 0.062, 0, 0, 0, 1, 0, 0],
384
+ [168, 104, 105, 0.00994, 0.0378, 0.00986, 0, 0, 0, 1, 0, 0],
385
+ [169, 105, 106, 0.014, 0.0547, 0.01434, 0, 0, 0, 1, 0, 0],
386
+ [170, 105, 107, 0.053, 0.183, 0.0472, 0, 0, 0, 1, 0, 0],
387
+ [171, 105, 108, 0.0261, 0.0703, 0.01844, 0, 0, 0, 1, 0, 0],
388
+ [172, 106, 107, 0.053, 0.183, 0.0472, 0, 0, 0, 1, 0, 0],
389
+ [173, 108, 109, 0.0105, 0.0288, 0.0076, 0, 0, 0, 1, 0, 0],
390
+ [174, 103, 110, 0.03906, 0.1813, 0.0461, 0, 0, 0, 1, 0, 0],
391
+ [175, 109, 110, 0.0278, 0.0762, 0.0202, 0, 0, 0, 1, 0, 0],
392
+ [176, 110, 111, 0.022, 0.0755, 0.02, 0, 0, 0, 1, 0, 0],
393
+ [177, 110, 112, 0.0247, 0.064, 0.062, 0, 0, 0, 1, 0, 0],
394
+ [178, 17, 113, 0.00913, 0.0301, 0.00768, 0, 0, 0, 1, 0, 0],
395
+ [179, 32, 113, 0.0615, 0.203, 0.0518, 0, 0, 0, 1, 0, 0],
396
+ [180, 32, 114, 0.0135, 0.0612, 0.01628, 0, 0, 0, 1, 0, 0],
397
+ [181, 27, 115, 0.0164, 0.0741, 0.01972, 0, 0, 0, 1, 0, 0],
398
+ [182, 114, 115, 0.0023, 0.0104, 0.00276, 0, 0, 0, 1, 0, 0],
399
+ [183, 68, 116, 0.00034, 0.00405, 0.164, 0, 1, 0, 1, 0, 0],
400
+ [184, 12, 117, 0.0329, 0.14, 0.0358, 0, 0, 0, 1, 0, 0],
401
+ [185, 75, 118, 0.0145, 0.0481, 0.01198, 0, 0, 0, 1, 0, 0],
402
+ [186, 76, 118, 0.0164, 0.0544, 0.01356, 0, 0, 0, 1, 0, 0]
403
+ ])
404
+
405
+ self.loads = DataFrame(
406
+ ['id', 'bus_id', 'Pd', 'Qd', 'mc_a', 'mc_b', 'mc_c', 'd_max', 'd_min'],
407
+ [
408
+ [1, 1, 51, 27, 0, 0, 0, 51, 0],
409
+ [2, 2, 20, 9, 0, 0, 0, 20, 0],
410
+ [3, 3, 39, 10, 0, 0, 0, 39, 0],
411
+ [4, 4, 39, 12, 0, 0, 0, 39, 0],
412
+ [5, 5, 0, 0, 0, 0, 0, 0, 0],
413
+ [6, 6, 52, 22, 0, 0, 0, 52, 0],
414
+ [7, 7, 19, 2, 0, 0, 0, 19, 0],
415
+ [8, 8, 28, 0, 0, 0, 0, 28, 0],
416
+ [9, 9, 0, 0, 0, 0, 0, 0, 0],
417
+ [10, 10, 0, 0, 0, 0, 0, 0, 0],
418
+ [11, 11, 70, 23, 0, 0, 0, 70, 0],
419
+ [12, 12, 47, 10, 0, 0, 0, 47, 0],
420
+ [13, 13, 34, 16, 0, 0, 0, 34, 0],
421
+ [14, 14, 14, 1, 0, 0, 0, 14, 0],
422
+ [15, 15, 90, 30, 0, 0, 0, 90, 0],
423
+ [16, 16, 25, 10, 0, 0, 0, 25, 0],
424
+ [17, 17, 11, 3, 0, 0, 0, 11, 0],
425
+ [18, 18, 60, 34, 0, 0, 0, 60, 0],
426
+ [19, 19, 45, 25, 0, 0, 0, 45, 0],
427
+ [20, 20, 18, 3, 0, 0, 0, 18, 0],
428
+ [21, 21, 14, 8, 0, 0, 0, 14, 0],
429
+ [22, 22, 10, 5, 0, 0, 0, 10, 0],
430
+ [23, 23, 7, 3, 0, 0, 0, 7, 0],
431
+ [24, 24, 13, 0, 0, 0, 0, 13, 0],
432
+ [25, 25, 0, 0, 0, 0, 0, 0, 0],
433
+ [26, 26, 0, 0, 0, 0, 0, 0, 0],
434
+ [27, 27, 71, 13, 0, 0, 0, 71, 0],
435
+ [28, 28, 17, 7, 0, 0, 0, 17, 0],
436
+ [29, 29, 24, 4, 0, 0, 0, 24, 0],
437
+ [30, 30, 0, 0, 0, 0, 0, 0, 0],
438
+ [31, 31, 43, 27, 0, 0, 0, 43, 0],
439
+ [32, 32, 59, 23, 0, 0, 0, 59, 0],
440
+ [33, 33, 23, 9, 0, 0, 0, 23, 0],
441
+ [34, 34, 59, 26, 0, 0, 0, 59, 0],
442
+ [35, 35, 33, 9, 0, 0, 0, 33, 0],
443
+ [36, 36, 31, 17, 0, 0, 0, 31, 0],
444
+ [37, 37, 0, 0, 0, 0, 0, 0, 0],
445
+ [38, 38, 0, 0, 0, 0, 0, 0, 0],
446
+ [39, 39, 27, 11, 0, 0, 0, 27, 0],
447
+ [40, 40, 66, 23, 0, 0, 0, 66, 0],
448
+ [41, 41, 37, 10, 0, 0, 0, 37, 0],
449
+ [42, 42, 96, 23, 0, 0, 0, 96, 0],
450
+ [43, 43, 18, 7, 0, 0, 0, 18, 0],
451
+ [44, 44, 16, 8, 0, 0, 0, 16, 0],
452
+ [45, 45, 53, 22, 0, 0, 0, 53, 0],
453
+ [46, 46, 28, 10, 0, 0, 0, 28, 0],
454
+ [47, 47, 34, 0, 0, 0, 0, 34, 0],
455
+ [48, 48, 20, 11, 0, 0, 0, 20, 0],
456
+ [49, 49, 87, 30, 0, 0, 0, 87, 0],
457
+ [50, 50, 17, 4, 0, 0, 0, 17, 0],
458
+ [51, 51, 17, 8, 0, 0, 0, 17, 0],
459
+ [52, 52, 18, 5, 0, 0, 0, 18, 0],
460
+ [53, 53, 23, 11, 0, 0, 0, 23, 0],
461
+ [54, 54, 113, 32, 0, 0, 0, 113, 0],
462
+ [55, 55, 63, 22, 0, 0, 0, 63, 0],
463
+ [56, 56, 84, 18, 0, 0, 0, 84, 0],
464
+ [57, 57, 12, 3, 0, 0, 0, 12, 0],
465
+ [58, 58, 12, 3, 0, 0, 0, 12, 0],
466
+ [59, 59, 277, 113, 0, 0, 0, 277, 0],
467
+ [60, 60, 78, 3, 0, 0, 0, 78, 0],
468
+ [61, 61, 0, 0, 0, 0, 0, 0, 0],
469
+ [62, 62, 77, 14, 0, 0, 0, 77, 0],
470
+ [63, 63, 0, 0, 0, 0, 0, 0, 0],
471
+ [64, 64, 0, 0, 0, 0, 0, 0, 0],
472
+ [65, 65, 0, 0, 0, 0, 0, 0, 0],
473
+ [66, 66, 39, 18, 0, 0, 0, 39, 0],
474
+ [67, 67, 28, 7, 0, 0, 0, 28, 0],
475
+ [68, 68, 0, 0, 0, 0, 0, 0, 0],
476
+ [69, 69, 0, 0, 0, 0, 0, 0, 0],
477
+ [70, 70, 66, 20, 0, 0, 0, 66, 0],
478
+ [71, 71, 0, 0, 0, 0, 0, 0, 0],
479
+ [72, 72, 12, 0, 0, 0, 0, 12, 0],
480
+ [73, 73, 6, 0, 0, 0, 0, 6, 0],
481
+ [74, 74, 68, 27, 0, 0, 0, 68, 0],
482
+ [75, 75, 47, 11, 0, 0, 0, 47, 0],
483
+ [76, 76, 68, 36, 0, 0, 0, 68, 0],
484
+ [77, 77, 61, 28, 0, 0, 0, 61, 0],
485
+ [78, 78, 71, 26, 0, 0, 0, 71, 0],
486
+ [79, 79, 39, 32, 0, 0, 0, 39, 0],
487
+ [80, 80, 130, 26, 0, 0, 0, 130, 0],
488
+ [81, 81, 0, 0, 0, 0, 0, 0, 0],
489
+ [82, 82, 54, 27, 0, 0, 0, 54, 0],
490
+ [83, 83, 20, 10, 0, 0, 0, 20, 0],
491
+ [84, 84, 11, 7, 0, 0, 0, 11, 0],
492
+ [85, 85, 24, 15, 0, 0, 0, 24, 0],
493
+ [86, 86, 21, 10, 0, 0, 0, 21, 0],
494
+ [87, 87, 0, 0, 0, 0, 0, 0, 0],
495
+ [88, 88, 48, 10, 0, 0, 0, 48, 0],
496
+ [89, 89, 0, 0, 0, 0, 0, 0, 0],
497
+ [90, 90, 163, 42, 0, 0, 0, 163, 0],
498
+ [91, 91, 10, 0, 0, 0, 0, 10, 0],
499
+ [92, 92, 65, 10, 0, 0, 0, 65, 0],
500
+ [93, 93, 12, 7, 0, 0, 0, 12, 0],
501
+ [94, 94, 30, 16, 0, 0, 0, 30, 0],
502
+ [95, 95, 42, 31, 0, 0, 0, 42, 0],
503
+ [96, 96, 38, 15, 0, 0, 0, 38, 0],
504
+ [97, 97, 15, 9, 0, 0, 0, 15, 0],
505
+ [98, 98, 34, 8, 0, 0, 0, 34, 0],
506
+ [99, 99, 42, 0, 0, 0, 0, 42, 0],
507
+ [100, 100, 37, 18, 0, 0, 0, 37, 0],
508
+ [101, 101, 22, 15, 0, 0, 0, 22, 0],
509
+ [102, 102, 5, 3, 0, 0, 0, 5, 0],
510
+ [103, 103, 23, 16, 0, 0, 0, 23, 0],
511
+ [104, 104, 38, 25, 0, 0, 0, 38, 0],
512
+ [105, 105, 31, 26, 0, 0, 0, 31, 0],
513
+ [106, 106, 43, 16, 0, 0, 0, 43, 0],
514
+ [107, 107, 50, 12, 0, 0, 0, 50, 0],
515
+ [108, 108, 2, 1, 0, 0, 0, 2, 0],
516
+ [109, 109, 8, 3, 0, 0, 0, 8, 0],
517
+ [110, 110, 39, 30, 0, 0, 0, 39, 0],
518
+ [111, 111, 0, 0, 0, 0, 0, 0, 0],
519
+ [112, 112, 68, 13, 0, 0, 0, 68, 0],
520
+ [113, 113, 6, 0, 0, 0, 0, 6, 0],
521
+ [114, 114, 8, 3, 0, 0, 0, 8, 0],
522
+ [115, 115, 22, 7, 0, 0, 0, 22, 0],
523
+ [116, 116, 184, 0, 0, 0, 0, 184, 0],
524
+ [117, 117, 20, 8, 0, 0, 0, 20, 0],
525
+ [118, 118, 33, 15, 0, 0, 0, 33, 0]
526
+ ])
527
+
528
+ self.real_params = True
529
+ super().__init__(*args, **kwargs)
530
+
531
+
532
+ if __name__ == '__main__':
533
+ c = Case118()
534
+ c.check()
535
+ print(c.get_node_ptdf())
powergrid_case/transmission/Case1354pegase.py ADDED
The diff for this file is too large to render. See raw diff
 
powergrid_case/transmission/Case14.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """IEEE 14-bus system (MATPOWER case14)
2
+
3
+ Data Source: MATPOWER case file `source_mfile/case14.m`
4
+ Base MVA: 100.0 MVA
5
+ Base kV: 69.0 kV (nominal; MATPOWER bus table uses 0 for baseKV)
6
+
7
+ UC / economic columns on ``self.units`` match PowerZooJax ``create_case14()`` and are
8
+ regenerated from ``powerzoo/case/raw_cases/case14.json`` via
9
+ ``python -m powerzoo.case.raw_cases.scuc_json_to_case_units`` (keep that script and JSON
10
+ in sync with the sibling ``powerzoojax/case/raw_cases/`` tree).
11
+
12
+ All values are in standard MATPOWER units (MW, MVAr, p.u.)
13
+
14
+
15
+ Nodes (bus) columns:
16
+ id, type, Pd, Qd, Gs, Bs, Vm, Va, baseKV, Vmax, Vmin
17
+ - type: 1=PQ, 2=PV, 3=Slack
18
+ - Pd/Qd: Active/Reactive power demand (MW/MVAr)
19
+ - Gs/Bs: Shunt conductance/susceptance (MW/MVAr at V=1.0 p.u.)
20
+ - Vm: Voltage magnitude (p.u.)
21
+ - Va: Voltage angle (degrees)
22
+ - baseKV: Base voltage (kV)
23
+ - Vmax/Vmin: Voltage limits (p.u.)
24
+
25
+ Units (generators) columns:
26
+ id, bus_id, Pg, Qg, Qmax, Qmin, Vg, mBase, status, Pmax, Pmin, mc_a, mc_b, mc_c,
27
+ p_max, p_min, type, ramp_up, ramp_down, init_start_up_cost, keep_time,
28
+ init_power, init_state, min_up_time, min_down_time, init_no_load_cost
29
+ - Pg/Qg: Active/Reactive power output (MW/MVAr)
30
+ - Qmax/Qmin: Reactive power limits (MVAr)
31
+ - Vg: Voltage setpoint (p.u.)
32
+ - mBase: Machine base (MVA)
33
+ - status: >0 in-service, <=0 out-of-service
34
+ - Pmax/Pmin: Active power limits (MW)
35
+ - mc_a/mc_b/mc_c: Marginal cost coefficients (quadratic)
36
+
37
+ Lines (branches) columns:
38
+ id, from, to, r, x, b, rateA, ratio, angle, status, floor, cap
39
+ - r/x: Resistance/Reactance (p.u.)
40
+ - b: Line charging susceptance (p.u.)
41
+ - rateA: Long-term rating (MVA)
42
+ - ratio: Transformer tap ratio (0 for line)
43
+ - angle: Transformer phase shift (degrees)
44
+ - status: 1=in-service, 0=out-of-service
45
+ - floor/cap: Power flow limits (MW)
46
+
47
+ Loads columns:
48
+ id, bus_id, Pd, Qd, mc_a, mc_b, mc_c, d_max, d_min
49
+ - Pd/Qd: Active/Reactive power demand (MW/MVAr)
50
+ - mc_a/mc_b/mc_c: Marginal utility coefficients
51
+ - d_max/d_min: Demand limits (MW)
52
+ """
53
+ from powerzoo.case.CaseBase import ClearCase, DataFrame
54
+
55
+
56
+ class Case14(ClearCase):
57
+ GRID_TYPE = "transmission"
58
+ BUS_COUNT = 14
59
+ VOLTAGE_LEVEL = "HV"
60
+ SOURCE = "MATPOWER"
61
+ DESCRIPTION = "IEEE 14-bus test system"
62
+
63
+ def __init__(self, *args, **kwargs):
64
+ # System base values
65
+ self.baseMVA = 100.0
66
+ # MATPOWER case14 has baseKV=0 on all buses; use a nominal kV for metadata.
67
+ self.baseKV = 69.0
68
+
69
+ # Node (bus) data
70
+ self.nodes = DataFrame(
71
+ ['id', 'type', 'Pd', 'Qd', 'Gs', 'Bs', 'Vm', 'Va', 'baseKV', 'Vmax', 'Vmin'],
72
+ [[1.0, 3.0, 0.0, 0.0, 0.0, 0.0, 1.06, 0.0, 0.0, 1.06, 0.94],
73
+ [2.0, 2.0, 21.7, 12.7, 0.0, 0.0, 1.045, -4.98, 0.0, 1.06, 0.94],
74
+ [3.0, 2.0, 94.2, 19.0, 0.0, 0.0, 1.01, -12.72, 0.0, 1.06, 0.94],
75
+ [4.0, 1.0, 47.8, -3.9, 0.0, 0.0, 1.019, -10.33, 0.0, 1.06, 0.94],
76
+ [5.0, 1.0, 7.6, 1.6, 0.0, 0.0, 1.02, -8.78, 0.0, 1.06, 0.94],
77
+ [6.0, 2.0, 11.2, 7.5, 0.0, 0.0, 1.07, -14.22, 0.0, 1.06, 0.94],
78
+ [7.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.062, -13.37, 0.0, 1.06, 0.94],
79
+ [8.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.09, -13.36, 0.0, 1.06, 0.94],
80
+ [9.0, 1.0, 29.5, 16.6, 0.0, 19.0, 1.056, -14.94, 0.0, 1.06, 0.94],
81
+ [10.0, 1.0, 9.0, 5.8, 0.0, 0.0, 1.051, -15.1, 0.0, 1.06, 0.94],
82
+ [11.0, 1.0, 3.5, 1.8, 0.0, 0.0, 1.057, -14.79, 0.0, 1.06, 0.94],
83
+ [12.0, 1.0, 6.1, 1.6, 0.0, 0.0, 1.055, -15.07, 0.0, 1.06, 0.94],
84
+ [13.0, 1.0, 13.5, 5.8, 0.0, 0.0, 1.05, -15.16, 0.0, 1.06, 0.94],
85
+ [14.0, 1.0, 14.9, 5.0, 0.0, 0.0, 1.036, -16.04, 0.0, 1.06, 0.94]])
86
+
87
+ # Generator (unit) data — UC columns aligned with Case118 / PowerZooJax case14
88
+ self.units = DataFrame(
89
+ ['id', 'bus_id', 'Pg', 'Qg', 'Qmax', 'Qmin', 'Vg', 'mBase', 'status',
90
+ 'Pmax', 'Pmin', 'mc_a', 'mc_b', 'mc_c', 'p_max', 'p_min',
91
+ 'type', 'ramp_up', 'ramp_down', 'init_start_up_cost', 'keep_time',
92
+ 'init_power', 'init_state', 'min_up_time', 'min_down_time', 'init_no_load_cost'],
93
+ [[1.0, 1.0, 232.4, -16.9, 10.0, 0.0, 1.06, 100.0, 1.0, 332.4, 0.0, 0.0, 0.05541301, 34.216168, 332.4, 0.0, 'gas', 0.6953069, 0.6953069, 34238.45, 48.0, 230.74888, 1.0, 2.0, 2.0, 0.0],
94
+ [2.0, 2.0, 40.0, 42.4, 50.0, -40.0, 1.045, 100.0, 1.0, 140.0, 0.0, 0.00897295, -1.143378, 67.97416, 140.0, 0.0, 'gas', 0.66157144, 0.66157144, 11382.84, 48.0, 0.0, 0.0, 2.0, 2.0, 0.0],
95
+ [3.0, 3.0, 0.0, 23.4, 40.0, 0.0, 1.01, 100.0, 1.0, 100.0, 0.0, 0.0357393, -2.380081, 72.64597, 100.0, 0.0, 'gas', 0.6621, 0.6621, 5235.41, 48.0, 0.0, 0.0, 2.0, 2.0, 0.0],
96
+ [4.0, 6.0, 0.0, 12.2, 24.0, -6.0, 1.07, 100.0, 1.0, 100.0, 0.0, 0.03130176, -2.3915932, 78.5705, 100.0, 0.0, 'gas', 0.6694, 0.6694, 5272.29, 48.0, 0.0, 0.0, 8.0, 8.0, 0.0],
97
+ [5.0, 8.0, 0.0, 17.4, 24.0, -6.0, 1.09, 100.0, 1.0, 100.0, 0.0, 0.03348683, -2.4855613, 76.65385, 100.0, 0.0, 'gas', 0.6504, 0.6504, 7950.56, 48.0, 0.0, 0.0, 2.0, 2.0, 0.0]])
98
+
99
+ # Branch (line) data
100
+ self.lines = DataFrame(
101
+ ['id', 'from', 'to', 'r', 'x', 'b', 'rateA', 'ratio', 'angle', 'status', 'floor', 'cap'],
102
+ [[1.0, 1.0, 2.0, 0.01938, 0.05917, 0.0528, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
103
+ [2.0, 1.0, 5.0, 0.05403, 0.22304, 0.0492, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
104
+ [3.0, 2.0, 3.0, 0.04699, 0.19797, 0.0438, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
105
+ [4.0, 2.0, 4.0, 0.05811, 0.17632, 0.034, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
106
+ [5.0, 2.0, 5.0, 0.05695, 0.17388, 0.0346, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
107
+ [6.0, 3.0, 4.0, 0.06701, 0.17103, 0.0128, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
108
+ [7.0, 4.0, 5.0, 0.01335, 0.04211, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
109
+ [8.0, 4.0, 7.0, 0.0, 0.20912, 0.0, 0.0, 0.978, 0.0, 1.0, 0.0, 0.0],
110
+ [9.0, 4.0, 9.0, 0.0, 0.55618, 0.0, 0.0, 0.969, 0.0, 1.0, 0.0, 0.0],
111
+ [10.0, 5.0, 6.0, 0.0, 0.25202, 0.0, 0.0, 0.932, 0.0, 1.0, 0.0, 0.0],
112
+ [11.0, 6.0, 11.0, 0.09498, 0.1989, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
113
+ [12.0, 6.0, 12.0, 0.12291, 0.25581, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
114
+ [13.0, 6.0, 13.0, 0.06615, 0.13027, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
115
+ [14.0, 7.0, 8.0, 0.0, 0.17615, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
116
+ [15.0, 7.0, 9.0, 0.0, 0.11001, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
117
+ [16.0, 9.0, 10.0, 0.03181, 0.0845, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
118
+ [17.0, 9.0, 14.0, 0.12711, 0.27038, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
119
+ [18.0, 10.0, 11.0, 0.08205, 0.19207, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
120
+ [19.0, 12.0, 13.0, 0.22092, 0.19988, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
121
+ [20.0, 13.0, 14.0, 0.17093, 0.34802, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0]])
122
+
123
+ # Load data
124
+ self.loads = DataFrame(
125
+ ['id', 'bus_id', 'Pd', 'Qd', 'mc_a', 'mc_b', 'mc_c', 'd_max', 'd_min'],
126
+ [[1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
127
+ [2.0, 2.0, 21.7, 12.7, 0.0, 0.0, 0.0, 21.7, 21.7],
128
+ [3.0, 3.0, 94.2, 19.0, 0.0, 0.0, 0.0, 94.2, 94.2],
129
+ [4.0, 4.0, 47.8, -3.9, 0.0, 0.0, 0.0, 47.8, 47.8],
130
+ [5.0, 5.0, 7.6, 1.6, 0.0, 0.0, 0.0, 7.6, 7.6],
131
+ [6.0, 6.0, 11.2, 7.5, 0.0, 0.0, 0.0, 11.2, 11.2],
132
+ [7.0, 7.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
133
+ [8.0, 8.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
134
+ [9.0, 9.0, 29.5, 16.6, 0.0, 0.0, 0.0, 29.5, 29.5],
135
+ [10.0, 10.0, 9.0, 5.8, 0.0, 0.0, 0.0, 9.0, 9.0],
136
+ [11.0, 11.0, 3.5, 1.8, 0.0, 0.0, 0.0, 3.5, 3.5],
137
+ [12.0, 12.0, 6.1, 1.6, 0.0, 0.0, 0.0, 6.1, 6.1],
138
+ [13.0, 13.0, 13.5, 5.8, 0.0, 0.0, 0.0, 13.5, 13.5],
139
+ [14.0, 14.0, 14.9, 5.0, 0.0, 0.0, 0.0, 14.9, 14.9]])
140
+
141
+ self.real_params = True
142
+ super().__init__(*args, **kwargs)
powergrid_case/transmission/Case2383wp.py ADDED
The diff for this file is too large to render. See raw diff
 
powergrid_case/transmission/Case29GB.py ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Power System Case: Case29GB (GB reduced network)
2
+
3
+ Data Source: MATPOWER GBreducednetwork.m
4
+ Description: Reduced model of GB (Great Britain) network
5
+ 29 buses, 66 generators, 99 transmission lines
6
+ Data provided by Manolis Belivanis from Strathclyde
7
+
8
+ Generator cost parameters are simulated using the same methodology as Case118.
9
+ """
10
+ from powerzoo.case.CaseBase import ClearCase, DataFrame
11
+
12
+
13
+ class Case29GB(ClearCase):
14
+ GRID_TYPE = "transmission"
15
+ BUS_COUNT = 29
16
+ VOLTAGE_LEVEL = "HV"
17
+ SOURCE = "custom"
18
+ DESCRIPTION = "GB reduced 29-bus transmission network"
19
+
20
+ def __init__(self, *args, **kwargs):
21
+ self.nodes = DataFrame(['id'], range(1, 30))
22
+
23
+ self.units = DataFrame(
24
+ ['id', 'bus_id', 'type', 'mc_a', 'mc_b', 'mc_c', 'p_max', 'p_min', 'ramp_up', 'ramp_down', 'init_start_up_cost', 'keep_time', 'init_power', 'init_state', 'min_up_time', 'min_down_time', 'init_no_load_cost'],
25
+ [
26
+ [1, 1, 'nuclear', 0.000194, -0.159251, 61.0, 668, 134, 0.7, 0.7, 22500, 96, 494, 1, 96, 96, 10323.78],
27
+ [2, 1, 'coal', 0.000815, -0.379332, 128.0, 554, 111, 0.7, 0.7, 9000, 96, 550, 1, 4, 4, 18334.91],
28
+ [3, 1, 'coal', 0.002778, -0.7005, 134.0, 300, 60, 0.7, 0.7, 9000, -96, 0, 0, 4, 4, 10468.65],
29
+ [4, 1, 'nuclear', 0.239723, -5.598947, 69.0, 19, 4, 0.7, 0.7, 22500, 96, 19, 1, 96, 96, 339.24],
30
+ [5, 2, 'nuclear', 0.033272, -2.085882, 68.0, 51, 10, 0.7, 0.7, 22500, 96, 36, 1, 96, 96, 895.29],
31
+ [6, 2, 'gas', 0.00017, -0.283228, 216.0, 1524, 305, 0.7, 0.7, 4500, 96, 1524, 1, 1, 1, 81431.65],
32
+ [7, 2, 'gas', 2.746597, -35.97, 282.0, 12, 2, 0.7, 0.7, 4500, 96, 12, 1, 1, 1, 878.79],
33
+ [8, 3, 'nuclear', 0.000285, -0.193067, 62.0, 551, 110, 0.7, 0.7, 22500, 96, 388, 1, 96, 96, 8680.87],
34
+ [9, 3, 'nuclear', 0.239723, -5.598947, 69.0, 19, 4, 0.7, 0.7, 22500, 96, 14, 1, 96, 96, 339.24],
35
+ [10, 3, 'coal', 0.000818, -0.380018, 128.0, 553, 111, 0.7, 0.7, 9000, 96, 553, 1, 4, 4, 18301.81],
36
+ [11, 3, 'nuclear', 0.384622, -7.092, 69.0, 15, 3, 0.7, 0.7, 22500, 96, 15, 1, 96, 96, 267.82],
37
+ [12, 4, 'nuclear', 0.070645, -3.039429, 68.0, 35, 7, 0.7, 0.7, 22500, 96, 25, 1, 96, 96, 614.42],
38
+ [13, 4, 'coal', 4.8e-05, -0.09201, 97.0, 2284, 457, 0.7, 0.7, 9000, 96, 2284, 1, 4, 4, 54348.92],
39
+ [14, 4, 'coal', 0.001291, -0.477614, 131.0, 440, 88, 0.7, 0.7, 9000, 96, 340, 1, 4, 4, 14958.02],
40
+ [15, 4, 'gas', 0.005896, -1.666564, 268.0, 259, 52, 0.7, 0.7, 4500, 96, 259, 1, 1, 1, 17879.51],
41
+ [16, 5, 'gas', 0.000343, -0.401899, 232.0, 1074, 215, 0.7, 0.7, 4500, 96, 1074, 1, 1, 1, 62542.07],
42
+ [17, 5, 'gas', 0.747656, -18.766957, 281.0, 23, 5, 0.7, 0.7, 4500, 96, 23, 1, 1, 1, 1677.46],
43
+ [18, 6, 'nuclear', 4.5e-05, -0.076477, 54.0, 1391, 278, 0.7, 0.7, 22500, 96, 1002, 1, 96, 96, 18576.47],
44
+ [19, 6, 'coal', 0.229568, -6.368182, 141.0, 33, 7, 0.7, 0.7, 9000, 96, 33, 1, 4, 4, 1220.85],
45
+ [20, 6, 'nuclear', 0.036043, -2.17102, 68.0, 49, 10, 0.7, 0.7, 22500, 96, 49, 1, 96, 96, 860.18],
46
+ [21, 7, 'nuclear', 0.000878, -0.33879, 65.0, 314, 63, 0.7, 0.7, 22500, 96, 227, 1, 96, 96, 5229.59],
47
+ [22, 7, 'gas', 0.000268, -0.355259, 227.0, 1215, 243, 0.7, 0.7, 4500, 96, 1216, 1, 1, 1, 68930.4],
48
+ [23, 7, 'coal', 0.000206, -0.190699, 116.0, 1102, 220, 0.7, 0.7, 9000, 96, 1104, 1, 4, 4, 32504.04],
49
+ [24, 10, 'gas', 0.000271, -0.357614, 227.0, 1207, 241, 0.7, 0.7, 4500, 96, 1208, 1, 1, 1, 68476.54],
50
+ [25, 10, 'gas', 0.000113, -0.230208, 205.0, 1875, 375, 0.7, 0.7, 4500, 96, 1875, 1, 1, 1, 93999.08],
51
+ [26, 10, 'coal', 0.001417, -0.500357, 131.0, 420, 84, 0.7, 0.7, 9000, 96, 420, 1, 4, 4, 14278.11],
52
+ [27, 11, 'nuclear', 0.002671, -0.591, 66.0, 180, 36, 0.7, 0.7, 22500, 96, 130, 1, 96, 96, 3051.86],
53
+ [28, 11, 'gas', 6.8e-05, -0.179401, 191.0, 2406, 481, 0.7, 0.7, 4500, 96, 2406, 1, 1, 1, 110514.41],
54
+ [29, 11, 'coal', 6.3e-05, -0.105762, 102.0, 1987, 397, 0.7, 0.7, 9000, 96, 1961, 1, 4, 4, 50262.16],
55
+ [30, 11, 'gas', 0.016462, -2.784774, 274.0, 155, 31, 0.7, 0.7, 4500, 96, 155, 1, 1, 1, 10979.09],
56
+ [31, 11, 'gas', 0.000366, -0.415438, 234.0, 1039, 208, 0.7, 0.7, 4500, 96, 1039, 1, 1, 1, 61127.32],
57
+ [32, 12, 'coal', 0.00026, -0.214439, 119.0, 980, 196, 0.7, 0.7, 9000, 96, 980, 1, 4, 4, 29787.59],
58
+ [33, 12, 'gas', 0.000111, -0.228987, 205.0, 1885, 377, 0.7, 0.7, 4500, 96, 1885, 1, 1, 1, 94500.4],
59
+ [34, 12, 'gas', 0.008968, -2.055429, 271.0, 210, 42, 0.7, 0.7, 4500, 96, 210, 1, 1, 1, 14685.9],
60
+ [35, 12, 'coal', 6.2e-05, -0.104865, 101.0, 2004, 401, 0.7, 0.7, 9000, 96, 1096, 1, 4, 4, 50090.98],
61
+ [36, 15, 'coal', 4e-06, -0.026832, 55.0, 7832, 1566, 0.7, 0.7, 9000, 96, 7800, 1, 4, 4, 87683.16],
62
+ [37, 16, 'coal', 1.6e-05, -0.052709, 79.0, 3987, 797, 0.7, 0.7, 9000, 96, 3972, 1, 4, 4, 73342.86],
63
+ [38, 16, 'gas', 8e-06, -0.061312, 117.0, 7040, 1408, 0.7, 0.7, 4500, 96, 7041, 1, 1, 1, 167079.19],
64
+ [39, 16, 'gas', 0.000267, -0.354384, 227.0, 1218, 244, 0.7, 0.7, 4500, 96, 1218, 1, 1, 1, 69100.6],
65
+ [40, 17, 'coal', 6.1e-05, -0.103983, 101.0, 2021, 404, 0.7, 0.7, 9000, 96, 2000, 1, 4, 4, 50515.91],
66
+ [41, 18, 'coal', 6.4e-05, -0.106029, 102.0, 1982, 396, 0.7, 0.7, 9000, 96, 1960, 1, 4, 4, 50135.68],
67
+ [42, 18, 'gas', 0.007608, -1.893158, 270.0, 228, 46, 0.7, 0.7, 4500, 96, 228, 1, 1, 1, 15876.29],
68
+ [43, 19, 'gas', 4.9e-05, -0.151719, 180.0, 2845, 569, 0.7, 0.7, 4500, 96, 2845, 1, 1, 1, 121290.43],
69
+ [44, 19, 'nuclear', 0.000522, -0.261376, 64.0, 407, 81, 0.7, 0.7, 22500, 96, 407, 1, 96, 96, 6656.39],
70
+ [45, 20, 'coal', 0.000174, -0.175125, 115.0, 1200, 240, 0.7, 0.7, 9000, 96, 1200, 1, 4, 4, 35034.6],
71
+ [46, 20, 'nuclear', 0.000668, -0.2955, 64.0, 360, 72, 0.7, 0.7, 22500, 96, 360, 1, 96, 96, 5887.71],
72
+ [47, 21, 'gas', 0.000894, -0.649083, 249.0, 665, 133, 0.7, 0.7, 4500, 96, 665, 1, 1, 1, 42116.34],
73
+ [48, 22, 'gas', 0.00246, -1.076409, 261.0, 401, 80, 0.7, 0.7, 4500, 96, 401, 1, 1, 1, 26840.07],
74
+ [49, 23, 'coal', 1.7e-05, -0.055288, 81.0, 3801, 760, 0.7, 0.7, 9000, 96, 3772, 1, 4, 4, 72201.9],
75
+ [50, 23, 'coal', 0.001897, -0.578926, 132.0, 363, 73, 0.7, 0.7, 9000, 96, 363, 1, 4, 4, 12449.27],
76
+ [51, 23, 'coal', 0.001132, -0.447128, 130.0, 470, 94, 0.7, 0.7, 9000, 96, 470, 1, 4, 4, 15836.88],
77
+ [52, 23, 'gas', 2e-05, -0.097414, 150.0, 4431, 886, 0.7, 0.7, 4500, 96, 3081, 1, 1, 1, 149027.11],
78
+ [53, 23, 'gas', 0.039551, -4.3164, 277.0, 100, 20, 0.7, 0.7, 4500, -96, 0, 0, 1, 1, 7173.28],
79
+ [54, 25, 'gas', 8.8e-05, -0.203316, 198.0, 2123, 425, 0.7, 0.7, 4500, 96, 2123, 1, 1, 1, 101973.72],
80
+ [55, 25, 'coal', 0.000161, -0.168795, 114.0, 1245, 249, 0.7, 0.7, 9000, -96, 0, 0, 4, 4, 35974.9],
81
+ [56, 26, 'coal', 6.5e-05, -0.106892, 102.0, 1966, 393, 0.7, 0.7, 9000, 96, 1940, 1, 4, 4, 49730.95],
82
+ [57, 26, 'coal', 0.000195, -0.185809, 116.0, 1131, 226, 0.7, 0.7, 9000, 96, 1104, 1, 4, 4, 33359.41],
83
+ [58, 26, 'gas', 3.9e-05, -0.136379, 173.0, 3165, 633, 0.7, 0.7, 4500, 96, 2465, 1, 1, 1, 128286.44],
84
+ [59, 26, 'coal', 0.000136, -0.155092, 112.0, 1355, 271, 0.7, 0.7, 9000, -96, 0, 0, 4, 4, 38340.4],
85
+ [60, 27, 'gas', 0.000338, -0.399297, 232.0, 1081, 216, 0.7, 0.7, 4500, 96, 1082, 1, 1, 1, 62949.7],
86
+ [61, 27, 'nuclear', 0.000962, -0.3546, 65.0, 300, 60, 0.7, 0.7, 22500, 96, 216, 1, 96, 96, 4996.43],
87
+ [62, 28, 'gas', 0.000227, -0.327, 223.0, 1320, 264, 0.7, 0.7, 4500, 96, 1320, 1, 1, 1, 73303.35],
88
+ [63, 28, 'gas', 0.009142, -2.075192, 271.0, 208, 42, 0.7, 0.7, 4500, 96, 208, 1, 1, 1, 14546.03],
89
+ [64, 29, 'gas', 0.000249, -0.3423, 225.0, 1261, 252, 0.7, 0.7, 4500, 96, 1261, 1, 1, 1, 70783.51],
90
+ [65, 29, 'gas', 0.000483, -0.47695, 239.0, 905, 181, 0.7, 0.7, 4500, 96, 905, 1, 1, 1, 54601.22],
91
+ [66, 29, 'gas', 0.020179, -3.083143, 275.0, 140, 28, 0.7, 0.7, 4500, -96, 0, 0, 1, 1, 9958.6]])
92
+
93
+ self.lines = DataFrame(
94
+ ['id', 'from', 'to', 'x', 's', 'floor', 'cap'],
95
+ [
96
+ [1, 1, 2, 0.02, 50.0, -525.0, 525.0],
97
+ [2, 1, 3, 0.15, 6.66667, -132.0, 132.0],
98
+ [3, 1, 2, 0.02, 50.0, -525.0, 525.0],
99
+ [4, 1, 3, 0.15, 6.66667, -132.0, 132.0],
100
+ [5, 2, 4, 0.065, 15.38462, -760.0, 760.0],
101
+ [6, 2, 4, 0.065, 15.38462, -760.0, 760.0],
102
+ [7, 4, 7, 0.0135, 74.07407, -1090.0, 1090.0],
103
+ [8, 4, 6, 0.023, 43.47826, -1500.0, 1500.0],
104
+ [9, 4, 6, 0.023, 43.47826, -1120.0, 1120.0],
105
+ [10, 4, 5, 0.024, 41.66667, -1000.0, 1000.0],
106
+ [11, 4, 5, 0.024, 41.66667, -1000.0, 1000.0],
107
+ [12, 4, 7, 0.0135, 74.07407, -1090.0, 1090.0],
108
+ [13, 5, 6, 0.01051, 95.14748, -1390.0, 1390.0],
109
+ [14, 5, 6, 0.01613, 61.99628, -1390.0, 1390.0],
110
+ [15, 6, 9, 0.00852, 117.37089, -2100.0, 2100.0],
111
+ [16, 6, 9, 0.00852, 117.37089, -2100.0, 2100.0],
112
+ [17, 7, 8, 0.0001, 10000.0, -2180.0, 2180.0],
113
+ [18, 7, 8, 0.0001, 10000.0, -2500.0, 2500.0],
114
+ [19, 7, 6, 0.2, 5.0, -950.0, 950.0],
115
+ [20, 7, 6, 0.2, 5.0, -950.0, 950.0],
116
+ [21, 8, 10, 0.0175, 57.14286, -3070.0, 3070.0],
117
+ [22, 8, 10, 0.0175, 57.14286, -3070.0, 3070.0],
118
+ [23, 9, 11, 0.0163, 61.34969, -1390.0, 1390.0],
119
+ [24, 9, 11, 0.0163, 61.34969, -1390.0, 1390.0],
120
+ [25, 9, 10, 0.02453, 40.76641, -855.0, 855.0],
121
+ [26, 9, 10, 0.0343, 29.15452, -775.0, 775.0],
122
+ [27, 10, 15, 0.00835, 119.76048, -4840.0, 4840.0],
123
+ [28, 10, 15, 0.0063, 158.73016, -4020.0, 4020.0],
124
+ [29, 11, 15, 0.042, 23.80952, -2520.0, 2520.0],
125
+ [30, 11, 15, 0.042, 23.80952, -2520.0, 2520.0],
126
+ [31, 11, 13, 0.0052, 192.30769, -2170.0, 2170.0],
127
+ [32, 11, 13, 0.0052, 192.30769, -2210.0, 2210.0],
128
+ [33, 11, 12, 0.0085, 117.64706, -3320.0, 3320.0],
129
+ [34, 11, 12, 0.0085, 117.64706, -3320.0, 3320.0],
130
+ [35, 12, 13, 0.01078, 92.76438, -3100.0, 3100.0],
131
+ [36, 12, 18, 0.009, 111.11111, -2400.0, 2400.0],
132
+ [37, 12, 18, 0.009, 111.11111, -2400.0, 2400.0],
133
+ [38, 12, 13, 0.01078, 92.76438, -3100.0, 3100.0],
134
+ [39, 13, 18, 0.007, 142.85714, -2400.0, 2400.0],
135
+ [40, 13, 18, 0.007, 142.85714, -2400.0, 2400.0],
136
+ [41, 13, 15, 0.023, 43.47826, -1240.0, 1240.0],
137
+ [42, 13, 15, 0.023, 43.47826, -955.0, 955.0],
138
+ [43, 13, 14, 0.01163, 85.98452, -1040.0, 1040.0],
139
+ [44, 13, 14, 0.01201, 83.26395, -1040.0, 1040.0],
140
+ [45, 14, 16, 0.016, 62.5, -2580.0, 2580.0],
141
+ [46, 14, 16, 0.018, 55.55556, -625.0, 625.0],
142
+ [47, 15, 16, 0.0052, 192.30769, -2770.0, 2770.0],
143
+ [48, 15, 16, 0.00172, 581.39535, -5540.0, 5540.0],
144
+ [49, 15, 14, 0.00222, 450.45045, -5000.0, 5000.0],
145
+ [50, 15, 14, 0.00222, 450.45045, -5000.0, 5000.0],
146
+ [51, 16, 19, 0.0141, 70.92199, -2780.0, 2780.0],
147
+ [52, 16, 19, 0.0141, 70.92199, -3820.0, 3820.0],
148
+ [53, 17, 16, 0.01072, 93.28358, -2150.0, 2150.0],
149
+ [54, 17, 16, 0.01072, 93.28358, -1890.0, 1890.0],
150
+ [55, 17, 22, 0.0097, 103.09278, -2100.0, 2100.0],
151
+ [56, 17, 22, 0.0097, 103.09278, -2100.0, 2100.0],
152
+ [57, 18, 17, 0.0018, 555.55556, -3100.0, 3100.0],
153
+ [58, 18, 17, 0.0018, 555.55556, -3460.0, 3460.0],
154
+ [59, 18, 23, 0.0096, 104.16667, -1970.0, 1970.0],
155
+ [60, 18, 23, 0.0096, 104.16667, -1970.0, 1970.0],
156
+ [61, 20, 26, 0.0023, 434.78261, -2780.0, 2780.0],
157
+ [62, 20, 26, 0.0023, 434.78261, -2780.0, 2780.0],
158
+ [63, 20, 19, 0.0213, 46.94836, -1590.0, 1590.0],
159
+ [64, 20, 19, 0.0143, 69.93007, -1590.0, 1590.0],
160
+ [65, 21, 16, 0.01824, 54.82456, -2780.0, 2780.0],
161
+ [66, 21, 16, 0.01824, 54.82456, -2780.0, 2780.0],
162
+ [67, 21, 25, 0.01, 100.0, -2780.0, 2780.0],
163
+ [68, 21, 25, 0.01, 100.0, -2780.0, 2780.0],
164
+ [69, 21, 20, 0.0048, 208.33333, -2780.0, 2780.0],
165
+ [70, 21, 20, 0.0048, 208.33333, -2780.0, 2780.0],
166
+ [71, 21, 19, 0.0059, 169.49153, -3030.0, 3030.0],
167
+ [72, 21, 19, 0.0059, 169.49153, -2780.0, 2780.0],
168
+ [73, 22, 16, 0.0172, 58.13953, -2010.0, 2010.0],
169
+ [74, 22, 16, 0.0172, 58.13953, -2010.0, 2010.0],
170
+ [75, 22, 25, 0.0041, 243.90244, -3275.0, 3275.0],
171
+ [76, 22, 25, 0.0041, 243.90244, -3275.0, 3275.0],
172
+ [77, 22, 21, 0.00111, 900.9009, -2780.0, 2780.0],
173
+ [78, 22, 21, 0.0061, 163.93443, -2780.0, 2780.0],
174
+ [79, 23, 29, 0.0182, 54.94505, -2010.0, 2010.0],
175
+ [80, 23, 24, 0.0008, 1250.0, -2780.0, 2780.0],
176
+ [81, 23, 24, 0.0007, 1428.57143, -4400.0, 4400.0],
177
+ [82, 23, 22, 0.003, 333.33333, -2780.0, 2780.0],
178
+ [83, 23, 22, 0.003, 333.33333, -2770.0, 2770.0],
179
+ [84, 23, 29, 0.0182, 54.94505, -2010.0, 2010.0],
180
+ [85, 24, 28, 0.007, 142.85714, -2210.0, 2210.0],
181
+ [86, 24, 25, 0.0091, 109.89011, -1390.0, 1390.0],
182
+ [87, 24, 25, 0.0091, 109.89011, -1390.0, 1390.0],
183
+ [88, 24, 28, 0.007, 142.85714, -2210.0, 2210.0],
184
+ [89, 25, 26, 0.0057, 175.4386, -6960.0, 6960.0],
185
+ [90, 25, 26, 0.0057, 175.4386, -5540.0, 5540.0],
186
+ [91, 27, 26, 0.00503, 198.80716, -3100.0, 3100.0],
187
+ [92, 27, 26, 0.00503, 198.80716, -3100.0, 3100.0],
188
+ [93, 28, 27, 0.00711, 140.64698, -3070.0, 3070.0],
189
+ [94, 28, 27, 0.00711, 140.64698, -3070.0, 3070.0],
190
+ [95, 29, 28, 0.00796, 125.62814, -2780.0, 2780.0],
191
+ [96, 29, 28, 0.00796, 125.62814, -2780.0, 2780.0],
192
+ [97, 3, 4, 0.041, 24.39024, -648.0, 648.0],
193
+ [98, 3, 4, 0.041, 24.39024, -648.0, 648.0],
194
+ [99, 3, 2, 0.077, 12.98701, -652.0, 652.0]])
195
+
196
+ self.loads = DataFrame(
197
+ ['id', 'bus_id', 'mc_a', 'mc_b', 'mc_c', 'd_max', 'd_min'],
198
+ [
199
+ [1, 1, 0.0, 0.0, 0.0, 0.008309, 0.008309],
200
+ [2, 2, 0.0, 0.0, 0.0, 0.009108, 0.009108],
201
+ [3, 3, 0.0, 0.0, 0.0, 0.009853, 0.009853],
202
+ [4, 4, 0.0, 0.0, 0.0, 0.023222, 0.023222],
203
+ [5, 5, 0.0, 0.0, 0.0, 0.008912, 0.008912],
204
+ [6, 6, 0.0, 0.0, 0.0, 0.020879, 0.020879],
205
+ [7, 7, 0.0, 0.0, 0.0, 0.013227, 0.013227],
206
+ [8, 8, 0.0, 0.0, 0.0, 0.002086, 0.002086],
207
+ [9, 9, 0.0, 0.0, 0.0, 0.002308, 0.002308],
208
+ [10, 10, 0.0, 0.0, 0.0, 0.045468, 0.045468],
209
+ [11, 11, 0.0, 0.0, 0.0, 0.059653, 0.059653],
210
+ [12, 12, 0.0, 0.0, 0.0, 0.021109, 0.021109],
211
+ [13, 13, 0.0, 0.0, 0.0, 0.044811, 0.044811],
212
+ [14, 14, 0.0, 0.0, 0.0, 0.032507, 0.032507],
213
+ [15, 15, 0.0, 0.0, 0.0, 0.046746, 0.046746],
214
+ [16, 16, 0.0, 0.0, 0.0, 0.02853, 0.02853],
215
+ [17, 17, 0.0, 0.0, 0.0, 0.019192, 0.019192],
216
+ [18, 18, 0.0, 0.0, 0.0, 0.095196, 0.095196],
217
+ [19, 19, 0.0, 0.0, 0.0, 0.035845, 0.035845],
218
+ [20, 20, 0.0, 0.0, 0.0, 0.01824, 0.01824],
219
+ [21, 21, 0.0, 0.0, 0.0, 0.012463, 0.012463],
220
+ [22, 22, 0.0, 0.0, 0.0, 0.032312, 0.032312],
221
+ [23, 23, 0.0, 0.0, 0.0, 0.084047, 0.084047],
222
+ [24, 24, 0.0, 0.0, 0.0, 0.025175, 0.025175],
223
+ [25, 25, 0.0, 0.0, 0.0, 0.172816, 0.172816],
224
+ [26, 26, 0.0, 0.0, 0.0, 0.025281, 0.025281],
225
+ [27, 27, 0.0, 0.0, 0.0, 0.008114, 0.008114],
226
+ [28, 28, 0.0, 0.0, 0.0, 0.048841, 0.048841],
227
+ [29, 29, 0.0, 0.0, 0.0, 0.045752, 0.045752]])
228
+
229
+ self.real_params = True
230
+ super().__init__(*args, **kwargs)
231
+
232
+
233
+ if __name__ == '__main__':
234
+ c = Case29GB()
235
+ c.check()
powergrid_case/transmission/Case300.py ADDED
@@ -0,0 +1,1160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Power System Case: 300
2
+
3
+ Data Source: MATPOWER case file
4
+ Base MVA: 100.0 MVA
5
+ Base kV: 115.0 kV
6
+
7
+ All values are in standard MATPOWER units (MW, MVAr, p.u.)
8
+
9
+
10
+ Nodes (bus) columns:
11
+ id, type, Pd, Qd, Gs, Bs, Vm, Va, baseKV, Vmax, Vmin
12
+ - type: 1=PQ, 2=PV, 3=Slack
13
+ - Pd/Qd: Active/Reactive power demand (MW/MVAr)
14
+ - Gs/Bs: Shunt conductance/susceptance (MW/MVAr at V=1.0 p.u.)
15
+ - Vm: Voltage magnitude (p.u.)
16
+ - Va: Voltage angle (degrees)
17
+ - baseKV: Base voltage (kV)
18
+ - Vmax/Vmin: Voltage limits (p.u.)
19
+
20
+ Units (generators) columns:
21
+ id, bus_id, Pg, Qg, Qmax, Qmin, Vg, mBase, status, Pmax, Pmin, mc_a, mc_b, mc_c
22
+ - Pg/Qg: Active/Reactive power output (MW/MVAr)
23
+ - Qmax/Qmin: Reactive power limits (MVAr)
24
+ - Vg: Voltage setpoint (p.u.)
25
+ - mBase: Machine base (MVA)
26
+ - status: >0 in-service, <=0 out-of-service
27
+ - Pmax/Pmin: Active power limits (MW)
28
+ - mc_a/mc_b/mc_c: Marginal cost coefficients (quadratic)
29
+
30
+ Lines (branches) columns:
31
+ id, from, to, r, x, b, rateA, ratio, angle, status, floor, cap
32
+ - r/x: Resistance/Reactance (p.u.)
33
+ - b: Line charging susceptance (p.u.)
34
+ - rateA: Long-term rating (MVA)
35
+ - ratio: Transformer tap ratio (0 for line)
36
+ - angle: Transformer phase shift (degrees)
37
+ - status: 1=in-service, 0=out-of-service
38
+ - floor/cap: Power flow limits (MW)
39
+
40
+ Loads columns:
41
+ id, bus_id, Pd, Qd, mc_a, mc_b, mc_c, d_max, d_min
42
+ - Pd/Qd: Active/Reactive power demand (MW/MVAr)
43
+ - mc_a/mc_b/mc_c: Marginal utility coefficients
44
+ - d_max/d_min: Demand limits (MW)
45
+ """
46
+ from math import inf
47
+
48
+ from powerzoo.case.CaseBase import ClearCase, DataFrame
49
+
50
+
51
+ class Case300(ClearCase):
52
+ GRID_TYPE = "transmission"
53
+ BUS_COUNT = 300
54
+ VOLTAGE_LEVEL = "HV"
55
+ SOURCE = "MATPOWER"
56
+ DESCRIPTION = "IEEE 300-bus test system"
57
+
58
+ def __init__(self, *args, **kwargs):
59
+ # System base values
60
+ self.baseMVA = 100.0
61
+ self.baseKV = 115.0
62
+
63
+ # Node (bus) data
64
+ self.nodes = DataFrame(
65
+ ['id', 'type', 'Pd', 'Qd', 'Gs', 'Bs', 'Vm', 'Va', 'baseKV', 'Vmax', 'Vmin'],
66
+ [[1.0, 1.0, 90.0, 49.0, 0.0, 0.0, 1.0284, 5.95, 115.0, 1.06, 0.94],
67
+ [2.0, 1.0, 56.0, 15.0, 0.0, 0.0, 1.0354, 7.74, 115.0, 1.06, 0.94],
68
+ [3.0, 1.0, 20.0, 0.0, 0.0, 0.0, 0.9971, 6.64, 230.0, 1.06, 0.94],
69
+ [4.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0308, 4.71, 345.0, 1.06, 0.94],
70
+ [5.0, 1.0, 353.0, 130.0, 0.0, 0.0, 1.0191, 4.68, 115.0, 1.06, 0.94],
71
+ [6.0, 1.0, 120.0, 41.0, 0.0, 0.0, 1.0312, 6.99, 115.0, 1.06, 0.94],
72
+ [7.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9934, 6.19, 230.0, 1.06, 0.94],
73
+ [8.0, 2.0, 63.0, 14.0, 0.0, 0.0, 1.0153, 2.4, 115.0, 1.06, 0.94],
74
+ [9.0, 1.0, 96.0, 43.0, 0.0, 0.0, 1.0034, 2.85, 115.0, 1.06, 0.94],
75
+ [10.0, 2.0, 153.0, 33.0, 0.0, 0.0, 1.0205, 1.35, 230.0, 1.06, 0.94],
76
+ [11.0, 1.0, 83.0, 21.0, 0.0, 0.0, 1.0057, 2.46, 115.0, 1.06, 0.94],
77
+ [12.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9974, 5.21, 230.0, 1.06, 0.94],
78
+ [13.0, 1.0, 58.0, 10.0, 0.0, 0.0, 0.9977, -0.55, 115.0, 1.06, 0.94],
79
+ [14.0, 1.0, 160.0, 60.0, 0.0, 0.0, 0.9991, -4.81, 115.0, 1.06, 0.94],
80
+ [15.0, 1.0, 126.7, 23.0, 0.0, 0.0, 1.0343, -8.59, 115.0, 1.06, 0.94],
81
+ [16.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0315, -2.65, 345.0, 1.06, 0.94],
82
+ [17.0, 1.0, 561.0, 220.0, 0.0, 0.0, 1.0649, -13.1, 115.0, 1.06, 0.94],
83
+ [19.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.982, 1.08, 230.0, 1.06, 0.94],
84
+ [20.0, 2.0, 605.0, 120.0, 0.0, 0.0, 1.001, -2.46, 115.0, 1.06, 0.94],
85
+ [21.0, 1.0, 77.0, 1.0, 0.0, 0.0, 0.9752, 1.62, 230.0, 1.06, 0.94],
86
+ [22.0, 1.0, 81.0, 23.0, 0.0, 0.0, 0.9963, -1.97, 115.0, 1.06, 0.94],
87
+ [23.0, 1.0, 21.0, 7.0, 0.0, 0.0, 1.0501, 3.94, 115.0, 1.06, 0.94],
88
+ [24.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0057, 6.02, 230.0, 1.06, 0.94],
89
+ [25.0, 1.0, 45.0, 12.0, 0.0, 0.0, 1.0234, 1.44, 115.0, 1.06, 0.94],
90
+ [26.0, 1.0, 28.0, 9.0, 0.0, 0.0, 0.9986, -1.73, 115.0, 1.06, 0.94],
91
+ [27.0, 1.0, 69.0, 13.0, 0.0, 0.0, 0.975, -4.9, 115.0, 1.06, 0.94],
92
+ [33.0, 1.0, 55.0, 6.0, 0.0, 0.0, 1.0244, -12.02, 115.0, 1.06, 0.94],
93
+ [34.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0414, -7.94, 345.0, 1.06, 0.94],
94
+ [35.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9757, -25.72, 115.0, 1.06, 0.94],
95
+ [36.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0011, -22.59, 230.0, 1.06, 0.94],
96
+ [37.0, 1.0, 85.0, 32.0, 0.0, 0.0, 1.0201, -11.23, 115.0, 1.06, 0.94],
97
+ [38.0, 1.0, 155.0, 18.0, 0.0, 0.0, 1.0202, -12.56, 115.0, 1.06, 0.94],
98
+ [39.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0535, -5.81, 345.0, 1.06, 0.94],
99
+ [40.0, 1.0, 46.0, -21.0, 0.0, 0.0, 1.0216, -12.78, 115.0, 1.06, 0.94],
100
+ [41.0, 1.0, 86.0, 0.0, 0.0, 0.0, 1.0292, -10.45, 115.0, 1.06, 0.94],
101
+ [42.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0448, -7.44, 345.0, 1.06, 0.94],
102
+ [43.0, 1.0, 39.0, 9.0, 0.0, 0.0, 1.0006, -16.79, 115.0, 1.06, 0.94],
103
+ [44.0, 1.0, 195.0, 29.0, 0.0, 0.0, 1.0086, -17.47, 115.0, 1.06, 0.94],
104
+ [45.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0215, -14.74, 230.0, 1.06, 0.94],
105
+ [46.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0344, -11.75, 345.0, 1.06, 0.94],
106
+ [47.0, 1.0, 58.0, 11.8, 0.0, 0.0, 0.9777, -23.17, 115.0, 1.06, 0.94],
107
+ [48.0, 1.0, 41.0, 19.0, 0.0, 0.0, 1.0019, -16.09, 115.0, 1.06, 0.94],
108
+ [49.0, 1.0, 92.0, 26.0, 0.0, 0.0, 1.0475, -2.95, 115.0, 1.06, 0.94],
109
+ [51.0, 1.0, -5.0, 5.0, 0.0, 0.0, 1.0253, -8.15, 115.0, 1.06, 0.94],
110
+ [52.0, 1.0, 61.0, 28.0, 0.0, 0.0, 0.9979, -11.86, 115.0, 1.06, 0.94],
111
+ [53.0, 1.0, 69.0, 3.0, 0.0, 0.0, 0.9959, -17.6, 115.0, 1.06, 0.94],
112
+ [54.0, 1.0, 10.0, 1.0, 0.0, 0.0, 1.005, -16.25, 115.0, 1.06, 0.94],
113
+ [55.0, 1.0, 22.0, 10.0, 0.0, 0.0, 1.015, -12.21, 115.0, 1.06, 0.94],
114
+ [57.0, 1.0, 98.0, 20.0, 0.0, 0.0, 1.0335, -8.0, 115.0, 1.06, 0.94],
115
+ [58.0, 1.0, 14.0, 1.0, 0.0, 0.0, 0.9918, -5.99, 115.0, 1.06, 0.94],
116
+ [59.0, 1.0, 218.0, 106.0, 0.0, 0.0, 0.9789, -5.29, 115.0, 1.06, 0.94],
117
+ [60.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0246, -9.56, 230.0, 1.06, 0.94],
118
+ [61.0, 1.0, 227.0, 110.0, 0.0, 0.0, 0.9906, -3.47, 115.0, 1.06, 0.94],
119
+ [62.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.016, -1.1, 230.0, 1.06, 0.94],
120
+ [63.0, 2.0, 70.0, 30.0, 0.0, 0.0, 0.9583, -17.62, 115.0, 1.06, 0.94],
121
+ [64.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.948, -12.97, 230.0, 1.06, 0.94],
122
+ [69.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.963, -25.66, 115.0, 1.06, 0.94],
123
+ [70.0, 1.0, 56.0, 20.0, 0.0, 0.0, 0.9513, -35.16, 115.0, 1.06, 0.94],
124
+ [71.0, 1.0, 116.0, 38.0, 0.0, 0.0, 0.9793, -29.88, 115.0, 1.06, 0.94],
125
+ [72.0, 1.0, 57.0, 19.0, 0.0, 0.0, 0.9696, -27.48, 115.0, 1.06, 0.94],
126
+ [73.0, 1.0, 224.0, 71.0, 0.0, 0.0, 0.9775, -25.77, 115.0, 1.06, 0.94],
127
+ [74.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9964, -22.0, 230.0, 1.06, 0.94],
128
+ [76.0, 2.0, 208.0, 107.0, 0.0, 0.0, 0.9632, -26.54, 115.0, 1.06, 0.94],
129
+ [77.0, 1.0, 74.0, 28.0, 0.0, 0.0, 0.9837, -24.94, 115.0, 1.06, 0.94],
130
+ [78.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.99, -24.05, 115.0, 1.06, 0.94],
131
+ [79.0, 1.0, 48.0, 14.0, 0.0, 0.0, 0.982, -24.97, 115.0, 1.06, 0.94],
132
+ [80.0, 1.0, 28.0, 7.0, 0.0, 0.0, 0.9872, -24.97, 115.0, 1.06, 0.94],
133
+ [81.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.034, -18.89, 345.0, 1.06, 0.94],
134
+ [84.0, 2.0, 37.0, 13.0, 0.0, 0.0, 1.025, -17.16, 115.0, 1.06, 0.94],
135
+ [85.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9872, -17.68, 230.0, 1.06, 0.94],
136
+ [86.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9909, -14.19, 230.0, 1.06, 0.94],
137
+ [87.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9921, -7.77, 230.0, 1.06, 0.94],
138
+ [88.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0151, -20.96, 230.0, 1.06, 0.94],
139
+ [89.0, 1.0, 44.2, 0.0, 0.0, 0.0, 1.0317, -11.13, 115.0, 1.06, 0.94],
140
+ [90.0, 1.0, 66.0, 0.0, 0.0, 0.0, 1.0272, -11.23, 115.0, 1.06, 0.94],
141
+ [91.0, 2.0, 17.4, 0.0, 0.0, 0.0, 1.052, -9.4, 115.0, 1.06, 0.94],
142
+ [92.0, 2.0, 15.8, 0.0, 0.0, 0.0, 1.052, -6.2, 115.0, 1.06, 0.94],
143
+ [94.0, 1.0, 60.3, 0.0, 0.0, 0.0, 0.993, -9.42, 115.0, 1.06, 0.94],
144
+ [97.0, 1.0, 39.9, 0.0, 0.0, 0.0, 1.0183, -13.24, 115.0, 1.06, 0.94],
145
+ [98.0, 2.0, 66.7, 0.0, 0.0, 0.0, 1.0, -14.6, 115.0, 1.06, 0.94],
146
+ [99.0, 1.0, 83.5, 0.0, 0.0, 0.0, 0.9894, -20.27, 115.0, 1.06, 0.94],
147
+ [100.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.006, -14.45, 115.0, 1.06, 0.94],
148
+ [102.0, 1.0, 77.8, 0.0, 0.0, 0.0, 1.0008, -15.23, 115.0, 1.06, 0.94],
149
+ [103.0, 1.0, 32.0, 0.0, 0.0, 0.0, 1.0288, -12.06, 115.0, 1.06, 0.94],
150
+ [104.0, 1.0, 8.6, 0.0, 0.0, 0.0, 0.9958, -17.33, 115.0, 1.06, 0.94],
151
+ [105.0, 1.0, 49.6, 0.0, 0.0, 0.0, 1.0223, -12.94, 115.0, 1.06, 0.94],
152
+ [107.0, 1.0, 4.6, 0.0, 0.0, 0.0, 1.0095, -16.03, 115.0, 1.06, 0.94],
153
+ [108.0, 2.0, 112.1, 0.0, 0.0, 0.0, 0.99, -20.26, 115.0, 1.06, 0.94],
154
+ [109.0, 1.0, 30.7, 0.0, 0.0, 0.0, 0.9749, -26.06, 115.0, 1.06, 0.94],
155
+ [110.0, 1.0, 63.0, 0.0, 0.0, 0.0, 0.973, -24.72, 115.0, 1.06, 0.94],
156
+ [112.0, 1.0, 19.6, 0.0, 0.0, 0.0, 0.9725, -28.69, 115.0, 1.06, 0.94],
157
+ [113.0, 1.0, 26.2, 0.0, 0.0, 0.0, 0.97, -25.38, 115.0, 1.06, 0.94],
158
+ [114.0, 1.0, 18.2, 0.0, 0.0, 0.0, 0.9747, -28.59, 115.0, 1.06, 0.94],
159
+ [115.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9603, -13.57, 115.0, 1.06, 0.94],
160
+ [116.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0249, -12.69, 115.0, 1.06, 0.94],
161
+ [117.0, 1.0, 0.0, 0.0, 0.0, 325.0, 0.9348, -4.72, 115.0, 1.06, 0.94],
162
+ [118.0, 1.0, 14.1, 650.0, 0.0, 0.0, 0.9298, -4.12, 115.0, 1.06, 0.94],
163
+ [119.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0435, 5.17, 115.0, 1.06, 0.94],
164
+ [120.0, 1.0, 777.0, 215.0, 0.0, 55.0, 0.9584, -8.77, 115.0, 1.06, 0.94],
165
+ [121.0, 1.0, 535.0, 55.0, 0.0, 0.0, 0.9871, -12.64, 115.0, 1.06, 0.94],
166
+ [122.0, 1.0, 229.1, 11.8, 0.0, 0.0, 0.9728, -14.36, 115.0, 1.06, 0.94],
167
+ [123.0, 1.0, 78.0, 1.4, 0.0, 0.0, 1.0006, -17.64, 115.0, 1.06, 0.94],
168
+ [124.0, 2.0, 276.4, 59.3, 0.0, 0.0, 1.0233, -13.49, 115.0, 1.06, 0.94],
169
+ [125.0, 2.0, 514.8, 82.7, 0.0, 0.0, 1.0103, -18.43, 115.0, 1.06, 0.94],
170
+ [126.0, 1.0, 57.9, 5.1, 0.0, 0.0, 0.9978, -12.86, 115.0, 1.06, 0.94],
171
+ [127.0, 1.0, 380.8, 37.0, 0.0, 0.0, 1.0001, -10.52, 230.0, 1.06, 0.94],
172
+ [128.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0024, -4.78, 230.0, 1.06, 0.94],
173
+ [129.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0028, -4.4, 230.0, 1.06, 0.94],
174
+ [130.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0191, 5.56, 230.0, 1.06, 0.94],
175
+ [131.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9861, 6.06, 230.0, 1.06, 0.94],
176
+ [132.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0045, 3.04, 230.0, 1.06, 0.94],
177
+ [133.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.002, -5.46, 230.0, 1.06, 0.94],
178
+ [134.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.022, -8.04, 230.0, 1.06, 0.94],
179
+ [135.0, 1.0, 169.2, 41.6, 0.0, 0.0, 1.0193, -6.76, 230.0, 1.06, 0.94],
180
+ [136.0, 1.0, 55.2, 18.2, 0.0, 0.0, 1.0476, 1.54, 230.0, 1.06, 0.94],
181
+ [137.0, 1.0, 273.6, 99.8, 0.0, 0.0, 1.0471, -1.45, 230.0, 1.06, 0.94],
182
+ [138.0, 2.0, 1019.2, 135.2, 0.0, 0.0, 1.055, -6.35, 230.0, 1.06, 0.94],
183
+ [139.0, 1.0, 595.0, 83.3, 0.0, 0.0, 1.0117, -3.57, 115.0, 1.06, 0.94],
184
+ [140.0, 1.0, 387.7, 114.7, 0.0, 0.0, 1.043, -3.44, 230.0, 1.06, 0.94],
185
+ [141.0, 2.0, 145.0, 58.0, 0.0, 0.0, 1.051, 0.05, 230.0, 1.06, 0.94],
186
+ [142.0, 1.0, 56.5, 24.5, 0.0, 0.0, 1.0155, -2.77, 230.0, 1.06, 0.94],
187
+ [143.0, 2.0, 89.5, 35.5, 0.0, 0.0, 1.0435, 4.03, 230.0, 1.06, 0.94],
188
+ [144.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.016, -0.7, 230.0, 1.06, 0.94],
189
+ [145.0, 1.0, 24.0, 14.0, 0.0, 0.0, 1.0081, -0.16, 230.0, 1.06, 0.94],
190
+ [146.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0528, 4.32, 230.0, 1.06, 0.94],
191
+ [147.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0528, 8.36, 230.0, 1.06, 0.94],
192
+ [148.0, 1.0, 63.0, 25.0, 0.0, 0.0, 1.0577, 0.28, 230.0, 1.06, 0.94],
193
+ [149.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0735, 5.23, 230.0, 1.06, 0.94],
194
+ [150.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9869, 6.34, 230.0, 1.06, 0.94],
195
+ [151.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0048, 4.13, 230.0, 1.06, 0.94],
196
+ [152.0, 2.0, 17.0, 9.0, 0.0, 0.0, 1.0535, 9.24, 230.0, 1.06, 0.94],
197
+ [153.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0435, 10.46, 230.0, 1.06, 0.94],
198
+ [154.0, 1.0, 70.0, 5.0, 0.0, 34.5, 0.9663, -1.8, 115.0, 1.06, 0.94],
199
+ [155.0, 1.0, 200.0, 50.0, 0.0, 0.0, 1.0177, 6.75, 230.0, 1.06, 0.94],
200
+ [156.0, 2.0, 75.0, 50.0, 0.0, 0.0, 0.963, 5.15, 115.0, 1.06, 0.94],
201
+ [157.0, 1.0, 123.5, -24.3, 0.0, 0.0, 0.9845, -11.93, 230.0, 1.06, 0.94],
202
+ [158.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9987, -11.4, 230.0, 1.06, 0.94],
203
+ [159.0, 1.0, 33.0, 16.5, 0.0, 0.0, 0.9867, -9.82, 230.0, 1.06, 0.94],
204
+ [160.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9998, -12.55, 230.0, 1.06, 0.94],
205
+ [161.0, 1.0, 35.0, 15.0, 0.0, 0.0, 1.036, 8.85, 230.0, 1.06, 0.94],
206
+ [162.0, 1.0, 85.0, 24.0, 0.0, 0.0, 0.9918, 18.5, 230.0, 1.06, 0.94],
207
+ [163.0, 1.0, 0.0, 0.4, 0.0, 0.0, 1.041, 2.91, 230.0, 1.06, 0.94],
208
+ [164.0, 1.0, 0.0, 0.0, 0.0, -212.0, 0.9839, 9.66, 230.0, 1.06, 0.94],
209
+ [165.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0002, 26.31, 230.0, 1.06, 0.94],
210
+ [166.0, 1.0, 0.0, 0.0, 0.0, -103.0, 0.9973, 30.22, 230.0, 1.06, 0.94],
211
+ [167.0, 1.0, 299.9, 95.7, 0.0, 0.0, 0.9715, -6.91, 230.0, 1.06, 0.94],
212
+ [168.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0024, -4.8, 230.0, 1.06, 0.94],
213
+ [169.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9879, -6.68, 230.0, 1.06, 0.94],
214
+ [170.0, 2.0, 481.8, 205.0, 0.0, 0.0, 0.929, 0.09, 115.0, 1.06, 0.94],
215
+ [171.0, 2.0, 763.6, 291.1, 0.0, 0.0, 0.9829, -9.94, 115.0, 1.06, 0.94],
216
+ [172.0, 1.0, 26.5, 0.0, 0.0, 0.0, 1.0244, -6.22, 115.0, 1.06, 0.94],
217
+ [173.0, 1.0, 163.5, 43.0, 0.0, 53.0, 0.9837, -12.75, 115.0, 1.06, 0.94],
218
+ [174.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0622, -2.69, 115.0, 1.06, 0.94],
219
+ [175.0, 1.0, 176.0, 83.0, 0.0, 0.0, 0.973, -7.21, 115.0, 1.06, 0.94],
220
+ [176.0, 2.0, 5.0, 4.0, 0.0, 0.0, 1.0522, 4.67, 115.0, 1.06, 0.94],
221
+ [177.0, 2.0, 28.0, 12.0, 0.0, 0.0, 1.0077, 0.62, 115.0, 1.06, 0.94],
222
+ [178.0, 1.0, 427.4, 173.6, 0.0, 0.0, 0.9397, -6.56, 115.0, 1.06, 0.94],
223
+ [179.0, 1.0, 74.0, 29.0, 0.0, 45.0, 0.9699, -9.37, 115.0, 1.06, 0.94],
224
+ [180.0, 1.0, 69.5, 49.3, 0.0, 0.0, 0.9793, -3.09, 115.0, 1.06, 0.94],
225
+ [181.0, 1.0, 73.4, 0.0, 0.0, 0.0, 1.0518, -1.33, 230.0, 1.06, 0.94],
226
+ [182.0, 1.0, 240.7, 89.0, 0.0, 0.0, 1.0447, -4.19, 230.0, 1.06, 0.94],
227
+ [183.0, 1.0, 40.0, 4.0, 0.0, 0.0, 0.9717, 7.12, 115.0, 1.06, 0.94],
228
+ [184.0, 1.0, 136.8, 16.6, 0.0, 0.0, 1.0386, -6.85, 230.0, 1.06, 0.94],
229
+ [185.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0522, -4.33, 230.0, 1.06, 0.94],
230
+ [186.0, 2.0, 59.8, 24.3, 0.0, 0.0, 1.065, 2.17, 230.0, 1.06, 0.94],
231
+ [187.0, 2.0, 59.8, 24.3, 0.0, 0.0, 1.065, 1.4, 230.0, 1.06, 0.94],
232
+ [188.0, 1.0, 182.6, 43.6, 0.0, 0.0, 1.0533, -0.72, 230.0, 1.06, 0.94],
233
+ [189.0, 1.0, 7.0, 2.0, 0.0, 0.0, 0.9975, -25.84, 66.0, 1.06, 0.94],
234
+ [190.0, 2.0, 0.0, 0.0, 0.0, -150.0, 1.0551, -20.62, 345.0, 1.06, 0.94],
235
+ [191.0, 2.0, 489.0, 53.0, 0.0, 0.0, 1.0435, 12.25, 230.0, 1.06, 0.94],
236
+ [192.0, 1.0, 800.0, 72.0, 0.0, 0.0, 0.9374, -11.18, 230.0, 1.06, 0.94],
237
+ [193.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9897, -26.09, 66.0, 1.06, 0.94],
238
+ [194.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0489, -19.21, 345.0, 1.06, 0.94],
239
+ [195.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0357, -20.79, 345.0, 1.06, 0.94],
240
+ [196.0, 1.0, 10.0, 3.0, 0.0, 0.0, 0.9695, -25.32, 115.0, 1.06, 0.94],
241
+ [197.0, 1.0, 43.0, 14.0, 0.0, 0.0, 0.9907, -23.72, 115.0, 1.06, 0.94],
242
+ [198.0, 2.0, 64.0, 21.0, 0.0, 0.0, 1.015, -20.58, 115.0, 1.06, 0.94],
243
+ [199.0, 1.0, 35.0, 12.0, 0.0, 0.0, 0.9528, -26.05, 115.0, 1.06, 0.94],
244
+ [200.0, 1.0, 27.0, 12.0, 0.0, 0.0, 0.955, -25.93, 115.0, 1.06, 0.94],
245
+ [201.0, 1.0, 41.0, 14.0, 0.0, 0.0, 0.9692, -27.49, 66.0, 1.06, 0.94],
246
+ [202.0, 1.0, 38.0, 13.0, 0.0, 0.0, 0.9908, -25.33, 66.0, 1.06, 0.94],
247
+ [203.0, 1.0, 42.0, 14.0, 0.0, 0.0, 1.0033, -22.35, 115.0, 1.06, 0.94],
248
+ [204.0, 1.0, 72.0, 24.0, 0.0, 0.0, 0.9718, -25.7, 66.0, 1.06, 0.94],
249
+ [205.0, 1.0, 0.0, -5.0, 0.0, 0.0, 0.9838, -26.07, 66.0, 1.06, 0.94],
250
+ [206.0, 1.0, 12.0, 2.0, 0.0, 0.0, 0.9992, -27.41, 66.0, 1.06, 0.94],
251
+ [207.0, 1.0, -21.0, -14.2, 0.0, 0.0, 1.0137, -27.44, 66.0, 1.06, 0.94],
252
+ [208.0, 1.0, 7.0, 2.0, 0.0, 0.0, 0.9929, -26.28, 66.0, 1.06, 0.94],
253
+ [209.0, 1.0, 38.0, 13.0, 0.0, 0.0, 0.9999, -25.66, 66.0, 1.06, 0.94],
254
+ [210.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9788, -24.22, 115.0, 1.06, 0.94],
255
+ [211.0, 1.0, 96.0, 7.0, 0.0, 0.0, 1.0017, -23.31, 115.0, 1.06, 0.94],
256
+ [212.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0132, -22.51, 138.0, 1.06, 0.94],
257
+ [213.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.01, -11.67, 16.5, 1.06, 0.94],
258
+ [214.0, 1.0, 22.0, 16.0, 0.0, 0.0, 0.9919, -17.53, 138.0, 1.06, 0.94],
259
+ [215.0, 1.0, 47.0, 26.0, 0.0, 0.0, 0.9866, -20.23, 138.0, 1.06, 0.94],
260
+ [216.0, 1.0, 176.0, 105.0, 0.0, 0.0, 0.9751, -22.53, 138.0, 1.06, 0.94],
261
+ [217.0, 1.0, 100.0, 75.0, 0.0, 0.0, 1.0215, -22.2, 138.0, 1.06, 0.94],
262
+ [218.0, 1.0, 131.0, 96.0, 0.0, 0.0, 1.0075, -22.63, 138.0, 1.06, 0.94],
263
+ [219.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0554, -21.15, 345.0, 1.06, 0.94],
264
+ [220.0, 2.0, 285.0, 100.0, 0.0, 0.0, 1.008, -21.73, 138.0, 1.06, 0.94],
265
+ [221.0, 2.0, 171.0, 70.0, 0.0, 0.0, 1.0, -22.49, 138.0, 1.06, 0.94],
266
+ [222.0, 2.0, 328.0, 188.0, 0.0, 0.0, 1.05, -23.17, 20.0, 1.06, 0.94],
267
+ [223.0, 1.0, 428.0, 232.0, 0.0, 0.0, 0.9965, -22.7, 138.0, 1.06, 0.94],
268
+ [224.0, 1.0, 173.0, 99.0, 0.0, 0.0, 1.0002, -21.55, 230.0, 1.06, 0.94],
269
+ [225.0, 1.0, 410.0, 40.0, 0.0, 0.0, 0.9453, -11.34, 230.0, 1.06, 0.94],
270
+ [226.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.018, -21.61, 230.0, 1.06, 0.94],
271
+ [227.0, 2.0, 538.0, 369.0, 0.0, 0.0, 1.0, -27.22, 27.0, 1.06, 0.94],
272
+ [228.0, 1.0, 223.0, 148.0, 0.0, 0.0, 1.0423, -20.94, 138.0, 1.06, 0.94],
273
+ [229.0, 1.0, 96.0, 46.0, 0.0, 0.0, 1.0496, -19.94, 138.0, 1.06, 0.94],
274
+ [230.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.04, -13.82, 20.0, 1.06, 0.94],
275
+ [231.0, 1.0, 159.0, 107.0, 0.0, -300.0, 1.0535, -21.22, 345.0, 1.06, 0.94],
276
+ [232.0, 1.0, 448.0, 143.0, 0.0, 0.0, 1.0414, -23.19, 138.0, 1.06, 0.94],
277
+ [233.0, 2.0, 404.0, 212.0, 0.0, 0.0, 1.0, -25.9, 66.0, 1.06, 0.94],
278
+ [234.0, 1.0, 572.0, 244.0, 0.0, 0.0, 1.0387, -20.89, 138.0, 1.06, 0.94],
279
+ [235.0, 1.0, 269.0, 157.0, 0.0, 0.0, 1.0095, -21.03, 138.0, 1.06, 0.94],
280
+ [236.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0165, -15.4, 20.0, 1.06, 0.94],
281
+ [237.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0558, -21.1, 345.0, 1.06, 0.94],
282
+ [238.0, 2.0, 255.0, 149.0, 0.0, -150.0, 1.01, -20.94, 138.0, 1.06, 0.94],
283
+ [239.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0, -15.86, 138.0, 1.06, 0.94],
284
+ [240.0, 1.0, 0.0, 0.0, 0.0, -140.0, 1.0237, -20.14, 230.0, 1.06, 0.94],
285
+ [241.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.05, -16.5, 20.0, 1.06, 0.94],
286
+ [242.0, 2.0, 0.0, 0.0, 0.0, 0.0, 0.993, -17.53, 138.0, 1.06, 0.94],
287
+ [243.0, 2.0, 8.0, 3.0, 0.0, 0.0, 1.01, -19.27, 66.0, 1.06, 0.94],
288
+ [244.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9921, -20.21, 66.0, 1.06, 0.94],
289
+ [245.0, 1.0, 61.0, 30.0, 0.0, 0.0, 0.9711, -20.9, 66.0, 1.06, 0.94],
290
+ [246.0, 1.0, 77.0, 33.0, 0.0, 0.0, 0.9651, -21.74, 66.0, 1.06, 0.94],
291
+ [247.0, 1.0, 61.0, 30.0, 0.0, 0.0, 0.9688, -21.67, 66.0, 1.06, 0.94],
292
+ [248.0, 1.0, 29.0, 14.0, 0.0, 45.6, 0.976, -25.23, 66.0, 1.06, 0.94],
293
+ [249.0, 1.0, 29.0, 14.0, 0.0, 0.0, 0.9752, -25.65, 66.0, 1.06, 0.94],
294
+ [250.0, 1.0, -23.0, -17.0, 0.0, 0.0, 1.0196, -23.8, 66.0, 1.06, 0.94],
295
+ [281.0, 1.0, -33.1, -29.4, 0.0, 0.0, 1.0251, -20.06, 230.0, 1.06, 0.94],
296
+ [319.0, 1.0, 115.8, -24.0, 0.0, 0.0, 1.0152, 1.48, 230.0, 1.06, 0.94],
297
+ [320.0, 1.0, 2.4, -12.6, 0.0, 0.0, 1.0146, -2.23, 115.0, 1.06, 0.94],
298
+ [322.0, 1.0, 2.4, -3.9, 0.0, 0.0, 1.0005, -17.61, 115.0, 1.06, 0.94],
299
+ [323.0, 1.0, -14.9, 26.5, 0.0, 0.0, 0.981, -13.69, 230.0, 1.06, 0.94],
300
+ [324.0, 1.0, 24.7, -1.2, 0.0, 0.0, 0.975, -23.42, 115.0, 1.06, 0.94],
301
+ [526.0, 1.0, 145.3, -34.9, 0.0, 0.0, 0.9429, -34.31, 115.0, 1.06, 0.94],
302
+ [528.0, 1.0, 28.1, -20.5, 0.0, 0.0, 0.9723, -37.58, 115.0, 1.06, 0.94],
303
+ [531.0, 1.0, 14.0, 2.5, 0.0, 0.0, 0.9604, -29.1, 115.0, 1.06, 0.94],
304
+ [552.0, 1.0, -11.1, -1.4, 0.0, 0.0, 1.0009, -23.36, 115.0, 1.06, 0.94],
305
+ [562.0, 1.0, 50.5, 17.4, 0.0, 0.0, 0.9777, -28.0, 230.0, 1.06, 0.94],
306
+ [609.0, 1.0, 29.6, 0.6, 0.0, 0.0, 0.9583, -28.79, 115.0, 1.06, 0.94],
307
+ [664.0, 1.0, -113.7, 76.7, 0.0, 0.0, 1.0309, -17.0, 345.0, 1.06, 0.94],
308
+ [1190.0, 1.0, 100.31, 29.17, 0.0, 0.0, 1.0128, 3.9, 86.0, 1.06, 0.94],
309
+ [1200.0, 1.0, -100.0, 34.17, 0.0, 0.0, 1.0244, -7.52, 86.0, 1.06, 0.94],
310
+ [1201.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0122, -15.18, 115.0, 1.06, 0.94],
311
+ [2040.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9653, -14.94, 115.0, 1.06, 0.94],
312
+ [7001.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0507, 10.79, 13.8, 1.06, 0.94],
313
+ [7002.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0507, 12.48, 13.8, 1.06, 0.94],
314
+ [7003.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0323, 13.76, 13.8, 1.06, 0.94],
315
+ [7011.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0145, 4.99, 13.8, 1.06, 0.94],
316
+ [7012.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0507, 11.57, 13.8, 1.06, 0.94],
317
+ [7017.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0507, -10.47, 13.8, 1.06, 0.94],
318
+ [7023.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0507, 6.15, 13.8, 1.06, 0.94],
319
+ [7024.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.029, 12.6, 13.8, 1.06, 0.94],
320
+ [7039.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.05, 2.11, 20.0, 1.06, 0.94],
321
+ [7044.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0145, -13.92, 13.8, 1.06, 0.94],
322
+ [7049.0, 3.0, 0.0, 0.0, 0.0, 0.0, 1.0507, 0.0, 13.8, 1.06, 0.94],
323
+ [7055.0, 2.0, 0.0, 0.0, 0.0, 0.0, 0.9967, -7.5, 13.8, 1.06, 0.94],
324
+ [7057.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0212, -3.44, 13.8, 1.06, 0.94],
325
+ [7061.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0145, 1.97, 13.8, 1.06, 0.94],
326
+ [7062.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0017, 5.8, 13.8, 1.06, 0.94],
327
+ [7071.0, 2.0, 0.0, 0.0, 0.0, 0.0, 0.9893, -25.35, 13.8, 1.06, 0.94],
328
+ [7130.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0507, 19.02, 13.8, 1.06, 0.94],
329
+ [7139.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0507, 2.75, 13.8, 1.06, 0.94],
330
+ [7166.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0145, 35.05, 13.8, 1.06, 0.94],
331
+ [9001.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0117, -11.25, 115.0, 1.06, 0.94],
332
+ [9002.0, 2.0, 4.2, 0.0, 0.0, 0.0, 0.9945, -18.86, 6.6, 1.06, 0.94],
333
+ [9003.0, 1.0, 2.71, 0.94, 0.14, 2.4, 0.9833, -19.68, 6.6, 1.06, 0.94],
334
+ [9004.0, 1.0, 0.86, 0.28, 0.0, 0.0, 0.9768, -19.82, 6.6, 1.06, 0.94],
335
+ [9005.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0117, -11.32, 115.0, 1.06, 0.94],
336
+ [9006.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0029, -17.42, 6.6, 1.06, 0.94],
337
+ [9007.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9913, -18.69, 6.6, 1.06, 0.94],
338
+ [9012.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0023, -17.27, 6.6, 1.06, 0.94],
339
+ [9021.0, 1.0, 4.75, 1.56, 0.0, 0.0, 0.9887, -19.09, 6.6, 1.06, 0.94],
340
+ [9022.0, 1.0, 1.53, 0.53, 0.08, 0.0, 0.9648, -21.67, 0.6, 1.06, 0.94],
341
+ [9023.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.9747, -19.41, 6.6, 1.06, 0.94],
342
+ [9024.0, 1.0, 1.35, 0.47, 0.07, 0.0, 0.9706, -21.43, 0.6, 1.06, 0.94],
343
+ [9025.0, 1.0, 0.45, 0.16, 0.02, 0.0, 0.9649, -20.48, 0.6, 1.06, 0.94],
344
+ [9026.0, 1.0, 0.45, 0.16, 0.02, 0.0, 0.9657, -20.39, 0.6, 1.06, 0.94],
345
+ [9031.0, 1.0, 1.84, 0.64, 0.1, 0.0, 0.9318, -25.03, 0.6, 1.06, 0.94],
346
+ [9032.0, 1.0, 1.39, 0.48, 0.07, 0.0, 0.9441, -23.84, 0.6, 1.06, 0.94],
347
+ [9033.0, 1.0, 1.89, 0.65, 0.1, 0.0, 0.9286, -25.33, 0.6, 1.06, 0.94],
348
+ [9034.0, 1.0, 1.55, 0.54, 0.08, 1.72, 0.9973, -21.1, 0.6, 1.06, 0.94],
349
+ [9035.0, 1.0, 1.66, 0.58, 0.09, 0.0, 0.9506, -23.19, 0.6, 1.06, 0.94],
350
+ [9036.0, 1.0, 3.03, 1.0, 0.0, 0.0, 0.9598, -22.67, 2.3, 1.06, 0.94],
351
+ [9037.0, 1.0, 1.86, 0.64, 0.1, 0.0, 0.957, -22.58, 0.6, 1.06, 0.94],
352
+ [9038.0, 1.0, 2.58, 0.89, 0.14, 0.0, 0.9391, -24.41, 0.6, 1.06, 0.94],
353
+ [9041.0, 1.0, 1.01, 0.35, 0.05, 0.0, 0.9636, -21.33, 0.6, 1.06, 0.94],
354
+ [9042.0, 1.0, 0.81, 0.28, 0.04, 0.0, 0.9501, -22.5, 0.6, 1.06, 0.94],
355
+ [9043.0, 1.0, 1.6, 0.52, 0.0, 0.0, 0.9646, -21.42, 2.3, 1.06, 0.94],
356
+ [9044.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.979, -19.78, 6.6, 1.06, 0.94],
357
+ [9051.0, 2.0, 35.81, 0.0, 0.0, 0.0, 1.0, -19.4, 13.8, 1.06, 0.94],
358
+ [9052.0, 1.0, 30.0, 23.0, 0.0, 0.0, 0.9786, -17.25, 13.8, 1.06, 0.94],
359
+ [9053.0, 2.0, 26.48, 0.0, 0.0, 0.0, 1.0, -17.68, 13.8, 1.06, 0.94],
360
+ [9054.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0, -6.83, 13.8, 1.06, 0.94],
361
+ [9055.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0, -7.54, 13.8, 1.06, 0.94],
362
+ [9071.0, 1.0, 1.02, 0.35, 0.05, 0.0, 0.9752, -20.48, 0.6, 1.06, 0.94],
363
+ [9072.0, 1.0, 1.02, 0.35, 0.05, 0.0, 0.9803, -19.92, 0.6, 1.06, 0.94],
364
+ [9121.0, 1.0, 3.8, 1.25, 0.0, 0.0, 0.9799, -19.3, 6.6, 1.06, 0.94],
365
+ [9533.0, 1.0, 1.19, 0.41, 0.1, 0.0, 1.0402, -18.24, 2.3, 1.06, 0.94]])
366
+
367
+ # Generator (unit) data
368
+ self.units = DataFrame(
369
+ ['id', 'bus_id', 'Pg', 'Qg', 'Qmax', 'Qmin', 'Vg', 'mBase', 'status', 'Pmax', 'Pmin', 'mc_a', 'mc_b', 'mc_c', 'p_max', 'p_min'],
370
+ [[1.0, 8.0, 0.0, 0.0, 10.0, -10.0, 1.0153, 100.0, 1.0, 100.0, 0.0, 0.0, 0.02, 40.0, 100.0, 0.0],
371
+ [2.0, 10.0, 0.0, 0.0, 20.0, -20.0, 1.0205, 100.0, 1.0, 100.0, 0.0, 0.0, 0.02, 40.0, 100.0, 0.0],
372
+ [3.0, 20.0, 0.0, 0.0, 20.0, -20.0, 1.001, 100.0, 1.0, 100.0, 0.0, 0.0, 0.02, 40.0, 100.0, 0.0],
373
+ [4.0, 63.0, 0.0, 0.0, 25.0, -25.0, 0.9583, 100.0, 1.0, 100.0, 0.0, 0.0, 0.02, 40.0, 100.0, 0.0],
374
+ [5.0, 76.0, 0.0, 0.0, 35.0, 12.0, 0.9632, 100.0, 1.0, 100.0, 0.0, 0.0, 0.02, 40.0, 100.0, 0.0],
375
+ [6.0, 84.0, 375.0, 0.0, 240.0, -240.0, 1.025, 100.0, 1.0, 475.0, 0.0, 0.0, 0.0533333334, 20.0, 475.0, 0.0],
376
+ [7.0, 91.0, 155.0, 0.0, 96.0, -11.0, 1.052, 100.0, 1.0, 255.0, 0.0, 0.0, 0.129032258, 20.0, 255.0, 0.0],
377
+ [8.0, 92.0, 290.0, 0.0, 153.0, -153.0, 1.052, 100.0, 1.0, 390.0, 0.0, 0.0, 0.0689655172, 20.0, 390.0, 0.0],
378
+ [9.0, 98.0, 68.0, 0.0, 56.0, -30.0, 1.0, 100.0, 1.0, 168.0, 0.0, 0.0, 0.294117648, 20.0, 168.0, 0.0],
379
+ [10.0, 108.0, 117.0, 0.0, 77.0, -24.0, 0.99, 100.0, 1.0, 217.0, 0.0, 0.0, 0.170940171, 20.0, 217.0, 0.0],
380
+ [11.0, 119.0, 1930.0, 0.0, 1500.0, -500.0, 1.0435, 100.0, 1.0, 2030.0, 0.0, 0.0, 0.0103626943, 20.0, 2030.0, 0.0],
381
+ [12.0, 124.0, 240.0, 0.0, 120.0, -60.0, 1.0233, 100.0, 1.0, 340.0, 0.0, 0.0, 0.0833333334, 20.0, 340.0, 0.0],
382
+ [13.0, 125.0, 0.0, 0.0, 200.0, -25.0, 1.0103, 100.0, 1.0, 100.0, 0.0, 0.0, 0.02, 40.0, 100.0, 0.0],
383
+ [14.0, 138.0, 0.0, 0.0, 350.0, -125.0, 1.055, 100.0, 1.0, 100.0, 0.0, 0.0, 0.02, 40.0, 100.0, 0.0],
384
+ [15.0, 141.0, 281.0, 0.0, 75.0, -50.0, 1.051, 100.0, 1.0, 381.0, 0.0, 0.0, 0.0711743772, 20.0, 381.0, 0.0],
385
+ [16.0, 143.0, 696.0, 0.0, 300.0, -100.0, 1.0435, 100.0, 1.0, 796.0, 0.0, 0.0, 0.0287356322, 20.0, 796.0, 0.0],
386
+ [17.0, 146.0, 84.0, 0.0, 35.0, -15.0, 1.0528, 100.0, 1.0, 184.0, 0.0, 0.0, 0.238095238, 20.0, 184.0, 0.0],
387
+ [18.0, 147.0, 217.0, 0.0, 100.0, -50.0, 1.0528, 100.0, 1.0, 317.0, 0.0, 0.0, 0.0921658986, 20.0, 317.0, 0.0],
388
+ [19.0, 149.0, 103.0, 0.0, 50.0, -25.0, 1.0735, 100.0, 1.0, 203.0, 0.0, 0.0, 0.1941747572, 20.0, 203.0, 0.0],
389
+ [20.0, 152.0, 372.0, 0.0, 175.0, -50.0, 1.0535, 100.0, 1.0, 472.0, 0.0, 0.0, 0.0537634408, 20.0, 472.0, 0.0],
390
+ [21.0, 153.0, 216.0, 0.0, 90.0, -50.0, 1.0435, 100.0, 1.0, 316.0, 0.0, 0.0, 0.0925925926, 20.0, 316.0, 0.0],
391
+ [22.0, 156.0, 0.0, 0.0, 15.0, -10.0, 0.963, 100.0, 1.0, 100.0, 0.0, 0.0, 0.02, 40.0, 100.0, 0.0],
392
+ [23.0, 170.0, 205.0, 0.0, 90.0, -40.0, 0.929, 100.0, 1.0, 305.0, 0.0, 0.0, 0.0975609756, 20.0, 305.0, 0.0],
393
+ [24.0, 171.0, 0.0, 0.0, 150.0, -50.0, 0.9829, 100.0, 1.0, 100.0, 0.0, 0.0, 0.02, 40.0, 100.0, 0.0],
394
+ [25.0, 176.0, 228.0, 0.0, 90.0, -45.0, 1.0522, 100.0, 1.0, 328.0, 0.0, 0.0, 0.0877192982, 20.0, 328.0, 0.0],
395
+ [26.0, 177.0, 84.0, 0.0, 35.0, -15.0, 1.0077, 100.0, 1.0, 184.0, 0.0, 0.0, 0.238095238, 20.0, 184.0, 0.0],
396
+ [27.0, 185.0, 200.0, 0.0, 80.0, -50.0, 1.0522, 100.0, 1.0, 300.0, 0.0, 0.0, 0.1, 20.0, 300.0, 0.0],
397
+ [28.0, 186.0, 1200.0, 0.0, 400.0, -100.0, 1.065, 100.0, 1.0, 1300.0, 0.0, 0.0, 0.01666666666, 20.0, 1300.0, 0.0],
398
+ [29.0, 187.0, 1200.0, 0.0, 400.0, -100.0, 1.065, 100.0, 1.0, 1300.0, 0.0, 0.0, 0.01666666666, 20.0, 1300.0, 0.0],
399
+ [30.0, 190.0, 475.0, 0.0, 300.0, -300.0, 1.0551, 100.0, 1.0, 575.0, 0.0, 0.0, 0.0421052632, 20.0, 575.0, 0.0],
400
+ [31.0, 191.0, 1973.0, 0.0, 1000.0, -1000.0, 1.0435, 100.0, 1.0, 2073.0, 0.0, 0.0, 0.01013684744, 20.0, 2073.0, 0.0],
401
+ [32.0, 198.0, 424.0, 0.0, 260.0, -260.0, 1.015, 100.0, 1.0, 524.0, 0.0, 0.0, 0.0471698114, 20.0, 524.0, 0.0],
402
+ [33.0, 213.0, 272.0, 0.0, 150.0, -150.0, 1.01, 100.0, 1.0, 372.0, 0.0, 0.0, 0.0735294118, 20.0, 372.0, 0.0],
403
+ [34.0, 220.0, 100.0, 0.0, 60.0, -60.0, 1.008, 100.0, 1.0, 200.0, 0.0, 0.0, 0.2, 20.0, 200.0, 0.0],
404
+ [35.0, 221.0, 450.0, 0.0, 320.0, -320.0, 1.0, 100.0, 1.0, 550.0, 0.0, 0.0, 0.0444444444, 20.0, 550.0, 0.0],
405
+ [36.0, 222.0, 250.0, 0.0, 300.0, -300.0, 1.05, 100.0, 1.0, 350.0, 0.0, 0.0, 0.08, 20.0, 350.0, 0.0],
406
+ [37.0, 227.0, 303.0, 0.0, 300.0, -300.0, 1.0, 100.0, 1.0, 403.0, 0.0, 0.0, 0.0660066006, 20.0, 403.0, 0.0],
407
+ [38.0, 230.0, 345.0, 0.0, 250.0, -250.0, 1.04, 100.0, 1.0, 445.0, 0.0, 0.0, 0.0579710144, 20.0, 445.0, 0.0],
408
+ [39.0, 233.0, 300.0, 0.0, 500.0, -500.0, 1.0, 100.0, 1.0, 400.0, 0.0, 0.0, 0.0666666666, 20.0, 400.0, 0.0],
409
+ [40.0, 236.0, 600.0, 0.0, 300.0, -300.0, 1.0165, 100.0, 1.0, 700.0, 0.0, 0.0, 0.0333333334, 20.0, 700.0, 0.0],
410
+ [41.0, 238.0, 250.0, 0.0, 200.0, -200.0, 1.01, 100.0, 1.0, 350.0, 0.0, 0.0, 0.08, 20.0, 350.0, 0.0],
411
+ [42.0, 239.0, 550.0, 0.0, 400.0, -400.0, 1.0, 100.0, 1.0, 650.0, 0.0, 0.0, 0.0363636364, 20.0, 650.0, 0.0],
412
+ [43.0, 241.0, 575.43, 0.0, 600.0, -600.0, 1.05, 100.0, 1.0, 675.43, 0.0, 0.0, 0.0347566168, 20.0, 675.43, 0.0],
413
+ [44.0, 242.0, 170.0, 0.0, 100.0, 40.0, 0.993, 100.0, 1.0, 270.0, 0.0, 0.0, 0.1176470588, 20.0, 270.0, 0.0],
414
+ [45.0, 243.0, 84.0, 0.0, 80.0, 40.0, 1.01, 100.0, 1.0, 184.0, 0.0, 0.0, 0.238095238, 20.0, 184.0, 0.0],
415
+ [46.0, 7001.0, 467.0, 0.0, 210.0, -210.0, 1.0507, 100.0, 1.0, 567.0, 0.0, 0.0, 0.0428265524, 20.0, 567.0, 0.0],
416
+ [47.0, 7002.0, 623.0, 0.0, 280.0, -280.0, 1.0507, 100.0, 1.0, 723.0, 0.0, 0.0, 0.0321027288, 20.0, 723.0, 0.0],
417
+ [48.0, 7003.0, 1210.0, 0.0, 420.0, -420.0, 1.0323, 100.0, 1.0, 1310.0, 0.0, 0.0, 0.01652892562, 20.0, 1310.0, 0.0],
418
+ [49.0, 7011.0, 234.0, 0.0, 100.0, -100.0, 1.0145, 100.0, 1.0, 334.0, 0.0, 0.0, 0.0854700854, 20.0, 334.0, 0.0],
419
+ [50.0, 7012.0, 372.0, 0.0, 224.0, -224.0, 1.0507, 100.0, 1.0, 472.0, 0.0, 0.0, 0.0537634408, 20.0, 472.0, 0.0],
420
+ [51.0, 7017.0, 330.0, 0.0, 350.0, 0.0, 1.0507, 100.0, 1.0, 430.0, 0.0, 0.0, 0.0606060606, 20.0, 430.0, 0.0],
421
+ [52.0, 7023.0, 185.0, 0.0, 120.0, 0.0, 1.0507, 100.0, 1.0, 285.0, 0.0, 0.0, 0.1081081082, 20.0, 285.0, 0.0],
422
+ [53.0, 7024.0, 410.0, 0.0, 224.0, -224.0, 1.029, 100.0, 1.0, 510.0, 0.0, 0.0, 0.0487804878, 20.0, 510.0, 0.0],
423
+ [54.0, 7039.0, 500.0, 0.0, 200.0, -200.0, 1.05, 100.0, 1.0, 600.0, 0.0, 0.0, 0.04, 20.0, 600.0, 0.0],
424
+ [55.0, 7044.0, 37.0, 0.0, 42.0, 0.0, 1.0145, 100.0, 1.0, 137.0, 0.0, 0.0, 0.54054054, 20.0, 137.0, 0.0],
425
+ [56.0, 7049.0, 0.0, 0.0, 10.0, 0.0, 1.0507, 100.0, 1.0, 2399.005, 0.0, 0.0, 0.02, 40.0, 2399.005, 0.0],
426
+ [57.0, 7055.0, 45.0, 0.0, 25.0, 0.0, 0.9967, 100.0, 1.0, 145.0, 0.0, 0.0, 0.444444444, 20.0, 145.0, 0.0],
427
+ [58.0, 7057.0, 165.0, 0.0, 90.0, -90.0, 1.0212, 100.0, 1.0, 265.0, 0.0, 0.0, 0.1212121212, 20.0, 265.0, 0.0],
428
+ [59.0, 7061.0, 400.0, 0.0, 150.0, -150.0, 1.0145, 100.0, 1.0, 500.0, 0.0, 0.0, 0.05, 20.0, 500.0, 0.0],
429
+ [60.0, 7062.0, 400.0, 0.0, 150.0, 0.0, 1.0017, 100.0, 1.0, 500.0, 0.0, 0.0, 0.05, 20.0, 500.0, 0.0],
430
+ [61.0, 7071.0, 116.0, 0.0, 87.0, 0.0, 0.9893, 100.0, 1.0, 216.0, 0.0, 0.0, 0.1724137932, 20.0, 216.0, 0.0],
431
+ [62.0, 7130.0, 1292.0, 0.0, 600.0, -100.0, 1.0507, 100.0, 1.0, 1392.0, 0.0, 0.0, 0.01547987616, 20.0, 1392.0, 0.0],
432
+ [63.0, 7139.0, 700.0, 0.0, 325.0, -125.0, 1.0507, 100.0, 1.0, 800.0, 0.0, 0.0, 0.0285714286, 20.0, 800.0, 0.0],
433
+ [64.0, 7166.0, 553.0, 0.0, 300.0, -200.0, 1.0145, 100.0, 1.0, 653.0, 0.0, 0.0, 0.0361663652, 20.0, 653.0, 0.0],
434
+ [65.0, 9002.0, 0.0, 0.0, 2.0, -2.0, 0.9945, 100.0, 1.0, 100.0, 0.0, 0.0, 0.02, 40.0, 100.0, 0.0],
435
+ [66.0, 9051.0, 0.0, 0.0, 17.35, -17.35, 1.0, 100.0, 1.0, 100.0, 0.0, 0.0, 0.02, 40.0, 100.0, 0.0],
436
+ [67.0, 9053.0, 0.0, 0.0, 12.83, -12.8, 1.0, 100.0, 1.0, 100.0, 0.0, 0.0, 0.02, 40.0, 100.0, 0.0],
437
+ [68.0, 9054.0, 50.0, 0.0, 38.0, -38.0, 1.0, 100.0, 1.0, 150.0, 0.0, 0.0, 0.4, 20.0, 150.0, 0.0],
438
+ [69.0, 9055.0, 8.0, 0.0, 6.0, -6.0, 1.0, 100.0, 1.0, 108.0, 0.0, 0.0, 2.5, 20.0, 108.0, 0.0]])
439
+
440
+ # Branch (line) data
441
+ self.lines = DataFrame(
442
+ ['id', 'from', 'to', 'r', 'x', 'b', 'rateA', 'ratio', 'angle', 'status', 'floor', 'cap'],
443
+ [[1.0, 37.0, 9001.0, 6e-05, 0.00046, 0.0, 0.0, 1.0082, 0.0, 1.0, 0.0, 0.0],
444
+ [2.0, 9001.0, 9005.0, 0.0008, 0.00348, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
445
+ [3.0, 9001.0, 9006.0, 0.02439, 0.43682, 0.0, 0.0, 0.9668, 0.0, 1.0, 0.0, 0.0],
446
+ [4.0, 9001.0, 9012.0, 0.03624, 0.64898, 0.0, 0.0, 0.9796, 0.0, 1.0, 0.0, 0.0],
447
+ [5.0, 9005.0, 9051.0, 0.01578, 0.37486, 0.0, 0.0, 1.0435, 0.0, 1.0, 0.0, 0.0],
448
+ [6.0, 9005.0, 9052.0, 0.01578, 0.37486, 0.0, 0.0, 0.9391, 0.0, 1.0, 0.0, 0.0],
449
+ [7.0, 9005.0, 9053.0, 0.01602, 0.38046, 0.0, 0.0, 1.0435, 0.0, 1.0, 0.0, 0.0],
450
+ [8.0, 9005.0, 9054.0, 0.0, 0.152, 0.0, 0.0, 1.0435, 0.0, 1.0, 0.0, 0.0],
451
+ [9.0, 9005.0, 9055.0, 0.0, 0.8, 0.0, 0.0, 1.0435, 0.0, 1.0, 0.0, 0.0],
452
+ [10.0, 9006.0, 9007.0, 0.05558, 0.24666, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
453
+ [11.0, 9006.0, 9003.0, 0.11118, 0.49332, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
454
+ [12.0, 9006.0, 9003.0, 0.11118, 0.49332, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
455
+ [13.0, 9012.0, 9002.0, 0.07622, 0.43286, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
456
+ [14.0, 9012.0, 9002.0, 0.07622, 0.43286, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
457
+ [15.0, 9002.0, 9021.0, 0.0537, 0.07026, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
458
+ [16.0, 9021.0, 9023.0, 1.1068, 0.95278, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
459
+ [17.0, 9021.0, 9022.0, 0.44364, 2.8152, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
460
+ [18.0, 9002.0, 9024.0, 0.50748, 3.2202, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
461
+ [19.0, 9023.0, 9025.0, 0.66688, 3.944, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
462
+ [20.0, 9023.0, 9026.0, 0.6113, 3.6152, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
463
+ [21.0, 9007.0, 9071.0, 0.4412, 2.9668, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
464
+ [22.0, 9007.0, 9072.0, 0.30792, 2.057, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
465
+ [23.0, 9007.0, 9003.0, 0.0558, 0.24666, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
466
+ [24.0, 9003.0, 9031.0, 0.73633, 4.6724, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
467
+ [25.0, 9003.0, 9032.0, 0.76978, 4.8846, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
468
+ [26.0, 9003.0, 9033.0, 0.75732, 4.8056, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
469
+ [27.0, 9003.0, 9044.0, 0.07378, 0.06352, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
470
+ [28.0, 9044.0, 9004.0, 0.03832, 0.02894, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
471
+ [29.0, 9004.0, 9041.0, 0.36614, 2.456, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
472
+ [30.0, 9004.0, 9042.0, 1.0593, 5.4536, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
473
+ [31.0, 9004.0, 9043.0, 0.1567, 1.6994, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
474
+ [32.0, 9003.0, 9034.0, 0.13006, 1.3912, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
475
+ [33.0, 9003.0, 9035.0, 0.54484, 3.4572, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
476
+ [34.0, 9003.0, 9036.0, 0.15426, 1.6729, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
477
+ [35.0, 9003.0, 9037.0, 0.3849, 2.5712, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
478
+ [36.0, 9003.0, 9038.0, 0.4412, 2.9668, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
479
+ [37.0, 9012.0, 9121.0, 0.23552, 0.99036, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
480
+ [38.0, 9053.0, 9533.0, 0.0, 0.75, 0.0, 0.0, 0.9583, 0.0, 1.0, 0.0, 0.0],
481
+ [39.0, 1.0, 5.0, 0.001, 0.006, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
482
+ [40.0, 2.0, 6.0, 0.001, 0.009, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
483
+ [41.0, 2.0, 8.0, 0.006, 0.027, 0.054, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
484
+ [42.0, 3.0, 7.0, 0.0, 0.003, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
485
+ [43.0, 3.0, 19.0, 0.008, 0.069, 0.139, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
486
+ [44.0, 3.0, 150.0, 0.001, 0.007, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
487
+ [45.0, 4.0, 16.0, 0.002, 0.019, 1.127, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
488
+ [46.0, 5.0, 9.0, 0.006, 0.029, 0.018, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
489
+ [47.0, 7.0, 12.0, 0.001, 0.009, 0.07, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
490
+ [48.0, 7.0, 131.0, 0.001, 0.007, 0.014, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
491
+ [49.0, 8.0, 11.0, 0.013, 0.0595, 0.033, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
492
+ [50.0, 8.0, 14.0, 0.013, 0.042, 0.081, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
493
+ [51.0, 9.0, 11.0, 0.006, 0.027, 0.013, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
494
+ [52.0, 11.0, 13.0, 0.008, 0.034, 0.018, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
495
+ [53.0, 12.0, 21.0, 0.002, 0.015, 0.118, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
496
+ [54.0, 13.0, 20.0, 0.006, 0.034, 0.016, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
497
+ [55.0, 14.0, 15.0, 0.014, 0.042, 0.097, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
498
+ [56.0, 15.0, 37.0, 0.065, 0.248, 0.121, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
499
+ [57.0, 15.0, 89.0, 0.099, 0.248, 0.035, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
500
+ [58.0, 15.0, 90.0, 0.096, 0.363, 0.048, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
501
+ [59.0, 16.0, 42.0, 0.002, 0.022, 1.28, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
502
+ [60.0, 19.0, 21.0, 0.002, 0.018, 0.036, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
503
+ [61.0, 19.0, 87.0, 0.013, 0.08, 0.151, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
504
+ [62.0, 20.0, 22.0, 0.016, 0.033, 0.015, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
505
+ [63.0, 20.0, 27.0, 0.069, 0.186, 0.098, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
506
+ [64.0, 21.0, 24.0, 0.004, 0.034, 0.28, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
507
+ [65.0, 22.0, 23.0, 0.052, 0.111, 0.05, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
508
+ [66.0, 23.0, 25.0, 0.019, 0.039, 0.018, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
509
+ [67.0, 24.0, 319.0, 0.007, 0.068, 0.134, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
510
+ [68.0, 25.0, 26.0, 0.036, 0.071, 0.034, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
511
+ [69.0, 26.0, 27.0, 0.045, 0.12, 0.065, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
512
+ [70.0, 26.0, 320.0, 0.043, 0.13, 0.014, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
513
+ [71.0, 33.0, 34.0, 0.0, 0.063, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
514
+ [72.0, 33.0, 38.0, 0.0025, 0.012, 0.013, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
515
+ [73.0, 33.0, 40.0, 0.006, 0.029, 0.02, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
516
+ [74.0, 33.0, 41.0, 0.007, 0.043, 0.026, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
517
+ [75.0, 34.0, 42.0, 0.001, 0.008, 0.042, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
518
+ [76.0, 35.0, 72.0, 0.012, 0.06, 0.008, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
519
+ [77.0, 35.0, 76.0, 0.006, 0.014, 0.002, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
520
+ [78.0, 35.0, 77.0, 0.01, 0.029, 0.003, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
521
+ [79.0, 36.0, 88.0, 0.004, 0.027, 0.043, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
522
+ [80.0, 37.0, 38.0, 0.008, 0.047, 0.008, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
523
+ [81.0, 37.0, 40.0, 0.022, 0.064, 0.007, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
524
+ [82.0, 37.0, 41.0, 0.01, 0.036, 0.02, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
525
+ [83.0, 37.0, 49.0, 0.017, 0.081, 0.048, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
526
+ [84.0, 37.0, 89.0, 0.102, 0.254, 0.033, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
527
+ [85.0, 37.0, 90.0, 0.047, 0.127, 0.016, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
528
+ [86.0, 38.0, 41.0, 0.008, 0.037, 0.02, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
529
+ [87.0, 38.0, 43.0, 0.032, 0.087, 0.04, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
530
+ [88.0, 39.0, 42.0, 0.0006, 0.0064, 0.404, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
531
+ [89.0, 40.0, 48.0, 0.026, 0.154, 0.022, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
532
+ [90.0, 41.0, 42.0, 0.0, 0.029, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
533
+ [91.0, 41.0, 49.0, 0.065, 0.191, 0.02, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
534
+ [92.0, 41.0, 51.0, 0.031, 0.089, 0.036, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
535
+ [93.0, 42.0, 46.0, 0.002, 0.014, 0.806, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
536
+ [94.0, 43.0, 44.0, 0.026, 0.072, 0.035, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
537
+ [95.0, 43.0, 48.0, 0.095, 0.262, 0.032, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
538
+ [96.0, 43.0, 53.0, 0.013, 0.039, 0.016, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
539
+ [97.0, 44.0, 47.0, 0.027, 0.084, 0.039, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
540
+ [98.0, 44.0, 54.0, 0.028, 0.084, 0.037, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
541
+ [99.0, 45.0, 60.0, 0.007, 0.041, 0.312, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
542
+ [100.0, 45.0, 74.0, 0.009, 0.054, 0.411, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
543
+ [101.0, 46.0, 81.0, 0.005, 0.042, 0.69, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
544
+ [102.0, 47.0, 73.0, 0.052, 0.145, 0.073, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
545
+ [103.0, 47.0, 113.0, 0.043, 0.118, 0.013, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
546
+ [104.0, 48.0, 107.0, 0.025, 0.062, 0.007, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
547
+ [105.0, 49.0, 51.0, 0.031, 0.094, 0.043, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
548
+ [106.0, 51.0, 52.0, 0.037, 0.109, 0.049, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
549
+ [107.0, 52.0, 55.0, 0.027, 0.08, 0.036, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
550
+ [108.0, 53.0, 54.0, 0.025, 0.073, 0.035, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
551
+ [109.0, 54.0, 55.0, 0.035, 0.103, 0.047, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
552
+ [110.0, 55.0, 57.0, 0.065, 0.169, 0.082, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
553
+ [111.0, 57.0, 58.0, 0.046, 0.08, 0.036, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
554
+ [112.0, 57.0, 63.0, 0.159, 0.537, 0.071, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
555
+ [113.0, 58.0, 59.0, 0.009, 0.026, 0.005, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
556
+ [114.0, 59.0, 61.0, 0.002, 0.013, 0.015, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
557
+ [115.0, 60.0, 62.0, 0.009, 0.065, 0.485, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
558
+ [116.0, 62.0, 64.0, 0.016, 0.105, 0.203, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
559
+ [117.0, 62.0, 144.0, 0.001, 0.007, 0.013, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
560
+ [118.0, 63.0, 526.0, 0.0265, 0.172, 0.026, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
561
+ [119.0, 69.0, 211.0, 0.051, 0.232, 0.028, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
562
+ [120.0, 69.0, 79.0, 0.051, 0.157, 0.023, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
563
+ [121.0, 70.0, 71.0, 0.032, 0.1, 0.062, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
564
+ [122.0, 70.0, 528.0, 0.02, 0.1234, 0.028, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
565
+ [123.0, 71.0, 72.0, 0.036, 0.131, 0.068, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
566
+ [124.0, 71.0, 73.0, 0.034, 0.099, 0.047, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
567
+ [125.0, 72.0, 77.0, 0.018, 0.087, 0.011, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
568
+ [126.0, 72.0, 531.0, 0.0256, 0.193, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
569
+ [127.0, 73.0, 76.0, 0.021, 0.057, 0.03, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
570
+ [128.0, 73.0, 79.0, 0.018, 0.052, 0.018, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
571
+ [129.0, 74.0, 88.0, 0.004, 0.027, 0.05, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
572
+ [130.0, 74.0, 562.0, 0.0286, 0.2013, 0.379, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
573
+ [131.0, 76.0, 77.0, 0.016, 0.043, 0.004, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
574
+ [132.0, 77.0, 78.0, 0.001, 0.006, 0.007, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
575
+ [133.0, 77.0, 80.0, 0.014, 0.07, 0.038, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
576
+ [134.0, 77.0, 552.0, 0.0891, 0.2676, 0.029, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
577
+ [135.0, 77.0, 609.0, 0.0782, 0.2127, 0.022, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
578
+ [136.0, 78.0, 79.0, 0.006, 0.022, 0.011, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
579
+ [137.0, 78.0, 84.0, 0.0, 0.036, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
580
+ [138.0, 79.0, 211.0, 0.099, 0.375, 0.051, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
581
+ [139.0, 80.0, 211.0, 0.022, 0.107, 0.058, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
582
+ [140.0, 81.0, 194.0, 0.0035, 0.033, 0.53, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
583
+ [141.0, 81.0, 195.0, 0.0035, 0.033, 0.53, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
584
+ [142.0, 85.0, 86.0, 0.008, 0.064, 0.128, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
585
+ [143.0, 86.0, 87.0, 0.012, 0.093, 0.183, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
586
+ [144.0, 86.0, 323.0, 0.006, 0.048, 0.092, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
587
+ [145.0, 89.0, 91.0, 0.047, 0.119, 0.014, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
588
+ [146.0, 90.0, 92.0, 0.032, 0.174, 0.024, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
589
+ [147.0, 91.0, 94.0, 0.1, 0.253, 0.031, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
590
+ [148.0, 91.0, 97.0, 0.022, 0.077, 0.039, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
591
+ [149.0, 92.0, 103.0, 0.019, 0.144, 0.017, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
592
+ [150.0, 92.0, 105.0, 0.017, 0.092, 0.012, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
593
+ [151.0, 94.0, 97.0, 0.278, 0.427, 0.043, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
594
+ [152.0, 97.0, 100.0, 0.022, 0.053, 0.007, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
595
+ [153.0, 97.0, 102.0, 0.038, 0.092, 0.012, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
596
+ [154.0, 97.0, 103.0, 0.048, 0.122, 0.015, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
597
+ [155.0, 98.0, 100.0, 0.024, 0.064, 0.007, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
598
+ [156.0, 98.0, 102.0, 0.034, 0.121, 0.015, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
599
+ [157.0, 99.0, 107.0, 0.053, 0.135, 0.017, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
600
+ [158.0, 99.0, 108.0, 0.002, 0.004, 0.002, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
601
+ [159.0, 99.0, 109.0, 0.045, 0.354, 0.044, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
602
+ [160.0, 99.0, 110.0, 0.05, 0.174, 0.022, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
603
+ [161.0, 100.0, 102.0, 0.016, 0.038, 0.004, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
604
+ [162.0, 102.0, 104.0, 0.043, 0.064, 0.027, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
605
+ [163.0, 103.0, 105.0, 0.019, 0.062, 0.008, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
606
+ [164.0, 104.0, 108.0, 0.076, 0.13, 0.044, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
607
+ [165.0, 104.0, 322.0, 0.044, 0.124, 0.015, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
608
+ [166.0, 105.0, 107.0, 0.012, 0.088, 0.011, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
609
+ [167.0, 105.0, 110.0, 0.157, 0.4, 0.047, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
610
+ [168.0, 108.0, 324.0, 0.074, 0.208, 0.026, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
611
+ [169.0, 109.0, 110.0, 0.07, 0.184, 0.021, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
612
+ [170.0, 109.0, 113.0, 0.1, 0.274, 0.031, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
613
+ [171.0, 109.0, 114.0, 0.109, 0.393, 0.036, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
614
+ [172.0, 110.0, 112.0, 0.142, 0.404, 0.05, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
615
+ [173.0, 112.0, 114.0, 0.017, 0.042, 0.006, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
616
+ [174.0, 115.0, 122.0, 0.0036, 0.0199, 0.004, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
617
+ [175.0, 116.0, 120.0, 0.002, 0.1049, 0.001, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
618
+ [176.0, 117.0, 118.0, 0.0001, 0.0018, 0.017, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
619
+ [177.0, 118.0, 119.0, 0.0, 0.0271, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
620
+ [178.0, 118.0, 1201.0, 0.0, 0.6163, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
621
+ [179.0, 1201.0, 120.0, 0.0, -0.3697, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
622
+ [180.0, 118.0, 121.0, 0.0022, 0.2915, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
623
+ [181.0, 119.0, 120.0, 0.0, 0.0339, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
624
+ [182.0, 119.0, 121.0, 0.0, 0.0582, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
625
+ [183.0, 122.0, 123.0, 0.0808, 0.2344, 0.029, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
626
+ [184.0, 122.0, 125.0, 0.0965, 0.3669, 0.054, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
627
+ [185.0, 123.0, 124.0, 0.036, 0.1076, 0.117, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
628
+ [186.0, 123.0, 125.0, 0.0476, 0.1414, 0.149, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
629
+ [187.0, 125.0, 126.0, 0.0006, 0.0197, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
630
+ [188.0, 126.0, 127.0, 0.0059, 0.0405, 0.25, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
631
+ [189.0, 126.0, 129.0, 0.0115, 0.1106, 0.185, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
632
+ [190.0, 126.0, 132.0, 0.0198, 0.1688, 0.321, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
633
+ [191.0, 126.0, 157.0, 0.005, 0.05, 0.33, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
634
+ [192.0, 126.0, 158.0, 0.0077, 0.0538, 0.335, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
635
+ [193.0, 126.0, 169.0, 0.0165, 0.1157, 0.171, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
636
+ [194.0, 127.0, 128.0, 0.0059, 0.0577, 0.095, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
637
+ [195.0, 127.0, 134.0, 0.0049, 0.0336, 0.208, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
638
+ [196.0, 127.0, 168.0, 0.0059, 0.0577, 0.095, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
639
+ [197.0, 128.0, 130.0, 0.0078, 0.0773, 0.126, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
640
+ [198.0, 128.0, 133.0, 0.0026, 0.0193, 0.03, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
641
+ [199.0, 129.0, 130.0, 0.0076, 0.0752, 0.122, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
642
+ [200.0, 129.0, 133.0, 0.0021, 0.0186, 0.03, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
643
+ [201.0, 130.0, 132.0, 0.0016, 0.0164, 0.026, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
644
+ [202.0, 130.0, 151.0, 0.0017, 0.0165, 0.026, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
645
+ [203.0, 130.0, 167.0, 0.0079, 0.0793, 0.127, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
646
+ [204.0, 130.0, 168.0, 0.0078, 0.0784, 0.125, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
647
+ [205.0, 133.0, 137.0, 0.0017, 0.0117, 0.289, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
648
+ [206.0, 133.0, 168.0, 0.0026, 0.0193, 0.03, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
649
+ [207.0, 133.0, 169.0, 0.0021, 0.0186, 0.03, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
650
+ [208.0, 133.0, 171.0, 0.0002, 0.0101, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
651
+ [209.0, 134.0, 135.0, 0.0043, 0.0293, 0.18, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
652
+ [210.0, 134.0, 184.0, 0.0039, 0.0381, 0.258, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
653
+ [211.0, 135.0, 136.0, 0.0091, 0.0623, 0.385, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
654
+ [212.0, 136.0, 137.0, 0.0125, 0.089, 0.54, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
655
+ [213.0, 136.0, 152.0, 0.0056, 0.039, 0.953, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
656
+ [214.0, 137.0, 140.0, 0.0015, 0.0114, 0.284, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
657
+ [215.0, 137.0, 181.0, 0.0005, 0.0034, 0.021, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
658
+ [216.0, 137.0, 186.0, 0.0007, 0.0151, 0.126, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
659
+ [217.0, 137.0, 188.0, 0.0005, 0.0034, 0.021, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
660
+ [218.0, 139.0, 172.0, 0.0562, 0.2248, 0.081, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
661
+ [219.0, 140.0, 141.0, 0.012, 0.0836, 0.123, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
662
+ [220.0, 140.0, 142.0, 0.0152, 0.1132, 0.684, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
663
+ [221.0, 140.0, 145.0, 0.0468, 0.3369, 0.519, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
664
+ [222.0, 140.0, 146.0, 0.043, 0.3031, 0.463, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
665
+ [223.0, 140.0, 147.0, 0.0489, 0.3492, 0.538, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
666
+ [224.0, 140.0, 182.0, 0.0013, 0.0089, 0.119, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
667
+ [225.0, 141.0, 146.0, 0.0291, 0.2267, 0.342, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
668
+ [226.0, 142.0, 143.0, 0.006, 0.057, 0.767, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
669
+ [227.0, 143.0, 145.0, 0.0075, 0.0773, 0.119, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
670
+ [228.0, 143.0, 149.0, 0.0127, 0.0909, 0.135, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
671
+ [229.0, 145.0, 146.0, 0.0085, 0.0588, 0.087, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
672
+ [230.0, 145.0, 149.0, 0.0218, 0.1511, 0.223, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
673
+ [231.0, 146.0, 147.0, 0.0073, 0.0504, 0.074, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
674
+ [232.0, 148.0, 178.0, 0.0523, 0.1526, 0.074, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
675
+ [233.0, 148.0, 179.0, 0.1371, 0.3919, 0.076, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
676
+ [234.0, 152.0, 153.0, 0.0137, 0.0957, 0.141, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
677
+ [235.0, 153.0, 161.0, 0.0055, 0.0288, 0.19, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
678
+ [236.0, 154.0, 156.0, 0.1746, 0.3161, 0.04, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
679
+ [237.0, 154.0, 183.0, 0.0804, 0.3054, 0.045, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
680
+ [238.0, 155.0, 161.0, 0.011, 0.0568, 0.388, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
681
+ [239.0, 157.0, 159.0, 0.0008, 0.0098, 0.069, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
682
+ [240.0, 158.0, 159.0, 0.0029, 0.0285, 0.19, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
683
+ [241.0, 158.0, 160.0, 0.0066, 0.0448, 0.277, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
684
+ [242.0, 162.0, 164.0, 0.0024, 0.0326, 0.236, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
685
+ [243.0, 162.0, 165.0, 0.0018, 0.0245, 1.662, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
686
+ [244.0, 163.0, 164.0, 0.0044, 0.0514, 3.597, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
687
+ [245.0, 165.0, 166.0, 0.0002, 0.0123, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
688
+ [246.0, 167.0, 169.0, 0.0018, 0.0178, 0.029, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
689
+ [247.0, 172.0, 173.0, 0.0669, 0.4843, 0.063, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
690
+ [248.0, 172.0, 174.0, 0.0558, 0.221, 0.031, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
691
+ [249.0, 173.0, 174.0, 0.0807, 0.3331, 0.049, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
692
+ [250.0, 173.0, 175.0, 0.0739, 0.3071, 0.043, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
693
+ [251.0, 173.0, 176.0, 0.1799, 0.5017, 0.069, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
694
+ [252.0, 175.0, 176.0, 0.0904, 0.3626, 0.048, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
695
+ [253.0, 175.0, 179.0, 0.077, 0.3092, 0.054, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
696
+ [254.0, 176.0, 177.0, 0.0251, 0.0829, 0.047, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
697
+ [255.0, 177.0, 178.0, 0.0222, 0.0847, 0.05, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
698
+ [256.0, 178.0, 179.0, 0.0498, 0.1855, 0.029, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
699
+ [257.0, 178.0, 180.0, 0.0061, 0.029, 0.084, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
700
+ [258.0, 181.0, 138.0, 0.0004, 0.0202, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
701
+ [259.0, 181.0, 187.0, 0.0004, 0.0083, 0.115, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
702
+ [260.0, 184.0, 185.0, 0.0025, 0.0245, 0.164, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
703
+ [261.0, 186.0, 188.0, 0.0007, 0.0086, 0.115, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
704
+ [262.0, 187.0, 188.0, 0.0007, 0.0086, 0.115, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
705
+ [263.0, 188.0, 138.0, 0.0004, 0.0202, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
706
+ [264.0, 189.0, 208.0, 0.033, 0.095, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
707
+ [265.0, 189.0, 209.0, 0.046, 0.069, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
708
+ [266.0, 190.0, 231.0, 0.0004, 0.0022, 6.2, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
709
+ [267.0, 190.0, 240.0, 0.0, 0.0275, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
710
+ [268.0, 191.0, 192.0, 0.003, 0.048, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
711
+ [269.0, 192.0, 225.0, 0.002, 0.009, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
712
+ [270.0, 193.0, 205.0, 0.045, 0.063, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
713
+ [271.0, 193.0, 208.0, 0.048, 0.127, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
714
+ [272.0, 194.0, 219.0, 0.0031, 0.0286, 0.5, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
715
+ [273.0, 194.0, 664.0, 0.0024, 0.0355, 0.36, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
716
+ [274.0, 195.0, 219.0, 0.0031, 0.0286, 0.5, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
717
+ [275.0, 196.0, 197.0, 0.014, 0.04, 0.004, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
718
+ [276.0, 196.0, 210.0, 0.03, 0.081, 0.01, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
719
+ [277.0, 197.0, 198.0, 0.01, 0.06, 0.009, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
720
+ [278.0, 197.0, 211.0, 0.015, 0.04, 0.006, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
721
+ [279.0, 198.0, 202.0, 0.332, 0.688, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
722
+ [280.0, 198.0, 203.0, 0.009, 0.046, 0.025, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
723
+ [281.0, 198.0, 210.0, 0.02, 0.073, 0.008, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
724
+ [282.0, 198.0, 211.0, 0.034, 0.109, 0.032, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
725
+ [283.0, 199.0, 200.0, 0.076, 0.135, 0.009, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
726
+ [284.0, 199.0, 210.0, 0.04, 0.102, 0.005, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
727
+ [285.0, 200.0, 210.0, 0.081, 0.128, 0.014, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
728
+ [286.0, 201.0, 204.0, 0.124, 0.183, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
729
+ [287.0, 203.0, 211.0, 0.01, 0.059, 0.008, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
730
+ [288.0, 204.0, 205.0, 0.046, 0.068, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
731
+ [289.0, 205.0, 206.0, 0.302, 0.446, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
732
+ [290.0, 206.0, 207.0, 0.073, 0.093, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
733
+ [291.0, 206.0, 208.0, 0.24, 0.421, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
734
+ [292.0, 212.0, 215.0, 0.0139, 0.0778, 0.086, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
735
+ [293.0, 213.0, 214.0, 0.0025, 0.038, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
736
+ [294.0, 214.0, 215.0, 0.0017, 0.0185, 0.02, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
737
+ [295.0, 214.0, 242.0, 0.0015, 0.0108, 0.002, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
738
+ [296.0, 215.0, 216.0, 0.0045, 0.0249, 0.026, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
739
+ [297.0, 216.0, 217.0, 0.004, 0.0497, 0.018, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
740
+ [298.0, 217.0, 218.0, 0.0, 0.0456, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
741
+ [299.0, 217.0, 219.0, 0.0005, 0.0177, 0.02, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
742
+ [300.0, 217.0, 220.0, 0.0027, 0.0395, 0.832, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
743
+ [301.0, 219.0, 237.0, 0.0003, 0.0018, 5.2, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
744
+ [302.0, 220.0, 218.0, 0.0037, 0.0484, 0.43, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
745
+ [303.0, 220.0, 221.0, 0.001, 0.0295, 0.503, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
746
+ [304.0, 220.0, 238.0, 0.0016, 0.0046, 0.402, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
747
+ [305.0, 221.0, 223.0, 0.0003, 0.0013, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
748
+ [306.0, 222.0, 237.0, 0.0014, 0.0514, 0.33, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
749
+ [307.0, 224.0, 225.0, 0.01, 0.064, 0.48, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
750
+ [308.0, 224.0, 226.0, 0.0019, 0.0081, 0.86, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
751
+ [309.0, 225.0, 191.0, 0.001, 0.061, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
752
+ [310.0, 226.0, 231.0, 0.0005, 0.0212, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
753
+ [311.0, 227.0, 231.0, 0.0009, 0.0472, 0.186, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
754
+ [312.0, 228.0, 229.0, 0.0019, 0.0087, 1.28, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
755
+ [313.0, 228.0, 231.0, 0.0026, 0.0917, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
756
+ [314.0, 228.0, 234.0, 0.0013, 0.0288, 0.81, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
757
+ [315.0, 229.0, 190.0, 0.0, 0.0626, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
758
+ [316.0, 231.0, 232.0, 0.0002, 0.0069, 1.364, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
759
+ [317.0, 231.0, 237.0, 0.0001, 0.0006, 3.57, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
760
+ [318.0, 232.0, 233.0, 0.0017, 0.0485, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
761
+ [319.0, 234.0, 235.0, 0.0002, 0.0259, 0.144, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
762
+ [320.0, 234.0, 237.0, 0.0006, 0.0272, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
763
+ [321.0, 235.0, 238.0, 0.0002, 0.0006, 0.8, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
764
+ [322.0, 241.0, 237.0, 0.0005, 0.0154, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
765
+ [323.0, 240.0, 281.0, 0.0003, 0.0043, 0.009, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
766
+ [324.0, 242.0, 245.0, 0.0082, 0.0851, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
767
+ [325.0, 242.0, 247.0, 0.0112, 0.0723, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
768
+ [326.0, 243.0, 244.0, 0.0127, 0.0355, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
769
+ [327.0, 243.0, 245.0, 0.0326, 0.1804, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
770
+ [328.0, 244.0, 246.0, 0.0195, 0.0551, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
771
+ [329.0, 245.0, 246.0, 0.0157, 0.0732, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
772
+ [330.0, 245.0, 247.0, 0.036, 0.2119, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
773
+ [331.0, 246.0, 247.0, 0.0268, 0.1285, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
774
+ [332.0, 247.0, 248.0, 0.0428, 0.1215, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
775
+ [333.0, 248.0, 249.0, 0.0351, 0.1004, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
776
+ [334.0, 249.0, 250.0, 0.0616, 0.1857, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
777
+ [335.0, 3.0, 1.0, 0.0, 0.052, 0.0, 0.0, 0.947, 0.0, 1.0, 0.0, 0.0],
778
+ [336.0, 3.0, 2.0, 0.0, 0.052, 0.0, 0.0, 0.956, 0.0, 1.0, 0.0, 0.0],
779
+ [337.0, 3.0, 4.0, 0.0, 0.005, 0.0, 0.0, 0.971, 0.0, 1.0, 0.0, 0.0],
780
+ [338.0, 7.0, 5.0, 0.0, 0.039, 0.0, 0.0, 0.948, 0.0, 1.0, 0.0, 0.0],
781
+ [339.0, 7.0, 6.0, 0.0, 0.039, 0.0, 0.0, 0.959, 0.0, 1.0, 0.0, 0.0],
782
+ [340.0, 10.0, 11.0, 0.0, 0.089, 0.0, 0.0, 1.046, 0.0, 1.0, 0.0, 0.0],
783
+ [341.0, 12.0, 10.0, 0.0, 0.053, 0.0, 0.0, 0.985, 0.0, 1.0, 0.0, 0.0],
784
+ [342.0, 15.0, 17.0, 0.0194, 0.0311, 0.0, 0.0, 0.9561, 0.0, 1.0, 0.0, 0.0],
785
+ [343.0, 16.0, 15.0, 0.001, 0.038, 0.0, 0.0, 0.971, 0.0, 1.0, 0.0, 0.0],
786
+ [344.0, 21.0, 20.0, 0.0, 0.014, 0.0, 0.0, 0.952, 0.0, 1.0, 0.0, 0.0],
787
+ [345.0, 24.0, 23.0, 0.0, 0.064, 0.0, 0.0, 0.943, 0.0, 1.0, 0.0, 0.0],
788
+ [346.0, 36.0, 35.0, 0.0, 0.047, 0.0, 0.0, 1.01, 0.0, 1.0, 0.0, 0.0],
789
+ [347.0, 45.0, 44.0, 0.0, 0.02, 0.0, 0.0, 1.008, 0.0, 1.0, 0.0, 0.0],
790
+ [348.0, 45.0, 46.0, 0.0, 0.021, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
791
+ [349.0, 62.0, 61.0, 0.0, 0.059, 0.0, 0.0, 0.975, 0.0, 1.0, 0.0, 0.0],
792
+ [350.0, 63.0, 64.0, 0.0, 0.038, 0.0, 0.0, 1.017, 0.0, 1.0, 0.0, 0.0],
793
+ [351.0, 73.0, 74.0, 0.0, 0.0244, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
794
+ [352.0, 81.0, 88.0, 0.0, 0.02, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
795
+ [353.0, 85.0, 99.0, 0.0, 0.048, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
796
+ [354.0, 86.0, 102.0, 0.0, 0.048, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
797
+ [355.0, 87.0, 94.0, 0.0, 0.046, 0.0, 0.0, 1.015, 0.0, 1.0, 0.0, 0.0],
798
+ [356.0, 114.0, 207.0, 0.0, 0.149, 0.0, 0.0, 0.967, 0.0, 1.0, 0.0, 0.0],
799
+ [357.0, 116.0, 124.0, 0.0052, 0.0174, 0.0, 0.0, 1.01, 0.0, 1.0, 0.0, 0.0],
800
+ [358.0, 121.0, 115.0, 0.0, 0.028, 0.0, 0.0, 1.05, 0.0, 1.0, 0.0, 0.0],
801
+ [359.0, 122.0, 157.0, 0.0005, 0.0195, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
802
+ [360.0, 130.0, 131.0, 0.0, 0.018, 0.0, 0.0, 1.0522, 0.0, 1.0, 0.0, 0.0],
803
+ [361.0, 130.0, 150.0, 0.0, 0.014, 0.0, 0.0, 1.0522, 0.0, 1.0, 0.0, 0.0],
804
+ [362.0, 132.0, 170.0, 0.001, 0.0402, 0.0, 0.0, 1.05, 0.0, 1.0, 0.0, 0.0],
805
+ [363.0, 141.0, 174.0, 0.0024, 0.0603, 0.0, 0.0, 0.975, 0.0, 1.0, 0.0, 0.0],
806
+ [364.0, 142.0, 175.0, 0.0024, 0.0498, -0.087, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
807
+ [365.0, 143.0, 144.0, 0.0, 0.0833, 0.0, 0.0, 1.035, 0.0, 1.0, 0.0, 0.0],
808
+ [366.0, 143.0, 148.0, 0.0013, 0.0371, 0.0, 0.0, 0.9565, 0.0, 1.0, 0.0, 0.0],
809
+ [367.0, 145.0, 180.0, 0.0005, 0.0182, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
810
+ [368.0, 151.0, 170.0, 0.001, 0.0392, 0.0, 0.0, 1.05, 0.0, 1.0, 0.0, 0.0],
811
+ [369.0, 153.0, 183.0, 0.0027, 0.0639, 0.0, 0.0, 1.073, 0.0, 1.0, 0.0, 0.0],
812
+ [370.0, 155.0, 156.0, 0.0008, 0.0256, 0.0, 0.0, 1.05, 0.0, 1.0, 0.0, 0.0],
813
+ [371.0, 159.0, 117.0, 0.0, 0.016, 0.0, 0.0, 1.0506, 0.0, 1.0, 0.0, 0.0],
814
+ [372.0, 160.0, 124.0, 0.0012, 0.0396, 0.0, 0.0, 0.975, 0.0, 1.0, 0.0, 0.0],
815
+ [373.0, 163.0, 137.0, 0.0013, 0.0384, -0.057, 0.0, 0.98, 0.0, 1.0, 0.0, 0.0],
816
+ [374.0, 164.0, 155.0, 0.0009, 0.0231, -0.033, 0.0, 0.956, 0.0, 1.0, 0.0, 0.0],
817
+ [375.0, 182.0, 139.0, 0.0003, 0.0131, 0.0, 0.0, 1.05, 0.0, 1.0, 0.0, 0.0],
818
+ [376.0, 189.0, 210.0, 0.0, 0.252, 0.0, 0.0, 1.03, 0.0, 1.0, 0.0, 0.0],
819
+ [377.0, 193.0, 196.0, 0.0, 0.237, 0.0, 0.0, 1.03, 0.0, 1.0, 0.0, 0.0],
820
+ [378.0, 195.0, 212.0, 0.0008, 0.0366, 0.0, 0.0, 0.985, 0.0, 1.0, 0.0, 0.0],
821
+ [379.0, 200.0, 248.0, 0.0, 0.22, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
822
+ [380.0, 201.0, 69.0, 0.0, 0.098, 0.0, 0.0, 1.03, 0.0, 1.0, 0.0, 0.0],
823
+ [381.0, 202.0, 211.0, 0.0, 0.128, 0.0, 0.0, 1.01, 0.0, 1.0, 0.0, 0.0],
824
+ [382.0, 204.0, 2040.0, 0.02, 0.204, -0.012, 0.0, 1.05, 0.0, 1.0, 0.0, 0.0],
825
+ [383.0, 209.0, 198.0, 0.026, 0.211, 0.0, 0.0, 1.03, 0.0, 1.0, 0.0, 0.0],
826
+ [384.0, 211.0, 212.0, 0.003, 0.0122, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
827
+ [385.0, 218.0, 219.0, 0.001, 0.0354, -0.01, 0.0, 0.97, 0.0, 1.0, 0.0, 0.0],
828
+ [386.0, 223.0, 224.0, 0.0012, 0.0195, -0.364, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
829
+ [387.0, 229.0, 230.0, 0.001, 0.0332, 0.0, 0.0, 1.02, 0.0, 1.0, 0.0, 0.0],
830
+ [388.0, 234.0, 236.0, 0.0005, 0.016, 0.0, 0.0, 1.07, 0.0, 1.0, 0.0, 0.0],
831
+ [389.0, 238.0, 239.0, 0.0005, 0.016, 0.0, 0.0, 1.02, 0.0, 1.0, 0.0, 0.0],
832
+ [390.0, 196.0, 2040.0, 0.0001, 0.02, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
833
+ [391.0, 119.0, 1190.0, 0.001, 0.023, 0.0, 0.0, 1.0223, 0.0, 1.0, 0.0, 0.0],
834
+ [392.0, 120.0, 1200.0, 0.0, 0.023, 0.0, 0.0, 0.9284, 0.0, 1.0, 0.0, 0.0],
835
+ [393.0, 7002.0, 2.0, 0.001, 0.0146, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
836
+ [394.0, 7003.0, 3.0, 0.0, 0.01054, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
837
+ [395.0, 7061.0, 61.0, 0.0, 0.0238, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
838
+ [396.0, 7062.0, 62.0, 0.0, 0.03214, 0.0, 0.0, 0.95, 0.0, 1.0, 0.0, 0.0],
839
+ [397.0, 7166.0, 166.0, 0.0, 0.0154, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
840
+ [398.0, 7024.0, 24.0, 0.0, 0.0289, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
841
+ [399.0, 7001.0, 1.0, 0.0, 0.01953, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
842
+ [400.0, 7130.0, 130.0, 0.0, 0.0193, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
843
+ [401.0, 7011.0, 11.0, 0.0, 0.01923, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
844
+ [402.0, 7023.0, 23.0, 0.0, 0.023, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
845
+ [403.0, 7049.0, 49.0, 0.0, 0.0124, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
846
+ [404.0, 7139.0, 139.0, 0.0, 0.0167, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
847
+ [405.0, 7012.0, 12.0, 0.0, 0.0312, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0],
848
+ [406.0, 7017.0, 17.0, 0.0, 0.01654, 0.0, 0.0, 0.942, 0.0, 1.0, 0.0, 0.0],
849
+ [407.0, 7039.0, 39.0, 0.0, 0.03159, 0.0, 0.0, 0.965, 0.0, 1.0, 0.0, 0.0],
850
+ [408.0, 7057.0, 57.0, 0.0, 0.05347, 0.0, 0.0, 0.95, 0.0, 1.0, 0.0, 0.0],
851
+ [409.0, 7044.0, 44.0, 0.0, 0.18181, 0.0, 0.0, 0.942, 0.0, 1.0, 0.0, 0.0],
852
+ [410.0, 7055.0, 55.0, 0.0, 0.19607, 0.0, 0.0, 0.942, 0.0, 1.0, 0.0, 0.0],
853
+ [411.0, 7071.0, 71.0, 0.0, 0.06896, 0.0, 0.0, 0.9565, 0.0, 1.0, 0.0, 0.0]])
854
+
855
+ # Load data
856
+ self.loads = DataFrame(
857
+ ['id', 'bus_id', 'Pd', 'Qd', 'mc_a', 'mc_b', 'mc_c', 'd_max', 'd_min'],
858
+ [[1.0, 1.0, 90.0, 49.0, 0.0, 0.0, 0.0, 90.0, 90.0],
859
+ [2.0, 2.0, 56.0, 15.0, 0.0, 0.0, 0.0, 56.0, 56.0],
860
+ [3.0, 3.0, 20.0, 0.0, 0.0, 0.0, 0.0, 20.0, 20.0],
861
+ [4.0, 4.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
862
+ [5.0, 5.0, 353.0, 130.0, 0.0, 0.0, 0.0, 353.0, 353.0],
863
+ [6.0, 6.0, 120.0, 41.0, 0.0, 0.0, 0.0, 120.0, 120.0],
864
+ [7.0, 7.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
865
+ [8.0, 8.0, 63.0, 14.0, 0.0, 0.0, 0.0, 63.0, 63.0],
866
+ [9.0, 9.0, 96.0, 43.0, 0.0, 0.0, 0.0, 96.0, 96.0],
867
+ [10.0, 10.0, 153.0, 33.0, 0.0, 0.0, 0.0, 153.0, 153.0],
868
+ [11.0, 11.0, 83.0, 21.0, 0.0, 0.0, 0.0, 83.0, 83.0],
869
+ [12.0, 12.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
870
+ [13.0, 13.0, 58.0, 10.0, 0.0, 0.0, 0.0, 58.0, 58.0],
871
+ [14.0, 14.0, 160.0, 60.0, 0.0, 0.0, 0.0, 160.0, 160.0],
872
+ [15.0, 15.0, 126.7, 23.0, 0.0, 0.0, 0.0, 126.7, 126.7],
873
+ [16.0, 16.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
874
+ [17.0, 17.0, 561.0, 220.0, 0.0, 0.0, 0.0, 561.0, 561.0],
875
+ [18.0, 19.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
876
+ [19.0, 20.0, 605.0, 120.0, 0.0, 0.0, 0.0, 605.0, 605.0],
877
+ [20.0, 21.0, 77.0, 1.0, 0.0, 0.0, 0.0, 77.0, 77.0],
878
+ [21.0, 22.0, 81.0, 23.0, 0.0, 0.0, 0.0, 81.0, 81.0],
879
+ [22.0, 23.0, 21.0, 7.0, 0.0, 0.0, 0.0, 21.0, 21.0],
880
+ [23.0, 24.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
881
+ [24.0, 25.0, 45.0, 12.0, 0.0, 0.0, 0.0, 45.0, 45.0],
882
+ [25.0, 26.0, 28.0, 9.0, 0.0, 0.0, 0.0, 28.0, 28.0],
883
+ [26.0, 27.0, 69.0, 13.0, 0.0, 0.0, 0.0, 69.0, 69.0],
884
+ [27.0, 33.0, 55.0, 6.0, 0.0, 0.0, 0.0, 55.0, 55.0],
885
+ [28.0, 34.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
886
+ [29.0, 35.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
887
+ [30.0, 36.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
888
+ [31.0, 37.0, 85.0, 32.0, 0.0, 0.0, 0.0, 85.0, 85.0],
889
+ [32.0, 38.0, 155.0, 18.0, 0.0, 0.0, 0.0, 155.0, 155.0],
890
+ [33.0, 39.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
891
+ [34.0, 40.0, 46.0, -21.0, 0.0, 0.0, 0.0, 46.0, 46.0],
892
+ [35.0, 41.0, 86.0, 0.0, 0.0, 0.0, 0.0, 86.0, 86.0],
893
+ [36.0, 42.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
894
+ [37.0, 43.0, 39.0, 9.0, 0.0, 0.0, 0.0, 39.0, 39.0],
895
+ [38.0, 44.0, 195.0, 29.0, 0.0, 0.0, 0.0, 195.0, 195.0],
896
+ [39.0, 45.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
897
+ [40.0, 46.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
898
+ [41.0, 47.0, 58.0, 11.8, 0.0, 0.0, 0.0, 58.0, 58.0],
899
+ [42.0, 48.0, 41.0, 19.0, 0.0, 0.0, 0.0, 41.0, 41.0],
900
+ [43.0, 49.0, 92.0, 26.0, 0.0, 0.0, 0.0, 92.0, 92.0],
901
+ [44.0, 51.0, -5.0, 5.0, 0.0, 0.0, 0.0, -5.0, -5.0],
902
+ [45.0, 52.0, 61.0, 28.0, 0.0, 0.0, 0.0, 61.0, 61.0],
903
+ [46.0, 53.0, 69.0, 3.0, 0.0, 0.0, 0.0, 69.0, 69.0],
904
+ [47.0, 54.0, 10.0, 1.0, 0.0, 0.0, 0.0, 10.0, 10.0],
905
+ [48.0, 55.0, 22.0, 10.0, 0.0, 0.0, 0.0, 22.0, 22.0],
906
+ [49.0, 57.0, 98.0, 20.0, 0.0, 0.0, 0.0, 98.0, 98.0],
907
+ [50.0, 58.0, 14.0, 1.0, 0.0, 0.0, 0.0, 14.0, 14.0],
908
+ [51.0, 59.0, 218.0, 106.0, 0.0, 0.0, 0.0, 218.0, 218.0],
909
+ [52.0, 60.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
910
+ [53.0, 61.0, 227.0, 110.0, 0.0, 0.0, 0.0, 227.0, 227.0],
911
+ [54.0, 62.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
912
+ [55.0, 63.0, 70.0, 30.0, 0.0, 0.0, 0.0, 70.0, 70.0],
913
+ [56.0, 64.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
914
+ [57.0, 69.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
915
+ [58.0, 70.0, 56.0, 20.0, 0.0, 0.0, 0.0, 56.0, 56.0],
916
+ [59.0, 71.0, 116.0, 38.0, 0.0, 0.0, 0.0, 116.0, 116.0],
917
+ [60.0, 72.0, 57.0, 19.0, 0.0, 0.0, 0.0, 57.0, 57.0],
918
+ [61.0, 73.0, 224.0, 71.0, 0.0, 0.0, 0.0, 224.0, 224.0],
919
+ [62.0, 74.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
920
+ [63.0, 76.0, 208.0, 107.0, 0.0, 0.0, 0.0, 208.0, 208.0],
921
+ [64.0, 77.0, 74.0, 28.0, 0.0, 0.0, 0.0, 74.0, 74.0],
922
+ [65.0, 78.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
923
+ [66.0, 79.0, 48.0, 14.0, 0.0, 0.0, 0.0, 48.0, 48.0],
924
+ [67.0, 80.0, 28.0, 7.0, 0.0, 0.0, 0.0, 28.0, 28.0],
925
+ [68.0, 81.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
926
+ [69.0, 84.0, 37.0, 13.0, 0.0, 0.0, 0.0, 37.0, 37.0],
927
+ [70.0, 85.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
928
+ [71.0, 86.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
929
+ [72.0, 87.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
930
+ [73.0, 88.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
931
+ [74.0, 89.0, 44.2, 0.0, 0.0, 0.0, 0.0, 44.2, 44.2],
932
+ [75.0, 90.0, 66.0, 0.0, 0.0, 0.0, 0.0, 66.0, 66.0],
933
+ [76.0, 91.0, 17.4, 0.0, 0.0, 0.0, 0.0, 17.4, 17.4],
934
+ [77.0, 92.0, 15.8, 0.0, 0.0, 0.0, 0.0, 15.8, 15.8],
935
+ [78.0, 94.0, 60.3, 0.0, 0.0, 0.0, 0.0, 60.3, 60.3],
936
+ [79.0, 97.0, 39.9, 0.0, 0.0, 0.0, 0.0, 39.9, 39.9],
937
+ [80.0, 98.0, 66.7, 0.0, 0.0, 0.0, 0.0, 66.7, 66.7],
938
+ [81.0, 99.0, 83.5, 0.0, 0.0, 0.0, 0.0, 83.5, 83.5],
939
+ [82.0, 100.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
940
+ [83.0, 102.0, 77.8, 0.0, 0.0, 0.0, 0.0, 77.8, 77.8],
941
+ [84.0, 103.0, 32.0, 0.0, 0.0, 0.0, 0.0, 32.0, 32.0],
942
+ [85.0, 104.0, 8.6, 0.0, 0.0, 0.0, 0.0, 8.6, 8.6],
943
+ [86.0, 105.0, 49.6, 0.0, 0.0, 0.0, 0.0, 49.6, 49.6],
944
+ [87.0, 107.0, 4.6, 0.0, 0.0, 0.0, 0.0, 4.6, 4.6],
945
+ [88.0, 108.0, 112.1, 0.0, 0.0, 0.0, 0.0, 112.1, 112.1],
946
+ [89.0, 109.0, 30.7, 0.0, 0.0, 0.0, 0.0, 30.7, 30.7],
947
+ [90.0, 110.0, 63.0, 0.0, 0.0, 0.0, 0.0, 63.0, 63.0],
948
+ [91.0, 112.0, 19.6, 0.0, 0.0, 0.0, 0.0, 19.6, 19.6],
949
+ [92.0, 113.0, 26.2, 0.0, 0.0, 0.0, 0.0, 26.2, 26.2],
950
+ [93.0, 114.0, 18.2, 0.0, 0.0, 0.0, 0.0, 18.2, 18.2],
951
+ [94.0, 115.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
952
+ [95.0, 116.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
953
+ [96.0, 117.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
954
+ [97.0, 118.0, 14.1, 650.0, 0.0, 0.0, 0.0, 14.1, 14.1],
955
+ [98.0, 119.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
956
+ [99.0, 120.0, 777.0, 215.0, 0.0, 0.0, 0.0, 777.0, 777.0],
957
+ [100.0, 121.0, 535.0, 55.0, 0.0, 0.0, 0.0, 535.0, 535.0],
958
+ [101.0, 122.0, 229.1, 11.8, 0.0, 0.0, 0.0, 229.1, 229.1],
959
+ [102.0, 123.0, 78.0, 1.4, 0.0, 0.0, 0.0, 78.0, 78.0],
960
+ [103.0, 124.0, 276.4, 59.3, 0.0, 0.0, 0.0, 276.4, 276.4],
961
+ [104.0, 125.0, 514.8, 82.7, 0.0, 0.0, 0.0, 514.8, 514.8],
962
+ [105.0, 126.0, 57.9, 5.1, 0.0, 0.0, 0.0, 57.9, 57.9],
963
+ [106.0, 127.0, 380.8, 37.0, 0.0, 0.0, 0.0, 380.8, 380.8],
964
+ [107.0, 128.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
965
+ [108.0, 129.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
966
+ [109.0, 130.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
967
+ [110.0, 131.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
968
+ [111.0, 132.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
969
+ [112.0, 133.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
970
+ [113.0, 134.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
971
+ [114.0, 135.0, 169.2, 41.6, 0.0, 0.0, 0.0, 169.2, 169.2],
972
+ [115.0, 136.0, 55.2, 18.2, 0.0, 0.0, 0.0, 55.2, 55.2],
973
+ [116.0, 137.0, 273.6, 99.8, 0.0, 0.0, 0.0, 273.6, 273.6],
974
+ [117.0, 138.0, 1019.2, 135.2, 0.0, 0.0, 0.0, 1019.2, 1019.2],
975
+ [118.0, 139.0, 595.0, 83.3, 0.0, 0.0, 0.0, 595.0, 595.0],
976
+ [119.0, 140.0, 387.7, 114.7, 0.0, 0.0, 0.0, 387.7, 387.7],
977
+ [120.0, 141.0, 145.0, 58.0, 0.0, 0.0, 0.0, 145.0, 145.0],
978
+ [121.0, 142.0, 56.5, 24.5, 0.0, 0.0, 0.0, 56.5, 56.5],
979
+ [122.0, 143.0, 89.5, 35.5, 0.0, 0.0, 0.0, 89.5, 89.5],
980
+ [123.0, 144.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
981
+ [124.0, 145.0, 24.0, 14.0, 0.0, 0.0, 0.0, 24.0, 24.0],
982
+ [125.0, 146.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
983
+ [126.0, 147.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
984
+ [127.0, 148.0, 63.0, 25.0, 0.0, 0.0, 0.0, 63.0, 63.0],
985
+ [128.0, 149.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
986
+ [129.0, 150.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
987
+ [130.0, 151.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
988
+ [131.0, 152.0, 17.0, 9.0, 0.0, 0.0, 0.0, 17.0, 17.0],
989
+ [132.0, 153.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
990
+ [133.0, 154.0, 70.0, 5.0, 0.0, 0.0, 0.0, 70.0, 70.0],
991
+ [134.0, 155.0, 200.0, 50.0, 0.0, 0.0, 0.0, 200.0, 200.0],
992
+ [135.0, 156.0, 75.0, 50.0, 0.0, 0.0, 0.0, 75.0, 75.0],
993
+ [136.0, 157.0, 123.5, -24.3, 0.0, 0.0, 0.0, 123.5, 123.5],
994
+ [137.0, 158.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
995
+ [138.0, 159.0, 33.0, 16.5, 0.0, 0.0, 0.0, 33.0, 33.0],
996
+ [139.0, 160.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
997
+ [140.0, 161.0, 35.0, 15.0, 0.0, 0.0, 0.0, 35.0, 35.0],
998
+ [141.0, 162.0, 85.0, 24.0, 0.0, 0.0, 0.0, 85.0, 85.0],
999
+ [142.0, 163.0, 0.0, 0.4, 0.0, 0.0, 0.0, 0.0, 0.0],
1000
+ [143.0, 164.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1001
+ [144.0, 165.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1002
+ [145.0, 166.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1003
+ [146.0, 167.0, 299.9, 95.7, 0.0, 0.0, 0.0, 299.9, 299.9],
1004
+ [147.0, 168.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1005
+ [148.0, 169.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1006
+ [149.0, 170.0, 481.8, 205.0, 0.0, 0.0, 0.0, 481.8, 481.8],
1007
+ [150.0, 171.0, 763.6, 291.1, 0.0, 0.0, 0.0, 763.6, 763.6],
1008
+ [151.0, 172.0, 26.5, 0.0, 0.0, 0.0, 0.0, 26.5, 26.5],
1009
+ [152.0, 173.0, 163.5, 43.0, 0.0, 0.0, 0.0, 163.5, 163.5],
1010
+ [153.0, 174.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1011
+ [154.0, 175.0, 176.0, 83.0, 0.0, 0.0, 0.0, 176.0, 176.0],
1012
+ [155.0, 176.0, 5.0, 4.0, 0.0, 0.0, 0.0, 5.0, 5.0],
1013
+ [156.0, 177.0, 28.0, 12.0, 0.0, 0.0, 0.0, 28.0, 28.0],
1014
+ [157.0, 178.0, 427.4, 173.6, 0.0, 0.0, 0.0, 427.4, 427.4],
1015
+ [158.0, 179.0, 74.0, 29.0, 0.0, 0.0, 0.0, 74.0, 74.0],
1016
+ [159.0, 180.0, 69.5, 49.3, 0.0, 0.0, 0.0, 69.5, 69.5],
1017
+ [160.0, 181.0, 73.4, 0.0, 0.0, 0.0, 0.0, 73.4, 73.4],
1018
+ [161.0, 182.0, 240.7, 89.0, 0.0, 0.0, 0.0, 240.7, 240.7],
1019
+ [162.0, 183.0, 40.0, 4.0, 0.0, 0.0, 0.0, 40.0, 40.0],
1020
+ [163.0, 184.0, 136.8, 16.6, 0.0, 0.0, 0.0, 136.8, 136.8],
1021
+ [164.0, 185.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1022
+ [165.0, 186.0, 59.8, 24.3, 0.0, 0.0, 0.0, 59.8, 59.8],
1023
+ [166.0, 187.0, 59.8, 24.3, 0.0, 0.0, 0.0, 59.8, 59.8],
1024
+ [167.0, 188.0, 182.6, 43.6, 0.0, 0.0, 0.0, 182.6, 182.6],
1025
+ [168.0, 189.0, 7.0, 2.0, 0.0, 0.0, 0.0, 7.0, 7.0],
1026
+ [169.0, 190.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1027
+ [170.0, 191.0, 489.0, 53.0, 0.0, 0.0, 0.0, 489.0, 489.0],
1028
+ [171.0, 192.0, 800.0, 72.0, 0.0, 0.0, 0.0, 800.0, 800.0],
1029
+ [172.0, 193.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1030
+ [173.0, 194.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1031
+ [174.0, 195.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1032
+ [175.0, 196.0, 10.0, 3.0, 0.0, 0.0, 0.0, 10.0, 10.0],
1033
+ [176.0, 197.0, 43.0, 14.0, 0.0, 0.0, 0.0, 43.0, 43.0],
1034
+ [177.0, 198.0, 64.0, 21.0, 0.0, 0.0, 0.0, 64.0, 64.0],
1035
+ [178.0, 199.0, 35.0, 12.0, 0.0, 0.0, 0.0, 35.0, 35.0],
1036
+ [179.0, 200.0, 27.0, 12.0, 0.0, 0.0, 0.0, 27.0, 27.0],
1037
+ [180.0, 201.0, 41.0, 14.0, 0.0, 0.0, 0.0, 41.0, 41.0],
1038
+ [181.0, 202.0, 38.0, 13.0, 0.0, 0.0, 0.0, 38.0, 38.0],
1039
+ [182.0, 203.0, 42.0, 14.0, 0.0, 0.0, 0.0, 42.0, 42.0],
1040
+ [183.0, 204.0, 72.0, 24.0, 0.0, 0.0, 0.0, 72.0, 72.0],
1041
+ [184.0, 205.0, 0.0, -5.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1042
+ [185.0, 206.0, 12.0, 2.0, 0.0, 0.0, 0.0, 12.0, 12.0],
1043
+ [186.0, 207.0, -21.0, -14.2, 0.0, 0.0, 0.0, -21.0, -21.0],
1044
+ [187.0, 208.0, 7.0, 2.0, 0.0, 0.0, 0.0, 7.0, 7.0],
1045
+ [188.0, 209.0, 38.0, 13.0, 0.0, 0.0, 0.0, 38.0, 38.0],
1046
+ [189.0, 210.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1047
+ [190.0, 211.0, 96.0, 7.0, 0.0, 0.0, 0.0, 96.0, 96.0],
1048
+ [191.0, 212.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1049
+ [192.0, 213.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1050
+ [193.0, 214.0, 22.0, 16.0, 0.0, 0.0, 0.0, 22.0, 22.0],
1051
+ [194.0, 215.0, 47.0, 26.0, 0.0, 0.0, 0.0, 47.0, 47.0],
1052
+ [195.0, 216.0, 176.0, 105.0, 0.0, 0.0, 0.0, 176.0, 176.0],
1053
+ [196.0, 217.0, 100.0, 75.0, 0.0, 0.0, 0.0, 100.0, 100.0],
1054
+ [197.0, 218.0, 131.0, 96.0, 0.0, 0.0, 0.0, 131.0, 131.0],
1055
+ [198.0, 219.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1056
+ [199.0, 220.0, 285.0, 100.0, 0.0, 0.0, 0.0, 285.0, 285.0],
1057
+ [200.0, 221.0, 171.0, 70.0, 0.0, 0.0, 0.0, 171.0, 171.0],
1058
+ [201.0, 222.0, 328.0, 188.0, 0.0, 0.0, 0.0, 328.0, 328.0],
1059
+ [202.0, 223.0, 428.0, 232.0, 0.0, 0.0, 0.0, 428.0, 428.0],
1060
+ [203.0, 224.0, 173.0, 99.0, 0.0, 0.0, 0.0, 173.0, 173.0],
1061
+ [204.0, 225.0, 410.0, 40.0, 0.0, 0.0, 0.0, 410.0, 410.0],
1062
+ [205.0, 226.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1063
+ [206.0, 227.0, 538.0, 369.0, 0.0, 0.0, 0.0, 538.0, 538.0],
1064
+ [207.0, 228.0, 223.0, 148.0, 0.0, 0.0, 0.0, 223.0, 223.0],
1065
+ [208.0, 229.0, 96.0, 46.0, 0.0, 0.0, 0.0, 96.0, 96.0],
1066
+ [209.0, 230.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1067
+ [210.0, 231.0, 159.0, 107.0, 0.0, 0.0, 0.0, 159.0, 159.0],
1068
+ [211.0, 232.0, 448.0, 143.0, 0.0, 0.0, 0.0, 448.0, 448.0],
1069
+ [212.0, 233.0, 404.0, 212.0, 0.0, 0.0, 0.0, 404.0, 404.0],
1070
+ [213.0, 234.0, 572.0, 244.0, 0.0, 0.0, 0.0, 572.0, 572.0],
1071
+ [214.0, 235.0, 269.0, 157.0, 0.0, 0.0, 0.0, 269.0, 269.0],
1072
+ [215.0, 236.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1073
+ [216.0, 237.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1074
+ [217.0, 238.0, 255.0, 149.0, 0.0, 0.0, 0.0, 255.0, 255.0],
1075
+ [218.0, 239.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1076
+ [219.0, 240.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1077
+ [220.0, 241.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1078
+ [221.0, 242.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1079
+ [222.0, 243.0, 8.0, 3.0, 0.0, 0.0, 0.0, 8.0, 8.0],
1080
+ [223.0, 244.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1081
+ [224.0, 245.0, 61.0, 30.0, 0.0, 0.0, 0.0, 61.0, 61.0],
1082
+ [225.0, 246.0, 77.0, 33.0, 0.0, 0.0, 0.0, 77.0, 77.0],
1083
+ [226.0, 247.0, 61.0, 30.0, 0.0, 0.0, 0.0, 61.0, 61.0],
1084
+ [227.0, 248.0, 29.0, 14.0, 0.0, 0.0, 0.0, 29.0, 29.0],
1085
+ [228.0, 249.0, 29.0, 14.0, 0.0, 0.0, 0.0, 29.0, 29.0],
1086
+ [229.0, 250.0, -23.0, -17.0, 0.0, 0.0, 0.0, -23.0, -23.0],
1087
+ [230.0, 281.0, -33.1, -29.4, 0.0, 0.0, 0.0, -33.1, -33.1],
1088
+ [231.0, 319.0, 115.8, -24.0, 0.0, 0.0, 0.0, 115.8, 115.8],
1089
+ [232.0, 320.0, 2.4, -12.6, 0.0, 0.0, 0.0, 2.4, 2.4],
1090
+ [233.0, 322.0, 2.4, -3.9, 0.0, 0.0, 0.0, 2.4, 2.4],
1091
+ [234.0, 323.0, -14.9, 26.5, 0.0, 0.0, 0.0, -14.9, -14.9],
1092
+ [235.0, 324.0, 24.7, -1.2, 0.0, 0.0, 0.0, 24.7, 24.7],
1093
+ [236.0, 526.0, 145.3, -34.9, 0.0, 0.0, 0.0, 145.3, 145.3],
1094
+ [237.0, 528.0, 28.1, -20.5, 0.0, 0.0, 0.0, 28.1, 28.1],
1095
+ [238.0, 531.0, 14.0, 2.5, 0.0, 0.0, 0.0, 14.0, 14.0],
1096
+ [239.0, 552.0, -11.1, -1.4, 0.0, 0.0, 0.0, -11.1, -11.1],
1097
+ [240.0, 562.0, 50.5, 17.4, 0.0, 0.0, 0.0, 50.5, 50.5],
1098
+ [241.0, 609.0, 29.6, 0.6, 0.0, 0.0, 0.0, 29.6, 29.6],
1099
+ [242.0, 664.0, -113.7, 76.7, 0.0, 0.0, 0.0, -113.7, -113.7],
1100
+ [243.0, 1190.0, 100.31, 29.17, 0.0, 0.0, 0.0, 100.31, 100.31],
1101
+ [244.0, 1200.0, -100.0, 34.17, 0.0, 0.0, 0.0, -100.0, -100.0],
1102
+ [245.0, 1201.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1103
+ [246.0, 2040.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1104
+ [247.0, 7001.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1105
+ [248.0, 7002.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1106
+ [249.0, 7003.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1107
+ [250.0, 7011.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1108
+ [251.0, 7012.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1109
+ [252.0, 7017.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1110
+ [253.0, 7023.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1111
+ [254.0, 7024.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1112
+ [255.0, 7039.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1113
+ [256.0, 7044.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1114
+ [257.0, 7049.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1115
+ [258.0, 7055.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1116
+ [259.0, 7057.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1117
+ [260.0, 7061.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1118
+ [261.0, 7062.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1119
+ [262.0, 7071.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1120
+ [263.0, 7130.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1121
+ [264.0, 7139.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1122
+ [265.0, 7166.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1123
+ [266.0, 9001.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1124
+ [267.0, 9002.0, 4.2, 0.0, 0.0, 0.0, 0.0, 4.2, 4.2],
1125
+ [268.0, 9003.0, 2.71, 0.94, 0.0, 0.0, 0.0, 2.71, 2.71],
1126
+ [269.0, 9004.0, 0.86, 0.28, 0.0, 0.0, 0.0, 0.86, 0.86],
1127
+ [270.0, 9005.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1128
+ [271.0, 9006.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1129
+ [272.0, 9007.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1130
+ [273.0, 9012.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1131
+ [274.0, 9021.0, 4.75, 1.56, 0.0, 0.0, 0.0, 4.75, 4.75],
1132
+ [275.0, 9022.0, 1.53, 0.53, 0.0, 0.0, 0.0, 1.53, 1.53],
1133
+ [276.0, 9023.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1134
+ [277.0, 9024.0, 1.35, 0.47, 0.0, 0.0, 0.0, 1.35, 1.35],
1135
+ [278.0, 9025.0, 0.45, 0.16, 0.0, 0.0, 0.0, 0.45, 0.45],
1136
+ [279.0, 9026.0, 0.45, 0.16, 0.0, 0.0, 0.0, 0.45, 0.45],
1137
+ [280.0, 9031.0, 1.84, 0.64, 0.0, 0.0, 0.0, 1.84, 1.84],
1138
+ [281.0, 9032.0, 1.39, 0.48, 0.0, 0.0, 0.0, 1.39, 1.39],
1139
+ [282.0, 9033.0, 1.89, 0.65, 0.0, 0.0, 0.0, 1.89, 1.89],
1140
+ [283.0, 9034.0, 1.55, 0.54, 0.0, 0.0, 0.0, 1.55, 1.55],
1141
+ [284.0, 9035.0, 1.66, 0.58, 0.0, 0.0, 0.0, 1.66, 1.66],
1142
+ [285.0, 9036.0, 3.03, 1.0, 0.0, 0.0, 0.0, 3.03, 3.03],
1143
+ [286.0, 9037.0, 1.86, 0.64, 0.0, 0.0, 0.0, 1.86, 1.86],
1144
+ [287.0, 9038.0, 2.58, 0.89, 0.0, 0.0, 0.0, 2.58, 2.58],
1145
+ [288.0, 9041.0, 1.01, 0.35, 0.0, 0.0, 0.0, 1.01, 1.01],
1146
+ [289.0, 9042.0, 0.81, 0.28, 0.0, 0.0, 0.0, 0.81, 0.81],
1147
+ [290.0, 9043.0, 1.6, 0.52, 0.0, 0.0, 0.0, 1.6, 1.6],
1148
+ [291.0, 9044.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1149
+ [292.0, 9051.0, 35.81, 0.0, 0.0, 0.0, 0.0, 35.81, 35.81],
1150
+ [293.0, 9052.0, 30.0, 23.0, 0.0, 0.0, 0.0, 30.0, 30.0],
1151
+ [294.0, 9053.0, 26.48, 0.0, 0.0, 0.0, 0.0, 26.48, 26.48],
1152
+ [295.0, 9054.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1153
+ [296.0, 9055.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
1154
+ [297.0, 9071.0, 1.02, 0.35, 0.0, 0.0, 0.0, 1.02, 1.02],
1155
+ [298.0, 9072.0, 1.02, 0.35, 0.0, 0.0, 0.0, 1.02, 1.02],
1156
+ [299.0, 9121.0, 3.8, 1.25, 0.0, 0.0, 0.0, 3.8, 3.8],
1157
+ [300.0, 9533.0, 1.19, 0.41, 0.0, 0.0, 0.0, 1.19, 1.19]])
1158
+
1159
+ self.real_params = True
1160
+ super().__init__(*args, **kwargs)
powergrid_case/transmission/Case5.py ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from powerzoo.case.CaseBase import ClearCase, DataFrame
2
+
3
+
4
+ class Case5(ClearCase):
5
+ GRID_TYPE = "transmission"
6
+ BUS_COUNT = 5
7
+ VOLTAGE_LEVEL = "HV"
8
+ SOURCE = "MATPOWER"
9
+ DESCRIPTION = "IEEE 5-bus test system"
10
+
11
+ def __init__(self, *args, **kwargs):
12
+ # type: 1=PQ (load), 2=PV (gen), 3=Ref (θ=0 in DCOPF)
13
+ # Pd/Qd: nominal load at each bus (MW / MVAr)
14
+ self.nodes = DataFrame(
15
+ ['id', 'type', 'Pd', 'Qd', 'x', 'y'],
16
+ [[1.0, 3, 0.0, 0.0, 0, 0], # Reference bus (2 gens)
17
+ [2.0, 1, 300.0, 98.6, 3, 0], # Load bus
18
+ [3.0, 2, 300.0, 98.6, 4.5, 1], # Gen bus
19
+ [4.0, 2, 400.0, 131.5, 2, 2], # Gen bus
20
+ [5.0, 2, 0.0, 0.0, 0, 2]]) # Gen bus
21
+
22
+ self.units = DataFrame(
23
+ ['id', 'bus_id', 'mc_a', 'mc_b', 'mc_c', 'p_max', 'p_min'],
24
+ [[1.0, 1.0, 0.0, 0.0, 14.0, 40.0, 5.0],
25
+ [2.0, 1.0, 0.0, 0.0, 15.0, 170.0, 10.0],
26
+ [3.0, 3.0, 0.0, 0.0, 30.0, 520.0, 20.0],
27
+ [4.0, 4.0, 0.0, 0.0, 40.0, 200.0, 10.0],
28
+ [5.0, 5.0, 0.0, 0.0, 10.0, 600.0, 20.0]])
29
+
30
+ self.lines = DataFrame(
31
+ ['id', 'from', 'to', 'x', 'floor', 'cap'],
32
+ [[1.0, 1.0, 2.0, 0.0281, -400.0, 400.0],
33
+ [2.0, 1.0, 4.0, 0.0304, 0.0, 0.0],
34
+ [3.0, 1.0, 5.0, 0.0064, 0.0, 0.0],
35
+ [4.0, 2.0, 3.0, 0.0108, 0.0, 0.0],
36
+ [5.0, 3.0, 4.0, 0.0297, 0.0, 0.0],
37
+ [6.0, 4.0, 5.0, 0.0297, -240.0, 240.0]])
38
+
39
+ self.loads = DataFrame(
40
+ ['id', 'bus_id', 'mc_a', 'mc_b', 'mc_c', 'd_max', 'd_min'],
41
+ [[1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0],
42
+ [2.0, 2.0, 0.0, 0.0, 0.0, 500.0, 0.0],
43
+ [3.0, 3.0, 0.0, 0.0, 0.0, 600.0, 0.0],
44
+ [4.0, 4.0, 0.0, 0.0, 0.0, 400.0, 0.0],
45
+ [5.0, 5.0, 0.0, 0.0, 0.0, 0.0, 0.0]])
46
+
47
+ self.real_params = True
48
+ super().__init__(*args, **kwargs)
49
+
50
+ if __name__ == '__main__':
51
+ c = Case5()
52
+ c.check()
53
+ print(c.get_node_ptdf())