Commit 5de94f73 authored by Martin Marinov's avatar Martin Marinov

Handle cases where the PROGRESS_ABORTED exceptions is thrown while IPOPT is being executed.

parent d9f3de21
......@@ -174,6 +174,9 @@ static void throw_ipopt_solve_failure(Ipopt::ApplicationReturnStatus const statu
switch(status) {
case Ipopt::Maximum_Iterations_Exceeded:
COMISO_THROW(IPOPT_MAXIMUM_ITERATIONS_EXCEEDED);
case Ipopt::NonIpopt_Exception_Thrown:
if (Progress::actv_node != nullptr && Progress::actv_node->aborting())
COMISO_THROW(PROGRESS_ABORTED);
default:
COMISO_THROW(IPOPT_OPTIMIZATION_FAILED);
} // endswicth
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment