Skip to content

Commit

Permalink
Tweak OR-Tools CP-SAT solver parameters
Browse files Browse the repository at this point in the history
Following suggestions in google/or-tools#4166
  • Loading branch information
hanno-becker committed Apr 1, 2024
1 parent 7dc881a commit 5e9cfdc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions slothy/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3130,6 +3130,9 @@ 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

self._model.cp_solver.parameters.search_bracnhing = cp_model.FIXED_SEARCH
self._model.cp_solver.parameters.num_workers = 1

# 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 5e9cfdc

Please sign in to comment.