[LP] change default tolerance on verify solution; add missing base include

This commit is contained in:
Laurent Perron
2021-11-28 13:01:55 +01:00
parent 45d87f2ba5
commit 9fefaadfaf
12 changed files with 18 additions and 6 deletions

View File

@@ -98,7 +98,7 @@ from ortools.linear_solver.linear_solver_natural_api import VariableExpr
// Change the API of LoadSolutionFromProto() to simply return a boolean.
bool LoadSolutionFromProto(
const operations_research::MPSolutionResponse& response,
double tolerance = operations_research::MPSolverParameters::kDefaultPrimalTolerance) {
double tolerance = std::numeric_limits<double>::infinity()) {
const absl::Status status =
$self->LoadSolutionFromProto(response, tolerance);
LOG_IF(ERROR, !status.ok()) << "LoadSolutionFromProto() failed: " << status;