backport cleanup from main

This commit is contained in:
Corentin Le Molgat
2024-11-15 14:42:52 +01:00
parent 63d207a99c
commit fc24e25cb3
5 changed files with 208 additions and 249 deletions

View File

@@ -30,7 +30,7 @@ public class IntegerProgramming {
System.out.println("Could not create solver " + solverType);
return;
}
double infinity = java.lang.Double.POSITIVE_INFINITY;
double infinity = Double.POSITIVE_INFINITY;
// x1 and x2 are integer non-negative variables.
MPVariable x1 = solver.makeIntVar(0.0, infinity, "x1");
MPVariable x2 = solver.makeIntVar(0.0, infinity, "x2");