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

#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< SolveStatsFromProto (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
 

Detailed Description

Definition at line 99 of file solve_result.h.

Member Function Documentation

◆ FromProto()

absl::StatusOr< SolveStats > operations_research::math_opt::SolveStats::FromProto ( const SolveStatsProto & solve_stats_proto)
static

Returns an error if converting the problem_status or solve_time fails.

Definition at line 461 of file solve_result.cc.

◆ Proto()

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.

◆ ToString()

std::string operations_research::math_opt::SolveStats::ToString ( ) const

Definition at line 485 of file solve_result.cc.

Member Data Documentation

◆ barrier_iterations

int operations_research::math_opt::SolveStats::barrier_iterations = 0

Definition at line 106 of file solve_result.h.

◆ first_order_iterations

int operations_research::math_opt::SolveStats::first_order_iterations = 0

Definition at line 108 of file solve_result.h.

◆ node_count

int operations_research::math_opt::SolveStats::node_count = 0

Definition at line 110 of file solve_result.h.

◆ simplex_iterations

int operations_research::math_opt::SolveStats::simplex_iterations = 0

Definition at line 104 of file solve_result.h.

◆ solve_time

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.


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