|
LBFGS++
|
#include <LBFGS.h>
Public Member Functions | |
| LBFGSSolver (const LBFGSParam< Scalar > ¶m) | |
| template<typename Foo > | |
| int | minimize (Foo &f, Vector &x, Scalar &fx) |
| const Vector & | final_grad () const |
| Scalar | final_grad_norm () const |
L-BFGS solver for unconstrained numerical optimization
|
inline |
Constructor for the L-BFGS solver.
| param | An object of LBFGSParam to store parameters for the algorithm |
|
inline |
Minimizing a multivariate function using the L-BFGS algorithm. Exceptions will be thrown if error occurs.
| f | A function object such that f(x, grad) returns the objective function value at x, and overwrites grad with the gradient. |
| x | In: An initial guess of the optimal point. Out: The best point found. |
| fx | Out: The objective function value at x. |
|
inline |
Returning the gradient vector on the last iterate. Typically used to debug and test convergence. Should only be called after the minimize() function.
|
inline |