Skip to content

Releases: flixOpt/flixopt

v1.0.11

10 Mar 14:02
2adcbe5

Choose a tag to compare

What's Changed

  • Make flixOpt work without having the package "tsam" installed. by @FBumann in #175

Full Changelog: v1.0.10...v1.0.11

v1.0.10

07 Mar 08:22
fab9368

Choose a tag to compare

Bugfixes:

  • Bug when using a Flow with fixed relative profile in combination with no fixed size.

Others:

  • Simplified logic in FlowModel

Full Changelog: v1.0.9...v1.0.10

v1.0.9

26 Feb 13:39
424ddb7

Choose a tag to compare

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_min and consecutive_off_hours_min were used. Now, the initial state is only fixed if the previous value is greater than zero.

Others

  • Introduce automatic version setting in pyproject.toml (#166) by @FBumann in #167

Full Changelog: v1.0.8...v1.0.9

v1.0.8

20 Feb 09:36
75ddacb

Choose a tag to compare

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

31 Jan 15:43
c5d7766

Choose a tag to compare

Add json export to FlowSystem

Based on the already existing dumping methods, a new method to write information about Elements and Flow System to .json files.
The Infos are stored in the .yaml file of the results, user "FlowSystem".

v1.0.6

29 Jan 15:14

Choose a tag to compare

Only correcting the version info in pyproject.toml

v1.0.5

29 Jan 15:10
9eac053

Choose a tag to compare

What's Changed

  • structure.py: bugfix in normalized_center_of_mass() by @baumbude in #149
  • removed resolving paths to prevent errors by @FBumann in #150

Full Changelog: v1.0.4...v1.0.5

v1.0.4

23 Jan 12:33
0fa8442

Choose a tag to compare

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.
  • length gekürzt auf len
    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

23 Jan 09:28
7e40016

Choose a tag to compare

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

22 Jan 15:45

Choose a tag to compare

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.