Top Description Methods
org.apache.commons.math3.optimization

public Interface BaseMultivariateSimpleBoundsOptimizer<FUNC extends MultivariateFunction>

extends BaseMultivariateOptimizer<FUNC extends MultivariateFunction>
Known Direct Implementers
org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateSimpleBoundsOptimizer
Annotations
@Deprecated
Type Parameters
<FUNC>
Type of the objective function to be optimized.
Imports
org.apache.commons.math3.analysis.MultivariateFunction

Deprecated

As of 3.1 (to be removed in 4.0).

This interface is mainly intended to enforce the internal coherence of Commons-FastMath. Users of the API are advised to base their code on the following interfaces:
Since
3.0

Method Summary

Modifier and TypeMethod and Description
public PointValuePair

Returns:

the point/value pair giving the optimal value for objective function.
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.
lowerBound
,
double[]
Upper bound for each of the parameters.
upperBound
)
Deprecated as a consequence of GoalType and PointValuePair being deprecated.

Optimize an objective function.

Inherited from org.apache.commons.math3.optimization.BaseMultivariateOptimizer:
optimize

Method Detail

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

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.

lowerBound:double[]

Lower bound for each of the parameters.

upperBound:double[]

Upper bound for each of the parameters.

Returns:PointValuePair

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

Exceptions
DimensionMismatchException:
if the array sizes are wrong.
TooManyEvaluationsException:
if the maximal number of evaluations is exceeded.
NullArgumentException:
if f, goalType or startPoint is null.
NumberIsTooSmallException:
if any of the initial values is less than its lower bound.
NumberIsTooLargeException:
if any of the initial values is greater than its upper bound.