org.apache.commons.math.optimization.general
private class NonLinearConjugateGradientOptimizer.LineSearchFunction extends Object implements UnivariateRealFunction
The function represented by this class is the dot product of the objective function gradient and the search direction. Its value is zero when the gradient is orthogonal to the search direction, i.e. when the objective function value is a local extremum along the search direction.
Modifier and Type | Field and Description |
---|---|
private double[] |
searchDirection
Search direction.
|
Constructor and Description |
---|
NonLinearConjugateGradientOptimizer.LineSearchFunction(double[] searchDirection)
Simple constructor.
|
public NonLinearConjugateGradientOptimizer.LineSearchFunction(double[] searchDirection)
searchDirection
- search directionpublic double value(double x) throws FunctionEvaluationException
value
in interface UnivariateRealFunction
x
- the point for which the function value should be computedFunctionEvaluationException
- if the function evaluation failsCopyright (c) 2003-2013 Apache Software Foundation