Variable listing

Top  Previous  Next

The next output section is the variable listing and is controlled by option Limcol.  This lists the individual coefficients for each variable.  For the shortmodel.gms example it is

 

---- PRODUCTION  ITEMS PRODUCED BY PROCESS

 

PRODUCTION(makechair)

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

       -3       OBJT

        3       AVAILABLE(plantcap)

        1       AVAILABLE(salecontrct)

PRODUCTION(maketable)

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

      -12       OBJT

        2       AVAILABLE(plantcap)

       -1       AVAILABLE(salecontrct)

PRODUCTION(makelamp)

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

       -0.5     OBJT

        1.1     AVAILABLE(plantcap)

 

---- PROFIT  TOTALPROFIT

 

PROFIT

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

        1       OBJT

Notes:

The variable listing shows each case of each variable including the equations in which appears, and the numerical values of the individual coefficients.
The listing also shows the lower bound (.lo),  upper bound (.up) and current level (.l) values for each variable.
The listing for each variable block is set off with four dashes ---- to facilitate mechanical searching.
The numerical entries are formatted with up to four decimal places if needed, but trailing zeroes following the decimal point are suppressed.  E-format is used to prevent small numbers being displayed as zero and to allow display of large numbers.
The default output is a maximum of three set index cases for each generic variable.  To change the default, insert an option statement prior to the solve statement: option limcol  =  r ; where r is the desired number of variable cases to be displayed under each variable block.
The order in which the variable cases and the variable blocks are listed is determined by the entry order of the variables and the placement of set elements in the unique element list as discussed in the Rules for Item Capitalization and Ordering chapter.
Nonlinear terms are included here but are marked.  Namely, nonlinear coefficients are enclosed in parentheses, and the value of the coefficient depends on the activity levels (.l values) of the variables.  The listing shows the partial derivative of each variable evaluated at their current level value attribute and there is an implicit unlisted constant involved with the function evaluations.  For the example simpnlp.gms with the equation

 

Eq1.. 2*sqr(x)*power(y,3) + 5*x - 1.5/y =e= 2;

 

At the starting point

 

x.l = 2; y.l = 3 ;

 

The variable listing contains

 

---- x

x

                (.LO, .L, .UP = -INF, 2, 10)

     (221)      eq1

 

---- y

y

                (.LO, .L, .UP = -INF, 3, 10)

     (216.1667)      eq1