Skip to content

Commit

Permalink
Experiment with different solver parameters to fix performance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hanno-becker committed Apr 23, 2024
1 parent dc331d4 commit 90abaf7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions slothy/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2885,6 +2885,12 @@ def _init_external_model_and_solver(self):
self._model.cp_solver = cp_model.CpSolver()
self._model.cp_solver.random_seed = self.config.solver_random_seed

# cf https://github.com/google/or-tools/issues/4166
self._model.cp_solver.parameters.linearization_level = 0
self._model.cp_solver.parameters.use_rins_lns = False
self._model.cp_solver.parameters.use_feasibility_pump = False
self._model.cp_solver.parameters.cp_model_probing_level = 0

# There is a bug in OR-Tools, https://github.com/google/or-tools/issues/3483,
# that causes models to be incorrectly classes as INFEASIBLE at times.
# The following turns of the buggy parts of the code:
Expand Down

0 comments on commit 90abaf7

Please sign in to comment.