public abstract class BracketSearchMinimizer extends Object implements UnivariateMinimizer
Modifier and Type | Class and Description |
---|---|
protected class |
BracketSearchMinimizer.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 |
BracketSearchMinimizer(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 BracketSearchMinimizer(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 Exception
f
- the objective functionException
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.