Add alternative grid reinforcement methods (grid separation, switch balancing)#340
Open
batuhansanliii wants to merge 49 commits into
Open
Add alternative grid reinforcement methods (grid separation, switch balancing)#340batuhansanliii wants to merge 49 commits into
batuhansanliii wants to merge 49 commits into
Conversation
line over half the length of the string for MV Grid
test again
- add pseudo coordinates for one graph - add pseudo corrdinates for dash_plot
- added colorbar in draw_plotly by nailend - added function show_dash_plot to show Jupyter dash app
- Raise error when no results are passed to plot results - Add tests for pseudo coordinates and plotting
… into feature/add_subs_at_half_feeder
All structure of reinforce_grid_alternative.py and methods are to be updated
Update: The graph shows the loading after the change of load factor
This reverts commit b0540b1.
This was referenced Jun 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds an alternative grid reinforcement framework that goes beyond the default "add a parallel
line" measure, implementing the additional methods requested in #377 (grid separation, switch
balancing, etc.) and a selection logic that picks a measure per situation.
Problem (see #377)
Default reinforcement can only add parallel lines, which produces unrealistic results (large
numbers of parallel lines) and offers no logic for choosing an appropriate measure per situation.
Solution
edisgo/flex_opt/reinforce_grid_alternative.py:reinforce_line_overloading_alternative(...)— orchestrator that selects a measure viaadd_method(relocate_circuit_breaker,add_station_at_half_length,split_feeder_at_half_length,add_same_type_of_parallel_line).reinforce_lines_voltage_issues_alternative(...).edisgo/flex_opt/reinforce_measures.py:add_station_at_half_length/add_station_at_2_3_length— grid separation (Netzauftrennung)relocate_circuit_breaker— switch balancing (Lastflusssteuerung über Schaltzustände);relocates the open ring circuit breaker to the point of least load/generation difference
between the two half-rings (consolidates the prototype from [Superseded by #340] Optimal relocation of circuit breakers #296).
split_feeder_at_half_length,split_feeder_at_2_3_length,add_same_type_of_parallel_line,add_same_type_parallel_line_voltage_issue.edisgo/flex_opt/costs.py:cost_breakdown, per-cable-type costs,circuit-breaker and transformer costs; updated equipment-parameter CSVs and
config_grid_expansion_default.cfg.tools/plots.pyandnetwork/topology.py.Part of #377. Supersedes #296 (its commit
b9036237is fully contained here).Type of change
_reinforce_station_overloading)Current state / open points before merge
CONFLICTINGwithdevand needs a rebase (dev moved substantially since Nov 2022)."todo: docstring is to be updated").costs.line_expansion_costs/transformer_expansion_costslost theirdefault
Noneargument, and_reinforce_station_overloadingwas renamed to_station_overloading— existing callers need to be checked.
explicit
add_method) is not yet implemented — see acceptance criteria in [FEATURE] Add grid reinforcement methods #377.Checklist:
pre-commithooks