<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
 <meta http-equiv='Content-Type' content='text/html;charset=us-ascii'>
 <style>BODY{font:10pt Tahoma, Verdana, sans-serif;}</style>
</head>
<body>
Roy,<br><br>what's the bit right at the top?<br><br><font color="#3333ff">Error in an AMPL evaluation. Run with "halt_on_ampl_error yes" to see details.<br>Error evaluating objective gradient at user provided starting point.<br><br></font>If your objective evaluation is wrong or broken, you won't get anywhere.<br><br>Damien <br><blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;"><hr><b>From:</b> Roy Chen [mailto:ytboy0208@gmail.com]<br><b>To:</b> coin-ipopt@list.coin-or.org<br><b>Sent:</b> Mon, 13 Aug 2007 08:02:03 -0600<br><b>Subject:</b> [Coin-ipopt] Need Help with an NLP<br><br><div>Dear all:</div>
<div>&nbsp;</div>
<div>
<div>I am trying to solve an MINLP using Bonmin which uses IPOPT to solve the Nonlinear problem. But I am having trouble to solve the relaxed version of my MINLP using IPOPT solver. I interacted with IPOPT through AMPL and used AMPL external function to define the integration in my objective. The first order and second order derivative information was provided along with the function.&nbsp;The following is the error information: 
</div>
<div>&nbsp;</div>
<div>
<p><font color="#3333ff">******************************************************************************<br>This program contains Ipopt, a library for large-scale nonlinear optimization.<br>&nbsp;Ipopt is released as open source code under the Common Public License (CPL). 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For more information visit </font><a href="http://projects.coin-or.org/Ipopt"><font color="#3333ff">http://projects.coin-or.org/Ipopt</font>
</a><br><font color="#3333ff">****************************************************************************** </font></p>
<p><font color="#3333ff">Number of nonzeros in equality constraint Jacobian...:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 125<br>Number of nonzeros in inequality constraint Jacobian.:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 335<br>Number of nonzeros in Lagrangian Hessian.............:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 265 
</font></p>
<p><font color="#3333ff">Error in an AMPL evaluation. Run with "halt_on_ampl_error yes" to see details.<br>Error evaluating objective gradient at user provided starting point.<br>&nbsp; No scaling factor for objective function computed! 
<br>Total number of variables............................:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 135<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; variables with only lower bounds:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 55<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; variables with lower and upper bounds:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 80<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; variables with only upper bounds:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 
<br>Total number of equality constraints.................:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50<br>Total number of inequality constraints...............:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 111<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inequality constraints with only lower bounds:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50<br>&nbsp;&nbsp; inequality constraints with lower and upper bounds:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inequality constraints with only upper bounds:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 61</font></p>
<p><font color="#3333ff">iter&nbsp;&nbsp;&nbsp; objective&nbsp;&nbsp;&nbsp; inf_pr&nbsp;&nbsp; inf_du lg(mu)&nbsp; ||d||&nbsp; lg(rg) alpha_du alpha_pr&nbsp; ls<br>&nbsp;&nbsp; 0&nbsp; 8.7905295e+04 1.00e+01 8.35e+02&nbsp; -1.0 0.00e+00&nbsp;&nbsp;&nbsp; -&nbsp; 0.00e+00 0.00e+00&nbsp;&nbsp; 0<br>&nbsp;&nbsp; 1&nbsp; 8.7910568e+04 9.98e+00
 8.26e+02&nbsp; -1.0 1.36e+01&nbsp;&nbsp; 4.0 1.27e-03 1.55e-03h&nbsp; 1<br>&nbsp;&nbsp; 2&nbsp; 8.7910720e+04 9.98e+00 8.26e+02&nbsp; -1.0 1.59e+01&nbsp;&nbsp; 3.5 1.91e-03 4.57e-05h&nbsp; 1<br>&nbsp;&nbsp; 3&nbsp; 8.7914175e+04 9.98e+00 8.27e+02&nbsp; -1.0 2.69e+01&nbsp;&nbsp; 3.0 1.54e-03 6.53e-04h&nbsp; 1<br>
&nbsp;&nbsp; 4&nbsp; 8.7951723e+04 9.89e+00 9.63e+02&nbsp; -1.0 4.51e+01&nbsp;&nbsp; 2.6 1.09e-03 8.94e-03h&nbsp; 1<br>&nbsp;&nbsp; 5&nbsp; 8.7953001e+04 9.84e+00 9.62e+02&nbsp; -1.0 2.65e+01&nbsp;&nbsp; 2.1 1.49e-02 4.97e-03h&nbsp; 1<br>&nbsp;&nbsp; 6&nbsp; 8.7951330e+04 9.59e+00 9.82e+02&nbsp; -1.0 3.18e+01&nbsp;&nbsp; 
1.6 3.12e-02 2.54e-02h&nbsp; 1<br>&nbsp;&nbsp; 7&nbsp; 8.7826040e+04 8.73e+00 9.73e+02&nbsp; -1.0 3.09e+01&nbsp;&nbsp; 1.1 8.71e-02 8.99e-02f&nbsp; 1<br>&nbsp;&nbsp; 8&nbsp; 8.7415118e+04 7.33e+00 8.53e+02&nbsp; -1.0 3.15e+01&nbsp;&nbsp; 0.7 7.17e-02 1.60e-01f&nbsp; 1<br>&nbsp;&nbsp; 9&nbsp; 8.7196048e+04 6.93e+00
 8.09e+02&nbsp; -1.0 3.61e+01&nbsp;&nbsp; 0.2 7.30e-02 5.49e-02f&nbsp; 1<br>iter&nbsp;&nbsp;&nbsp; objective&nbsp;&nbsp;&nbsp; inf_pr&nbsp;&nbsp; inf_du lg(mu)&nbsp; ||d||&nbsp; lg(rg) alpha_du alpha_pr&nbsp; ls<br>&nbsp; 10&nbsp; 8.6753427e+04 6.43e+00 7.55e+02&nbsp; -1.0 5.05e+01&nbsp; -0.3 2.45e-02 7.21e-02f&nbsp; 1<br>
&nbsp; 11&nbsp; 8.6708455e+04 6.40e+00 7.52e+02&nbsp; -1.0 8.43e+01&nbsp; -0.8 2.93e-02 4.11e-03f&nbsp; 1<br>&nbsp; 12&nbsp; 8.6223377e+04 6.25e+00 7.36e+02&nbsp; -1.0 1.88e+02&nbsp; -1.2 2.52e-03 2.36e-02f&nbsp; 1<br>&nbsp; 13&nbsp; 8.6188855e+04 6.24e+00 7.35e+02&nbsp; -1.0 6.50e+02&nbsp; - 
1.7 3.82e-03 9.22e-04f&nbsp; 1<br>&nbsp; 14&nbsp; 8.6076313e+04 6.20e+00 7.30e+02&nbsp; -1.0 1.40e+02&nbsp; -1.3 3.01e-03 6.82e-03f&nbsp; 1<br>&nbsp; 15&nbsp; 8.5958852e+04 6.13e+00 7.21e+02&nbsp; -1.0 7.48e+01&nbsp; -0.9 1.17e-02 1.18e-02f&nbsp; 1<br>&nbsp; 16&nbsp; 8.5807339e+04 6.10e+00
 7.18e+02&nbsp; -1.0 2.81e+02&nbsp; -1.4 1.13e-03 5.10e-03f&nbsp; 1<br>&nbsp; 17&nbsp; 8.5740763e+04 6.10e+00 7.18e+02&nbsp; -1.0 7.78e+03&nbsp; -1.8 1.23e-04 1.53e-04f&nbsp; 1<br>&nbsp; 18&nbsp; 8.5098085e+04 5.94e+00 7.00e+02&nbsp; -1.0 2.57e+02&nbsp; -1.4 1.42e-02 2.61e-02f&nbsp; 1<br>
&nbsp; 19&nbsp; 8.4984456e+04 5.93e+00 6.99e+02&nbsp; -1.0 7.07e+02&nbsp; -1.9 2.54e-03 1.98e-03f&nbsp; 1<br>......</font></p>
<p><font color="#3333ff">&nbsp;150 -6.3420338e+04 9.40e-13 6.43e-04&nbsp; -5.7 3.72e-02&nbsp;&nbsp;&nbsp; -&nbsp; 1.00e+00 1.00e+00h&nbsp; 1<br>&nbsp;151 -6.3420338e+04 9.23e-13 7.89e-04&nbsp; -5.7 1.49e-03&nbsp;&nbsp;&nbsp; -&nbsp; 1.00e+00 1.00e+00h&nbsp; 1<br>&nbsp;152 -6.3420338e+04 1.06e-12
 3.50e-04&nbsp; -5.7 1.81e-03&nbsp;&nbsp;&nbsp; -&nbsp; 1.00e+00 2.50e-01h&nbsp; 3<br>&nbsp;153 -6.3420338e+04 7.96e-13 4.29e-04&nbsp; -5.7 8.02e-04&nbsp;&nbsp;&nbsp; -&nbsp; 1.00e+00 1.00e+00h&nbsp; 1<br>&nbsp;154 -6.3420338e+04 9.40e-13 5.26e-04&nbsp; -5.7 9.84e-04&nbsp;&nbsp;&nbsp; -&nbsp; 1.00e+00 1.00e+00h&nbsp; 1<br>
&nbsp;155 -6.3420338e+04 9.09e-13 8.17e-05&nbsp; -5.7 1.21e-03&nbsp;&nbsp;&nbsp; -&nbsp; 1.00e+00 5.00e-01h&nbsp; 2<br>&nbsp;156 -6.3420338e+04 9.40e-13 2.64e-05&nbsp; -5.7 1.37e-04&nbsp;&nbsp;&nbsp; -&nbsp; 1.00e+00 2.50e-01h&nbsp; 3<br>&nbsp;157 -6.3420338e+04 4.55e-13 3.24e-05&nbsp; -5.7 6.06e-05&nbsp;&nbsp;&nbsp; -&nbsp; 
1.00e+00 1.00e+00H&nbsp; 1<br>&nbsp;158 -6.3420338e+04 9.09e-13 3.21e-05&nbsp; -5.7 7.43e-05&nbsp;&nbsp;&nbsp; -&nbsp; 1.00e+00 3.91e-03h&nbsp; 9<br>Restoration phase is called at point that is almost feasible,<br>&nbsp; with constraint violation 5.442878e-12. Abort. 
</font></p>
<p><font color="#3333ff">Number of Iterations....: 158</font></p>
<p><font color="#3333ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (scaled)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (unscaled)<br>Objective...............:&nbsp; -6.3420337528224874e+04&nbsp;&nbsp; -6.3420337528224874e+04<br>Dual infeasibility......:&nbsp;&nbsp; 3.2092465486712886e-05
 &nbsp;&nbsp;&nbsp; 3.2092465486712886e-05<br>Constraint violation....:&nbsp;&nbsp; 1.1102230246251565e-16&nbsp;&nbsp;&nbsp; 1.1102230246251565e-16<br>Complementarity.........:&nbsp;&nbsp; 1.8449147213693174e-06&nbsp;&nbsp;&nbsp; 1.8449147213693174e-06<br>Overall NLP error.......:&nbsp;&nbsp; 3.2092465486712886e-05
 &nbsp;&nbsp;&nbsp; 3.2092465486712886e-05</font></p>
<p><br><font color="#3333ff">Number of objective function evaluations&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 230<br>Number of objective gradient evaluations&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 160<br>Number of equality constraint evaluations&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 230<br>Number of inequality constraint evaluations&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 230 
<br>Number of equality constraint Jacobian evaluations&nbsp;&nbsp; = 160<br>Number of inequality constraint Jacobian evaluations = 160<br>Number of Lagrangian Hessian evaluations&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 159<br>Total CPU secs in IPOPT (w/o function evaluations)&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
0.156<br>Total CPU secs in NLP function evaluations&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.309</font></p>
<p><font color="#3333ff">EXIT: Restoration Failed!<br>y [*] :=<br>prod1&nbsp; 216.768<br>prod2&nbsp; 177.989<br>prod3&nbsp; 201.233<br>prod4&nbsp; 189.046<br>prod5&nbsp; 215.566<br>;<br></font></p></div>
<div>As you can see, it still gives me one solution, but it also says restoration failed. I am just wondering is it because that the IPOPT solver is not specifically good for my problem or something else.</div>
<div>&nbsp;</div>
<div>Best</div></div>
</blockquote><style>
</style>
</body></html>