|
.. specifications |
Top Previous Next |
|
The GAMS equation specifications actually consist of two parts. The first part naming equations, was discussed just above. The second part involves specifying the exact algebraic structure of equations. This is done using the .. notation. In this notation we give the equation name followed by a .. then the exact equation type as it should appear in the model. The equation type specification involves use of a special syntax to tell the exact form of the relation involved. The most common of these are (see the Variables, Equations, Models and Solves chapter for a complete list):
=E= is used to indicate an equality relation =L= indicates a less than or equal to relation =G= indicates a greater than or equal to relation
This is used in each of the example models where a few of the component equations are reproduced below
land.. Xcorn + Xwheat + Xcotton =L= 100;
Notes:
Equationname .. algebra1 equationtype algebra2 ; where an equation with that name must have been declared (have appeared in and equation statement) the .. appears just after the equation name the algebraic expressions algebra1 and algebra2 can each be a mixture of variables, data items and constants the equationtype is the =E=, =L=, and =G= discussed above. a ; ends the statement
|