MCPcopy Create free account
hub / github.com/cvanaret/Uno / solution_status_to_message

Function solution_status_to_message

uno/optimization/SolutionStatus.cpp:7–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6namespace uno {
7 std::string solution_status_to_message(SolutionStatus status) {
8 if (status == SolutionStatus::FEASIBLE_KKT_POINT) {
9 return "Feasible KKT point";
10 }
11 else if (status == SolutionStatus::FEASIBLE_FJ_POINT) {
12 return "Feasible FJ point";
13 }
14 else if (status == SolutionStatus::INFEASIBLE_STATIONARY_POINT) {
15 return "Infeasible stationary point";
16 }
17 else if (status == SolutionStatus::FEASIBLE_SMALL_STEP) {
18 return "Feasible small step";
19 }
20 else if (status == SolutionStatus::INFEASIBLE_SMALL_STEP) {
21 return "Infeasible small step";
22 }
23 else if (status == SolutionStatus::UNBOUNDED) {
24 return "Unbounded problem";
25 }
26 return "Suboptimal point";
27 }
28} // namespace

Callers 2

printMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected