OR-Tools  9.6
Termination

Detailed Description

Definition at line 263 of file solve_result.h.

Public Member Functions

 Termination (TerminationReason reason, std::string detail={})
 
bool limit_reached () const
 
TerminationProto Proto () const
 
std::string ToString () const
 

Static Public Member Functions

static Termination Feasible (Limit limit, std::string detail={})
 
static Termination NoSolutionFound (Limit limit, std::string detail={})
 
static absl::StatusOr< TerminationFromProto (const TerminationProto &termination_proto)
 

Public Attributes

TerminationReason reason
 
std::optional< Limitlimit
 
std::string detail
 

Constructor & Destructor Documentation

◆ Termination()

Termination ( TerminationReason  reason,
std::string  detail = {} 
)
explicit

Definition at line 144 of file solve_result.cc.

Member Function Documentation

◆ Feasible()

Termination Feasible ( Limit  limit,
std::string  detail = {} 
)
static

Definition at line 147 of file solve_result.cc.

◆ FromProto()

absl::StatusOr< Termination > FromProto ( const TerminationProto &  termination_proto)
static

Definition at line 173 of file solve_result.cc.

◆ limit_reached()

bool limit_reached ( ) const

Definition at line 168 of file solve_result.cc.

◆ NoSolutionFound()

Termination NoSolutionFound ( Limit  limit,
std::string  detail = {} 
)
static

Definition at line 153 of file solve_result.cc.

◆ Proto()

TerminationProto Proto ( ) const

Definition at line 160 of file solve_result.cc.

◆ ToString()

std::string ToString ( ) const

Definition at line 198 of file solve_result.cc.

Member Data Documentation

◆ detail

std::string detail

Definition at line 282 of file solve_result.h.

◆ limit

std::optional<Limit> limit

Definition at line 277 of file solve_result.h.

◆ reason

Definition at line 270 of file solve_result.h.


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