mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2026-01-20 18:09:42 +01:00
changed from SolveWithSolutionCallback to Solver as of OR-Tools version change
This commit is contained in:
@@ -201,7 +201,7 @@ class UniversalSchedulingSolver:
|
||||
|
||||
# Solve with callback
|
||||
callback = SimpleSolutionCallback()
|
||||
status = self.solver.SolveWithSolutionCallback(self.model, callback)
|
||||
status = self.solver.Solve(self.model, callback)
|
||||
|
||||
result = self._format_solution(status, cp_vars, model_data)
|
||||
result['metadata']['constraintsAdded'] = constraints_added
|
||||
|
||||
Reference in New Issue
Block a user