FUNC
- the type of the objective function to be optimized@Deprecated public abstract class BaseAbstractMultivariateVectorOptimizer<FUNC extends MultivariateVectorFunction> extends java.lang.Object implements BaseMultivariateVectorOptimizer<FUNC>
Modifier and Type | Field and Description |
---|---|
private ConvergenceChecker<PointVectorValuePair> |
checker
Deprecated.
Convergence checker.
|
protected Incrementor |
evaluations
Deprecated.
Evaluations counter.
|
private FUNC |
function
Deprecated.
Objective function.
|
private double[] |
start
Deprecated.
Initial guess.
|
private double[] |
target
Deprecated.
Target value for the objective functions at optimum.
|
private double[] |
weight
Deprecated.
|
private RealMatrix |
weightMatrix
Deprecated.
Weight matrix.
|
Modifier | Constructor and Description |
---|---|
protected |
BaseAbstractMultivariateVectorOptimizer()
Deprecated.
|
protected |
BaseAbstractMultivariateVectorOptimizer(ConvergenceChecker<PointVectorValuePair> checker)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private void |
checkParameters()
Deprecated.
Check parameters consistency.
|
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.
|
private void |
parseOptimizationData(OptimizationData... optData)
Deprecated.
Scans the list of (required and optional) optimization data that
characterize the problem.
|
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
private ConvergenceChecker<PointVectorValuePair> checker
private double[] target
private RealMatrix weightMatrix
private double[] weight
private double[] start
private FUNC extends MultivariateVectorFunction function
@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()
.private void parseOptimizationData(OptimizationData... optData)
optData
- Optimization data. The following data will be looked for:
private void checkParameters()
DimensionMismatchException
- if target
and
weightMatrix
have inconsistent dimensions.Copyright (c) 2003-2013 Apache Software Foundation