Difference between revisions of "Alpha conds.m"
(Expand See also links to related Spinach functions and docs) |
(Fix lead description from MATLAB header (folding/hyphenation pass)) |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:alpha_conds.m}} __NOTOC__ | {{DISPLAYTITLE:alpha_conds.m}} __NOTOC__ | ||
| − | Applies one of the line search acceptance tests used by the | + | Applies one of the line search acceptance tests used by the bracketing and sectioning routines in constrained optimisation and returns true when the chosen condition is satisfied. |
==Syntax== | ==Syntax== | ||
Revision as of 20:49, 22 February 2026
Applies one of the line search acceptance tests used by the bracketing and sectioning routines in constrained optimisation and returns true when the chosen condition is satisfied.
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