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

group_co2_limit is implemented only for one node of the group #164

Closed giannisvrochidis closed 5 months ago

giannisvrochidis commented 5 months ago

I tried adding a cumulative CO2 emission limit from fossil plants and created the group fossil_nodes for this. The group consists of three nodes (coal, gas, oil), but from the results it seems that the limit is applied only to one of them (coal specifically). It is quite obvious this happens since the emissions from coal plant are across all years equal to the threshold set.

Checked the DB graph and the group seems to contain all 3 nodes as it shoud. Any ideas? Thanks in advance, Giannis

jkiviluo commented 5 months ago

I suppose gas and oil have CO2_content parameter set?

If that's not the cause, maybe @ArttuTupala can check this soon.

giannisvrochidis commented 5 months ago

Yes, they do have non-zero CO2_content. Confirmed in the results as well, where emissions by gas and oil are reported normally.

ArttuTupala commented 5 months ago

This is a Flextool issue. It creates separate constraints for each of the commodities instead of combining them to a group. Also, some of the annualizations don't match the parameter definitions/docs. I'm working on the fix now.