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 | |
multi-stage (serial) safety stock allocation model
Definition in 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.