|
A problem with control variable definitions |
Top Previous Next |
|
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. Namely it appears as if the local setting is always used first then the scoped then the global. An example appears in setcontrol.gms Note In the face of this it may be advisable to only use one type of control variable in any application or at least only use a name once.
|