20#include "absl/memory/memory.h"
21#include "absl/strings/match.h"
22#include "absl/strings/str_format.h"
34#ifndef __PORTABLE_PLATFORM__
39 "Tells whether do dump the problem to a protobuf file.");
41 "Whether the proto dump file is compressed.");
43 "Whether the proto dump file is binary.");
45 "Number for the dump file, in the form name-000048.pb. "
46 "If < 0, the file is automatically numbered from the number of "
47 "calls to LPSolver::Solve().");
49 "Directory where dump files are written.");
51 "Base name for dump files. LinearProgram::name_ is used if "
52 "lp_dump_file_basename is empty. If LinearProgram::name_ is "
53 "empty, \"linear_program_dump_file\" is used.");
55 "Override any user parameters with the value of this flag. This is "
56 "interpreted as a GlopParameters proto in text format.");
69void DumpLinearProgramIfRequiredByFlags(
const LinearProgram& linear_program,
71 if (!absl::GetFlag(FLAGS_lp_dump_to_proto_file))
return;
72#ifdef __PORTABLE_PLATFORM__
73 LOG(
WARNING) <<
"DumpLinearProgramIfRequiredByFlags(linear_program, num) "
74 "requested for linear_program.name()='"
75 << linear_program.name() <<
"', num=" << num
76 <<
" but is not implemented for this platform.";
78 std::string filename = absl::GetFlag(FLAGS_lp_dump_file_basename);
79 if (filename.empty()) {
80 if (linear_program.name().empty()) {
81 filename =
"linear_program_dump";
83 filename = linear_program.name();
86 const int file_num = absl::GetFlag(FLAGS_lp_dump_file_number) >= 0
87 ? absl::GetFlag(FLAGS_lp_dump_file_number)
89 absl::StrAppendFormat(&filename,
"-%06d.pb", file_num);
90 const std::string filespec =
91 absl::StrCat(absl::GetFlag(FLAGS_lp_dump_dir),
"/", filename);
94 const ProtoWriteFormat write_format = absl::GetFlag(FLAGS_lp_dump_binary_file)
98 absl::GetFlag(FLAGS_lp_dump_compressed_file))) {
99 LOG(DFATAL) <<
"Could not write " << filespec;
114#ifndef __PORTABLE_PLATFORM__
115 if (!absl::GetFlag(FLAGS_glop_params).empty()) {
117 CHECK(google::protobuf::TextFormat::ParseFromString(
118 absl::GetFlag(FLAGS_glop_params), &flag_params));
139 LOG(DFATAL) <<
"SolveWithTimeLimit() called with a nullptr time_limit.";
143 num_revised_simplex_iterations_ = 0;
144 DumpLinearProgramIfRequiredByFlags(lp, num_solves_);
148 <<
"\n******************************************************************"
149 "\n* WARNING: Glop will be very slow because it will use DCHECKs *"
150 "\n* to verify the results and the precision of the solver. *"
151 "\n* You can gain at least an order of magnitude speedup by *"
152 "\n* compiling with optimizations enabled and by defining NDEBUG. *"
153 "\n******************************************************************";
173 LOG(DFATAL) <<
"The columns of the given linear program should be ordered "
174 <<
"by row and contain no zero coefficients. Call CleanUp() "
175 <<
"on it before calling Solve().";
181 "The given linear program is invalid. It contains NaNs, "
182 "infinite coefficients or invalid bounds specification. "
183 "You can construct it in debug mode to get the exact cause.");
196 const bool postsolve_is_needed = preprocessor.
Run(¤t_linear_program_);
218 RunRevisedSimplexIfNeeded(&solution,
time_limit);
237 ResizeSolution(RowIndex(0), ColIndex(0));
238 revised_simplex_.reset(
nullptr);
268 if (revised_simplex_ ==
nullptr) {
269 revised_simplex_ = absl::make_unique<RevisedSimplex>();
270 revised_simplex_->SetLogger(&logger_);
272 revised_simplex_->LoadStateForNextSolve(state);
274 LOG(
WARNING) <<
"In GLOP, SetInitialBasis() was called but the parameter "
275 "use_preprocessing is true, this will likely not result in "
299 SOLVER_LOG(&logger_,
"Final unscaled solution:");
301 if (!IsProblemSolutionConsistent(lp, solution)) {
302 SOLVER_LOG(&logger_,
"Inconsistency detected in the solution.");
317 ComputeReducedCosts(lp);
318 const Fractional primal_objective_value = ComputeObjective(lp);
319 const Fractional dual_objective_value = ComputeDualObjective(lp);
320 SOLVER_LOG(&logger_,
"Primal objective (before moving primal/dual values) = ",
322 "%.15E", ProblemObjectiveValue(lp, primal_objective_value)));
323 SOLVER_LOG(&logger_,
"Dual objective (before moving primal/dual values) = ",
324 absl::StrFormat(
"%.15E",
325 ProblemObjectiveValue(lp, dual_objective_value)));
330 MovePrimalValuesWithinBounds(lp);
331 MoveDualValuesWithinBounds(lp);
335 problem_objective_value_ = ProblemObjectiveValue(lp, ComputeObjective(lp));
336 SOLVER_LOG(&logger_,
"Primal objective (after moving primal/dual values) = ",
337 absl::StrFormat(
"%.15E", problem_objective_value_));
339 ComputeReducedCosts(lp);
340 ComputeConstraintActivities(lp);
350 bool rhs_perturbation_is_too_large =
false;
351 bool cost_perturbation_is_too_large =
false;
352 bool primal_infeasibility_is_too_large =
false;
353 bool dual_infeasibility_is_too_large =
false;
354 bool primal_residual_is_too_large =
false;
355 bool dual_residual_is_too_large =
false;
358 ComputeMaxRhsPerturbationToEnforceOptimality(lp,
359 &rhs_perturbation_is_too_large);
360 ComputeMaxCostPerturbationToEnforceOptimality(
361 lp, &cost_perturbation_is_too_large);
362 const double primal_infeasibility =
363 ComputePrimalValueInfeasibility(lp, &primal_infeasibility_is_too_large);
364 const double dual_infeasibility =
365 ComputeDualValueInfeasibility(lp, &dual_infeasibility_is_too_large);
366 const double primal_residual =
367 ComputeActivityInfeasibility(lp, &primal_residual_is_too_large);
368 const double dual_residual =
369 ComputeReducedCostInfeasibility(lp, &dual_residual_is_too_large);
374 max_absolute_primal_infeasibility_ =
375 std::max(primal_infeasibility, primal_residual);
376 max_absolute_dual_infeasibility_ =
377 std::max(dual_infeasibility, dual_residual);
378 SOLVER_LOG(&logger_,
"Max. primal infeasibility = ",
379 max_absolute_primal_infeasibility_);
381 "Max. dual infeasibility = ", max_absolute_dual_infeasibility_);
386 const double objective_error_ub = ComputeMaxExpectedObjectiveError(lp);
387 SOLVER_LOG(&logger_,
"Objective error <= ", objective_error_ub);
393 if (primal_infeasibility != 0.0 || dual_infeasibility != 0.0) {
394 LOG(
ERROR) <<
"Primal/dual values have been moved to their bounds. "
395 <<
"Therefore the primal/dual infeasibilities should be "
396 <<
"exactly zero (but not the residuals). If this message "
397 <<
"appears, there is probably a bug in "
398 <<
"MovePrimalValuesWithinBounds() or in "
399 <<
"MoveDualValuesWithinBounds().";
401 if (rhs_perturbation_is_too_large) {
402 SOLVER_LOG(&logger_,
"The needed rhs perturbation is too large !!");
407 if (cost_perturbation_is_too_large) {
408 SOLVER_LOG(&logger_,
"The needed cost perturbation is too large !!");
419 if (std::abs(primal_objective_value - dual_objective_value) >
420 objective_error_ub) {
422 "The objective gap of the final solution is too large.");
430 (primal_residual_is_too_large || primal_infeasibility_is_too_large)) {
432 "The primal infeasibility of the final solution is too large.");
439 (dual_residual_is_too_large || dual_infeasibility_is_too_large)) {
441 "The dual infeasibility of the final solution is too large.");
447 may_have_multiple_solutions_ =
452bool LPSolver::IsOptimalSolutionOnFacet(
const LinearProgram& lp) {
457 const double kReducedCostTolerance = 1e-9;
458 const double kBoundTolerance = 1e-7;
460 for (ColIndex
col(0);
col < num_cols; ++
col) {
466 kReducedCostTolerance) &&
473 for (RowIndex
row(0);
row < num_rows; ++
row) {
479 kReducedCostTolerance) &&
489 return problem_objective_value_;
493 return max_absolute_primal_infeasibility_;
497 return max_absolute_dual_infeasibility_;
501 return may_have_multiple_solutions_;
505 return num_revised_simplex_iterations_;
509 return revised_simplex_ ==
nullptr ? 0.0
510 : revised_simplex_->DeterministicTime();
513void LPSolver::MovePrimalValuesWithinBounds(
const LinearProgram& lp) {
517 for (ColIndex
col(0);
col < num_cols; ++
col) {
527 SOLVER_LOG(&logger_,
"Max. primal values move = ", error);
530void LPSolver::MoveDualValuesWithinBounds(
const LinearProgram& lp) {
531 const RowIndex num_rows = lp.num_constraints();
533 const Fractional optimization_sign = lp.IsMaximizationProblem() ? -1.0 : 1.0;
535 for (RowIndex
row(0);
row < num_rows; ++
row) {
540 Fractional minimization_dual_value = optimization_sign * dual_values_[
row];
542 error =
std::max(error, minimization_dual_value);
543 minimization_dual_value = 0.0;
546 error =
std::max(error, -minimization_dual_value);
547 minimization_dual_value = 0.0;
549 dual_values_[
row] = optimization_sign * minimization_dual_value;
551 SOLVER_LOG(&logger_,
"Max. dual values move = ", error);
554void LPSolver::ResizeSolution(RowIndex num_rows, ColIndex num_cols) {
555 primal_values_.
resize(num_cols, 0.0);
556 reduced_costs_.
resize(num_cols, 0.0);
559 dual_values_.resize(num_rows, 0.0);
560 constraint_activities_.
resize(num_rows, 0.0);
564void LPSolver::RunRevisedSimplexIfNeeded(ProblemSolution* solution,
575 if (revised_simplex_ ==
nullptr) {
576 revised_simplex_ = absl::make_unique<RevisedSimplex>();
577 revised_simplex_->SetLogger(&logger_);
579 revised_simplex_->SetParameters(parameters_);
580 if (revised_simplex_->Solve(current_linear_program_,
time_limit).ok()) {
581 num_revised_simplex_iterations_ = revised_simplex_->GetNumberOfIterations();
582 solution->status = revised_simplex_->GetProblemStatus();
585 const ColIndex num_cols = solution->primal_values.size();
586 DCHECK_LE(num_cols, revised_simplex_->GetProblemNumCols());
587 for (ColIndex
col(0);
col < num_cols; ++
col) {
588 solution->primal_values[
col] = revised_simplex_->GetVariableValue(
col);
589 solution->variable_statuses[
col] =
590 revised_simplex_->GetVariableStatus(
col);
592 const RowIndex num_rows = revised_simplex_->GetProblemNumRows();
593 DCHECK_EQ(solution->dual_values.size(), num_rows);
594 for (RowIndex
row(0);
row < num_rows; ++
row) {
595 solution->dual_values[
row] = revised_simplex_->GetDualValue(
row);
596 solution->constraint_statuses[
row] =
597 revised_simplex_->GetConstraintStatus(
row);
601 primal_ray_ = revised_simplex_->GetPrimalRay();
603 primal_ray_.
resize(num_cols);
605 constraints_dual_ray_ = revised_simplex_->GetDualRay();
606 variable_bounds_dual_ray_ =
607 revised_simplex_->GetDualRayRowCombination();
609 variable_bounds_dual_ray_.
resize(num_cols);
628 SOLVER_LOG(&logger_,
"Error during the revised simplex algorithm.");
638 VLOG(1) <<
"Variable " <<
col <<
" status is "
640 <<
" and its bounds are [" << lb <<
", " << ub <<
"].";
645 VLOG(1) <<
"Constraint " <<
row <<
" status is "
647 <<
", " << ub <<
"].";
652bool LPSolver::IsProblemSolutionConsistent(
653 const LinearProgram& lp,
const ProblemSolution& solution)
const {
654 const RowIndex num_rows = lp.num_constraints();
655 const ColIndex num_cols = lp.num_variables();
656 if (solution.variable_statuses.size() != num_cols)
return false;
657 if (solution.constraint_statuses.size() != num_rows)
return false;
658 if (solution.primal_values.size() != num_cols)
return false;
659 if (solution.dual_values.size() != num_rows)
return false;
668 RowIndex num_basic_variables(0);
669 for (ColIndex
col(0);
col < num_cols; ++
col) {
674 switch (solution.variable_statuses[
col]) {
678 ++num_basic_variables;
696 if (
value != lb || lb == ub) {
717 for (RowIndex
row(0);
row < num_rows; ++
row) {
728 if (dual_value != 0.0) {
729 VLOG(1) <<
"Constraint " <<
row <<
" is BASIC, but its dual value is "
730 << dual_value <<
" instead of 0.";
733 ++num_basic_variables;
739 if (ub - lb > 1e-12) {
740 LogConstraintStatusError(
row,
status, lb, ub);
746 LogConstraintStatusError(
row,
status, lb, ub);
752 LogConstraintStatusError(
row,
status, lb, ub);
757 if (dual_value != 0.0) {
758 VLOG(1) <<
"Constraint " <<
row <<
" is FREE, but its dual value is "
759 << dual_value <<
" instead of 0.";
763 LogConstraintStatusError(
row,
status, lb, ub);
772 if (num_basic_variables != num_rows) {
773 VLOG(1) <<
"Wrong number of basic variables: " << num_basic_variables;
783Fractional LPSolver::ComputeMaxCostPerturbationToEnforceOptimality(
784 const LinearProgram& lp,
bool* is_too_large) {
786 const ColIndex num_cols = lp.num_variables();
787 const Fractional optimization_sign = lp.IsMaximizationProblem() ? -1.0 : 1.0;
789 for (ColIndex
col(0);
col < num_cols; ++
col) {
793 const Fractional reduced_cost = optimization_sign * reduced_costs_[
col];
798 max_cost_correction =
799 std::max(max_cost_correction, std::abs(reduced_cost));
801 std::abs(reduced_cost) >
802 AllowedError(tolerance, lp.objective_coefficients()[
col]);
805 SOLVER_LOG(&logger_,
"Max. cost perturbation = ", max_cost_correction);
806 return max_cost_correction;
811Fractional LPSolver::ComputeMaxRhsPerturbationToEnforceOptimality(
812 const LinearProgram& lp,
bool* is_too_large) {
814 const RowIndex num_rows = lp.num_constraints();
816 for (RowIndex
row(0);
row < num_rows; ++
row) {
826 allowed_error = AllowedError(tolerance,
lower_bound);
830 allowed_error = AllowedError(tolerance,
upper_bound);
832 max_rhs_correction =
std::max(max_rhs_correction, rhs_error);
833 *is_too_large |= rhs_error > allowed_error;
835 SOLVER_LOG(&logger_,
"Max. rhs perturbation = ", max_rhs_correction);
836 return max_rhs_correction;
839void LPSolver::ComputeConstraintActivities(
const LinearProgram& lp) {
840 const RowIndex num_rows = lp.num_constraints();
841 const ColIndex num_cols = lp.num_variables();
843 constraint_activities_.
assign(num_rows, 0.0);
844 for (ColIndex
col(0);
col < num_cols; ++
col) {
845 lp.GetSparseColumn(
col).AddMultipleToDenseVector(primal_values_[
col],
846 &constraint_activities_);
850void LPSolver::ComputeReducedCosts(
const LinearProgram& lp) {
851 const RowIndex num_rows = lp.num_constraints();
852 const ColIndex num_cols = lp.num_variables();
853 DCHECK_EQ(num_rows, dual_values_.size());
854 reduced_costs_.resize(num_cols, 0.0);
855 for (ColIndex
col(0);
col < num_cols; ++
col) {
856 reduced_costs_[
col] = lp.objective_coefficients()[
col] -
861double LPSolver::ComputeObjective(
const LinearProgram& lp) {
862 const ColIndex num_cols = lp.num_variables();
865 for (ColIndex
col(0);
col < num_cols; ++
col) {
866 sum.
Add(lp.objective_coefficients()[
col] * primal_values_[
col]);
887double LPSolver::ComputeDualObjective(
const LinearProgram& lp) {
891 const RowIndex num_rows = lp.num_constraints();
892 const Fractional optimization_sign = lp.IsMaximizationProblem() ? -1.0 : 1.0;
893 for (RowIndex
row(0);
row < num_rows; ++
row) {
898 const Fractional corrected_value = optimization_sign * dual_values_[
row];
923 const ColIndex num_cols = lp.num_variables();
924 for (ColIndex
col(0);
col < num_cols; ++
col) {
930 const Fractional reduced_cost = optimization_sign * reduced_costs_[
col];
936 reduced_cost > 0.0) {
939 reduced_cost < 0.0) {
945 dual_objective.Add(optimization_sign * correction);
947 return dual_objective.Value();
950double LPSolver::ComputeMaxExpectedObjectiveError(
const LinearProgram& lp) {
951 const ColIndex num_cols = lp.num_variables();
955 for (ColIndex
col(0);
col < num_cols; ++
col) {
959 primal_objective_error += std::abs(lp.objective_coefficients()[
col]) *
960 AllowedError(tolerance, primal_values_[
col]);
962 return primal_objective_error;
965double LPSolver::ComputePrimalValueInfeasibility(
const LinearProgram& lp,
966 bool* is_too_large) {
967 double infeasibility = 0.0;
969 const ColIndex num_cols = lp.num_variables();
970 for (ColIndex
col(0);
col < num_cols; ++
col) {
977 infeasibility =
std::max(infeasibility, error);
978 *is_too_large |= error > AllowedError(tolerance,
upper_bound);
983 infeasibility =
std::max(infeasibility, error);
984 *is_too_large |= error > AllowedError(tolerance,
upper_bound);
988 infeasibility =
std::max(infeasibility, error);
989 *is_too_large |= error > AllowedError(tolerance,
lower_bound);
992 return infeasibility;
995double LPSolver::ComputeActivityInfeasibility(
const LinearProgram& lp,
996 bool* is_too_large) {
997 double infeasibility = 0.0;
998 int num_problematic_rows(0);
999 const RowIndex num_rows = lp.num_constraints();
1001 for (RowIndex
row(0);
row < num_rows; ++
row) {
1010 VLOG(2) <<
"Row " <<
row.value() <<
" has activity " << activity
1011 <<
" which is different from " <<
upper_bound <<
" by "
1013 ++num_problematic_rows;
1020 if (row_excess > AllowedError(tolerance,
upper_bound)) {
1021 VLOG(2) <<
"Row " <<
row.value() <<
" has activity " << activity
1022 <<
", exceeding its upper bound " <<
upper_bound <<
" by "
1024 ++num_problematic_rows;
1026 infeasibility =
std::max(infeasibility, row_excess);
1030 if (row_deficit > AllowedError(tolerance,
lower_bound)) {
1031 VLOG(2) <<
"Row " <<
row.value() <<
" has activity " << activity
1032 <<
", below its lower bound " <<
lower_bound <<
" by "
1034 ++num_problematic_rows;
1036 infeasibility =
std::max(infeasibility, row_deficit);
1039 if (num_problematic_rows > 0) {
1040 *is_too_large =
true;
1041 VLOG(1) <<
"Number of infeasible rows = " << num_problematic_rows;
1043 return infeasibility;
1046double LPSolver::ComputeDualValueInfeasibility(
const LinearProgram& lp,
1047 bool* is_too_large) {
1049 const Fractional optimization_sign = lp.IsMaximizationProblem() ? -1.0 : 1.0;
1050 double infeasibility = 0.0;
1051 const RowIndex num_rows = lp.num_constraints();
1052 for (RowIndex
row(0);
row < num_rows; ++
row) {
1057 const Fractional minimization_dual_value = optimization_sign * dual_value;
1059 *is_too_large |= minimization_dual_value > allowed_error;
1060 infeasibility =
std::max(infeasibility, minimization_dual_value);
1063 *is_too_large |= -minimization_dual_value > allowed_error;
1064 infeasibility =
std::max(infeasibility, -minimization_dual_value);
1067 return infeasibility;
1070double LPSolver::ComputeReducedCostInfeasibility(
const LinearProgram& lp,
1071 bool* is_too_large) {
1072 const Fractional optimization_sign = lp.IsMaximizationProblem() ? -1.0 : 1.0;
1073 double infeasibility = 0.0;
1074 const ColIndex num_cols = lp.num_variables();
1076 for (ColIndex
col(0);
col < num_cols; ++
col) {
1082 optimization_sign * reduced_cost;
1084 AllowedError(tolerance, lp.objective_coefficients()[
col]);
1086 *is_too_large |= minimization_reduced_cost > allowed_error;
1087 infeasibility =
std::max(infeasibility, minimization_reduced_cost);
1090 *is_too_large |= -minimization_reduced_cost > allowed_error;
1091 infeasibility =
std::max(infeasibility, -minimization_reduced_cost);
1094 return infeasibility;
#define DCHECK_LE(val1, val2)
#define DCHECK(condition)
#define DCHECK_EQ(val1, val2)
#define VLOG(verboselevel)
void push_back(const value_type &x)
void Add(const FpNumber &value)
void SetLogToStdOut(bool enable)
bool LoggingIsEnabled() const
void EnableLogging(bool enable)
A simple class to enforce both an elapsed time limit and a deterministic time limit in the same threa...
static std::unique_ptr< TimeLimit > FromParameters(const Parameters ¶meters)
Creates a time limit object initialized from an object that provides methods max_time_in_seconds() an...
bool log_search_progress() const
bool change_status_to_imprecise() const
double solution_feasibility_tolerance() const
void MergeFrom(const GlopParameters &from)
bool use_preprocessing() const
bool provide_strong_optimal_guarantee() const
bool log_to_stdout() const
const GlopParameters & GetParameters() const
SolverLogger & GetSolverLogger()
void SetInitialBasis(const VariableStatusRow &variable_statuses, const ConstraintStatusColumn &constraint_statuses)
bool MayHaveMultipleOptimalSolutions() const
const VariableStatusRow & variable_statuses() const
GlopParameters * GetMutableParameters()
Fractional GetMaximumDualInfeasibility() const
const ConstraintStatusColumn & constraint_statuses() const
Fractional GetMaximumPrimalInfeasibility() const
Fractional GetObjectiveValue() const
ProblemStatus LoadAndVerifySolution(const LinearProgram &lp, const ProblemSolution &solution)
ABSL_MUST_USE_RESULT ProblemStatus Solve(const LinearProgram &lp)
ABSL_MUST_USE_RESULT ProblemStatus SolveWithTimeLimit(const LinearProgram &lp, TimeLimit *time_limit)
void SetParameters(const GlopParameters ¶meters)
double DeterministicTime() const
int GetNumberOfSimplexIterations() const
std::string GetObjectiveStatsString() const
void PopulateFromLinearProgram(const LinearProgram &linear_program)
void ClearTransposeMatrix()
std::string GetBoundsStatsString() const
const DenseColumn & constraint_lower_bounds() const
const DenseRow & variable_upper_bounds() const
Fractional objective_offset() const
const DenseColumn & constraint_upper_bounds() const
bool IsMaximizationProblem() const
ColIndex num_variables() const
const DenseRow & variable_lower_bounds() const
std::string GetDimensionString() const
Fractional objective_scaling_factor() const
RowIndex num_constraints() const
bool Run(LinearProgram *lp) final
void DestructiveRecoverSolution(ProblemSolution *solution)
void SetLogger(SolverLogger *logger)
ProblemStatus status() const
void SetTimeLimit(TimeLimit *time_limit)
void resize(IntType size)
void assign(IntType size, const T &v)
ModelSharedTimeLimit * time_limit
ABSL_FLAG(bool, lp_dump_to_proto_file, false, "Tells whether do dump the problem to a protobuf file.")
AccurateSum< Fractional > KahanSum
Fractional ScalarProduct(const DenseRowOrColumn1 &u, const DenseRowOrColumn2 &v)
std::string GetProblemStatusString(ProblemStatus problem_status)
std::string GetConstraintStatusString(ConstraintStatus status)
void LinearProgramToMPModelProto(const LinearProgram &input, MPModelProto *output)
bool IsFinite(Fractional value)
void ChangeSign(StrictITIVector< IndexType, Fractional > *data)
std::string GetVariableStatusString(VariableStatus status)
Collection of objects used to extend the Constraint Solver library.
bool WriteProtoToFile(absl::string_view filename, const google::protobuf::Message &proto, ProtoWriteFormat proto_write_format, bool gzipped, bool append_extension_to_file_name)
bool AreWithinAbsoluteTolerance(FloatType x, FloatType y, FloatType absolute_tolerance)
VariableStatusRow statuses
VariableStatusRow variable_statuses
ConstraintStatusColumn constraint_statuses
#define SOLVER_LOG(logger,...)
#define VLOG_IS_ON(verboselevel)