[Ipopt] IpOpt code: Detereministic or Random across various runs?

AliReza Khoshgoftar Monfared khoshgoftar at gmail.com
Tue Dec 18 11:01:04 EST 2012

Thanks very much Tony,

It seems that the problem was exactly what you mentioned.
I was doing all consecutive runs of ipopt() in a for loop, but  there seems
to be a necessity to clear everything, except the initial point (which is
supposed to be the same across all runs)
Now I get exactly the same result across various runs with the same initial


On Mon, Dec 17, 2012 at 10:28 PM, Tony Kelman <kelman at berkeley.edu> wrote:

> Alireza,
> Something you should try is "clear functions" and/or "clear global"
> between invocations of Ipopt - there may be some internal state somewhere
> in the mex file or in your callback functions. There shouldn't be, but it's
> possible. Also check that your objective and constraint functions are
> returning dense vectors - in the patch that Stefan linked to, I only test
> for and fix the issue for the gradient function. I thought it would be much
> less likely for anyone to write objective or constraint functions that
> return sparse vectors, but that might also lead to similar strange behavior
> if it were the case.
> -Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20121218/762f2b44/attachment.html>

More information about the Ipopt mailing list