8#include "dlinear/util/exception.h"
19 DLINEAR_UNREACHABLE();
23std::ostream &operator<<(std::ostream &os,
const LpResult &logic) {
26 return os <<
"no-result";
28 return os <<
"unsolved";
30 return os <<
"infeasible";
32 return os <<
"unbounded";
34 return os <<
"optimal";
36 return os <<
"delta-optimal";
38 DLINEAR_UNREACHABLE();
Global namespace for the dlinear library.
LpResult
Result of running the LP solver over the input problem.
@ LP_INFEASIBLE
The problem is infeasible.
@ LP_NO_RESULT
No result has been obtained yet.
@ LP_UNBOUNDED
The problem is unbounded.
@ LP_UNSOLVED
The problem has not been solved. An error may have occurred.
@ LP_DELTA_OPTIMAL
The problem has been solved optimally, but with a delta.
@ LP_OPTIMAL
The problem has been solved optimally.
Logic parseLogic(const std::string &s)
Parse the logic from a string.