#include "ortools/linear_solver/linear_solver.h"
#include <unistd.h>
#include <algorithm>
#include <atomic>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <iostream>
#include <limits>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "absl/base/const_init.h"
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/flags/flag.h"
#include "absl/log/check.h"
#include "absl/log/log.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/ascii.h"
#include "absl/strings/match.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "absl/strings/str_replace.h"
#include "absl/strings/string_view.h"
#include "absl/synchronization/mutex.h"
#include "absl/synchronization/notification.h"
#include "absl/time/clock.h"
#include "absl/time/time.h"
#include "google/protobuf/text_format.h"
#include "ortools/base/accurate_sum.h"
#include "ortools/base/map_util.h"
#include "ortools/base/stl_util.h"
#include "ortools/base/threadpool.h"
#include "ortools/linear_solver/linear_expr.h"
#include "ortools/linear_solver/linear_solver.pb.h"
#include "ortools/linear_solver/linear_solver_callback.h"
#include "ortools/linear_solver/model_exporter.h"
#include "ortools/linear_solver/model_validator.h"
#include "ortools/port/file.h"
#include "ortools/port/proto_utils.h"
#include "ortools/util/fp_utils.h"
#include "ortools/util/lazy_mutable_copy.h"
#include "ortools/util/time_limit.h"
Go to the source code of this file.
|
| | ABSL_FLAG (bool, verify_solution, false, "Systematically verify the solution when calling Solve()" ", and change the return value of Solve() to ABNORMAL if" " an error was detected.") |
| | ABSL_FLAG (bool, log_verification_errors, true, "If --verify_solution is set: LOG(ERROR) all errors detected" " during the verification of the solution.") |
| | ABSL_FLAG (bool, linear_solver_enable_verbose_output, false, "If set, enables verbose output for the solver. Setting this flag" " is the same as calling MPSolver::EnableOutput().") |
| | ABSL_FLAG (bool, mpsolver_bypass_model_validation, false, "If set, the user-provided Model won't be verified before Solve()." " Invalid models will typically trigger various error responses" " from the underlying solvers; sometimes crashes.") |
| bool | operations_research::SolverTypeIsMip (MPModelRequest::SolverType solver_type) |
| absl::string_view | operations_research::ToString (MPSolver::OptimizationProblemType optimization_problem_type) |
| bool | operations_research::AbslParseFlag (const absl::string_view text, MPSolver::OptimizationProblemType *solver_type, std::string *error) |
| bool | operations_research::MPSolverResponseStatusIsRpcError (MPSolverResponseStatus status) |
◆ ABSL_FLAG() [1/4]
| ABSL_FLAG |
( |
bool | , |
|
|
linear_solver_enable_verbose_output | , |
|
|
false | , |
|
|
"If | set, |
|
|
enables verbose output for the solver. Setting this flag" " is the same as calling MPSolver::EnableOutput()." | ) |
◆ ABSL_FLAG() [2/4]
| ABSL_FLAG |
( |
bool | , |
|
|
log_verification_errors | , |
|
|
true | , |
|
|
"If --verify_solution is set: LOG(ERROR) all errors detected" " during the verification of the solution." | ) |
◆ ABSL_FLAG() [3/4]
| ABSL_FLAG |
( |
bool | , |
|
|
mpsolver_bypass_model_validation | , |
|
|
false | , |
|
|
"If | set, |
|
|
the user-provided Model won 't be verified before Solve()." " Invalid models will typically trigger various error responses" " from the underlying solvers;sometimes crashes." | ) |
◆ ABSL_FLAG() [4/4]
| ABSL_FLAG |
( |
bool | , |
|
|
verify_solution | , |
|
|
false | , |
|
|
"Systematically verify the solution when calling Solve()" " | , |
|
|
and change the return value of Solve() to ABNORMAL if" " an error was detected." | ) |