bfgs_upd.m

From Spinach Documentation Wiki
Revision as of 08:36, 30 August 2026 by Kuprov (talk | contribs) (sync with Spinach main f053e432: restore the Outputs section and header indentation from the source comment block)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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)

Parameters

   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

Outputs

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

See also

fmaxnewton.m, lbfgs.m, hessreg.m, bracketing.m, sectioning.m, Optimal_control_module

Version 2.11, authors: Ilya Kuprov