JuliaNLSolvers / Optim.jl

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

Not showing candidate solutions? #1047

Closed naveenpalli closed 10 months ago

naveenpalli commented 11 months ago

Optim version 1.7.6/ Julia 1.9.2 on Windows 10. Running the basic rosenbrock function and I don't see the candidate solution values just the final objective value. Something missing in my setup?

julia> rosenbrock(x) = (1.0 - x[1])^2 + 100.0 * (x[2] - x[1]^2)^2 rosenbrock (generic function with 1 method)

julia> result = optimize(rosenbrock, zeros(2), BFGS())

naveenpalli commented 10 months ago

Looks like it is stored in result.minimizer as a Vector but not displayed. Closing this issue.

grantbrown commented 9 months ago

Note that this doesn't match the behavior in the documentation - might be worth updating or re-adding this to the output.