27.10.2013 Views

Quick start - Gams

Quick start - Gams

Quick start - Gams

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Model statistics<br />

GAMS also creates an output summarizing the size of the model as appears just below from the<br />

non-linear equation solving example nonlinsys.gms. This gives how many variables of equations<br />

and nonlinear terms are in the model along with some additional information. For discussion of<br />

the other parts of this output see the Standard Output and NLP and MCP model types chapters.<br />

MODEL STATISTICS<br />

BLOCKS OF EQUATIONS 6 SINGLE EQUATIONS 6<br />

BLOCKS OF VARIABLES 6 SINGLE VARIABLES 6<br />

NON ZERO ELEMENTS 20 NON LINEAR N-Z 10<br />

DERIVATIVE POOL 6 CONSTANT POOL 8<br />

CODE LENGTH 89<br />

Solver report<br />

The final major component of the LST file is the solution output and consists of a summary and<br />

then a report of the solutions for variables and equations. Execution error reports may also<br />

appear in nonlinear models as discussed in the Execution Errors Chapter.<br />

Solution summary<br />

The solution summary contains<br />

the marker S O L V E S U M M A R Y;<br />

the model name, objective variable name (if present), optimization type (if present), and<br />

location of the solve (in the echo print);<br />

the solver name;<br />

the solve status in terms of solver termination condition;<br />

the objective value (if present);<br />

some cpu time expended reports;<br />

a count of solver execution errors; and<br />

some solver specific output.<br />

The report from the non-linear equation solving example nonlinsys.gms appears just below.<br />

S O L V E S U M M A R Y<br />

MODEL wall OBJECTIVE ba<br />

TYPE NLP DIRECTION MINIMIZE<br />

SOLVER CONOPT FROM LINE 28<br />

**** SOLVER STATUS 1 NORMAL COMPLETION<br />

**** MODEL STATUS 2 LOCALLY OPTIMAL<br />

**** OBJECTIVE VALUE 1.0000<br />

Courtesy of B.A. McCarl, October 2002 20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!