cutstock_class.Cutstock Class Reference

Pulic Methods

def __init__ (self, ws)
 
def run (self, output=None)
 
def get_model_source (self)
 

Public Attributes

 opt
 
 widths
 
 raw_width
 
 demand
 
 width
 
 pat_rep
 

Detailed Description

Definition at line 10 of file cutstock_class.py.

Constructors

◆ __init__()

def cutstock_class.Cutstock.__init__ (   self,
  ws 
)

Definition at line 12 of file cutstock_class.py.

12 def __init__(self, ws):
13  self._ws = ws
14  self.opt = ws.add_options()
15  self._cutstock_data = ws.add_database(in_model_name = "gdxincname")
16 
17  self.opt.solvelink = SolveLink.LoadLibrary
18  self.opt.defines["dbOut1"] = "dbOut1"
19 
20  self.widths = self._cutstock_data.add_set("i", 1, "widths")
21  self.raw_width = self._cutstock_data.add_parameter("r", 0, "raw width")
22  self.demand = self._cutstock_data.add_parameter_dc("d", [self.widths], "demand")
23  self.width = self._cutstock_data.add_parameter_dc("w", [self.widths], "width")
24 
25  self._job = ws.add_job_from_string(self.get_model_source())
26 

References cutstock_class.Cutstock._ws.

Methods

◆ get_model_source()

def cutstock_class.Cutstock.get_model_source (   self)

Definition at line 32 of file cutstock_class.py.

◆ run()

def cutstock_class.Cutstock.run (   self,
  output = None 
)

Member Data Documentation

◆ demand

cutstock_class.Cutstock.demand

Definition at line 22 of file cutstock_class.py.

◆ opt

cutstock_class.Cutstock.opt

Definition at line 14 of file cutstock_class.py.

Referenced by cutstock_class.Cutstock.run(), and transport_class.Transport.run().

◆ pat_rep

cutstock_class.Cutstock.pat_rep

Definition at line 30 of file cutstock_class.py.

◆ raw_width

cutstock_class.Cutstock.raw_width

Definition at line 21 of file cutstock_class.py.

◆ width

cutstock_class.Cutstock.width

Definition at line 23 of file cutstock_class.py.

◆ widths

cutstock_class.Cutstock.widths

Definition at line 20 of file cutstock_class.py.