<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
From what I understood from this post (
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a
href="http://list.coin-or.org/pipermail/ipopt/2006-November/000655.html">http://list.coin-or.org/pipermail/ipopt/2006-November/000655.html</a>)
one may safely set the objective value to NaN or a Inf from the
eval_f callback.<br>
<br>
(by the way, in this case "Inf" is really the
std::numeric_limits<double>::infinity() and not the 1e19
constants, right?)<br>
<br>
I have a problem that is returning a NaN from eval_f and where Ipopt
is calling finalize_solution with <br>
status==Ipopt::SolverReturn::INVALID_NUMBER_DETECTED.<br>
<br>
I would like to know if setting the objective to NaN in eval_f could
generate this status error. <br>
<br>
Some more information:<br>
- I am allowing the objective value to be NaN or Inf, but I'm always
returning true from eval_f function. <br>
- The option "check_derivatives_for_naninf" doesn't seem to make
any difference.<br>
<br>
Thanks!<br>
Marco Correia<br>
</body>
</html>