$Setglobal

Top  Previous  Next

Variables defined which are available throughout the code.

They are destroyed using

 $dropglobal varname

Unfortunately GAMS allows one to define scoped local and global variables with the same name but treats them as different under some cases and prioritizes them when using $ife or $if as discussed here.