@PublicationReference(author="R. Fletcher", title="Practical Methods of Optimization, Second Edition", type=Book, year=1987, pages={80,83}, notes="Equation 4.1.4") public class FunctionMinimizerFletcherReeves extends FunctionMinimizerConjugateGradient
DEFAULT_LINE_MINIMIZER, DEFAULT_MAX_ITERATIONS, DEFAULT_TOLERANCE, lineFunction
initialGuess, result, tolerance
data, keepGoing
maxIterations
DEFAULT_ITERATION, iteration
Constructor and Description |
---|
FunctionMinimizerFletcherReeves()
Creates a new instance of FunctionMinimizerPolakRibiere
|
FunctionMinimizerFletcherReeves(LineMinimizer<?> lineMinimizer)
Creates a new instance of FunctionMinimizerPolakRibiere
|
FunctionMinimizerFletcherReeves(LineMinimizer<?> lineMinimizer,
Vector initialGuess,
double tolerance,
int maxIterations)
Creates a new instance of FunctionMinimizerConjugateGradient
|
Modifier and Type | Method and Description |
---|---|
protected double |
computeScaleFactor(Vector gradientCurrent,
Vector gradientPrevious)
Computes the conjugate gradient parameter for the particular update
scheme.
|
cleanupAlgorithm, getLineMinimizer, initializeAlgorithm, setLineMinimizer, step
getInitialGuess, getResult, getTolerance, setInitialGuess, setResult, setTolerance
clone, getData, getKeepGoing, learn, setData, setKeepGoing, stop
getMaxIterations, isResultValid, setMaxIterations
addIterativeAlgorithmListener, fireAlgorithmEnded, fireAlgorithmStarted, fireStepEnded, fireStepStarted, getIteration, getListeners, removeIterativeAlgorithmListener, setIteration, setListeners
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
learn
clone
getMaxIterations, setMaxIterations
addIterativeAlgorithmListener, getIteration, removeIterativeAlgorithmListener
isResultValid, stop
public FunctionMinimizerFletcherReeves()
public FunctionMinimizerFletcherReeves(LineMinimizer<?> lineMinimizer)
lineMinimizer
- Work-horse algorithm that minimizes the function along a directionpublic FunctionMinimizerFletcherReeves(LineMinimizer<?> lineMinimizer, Vector initialGuess, double tolerance, int maxIterations)
initialGuess
- Initial guess about the minimum of the methodtolerance
- Tolerance of the minimization algorithm, must be >= 0.0, typically ~1e-10lineMinimizer
- Work-horse algorithm that minimizes the function along a directionmaxIterations
- Maximum number of iterations, must be >0, typically ~100protected double computeScaleFactor(Vector gradientCurrent, Vector gradientPrevious)
FunctionMinimizerConjugateGradient
computeScaleFactor
in class FunctionMinimizerConjugateGradient
gradientCurrent
- Gradient at the current evaluation pointgradientPrevious
- Gradient at the previous evaluation point