spine-tools / SpineOpt.jl

A highly adaptable modelling framework for multi-energy systems
https://www.tools-for-energy-system-modelling.org/
GNU General Public License v3.0
59 stars 14 forks source link

Piecewiselinear efficiency using fix_ratio_out_in_unit_flow? #444

Closed manuelma closed 2 months ago

manuelma commented 2 years ago

I can set up the piecewiselinear efficiency using the incremental_heat_rate parameter, however I cannot do it using fix_ratio_out_in_unit_flow. Is this intentional? I thought this feature 'duplication' was to please different worldviews, but one is more powerful than the other?

DillonJ commented 2 years ago

This was one of the main reasons for implementing piecewise linear heat rates. Untill then, the piecewise functionality only existed with unit_constraints (now user_constraints).

It's intentional but perhaps not ideal

clizbe commented 1 year ago

Closing due to inactivity and low priority.

nhniina commented 5 months ago

I did initial tests with fix_ratio_in_out_unit_flow parameters that are basic floats, timeseries of floats and arrays (piecewise linear). Those seemed to work ok, but it does not work with timeseries of arrays. I suppose I should update _has_simple_fix_ratio_unit_flow but I don't know how.

Unit tests and migration are still missing.