8000 LBFGS iteration index is always 0? · Issue #907 · SciML/Optimization.jl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

LBFGS iteration index is always 0? #907

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

Open
TorkelE opened this issue May 2, 2025 · 0 comments
Open

LBFGS iteration index is always 0? #907

TorkelE opened this issue May 2, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@TorkelE
Copy link
Member
TorkelE commented May 2, 2025
let
    using Optimization

    rosenbrock(x, p) = (p[1] - x[1])^2 + p[2] * (x[2] - x[1]^2)^2
    x0 = zeros(2)
    p = [1.0, 100.0]

    optf = OptimizationFunction(rosenbrock, AutoForwardDiff())
    prob = Optimization.OptimizationProblem(optf, x0, p)
    callback = (opt_state, loss_val) -> (println(opt_state.iter); false;)
    sol = solve(prob, Optimization.LBFGS(); callback, maxiters = 10)
end

prints

0
0
0
0
0
0
0
0
0
0
0
0
0
0

Changing to e.g. Adam gives

1
2
3
4
5
6
7
8
9
10
10
@TorkelE TorkelE added the bug Something isn't working label May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0