Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
last few TrustRegions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jan 17, 2023
1 parent 4c5b430 commit 632910b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/SimpleNonlinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ SnoopPrecompile.@precompile_all_calls begin for T in (Float32, Float64)
solve(prob_no_brack, alg(), abstol = T(1e-2))
end

for alg in (TrustRegion(10.0),)
for alg in (SimpleTrustRegion(10.0),)
solve(prob_no_brack, alg, abstol = T(1e-2))
end

Expand All @@ -53,6 +53,6 @@ SnoopPrecompile.@precompile_all_calls begin for T in (Float32, Float64)
end end

# DiffEq styled algorithms
export Bisection, Broyden, Falsi, Klement, SimpleNewtonRaphson, TrustRegion
export Bisection, Broyden, Falsi, Klement, SimpleNewtonRaphson, SimpleTrustRegion

end # module
2 changes: 1 addition & 1 deletion src/trustRegion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function SciMLBase.__solve(prob::NonlinearProblem,
max_shrink_times = alg.max_shrink_times

if SciMLBase.isinplace(prob)
error("TrustRegion currently only supports out-of-place nonlinear problems")
error("SimpleTrustRegion currently only supports out-of-place nonlinear problems")
end

atol = abstol !== nothing ? abstol :
Expand Down

0 comments on commit 632910b

Please sign in to comment.