Repository navigation
Conversation
|
|
||
| x = time.time() | ||
|
|
||
| adjust_e_initial_emob(etrago.network) |
Contributor
There was a problem hiding this comment.
This function is called in that many functions, is it really needed like this?
Contributor
Author
There was a problem hiding this comment.
Transfered into adjust_network() now
| ) | ||
|
|
||
|
|
||
| def adjust_e_initial_emob(network, snapshot=None): |
Contributor
There was a problem hiding this comment.
The checks with black are failing in this file. Could you run black again?
Contributor
Author
There was a problem hiding this comment.
just applied for the files i changed
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