-
Notifications
You must be signed in to change notification settings - Fork 437
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
Fix links ramp up start limit #691
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #691 +/- ##
==========================================
- Coverage 78.35% 78.16% -0.19%
==========================================
Files 26 26
Lines 6758 6760 +2
Branches 1466 1466
==========================================
- Hits 5295 5284 -11
- Misses 1151 1163 +12
- Partials 312 313 +1
☔ View full report in Codecov by Sentry. |
pypsa/optimization/constraints.py
Outdated
limit_shut = assets.eval("ramp_limit_shut_down * p_nom").to_xarray() | ||
limit_down = assets.eval("ramp_limit_down * p_nom").to_xarray() | ||
limit_down = assets.eval("ramp_limit_down * p_nom").fillna(1.0).to_xarray() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering whether the fill with 1 makes sense here, since this is in units of MW.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no it has to be filled with then "p_nom". Thanks for pointing it out. I already corrected it but haven't pushed it yet. I am currently having troubles since the problem seems to be unbounded with the new formulation of the constraint
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Hello, does present changes on this branch solve the ramp up limits problem ? |
Closes #592.
Changes proposed in this Pull Request
This PR should set the expected behaviour of
ramp_limit_start_up
andramp_limit_shut_down
ToDos:
ramp_limit_start_up
is defined and notramp_limit_up
Checklist
doc
.environment.yaml
,environment_docs.yaml
andsetup.py
(if applicable).doc/release_notes.rst
of the upcoming release is included.