Repository navigation
e_initial is clipped to e_max/min_pu at the first snapshot of calculation - #883
Merged
Merged
Conversation
Contributor
|
Should I check sth. in particular? I'm just trying to find out what the best way is to review it :) |
…itial_of_e_mob_storages
Contributor
Author
Yes i run a test with 100 snapshots (market optimization 24/12) locally and the e_initial values fits now to the SoC band for all stores in all stages of the optimization. So from my side it would be fine just checking the code if there seems something strange. |
ClaraBuettner
approved these changes
Nov 5, 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.
Clip e_initial of e-mobility stores to their SoC band
Fixes #846
Problem
e_initialof thebattery_storagestores refers to 1 January 00:00, but it was used for every start snapshot and every rolling horizon window. At other snapshots it is often outside the SoC band, which leads to infeasibilities in highly resolved networks or requires (negative) load shedding.Changes
adjust_e_initial_emob()intools/utilities.py: clipse_initialof allbattery_storagestores to[e_min_pu, e_max_pu] * e_nomat the first snapshot of the optimization.battery_storagestores takee_initialfrom the result of the previous window, like the other non-seasonal stores.disaggregate/temporal.py, which only clippede_initialtoe_maxat the first snapshot of the temporal disaggregation. This is now covered by the rolling horizon.Testing
Run with eGon2035, snapshots 240–408, 30 AC clusters, market optimization with rolling horizon (168/120) and grid optimization, linopy:
e_initialis within the SoC band in the pre-market model, the market model and the grid optimization.Not tested with an higher resoluted grid