PySCIPOpt
Python Interface to the SCIP Optimization Suite
ssa.py File Reference

multi-stage (serial) safety stock allocation model More...

Go to the source code of this file.

Functions

def ssa (n, h, K, f, T)
 
def make_data ()
 
def f (i, k)
 

Variables

 z
 
 sigma
 
 h
 
 T
 
 K
 
 n
 
 model = ssa(n,h,K,f,T)
 
 x
 
 s
 
 L
 

Detailed Description

multi-stage (serial) safety stock allocation model

Definition in file ssa.py.

Function Documentation

def ssa.make_data ( )
creates example data set

Definition at line 57 of file ssa.py.

def ssa.ssa (   n,
  h,
  K,
  f,
  T 
)
ssa -- multi-stage (serial) safety stock allocation model
Parameters:
    - n: number of stages
    - h[i]: inventory cost on stage i
    - K: number of linear segments
    - f: (non-linear) cost function
    - T[i]: production lead time on stage i
Returns the model with the piecewise linear relation on added variables x, f, and z.

Definition at line 14 of file ssa.py.