@Deprecated public abstract class BaseAbstractUnivariateOptimizer extends Object implements UnivariateOptimizer
| Modifier | Constructor and Description | 
|---|---|
| protected  | BaseAbstractUnivariateOptimizer(ConvergenceChecker<UnivariatePointValuePair> checker)Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
protected BaseAbstractUnivariateOptimizer(ConvergenceChecker<UnivariatePointValuePair> checker)
checker - Convergence checking procedure.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.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.