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

Tolerance fix for interval solvers #77

Merged
merged 20 commits into from
Sep 12, 2023
Merged

Conversation

yash2798
Copy link
Member

@yash2798 yash2798 commented Sep 1, 2023

fixes #57

@codecov
Copy link

codecov bot commented Sep 1, 2023

Codecov Report

Merging #77 (6b2fb69) into main (2690c0c) will increase coverage by 3.14%.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##            main     #77      +/-   ##
========================================
+ Coverage   0.00%   3.14%   +3.14%     
========================================
  Files         20      20              
  Lines        990    1017      +27     
========================================
+ Hits           0      32      +32     
+ Misses       990     985       -5     
Files Changed Coverage Δ
src/bisection.jl 0.00% <0.00%> (ø)
src/brent.jl 0.00% <0.00%> (ø)
src/falsi.jl 0.00% <0.00%> (ø)
src/itp.jl 0.00% <0.00%> (ø)
src/ridder.jl 0.00% <0.00%> (ø)

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -31,6 +31,11 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::Bisection, args...
retcode = ReturnCode.ExactSolutionLeft, left = left,
right = right)
end
if iszero(fr)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, i dont see RightExactSolution condition in any of these bracketing solvers, was that intentional? Otherwise, it's gonna calculate an inexact solution even if the right value is the exact zero?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is a condition by which right solution is exact it should do that retcode yes.

@yash2798 yash2798 changed the title [WIP] Tolerance fix for interval solvers Tolerance fix for interval solvers Sep 7, 2023
@yash2798 yash2798 marked this pull request as ready for review September 7, 2023 19:03
@yash2798
Copy link
Member Author

yash2798 commented Sep 7, 2023

@ChrisRackauckas this can be reviewed now

@ChrisRackauckas
Copy link
Member

Why isn't ITP in this list?

@yash2798
Copy link
Member Author

Why isn't ITP in this list?

sorry, just added it. i was under the impression that it was already there as we had an epsilon in the algorithm, but the early exit condition wasnt there.

@ChrisRackauckas ChrisRackauckas merged commit 21f14ff into SciML:main Sep 12, 2023
@yash2798 yash2798 deleted the ys/tolerance branch September 15, 2023 00:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

abstol and reltol are ignored
3 participants