|
GAMS item dimension: Dim=, Rdim=, Cdim= |
Top Previous Next |
|
Nominally, the Gdxxrw program is set up to read and write a 2 dimensional data item i.e. a(i,j). When the object is more or less than 2 dimensional, then the user must specify the dimension at hand and the way the data are arrayed in the spreadsheet. Three command line parameters control this
These are specified as
Dim=integer Rdim=integer Cdim=integer
Note they do not all need to be specified Dim equals the sum of Cdim and Rdim. and if both Cdim and Rdim are omitted, the program assumes that Cdim = 1 and Rdim= Dim – 1. The set up of the Rdim and Cdim parameters is much like the option statement associated with a display as discussed in the Improving Output via Report Writing chapter. Their use is illustrated below. |