Implementation of the Regula Falsi and
Illinois methods is 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.
Implementation of the Pegasus method is
based on the following article: M. Dowell and P. Jarratt,
The "Pegasus" method for computing the root of an equation,
BIT Numerical Mathematics, volume 12, number 4, pages 503-508, Springer,
1972.
The Secant method is not a
bracketing method, so it is not implemented here. It has a separate
implementation.
| Modifier and Type | Class and Description |
|---|---|
| protected static enum | BaseSecantSolver.
Secant-based root-finding methods. |
| Modifier and Type | Field and Description |
|---|---|
| private AllowedSolution | allowed
The kinds of solutions that the algorithm may accept. |
| protected static final double | DEFAULT_ABSOLUTE_ACCURACY
Default absolute accuracy. |
| private final BaseSecantSolver. | method
The Secant-based root-finding method to use. |
| Access | Constructor and Description |
|---|---|
| protected | BaseSecantSolver(final double
Absolute accuracy. absoluteAccuracy, final BaseSecantSolver.Secant-based root-finding method to use. methodConstruct a solver. |
| protected | BaseSecantSolver(final double
Relative accuracy. relativeAccuracy, final double Absolute accuracy. absoluteAccuracy, final BaseSecantSolver.Secant-based root-finding method to use. methodConstruct a solver. |
| protected | BaseSecantSolver(final double
Maximum relative error. relativeAccuracy, final double Maximum absolute error. absoluteAccuracy, final double Maximum function value error. functionValueAccuracy, final BaseSecantSolver.Secant-based root-finding method to use methodConstruct a solver. |
| Modifier and Type | Method and Description |
|---|---|
| protected final double | doSolve()
Implements abstract org. Method for implementing actual optimization algorithms in derived classes. |
| public double | solve(final int
Maximum number of evaluations. maxEval, final UnivariateFunction Function to solve. f, final double Lower bound for the interval. min, final double Upper bound for the interval. max, final AllowedSolution The kind of solutions that the root-finding algorithm may
accept as solutions. allowedSolution)Implements org. Solve for a zero in the given interval. |
| public double | solve(final int
Maximum number of evaluations. maxEval, final UnivariateFunction Function to solve. f, final double Lower bound for the interval. min, final double Upper bound for the interval. max, final double Start value to use. startValue, final AllowedSolution The kind of solutions that the root-finding algorithm may
accept as solutions. allowedSolution)Implements org. Solve for a zero in the given interval, start at |
| public double | solve(final int
Maximum number of evaluations. maxEval, final UnivariateFunction Function to solve. f, final double Lower bound for the interval. min, final double Upper bound for the interval. max, final double Start value to use. startValue)Overrides org. Implements org. Solve for a zero in the given interval, start at |
| allowed | back to summary |
|---|---|
| private AllowedSolution allowed The kinds of solutions that the algorithm may accept. | |
| DEFAULT_ABSOLUTE_ACCURACY | back to summary |
|---|---|
| protected static final double DEFAULT_ABSOLUTE_ACCURACY Default absolute accuracy. | |
| method | back to summary |
|---|---|
| private final BaseSecantSolver. The Secant-based root-finding method to use. | |
| BaseSecantSolver | back to summary |
|---|---|
| protected BaseSecantSolver(final double absoluteAccuracy, final BaseSecantSolver. Construct a solver.
| |
| BaseSecantSolver | back to summary |
|---|---|
| protected BaseSecantSolver(final double relativeAccuracy, final double absoluteAccuracy, final BaseSecantSolver. Construct a solver.
| |
| BaseSecantSolver | back to summary |
|---|---|
| protected BaseSecantSolver(final double relativeAccuracy, final double absoluteAccuracy, final double functionValueAccuracy, final BaseSecantSolver. Construct a solver.
| |
| doSolve | back to summary |
|---|---|
| protected final double doSolve() throws ConvergenceException Implements abstract org. Doc from org. Method for implementing actual optimization algorithms in derived classes.
| |
| solve | back to summary |
|---|---|
| public double solve(final int maxEval, final UnivariateFunction f, final double min, final double max, final AllowedSolution allowedSolution) Implements org. Doc from org. Solve for a zero in the given interval. A solver may require that the interval brackets a single zero root. Solvers that do require bracketing should be able to handle the case where one of the endpoints is itself a root.
| |
| solve | back to summary |
|---|---|
| public double solve(final int maxEval, final UnivariateFunction f, final double min, final double max, final double startValue, final AllowedSolution allowedSolution) Implements org. Doc from org. Solve for a zero in the given interval, start at
| |
| solve | back to summary |
|---|---|
| public double solve(final int maxEval, final UnivariateFunction f, final double min, final double max, final double startValue) Overrides org. Implements org. Doc from org. Solve for a zero in the given interval, start at
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final BaseSecantSolver. | |
| public static final BaseSecantSolver. | |
| public static final BaseSecantSolver. | REGULA_FALSI
The |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BaseSecantSolver. | |
| public static BaseSecantSolver. |
| ILLINOIS | back to summary |
|---|---|
| public static final BaseSecantSolver. The | |
| PEGASUS | back to summary |
|---|---|
| public static final BaseSecantSolver. The | |
| REGULA_FALSI | back to summary |
|---|---|
| public static final BaseSecantSolver. The | |
| Method | back to summary |
|---|---|
| private Method() | |
| valueOf | back to summary |
|---|---|
| public static BaseSecantSolver. | |
| values | back to summary |
|---|---|
| public static BaseSecantSolver. | |