Optimize with Fminbox. Can't find the way how to put tolerance and number of iterations

I am sorry for simmple questions.


opt = optimize(loss, [0.01],[0.05], [0.02],Fminbox(LBFGS()));

How to put tolerance and number of iterations.
parameters x_tol, g_tol don’t work.

thank you in advance.

You can use options, this way:

results = optimize(f, lower, upper, initial_x, Fminbox(GradientDescent()), 
Optim.Options(outer_iterations = 2))

See options here: Optim.jl

thank you. I’ve just tried “iterations” and haven’t found “outer_iterations”

iterations can be used too. inside Options structure.
Better way to use

Optim.Options()

for options, not keywords.