Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not showing candidate solutions? #1047

Closed
naveenpalli opened this issue Aug 11, 2023 · 2 comments
Closed

Not showing candidate solutions? #1047

naveenpalli opened this issue Aug 11, 2023 · 2 comments

Comments

@naveenpalli
Copy link

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())

  • Status: success

  • Candidate solution
    Final objective value: 5.471433e-17

  • Found with
    Algorithm: BFGS

  • Convergence measures
    |x - x'| = 3.47e-07 ≰ 0.0e+00
    |x - x'|/|x'| = 3.47e-07 ≰ 0.0e+00
    |f(x) - f(x')| = 6.59e-14 ≰ 0.0e+00
    |f(x) - f(x')|/|f(x')| = 1.20e+03 ≰ 0.0e+00
    |g(x)| = 2.33e-09 ≤ 1.0e-08

  • Work counters
    Seconds run: 0 (vs limit Inf)
    Iterations: 16
    f(x) calls: 53
    ∇f(x) calls: 53

@naveenpalli
Copy link
Author

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

@grantbrown
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants