-
Notifications
You must be signed in to change notification settings - Fork 616
fix: snapshot selection for operational in multi period optimization#1437
fix: snapshot selection for operational in multi period optimization#1437lkstrp merged 4 commits intomasterPyPSA/PyPSA:masterfrom fix/operataional-limit-multiinvestPyPSA/PyPSA:fix/operataional-limit-multiinvestCopy head branch name to clipboard
Conversation
|
@FabianHofmann I made a small problem instance trying to understand/recreate the bug and realised that (i) bug was indeed there and (ii) the fix was incomplete because period weightings had the same problem (mismatch between global and investment period index). So I append the fix and add unit test for that. |
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.
See my comment in PR discussion.
awesome! thanks @Irieo ! |
Merged changes from PyPSA v1.0.3 and v1.0.4 including: - Fix busmap clustering for multilinks (PyPSA#1441) - Fix handling of inactive storage components (PyPSA#1442) - Fix masking of nan constraints in kvl (PyPSA#1438) - Fix snapshot selection for operational in multi period (PyPSA#1437) - Fix ramping-/rolling horizon logic (PyPSA#1428) - CI improvements and dependency updates Resolved conflicts in pypsa/optimization/constraints.py: - Used upstream's c.active_assets approach (cleaner, already handles MultiIndex) - Preserved our stochastic Store constraint fix (transpose for dimension alignment)
Fix the wrong selection of last snapshot per period in case of investment period selection on operational limit constraint
Changes proposed in this Pull Request
Checklist
docs.docs/release-notes.mdof the upcoming release is included.