Open
Description
Describe the bug 🐞
Although the IntervalNonlinearProblem
docs say keyword arguments are passed to the solver, I do not find the solution to depend on the abstol
passed to the problem (abstol
does have an effect when passed to the solve
). I only tested ITP
.
Expected behavior
I would like to see that the abstol
passed to the problem overrides the default abstol
, but is of lower precedence than tolerances passed into solve
.
Minimal Reproducible Example 👇
using SimpleNonlinearSolve
const counter = Ref(0)
prob = IntervalNonlinearProblem((x, counter) -> (counter[] += 1; exp(-x)-x), (0.0, 1.0), counter; abstol=1e-3)
solve(prob, ITP())
counter[] # 37
counter[] = 0
solve(prob, ITP(); abstol=1e-3)
counter[] # 9, fewer function evaluations than first, meaning the problem tolerance was not used
I was using SimpleNonlinearSolve.jl v2.1.0.