FUNC
- the type of the objective function to be optimized@Deprecated public abstract class BaseAbstractMultivariateVectorOptimizer<FUNC extends MultivariateVectorFunction> extends Object implements BaseMultivariateVectorOptimizer<FUNC>
Modifier and Type | Field and Description |
---|---|
protected Incrementor |
evaluations
Deprecated.
Evaluations counter.
|
Modifier | Constructor and Description |
---|---|
protected |
BaseAbstractMultivariateVectorOptimizer()
Deprecated.
|
protected |
BaseAbstractMultivariateVectorOptimizer(ConvergenceChecker<PointVectorValuePair> checker)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected double[] |
computeObjectiveValue(double[] point)
Deprecated.
Compute the objective function value.
|
protected abstract PointVectorValuePair |
doOptimize()
Deprecated.
Perform the bulk of the optimization algorithm.
|
ConvergenceChecker<PointVectorValuePair> |
getConvergenceChecker()
Deprecated.
Get the convergence checker.
|
int |
getEvaluations()
Deprecated.
Get the number of evaluations of the objective function.
|
int |
getMaxEvaluations()
Deprecated.
Get the maximal number of function evaluations.
|
protected FUNC |
getObjectiveFunction()
Deprecated.
Gets the objective vector function.
|
double[] |
getStartPoint()
Deprecated.
Gets the initial values of the optimized parameters.
|
double[] |
getTarget()
Deprecated.
Gets the observed values to be matched by the objective vector
function.
|
protected double[] |
getTargetRef()
Deprecated.
As of 3.1.
|
RealMatrix |
getWeight()
Deprecated.
Gets the weight matrix of the observations.
|
protected double[] |
getWeightRef()
Deprecated.
As of 3.1.
|
PointVectorValuePair |
optimize(int maxEval,
FUNC f,
double[] t,
double[] w,
double[] startPoint)
Deprecated.
As of 3.1. Please use
optimize(int,MultivariateVectorFunction,OptimizationData[])
instead. |
protected PointVectorValuePair |
optimize(int maxEval,
FUNC f,
OptimizationData... optData)
Deprecated.
Optimize an objective function.
|
protected PointVectorValuePair |
optimizeInternal(int maxEval,
FUNC f,
double[] t,
double[] w,
double[] startPoint)
Deprecated.
As of 3.1. Please use
optimizeInternal(int,MultivariateVectorFunction,OptimizationData[])
instead. |
protected PointVectorValuePair |
optimizeInternal(int maxEval,
FUNC f,
OptimizationData... optData)
Deprecated.
Optimize an objective function.
|
protected void |
setUp()
Deprecated.
Method which a subclass must override whenever its internal
state depend on the
input parsed by this base
class. |
protected final Incrementor evaluations
@Deprecated protected BaseAbstractMultivariateVectorOptimizer()
SimpleVectorValueChecker.SimpleVectorValueChecker()
SimpleVectorValueChecker
.protected BaseAbstractMultivariateVectorOptimizer(ConvergenceChecker<PointVectorValuePair> checker)
checker
- Convergence checker.public int getMaxEvaluations()
getMaxEvaluations
in interface BaseOptimizer<PointVectorValuePair>
public int getEvaluations()
optimize
method. It is 0 if the method has not been
called yet.getEvaluations
in interface BaseOptimizer<PointVectorValuePair>
public ConvergenceChecker<PointVectorValuePair> getConvergenceChecker()
getConvergenceChecker
in interface BaseOptimizer<PointVectorValuePair>
protected double[] computeObjectiveValue(double[] point)
point
- Point at which the objective function must be evaluated.TooManyEvaluationsException
- if the maximal number of evaluations is
exceeded.@Deprecated public PointVectorValuePair optimize(int maxEval, FUNC f, double[] t, double[] w, double[] startPoint)
optimize(int,MultivariateVectorFunction,OptimizationData[])
instead.∑weighti(objectivei - targeti)2
optimize
in interface BaseMultivariateVectorOptimizer<FUNC extends MultivariateVectorFunction>
maxEval
- Maximum number of function evaluations.f
- Objective function.t
- Target value for the objective functions at optimum.w
- Weights for the least squares cost computation.startPoint
- Start point for optimization.protected PointVectorValuePair optimize(int maxEval, FUNC f, OptimizationData... optData) throws TooManyEvaluationsException, DimensionMismatchException
maxEval
- Allowed number of evaluations of the objective function.f
- Objective function.optData
- Optimization data. The following data will be looked for:
TooManyEvaluationsException
- if the maximal number of
evaluations is exceeded.DimensionMismatchException
- if the initial guess, target, and weight
arguments have inconsistent dimensions.@Deprecated protected PointVectorValuePair optimizeInternal(int maxEval, FUNC f, double[] t, double[] w, double[] startPoint)
optimizeInternal(int,MultivariateVectorFunction,OptimizationData[])
instead.∑weighti(objectivei - targeti)2
f
- Objective function.t
- Target value for the objective functions at optimum.w
- Weights for the least squares cost computation.startPoint
- Start point for optimization.maxEval
- Maximum number of function evaluations.DimensionMismatchException
- if the start point dimension is wrong.TooManyEvaluationsException
- if the maximal number of evaluations is exceeded.NullArgumentException
- if
any argument is null
.protected PointVectorValuePair optimizeInternal(int maxEval, FUNC f, OptimizationData... optData) throws TooManyEvaluationsException, DimensionMismatchException
maxEval
- Allowed number of evaluations of the objective function.f
- Objective function.optData
- Optimization data. The following data will be looked for:
TooManyEvaluationsException
- if the maximal number of
evaluations is exceeded.DimensionMismatchException
- if the initial guess, target, and weight
arguments have inconsistent dimensions.public double[] getStartPoint()
public RealMatrix getWeight()
public double[] getTarget()
protected FUNC getObjectiveFunction()
protected abstract PointVectorValuePair doOptimize()
@Deprecated protected double[] getTargetRef()
array
.@Deprecated protected double[] getWeightRef()
array
.protected void setUp()
input
parsed by this base
class.
It will be called after the parsing step performed in the
optimize
method and just before doOptimize()
.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.