Skip to content

Commit

Permalink
fix: don't use deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Sep 25, 2024
1 parent 9b0f8ae commit abb6366
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/default.jl
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ function FastShortcutNonlinearPolyalg(
else
algs = (NewtonRaphson(; concrete_jac, linsolve, precs, autodiff),
NewtonRaphson(; concrete_jac, linsolve, precs,
linesearch = BackTracking(), autodiff),
linesearch = LineSearchesJL(; method = LineSearches.BackTracking()),
autodiff),
TrustRegion(; concrete_jac, linsolve, precs, autodiff),
TrustRegion(; concrete_jac, linsolve, precs,
radius_update_scheme = RadiusUpdateSchemes.Bastin, autodiff))
Expand All @@ -426,7 +427,8 @@ function FastShortcutNonlinearPolyalg(
SimpleKlement(),
NewtonRaphson(; concrete_jac, linsolve, precs, autodiff),
NewtonRaphson(; concrete_jac, linsolve, precs,
linesearch = BackTracking(), autodiff),
linesearch = LineSearchesJL(; method = LineSearches.BackTracking()),
autodiff),
TrustRegion(; concrete_jac, linsolve, precs,
radius_update_scheme = RadiusUpdateSchemes.Bastin, autodiff))
end
Expand All @@ -444,7 +446,8 @@ function FastShortcutNonlinearPolyalg(
Klement(; linsolve, precs, autodiff),
NewtonRaphson(; concrete_jac, linsolve, precs, autodiff),
NewtonRaphson(; concrete_jac, linsolve, precs,
linesearch = BackTracking(), autodiff),
linesearch = LineSearchesJL(; method = LineSearches.BackTracking()),
autodiff),
TrustRegion(; concrete_jac, linsolve, precs, autodiff),
TrustRegion(; concrete_jac, linsolve, precs,
radius_update_scheme = RadiusUpdateSchemes.Bastin, autodiff))
Expand Down

0 comments on commit abb6366

Please sign in to comment.