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.

Thisreport(resources,"Marginal","Value")=<br />

available.m(resources);<br />

option thisreport:2:1:2;<br />

display thisreport;<br />

where both equation marginals (shadow prices) and variable levels are included in the report<br />

writing calculations. This yields the report<br />

Total Use by Use by Marginal<br />

Available Corn Wheat Value<br />

Land 100.00 50.00 50.00 52.00<br />

Labor 500.00 300.00 200.00 9.50<br />

where I have color coded the originating statements and resultant output.<br />

The report wring topic is extensively discussed in the Report Writing chapter with a more<br />

advanced discussion also appearing in the Output via Put Commands chapter.<br />

Why use GAMS and algebraic modeling<br />

Finally I feel it is beneficial to examine the attributes and difficulties with GAMS based<br />

algebraic modeling. This is done under the following topics<br />

Use of algebraic modeling<br />

Context changes,<br />

Expandability<br />

Augmenting models<br />

Aid with initial formulation and subsequent changes<br />

Adding report writing<br />

Self-Documenting Nature<br />

Large Model Facilities<br />

Automated Problem Handling<br />

Model Library and widespread professional use<br />

Use by Others<br />

Ease of use with nonlinear, mixed integer, CGE and other problem forms<br />

Interface with other packages<br />

Use of algebraic modeling<br />

GAMS permits one to express a formulation in general algebraic terms using symbolic<br />

summation notation. This allows modelers to concisely state problems, largely independent of<br />

the data and exact application context. Such formulations are inherently expandable, easily<br />

subjected to context changes, and easily augmented as will be discussed just below.<br />

However use of algebraic modeling can be a two edged sword GAMS algebraic requirements<br />

and summation notation are difficult for some users. Some people will always desire to deal<br />

with the exact problem context, not an abstract general formulation. This does lead to a strategy<br />

Courtesy of B.A. McCarl, October 2002 41

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

Saved successfully!

Ooh no, something went wrong!