17#ifndef OR_TOOLS_MATH_OPT_CPP_SOLVER_RESOURCES_H_
18#define OR_TOOLS_MATH_OPT_CPP_SOLVER_RESOURCES_H_
23#include "absl/status/statusor.h"
24#include "absl/strings/string_view.h"
25#include "ortools/math_opt/rpc.pb.h"
62 std::optional<double>
cpu;
66 std::optional<double>
ram;
68 SolverResourcesProto
Proto()
const;
69 static absl::StatusOr<SolverResources>
FromProto(
70 const SolverResourcesProto&
proto);
CpModelProto proto
The output proto.
An object oriented wrapper for quadratic constraints in ModelStorage.
bool AbslParseFlag(const absl::string_view text, SolverType *const value, std::string *const error)
std::string AbslUnparseFlag(const SolverType value)
SolverResourcesProto Proto() const
std::optional< double > cpu
static absl::StatusOr< SolverResources > FromProto(const SolverResourcesProto &proto)
std::optional< double > ram