[Coin-ipopt] Problem With NL Problem With > 100 Variables

Carl Laird carl.d.laird at gmail.com
Thu Apr 12 23:44:29 EDT 2007


Hi Jacob, glad to hear you are using IPOPT, I hope it works for your problem.

This type of error happens when there is a numerical evaluation
problem in AMPL (i.e. a constraint evaluates to infinity or NaN, sqrt
of a negative number, etc). You can add the following option to the
AMPL .mod file

   option ipopt_options "halt_on_ampl_error=yes"

before the solve call. This will instruct AMPL to halt when it detects
an evaluation error and give some more details about the problem. It
looks like Ipopt is complaining about an infinite value coming from
the objective function evaluation, and setting the above option should
give more detailed information. The halt_on_ampl_error option is
particularily useful when the problem is with a constraint since it
causes AMPL to indicate which constraint was at fault.

This type of error typically happens to me when I have expressions
like exp(x) in my functions and I haven't limited x in any way.
Depending on the problem, x could become very large as it iterates and
cause an evaluation error.

One final comment. When I compile in CYGWIN, I have to configure ipopt
with the --enable-doscompile option otherwise I have problems reading
options from AMPL. So, before you try the halt_on_ampl_error option,
make sure you configure with this option.

Hope this helps,

Carl.


On 4/12/07, Jacob C. <jacobcdf at yahoo.com> wrote:
> Running 3.2.3 on XP compiled with default under cygwin through AMPL.
>
> It seems that when I hit roughly 100 variables IPOPT spits out the following
> (halt_on_ampl_error set to TRUE):
>
> EXIT: Invalid number in NLP function or derivative detected.
> Error in an AMPL evaluation. Run with "halt_on_ampl_error yes" to see
> details.
> Exception of type: Eval_Error in file "IpOrigIpoptNLP.cpp" at line 403:
>  Exception message: success && IsFiniteNumber(ret) evaluated false: Error
> evaluating the objective function
>
> EXIT: Some uncaught Ipopt exception encountered.
> can't open at1564.sol
>
> -----------------------------
>
> I'm very much a beginner and have little where to even start tracking this
> down. FWIW, the problem runs smoothly with MINOS 5.5. Will provide the model
> upon request.
>
>
> Thanks,
> Jac.
>
>
>  ________________________________
>  Don't get soaked. Take a quick peak at the forecast
>  with theYahoo! Search weather shortcut.
>
>
> _______________________________________________
> Coin-ipopt mailing list
> Coin-ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-ipopt
>
>



More information about the Coin-ipopt mailing list