GAMS User's Guide

This documentation guides GAMS User through several topics in GAMS system. Some introductions to software systems are like reference manuals: they describe each command in detail. Others take you step by step through a small number of examples. This guide uses elements of both approaches.

**Introduction and Tutorial**- This is a self-contained tutorial that guides you through a single example, a small transportation model, in some detail: you can quickly investigate the flavor of GAMS by reading it.- Introduction - an introductory to GAMS User's Guide.
- Tutorial - A GAMS Tutorial by Richard E. Rosenthal.

**Language Basics**- This part introduces the components of the GAMS language in an ordered way, interspersed with detailed examples that are often drawn from the model library. All models from the model library are enclosed in square parenthesis (for example, [TRNSPORT]). Some specialized material has deliberately been omitted in this process because the primary aim is to make GAMS accessible to the widest possible audience, especially those without extensive experience with computers or mathematical programming systems. Some familiarity with quantitative methods and mathematical representations is assumed.- GAMS Programs - The structure of the GAMS language and its components
- Set Definition - The declaration and initialization of sets, subsets, and domain checking.
- Data Entry: Parameters, Scalars and Tables - Three basic forms of GAMS data types : Parameters, Scalars and Tables.
- Data Manipulations with Parameters - The declaration and assignment of GAMS parameters.
- Variables - The declaration and attributes of GAMS variables.
- Equations - The definition and declaration of GAMS equations.
- Model and Solve Statements Model - The specificiation of a GAMS model and how to solve it.
- GAMS Output - The control of GAMS compilation output, execution output, output produced by a solve statement, and error reporting.
- Conditional Expressions, Assignments and Equations - The conditional assignments, expressions and equations in GAMS.
- Dynamic Sets - The membership assignment, the usage of dollar controls, and set operations.
- Sets as Sequences: Ordered Sets - Special features used to deal with a set as if it were a sequence.
- The Display Statement - The syntax, control, and label order in display.
- The Put Writing Facility - The put writing facility of the GAMS language.
- Programming Flow Control Features - The GAMS programing flow control features : loop, if-elseif, while, and for statements.
- Special Language Features - Special features in GAMS that do not translate across solvers, or are specific to certain smodel types.

**Advanced Topics**- This part discusses advanced topics and can be studied as needed. Users with large, complex, or expensive models will find much useful material in this part.- Glossary - An alphabetically list of GAMS terms.
- The GAMS Model Library - Introduction of GAMS Model Library.
- The GAMS Call - The list and detailed description of GAMS command line parameters.
- Dollar Control Options - The list and detailed description of dollar control options.
- The Option Statement - The list and detailed description of options.
- The Save and Restart Feature - The GAMS save and restart feature and the work file.
- Secure Work Files - The access control command, its usage, and obfuscated work files.
- Compressed and Encrypted Input Files - The encryption, compression and decompression of GAMS input files.
- The Grid and Multi-Threading Solve Facility - The basic concepts and Grid Features.
- Extrinsic Functions - The extrinsic function library and comparison with external equations.
- External Equations - A facility for connecting code written in different programming languages to equations and variables in a GAMS model.
- GAMS Return Codes - The structure of error codes, the return codes of the GAMS compiler and execution system, and the driver return codes.
- GAMS Data eXchange (GDX) - GAMS Data eXchange (GDX) facilities and utilities for Binary Data Exchange.
- Data and Model Exchange with Other Applications - The different ways to exchange data and model between GAMS and other applications.
- Stochastic Programming (SP) with EMP - the stochastic programming (SP) extension of GAMS Extended Mathematical Programming (EMP).
- Mathematical Programming System for General Equilibrium analysis (MPSGE) - A mathematical programming system for general equilibrium analysis which operates as a subsystem within GAMS.
- MPSGE Models in GAMS
- Demand Theory and General Equilibrium: An Intermediate Level Introduction to MPSGE
- Constant Elasticity of Substitution Functions: Some Hints and Useful Formulae
- A Library of Small Examples for Self-Study
- Comparing the Performance of Flexible Functional Forms
- General Equilibrium with Public Goods
- Kevin O'Rourke: CGE and Economic History
- Linking Implan Social Accounts to MPSGE
- A partial list of publications based on MPSGE
- The MPSGE guide is also available as PDF

The GAMS User's Guide is also available as PDF.