Implementation based on the following article: M. Dowell and P. Jarratt, A modified regula falsi method for computing the root of an equation, BIT Numerical Mathematics, volume 11, number 2, pages 168-174, Springer, 1971.
Note that since release 3.0 this class implements the actual
Secant algorithm, and not a modified one. As such, the 3.0 version
is not backwards compatible with previous versions. To use an algorithm
similar to the pre-3.0 releases, use the
Illinois algorithm or the
Pegasus algorithm.
| Modifier and Type | Field and Description |
|---|---|
| protected static final double | DEFAULT_ABSOLUTE_ACCURACY
Default absolute accuracy. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | SecantSolver(final double
relative accuracy relativeAccuracy, final double absolute accuracy absoluteAccuracy)Construct a solver. |
| Modifier and Type | Method and Description |
|---|---|
| protected final double | doSolve()
Implements abstract org. Method for implementing actual optimization algorithms in derived classes. |
| DEFAULT_ABSOLUTE_ACCURACY | back to summary |
|---|---|
| protected static final double DEFAULT_ABSOLUTE_ACCURACY Default absolute accuracy. | |
| SecantSolver | back to summary |
|---|---|
| public SecantSolver() Construct a solver with default accuracy (1e-6). | |
| SecantSolver | back to summary |
|---|---|
| public SecantSolver(final double absoluteAccuracy) Construct a solver.
| |
| SecantSolver | back to summary |
|---|---|
| public SecantSolver(final double relativeAccuracy, final double absoluteAccuracy) Construct a solver.
| |
| doSolve | back to summary |
|---|---|
| protected final double doSolve() throws TooManyEvaluationsException, NoBracketingException Implements abstract org. Doc from org. Method for implementing actual optimization algorithms in derived classes.
| |