public class ConjugateGradientSearch extends MultivariateMinimum
Modifier and Type | Field and Description |
---|---|
static int |
BEALE_SORENSON_HESTENES_STIEFEL_UPDATE |
int |
conjugateGradientStyle
conjugateGradientStyle determines the method for the
conjugate gradient direction update
update (0 = Fletcher-Reeves, 1 = Polak-Ribiere,
2 = Beale-Sorenson, Hestenes-Stiefel), the default is 2.
|
double |
defaultStep
defaultStep is a steplength parameter and should be set equal
to the expected distance from the solution (in a line search)
exceptionally small or large values of defaultStep lead to
slower convergence on the first few iterations (the step length
itself is adapted during search), the default value is 1.0
|
static int |
FLETCHER_REEVES_UPDATE |
static int |
POLAK_RIBIERE_UPDATE |
int |
prin
controls the printed output from the routine
(0 = no output, 1 = print only starting and final values,
2 = detailed map of the minimisation process),
the default value is 0
|
maxFun, numFun, numFuncStops
Constructor and Description |
---|
ConjugateGradientSearch() |
ConjugateGradientSearch(int conGradStyle) |
Modifier and Type | Method and Description |
---|---|
void |
optimize(MultivariateFunction f,
double[] x,
double tolfx,
double tolx)
The actual optimization routine
(needs to be implemented in a subclass of MultivariateMinimum).
|
copy, findMinimum, findMinimum, stopCondition
public static final int FLETCHER_REEVES_UPDATE
public static final int POLAK_RIBIERE_UPDATE
public static final int BEALE_SORENSON_HESTENES_STIEFEL_UPDATE
public int prin
public double defaultStep
public int conjugateGradientStyle
public ConjugateGradientSearch()
public ConjugateGradientSearch(int conGradStyle)
public void optimize(MultivariateFunction f, double[] x, double tolfx, double tolx)
MultivariateMinimum
optimize
in class MultivariateMinimum
f
- multivariate functionx
- initial guesses for the minimum
(contains the location of the minimum on return)tolfx
- absolute tolerance of function valuetolx
- absolute tolerance of each parameterCopyright © 2015–2021 Fiji. All rights reserved.