polish all java and C# ModelBuilder samples

This commit is contained in:
Laurent Perron
2023-11-02 12:06:04 +01:00
parent 58d77a4ae9
commit f8e8f25522
6 changed files with 272 additions and 18 deletions

View File

@@ -74,9 +74,13 @@ public final class CloneModelMb {
System.out.println("Number of constraints in the cloned model = " + modelCopy.numConstraints());
// [END clone]
// [START solve]
// Solve with the SCIP MIP solver.
// [START solver]
// Create the solver with the SCIP backend and check it is supported.
ModelSolver solver = new ModelSolver("scip");
if (!solver.solverIsSupported()) return;
// [END solver]
// [START solve]
final SolveStatus status = solver.solve(modelCopy);
// [END solve]