17#ifndef ORTOOLS_MATH_OPT_CPP_SOLVER_RESOURCES_H_
18#define ORTOOLS_MATH_OPT_CPP_SOLVER_RESOURCES_H_
24#include "absl/status/statusor.h"
25#include "absl/strings/string_view.h"
67 std::optional<double>
cpu;
71 std::optional<double>
ram;
74 static absl::StatusOr<SolverResources>
FromProto(
bool AbslParseFlag(const absl::string_view text, SolverType *const value, std::string *const error)
std::ostream & operator<<(std::ostream &ostr, const SecondOrderConeConstraint &constraint)
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