I would like to loop through a set of Compile Time Variables without repeatedly redefining their content using the $set option.
For example, i have the following code.
$set A 123
Execute ‘gams %GAMS_Model% --DataPath=%A%’;
$set A 456
Execute ‘gams %GAMS_Model% --DataPath=%A%’;
$set A 789
Execute ‘gams %GAMS_Model% --DataPath=%A%’;
I have nearly 1000 such Datapaths. Is there a way to loop through all 1,000 values, without typing 2,000 lines of code?
Any suggestions are appreciated.