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 all line search methods work with Fminbox #178

Open
timholy opened this issue Jul 30, 2024 · 0 comments
Open

Not all line search methods work with Fminbox #178

timholy opened this issue Jul 30, 2024 · 0 comments

Comments

@timholy
Copy link
Contributor

timholy commented Jul 30, 2024

This is implicit in #81, but just to document it:

julia> using LineSearches, Optim

julia> f(x) = sum(abs2, x)
f (generic function with 1 method)

julia> optimize(f, [0.5], [1.5], [1.0], Fminbox(LBFGS(linesearch=LineSearches.MoreThuente())); autodiff=:forward)
┌ Warning: Terminated early due to NaN in gradient.
└ @ Optim ~/.julia/packages/Optim/ZhuZN/src/multivariate/optimize/optimize.jl:98
 * Status: failure

 * Candidate solution
    Final objective value:     NaN

 * Found with
    Algorithm:     Fminbox with L-BFGS

 * Convergence measures
    |x - x'|               = NaN  0.0e+00
    |x - x'|/|x'|          = NaN  0.0e+00
    |f(x) - f(x')|         = 0.00e+00  0.0e+00
    |f(x) - f(x')|/|f(x')| = NaN  0.0e+00
    |g(x)|                 = NaN  1.0e-08

 * Work counters
    Seconds run:   1  (vs limit Inf)
    Iterations:    2
    f(x) calls:    28
    ∇f(x) calls:   28
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

1 participant