GAMS Python API - Tutorial and Examples
simple_cutstock.py File Reference

This example implements a column generation approach to solve the cutting stock problem. More...

Go to the source code of this file.

Variables

dictionary simple_cutstock.d = { "i1": 97, "i2": 610, "i3": 395, "i4": 211 }
 
dictionary simple_cutstock.w = { "i1": 47, "i2": 36, "i3": 31, "i4": 14 }
 
int simple_cutstock.r = 100
 
 simple_cutstock.ws = GamsWorkspace(system_directory = sys.argv[1])
 
 simple_cutstock.cs = Cutstock(ws)
 
 simple_cutstock.value
 
 simple_cutstock.all_model_types
 
 simple_cutstock.output
 

Detailed Description

This example implements a column generation approach to solve the cutting stock problem.

In this program, the column generation scheme has been implemented in GAMS. Moreover the GAMS model with the input and output data has been wrapped in a class that separates all interaction with GAMS from the driving application.

Definition in file simple_cutstock.py.