Skip to content

fix: busmap clustering for multilinks#1441

Merged
lkstrp merged 5 commits intoPyPSA:masterfrom
lkstrp:fix-1439
Nov 17, 2025
Merged

fix: busmap clustering for multilinks#1441
lkstrp merged 5 commits intoPyPSA:masterfrom
lkstrp:fix-1439

Conversation

@lkstrp
Copy link
Copy Markdown
Member

@lkstrp lkstrp commented Nov 17, 2025

Closes #1439

Checklist

  • Code changes are sufficiently documented; i.e. new functions contain docstrings and further explanations may be given in docs.
  • Unit tests for new features were added (if applicable).
  • A note for the release notes docs/release-notes.md of the upcoming release is included.
  • I consent to the release of this PR's code under the MIT license.

@lkstrp lkstrp requested a review from fneum November 17, 2025 08:05
Copy link
Copy Markdown
Contributor

@Irieo Irieo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is nothing to add @lkstrp. I tried some edge cases with mixed regular and multi-port links, all works as it should.

@lkstrp lkstrp merged commit 728292e into PyPSA:master Nov 17, 2025
2 of 5 checks passed
@lkstrp lkstrp mentioned this pull request Nov 18, 2025
lkstrp added a commit that referenced this pull request Nov 18, 2025
a-buntjer pushed a commit to a-buntjer/PyPSA that referenced this pull request Nov 27, 2025
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Busmap clustering ignores higher multi-link buses

3 participants