alpaqa 1.0.0a15
Nonconvex constrained optimization
Loading...
Searching...
No Matches
ipopt-enums.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <IpIpoptApplication.hpp>
4#include <string_view>
5
6inline std::string_view enum_name(Ipopt::ApplicationReturnStatus s) {
7 using S = Ipopt::ApplicationReturnStatus;
8 switch (s) {
9 case S::Solve_Succeeded: return "Solve_Succeeded";
10 case S::Solved_To_Acceptable_Level: return "Solved_To_Acceptable_Level";
11 case S::Infeasible_Problem_Detected:
12 return "Infeasible_Problem_Detected";
13 case S::Search_Direction_Becomes_Too_Small:
14 return "Search_Direction_Becomes_Too_Small";
15 case S::Diverging_Iterates: return "Diverging_Iterates";
16 case S::User_Requested_Stop: return "User_Requested_Stop";
17 case S::Feasible_Point_Found: return "Feasible_Point_Found";
18 case S::Maximum_Iterations_Exceeded:
19 return "Maximum_Iterations_Exceeded";
20 case S::Restoration_Failed: return "Restoration_Failed";
21 case S::Error_In_Step_Computation: return "Error_In_Step_Computation";
22 case S::Maximum_CpuTime_Exceeded: return "Maximum_CpuTime_Exceeded";
23 case S::Maximum_WallTime_Exceeded: return "Maximum_WallTime_Exceeded";
24 case S::Not_Enough_Degrees_Of_Freedom:
25 return "Not_Enough_Degrees_Of_Freedom";
26 case S::Invalid_Problem_Definition: return "Invalid_Problem_Definition";
27 case S::Invalid_Option: return "Invalid_Option";
28 case S::Invalid_Number_Detected: return "Invalid_Number_Detected";
29 case S::Unrecoverable_Exception: return "Unrecoverable_Exception";
30 case S::NonIpopt_Exception_Thrown: return "NonIpopt_Exception_Thrown";
31 case S::Insufficient_Memory: return "Insufficient_Memory";
32 case S::Internal_Error: return "Internal_Error";
33 default: return "<unknown>";
34 }
35}
std::string_view enum_name(Ipopt::ApplicationReturnStatus s)