Difference between revisions of "Bracketing.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
m (Rename Arguments section heading to Parameters)
Line 8: Line 8:
 
                               gfx_0,data,spin_system)
 
                               gfx_0,data,spin_system)
  
−
==Arguments==
+
==Parameters==
  
 
         cost_function    - objective function handle
 
         cost_function    - objective function handle

Revision as of 17:47, 5 June 2026

Expands a trial step into a bracket that contains an acceptable line search point, or accepts the step directly if the Wolfe tests are met before sectioning becomes necessary.

Syntax

       [A,B,alpha,fx,gfx,next_act,data]=...
                   bracketing(cost_function,alpha,dir,x_0,fx_0,...
                              gfx_0,data,spin_system)

Parameters

       cost_function     - objective function handle
       alpha             - initial trial step length
       dir               - search direction vector
       x_0               - current optimisation vector
       fx_0              - objective value at x_0
       gfx_0             - gradient at x_0
       data              - optimisation workspace structure
       spin_system       - Spinach data structure with
                           line search settings
    Returns:
       A                 - lower bracket point structure
       B                 - upper bracket point structure
       alpha             - accepted step length when found
       fx                - objective value at accepted step
       gfx               - gradient at accepted step
       next_act          - continuation tag, either
                           'sectioning' or 'none'
       data              - updated optimisation workspace

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: David Goodwin, Ilya Kuprov