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
24 stars 5 forks source link

Energy not served: flextool creates energy "from nothing" #34

Open e-zaline opened 1 year ago

e-zaline commented 1 year ago

Hello, To keep track of what we discussed yesterday, here is a summary. Looking forward for your feedback!

image

image

image

jkiviluo commented 1 year ago

Very nice illustration!

This is indeed a bug of sorts. It would be very straightforward to limit unserved energy to the inflow by forcing an upper limit to the vq_state_up variable based on pdtNodeInflow parameter. However, there are situations where the user could then make a model that would be infeasible. This could be done with a consumption unit that has a minimum consumption limit. It would be possible to consider also these situations, but requires more work and I'm therefore parking this issue until there is time. Furthermore, I want to keep the model always feasible, because debugging infeasibilities requires modelling experience from the user. Therefore, I'm not implementing that quick fix without also fixing the corner cases. I will update init.sqlite, so that this does not happen there.