Hi, use bonminset(), as per the example below:
http://i2c2.aut.ac.nz/Wiki/OPTI/index.php/Advanced/Opts#sOpts
Jonathan
--
You received this message because you are subscribed to the Google Groups "OPTI Toolbox Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opti-toolbox-fo...@googlegroups.com.
To post to this group, send email to opti-tool...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to opti-toolbox-forum+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to opti-toolbox-forum+unsub...@googlegroups.com.
Hi Kuo-Shih,
I apologize I didn’t read your initial email carefully enough. Bonmin (as with many other solvers) cannot guarantee to finish within a specified time. The max-time is simply used (as far as I know) to check if the current execution time is >= max time, and therefore exit. It is likely that in a user callback (i.e. your nonlinear function), a sub-solver (e.g. CBC/CLP) or a BLAS/LAPACK routine that the solver passes the maximum execution time, and it is only checked once back in Bonmin’s main solver loop, thus going ‘over-time’ in your application.
In addition, I’m not sure whether Bonmin only uses integers for setting the max time, or accepts fractions of a second (check the manual). Optiset() attempts to set the correct maximum time options within the solver, but it is not guaranteed.
To unsubscribe from this group and stop receiving emails from it, send an email to opti-toolbox-fo...@googlegroups.com.
To post to this group, send email to opti-tool...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "OPTI Toolbox Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opti-toolbox-fo...@googlegroups.com.