linear_solver: Enable multithread in integer programming example

This commit is contained in:
Mizux Seiha
2021-06-23 14:36:49 +02:00
parent 846e49c04e
commit 35d896ce55
2 changed files with 2 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ void IntegerProgrammingExample() {
// [END objective]
// [START solve]
solver->SetNumThreads(8);
const MPSolver::ResultStatus result_status = solver->Solve();
// Check that the problem has an optimal solution.
if (result_status != MPSolver::OPTIMAL) {