public abstract class BracketSearch extends java.lang.Object implements UnivariateMinimizer
| Modifier and Type | Class and Description |
|---|---|
protected class |
BracketSearch.Solution |
| Modifier and Type | Field and Description |
|---|---|
protected double |
epsilon
the convergence tolerance
|
protected int |
maxIterations
the maximum number of iterations
|
| Modifier | Constructor and Description |
|---|---|
protected |
BracketSearch(double epsilon,
int maxIterations)
Construct a univariate minimizer using a bracket search method.
|
| Modifier and Type | Method and Description |
|---|---|
UnivariateMinimizer.Solution |
solve(UnivariateRealFunction f)
Minimize a univariate function.
|
protected final double epsilon
protected final int maxIterations
protected BracketSearch(double epsilon,
int maxIterations)
epsilon - the convergence tolerance; It should be no less than the square root of the machine precision.maxIterations - the maximum number of iterationspublic UnivariateMinimizer.Solution solve(UnivariateRealFunction f) throws java.lang.Exception
f - the objective functionjava.lang.Exception