Examples
These files are available with the GAMS distribution under the following directory:
 alias.pyThe Object-oriented API does not have the concept of a GAMS alias
 benders_2stage.pyThis example demonstrates a sequential implementation of a simple Benders decomposition method for a stochastic linear program
 benders_2stage_mt.pyThis example demonstrates a parallel implementation of a simple Benders decomposition method for a stochastic linear program
 clad.pyThis example demonstrates how to implement a complex termination criterion for a difficult MIP using GAMS/Cplex
 cutstock.pyThis example implements a column generation approach to solve the cutting stock problem
 cutstock_class.pyThis example shows the wrapper model of a cutstock problem based on the simple GAMS [cutstock] model from the GAMS Model Library
 domain_checking.pyEnforcing referential integrity also known in the GAMS lingo as domain checking is an essential and important part of GAMS
 interrupt.pyCtrl-C in a regular console application results in the interrupt of the entire job
 interrupt_gui.pyThis small example demonstrates how to run a GAMS model in a graphical user interface
 iterator.pyThis example shows different ways on how to iterate the GamsSymbols in a GamsDatabase and records of a specific symbol The example shows two different ways on how to iterate the records of a GamsSymbol:
 markowitz.pyThis is a small graphical program that plots the efficient frontier of Markowitz' portfolio selection problem with the two objectives return and risk
 simple_cutstock.pyThis example implements a column generation approach to solve the cutting stock problem
 special_values.pyThis example shows how special values of the programming language (e.g
 transport1.pyThis is the 1st model in a series of tutorial examples
 transport10.pyThis is the 10th model in a series of tutorial examples
 transport11.pyThis is the 11th model in a series of tutorial examples
 transport12.pyThis is the 12th model in a series of tutorial examples
 transport13.pyThis is the 13th model in a series of tutorial examples
 transport14.pyThis is the 14th model in a series of tutorial examples
 transport2.pyThis is the 2nd model in a series of tutorial examples
 transport3.pyThis is the 3rd model in a series of tutorial examples
 transport4.pyThis is the 4th model in a series of tutorial examples
 transport5.pyThis is the 5th model in a series of tutorial examples
 transport6.pyThis is the 6th model in a series of tutorial examples
 transport7.pyThis is the 7th model in a series of tutorial examples
 transport8.pyThis is the 8th model in a series of tutorial examples
 transport8a.pyThis is a variation of the transport8.py example and it uses the multiprocessing module instead of threads in order to achieve parallel execution
 transport9.pyThis is the 9th model in a series of tutorial examples
 transport_class.pyThis example shows the wrapper model of a transportation problem based on the simple GAMS [trnsport] model from the GAMS Model Library
 tsp.pyThis example demonstrates how to use a GamsModelInstance to implement the subtour elimination algorithm for the Traveling Salesman Problem (TSP) problem
 warehouse.pyThis example demonstrates how to solve a simple GAMS model to assign stores to warehouses for different data sets in parallel