JuliaNLSolvers / Optim.jl

Optimization functions for Julia
Other
1.11k stars 213 forks source link

Wrong syntax for Fminbox in example #1006

Closed lamorton closed 1 year ago

lamorton commented 1 year ago

Example code here:

results = optimize(od, initial_x, lower, upper, Fminbox{GradientDescent}())

Doesn't work. This comment notes that the syntax was changed to:

result1 = optimize(restmp_a, lower, upper, abc, Fminbox(GradientDescent()); iterations = 20)
pkofod commented 1 year ago

How did you find that? The page you're pointing to is for a very very old version of Optim. The current docs are here https://julianlsolvers.github.io/Optim.jl/stable/#user/minimization/