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
ConstructorsModifierConstructorDescriptionprotected
Deprecated.protected
Deprecated. -
Method Summary
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 Details
-
BaseAbstractMultivariateSimpleBoundsOptimizer
Deprecated.Simple constructor with default settings. The convergence checker is set to aSimpleValueChecker
.- See Also:
-
BaseAbstractMultivariateSimpleBoundsOptimizer
Deprecated.- Parameters:
checker
- Convergence checker.
-
-
Method Details
-
optimize
Deprecated.Optimize an objective function.- Specified by:
optimize
in interfaceBaseMultivariateOptimizer<FUNC extends MultivariateFunction>
- Overrides:
optimize
in classBaseAbstractMultivariateOptimizer<FUNC extends MultivariateFunction>
- Parameters:
maxEval
- Maximum number of function evaluations.f
- Objective function.goalType
- Type of optimization goal: eitherGoalType.MAXIMIZE
orGoalType.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:
optimize
in interfaceBaseMultivariateSimpleBoundsOptimizer<FUNC extends MultivariateFunction>
- Parameters:
maxEval
- Maximum number of function evaluations.f
- Objective function.goalType
- Type of optimization goal: eitherGoalType.MAXIMIZE
orGoalType.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.
-