I'm running a model with the command line parameter `dumpOpt=11` in order to generate a single GAMS file containing all includes and data.
However, using $GDXIN with 0 level elements seems to create a compilation error in the .dmp file:
Simplified (reproducible) problem (which compiles fine):
Code: Select all
set r / 'Vietnam','Ethiopia','Malawi','Bolivia','Nicaragua','Pakistan','ASEAN','XCOMESA','MERCOSUR','XANDEAN','XCAFTA','ROW','USA','XOECD','EU28','SSA','China','CEFTA' /;
set h / "incPerCap 30_sh_agin 30", "incPerCap 30_sh_agin 70", "incPerCap 30_sh_agin 100", "incPerCap 70_sh_agin 30", "incPerCap 70_sh_agin 70", "incPerCap 70_sh_agin 100", "incPerCap 100_sh_agin 30", "incPerCap 100_sh_agin 70", "incPerCap 100_sh_agin 100"/;
set t / t0*t39 /;
variable popPrev(r,h,t);
$GDXIN "test.gdx"
$LOAD popPrev = pop
$GDXIN
Code: Select all
variable popPrev(r,h,t);
* *** GDXIN C:\Users\pahmeyer\Desktop\test.gdx
$onMulti
Variable popPrev(r,h,t) /
...
'Pakistan'."incPerCap 30_sh_agin 30".t10.(),
*** Error 338, unique element expected
...
Thanks for the help, I also attached the test.gms and required .gdx file.
Best
Christoph