Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contingency #1837

Merged
merged 59 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from 57 commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
ea5caf3
WIP: contingency module
rbolgaryn Nov 11, 2022
42e3bde
WIP: contingency module
rbolgaryn Nov 13, 2022
d5c0718
added a tutorial and test for timeseries
rbolgaryn Nov 16, 2022
908a190
Merge remote-tracking branch 'en2IEE/develop' into contingency
rbolgaryn Nov 16, 2022
44f7500
added doc
rbolgaryn Nov 16, 2022
fec2055
more context in tutorial
rbolgaryn Nov 16, 2022
4bdda9d
clarified text in tutorial
rbolgaryn Nov 16, 2022
687a22c
added contingency calculation with lightsim2grid
rbolgaryn Nov 16, 2022
07e78bb
added contingency calculation with lightsim2grid -> for grids with tr…
rbolgaryn Nov 16, 2022
cbc652e
do not use min_loading_percent
rbolgaryn Nov 16, 2022
b9438d7
set solver correctly
rbolgaryn Nov 17, 2022
74abfd1
works
rbolgaryn Nov 17, 2022
8140c25
added example in the tutorial and tests for run_contingency_ls2g
rbolgaryn Nov 17, 2022
58ffda5
SHUFFLE INDICES
rbolgaryn Nov 17, 2022
673f74e
tolerance
rbolgaryn Nov 17, 2022
005c063
fix for distributed_slack
rbolgaryn Nov 18, 2022
be0281d
WIP: add flag if N-1 leads to overloading
rbolgaryn Nov 22, 2022
e4c786f
"causes_overloading" works!
rbolgaryn Nov 22, 2022
8b480a6
"causes_overloading" also with dist. slack
rbolgaryn Nov 25, 2022
d5502b0
Merge remote-tracking branch 'en2IEE/develop' into contingency
rbolgaryn Nov 25, 2022
e331b9e
Merge remote-tracking branch 'en2IEE/develop' into contingency
rbolgaryn Dec 6, 2022
58b70a0
consider ideal phase shifters
rbolgaryn Dec 6, 2022
998571e
Merge remote-tracking branch 'en2IEE/develop' into contingency
rbolgaryn Jan 11, 2023
3ca8abe
add cause_index and cause_element
rbolgaryn Jan 19, 2023
f048b15
WIP: add cause_index and cause_element
rbolgaryn Jan 20, 2023
5409b4e
added cause_element and cause_index to run_contingency
rbolgaryn Jan 23, 2023
c41fa1d
added the cause elements to the tutorial
rbolgaryn Jan 23, 2023
f752ddf
Merge remote-tracking branch 'en2IEE/develop' into contingency
rbolgaryn Jan 23, 2023
f486338
specify toolbox function
SteffenMeinecke Jan 24, 2023
95e774c
Merge branch 'contingency' of https://github.com/rbolgaryn/pandapower…
SteffenMeinecke Jan 24, 2023
8ccd888
addressed comments
rbolgaryn Jan 25, 2023
b0eda43
Merge remote-tracking branch 'en2IEE/develop' into contingency
rbolgaryn Jan 25, 2023
361a34d
Merge remote-tracking branch 'roman/contingency' into contingency
rbolgaryn Jan 25, 2023
a3e31dc
failing tests
rbolgaryn Jan 25, 2023
ad52cc7
failing tests
rbolgaryn Jan 25, 2023
45654c9
Merge remote-tracking branch 'en2IEE/develop' into contingency
rbolgaryn Feb 1, 2023
9eda256
fix indexing for cause element index
rbolgaryn Feb 1, 2023
23a7662
add congestion MVA as a result for N-1
rbolgaryn Feb 2, 2023
8b1380e
add congestion MVA as a result for N-1
rbolgaryn Feb 2, 2023
009b71c
Merge remote-tracking branch 'en2IEE/develop' into contingency
rbolgaryn Feb 2, 2023
2a6b8d5
Merge branch 'develop' into contingency
rbolgaryn Feb 15, 2023
835833d
Merge branch 'develop' into contingency
SteffenMeinecke Feb 15, 2023
e6e43b1
Merge branch 'develop' into contingency
SteffenMeinecke Mar 7, 2023
69ae819
Merge remote-tracking branch 'en2IEE/develop' into contingency
rbolgaryn Mar 22, 2023
0a29be0
Merge branch 'develop' into contingency
jwiemer112 Apr 5, 2023
6975379
Merge branch 'develop' into contingency
jwiemer112 Apr 5, 2023
210ae0d
Merge branch 'develop' into contingency
jwiemer112 Apr 6, 2023
58f2d3b
Merge branch 'develop' into contingency
rbolgaryn Oct 5, 2023
9700f0f
Merge remote-tracking branch 'roman/contingency' into contingency
rbolgaryn Oct 5, 2023
5e91dae
doc title overhang fix
rbolgaryn Oct 5, 2023
f8f8773
sphinx error fix
rbolgaryn Oct 5, 2023
719dad1
sphinx error fix: try again
rbolgaryn Oct 5, 2023
5d3368f
sphinx error fix: try again again
rbolgaryn Oct 5, 2023
4c621b0
sphinx error fix: try with different format
rbolgaryn Oct 5, 2023
a09bf16
sphinx error fix: change the docstring format
rbolgaryn Oct 5, 2023
ffbe2ab
lightsim2grid required for tutorials
rbolgaryn Oct 5, 2023
5515026
lightsim2grid required for tutorials
rbolgaryn Oct 5, 2023
0923925
license year
rbolgaryn Oct 5, 2023
c6a732d
improve line length issue
rbolgaryn Oct 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/github_test_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,11 @@ jobs:
python -m pip install --upgrade pip
python -m pip install pytest nbmake pytest-xdist igraph numba seaborn
./.install_julia.sh 1.8
pip install julia
python -m pip install julia
python ./.install_pycall.py
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install .["all"]
python -m pip install .["all"]
python -m pip install lightsim2grid
- name: List all installed packages
run: |
pip list
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Change Log
- [CHANGED] Compatibility with pandas 1.5, dropped "six" dependency
- [CHANGED] from_ppc(): revision of indexing and naming of elements
- [CHANGED] Complete revision of validate_from_ppc()
- [ADDED] helper functions for contingency calculation
- [CHANGED] Improve defaults, add docstrings and rename parameters of plot_voltage_profile() and plot_loading()
- [CHANGED] merge_nets(): revised for groups and new behavior regarding indexing; reindex_elements(): revised for groups, don't overwrite column "index" and feature parameter lookup
- [FIXED] Bug with user_pf_options: _init_runpp_options in auxiliary.py ignored user_pf_options when performing sanity checks
Expand Down
17 changes: 17 additions & 0 deletions doc/contingency.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#####################
Contingency analysis
#####################

We can define N-1 cases to be analysed as contingencies. This means that indices of net.line, net.trafo, net.trafo3w can be defined as contingencies, which are switched off one at a time. The power system is analyzed with power flow calculations, and the min/max values among all the N-1 cases are obtained for relevant variables.

A tutorial that introduces this feature with an example is available at `Contingency analysis <https://github.com/e2nIEE/pandapower/tree/develop/tutorials/contingency_analysis.ipynb>`_

.. autofunction:: pandapower.contingency.run_contingency

.. autofunction:: pandapower.contingency.run_contingency_ls2g

.. autofunction:: pandapower.contingency.get_element_limits

.. autofunction:: pandapower.contingency.check_elements_within_limits

.. autofunction:: pandapower.contingency.report_contingency_results
1 change: 1 addition & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Operation at the Fraunhofer Institute for Energy Economics and Energy System Tec
elements
std_types
powerflow
contingency
opf
shortcircuit
estimation
Expand Down
1 change: 1 addition & 0 deletions pandapower/contingency/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from pandapower.contingency.contingency import *
489 changes: 489 additions & 0 deletions pandapower/contingency/contingency.py

Large diffs are not rendered by default.

390 changes: 390 additions & 0 deletions pandapower/test/contingency/test_contingency.py

Large diffs are not rendered by default.

454 changes: 454 additions & 0 deletions tutorials/contingency_analysis.ipynb

Large diffs are not rendered by default.

Loading