Skip to content

Feature/binary models - #235

Merged
FBumann merged 36 commits into
mainfrom
feature/binary-models
Apr 11, 2025
Merged

Feature/binary models#235
FBumann merged 36 commits into
mainfrom
feature/binary-models

Conversation

@FBumann

Copy link
Copy Markdown
Member

Encapsulate Functionality of OnOffModel into smaller Models

The OnOffModel is split-up into 3 smaller Models:
**StateModel, SwitchStateModel and ConsecutiveStateModel
The OnOffModel now simply uses all of these Models.
This greatly improves both readability and modularity of the classes.
Further, **StateModel, SwitchStateModel and ConsecutiveStateModel are decoupled from OnOffParameters, so they can be used on other contexts as well.
This will become especially relevant with the upcoming scenarios update #212

@FBumann
FBumann requested review from PStange and baumbudeApril 10, 2025 18:43
# Conflicts:
#	flixopt/features.py
#	tests/test_flow.py
#	tests/test_on_hours_computation.py
@FBumann
FBumann marked this pull request as ready for review April 11, 2025 13:31
@FBumann
FBumann merged commit 9ed6656 into mainApr 11, 2025
@FBumann
FBumann deleted the feature/binary-models branch April 11, 2025 14:37
Sign up for freeto 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.

1 participant

@FBumann