Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit e1301cb

Browse files
Set ITP as the default method for interval problems
1 parent ac448ea commit e1301cb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/SimpleNonlinearSolve.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,19 @@ include("batched/raphson.jl")
4646
include("batched/dfsane.jl")
4747
include("batched/broyden.jl")
4848

49+
## Default algorithm
50+
51+
# Set the default bracketing method to ITP
52+
53+
function SciMLBase.solve(prob::IntervalNonlinearProblem; kwargs...)
54+
SciMLBase.solve(prob, ITP(); kwargs...)
55+
end
56+
57+
function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::Nothing,
58+
args...; kwargs...)
59+
SciMLBase.solve(prob, ITP(), args...; kwargs...)
60+
end
61+
4962
import PrecompileTools
5063

5164
PrecompileTools.@compile_workload begin

0 commit comments

Comments
 (0)