Releases: flixOpt/flixopt
v1.0.11
v1.0.10
Bugfixes:
- Bug when using a Flow with
fixed relative profilein combination with nofixed size.
Others:
- Simplified logic in FlowModel
Full Changelog: v1.0.9...v1.0.10
v1.0.9
Release Notes for v1.0.9
Bug Fixes
- BUGFIX: initial value of consecutive duration is now reliably fixed
- Fixed a bug that always fixed the first timestep of the binary on/off variable when consecutive on/off hours are used. This previously led to an infeasibility if both
consecutive_on_hours_minandconsecutive_off_hours_minwere used. Now, the initial state is only fixed if the previous value is greater than zero.
- Fixed a bug that always fixed the first timestep of the binary on/off variable when consecutive on/off hours are used. This previously led to an infeasibility if both
Others
Full Changelog: v1.0.8...v1.0.9
v1.0.8
Bugfixes and decreased json file size
What's changed
- Bugfix in OnOffModel in special cases. A threshold is ensured in the OnOffModel in all cases (even with relative minimum is 0 or minimum_size is 0 by @FBumann
- Bugfix in class SourceAndSink: prevent_simultanious_flows now works as expected by @FBumann
- Remove indents from json files depending on the length of the time_series (currently 50) by @FBumann in #155
Full Changelog: v1.0.7...v1.0.8
v1.0.7
v1.0.6
v1.0.5
v1.0.4
v1.0.4
Backwards incompatible changes
Parameter can_be_off of class Flow renamed to on_off_parameters.
Fixes: Information about OnOffParameters missing in data.json and .infos()
Improve representation of arrays in print()
- Integrated "normed center of mass" in str_representation of array. Dadurch werden [0, 0, 1] von [1, 0, 0] und [0, 1, 0] unterscheidbar.
lengthgekürzt auflen
Arrays in Elements are now printed as:
{'fixed_relative_profile': 'Array (min=0.00, max=110.00, mean=46.67, median=20.00, std=41.10, len=108, center=0.50)'}Full Changelog: v1.0.3...v1.0.4
Bugfix in printing
Bugfix the printing of Components. Information about inputs and outputs was only the label of the Flows
Full Changelog: v1.0.2...v1.0.3
flixOpt 1.0.2
Improve Testing Infrastructure and Code quality
Linting and formating
Using ruff, the whole codebase was linted and formatted running ruff check . and ruff format
Linting was also added to CI-CD. This ensures code quality throughout the project.
Following the Linting rules is easy by running ruff check . --fix before every push.
The rules of listing and formatting are specified in pyproject.toml. ruff was added to the dev-dependencies
Tests
New functional_tests.py with a minimal but effective Test structure was created.
Consecutive hours
Considering previous_flow_rate when calculating the onsecutive_on_hours / off hours.
This increases the capabilities for short therm optimization, this would be a nice addition.
Especially for SegmentedCalculation, this can significantly impact results.
Improving the internal data structures
In order to make all elements in a FLowSystem more easily accessible, they are now stored in Dictionaries instead of lists.
Improved exporting
The Representations as dict and str are improved and the logic was simplified.
For the new improved printing, the package rich is used.