(lo, hi), this class
finds an approximation x to the point at which the function
attains its minimum.
It implements Richard Brent's algorithm (from his book "Algorithms for
Minimization without Derivatives", p. 79) for finding minima of real
univariate functions.
| Modifier and Type | Field and Description |
|---|---|
| private final double | absoluteThreshold
Absolute threshold. |
| private static final double | GOLDEN_SECTION
Golden section. |
| private static final double | MIN_RELATIVE_TOLERANCE
Minimum relative tolerance. |
| private final double | relativeThreshold
Relative threshold. |
| Access | Constructor and Description |
|---|---|
| public | BrentOptimizer(double
Relative threshold. rel, double Absolute threshold. abs, ConvergenceChecker<UnivariatePointValuePair> Additional, user-defined, convergence checking
procedure. checker)The arguments are used implement the original stopping criterion of Brent's algorithm. |
| public | BrentOptimizer(double
Relative threshold. rel, double Absolute threshold. abs)The arguments are used for implementing the original stopping criterion of Brent's algorithm. |
| Modifier and Type | Method and Description |
|---|---|
| private UnivariatePointValuePair | Returns: the best point, ornull if a and b are
both null. When a and b have the same function
value, a is returned.Point and value. a, UnivariatePointValuePair Point and value. b, boolean true if the selected point must be the one with
the lowest value.Selects the best of two points. |
| protected UnivariatePointValuePair | doOptimize()
Implements abstract org. Performs the bulk of the optimization algorithm. |
| absoluteThreshold | back to summary |
|---|---|
| private final double absoluteThreshold Absolute threshold. | |
| GOLDEN_SECTION | back to summary |
|---|---|
| private static final double GOLDEN_SECTION Golden section. | |
| MIN_RELATIVE_TOLERANCE | back to summary |
|---|---|
| private static final double MIN_RELATIVE_TOLERANCE Minimum relative tolerance. | |
| relativeThreshold | back to summary |
|---|---|
| private final double relativeThreshold Relative threshold. | |
| BrentOptimizer | back to summary |
|---|---|
| public BrentOptimizer(double rel, double abs, ConvergenceChecker<UnivariatePointValuePair> checker) The arguments are used implement the original stopping criterion
of Brent's algorithm.
| |
| BrentOptimizer | back to summary |
|---|---|
| public BrentOptimizer(double rel, double abs) The arguments are used for implementing the original stopping criterion
of Brent's algorithm.
| |
| best | back to summary |
|---|---|
| private UnivariatePointValuePair best(UnivariatePointValuePair a, UnivariatePointValuePair b, boolean isMinim) Selects the best of two points.
| |
| doOptimize | back to summary |
|---|---|
| protected UnivariatePointValuePair doOptimize() Implements abstract org. Doc from org. Performs the bulk of the optimization algorithm.
| |