public class BFGS
extends java.lang.Object
| Constructor and Description |
|---|
BFGS()
Constructor with gtol = 1E-5 and maxIter = 500.
|
BFGS(double gtol,
int maxIter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
minimize(DifferentiableMultivariateFunction func,
double[] x)
This method solves the unconstrained minimization problem
|
double |
minimize(DifferentiableMultivariateFunction func,
int m,
double[] x)
This method solves the unconstrained minimization problem
|
public BFGS()
public BFGS(double gtol,
int maxIter)
gtol - the convergence requirement on zeroing the gradient.maxIter - the maximum number of allowed iterations.public double minimize(DifferentiableMultivariateFunction func, int m, double[] x)
min f(x), x = (x1,x2,...,x_n),
using the limited-memory BFGS method. The method is especially
effective on problems involving a large number of variables. In
a typical iteration of this method an approximation Hk to the
inverse of the Hessian is obtained by applying m BFGS updates to
a diagonal matrix Hk0, using information from the previous M steps.
The user specifies the number m, which determines the amount of
storage required by the routine.func - the function to be minimized.m - the number of corrections used in the L-BFGS update.
Values of m less than 3 are not recommended;
large values of m will result in excessive
computing time. 3 <= m <= 7 is recommended.
A common choice for m is m = 5.x - on initial entry this must be set by the user to the values
of the initial estimate of the solution vector. On exit with
iflag = 0, it contains the values of the variables
at the best point found (usually a solution).public double minimize(DifferentiableMultivariateFunction func, double[] x)
min f(x), x = (x1,x2,...,x_n),
using the BFGS method.func - the function to be minimized.x - on initial entry this must be set by the user to the values
of the initial estimate of the solution vector. On exit, it
contains the values of the variables at the best point found
(usually a solution).