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
When solving a nonlinear system of equations with
NewtonRaphson
,LinesearchJL
andAutoFiniteDiff
, one gets a warning. Seetriggers the following message: