public class BracketFinder
extends java.lang.Object
optimize.py
v0.5).Constructor and Description |
---|
BracketFinder()
Constructor with default values
100, 50 (see the
other constructor ). |
BracketFinder(double growLimit,
int maxIterations)
Create a bracketing interval finder.
|
Modifier and Type | Method and Description |
---|---|
int |
getEvaluations() |
double |
getFHi()
Get function value at
getHi() . |
double |
getFLow()
Get function value at
getLo() . |
double |
getFMid()
Get function value at
getMid() . |
double |
getHi() |
int |
getIterations() |
double |
getLo() |
double |
getMid() |
void |
search(UnivariateRealFunction func,
GoalType goal,
double xA,
double xB)
Search new points that bracket a local optimum of the function.
|
public BracketFinder()
100, 50
(see the
other constructor
).public BracketFinder(double growLimit, int maxIterations)
growLimit
- Expanding factor.maxIterations
- Maximum number of iterations allowed for finding
a bracketing interval.public void search(UnivariateRealFunction func, GoalType goal, double xA, double xB) throws MaxIterationsExceededException, FunctionEvaluationException
func
- Function whose optimum should be bracketted.goal
- Goal type
.xA
- Initial point.xB
- Initial point.MaxIterationsExceededException
- if the maximum iteration count
is exceeded.FunctionEvaluationException
- if an error occurs evaluating the function.public int getIterations()
public int getEvaluations()
public double getLo()
getFLow()
public double getHi()
getFHi()
public double getMid()
getFMid()
Copyright © 2010 - 2020 Adobe. All Rights Reserved