Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::SolveResult Struct Reference

Detailed Description

Definition at line 458 of file solve_result.h.

#include <solve_result.h>

Public Member Functions

 SolveResult (Termination termination)
absl::StatusOr< SolveResultProtoProto () const
absl::Duration solve_time () const
double primal_bound () const
double dual_bound () const
bool has_primal_feasible_solution () const
const PrimalSolutionbest_primal_solution () const
double objective_value () const
double objective_value (Objective objective) const
double best_objective_bound () const
const VariableMap< double > & variable_values () const
bool bounded () const
bool has_ray () const
const VariableMap< double > & ray_variable_values () const
bool has_dual_feasible_solution () const
const LinearConstraintMap< double > & dual_values () const
const VariableMap< double > & reduced_costs () const
bool has_dual_ray () const
const LinearConstraintMap< double > & ray_dual_values () const
const VariableMap< double > & ray_reduced_costs () const
bool has_basis () const
const LinearConstraintMap< BasisStatus > & constraint_status () const
const VariableMap< BasisStatus > & variable_status () const

Static Public Member Functions

static absl::StatusOr< SolveResultFromProto (ModelStorageCPtr model, const SolveResultProto &solve_result_proto)

Public Attributes

Termination termination
SolveStats solve_stats
*All convex optimization solvers(LP, convex QP) return only one *Only MI(Q) P solvers return more than one solution. MIP solvers do not std std::vector< PrimalRayprimal_rays
std::vector< DualRaydual_rays
GScipOutput gscip_solver_specific_output
SolveResultProto::PdlpOutput pdlp_solver_specific_output

Constructor & Destructor Documentation

◆ SolveResult()

operations_research::math_opt::SolveResult::SolveResult ( Termination termination)
inlineexplicit

Definition at line 459 of file solve_result.h.

Member Function Documentation

◆ best_objective_bound()

double operations_research::math_opt::SolveResult::best_objective_bound ( ) const

Definition at line 601 of file solve_result.cc.

◆ best_primal_solution()

const PrimalSolution & operations_research::math_opt::SolveResult::best_primal_solution ( ) const

Definition at line 596 of file solve_result.cc.

◆ bounded()

bool operations_research::math_opt::SolveResult::bounded ( ) const

Definition at line 623 of file solve_result.cc.

◆ constraint_status()

const LinearConstraintMap< BasisStatus > & operations_research::math_opt::SolveResult::constraint_status ( ) const

Definition at line 668 of file solve_result.cc.

◆ dual_bound()

double operations_research::math_opt::SolveResult::dual_bound ( ) const

Definition at line 609 of file solve_result.cc.

◆ dual_values()

const LinearConstraintMap< double > & operations_research::math_opt::SolveResult::dual_values ( ) const

Definition at line 645 of file solve_result.cc.

◆ FromProto()

absl::StatusOr< SolveResult > operations_research::math_opt::SolveResult::FromProto ( ModelStorageCPtr model,
const SolveResultProto & solve_result_proto )
static

Definition at line 538 of file solve_result.cc.

◆ has_basis()

bool operations_research::math_opt::SolveResult::has_basis ( ) const

Definition at line 664 of file solve_result.cc.

◆ has_dual_feasible_solution()

bool operations_research::math_opt::SolveResult::has_dual_feasible_solution ( ) const

Definition at line 639 of file solve_result.cc.

◆ has_dual_ray()

bool operations_research::math_opt::SolveResult::has_dual_ray ( ) const
inline

Definition at line 618 of file solve_result.h.

◆ has_primal_feasible_solution()

bool operations_research::math_opt::SolveResult::has_primal_feasible_solution ( ) const

Definition at line 590 of file solve_result.cc.

◆ has_ray()

bool operations_research::math_opt::SolveResult::has_ray ( ) const
inline

Definition at line 585 of file solve_result.h.

◆ objective_value() [1/2]

double operations_research::math_opt::SolveResult::objective_value ( ) const

Definition at line 613 of file solve_result.cc.

◆ objective_value() [2/2]

double operations_research::math_opt::SolveResult::objective_value ( Objective objective) const

Definition at line 618 of file solve_result.cc.

◆ primal_bound()

double operations_research::math_opt::SolveResult::primal_bound ( ) const

Definition at line 605 of file solve_result.cc.

◆ Proto()

absl::StatusOr< SolveResultProto > operations_research::math_opt::SolveResult::Proto ( ) const

Definition at line 501 of file solve_result.cc.

◆ ray_dual_values()

const LinearConstraintMap< double > & operations_research::math_opt::SolveResult::ray_dual_values ( ) const

Definition at line 654 of file solve_result.cc.

◆ ray_reduced_costs()

const VariableMap< double > & operations_research::math_opt::SolveResult::ray_reduced_costs ( ) const

Definition at line 659 of file solve_result.cc.

◆ ray_variable_values()

const VariableMap< double > & operations_research::math_opt::SolveResult::ray_variable_values ( ) const

Definition at line 634 of file solve_result.cc.

◆ reduced_costs()

const VariableMap< double > & operations_research::math_opt::SolveResult::reduced_costs ( ) const

Definition at line 650 of file solve_result.cc.

◆ solve_time()

absl::Duration operations_research::math_opt::SolveResult::solve_time ( ) const
inline

Definition at line 531 of file solve_result.h.

◆ variable_status()

const VariableMap< BasisStatus > & operations_research::math_opt::SolveResult::variable_status ( ) const

Definition at line 673 of file solve_result.cc.

◆ variable_values()

const VariableMap< double > & operations_research::math_opt::SolveResult::variable_values ( ) const

Definition at line 629 of file solve_result.cc.

Member Data Documentation

◆ dual_rays

std::vector<DualRay> operations_research::math_opt::SolveResult::dual_rays

Definition at line 493 of file solve_result.h.

◆ gscip_solver_specific_output

GScipOutput operations_research::math_opt::SolveResult::gscip_solver_specific_output

Definition at line 496 of file solve_result.h.

◆ pdlp_solver_specific_output

SolveResultProto::PdlpOutput operations_research::math_opt::SolveResult::pdlp_solver_specific_output

Definition at line 498 of file solve_result.h.

◆ primal_rays

* All convex optimization solvers (LP, convex QP) return only one * Only MI(Q)P solvers return more than one solution. MIP solvers do not std std::vector<PrimalRay> operations_research::math_opt::SolveResult::primal_rays

Definition at line 488 of file solve_result.h.

◆ solve_stats

SolveStats operations_research::math_opt::SolveResult::solve_stats

Definition at line 466 of file solve_result.h.

◆ termination

Termination operations_research::math_opt::SolveResult::termination

Definition at line 463 of file solve_result.h.


The documentation for this struct was generated from the following files: