Difference between revisions of "Bfgs upd.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Add missing Version/authors metadata and remove raw author emails)
m (Normalise preformatted blank lines in function documentation blocks)
Line 14: Line 14:
 
             Hessian of the objective; use [] on the
 
             Hessian of the objective; use [] on the
 
             first call
 
             first call
−
 
+
 
     dx    - increment in arguments between the current
 
     dx    - increment in arguments between the current
 
             and the previous step
 
             and the previous step
−
 
+
 
     dg    - increment in gradients between the current
 
     dg    - increment in gradients between the current
 
             and the previous step
 
             and the previous step
−
 
+
 
  Returns:
 
  Returns:
−
 
+
 
     H      - updated BFGS approximation to the Hessian
 
     H      - updated BFGS approximation to the Hessian
 
             matrix corresponding to the *negative*
 
             matrix corresponding to the *negative*

Revision as of 16:40, 5 June 2026


Performs a one-step BFGS Hessian update for maximisation using the argument and gradient increments from the previous step.

Syntax

H=bfgs_upd(H,dx,dg)

Arguments

H      - current BFGS approximation to the Hessian
            matrix corresponding to the *negative*
            Hessian of the objective; use [] on the
            first call

   dx     - increment in arguments between the current
            and the previous step

   dg     - increment in gradients between the current
            and the previous step

Returns:

   H      - updated BFGS approximation to the Hessian
            matrix corresponding to the *negative*
            Hessian of the objective


See also

fmaxnewton.m, lbfgs.m, hessreg.m, Optimal control optimisation

Version 2.11, authors: Ilya Kuprov