Repository navigation
Conversation
…mponent lacks is absent Every `*_set` parameter is read only under its own presence test, so absent reads it as missing: 0 did. Each global-constraint weight is a factor inside a sum, where absent leaves the summand out instead of adding zero times it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D2S9sN1jLGGMCCwqwVyGD6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D2S9sN1jLGGMCCwqwVyGD6
Documentation build overview
32 files changed ·
|
Contributor
Author
|
Note The following content was generated by AI. Closed as a duplicate of #912, which is also stacked on #894. #912 declares the same 34 parameters Generated by Claude Code |
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.
Note
The following content was generated by AI.
What this changes
In
examples/pypsa.yaml, 34 parameters are declaredmissing: absentinstead of0. These are the 18*_setparameters and the 16 global-constraint weights. Stacked on #894, which makes a value the only other choice.Which parameters, and why the model stays the same
*_setparameters, a given schedule or nominal power, such asGenerator_p_setandStore_e_nom_set.where: Generator_p_set AND …).whereis false at a missing row under both readings. Soabsentbuilds the same rows that0did.*_primary_energy_weight,*_operational_limit_weight,*_volume_weight,*_expansion_cost_weightand*_tech_capacity_weight.sum. Underabsent, a missing weight leaves the summand out, where0added zero times it.examples/pypsa/and the gallery pages are regenerated withtools.pypsa_splitandtools.gallery.Why
Bryn asked in review of #894 whether a
_settable and a global-constraint weight should beabsent. Each one applies only where it has a row, soabsentis what the data means.Verification
Gates on the same tree as
23e715e, where this change was first made on #894's branch and then reverted there (2d7355f):pixi run lintpasses.pixi run testpasses: 3077 passed, 1 skipped.pixi run docs-buildpasses.compile-texwas not run, because the container cannot download the TeX bundle. CI runs it.The uses. A script listed every use of each changed parameter in
examples/pypsa.yaml. All 18*_setuses are under their own presence test. All 16 weights are factors inside asum, or a presence test in an assumption.Not measured. No test in this repository solves a model. The claim that the optimum does not change rests on the reading rules above. specsolve's differential rungs are where it would be measured.
Not done
Line_cycle_weight,Transformer_cycle_weight,Transformer_phase_shift_weight) staymissing: 0. They are factors in the KVL angle sums, the same pattern, but the review did not name them.0 <= limit. This differs only where the limit is negative. Before, that row was infeasible.🤖 Generated with Claude Code
https://claude.ai/code/session_01D2S9sN1jLGGMCCwqwVyGD6