Class BracketFinder
java.lang.Object
org.apache.commons.math3.optimization.univariate.BracketFinder
Deprecated.
As of 3.1 (to be removed in 4.0).
Provide an interval that brackets a local optimum of a function.
This code is based on a Python implementation (from SciPy,
module
optimize.py v0.5).- Since:
- 2.2
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructor with default values100, 50(see theother constructor).BracketFinder(double growLimit, int maxEvaluations) Deprecated.Create a bracketing interval finder. -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.doublegetFHi()Deprecated.Get function value atgetHi().doublegetFLo()Deprecated.Get function value atgetLo().doublegetFMid()Deprecated.Get function value atgetMid().doublegetHi()Deprecated.doublegetLo()Deprecated.intDeprecated.doublegetMid()Deprecated.voidsearch(UnivariateFunction func, GoalType goal, double xA, double xB) Deprecated.Search new points that bracket a local optimum of the function.
-
Constructor Details
-
BracketFinder
public BracketFinder()Deprecated.Constructor with default values100, 50(see theother constructor). -
BracketFinder
Deprecated.Create a bracketing interval finder.- Parameters:
growLimit- Expanding factor.maxEvaluations- Maximum number of evaluations allowed for finding a bracketing interval.
-
-
Method Details
-
search
Deprecated.Search new points that bracket a local optimum of the function.- Parameters:
func- Function whose optimum should be bracketed.goal-Goal type.xA- Initial point.xB- Initial point.- Throws:
TooManyEvaluationsException- if the maximum number of evaluations is exceeded.
-
getMaxEvaluations
-
getEvaluations
-
getLo
-
getFLo
-
getHi
-
getFHi
-
getMid
-
getFMid
-