irena-flextool / flextool

IRENA FlexTool is an energy and power systems model for understanding the role of variable power generation in future energy systems.
https://www.irena.org/energytransition/Energy-System-Models-and-Data/IRENA-FlexTool
Other
21 stars 5 forks source link

User constraints not working correctly #204

Closed jkiviluo closed 1 month ago

jkiviluo commented 1 month ago

Unit constraints are missing multiplication with unit_size (which are deduced from existing unit capacities if no 'virtual_unit_size' is given). This results in wrong coefficients in the user constraint, unless all unit capacities happen to be the same - or if virtual_unit_size has been used.

The issue appeared when model was scaled (to improve computational speed) about a year ago.