public final class BFGS extends Object
| Constructor and Description |
|---|
BFGS(AbstractMultivariateFunction f,
Vector startingPoint,
double gradientTolerance,
double functionChangeTolerance)
Create a new BFGS object and run the algorithm with the supplied information.
|
BFGS(AbstractMultivariateFunction f,
Vector startingPoint,
double gradientNormTolerance,
double relativeChangeTolerance,
Matrix initialHessian)
Create a new BFGS object and run the algorithm with the supplied information.
|
| Modifier and Type | Method and Description |
|---|---|
double |
functionValue()
Return the final value of the target function.
|
Matrix |
inverseHessian()
Return the final approximation to the inverse Hessian.
|
Vector |
parameters()
Return the final, optimized input parameters.
|
public BFGS(AbstractMultivariateFunction f, Vector startingPoint, double gradientTolerance, double functionChangeTolerance)
f - the function to be minimized.startingPoint - the initial guess of the minimum.gradientTolerance - the tolerance for the norm of the gradient of the function.functionChangeTolerance - the tolerance for the change in function value.public BFGS(AbstractMultivariateFunction f, Vector startingPoint, double gradientNormTolerance, double relativeChangeTolerance, Matrix initialHessian)
f - the function to be minimized.startingPoint - the initial guess of the minimum.gradientNormTolerance - the tolerance for the norm of the gradient of the function.relativeChangeTolerance - the tolerance for the change in function value.initialHessian - The initial guess for the inverse Hessian approximation.public double functionValue()
public Vector parameters()
public Matrix inverseHessian()