You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Notes<br />
Pdemand.. P =g= 6 - 0.3*Qd; (econequil.gms)<br />
r1.. ba * so4 =e= 1 ; (nonlinsys.gms)<br />
The general form of these statements are<br />
Equationname.. algebra1 equationtype algebra2 ;<br />
where an equation with that name must have been declared (have appeared in and<br />
equation statement)<br />
the .. appears just after the equation name<br />
the algebraic expressions algebra1 and algebra2 can each be a mixture of<br />
variables, data items and constants<br />
the equationtype is the =E=, =L=, and =G= discussed above.<br />
a ; ends the statement<br />
All equations must be specified in .. notation before they can be used.<br />
Some model equations may be specified in an alternative way by including upper or<br />
lower bounds as discussed in the Variables, Equations, Models and Solves chapter.<br />
.. specification statements may be more complex including more involved algebra as<br />
discussed later in this tutorial and in the Calculating Items chapter.<br />
It may be desirable to express equations as only being present under some conditions as<br />
discussed later in this tutorial and in the Conditionals chapter.<br />
Model<br />
Once all the model structural elements have been defined then one employs a MODEL statement<br />
to identify models that will be solved. Such statements occur in the each of the three example<br />
models:<br />
Notes<br />
MODEL farmPROBLEM /ALL/; (optimize.gms)<br />
MODEL PROBLEM /Pdemand.Qd, Psupply.Qs,Equilibrium.P/; (econequil.gms)<br />
Model wall / all / ; (nonlinsys.gms)<br />
The general form of these statements are<br />
Courtesy of B.A. McCarl, October 2002 9