Quantcast
Channel: Math.NET Numerics
Viewing all articles
Browse latest Browse all 971

New Post: Using Brent to find minima

$
0
0
Actually stepping through it again with the accuracy set to 0.01 I end up hitting return false;

 if (xMid == xMidOld)
                {
                    // accuracy not sufficient, but cannot be improved further
                    return false;
                }
The problem I have is that the next thing that happens is an exception is thrown.

throw new NonConvergenceException(Resources.RootFindingFailed);
My assumption on the way accuracy works, is that once the result varies by less than the accuracy (0.01 in my case), the result cannot be improved further or in my case is close enough for my purpose.

Is there a way I can use the library to return the "close enough" value, without change the source code - so I can easily update to latest library version in the future?

Thanks again!

Dominic

P.S. I believed the quote source code is from the 3.x version.

Viewing all articles
Browse latest Browse all 971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>