Variable and equation data: Equ and Var

Top  Previous  Next

When data associated with variables or equations are to be read or written one may use

 

Equ=equationname.attribute Rng=DataRange Dimensions SymbolOptions

Var=variablename.attribute Rng=DataRange Dimensions SymbolOptions

 

but these only work for going to the spreadsheet at the moment and one should pass such items through parameters.

Notes:

When writing an attribute of a variable or equation can be addressed using the attribute names .L, .M, .Lo , .Up .Prior  and .Scale
The attribute names are not case sensitive.
Today attributes of variables cannot be read from a spreadsheet and included in the GDX file.  Rather one must bring the item into GAMS as a parameter and use a replacement statement.  A revision is planned in the near future to allow this.
Today one can only unload a whole variable into a GDX file then save selected attributes.  A revision is planned in the near future to allow this.