public class BracketFinder extends Object
optimize.py
v0.5).Constructor and Description |
---|
BracketFinder()
Constructor with default values
100, 50 (see the other constructor ). |
BracketFinder(double growLimitIn,
int maxEvaluations)
Create a bracketing interval finder.
|
Modifier and Type | Method and Description |
---|---|
int |
getEvaluations() |
double |
getFHi()
Get function value at
getHi() . |
double |
getFLo()
Get function value at
getLo() . |
double |
getFMid()
Get function value at
getMid() . |
double |
getHi() |
double |
getLo() |
int |
getMaxEvaluations() |
double |
getMid() |
void |
search(UnivariateFunction func,
GoalType goal,
double xAIn,
double xBIn)
Search new points that bracket a local optimum of the function.
|
public BracketFinder()
100, 50
(see the other constructor
).public BracketFinder(double growLimitIn, int maxEvaluations)
growLimitIn
- Expanding factor.maxEvaluations
- Maximum number of evaluations allowed for finding
a bracketing interval.public void search(UnivariateFunction func, GoalType goal, double xAIn, double xBIn)
func
- Function whose optimum should be bracketed.goal
- Goal type
.xAIn
- Initial point.xBIn
- Initial point.TooManyEvaluationsException
- if the maximum number of evaluations
is exceeded.public int getMaxEvaluations()
public int getEvaluations()
public double getLo()
getFLo()
public double getHi()
getFHi()
public double getMid()
getFMid()
Copyright © 2019 CNES. All Rights Reserved.