Class BaseAbstractMultivariateSimpleBoundsOptimizer<FUNC extends MultivariateFunction>
- java.lang.Object
-
- org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateOptimizer<FUNC>
-
- org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateSimpleBoundsOptimizer<FUNC>
-
- Type Parameters:
FUNC- Type of the objective function to be optimized.
- All Implemented Interfaces:
BaseMultivariateOptimizer<FUNC>,BaseMultivariateSimpleBoundsOptimizer<FUNC>,BaseOptimizer<PointValuePair>
- Direct Known Subclasses:
BOBYQAOptimizer,CMAESOptimizer
@Deprecated public abstract class BaseAbstractMultivariateSimpleBoundsOptimizer<FUNC extends MultivariateFunction> extends BaseAbstractMultivariateOptimizer<FUNC> implements BaseMultivariateOptimizer<FUNC>, BaseMultivariateSimpleBoundsOptimizer<FUNC>
Deprecated.As of 3.1 (to be removed in 4.0).Base class for implementing optimizers for multivariate scalar functions, subject to simple bounds: The valid range of the parameters is an interval. The interval can possibly be infinite (in one or both directions). This base class handles the boiler-plate methods associated to thresholds settings, iterations and evaluations counting.- Since:
- 3.0
-
-
Field Summary
-
Fields inherited from class org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateOptimizer
evaluations
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseAbstractMultivariateSimpleBoundsOptimizer()Deprecated.protectedBaseAbstractMultivariateSimpleBoundsOptimizer(ConvergenceChecker<PointValuePair> checker)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PointValuePairoptimize(int maxEval, FUNC f, GoalType goalType, double[] startPoint)Deprecated.Optimize an objective function.PointValuePairoptimize(int maxEval, FUNC f, GoalType goalType, double[] startPoint, double[] lower, double[] upper)Deprecated.Optimize an objective function.-
Methods inherited from class org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateOptimizer
computeObjectiveValue, doOptimize, getConvergenceChecker, getEvaluations, getGoalType, getLowerBound, getMaxEvaluations, getStartPoint, getUpperBound, optimize, optimizeInternal, optimizeInternal
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.commons.math3.optimization.BaseOptimizer
getConvergenceChecker, getEvaluations, getMaxEvaluations
-
-
-
-
Constructor Detail
-
BaseAbstractMultivariateSimpleBoundsOptimizer
@Deprecated protected BaseAbstractMultivariateSimpleBoundsOptimizer()
Deprecated.Simple constructor with default settings. The convergence checker is set to aSimpleValueChecker.- See Also:
BaseAbstractMultivariateOptimizer()
-
BaseAbstractMultivariateSimpleBoundsOptimizer
protected BaseAbstractMultivariateSimpleBoundsOptimizer(ConvergenceChecker<PointValuePair> checker)
Deprecated.- Parameters:
checker- Convergence checker.
-
-
Method Detail
-
optimize
public PointValuePair optimize(int maxEval, FUNC f, GoalType goalType, double[] startPoint)
Deprecated.Optimize an objective function.- Specified by:
optimizein interfaceBaseMultivariateOptimizer<FUNC extends MultivariateFunction>- Overrides:
optimizein classBaseAbstractMultivariateOptimizer<FUNC extends MultivariateFunction>- Parameters:
maxEval- Maximum number of function evaluations.f- Objective function.goalType- Type of optimization goal: eitherGoalType.MAXIMIZEorGoalType.MINIMIZE.startPoint- Start point for optimization.- Returns:
- the point/value pair giving the optimal value for objective function.
-
optimize
public PointValuePair optimize(int maxEval, FUNC f, GoalType goalType, double[] startPoint, double[] lower, double[] upper)
Deprecated.Optimize an objective function.- Specified by:
optimizein interfaceBaseMultivariateSimpleBoundsOptimizer<FUNC extends MultivariateFunction>- Parameters:
maxEval- Maximum number of function evaluations.f- Objective function.goalType- Type of optimization goal: eitherGoalType.MAXIMIZEorGoalType.MINIMIZE.startPoint- Start point for optimization.lower- Lower bound for each of the parameters.upper- Upper bound for each of the parameters.- Returns:
- the point/value pair giving the optimal value for objective function.
-
-