public class NonLinearConjugateGradientOptimizer extends GradientMultivariateOptimizer
optimize will throw
MathUnsupportedOperationException if bounds are passed to it.| Modifier and Type | Class and Description |
|---|---|
static class |
NonLinearConjugateGradientOptimizer.BracketingStep
The initial step is a factor with respect to the search direction
(which itself is roughly related to the gradient of the function).
|
static class |
NonLinearConjugateGradientOptimizer.Formula
Available choices of update formulas for the updating the parameter
that is used to compute the successive conjugate search directions.
|
static class |
NonLinearConjugateGradientOptimizer.IdentityPreconditioner
Default identity preconditioner.
|
evaluations, iterations| Constructor and Description |
|---|
NonLinearConjugateGradientOptimizer(NonLinearConjugateGradientOptimizer.Formula updateFormula,
ConvergenceChecker<PointValuePair> checker)
Constructor with default
line search solver and
preconditioner. |
NonLinearConjugateGradientOptimizer(NonLinearConjugateGradientOptimizer.Formula updateFormula,
ConvergenceChecker<PointValuePair> checker,
UnivariateSolver lineSearchSolver)
Constructor with default
preconditioner. |
NonLinearConjugateGradientOptimizer(NonLinearConjugateGradientOptimizer.Formula updateFormula,
ConvergenceChecker<PointValuePair> checker,
UnivariateSolver lineSearchSolver,
Preconditioner preconditioner) |
| Modifier and Type | Method and Description |
|---|---|
protected PointValuePair |
doOptimize()
Performs the bulk of the optimization algorithm.
|
PointValuePair |
optimize(OptimizationData... optData)
Stores data and performs the optimization.
|
protected void |
parseOptimizationData(OptimizationData... optData)
Scans the list of (required and optional) optimization data that
characterize the problem.
|
computeObjectiveGradientcomputeObjectiveValue, getGoalTypegetLowerBound, getStartPoint, getUpperBoundgetConvergenceChecker, getEvaluations, getIterations, getMaxEvaluations, getMaxIterations, incrementEvaluationCount, incrementIterationCountpublic NonLinearConjugateGradientOptimizer(NonLinearConjugateGradientOptimizer.Formula updateFormula, ConvergenceChecker<PointValuePair> checker)
line search solver and
preconditioner.updateFormula - formula to use for updating the β parameter,
must be one of NonLinearConjugateGradientOptimizer.Formula.FLETCHER_REEVES or
NonLinearConjugateGradientOptimizer.Formula.POLAK_RIBIERE.checker - Convergence checker.public NonLinearConjugateGradientOptimizer(NonLinearConjugateGradientOptimizer.Formula updateFormula, ConvergenceChecker<PointValuePair> checker, UnivariateSolver lineSearchSolver)
preconditioner.updateFormula - formula to use for updating the β parameter,
must be one of NonLinearConjugateGradientOptimizer.Formula.FLETCHER_REEVES or
NonLinearConjugateGradientOptimizer.Formula.POLAK_RIBIERE.checker - Convergence checker.lineSearchSolver - Solver to use during line search.public NonLinearConjugateGradientOptimizer(NonLinearConjugateGradientOptimizer.Formula updateFormula, ConvergenceChecker<PointValuePair> checker, UnivariateSolver lineSearchSolver, Preconditioner preconditioner)
updateFormula - formula to use for updating the β parameter,
must be one of NonLinearConjugateGradientOptimizer.Formula.FLETCHER_REEVES or
NonLinearConjugateGradientOptimizer.Formula.POLAK_RIBIERE.checker - Convergence checker.lineSearchSolver - Solver to use during line search.preconditioner - Preconditioner.public PointValuePair optimize(OptimizationData... optData) throws TooManyEvaluationsException
BaseOptimizer.parseOptimizationData(OptimizationData[]) if they need to register
their own options; but then, they must also call
super.parseOptimizationData(optData) within that method.optimize in class GradientMultivariateOptimizeroptData - Optimization data. In addition to those documented in
GradientMultivariateOptimizer, this method will register the following data:
TooManyEvaluationsException - if the maximal number of
evaluations (of the objective function) is exceeded.protected PointValuePair doOptimize()
doOptimize in class BaseOptimizer<PointValuePair>protected void parseOptimizationData(OptimizationData... optData)
parseOptimizationData in class GradientMultivariateOptimizeroptData - Optimization data.
The following data will be looked for:
Copyright © 2003–2014. All rights reserved.