Page 1 of 1

tool for Using a code several times in a GAMS

Posted: Sun May 26, 2019 5:31 pm
by Lucas
Hi guys!

Is there a tool or command to use the piece of code Many times in GAMS?Instead of copying many times throughout the program?

Many Thanks!
Lucas

Re: Is there any tool for Using a piece of code several times in a GAMS code instead of coy?

Posted: Mon May 27, 2019 10:06 pm
by bussieck
Lucas,

You can either put this into a macro (https://www.gams.com/latest/docs/UG_Dol ... crosInGAMS) or in a (bat)include file (https://www.gams.com/latest/docs/UG_Dol ... batinclude).

-Michael