14#ifndef OR_TOOLS_MATH_OPT_CPP_PARAMETERS_H_
15#define OR_TOOLS_MATH_OPT_CPP_PARAMETERS_H_
21#include "absl/status/statusor.h"
22#include "absl/strings/string_view.h"
23#include "absl/time/time.h"
24#include "absl/types/span.h"
26#include "ortools/glop/parameters.pb.h"
27#include "ortools/gscip/gscip.pb.h"
29#include "ortools/math_opt/parameters.pb.h"
30#include "ortools/math_opt/solvers/gurobi.pb.h"
31#include "ortools/sat/sat_parameters.pb.h"
42 kGscip = SOLVER_TYPE_GSCIP,
52 kGlop = SOLVER_TYPE_GLOP,
57 kCpSat = SOLVER_TYPE_CP_SAT,
76 kGlpk = SOLVER_TYPE_GLPK,
131 kHigh = EMPHASIS_HIGH,
156 GurobiParametersProto
Proto()
const;
321 SolveParametersProto
Proto()
const;
322 static absl::StatusOr<SolveParameters>
FromProto(
323 const SolveParametersProto&
proto);
MATH_OPT_DEFINE_ENUM(CallbackEvent, CALLBACK_EVENT_UNSPECIFIED)
bool AbslParseFlag(const absl::string_view text, SolverType *const value, std::string *const error)
std::string AbslUnparseFlag(const SolverType value)
Collection of objects used to extend the Constraint Solver library.
static GurobiParameters FromProto(const GurobiParametersProto &proto)
GurobiParametersProto Proto() const
gtl::linked_hash_map< std::string, std::string > param_values
std::optional< double > best_bound_limit
std::optional< Emphasis > scaling
std::optional< int32_t > solution_limit
absl::Duration time_limit
std::optional< int64_t > node_limit
std::optional< Emphasis > heuristics
std::optional< double > absolute_gap_tolerance
std::optional< double > relative_gap_tolerance
std::optional< LPAlgorithm > lp_algorithm
std::optional< Emphasis > presolve
std::optional< int32_t > random_seed
std::optional< int32_t > threads
static absl::StatusOr< SolveParameters > FromProto(const SolveParametersProto &proto)
SolveParametersProto Proto() const
sat::SatParameters cp_sat
std::optional< double > objective_limit
std::optional< Emphasis > cuts
std::optional< int64_t > iteration_limit
std::optional< double > cutoff_limit
glop::GlopParameters glop