@PublicationReference(author="R. Fletcher",title="Practical Methods of Optimization, Second Edition",type=Book,year=1987,pages=83,notes="Equation 4.1.12") @PublicationReference(author={"William H. Press","Saul A. Teukolsky","William T. Vetterling","Brian P. Flannery"},title="Numerical Recipes in C, Second Edition",type=Book,year=1992,pages={423,424},notes="Section 10.6",url="http://www.nrbook.com/a/bookcpdf.php") public class FunctionMinimizerPolakRibiere extends FunctionMinimizerConjugateGradient
DEFAULT_LINE_MINIMIZER, DEFAULT_MAX_ITERATIONS, DEFAULT_TOLERANCE, lineFunctioninitialGuess, result, tolerancedata, keepGoingmaxIterationsDEFAULT_ITERATION, iteration| Constructor and Description |
|---|
FunctionMinimizerPolakRibiere()
Creates a new instance of FunctionMinimizerPolakRibiere
|
FunctionMinimizerPolakRibiere(LineMinimizer<?> lineMinimizer)
Creates a new instance of FunctionMinimizerPolakRibiere
|
FunctionMinimizerPolakRibiere(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, stepgetInitialGuess, getResult, getTolerance, setInitialGuess, setResult, setToleranceclone, getData, getKeepGoing, learn, setData, setKeepGoing, stopgetMaxIterations, isResultValid, setMaxIterationsaddIterativeAlgorithmListener, fireAlgorithmEnded, fireAlgorithmStarted, fireStepEnded, fireStepStarted, getIteration, getListeners, removeIterativeAlgorithmListener, setIteration, setListenersequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlearnclonegetMaxIterations, setMaxIterationsaddIterativeAlgorithmListener, getIteration, removeIterativeAlgorithmListenerisResultValid, stoppublic FunctionMinimizerPolakRibiere()
public FunctionMinimizerPolakRibiere(LineMinimizer<?> lineMinimizer)
lineMinimizer - Work-horse algorithm that minimizes the function along a directionpublic FunctionMinimizerPolakRibiere(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)
FunctionMinimizerConjugateGradientcomputeScaleFactor in class FunctionMinimizerConjugateGradientgradientCurrent - Gradient at the current evaluation pointgradientPrevious - Gradient at the previous evaluation point