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 committed Oct 17, 2023
2 parents ac448ea + e1301cb commit 04fc309
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 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 04fc309

Please sign in to comment.