FUNC
- Type of the objective function to be optimized.public interface BaseMultivariateOptimizer<FUNC extends MultivariateFunction> extends BaseOptimizer<PointValuePair>
Modifier and Type | Method and Description |
---|---|
PointValuePair |
optimize(int maxEval,
FUNC f,
GoalType goalType,
double[] startPoint)
Optimize an objective function.
|
getConvergenceChecker, getEvaluations, getMaxEvaluations
PointValuePair optimize(int maxEval, FUNC f, GoalType goalType, double[] startPoint)
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
.Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.