Deprecated
As of 3.1 (to be removed in 4.0).
(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)
Deprecated
as a consequence of
ConvergenceChecker being deprecated.
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.
Deprecated
as a consequence of
UnivariatePointValuePair being deprecated.
Selects the best of two points. |
| protected UnivariatePointValuePair | doOptimize()
Implements abstract org.
Deprecated
as a consequence of
UnivariatePointValuePair being deprecated.
Method for implementing actual optimization algorithms in derived classes. |
| 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)
Deprecated as a consequence of 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)
Deprecated as a consequence of Selects the best of two points.
| |
| doOptimize | back to summary |
|---|---|
| protected UnivariatePointValuePair doOptimize() Implements abstract org. Doc from org. Deprecated as a consequence of Method for implementing actual optimization algorithms in derived classes.
| |