|
Variable list |
Top Previous Next |
|
The variable listing also exhibits a few different characteristics in the face of set dependent variable and equation declarations. In particular, the variables declared over sets have multiple cases listed under a particular variable name as do any involved sets. An example is presented below in the context of our core optimization example (optimize.gms) and shows three cases of the x variable (those associated with the corn, wheat, and cotton set elements). It also shows that the variables use resources from two cases of the equation called constraint (land and labor).
---- x x(Corn) (.LO, .L, .UP = 0, 0, +INF)
x(Wheat) (.LO, .L, .UP = 0, 0, +INF)
x(Cotton) (.LO, .L, .UP = 0, 0, +INF)
A portion of the variable listing from the more involved model.gms example shows GAMS indicating four cases were skipped when Limcol was smaller than the number of cases on hand (as discussed in the Standard Output chapter).
---- Shipsw Amount Shipped To Warehouse Shipsw(S1,A) (.LO, .L, .UP = 0, 0, 1000)
Shipsw(S1,B) (.LO, .L, .UP = 0, 0, 1000)
REMAINING 4 ENTRIES SKIPPED |