Am 12.01.2012 14:32, schrieb Steven G. Johnson: >> In my Matlab program I use NLOpt this way: > Ah, you are calling NLopt from Matlab. That explains it; currently, there is > no way to force termination in the Matlab interface. You have to call it > from another language to use nlopt_force_stop. > Ah, okay. In this case I would kindly ask for such an option. Why not use NaN or -Inf as a trigger value? Of course I don't know the source code, but it could be possible to look out for those values and call nlopt_force_stop automatically, couldn't it?
Thinking about it, it might be better to use -Inf than NaN since it can happen to get an NaN as the result of the cost functional (in particular with algorithms not based on gradients). At least this is my experience with Matlab. However, thank you for your answer! I wonder why I hadn't found this myself in the documentation recently. It must be hidden somewhere, because I have a faint memory about having read this once already. Greetings, Norman _______________________________________________ NLopt-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss
