-
Notifications
You must be signed in to change notification settings - Fork 9
Feature/sums over all periods #475
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
30f1725
Add weight_of_last_period to flowsystem
FBumann a537be5
Add weights per effect and move normalization
FBumann cc7e2ac
Weighted Sum Constraints Over All Periods have been fully implement…
FBumann 3f932af
Fixed a critical bug in /Users/felix/PycharmProjects/flixopt_719231/…
FBumann a690060
Successfully refactored 11 parameter names across the codebase using…
FBumann 9945a7c
Cahneglog
FBumann ac03159
Fix CHANGELOG.md
FBumann 7f351ec
1. Critical Bug Fix - structure.py:219-229
FBumann f18343b
Merge remote-tracking branch 'origin/main' into feature/sums-over-all…
FBumann 4675da6
1. Critical Bug Fix - structure.py:219-229
FBumann 8d048d9
Added single-period validation in _create_periods_with_extra():
FBumann f6c160a
Added dimension validation for flow_hours constraints
FBumann 3066234
Fixed the DataArray boolean context
FBumann debef08
Remove intermediate parameters that need no deprecation
FBumann 97821b8
Remove intermediate parameters that need no deprecation
FBumann fec2f75
Update CHANGELOG.md
FBumann e077330
Fix weighting per period in Flows
FBumann 8e7ac77
Add type hints and fallback for weights = None
FBumann b16c7e3
Imrove weight computation in Effects
FBumann 915b6f1
Improve objectove weight handling
FBumann 8e47551
Add tests
FBumann 3177ca2
Typos
FBumann f306ff2
Add zero-sum guard to objective_weights property to prevent silent Na…
FBumann e0c29e2
Guard over‑periods constraint when no period dimension is present.
FBumann 705503d
Fit fallback weight to dims
FBumann f818b23
Improve weight handling.
FBumann 1b0c1ed
Typos and updates
FBumann 43ccdd4
Update CHANGELOG.md
FBumann bd3f60d
Update tests
FBumann 6d3e58d
Improve handling of scenario weights
FBumann 523365f
Improve docs
FBumann d767fd4
Typos
FBumann a8be0ab
Rename in tests
FBumann 613a323
Fix tests
FBumann 7df6334
Use setter for scenario_weights
FBumann b6abb9d
Revert test changes
FBumann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
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.
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.
🧩 Analysis chain
Docs: rename looks consistent with API (
switch_on_max).Good alignment with the new OnOffParameters naming.
Quick sweep for lingering old names:
🏁 Script executed:
Length of output: 6321
Update parameter names across tests, documentation, and examples for API consistency.
The verification found lingering old parameter names in multiple locations beyond the file in scope:
tests/test_*.py,tests/conftest.py): Still usingon_hours_total_min/max,switch_on_total_max,flow_hours_total_min/maxdocs/user-guide/mathematical-notation/features/OnOffParameters.md): Example code uses old namesexamples/02_Complex/complex_example.py): All parameter names need updatingflixopt/calculation.py:428): Mentions old names in constraint documentationWhile the backward compatibility layer in
flixopt/elements.pyandflixopt/interface.pykeeps these working, the tests and examples should migrate to the new names (on_hours_min/max,switch_on_max,flow_hours_min/max) to serve as proper reference material and ensure consistent migration across the codebase.🤖 Prompt for AI Agents