GAMS Model Reader Object

Systems and Computer Engineering

Carleton University

Ottawa, Canada

GAMS is a popular language for describing mathematical programs – see for further information.  The GAMS developers provide routines for connecting solvers to the GAMS system, however, it still requires significant programming effort and knowledge to make the interface work smoothly.  We have simplified this task by creating an object wrapper for the interface routines.  This allows programmers to simply reference the associated GAMS Model Reader object in their code, thereby exposing the properties of the model and providing a set of useful methods. 

Exposed properties include the names of variables, constraints and objectives, variable bounds, constraint types, etc.  Methods include the ability to calculate the value of a constraint or objective at a given point, ability to return gradients at a point, etc.  The properties and methods exposed by the object can be conveniently viewed via the object browser in the programming development environment.

The object also simplifies other programming tasks.  For example, an appropriate dialog box is provided when the user wishes to locate a GAMS model.

Two items are provided here:

Version History

Download and Installation

The full-featured software is available for free download.  Instructions:



·       The GAMS system must be installed on your system for the reader to work.  GAMS is used to convert the model statements into the scratch files which are read by the model reader.  During first use of the reader you will be prompted to indicate where the gamskeep.exe file is located – this file is included with the GAMS distribution.

·       It is necessary to install the MPECDUMP update from See here for installation procedures.


COM Object


.NET Object



Last update: September 2, 2003.