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

public Interface BaseUnivariateOptimizer<FUNC extends UnivariateFunction>

extends BaseOptimizer<UnivariatePointValuePair>
Known Direct Subinterfaces
org.apache.commons.math3.optimization.univariate.UnivariateOptimizer
Known Direct Implementers
org.apache.commons.math3.optimization.univariate.UnivariateMultiStartOptimizer
Annotations
@Deprecated
Type Parameters
<FUNC>
Type of the objective function to be optimized.
Imports
org.apache.commons.math3.analysis.UnivariateFunction, org.apache.commons.math3.optimization.BaseOptimizer, .GoalType

Deprecated

As of 3.1 (to be removed in 4.0).

This interface is mainly intended to enforce the internal coherence of Commons-Math. 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 UnivariatePointValuePair

Returns:

a (point, value) pair where the function is optimum.
optimize
(int
Maximum number of function evaluations.
maxEval
,
FUNC
Function to optimize.
f
,
GoalType
Type of optimization goal: either GoalType#MAXIMIZE or GoalType#MINIMIZE.
goalType
,
double
Lower bound for the interval.
min
,
double
Upper bound for the interval.
max
)
Deprecated as a consequence of GoalType and UnivariatePointValuePair being deprecated.

Find an optimum in the given interval.

public UnivariatePointValuePair

Returns:

a (point, value) pair where the function is optimum.
optimize
(int
Maximum number of function evaluations.
maxEval
,
FUNC
Function to optimize.
f
,
GoalType
Type of optimization goal: either GoalType#MAXIMIZE or GoalType#MINIMIZE.
goalType
,
double
Lower bound for the interval.
min
,
double
Upper bound for the interval.
max
,
double
Start value to use.
startValue
)
Deprecated as a consequence of GoalType and UnivariatePointValuePair being deprecated.

Find an optimum in the given interval, start at startValue.

Inherited from org.apache.commons.math3.optimization.BaseOptimizer:
getConvergenceCheckergetEvaluationsgetMaxEvaluations

Method Detail

optimizeback to summary
public UnivariatePointValuePair optimize(int maxEval, FUNC f, GoalType goalType, double min, double max)

Deprecated

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

Find an optimum in the given interval. An optimizer may require that the interval brackets a single optimum.

Parameters
maxEval:int

Maximum number of function evaluations.

f:FUNC

Function to optimize.

goalType:GoalType

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

min:double

Lower bound for the interval.

max:double

Upper bound for the interval.

Returns:UnivariatePointValuePair

a (point, value) pair where the function is optimum.

Exceptions
TooManyEvaluationsException:
if the maximum evaluation count is exceeded.
ConvergenceException:
if the optimizer detects a convergence problem.
IllegalArgumentException:
if min > max or the endpoints do not satisfy the requirements specified by the optimizer.
optimizeback to summary
public UnivariatePointValuePair optimize(int maxEval, FUNC f, GoalType goalType, double min, double max, double startValue)

Deprecated

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

Find an optimum in the given interval, start at startValue. An optimizer may require that the interval brackets a single optimum.

Parameters
maxEval:int

Maximum number of function evaluations.

f:FUNC

Function to optimize.

goalType:GoalType

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

min:double

Lower bound for the interval.

max:double

Upper bound for the interval.

startValue:double

Start value to use.

Returns:UnivariatePointValuePair

a (point, value) pair where the function is optimum.

Exceptions
TooManyEvaluationsException:
if the maximum evaluation count is exceeded.
ConvergenceException:
if the optimizer detects a convergence problem.
IllegalArgumentException:
if min > max or the endpoints do not satisfy the requirements specified by the optimizer.
NullArgumentException:
if any argument is null.