Commit 7467d2b
authored
V3.0.0/main (#284)
* Bugfix plot_node_balance_pie()
* Scenarios/fixes (#252)
* BUGFIX missing conversion to TimeSeries
* BUGFIX missing conversion to TimeSeries
* Bugfix node_balance with flow_hours: Negate correctly
* Scenarios/filter (#253)
* Add containts and startswith to filter_solution
* Scenarios/drop suffix (#251)
Drop suffixes in plots and add the option to drop suffixes to sanitize_dataset()
* Scenarios/bar plot (#254)
* Add stacked bar style to plotting methods
* Rename mode to style (line, bar, area, ...)
* Bugfix plotting
* Fix example_calculation_types.py
* Scenarios/fixes (#255)
* Fix indexing issue with only one scenario
* Bugfix Cooling Tower
* Add option for balanced Storage Flows (equalize size of charging and discharging)
* Add option for balanced Storage Flows
* Change error to warning (non-fixed size with piecewise conversion AND fixed_flow_rate with OnOff)
* Bugfix in DataConverter
* BUGFIX: Typo (total_max/total_min in Effect)
* Bugfix in node_balance() (negating did not work when using flow_hours mode
* Scenarios/effects (#256)
* Add methods to track effect shares of components and Flows
* Add option to include flows when retrieving effects
* Add properties and methods to store effect results in a dataset
* Reorder methods
* Rename and improve docs
* Bugfix test class name
* Fix the Network algorithm to calculate the sum of parallel paths, and be independent on nr of nodes and complexity of the network
* Add tests for the newtork chaining and the results of effect shares
* Add methods to check for circular references
* Add test to check for circular references
* Update cycle checker to return the found cycles
* Add checks in results to confirm effects are computed correctly
* BUGFIX: Remove +1 from prior testing
* Add option for grouped bars to plotting.with_plotly() and make lines of stacked bar plots invisible
* Reconstruct FlowSystem in CalculationResults on demand. DEPRECATION in CalculationResults
* ruff check
* Bugfix: save flow_system data, not the flow_system
* Update tests
* Scenarios/datasets results (#257)
* Use dataarray instead of dataset
* Change effects dataset to dataarray and use nan when no share was found
* Add method for flow_rates dataset
* Add methods to get flow_rates and flow_hours as datasets
* Rename the dataarrays to the flow
* Preserve index order
* Improve filter_edges_dataset()
* Simplify _create_flow_rates_dataarray()
* Add dataset for sizes of Flows
* Extend results structure to contain flows AND start/end infos
* Add FlowResults Object
* BUGFIX:Typo in _ElementResults.constraints
* Add flows to results of Nodes
* Simplify dataarray creation and improve FlowResults
* Add nice docstrings
* Improve filtering of flow results
* Improve filtering of flow results. Add attribute of component
* Add big dataarray with all variables but indexed
* Revert "Add big dataarray with all variables but indexed"
This reverts commit 08cd8a1.
* Improve filtering method for coords filter and add error handling for restoring the flow system
* Remove unnecessary methods in results .from_json()
* Ensure consistent coord ordering in Effects dataarray
* Rename get_effects_per_component()
* Make effects_per_component() a dataset instead of a dataarray
* Improve backwards compatability
* ruff check
* ruff check
* Scenarios/deprecation (#258)
* Deprecate .active_timesteps
* Improve logger warning
* Starting release notes
* Bugfix in plausibility_check: Index 0
* Set bargap to 0 in stacked bars
* Ensure the size is always properly indexed in results.
* ruff check
* BUGFIX in extract data, that causes coords in linopy to be incorrect (scalar xarray.DataArrays)
* Improve yaml formatting for model documentation (#259)
* Make the size/capacity a TimeSeries (#260)
* Scenarios/plot network (#262)
* Catch bug in plot_network with 2D arrays
* Add plot_network() to test_io.py
* Update deploy-docs.yaml:
Run on Release publishing instead of creation
and
only run for stable releases (vx.y.z)
* Bugfix DataConverter and add tests (#263)
* Fix doc deployment to not publish on non stable releases
* Remove unused code
* Remove legend placing for better auto placing in plotly
* Fix plotly dependency
* Improve validation when adding new effects
* Moved release notes to CHANGELOG.md
* Try to add to_dataset to Elements
* Remove TimeSeries
* Remove TimeSeries
* Rename conversion method to pattern: to_...
* Move methods to FlowSystem
* Drop nan values across time dimension if present
* Allow lists of values to create DataArray
* Update resolving of FlowSystem
* Simplify TimeSeriesData
* Move TImeSeriesData to Structure and simplyfy to inherrit from xarray.DataArray
* Adjust IO
* Move TimeSeriesData back to core.py and fix Conversion
* Adjust IO to account for attrs of DataArrays in a Dataset
* Rename transforming and connection methods in FlowSystem
* Compacted IO methods
* Remove infos()
* remove from_dict() and to_dict()
* Update __str__ of Interface
* Improve str and repr
* Improve str and repr
* Add docstring
* Unify IO stuff in Interface class
* Improve test tu utilize __eq__ method
* Make Interface class more robust and improve exceptions
* Add option to copy Interfaces (And the FlowSystem)
* Make a copy of a FLowSytsem that gets reused in a second Calculation
* Remove test_timeseries.py
* Reorganizing Datatypes
* Remove TImeSeries and TimeSeriesCollection entirely
* Remove old method
* Add option to get structure with stats of dataarrays
* Change __str__ method
* Remove old methods
* remove old imports
* Add isel, sel and resample methods to FlowSystem
* Remove need for timeseries with extra timestep
* Simplify IO of FLowSystem
* Remove parameter timesteps from IO
* Improve Exceptions and Docstrings
* Improve isel sel and resample methods
* Change test
* Bugfix
* Improve
* Improve
* Add test for Storage Bounds
* Add test for Storage Bounds
* CHANGELOG.md
* ruff check
* Improve types
* CHANGELOG.md
* Bugfix in Storage
* Revert changes in example_calculation_types.py
* Revert changes in simple_example.py
* Add convenient access to Elements in FlowSystem
* Get Aggregated Calculation Working
* Segmented running with wrong results
* Use new persistent FLowSystem to create Calculations upfront
* Improve SegmentedCalcualtion
* Improve SegmentedCalcualtion
* Fix SegmentedResults IO
* ruff check
* Update example
* Updated logger essages to use .label_full instead of .label
* Re-add parameters. Use deprecation warning instead
* Update changelog
* Improve warning message
* Merge
* Merge
* Fit scenario weights to model coords when transforming
* Merge
* Removing logic between minimum, maximum and fixed size from InvestParameters
* Remove selected_timesteps
* Improve TypeHints
* New property on InvestParameters for min/max/fixed size
* Move logic for InvestParameters in Transmission to from Model to Interface
* Make transformation of data more hierarchical (Flows after Components)
* Add scenario validation
* Change Transmission to have a "balanced" attribute. Change Tests accordingly
* Improve index validations
* rename method in tests
* Update DataConverter
* Add DataFrame Support back
* Add copy() to DataConverter
* Update fit_to_model_coords to take a list of coords
* Make the DataConverter more universal by accepting a list of coords/dims
* Update DataConverter for n-d arrays
* Update DataConverter for n-d arrays
* Add extra tests for 3-dims
* Add FLowSystemDimension Type
* Revert some logic about the fit_to_model coords
* Adjust FLowSystem IO for scenarios
* BUGFIX: Raise Exception instead of logging
* Change usage of TimeSeriesData
* Adjust logic to handle non scalars
* Adjust logic to _resolve_dataarray_reference into separate method
* Update IO of FlowSystem
* Improve get_coords()
* Adjust FlowSystem init for correct IO
* Add scenario to sel and isel methods, and dont normalize scenario weights
* Improve scenario_weights_handling
* Add warning for not scaled weights
* Update test_scenarios.py
* Improve util method
* Add objective to solution dataset.
* Update handling of scenario_weights update tests
* Ruff check. Fix type hints
* Fix type hints and improve None handling
* Fix coords in AggregatedCalculation
* Improve Error Messages of DataConversion
* Allow multi dim data conversion and broadcasting by length
* Improve DataConverter to handle multi-dim arrays
* Rename methods and remove unused code
* Improve DataConverter by better splitting handling per datatype. Series only matches index (for one dim). Numpy matches shape
* Add test for error handling
* Update scenario example
* Fix Handling of TimeSeriesData
* Improve DataConverter
* Fix resampling of the FlowSystem
* Improve Warning Message
* Add example that leverages resampling
* Add example that leverages resampling adn fixing of Investments
* Add flag to Calculation if its modeled
* Make flag for connected_and_transformed FLowSystem public
* Make Calcualtion Methods return themselfes to make them chainable
* Improve example
* Improve Unreleased CHANGELOG.md
* Add year coord to FlowSystem
* Improve dimension handling
* Change plotting to use an indexer instead
* Change plotting to use an indexer instead
* Use tuples to set dimensions in Models
* Bugfix in validation logic and test
* Improve Errors
* Improve weights handling and rescaling if None
* Fix typehint
* Update Broadcasting in Storage Bounds and improve type hints
* Make .get_model_coords() return an actual xr.Coordinates Object
* Improve get_coords()
* Rename SystemModel to FlowSystemModel
* First steps
* Improve Feature Patterns
* Improve acess to variables via short names
* Improve
* Add naming options to big_m_binary_bounds()
* Fix and improve FLowModeling with Investment
* Improve
* Tyring to improve the Methods for bounding variables in different scenarios
* Improve BoundingPatterns
* Improve BoundingPatterns
* Improve BoundingPatterns
* Fix duration Modeling
* Fix On + Size
* Fix InvestmentModel
* Fix Models
* Update constraint names in test
* Fix OnOffModel for multiple Flows
* Update constraint names in tests
* Simplify
* Improve handling of vars/cons and models
* Revising the basic structure of a class Model
* Revising the basic structure of a class Model
* Simplify and focus more on own Model class
* Update tests
* Improve state computation in ModelingUtilities
* Improve handling of previous flowrates
* Imropove repr and submodel acess
* Update access pattern in tests
* Fix PiecewiseEffects and StorageModel
* Fix StorageModel and Remove PreventSimultaniousUseModel
* Fix Aggregation and SegmentedCalculation
* Update tests
* Loosen precision in tests
* Update test_on_hours_computation.py and some types
* Rename class Model to Submodel
* rename sub_model to submodel everywhere
* rename self.model to self.submodel everywhere
* Rename .model with .submodel if its only a submodel
* Rename .sub_models with .submodels
* Improve repr
* Improve repr
* Include def do_modeling() into __init__() of models
* Make properties private
* Improve Inheritance of Models
* V3.0.0/plotting (#285)
* Use indexer to reliably plot solutions with and wihtout scenarios/years
* ruff check
* Improve typehints
* Update CHANGELOG.md
* Bugfix from renaming to .submodel
* Bugfix from renaming to .submodel
* Improve indexer in results plotting
* rename register_submodel() to .add_submodels() adn add SUbmodels collection class
* Add nice repr to FlowSystemModel and Submodel
* Bugfix .variables and .constraints
* Add type checks to modeling.py
* Improve assertion in tests
* Improve docstrings and register ElementModels directly in FlowSystemModel
* Improve __repr__()
* ruff check
* Use new method to compare sets in tests
* ruff check
* Update Contribute.md, some dependencies and add pre-commit
* Pre commit hook
* Run Pre-Commit Hook for the first time
* Fix link in README.md
* Update Effect name in tests to be 'costs' instead of 'Costs' Everywhere
Simplify testing by creating a Element Library
* Improve some of the modeling and coord handling
* Add tests with years and scenarios
* Update tests to run with multiple coords
* Fix Effects dataset computation in case of empty effects
* Update Test for multiple dims
Fix Dim order in scaled_bounds_with_state
Bugfix logic in .use_switch_on
* Fix test with multiple dims
* Fix test with multiple dims
* New test
* New test for previous flow_rates
* V3.0.0/main fit to model coords improve (#295)
* Change fit_to_model_coords to work with a Collection of dims
* Improve fit_to_model_coords
* Improve CHANGELOG.md1 parent e07dca8 commit 7467d2b
45 files changed
Lines changed: 44850 additions & 5287 deletions
File tree
- .github/workflows
- docs
- images
- user-guide/Mathematical Notation
- examples
- 01_Simple
- 03_Calculation_types
- 04_Scenarios
- 05_Two-stage-optimization
- flixopt
- pics
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
9 | 111 | | |
10 | 112 | | |
11 | 113 | | |
| |||
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
0 commit comments