Equation attributes

Top  Previous  Next

Equations have attributes that can be used in specifying starting values, and scaling.  The attributes also contain the solution level and marginal for the equation after execution of a solve statement.  They are extensively discussed in the Calculations chapter and represent:

 

Equation attribute

Symbol

Description

Lower bound

.lo

Negative infinity or the right hand side of a =g= or =e= equation.

Upper bound

.up

Positive infinity or the right hand side of a =l= or =e= equation.

Equation level

.l

Optimal level for the equation which is equal to the level of all terms involving variables.

Marginal

.m

Dual, shadow price or marginal value for the equation.  This attribute is reset to a new value when a model containing the equation is solved.

Scale factor

.scale

Numerical scaling factor that scales all coefficients in the equation providing the model attribute scaleopt is set to 1.  This is discussed in the Scaling GAMS models chapter.

 

The user distinguishes between these attributes by appending a suffix to the equation name.

Examples:

(model.gms)

SUPPLYEQ.scale(SUPPLYL)=33;

marg(supplyl)=SUPPLYEQ.m(SUPPLYL);