Skip to main content

Module conjugate_gradient

Module conjugate_gradient 

Source
Expand description

Nonlinear conjugate gradient minimization.

See the book entry Gradient descent and nonlinear conjugate gradients.

Structs§

NonlinearConjugateGradient
Nonlinear conjugate gradients: O(n) memory, a strong Wolfe line search with c₂ = 0.1, the initial step of each line search scaled from the previous one (Nocedal and Wright eq. 3.60), and a restart to steepest descent every n iterations or whenever the direction is not a descent direction. Converges when ‖∇f‖∞ falls below the tolerance (default 1e-8). On a strictly convex quadratic with exact line searches every variant reduces to linear CG.

Enums§

ConjugateGradientBeta
The formula for β in the direction update d ← −g + β d.