Hi, I am using Nlopt for a gradient based optimization. It stopes after 4 iterations and returns forced stop and the output is not converged. Could you please tell me how can I find the problem which makes optimizer to forced stop?
1 Like
Can you share a reproducible example?
You should also try updating to the most recent version of NLopt, we made some improvements in how errors are reported.
1 Like
Try wrapping the optimized function in try ... catch
to see the error message that NLOpt swallowed:
function fmin(x)
dev = try
_fmin(x);
catch e
bt = catch_backtrace()
showerror(stdout, e, bt)
rethrow(e)
end
return dev
end
1 Like