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

Unnecessary warning #448

Closed
MichelJuillard opened this issue Jun 12, 2024 · 0 comments · Fixed by #449
Closed

Unnecessary warning #448

MichelJuillard opened this issue Jun 12, 2024 · 0 comments · Fixed by #449

Comments

@MichelJuillard
Copy link

MichelJuillard commented Jun 12, 2024

When solving a nonlinear system of equations with NewtonRaphson, LinesearchJL and AutoFiniteDiff, one gets a warning. See

using NonlinearSolve

f(u, p) = u .* u .- p
u0 = [1.0, 1.0]
p = 2.0
prob = NonlinearProblem(f, u0, p)
sol = solve(prob,NewtonRaphson(autodiff=AutoFiniteDiff(), linesearch = LineSearchesJL()))

triggers the following message:

AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}}(Val{:forward}(), Val{:forward}(), Val{:hcentral}())
::AutoFiniteDiff{Val{:forward}, Val{:forward}, Val{:hcentral}} is not a `ReverseMode`. Use with caution.

retcode: Success
u: 2-element Vector{Float64}:
 1.4142135623730951
 1.4142135623730951
@MichelJuillard MichelJuillard added the bug Something isn't working label Jun 12, 2024
@avik-pal avik-pal removed the bug Something isn't working label Jun 13, 2024
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

Successfully merging a pull request may close this issue.

2 participants