27 : error_code_(error_code),
28 error_message_(error_code == GLOP_OK ?
"" :
std::move(error_message)) {}
41 return "INVALID_PROBLEM";
45 LOG(DFATAL) <<
"Invalid Status::ErrorCode " << error_code;
46 return "UNKNOWN Status::ErrorCode";
ErrorCode
Possible kinds of errors.
@ GLOP_OK
Not an error. Returned on success.
@ ERROR_INVALID_PROBLEM
The linear program is invalid or it does not have the required format.
@ ERROR_NULL
A pointer argument was NULL when it shouldn't be.
@ ERROR_LU
The LU factorization of the current basis couldn't be computed.
@ ERROR_BOUND
The current variable values are out of their bound modulo the tolerance.
Status()
Creates a "successful" status.
std::string GetErrorCodeString(Status::ErrorCode error_code)
Returns the string representation of the ErrorCode enum.
In SWIG mode, we don't want anything besides these top-level includes.