I have gotten the followig problem and I am not able to find, where is the error.
Problem writing symbol: COM_AGG
*** Domain violation
*** Problem writing symbol: UC_FLO
*** Domain violation
*** Problem writing symbol: UC_MAP_FLO
*** Domain violation
*** GDX File failed C:\VEDA\VEDA_FE\GAMS_WRKTIMES\GAMSSAVE\pokus45.gdx
*** Msg: Domain violation
Please, could you advice me? The listing file is attached.
Thank you very much.
Lukas
The listing file shows 3482 WARNINGs, all from domain violations.
The GDX File failed error is caused by these domain violations.
Domain violations mean that an item name used in some attribute has not been defined in the corresponding basic set. For example, the label 'TRACO2N' is used in your model, but according to the listing file, it has not been defined as a commodity, and therefore causes domain violations.
To correct for these errors, you should make sure all the commodities and processes that are referred to e.g. in COM_AGG and UC_FLO are defined in the model.
But I can see now that you also have a divide by zero error in the listing file.
That is most probably caused by defining a zero NCAP_CHPR for a CHP technology.
Do you have such a CHP technology, for which you have defined a zero CHPR? And if so, is that just a mistake, or do you think it is useful to define a zero CHPR for a CHP technology?
You are using a quite old TIMES version (v3.8.3). The latest version does not have such an issue with a zero CHPR.