Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <solution.h>
Public Member Functions | |
SolutionProto | Proto () const |
Returns the proto equivalent of this. | |
Static Public Member Functions | |
static absl::StatusOr< Solution > | FromProto (const ModelStorage *model, const SolutionProto &solution_proto) |
Public Attributes | |
std::optional< PrimalSolution > | primal_solution |
std::optional< DualSolution > | dual_solution |
std::optional< Basis > | basis |
What is included in a solution depends on the kind of problem and solver. The current common patterns are
Definition at line 259 of file solution.h.
|
static |
Returns the Solution equivalent of solution_proto.
Returns an error if FromProto() fails on any field that is not std::nullopt (see the static FromProto() functions for each field type for details).
Definition at line 225 of file solution.cc.
SolutionProto operations_research::math_opt::Solution::Proto | ( | ) | const |
Returns the proto equivalent of this.
Definition at line 248 of file solution.cc.
std::optional<Basis> operations_research::math_opt::Solution::basis |
Definition at line 272 of file solution.h.
std::optional<DualSolution> operations_research::math_opt::Solution::dual_solution |
Definition at line 271 of file solution.h.
std::optional<PrimalSolution> operations_research::math_opt::Solution::primal_solution |
Definition at line 270 of file solution.h.