Skip to main content

strong_wolfe

Function strong_wolfe 

Source
pub fn strong_wolfe<T, U>(
    objective: &T,
    gradient: &U,
    x0: &[f64],
    f0: f64,
    g0: &[f64],
    d: &[f64],
    initial_step: f64,
    c1: f64,
    c2: f64,
) -> Option<LineSearchPoint>
Expand description

Finds a step alpha > 0 along the descent direction d from x0 satisfying the strong Wolfe conditions

f(x₀ + αd) ≤ f(x₀) + c₁ α ∇f(x₀)·d and |∇f(x₀ + αd)·d| ≤ c₂ |∇f(x₀)·d|

(Nocedal and Wright, algorithms 3.5 and 3.6: bracketing by doubling, then zooming with safeguarded cubic interpolation). Use c₂ ≈ 0.9 for quasi-Newton methods and c₂ ≈ 0.1 for nonlinear conjugate gradients. Returns None if d is not a descent direction or no decreasing point is found; if the Wolfe conditions cannot be met to rounding precision, the best decreasing point found is returned.