[CP-SAT] deprecate SearchAllSolutions and SolveWithSolutionCallback

This commit is contained in:
Laurent Perron
2021-05-03 12:11:39 +02:00
parent bd43a1c004
commit efd16c78da
72 changed files with 241 additions and 99 deletions

View File

@@ -202,7 +202,7 @@ def solve_with_discrete_model():
### Solve model.
solver = cp_model.CpSolver()
solution_printer = WeddingChartPrinter(seats, names, num_tables, num_guests)
solver.SolveWithSolutionCallback(model, solution_printer)
solver.Solve(model, solution_printer)
print("Statistics")
print(" - conflicts : %i" % solver.NumConflicts())