<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I just discovered that when I compile my interface with the HSL subroutines , IPOPT do have the expected behaviour (that is:&nbsp;EXIT: Converged to a point of local infeasibility. Problem may be infeasible.). But troubles come when I compile with sequential mumps (which is the solver we can provide by default). The point is that compilation options are different in the two cases, so I guess it may be due to one of them. Getting closer...<div><br><div><div>Le 17 avr. 2012 à 13:46, Sylvain Auliac a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div>Thanks for the answer. I did try to catch any exceptions that could have been thrown by the optimization process, with code like that</div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span style="color: #cd00a3">try</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">{</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; status = app-&gt;OptimizeTNLP(optim);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span style="color: #cd00a3">catch</span>(...)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">{</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp;&nbsp;<span style="color: #3a8288">cout</span> &lt;&lt; <span style="color: #ca6648">"error caught"</span> &lt;&lt; endl;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">}</div></div><div>App is just a SmartPointer to an IpoptApplication. Nothing is caught...</div><div>I've just tried a simpler problem, which obviously can't be solved, consisting in minimizing the norm of a vector with the constraint that the norm must be equal to 1 and 2 at the same time. Then, the result is always the following :</div><div><br></div><div>&nbsp;......</div><div><div>&nbsp;197r 1.5022719e+00 5.02e-01 3.13e-13 &nbsp;-9.0 3.80e-05 &nbsp; &nbsp;- &nbsp;1.00e+00 1.00e+00h &nbsp;1</div><div>&nbsp;198r 1.5022719e+00 5.02e-01 2.73e-13 &nbsp;-9.0 2.57e-05 &nbsp; &nbsp;- &nbsp;1.00e+00 1.00e+00h &nbsp;1</div><div>Abort trap</div></div><div><br></div><div>I have seen in the current issues section that ADD_CXXFLAGS="-m<span class="searchword3">mac</span>osx-version-min=10.4" under macOS 10.6 could lead to "problems with try catch causing <span class="searchword2">ABORT</span> TRAP errors". We do not compile with this option, so there may be some other cases where this happens... Gonna open a ticket then when I'll be sure it's not a side effect of something else.</div><div><br></div><div>Sylvain.</div><div><br></div><div><br></div><div><br><div><div>Le 16 avr. 2012 à 17:46, Stefan Vigerske a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br><br>Ipopt usually does not just aborts.<br>In some very bad situations, it may end by throwing an exception.<br>You should add a try/catch clause around your call to Ipopt's Optimize() function and see if you can catch an IpoptException, or something else.<br>If that does not give further insight, open a ticket at the Ipopt webpage with information like the backtrace from the debugger.<br><br>Stefan<br><br><br><blockquote type="cite">Hello,<br></blockquote><blockquote type="cite">I'm testing an interface i have written for ipopt in our software. Toy-test problems work fine, we also have a medium scale quadratic one who's running with no problem. I'm also trying to debug with a minimal surface problem with volume and simple bounds constraints. This one is nonlinear on every sides, IPOPT often succeed in finding a local minima (~half of the times) but on the other half, it crashs with no indication except an "abort trap" console message. When it happens, I see it has some difficulties because before stopping, it tries to perform a lot of line searchs and the optimization variables start oscillating around the last best solution found. Then the "r" appears right to the iteration number... and then the dreadfull message. On some very rare attempts, I get a restoration phase related error message.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The last function called in the debugger was in IpRestoMinC_1Nrm.cpp:354...<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Is there a way to catch the error and prevent the program to stop? I'd love to be able to get back the last values of the variables or things like that ...<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Best regards,,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Sylvain Auliac<br></blockquote><blockquote type="cite">Laboratoire Jacques-Louis Lions<br></blockquote><blockquote type="cite">Université Pierre et Marie Curie<br></blockquote><blockquote type="cite">mail: <a href="mailto:auliac@ann.jussieu.fr">auliac@ann.jussieu.fr</a><br></blockquote><blockquote type="cite">tel : 01 44 27 71 70<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Ipopt mailing list<br></blockquote><blockquote type="cite"><a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br></blockquote><blockquote type="cite"><a href="http://list.coin-or.org/mailman/listinfo/ipopt">http://list.coin-or.org/mailman/listinfo/ipopt</a><br></blockquote><blockquote type="cite"><br></blockquote><br></div></blockquote></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Sylvain Auliac</div><div>Laboratoire Jacques-Louis Lions</div><div>Université Pierre et Marie Curie</div><div>mail: <a href="mailto:auliac@ann.jussieu.fr">auliac@ann.jussieu.fr</a></div><div>tel :&nbsp;01 44 27 71 70</div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></div>_______________________________________________<br>Ipopt mailing list<br><a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br>http://list.coin-or.org/mailman/listinfo/ipopt<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Sylvain Auliac</div><div>Laboratoire Jacques-Louis Lions</div><div>Université Pierre et Marie Curie</div><div>mail: <a href="mailto:auliac@ann.jussieu.fr">auliac@ann.jussieu.fr</a></div><div>tel :&nbsp;01 44 27 71 70</div><div><br></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>