I'm (once again) 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 empty empty data statements seem to create a compilation error in the .dmp file.
Consider the following minimum working example (test-empty.gms):
Code: Select all
$onempty
set empty(*);
* Uncomment to create GDX test file once
$ontext
$gdxOut test.gdx
$unload empty
$gdxOut
$offtext
$gdxin test.gdx
$$load empty
$gdxin
set test(*) //;
$offempty
Code: Select all
$onEmpty
set empty(*);
$onMulti
Set empty(*) /
$onempty
/;
$offempty
$offMulti
set test(*) //;
$offEmpty
Code: Select all
*** Error 460 in /Users/pahmeyer/Documents/gams-empty-dumpopt/test-empty.dmp.gms[ERR:"/Users/pahmeyer/Documents/gams-empty-dumpopt/test-empty.dmp.gms",21,14][LST:21]
Empty data statements not allowed. You may want to use $ON/OFFEMPTY
Thanks for the help, I also attached the test-empty.gms,.dmp.gms and required .gdx file.
Best
Christoph
P.S. Despite their similar title, this is a different issue than viewtopic.php?p=26743&hilit=dumpopt#p26743!