Skip to content

Commit

Permalink
Merge pull request #85 from SciML/default
Browse files Browse the repository at this point in the history
Set ITP as the default method for interval problems
  • Loading branch information
ChrisRackauckas authored Oct 17, 2023
2 parents 4814334 + 65bcea0 commit f73842d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/SimpleNonlinearSolve/src/SimpleNonlinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ include("batched/raphson.jl")
include("batched/dfsane.jl")
include("batched/broyden.jl")

## Default algorithm

# Set the default bracketing method to ITP

function SciMLBase.solve(prob::IntervalNonlinearProblem; kwargs...)
SciMLBase.solve(prob, ITP(); kwargs...)
end

function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::Nothing,
args...; kwargs...)
SciMLBase.solve(prob, ITP(), args...; kwargs...)
end

import PrecompileTools

PrecompileTools.@compile_workload begin
Expand Down

0 comments on commit f73842d

Please sign in to comment.