PySCIPOpt  4.3.0
Python Interface for the SCIP Optimization Suite
lotsizing_lazy Namespace Reference

Classes

class  Conshdlr_sils
 

Functions

def mk_example ()
 
def sils (T, f, c, d, h)
 
def sils_cut (T, f, c, d, h, conshdlr)
 

Variables

 c
 
 conshdlr = Conshdlr_sils()
 
 d
 
 f
 
 h
 
 I
 
def model = sils(T,f,c,d,h)
 
 T
 
 x
 
 y
 

Function Documentation

◆ mk_example()

def lotsizing_lazy.mk_example ( )
mk_example: book example for the single item lot sizing

Definition at line 130 of file lotsizing_lazy.py.

References pyscipopt.Multidict.multidict().

◆ sils()

def lotsizing_lazy.sils (   T,
  f,
  c,
  d,
  h 
)
sils -- LP lotsizing for the single item lot sizing problem
Parameters:
    - T: number of periods
    - P: set of products
    - f[t]: set-up costs (on period t)
    - c[t]: variable costs
    - d[t]: demand values
    - h[t]: holding costs
Returns a model, ready to be solved.

Definition at line 57 of file lotsizing_lazy.py.

◆ sils_cut()

def lotsizing_lazy.sils_cut (   T,
  f,
  c,
  d,
  h,
  conshdlr 
)
solve_sils -- solve the lot sizing problem with cutting planes
   - start with a relaxed model
   - used lazy constraints to elimitate fractional setup variables with cutting planes
Parameters:
    - T: number of periods
    - P: set of products
    - f[t]: set-up costs (on period t)
    - c[t]: variable costs
    - d[t]: demand values
    - h[t]: holding costs
Returns the final model solved, with all necessary cuts added.

Definition at line 89 of file lotsizing_lazy.py.

References sils().

Variable Documentation

◆ c

c

Definition at line 144 of file lotsizing_lazy.py.

◆ conshdlr

conshdlr = Conshdlr_sils()

Definition at line 154 of file lotsizing_lazy.py.

◆ d

d

Definition at line 144 of file lotsizing_lazy.py.

◆ f

f

Definition at line 144 of file lotsizing_lazy.py.

◆ h

h

Definition at line 144 of file lotsizing_lazy.py.

◆ I

I

Definition at line 147 of file lotsizing_lazy.py.

◆ model

def model = sils(T,f,c,d,h)

Definition at line 146 of file lotsizing_lazy.py.

◆ T

T

Definition at line 144 of file lotsizing_lazy.py.

◆ x

x

Definition at line 147 of file lotsizing_lazy.py.

◆ y

y

Definition at line 147 of file lotsizing_lazy.py.