54 switch (exit_status) {
58 return "callback requested stop";
60 return "too few degrees of freedom";
62 return "locally infeasible";
64 return "globally infeasible";
66 return "factorization failed";
68 return "line search failed";
70 return "nonfinite initial cost or constraints";
72 return "diverging iterates";
74 return "max iterations exceeded";
Definition expression_graph.hpp:11
ExitStatus
Solver exit status.
Definition exit_status.hpp:16
@ TIMEOUT
The solver returned its solution so far after exceeding the maximum elapsed wall clock time.
@ CALLBACK_REQUESTED_STOP
The solver returned its solution so far after the user requested a stop.
@ GLOBALLY_INFEASIBLE
The problem setup frontend determined the problem to have an empty feasible region.
@ DIVERGING_ITERATES
The solver encountered diverging primal iterates xₖ and/or sₖ and gave up.
@ FACTORIZATION_FAILED
The linear system factorization failed.
@ LINE_SEARCH_FAILED
The backtracking line search failed, and the problem isn't locally infeasible.
@ MAX_ITERATIONS_EXCEEDED
The solver returned its solution so far after exceeding the maximum number of iterations.
@ SUCCESS
Solved the problem to the desired tolerance.
@ LOCALLY_INFEASIBLE
The solver determined the problem to be locally infeasible and gave up.
@ TOO_FEW_DOFS
The solver determined the problem to be overconstrained and gave up.
@ NONFINITE_INITIAL_COST_OR_CONSTRAINTS
The solver encountered nonfinite initial cost or constraints and gave up.
SLEIPNIR_DLLEXPORT constexpr std::string_view to_message(const ExitStatus &exit_status)
Returns user-readable message corresponding to the solver exit status.
Definition exit_status.hpp:50
#define SLEIPNIR_DLLEXPORT
Definition symbol_exports.hpp:34