Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <solve_result.h>
Public Member Functions | |
absl::StatusOr< SolveStatsProto > | Proto () const |
Will return an error if solve_time is not finite. | |
std::string | ToString () const |
Static Public Member Functions | |
static absl::StatusOr< SolveStats > | FromProto (const SolveStatsProto &solve_stats_proto) |
Returns an error if converting the problem_status or solve_time fails. | |
Public Attributes | |
absl::Duration | solve_time = absl::ZeroDuration() |
int | simplex_iterations = 0 |
int | barrier_iterations = 0 |
int | first_order_iterations = 0 |
int | node_count = 0 |
Definition at line 99 of file solve_result.h.
|
static |
Returns an error if converting the problem_status or solve_time fails.
Definition at line 461 of file solve_result.cc.
absl::StatusOr< SolveStatsProto > operations_research::math_opt::SolveStats::Proto | ( | ) | const |
Will return an error if solve_time is not finite.
Definition at line 449 of file solve_result.cc.
std::string operations_research::math_opt::SolveStats::ToString | ( | ) | const |
Definition at line 485 of file solve_result.cc.
int operations_research::math_opt::SolveStats::barrier_iterations = 0 |
Definition at line 106 of file solve_result.h.
int operations_research::math_opt::SolveStats::first_order_iterations = 0 |
Definition at line 108 of file solve_result.h.
int operations_research::math_opt::SolveStats::node_count = 0 |
Definition at line 110 of file solve_result.h.
int operations_research::math_opt::SolveStats::simplex_iterations = 0 |
Definition at line 104 of file solve_result.h.
absl::Duration operations_research::math_opt::SolveStats::solve_time = absl::ZeroDuration() |
Elapsed wall clock time as measured by math_opt, roughly the time inside Solver::Solve(). Note: this does not include work done building the model.
Definition at line 102 of file solve_result.h.