Item capitalization

Top  Previous  Next

When using GAMS, the capitalization format used it will employ for an item in the output is identical to the first capitalization structure seen for that item in the GAMS program.  Thus, if a program contained "Total", "TOTAL" and "total", whichever of these appeared first would be the one used in the output. Inside GAMS alternative capitalizations are all identical.  Available("WATER") is same as available("water") or availAble("wateR").

Examples:

Given the instructions (dispset2.gms)

 

Set A /Total,LINE,newone,next/;

Set b /TOTAL,LINE,NEWONE,NEXT,UNIQUETOhere/;

Scalar tT /1/;

Display b,tt;

 

The output is

 

----      11 SET       b

Total ,    LINE  ,    newone,    next  ,  UNIQUETOhere

----      4 PARAMETER tT                   =        1.000

 

where the capitalization within the set b is not as typed in defining b for any of the elements previously appearing earlier (in the set A in this case).

Similarly, the capitalization of the parameter name for tT is as it appears in the first occurrence of that name.

Notes:

One can alter the capitalization aspects of any set element or item name in GAMS by making sure that the first entry is capitalized as desired.
These style rules apply to all GAMS displays through display statements or put commands involving the names of set elements, sets, parameters, scalars, tables, variables, equations, models and anything else.