Skip to content

Feature: enable modular expansion in stochastic problems#1500

Merged
lkstrp merged 7 commits intomasterfrom
feat-stochmod
Dec 22, 2025
Merged

Feature: enable modular expansion in stochastic problems#1500
lkstrp merged 7 commits intomasterfrom
feat-stochmod

Conversation

@Irieo
Copy link
Copy Markdown
Contributor

@Irieo Irieo commented Dec 19, 2025

Changes proposed in this Pull Request

Make sure PyPSA features fully functional modular expansion with stochastic networks.
Add related tests.
Also handle it within consistency_check (set as scenario invariant).

Also closes #1497

Comment

I leave a few line comments wrt possible use of a new property helper c.modulars (this would make sure code for nominal and modular variables/constraints is similar). That is, however, not strictly necessary: there's little code needed for this PR, so it is likely that gains do not justify setting new property helper.

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.

@Irieo Irieo requested a review from lkstrp December 19, 2025 16:16
@lkstrp lkstrp enabled auto-merge (squash) December 22, 2025 07:54
@lkstrp lkstrp merged commit 1d23a8c into master Dec 22, 2025
20 checks passed
@lkstrp lkstrp deleted the feat-stochmod branch December 22, 2025 10:05
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.

Bug in stochastic optimization that uses the modularity feature (e.g., p_nom_mod)

3 participants