27.10.2013 Views

Quick start - Gams

Quick start - Gams

Quick start - Gams

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Model statistics ............................................................................................................... 20<br />

Solver report ........................................................................................................................ 20<br />

Solution summary ........................................................................................................... 20<br />

Equation solution report.................................................................................................. 21<br />

Variable solution report .................................................................................................. 22<br />

Exploiting algebra .................................................................................................................... 23<br />

Equation writing – sums...................................................................................................... 23<br />

Revised algebra exploiting optimization example............................................................... 24<br />

Revised equilibrium example .............................................................................................. 25<br />

Dissecting the algebraic model ................................................................................................ 27<br />

Sets....................................................................................................................................... 27<br />

Alias ................................................................................................................................ 28<br />

Data entry ............................................................................................................................ 28<br />

Scalars............................................................................................................................. 28<br />

Parameters....................................................................................................................... 28<br />

Tables.............................................................................................................................. 29<br />

Direct assignment............................................................................................................ 30<br />

Algebraic nature of variable and equation specifications .......................................... 31<br />

Algebra and model .. specifications ........................................................................... 31<br />

Output differences ............................................................................................................... 32<br />

Equation listing ............................................................................................................... 32<br />

Variable list..................................................................................................................... 33<br />

Equation solution report.................................................................................................. 34<br />

Variable solution report .................................................................................................. 34<br />

Good modeling practices.......................................................................................................... 34<br />

Structure of GAMS statements, programs and the ;................................................................. 36<br />

Adding complexity................................................................................................................... 37<br />

Conditionals......................................................................................................................... 37<br />

Conditionally execute an assignment.............................................................................. 37<br />

Conditionally add a term in sum or other set operation.................................................. 37<br />

Conditionally define an equation.................................................................................... 38<br />

Conditionally include a term in an equation................................................................... 38<br />

Displaying data.................................................................................................................... 38<br />

Report writing...................................................................................................................... 40<br />

Why use GAMS and algebraic modeling................................................................................. 41<br />

Use of algebraic modeling................................................................................................... 41<br />

Context changes.............................................................................................................. 42<br />

Expandability .................................................................................................................. 42<br />

Augmentation.................................................................................................................. 43<br />

Aid with initial formulation and subsequent changes ......................................................... 44<br />

Adding report writing .......................................................................................................... 44<br />

Self-documenting nature...................................................................................................... 44<br />

Large model facilities ..........................................................................................................45<br />

Automated problem handling and portability...................................................................... 46<br />

Model library and widespread professional use .................................................................. 46<br />

Use by Others ...................................................................................................................... 46<br />

Courtesy of B.A. McCarl, October 2002 2

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

Saved successfully!

Ooh no, something went wrong!