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 | |
| def lotsizing_lazy.mk_example | ( | ) |
mk_example: book example for the single item lot sizing
Definition at line 134 of file lotsizing_lazy.py.
References pyscipopt.Multidict.multidict().
| 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 59 of file lotsizing_lazy.py.
| 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 92 of file lotsizing_lazy.py.
References sils().
| c |
Definition at line 149 of file lotsizing_lazy.py.
| conshdlr = Conshdlr_sils() |
Definition at line 160 of file lotsizing_lazy.py.
| d |
Definition at line 149 of file lotsizing_lazy.py.
| f |
Definition at line 149 of file lotsizing_lazy.py.
| h |
Definition at line 149 of file lotsizing_lazy.py.
| I |
Definition at line 152 of file lotsizing_lazy.py.
| T |
Definition at line 149 of file lotsizing_lazy.py.
| x |
Definition at line 152 of file lotsizing_lazy.py.
| y |
Definition at line 152 of file lotsizing_lazy.py.