[MPSolver] Add better code to interrupt solve; rewrite thread management code when using the CP-SAT solver backend
This commit is contained in:
@@ -64,7 +64,6 @@ def IntegerProgrammingExample():
|
||||
|
||||
# Solve the problem and print the solution.
|
||||
# [START print_solution]
|
||||
solver.SetNumThreads(1)
|
||||
solver.Solve()
|
||||
# Print the objective value of the solution.
|
||||
print('Maximum objective function value = %d' % solver.Objective().Value())
|
||||
|
||||
Reference in New Issue
Block a user