@@ -30,7 +30,7 @@ private static void runLinearProgrammingExample(String solverType, boolean print
30
30
System .out .println ("Could not create solver " + solverType );
31
31
return ;
32
32
}
33
- double infinity = java . lang . Double .POSITIVE_INFINITY ;
33
+ double infinity = Double .POSITIVE_INFINITY ;
34
34
// x1, x2 and x3 are continuous non-negative variables.
35
35
MPVariable x1 = solver .makeNumVar (0.0 , infinity , "x1" );
36
36
MPVariable x2 = solver .makeNumVar (0.0 , infinity , "x2" );
@@ -65,7 +65,7 @@ private static void runLinearProgrammingExample(String solverType, boolean print
65
65
System .out .println ("Number of constraints = " + solver .numConstraints ());
66
66
67
67
if (printModel ) {
68
- String model = solver .exportModelAsLpFormat (/* obfuscate = */ false );
68
+ String model = solver .exportModelAsLpFormat (/* obfuscate= */ false );
69
69
System .out .println (model );
70
70
}
71
71
@@ -79,7 +79,7 @@ private static void runLinearProgrammingExample(String solverType, boolean print
79
79
80
80
// Verify that the solution satisfies all constraints (when using solvers
81
81
// others than GLOP_LINEAR_PROGRAMMING, this is highly recommended!).
82
- if (!solver .verifySolution (/*tolerance=*/ 1e-7 , /* log_errors= */ true )) {
82
+ if (!solver .verifySolution (/* tolerance= */ 1e-7 , /* log_errors= */ true )) {
83
83
System .err .println ("The solution returned by the solver violated the"
84
84
+ " problem constraints by at least 1e-7" );
85
85
return ;
0 commit comments