alpha_conds.m

From Spinach Documentation Wiki
Revision as of 20:19, 22 February 2026 by Kuprov (talk | contribs) (Expand See also links to related Spinach functions and docs)
Jump to: navigation, search

Applies one of the line search acceptance tests used by the brac- keting and sectioning routines in constrained optimisation and

Syntax

             test=alpha_conds(test_type,alpha,fx_0,fx_1,...
                              gfx_0,gfx_1,dir,spin_system)

Arguments

       test_type         - condition selector:
                           0 for monotonic increase test
                           1 for Armijo sufficient increase test
                           2 for strong Wolfe curvature test
                           3 for ascent direction test
       alpha             - trial step length
       fx_0              - objective value at the initial point
       fx_1              - objective value at the trial point
       gfx_0             - gradient at the initial point
       gfx_1             - gradient at the trial point
       dir               - search direction vector
       spin_system       - Spinach data structure with line
                           search settings in control
    Returns:
       test              - logical true if the selected
                           condition is satisfied

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