spine-tools / SpineOpt.jl

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

Variable efficiency coefficient for Electrolyzer, battery and EV charger, etc. #959

Open Alireza64z opened 3 months ago

Alireza64z commented 3 months ago

Some technologies such as hydrogen electrolyzers and EV chargers have a variable efficiency coefficient that cannot be fixed. However, by using a piecewise linear approximation, we can convert the nonlinear curve of the efficiency coefficient into a linear form.

I suggest the addition or modification of a parameter similar to "fix_ratio_out_in_unit_flow" that can incorporate piecewise linear steps for the coefficient. The modeling process for this parameter is similar to that of the "unit_incremental_heat_rate" parameter.

Thank you.

DillonJ commented 3 months ago

Hi @Alireza64z - that functionality would be nice and is in the pipeline. However, in the meantime, there is nothing preventing you using incremental_heat_rate and unit_idle_heat_rate to do the same thing