|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.optimization.univariate.BaseAbstractUnivariateOptimizer
@Deprecated public abstract class BaseAbstractUnivariateOptimizer
Provide a default implementation for several functions useful to generic optimizers.
Constructor Summary | |
---|---|
protected |
BaseAbstractUnivariateOptimizer(ConvergenceChecker<UnivariatePointValuePair> checker)
Deprecated. |
Method Summary | |
---|---|
protected double |
computeObjectiveValue(double point)
Deprecated. Compute the objective function value. |
protected abstract UnivariatePointValuePair |
doOptimize()
Deprecated. Method for implementing actual optimization algorithms in derived classes. |
ConvergenceChecker<UnivariatePointValuePair> |
getConvergenceChecker()
Deprecated. Get the convergence checker. |
int |
getEvaluations()
Deprecated. Get the number of evaluations of the objective function. |
GoalType |
getGoalType()
Deprecated. |
double |
getMax()
Deprecated. |
int |
getMaxEvaluations()
Deprecated. Get the maximal number of function evaluations. |
double |
getMin()
Deprecated. |
double |
getStartValue()
Deprecated. |
UnivariatePointValuePair |
optimize(int maxEval,
UnivariateFunction f,
GoalType goalType,
double min,
double max)
Deprecated. Find an optimum in the given interval. |
UnivariatePointValuePair |
optimize(int maxEval,
UnivariateFunction f,
GoalType goalType,
double min,
double max,
double startValue)
Deprecated. Find an optimum in the given interval, start at startValue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BaseAbstractUnivariateOptimizer(ConvergenceChecker<UnivariatePointValuePair> checker)
checker
- Convergence checking procedure.Method Detail |
---|
public int getMaxEvaluations()
getMaxEvaluations
in interface BaseOptimizer<UnivariatePointValuePair>
public int getEvaluations()
optimize
method. It is 0 if the method has not been
called yet.
getEvaluations
in interface BaseOptimizer<UnivariatePointValuePair>
public GoalType getGoalType()
public double getMin()
public double getMax()
public double getStartValue()
protected double computeObjectiveValue(double point)
point
- Point at which the objective function must be evaluated.
TooManyEvaluationsException
- if the maximal number of evaluations
is exceeded.public UnivariatePointValuePair optimize(int maxEval, UnivariateFunction f, GoalType goalType, double min, double max, double startValue)
optimize
in interface BaseUnivariateOptimizer<UnivariateFunction>
maxEval
- Maximum number of function evaluations.f
- Function to optimize.goalType
- Type of optimization goal: either
GoalType.MAXIMIZE
or GoalType.MINIMIZE
.min
- Lower bound for the interval.max
- Upper bound for the interval.startValue
- Start value to use.
public UnivariatePointValuePair optimize(int maxEval, UnivariateFunction f, GoalType goalType, double min, double max)
optimize
in interface BaseUnivariateOptimizer<UnivariateFunction>
maxEval
- Maximum number of function evaluations.f
- Function to optimize.goalType
- Type of optimization goal: either
GoalType.MAXIMIZE
or GoalType.MINIMIZE
.min
- Lower bound for the interval.max
- Upper bound for the interval.
public ConvergenceChecker<UnivariatePointValuePair> getConvergenceChecker()
getConvergenceChecker
in interface BaseOptimizer<UnivariatePointValuePair>
protected abstract UnivariatePointValuePair doOptimize()
TooManyEvaluationsException
- if the maximal number of evaluations
is exceeded.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |