examples fixup

This commit is contained in:
Corentin Le Molgat
2025-02-28 17:35:18 +01:00
parent dbf78f7a6c
commit 854a038027
5 changed files with 88 additions and 76 deletions

View File

@@ -79,7 +79,7 @@ public class LinearProgramming {
// Verify that the solution satisfies all constraints (when using solvers
// others than GLOP_LINEAR_PROGRAMMING, this is highly recommended!).
if (!solver.verifySolution(/*tolerance=*/1e-7, /*log_errors=*/true)) {
if (!solver.verifySolution(/* tolerance= */ 1e-7, /* log_errors= */ true)) {
System.err.println("The solution returned by the solver violated the"
+ " problem constraints by at least 1e-7");
return;