Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <status.h>
Public Types | |
enum | ErrorCode { GLOP_OK = 0 , ERROR_LU = 1 , ERROR_BOUND = 2 , ERROR_NULL = 3 , ERROR_INVALID_PROBLEM = 4 } |
Possible kinds of errors. More... | |
Public Member Functions | |
Status () | |
Creates a "successful" status. | |
Status (ErrorCode error_code, std::string error_message) | |
ErrorCode | error_code () const |
Accessors. | |
const std::string & | error_message () const |
bool | ok () const |
Static Public Member Functions | |
static Status | OK () |
Improves readability but identical to 0-arg constructor. | |
Return type for the solver functions that return "Did that work?". It should only be used for unrecoverable errors.
Possible kinds of errors.
operations_research::glop::Status::Status | ( | ) |
operations_research::glop::Status::Status | ( | ErrorCode | error_code, |
std::string | error_message ) |
Creates a status with the specified error code and error message. If "code == 0", error_message is ignored and a Status object identical to Status::OK is constructed.
|
inline |
|
inline |
|
inlinestatic |