Difference between revisions of "Bfgs.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Expand See also links to related Spinach functions and docs)
(Fix lead description from MATLAB header (folding/hyphenation pass))
Line 1: Line 1:
 
{{DISPLAYTITLE:bfgs.m}} __NOTOC__
 
{{DISPLAYTITLE:bfgs.m}} __NOTOC__
−
Calculates a BFGS approximation to the Newton-Raphson search direction for maximising a function using past gradients to build a serviceable substitute to a Hessian. Unlike LBFGS,
+
Calculates a BFGS approximation to the Newton-Raphson search direction for maximising a function using past gradients to build a serviceable substitute to a Hessian. Unlike LBFGS, the pseudo-Hessian matrix is formed explicitly.
  
 
==Syntax==
 
==Syntax==

Revision as of 20:49, 22 February 2026

Calculates a BFGS approximation to the Newton-Raphson search direction for maximising a function using past gradients to build a serviceable substitute to a Hessian. Unlike LBFGS, the pseudo-Hessian matrix is formed explicitly.

Syntax

                    H=bfgs(dx_hist,dg_hist,g)

Arguments

       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 (used for sizing)
    Returns:
       H        - BFGS approximation to the Hessian
                  matrix corresponding to the *nega-
                  tive* Hessian of the objective.
                  The corresponding ascent directi-
                  on is obtained as:  direction=H\g

Outputs

    this function produces output as described in source code

Examples

See examples in the Spinach distribution relevant to this function.

Notes

This page was generated from the function header in the Spinach repository.

See also


Version 2.11, authors: Ilya Kuprov