java: Fix samples using SCIP

This commit is contained in:
Mizux Seiha
2020-09-17 17:16:12 +02:00
parent 8058b32d5f
commit 9d8609940a
5 changed files with 20 additions and 0 deletions

View File

@@ -45,6 +45,10 @@ public class MultipleKnapsackMip {
// [START solver]
// Create the linear solver with the SCIP backend.
MPSolver solver = MPSolver.createSolver("SCIP");
if (solver == null) {
System.out.println("Could not create solver SCIP");
return;
}
// [END solver]
// [START program_part2]