3#include <IpIpoptApplication.hpp>
6inline std::string_view
enum_name(Ipopt::ApplicationReturnStatus s) {
7 using enum Ipopt::ApplicationReturnStatus;
9 case Solve_Succeeded:
return "Solve_Succeeded";
10 case Solved_To_Acceptable_Level:
return "Solved_To_Acceptable_Level";
11 case Infeasible_Problem_Detected:
return "Infeasible_Problem_Detected";
12 case Search_Direction_Becomes_Too_Small:
13 return "Search_Direction_Becomes_Too_Small";
14 case Diverging_Iterates:
return "Diverging_Iterates";
15 case User_Requested_Stop:
return "User_Requested_Stop";
16 case Feasible_Point_Found:
return "Feasible_Point_Found";
17 case Maximum_Iterations_Exceeded:
return "Maximum_Iterations_Exceeded";
18 case Restoration_Failed:
return "Restoration_Failed";
19 case Error_In_Step_Computation:
return "Error_In_Step_Computation";
20 case Maximum_CpuTime_Exceeded:
return "Maximum_CpuTime_Exceeded";
21 case Maximum_WallTime_Exceeded:
return "Maximum_WallTime_Exceeded";
22 case Not_Enough_Degrees_Of_Freedom:
23 return "Not_Enough_Degrees_Of_Freedom";
24 case Invalid_Problem_Definition:
return "Invalid_Problem_Definition";
25 case Invalid_Option:
return "Invalid_Option";
26 case Invalid_Number_Detected:
return "Invalid_Number_Detected";
27 case Unrecoverable_Exception:
return "Unrecoverable_Exception";
28 case NonIpopt_Exception_Thrown:
return "NonIpopt_Exception_Thrown";
29 case Insufficient_Memory:
return "Insufficient_Memory";
30 case Internal_Error:
return "Internal_Error";
31 default:
return "<unknown>";
std::string_view enum_name(Ipopt::ApplicationReturnStatus s)