FUNC
- Type of the objective function to be optimized.@Deprecated public abstract class BaseAbstractMultivariateOptimizer<FUNC extends MultivariateFunction> extends Object implements BaseMultivariateOptimizer<FUNC>
Modifier and Type | Field and Description |
---|---|
protected Incrementor |
evaluations
Deprecated.
Evaluations counter.
|
Modifier | Constructor and Description |
---|---|
protected |
BaseAbstractMultivariateOptimizer()
Deprecated.
|
protected |
BaseAbstractMultivariateOptimizer(ConvergenceChecker<PointValuePair> checker)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected double |
computeObjectiveValue(double[] point)
Deprecated.
Compute the objective function value.
|
protected abstract PointValuePair |
doOptimize()
Deprecated.
Perform the bulk of the optimization algorithm.
|
ConvergenceChecker<PointValuePair> |
getConvergenceChecker()
Deprecated.
Get the convergence checker.
|
int |
getEvaluations()
Deprecated.
Get the number of evaluations of the objective function.
|
GoalType |
getGoalType()
Deprecated.
|
double[] |
getLowerBound()
Deprecated.
|
int |
getMaxEvaluations()
Deprecated.
Get the maximal number of function evaluations.
|
double[] |
getStartPoint()
Deprecated.
|
double[] |
getUpperBound()
Deprecated.
|
PointValuePair |
optimize(int maxEval,
FUNC f,
GoalType goalType,
double[] startPoint)
Deprecated.
As of 3.1. Please use
optimize(int,MultivariateFunction,GoalType,OptimizationData[])
instead. |
PointValuePair |
optimize(int maxEval,
FUNC f,
GoalType goalType,
OptimizationData... optData)
Deprecated.
Optimize an objective function.
|
protected PointValuePair |
optimizeInternal(int maxEval,
FUNC f,
GoalType goalType,
double[] startPoint)
Deprecated.
As of 3.1. Please use
optimize(int,MultivariateFunction,GoalType,OptimizationData[])
instead. |
protected PointValuePair |
optimizeInternal(int maxEval,
FUNC f,
GoalType goalType,
OptimizationData... optData)
Deprecated.
Optimize an objective function.
|
protected final Incrementor evaluations
@Deprecated protected BaseAbstractMultivariateOptimizer()
SimpleValueChecker.SimpleValueChecker()
SimpleValueChecker
.protected BaseAbstractMultivariateOptimizer(ConvergenceChecker<PointValuePair> checker)
checker
- Convergence checker.public int getMaxEvaluations()
getMaxEvaluations
in interface BaseOptimizer<PointValuePair>
public int getEvaluations()
optimize
method. It is 0 if the method has not been
called yet.getEvaluations
in interface BaseOptimizer<PointValuePair>
public ConvergenceChecker<PointValuePair> getConvergenceChecker()
getConvergenceChecker
in interface BaseOptimizer<PointValuePair>
protected double computeObjectiveValue(double[] point)
point
- Point at which the objective function must be evaluated.TooManyEvaluationsException
- if the maximal number of
evaluations is exceeded.@Deprecated public PointValuePair optimize(int maxEval, FUNC f, GoalType goalType, double[] startPoint)
optimize(int,MultivariateFunction,GoalType,OptimizationData[])
instead.optimize
in interface BaseMultivariateOptimizer<FUNC extends MultivariateFunction>
maxEval
- Maximum number of function evaluations.f
- Objective function.goalType
- Type of optimization goal: either
GoalType.MAXIMIZE
or GoalType.MINIMIZE
.startPoint
- Start point for optimization.public PointValuePair optimize(int maxEval, FUNC f, GoalType goalType, OptimizationData... optData)
maxEval
- Allowed number of evaluations of the objective function.f
- Objective function.goalType
- Optimization type.optData
- Optimization data. The following data will be looked for:
@Deprecated protected PointValuePair optimizeInternal(int maxEval, FUNC f, GoalType goalType, double[] startPoint)
optimize(int,MultivariateFunction,GoalType,OptimizationData[])
instead.f
- Objective function.goalType
- Type of optimization goal: either
GoalType.MAXIMIZE
or GoalType.MINIMIZE
.startPoint
- Start point for optimization.maxEval
- Maximum number of function evaluations.DimensionMismatchException
- if the start point dimension is wrong.TooManyEvaluationsException
- if the maximal number of evaluations is exceeded.NullArgumentException
- if
any argument is null
.protected PointValuePair optimizeInternal(int maxEval, FUNC f, GoalType goalType, OptimizationData... optData) throws TooManyEvaluationsException
maxEval
- Allowed number of evaluations of the objective function.f
- Objective function.goalType
- Optimization type.optData
- Optimization data. The following data will be looked for:
TooManyEvaluationsException
- if the maximal number of
evaluations is exceeded.public GoalType getGoalType()
public double[] getStartPoint()
public double[] getLowerBound()
public double[] getUpperBound()
protected abstract PointValuePair doOptimize()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.