partial sync with main (without the routing part)

This commit is contained in:
Laurent Perron
2024-07-12 13:56:11 +02:00
parent 2c333f58a3
commit 21a75638c2
266 changed files with 13149 additions and 6408 deletions

View File

@@ -18,6 +18,7 @@ import com.google.ortools.Loader;
import com.google.ortools.sat.CpModel;
import com.google.ortools.sat.CpSolver;
import com.google.ortools.sat.CpSolverSolutionCallback;
import com.google.ortools.sat.CpSolverStatus;
import com.google.ortools.sat.IntVar;
/** Code sample that solves a model and displays all solutions. */
@@ -74,7 +75,7 @@ public class SearchForAllSolutionsSampleSat {
// Tell the solver to enumerate all solutions.
solver.getParameters().setEnumerateAllSolutions(true);
// And solve.
solver.solve(model, cb);
CpSolverStatus unusedStatus = solver.solve(model, cb);
// [END solve]
System.out.println(cb.getSolutionCount() + " solutions found.");