JuliaIntervals / IntervalRootFinding.jl

Library for finding the roots of a function using interval arithmetic
https://juliaintervals.github.io/IntervalRootFinding.jl/
Other
126 stars 26 forks source link

Stopping Function #132

Open orkolorko opened 5 years ago

orkolorko commented 5 years ago

An interesting addition would be the possibility of passing a different stopping function to the root_finding method.

I.e. I`m looking for roots in x of a function f(t, x), where t may be a thick interval. I would like the stopping criteria to be the fact that the derivative w.r.t. to t of the root does not contain 0.

dpsanders commented 5 years ago

That sounds Interesting.

But it sounds like you might get a complicated set, so maybe IntervalConstraintProgramming.jl would be more appropriate for that? Otherwise feel free to make a Pull Request!

Kolaru commented 5 years ago

Using the iterator version of the search, you can already do it by defining a custom Search type and defining a process function that suits your needs.

See https://github.com/JuliaIntervals/IntervalRootFinding.jl/blob/master/examples/root_search_iterator.jl for an example.

Having a nicer interface that allows to directly pass the stop criterion as a function may still be nice.