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)

     -109OBJective
        1constraint(Land)
        6constraint(Labor)

x(Wheat)

 (.LO, .L, .UP = 0, 0, +INF)

      -90OBJective
        1constraint(Land)
        4constraint(Labor)

x(Cotton)

 (.LO, .L, .UP = 0, 0, +INF)

     -115OBJective
        1constraint(Land)
        8constraint(Labor)

 

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)

       -1TCOSTEQ
        1SUPPLYEQ(S1)
       -1BALANCE(A)

Shipsw(S1,B)

 (.LO, .L, .UP = 0, 0, 1000)

       -2TCOSTEQ
        1SUPPLYEQ(S1)
       -1BALANCE(B)

 

REMAINING 4 ENTRIES SKIPPED