Loading...
Searching...
No Matches
com.gams.examples.cutstock.CutstockModel Class Reference

This example shows the wrapper model of a cutstock problem based on the simple GAMS [cutstock] model from the GAMS Model Library. More...

Pulic Methods

 CutstockModel (GAMSWorkspace ws)
 CutstockModel constructor.
 
void run ()
 Executes the cutstock model.
 
void run (PrintStream output)
 Executes the cutstock model.
 
GAMSSet getWidths ()
 get an input symbol, i : widths
 
GAMSParameter getRawWidth ()
 get an input symbol, r : raw width
 
GAMSParameter getDemand ()
 get an input symbol, d : demand
 
GAMSParameter getWidth ()
 get an input symbol, w : width
 
GAMSParameter getPatRep ()
 get an output symbol, patrep : Solution pattern report
 
GAMSOptions getOpt ()
 get Options for the execution of the cutstock model
 
String getModelSource ()
 get the source of cutstock model
 

Detailed Description

This example shows the wrapper model of a cutstock problem based on the simple GAMS [cutstock] model from the GAMS Model Library.

Definition at line 17 of file CutstockModel.java.

Constructors

◆ CutstockModel()

com.gams.examples.cutstock.CutstockModel.CutstockModel ( GAMSWorkspace  ws)

CutstockModel constructor.

Parameters
wsa GAMSWorkspace where the files are located

Definition at line 32 of file CutstockModel.java.

Methods

◆ run()

void com.gams.examples.cutstock.CutstockModel.run ( PrintStream  output)

Executes the cutstock model.

Parameters
outputStream to capture GAMS log

Definition at line 58 of file CutstockModel.java.