two ways to run gams gams / mpsge course: yerevan, armenia may 3 – 7, 2010
TRANSCRIPT
![Page 1: Two Ways to Run GAMS GAMS / MPSGE Course: Yerevan, Armenia May 3 – 7, 2010](https://reader036.vdocuments.mx/reader036/viewer/2022062320/56649c885503460f9494016f/html5/thumbnails/1.jpg)
Two Ways to Run GAMSGAMS / MPSGE Course: Yerevan, Armenia
May 3 – 7, 2010
![Page 2: Two Ways to Run GAMS GAMS / MPSGE Course: Yerevan, Armenia May 3 – 7, 2010](https://reader036.vdocuments.mx/reader036/viewer/2022062320/56649c885503460f9494016f/html5/thumbnails/2.jpg)
Introduction to GAMS
GAMS – Generalized Algebraic Modeling System
Strength: “Optimization”History:
◦Originated in 1990 at World Bank◦Financed later by Oil-refineries◦Now used by economists, chemists, and other
scientists who need optimizationCompany is small (4-5 people), based in
Georgetown, Washington, DC.
![Page 3: Two Ways to Run GAMS GAMS / MPSGE Course: Yerevan, Armenia May 3 – 7, 2010](https://reader036.vdocuments.mx/reader036/viewer/2022062320/56649c885503460f9494016f/html5/thumbnails/3.jpg)
Structure of GAMS
GAMS is a “modular” system
Base GAMS is the general data-management and data-manipulation part.
GAMS “solvers” are separate plugin style software developed by outsiders, for example:◦ MINOS: Non-Linear Program (NLP) solver, by academics at
Stanford U.◦ CONOPT: NLP developed by professor in Netherlands◦ PATH: Mixed-Complimentary Solver (MCP) developed at U.
Wisconsin (Madison)
![Page 4: Two Ways to Run GAMS GAMS / MPSGE Course: Yerevan, Armenia May 3 – 7, 2010](https://reader036.vdocuments.mx/reader036/viewer/2022062320/56649c885503460f9494016f/html5/thumbnails/4.jpg)
Using GAMS: GUI or Command?
For 20 years, GAMS has been a “command-line” program
In 2005, GAMS developed “GAMS-IDE” – the “Integrated Development Environment”
IDE is a Graphical Interface for the Command-Line software
![Page 5: Two Ways to Run GAMS GAMS / MPSGE Course: Yerevan, Armenia May 3 – 7, 2010](https://reader036.vdocuments.mx/reader036/viewer/2022062320/56649c885503460f9494016f/html5/thumbnails/5.jpg)
GAMS IDE
![Page 6: Two Ways to Run GAMS GAMS / MPSGE Course: Yerevan, Armenia May 3 – 7, 2010](https://reader036.vdocuments.mx/reader036/viewer/2022062320/56649c885503460f9494016f/html5/thumbnails/6.jpg)
GAMS IDE
You get a “GUI” where you can edit the program But files are placed in a strange location:
◦ C:\users\lightm\Documents\gamsdir\projdir\trnsport.gms
![Page 7: Two Ways to Run GAMS GAMS / MPSGE Course: Yerevan, Armenia May 3 – 7, 2010](https://reader036.vdocuments.mx/reader036/viewer/2022062320/56649c885503460f9494016f/html5/thumbnails/7.jpg)
GAMS IDE
Input Program (.gms) and outputs (.lst) have tabs
![Page 8: Two Ways to Run GAMS GAMS / MPSGE Course: Yerevan, Armenia May 3 – 7, 2010](https://reader036.vdocuments.mx/reader036/viewer/2022062320/56649c885503460f9494016f/html5/thumbnails/8.jpg)
GAMS IDE: PROs and CONs
Pros:◦ Easy to get started◦ Point and click◦ Automatically organizes files / folders◦ Integrated text editor
Cons:◦ Hard to understand what happens in “background”◦ File locations are un-intuitive◦ Always need a “project dir”◦ Text-editor is weak
![Page 9: Two Ways to Run GAMS GAMS / MPSGE Course: Yerevan, Armenia May 3 – 7, 2010](https://reader036.vdocuments.mx/reader036/viewer/2022062320/56649c885503460f9494016f/html5/thumbnails/9.jpg)
Traditional GAMS
Original GAMS uses a “command Line” (MS-DOS) A separate Text Editor is required Input and Output files are standard “text files” No GUI Must learn commands in MS-DOS
![Page 10: Two Ways to Run GAMS GAMS / MPSGE Course: Yerevan, Armenia May 3 – 7, 2010](https://reader036.vdocuments.mx/reader036/viewer/2022062320/56649c885503460f9494016f/html5/thumbnails/10.jpg)
Traditional GAMS
![Page 11: Two Ways to Run GAMS GAMS / MPSGE Course: Yerevan, Armenia May 3 – 7, 2010](https://reader036.vdocuments.mx/reader036/viewer/2022062320/56649c885503460f9494016f/html5/thumbnails/11.jpg)
GAMS + Epsilon
![Page 12: Two Ways to Run GAMS GAMS / MPSGE Course: Yerevan, Armenia May 3 – 7, 2010](https://reader036.vdocuments.mx/reader036/viewer/2022062320/56649c885503460f9494016f/html5/thumbnails/12.jpg)
GAMS + Epsilon
Pros:◦ Easier to see where files are◦ More powerful text editor◦ Doesn’t require the mouse
Cons:◦ Harder to get Started◦ Requires learning about your computer◦ Can’t easily use the mouse◦ Must learn to use a text editor◦ Must learn to use MS-Dos commands