|
Notes on indefinite sets in parameter statements |
Top Previous Next |
|
Parameter statements do not always have to have definitive set assignments. If one enters an * in an index position, then anything at all can be placed in that position. In above example, I use this allowing the inclusion of both existing sets and other items in these positions. For example, in the first position of the incoming parameter I am using both the set destination and the element text "total".
incoming(destinaton,"shipments","in cases","from",source) incoming("total","shipments","in cases","from",source)
Use of named sets in the specifications allows GAMS to check to make sure you're not misspelling anything. |