When I do run my code in GAMS Studio I get this error. (When I do run it on GAMS IDE it doesn’t appear)
*** GDXIN failed C:\Users\ .... \j10 Instanz %InstanzNr%.gdx
*** Msg: No such file or directory
I have two parts of the model, the first one is:
set InstanzNr / 001*050/;
loop(InstanzNr,
put_utility 'exec' / 'gams MyModel --InstanzNr="'InstanzNr.tl:0'" lo= %gams.lo% output=C:\Users\ .... \TEST' InstanzNr.tl:0 '.lst ';
);
In the second one I do want to open the gdx file
$gdxin "C:\Users\ .... \j10 Instanz %InstanzNr%.gdx"
So it seems like GAMS does not pass the information of InstanzNr.
What could be the reason for that?
Thanks in advance!