discrete_optimization.lotsizing.generic_solver.dp package
Submodules
discrete_optimization.lotsizing.generic_solver.dp.generic_dp_solver module
- class discrete_optimization.lotsizing.generic_solver.dp.generic_dp_solver.GenericLotSizingDp(problem: GenericLotSizingProblem, params_objective_function: ParamsObjectiveFunction | None = None, **kwargs)[source]
Bases:
DpSolver,WarmstartMixin- add_additional_dual_bounds: bool = False
- add_dual_bounds() None[source]
Add multiple dual bounds to guide the search.
Each bound provides a different perspective on the remaining cost, giving the solver more information for pruning.
- add_transition_dominance: bool = False
- allow_backorder: bool = False
- force_unmet_zero: bool = True
- init_model(**kwargs: Any) None[source]
Initialize internal model used to solve.
Can initialize a ortools, milp, gurobi, … model.
- lookahead_demand: int = 5
- max_backorder: int = 5
- penalty_advance_time: int = 500000
- problem: GenericLotSizingProblem
- retrieve_solution(sol: Solution) ProductionBasedSolution[source]
- set_warm_start(solution: ProductionBasedSolution) None[source]
Make the solver warm start from the given solution.