Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Notes<br />
SOLVE PROBLEM USING MCP; (econequil.gms)<br />
Solve wall using nlp minimizing ba; (nonlinsys.gms)<br />
The general forms of these statements for models with objective functions are<br />
Solve modelname using modeltype maximizing variablename ;<br />
Solve modelname using modeltype minimizing variablename ;<br />
and for models without objective functions is<br />
Solve modelname using modeltype;<br />
where Solve is required<br />
a modelname follows that must have already been given this name in a Model<br />
statement<br />
using is required<br />
the modeltype is one of the known GAMS model types where<br />
♦ models with objective functions are<br />
LP for linear programming<br />
NLP for nonlinear programming<br />
MIP for mixed integer programming<br />
MINLP for mixed integer non linear programming<br />
plus RMIP, RMINLP, DNLP, MPEC as discussed in the chapter on Model<br />
Types and Solvers.<br />
♦ models without objective functions are<br />
MCP for mixed complementary programming<br />
CNS for constrained nonlinear systems<br />
maximizing or minimizing is required for all optimization problems (not MCP or<br />
CNS problems)<br />
a variablename to maximize or minimize is required for all optimization problems<br />
(not MCP or CNS problems) and must match with the name of a variable defined as<br />
free or just as a variable.<br />
a ; ends the statement<br />
The examples statement solve three different model types<br />
Courtesy of B.A. McCarl, October 2002 11