Skip to content

Commit

Permalink
Add missing Ipopt return codes.
Browse files Browse the repository at this point in the history
Maximum_CpuTime_Exceeded return code was introduced in at least Ipopt 3.10.4 (2013-05-05).
Maximum_WallTime_Exceeded return code was added in Ipopt 3.14.0 (2021-06-15).
Please, see Ipopt changelog for details: https://coin-or.github.io/Ipopt/md_ChangeLog.html.

Without these return codes, the pagmo2 throws an exception when any of these conditions is satisfied.

Signed-off-by: Sergey Averkin <sergey.n.averkin@gmail.com>
  • Loading branch information
saverkin committed Nov 1, 2024
1 parent 987a062 commit b27216f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/algorithms/ipopt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ const ipopt_result_map_t ipopt_results = {PAGMO_DETAIL_IPOPT_RES_ENTRY(Solve_Suc
PAGMO_DETAIL_IPOPT_RES_ENTRY(Maximum_Iterations_Exceeded),
PAGMO_DETAIL_IPOPT_RES_ENTRY(Restoration_Failed),
PAGMO_DETAIL_IPOPT_RES_ENTRY(Error_In_Step_Computation),
PAGMO_DETAIL_IPOPT_RES_ENTRY(Maximum_CpuTime_Exceeded),
PAGMO_DETAIL_IPOPT_RES_ENTRY(Maximum_WallTime_Exceeded),
PAGMO_DETAIL_IPOPT_RES_ENTRY(Not_Enough_Degrees_Of_Freedom),
PAGMO_DETAIL_IPOPT_RES_ENTRY(Invalid_Problem_Definition),
PAGMO_DETAIL_IPOPT_RES_ENTRY(Invalid_Option),
Expand Down

0 comments on commit b27216f

Please # to comment.