| 5 | |
| 6 | namespace 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 |
no outgoing calls
no test coverage detected