Functions | |
def | f (i, k) |
def | make_data () |
def | ssa (n, h, K, f, T) |
Variables | |
h | |
K | |
L | |
def | model = ssa(n, h, K, f, T) |
n | |
s | |
sigma | |
T | |
x | |
z | |
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 16 of file ssa.py.
References piecewise.convex_comb_sos(), f(), and pyscipopt.expr.quicksum().