Model attributes

Top  Previous  Next

A number of attributes of models may be accessed by the user in the form of numerical values.  These include three fundamental types of items.

Attributes that contain information about the results of a solver performed, Solve statement generated, solution of a model.
Attributes that tell a solver or GAMS to use of certain features.
Attributes that pass information to the solver or GAMS giving various setting that are also subject to option statement settings.

 

The general way these are used is as follows.

 

X=modelname.attribute;

Modelname.attribute=3;

 

where modelname is the name used in a model statement and attribute is one of the items listed below.  More specifically, given the modelname is transport then statements like

 

x=transport.modelstat;

transport.holdfixed=1;

transport.bratio=1;