Set element referencing

Top  Previous  Next

Set elements are referenced in calculations, equation specifications, loops and many other statements.  GAMS statements ordinarily refer to either a single element or to every element in the set.  Special provisions must be made to operate on more than one, but not all, elements of a set.  Set referencing may also be controlled by tuples where multiple sets are referenced only for specially defined joint elements.  Each of these cases is defined below.

 

Whole sets

Single elements

Operating over part of a set

Universal Set: * as a set identifier