polish on model_builder code
This commit is contained in:
@@ -87,7 +87,9 @@ public class BinPackingMb
|
||||
// Create the solver with the SCIP backend and check it is supported.
|
||||
Solver solver = new Solver("SCIP");
|
||||
if (!solver.SolverIsSupported())
|
||||
{
|
||||
return;
|
||||
}
|
||||
// [END solver]
|
||||
|
||||
// [START solve]
|
||||
|
||||
@@ -69,7 +69,9 @@ public class SimpleMipProgramMb
|
||||
// Create the solver with the CP-SAT backend and checks it is supported.
|
||||
Solver solver = new Solver("sat");
|
||||
if (!solver.SolverIsSupported())
|
||||
{
|
||||
return;
|
||||
}
|
||||
// [END solver]
|
||||
|
||||
// [START solve]
|
||||
|
||||
Reference in New Issue
Block a user