Let me preface this question by noting that I’m pretty new to GAMS.
I have a GAMS file which makes multiple calls to load and unload data from GDX files and I’d like to have a single line somewhere in the GAMS code to change the filenames referenced.
In particular, I want to include a specified parameter in a filename.
So for example I specify a parameter ‘scenario’ as ‘low’ somehow and then in all subsequent references the filename reflects this.
Something like:
execute_unload “C:\File directory\outputs_%scenario%.gdx”
To get :
“C:\File directory\outputs_low.gdx”
Is there a way to do this?
Cheers
Josh
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.