Difference between revisions of "Lbfgs.m"
(Sync syntax/arguments/outputs with current Spinach source) |
(sync with Spinach main f053e432: output described as maximisation step vector) |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:lbfgs.m}} __NOTOC__ | {{DISPLAYTITLE:lbfgs.m}} __NOTOC__ | ||
| − | |||
Calculates an approximation to the Newton-Raphson search direction using past gradients to build a serviceable substitute to a Hessian. The Hessian matrix is never explicitly formed or inverted. This function is the implementation from section 4 of http://dx.doi.org/10.1090/S0025-5718-1980-0572855-7 | Calculates an approximation to the Newton-Raphson search direction using past gradients to build a serviceable substitute to a Hessian. The Hessian matrix is never explicitly formed or inverted. This function is the implementation from section 4 of http://dx.doi.org/10.1090/S0025-5718-1980-0572855-7 | ||
==Syntax== | ==Syntax== | ||
| − | direction=lbfgs(dx_hist,dg_hist,g) | + | direction=lbfgs(dx_hist,dg_hist,g) |
| − | == | + | ==Parameters== |
| − | + | ||
| − | dx_hist - history of x increments, a stack | + | dx_hist - history of x increments, a stack |
of column vectors, from the latest | of column vectors, from the latest | ||
to the earliest | to the earliest | ||
| − | + | ||
dg_hist - history of gradient increments, | dg_hist - history of gradient increments, | ||
| − | a stack of column vectors, from | + | a stack of column vectors, from |
the latest to the earliest | the latest to the earliest | ||
| − | + | ||
g - current gradient | g - current gradient | ||
| − | + | ==Output== | |
| − | direction - LBFGS approximation to the | + | direction - LBFGS approximation to the |
maximisation step vector | maximisation step vector | ||
| − | |||
| − | |||
| − | |||
==Notes== | ==Notes== | ||
| − | + | The L-BFGS algorithm is the default of [[Fmaxnewton.m]], and is a good mix of computational efficiency and fast convergence. | |
| − | The L-BFGS algorithm is the default of [[ | ||
==See also== | ==See also== | ||
| − | + | [[fmaxnewton.m]], [[hessreg.m]], [[bracketing.m]], [[sectioning.m]], [[bfgs_upd.m]], [[Optimal_control_module]] | |
| − | [[ | ||
| − | |||
''Version 2.2, authors: [[Ilya Kuprov]], [[David Goodwin]]'' | ''Version 2.2, authors: [[Ilya Kuprov]], [[David Goodwin]]'' | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 06:03, 30 August 2026
Calculates an approximation to the Newton-Raphson search direction using past gradients to build a serviceable substitute to a Hessian. The Hessian matrix is never explicitly formed or inverted. This function is the implementation from section 4 of http://dx.doi.org/10.1090/S0025-5718-1980-0572855-7
Syntax
direction=lbfgs(dx_hist,dg_hist,g)
Parameters
dx_hist - history of x increments, a stack
of column vectors, from the latest
to the earliest
dg_hist - history of gradient increments,
a stack of column vectors, from
the latest to the earliest
g - current gradient
Output
direction - LBFGS approximation to the
maximisation step vector
Notes
The L-BFGS algorithm is the default of Fmaxnewton.m, and is a good mix of computational efficiency and fast convergence.
See also
fmaxnewton.m, hessreg.m, bracketing.m, sectioning.m, bfgs_upd.m, Optimal_control_module
Version 2.2, authors: Ilya Kuprov, David Goodwin