|
Basics of solution based report writing calculations |
Top Previous Next |
|
Information relative to the variable, equation and model solution is passed to GAMS from solvers. These information are used in report writing computations (see the Calculating Items chapter for further discussion). Variables and equations have attributes that contain the optimal level and marginal values for them in the current solution.
Variablename.L(setdependency)
This may also be done implicitly using $Ondotl.
Equationname.L(setdependency)
Variablename.M(setdependency)
Equationname.M(setdependency)
The numerical values of these parameters are generally redefined every time a solve is executed. In general, these items can be used in calculations just like any other parameter once a solve has been completed. Note model solution attributes like modelname.modelstat can also be used to indicate whether an optimal solution was attained as discussed in the Model Attributes chapter. |