Top Description Fields Constructors Methods
org.apache.commons.math3.optimization.direct

public abstract Class BaseAbstractMultivariateSimpleBoundsOptimizer<FUNC extends MultivariateFunction>

extends BaseAbstractMultivariateOptimizer<FUNC extends MultivariateFunction>
implements BaseMultivariateOptimizer<FUNC extends MultivariateFunction>, BaseMultivariateSimpleBoundsOptimizer<FUNC extends MultivariateFunction>
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.optimization.BaseMultivariateSimpleBoundsOptimizer, org.apache.commons.math3.optimization.BaseMultivariateOptimizer, org.apache.commons.math3.optimization.BaseOptimizer
Known Direct Subclasses
org.apache.commons.math3.optimization.direct.BOBYQAOptimizer, org.apache.commons.math3.optimization.direct.CMAESOptimizer
Annotations
@Deprecated
Type Parameters
<FUNC>
Type of the objective function to be optimized.
Imports
org.apache.commons.math3.analysis.MultivariateFunction, org.apache.commons.math3.optimization.BaseMultivariateOptimizer, .BaseMultivariateSimpleBoundsOptimizer, .GoalType, .InitialGuess, .SimpleBounds, .PointValuePair, .ConvergenceChecker

Deprecated

As of 3.1 (to be removed in 4.0).

Deprecated

As of 3.1 since the base class contains similar functionality.

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

Inherited from org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateOptimizer:
evaluations

Constructor Summary

AccessConstructor and Description
protected
protected
BaseAbstractMultivariateSimpleBoundsOptimizer(ConvergenceChecker<PointValuePair>
Convergence checker.
checker
)
Deprecated as a consequence of ConvergenceChecker being deprecated.

Method Summary

Modifier and TypeMethod and Description
public PointValuePair
optimize(int
Maximum number of function evaluations.
maxEval
,
FUNC
Objective function.
f
,
GoalType
Type of optimization goal: either GoalType#MAXIMIZE or GoalType#MINIMIZE.
goalType
,
double[]
Start point for optimization.
startPoint
)

Overrides org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateOptimizer.optimize.

Implements org.apache.commons.math3.optimization.BaseMultivariateOptimizer.optimize.

Deprecated as a consequence of GoalType and PointValuePair being deprecated.

Optimize an objective function.

public PointValuePair
optimize(int
Maximum number of function evaluations.
maxEval
,
FUNC
Objective function.
f
,
GoalType
Type of optimization goal: either GoalType#MAXIMIZE or GoalType#MINIMIZE.
goalType
,
double[]
Start point for optimization.
startPoint
,
double[]
Lower bound for each of the parameters.
lower
,
double[]
Upper bound for each of the parameters.
upper
)

Implements org.apache.commons.math3.optimization.BaseMultivariateSimpleBoundsOptimizer.optimize.

Deprecated as a consequence of GoalType and PointValuePair being deprecated.

Optimize an objective function.

Inherited from org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateOptimizer:
computeObjectiveValuedoOptimizegetConvergenceCheckergetEvaluationsgetGoalTypegetLowerBoundgetMaxEvaluationsgetStartPointgetUpperBoundoptimizeoptimizeInternaloptimizeInternal

Constructor Detail

BaseAbstractMultivariateSimpleBoundsOptimizerback to summary
protected BaseAbstractMultivariateSimpleBoundsOptimizer()

Simple constructor with default settings. The convergence checker is set to a org.apache.commons.math3.optimization.SimpleValueChecker.

Annotations
@Deprecated
See Also
BaseAbstractMultivariateOptimizer#BaseAbstractMultivariateOptimizer()
BaseAbstractMultivariateSimpleBoundsOptimizerback to summary
protected BaseAbstractMultivariateSimpleBoundsOptimizer(ConvergenceChecker<PointValuePair> checker)

Deprecated

as a consequence of ConvergenceChecker being deprecated. See corresponding docs for further information.

Parameters
checker:ConvergenceChecker<PointValuePair>

Convergence checker.

Method Detail

optimizeback to summary
public PointValuePair optimize(int maxEval, FUNC f, GoalType goalType, double[] startPoint)

Overrides org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateOptimizer.optimize.

Implements org.apache.commons.math3.optimization.BaseMultivariateOptimizer.optimize.

Doc from org.apache.commons.math3.optimization.BaseMultivariateOptimizer.optimize.

Deprecated

as a consequence of GoalType and PointValuePair being deprecated. See corresponding docs for further information.

Optimize an objective function.

Parameters
maxEval:int

Maximum number of function evaluations.

f:FUNC

Objective function.

goalType:GoalType

Type of optimization goal: either GoalType#MAXIMIZE or GoalType#MINIMIZE.

startPoint:double[]

Start point for optimization.

Returns:PointValuePair

the point/value pair giving the optimal value for objective function.

Annotations
@Override
optimizeback to summary
public PointValuePair optimize(int maxEval, FUNC f, GoalType goalType, double[] startPoint, double[] lower, double[] upper)

Implements org.apache.commons.math3.optimization.BaseMultivariateSimpleBoundsOptimizer.optimize.

Doc from org.apache.commons.math3.optimization.BaseMultivariateSimpleBoundsOptimizer.optimize.

Deprecated

as a consequence of GoalType and PointValuePair being deprecated. See corresponding docs for further information.

Optimize an objective function.

Parameters
maxEval:int

Maximum number of function evaluations.

f:FUNC

Objective function.

goalType:GoalType

Type of optimization goal: either GoalType#MAXIMIZE or GoalType#MINIMIZE.

startPoint:double[]

Start point for optimization.

lower:double[]

Lower bound for each of the parameters.

upper:double[]

Upper bound for each of the parameters.

Returns:PointValuePair

the point/value pair giving the optimal value for objective function.