GAMS and how to use it from MATLAB¶
Maintainer: | Johannes Dorfner, <jdorfner@gmail.com> |
---|---|
Date: | June 28, 2021 |
Copyright: | The corresponding code is licensed under the GNU General Public License 3.0. This documentation is licensed under a Creative Commons Attribution 4.0 International license. |
Introduction¶
This manual consists of two major sections:
The first section is a short GAMS introduction with a motivation for an external data handling component. The basic language elements sets, parameters, variables and equations are briefly explained, so that readers with experience in mathematical modelling should be able to write new models.
The second section then introduces GAMS.m, a class written for MATLAB that provides static functions that allow creating GAMS data structures, reading and writing GDX files. Finally, the concepts entities and timeseries are introduced and how they can be used for rapid model development.
Contents¶
- 1. GAMS introduction
- 2. GAMS.m
- 2.1. Motivation
- 2.2. Example (2) – GAMS with MATLAB script
- 2.3. Input data – Sets
- 2.4. Input data – Parameters
- 2.5. GDX data exchange
- 2.6. Calling GAMS
- 2.7. Example (3) – Interface class replaces script
- 2.8. Input data – Entities
- 2.9. Input data – Timeseries
- 2.10. Data manipulation
- 2.11. Further reading
Download¶
Get GAMS.m
and the usage examples from its GitHub repository.