Skip to main content

Module newton_krylov

Module newton_krylov 

Source
Expand description

Jacobian-free Newton-Krylov for large nonlinear systems F(x) = 0 (SciPy’s optimize.newton_krylov): each Newton correction is found by a Krylov solver that needs only products of the Jacobian with vectors, which are approximated by one difference of F each.

See the book entry Nonlinear systems.

Structs§

NewtonKrylovOptions
Options for newton_krylov (SciPy’s defaults). The iteration stops when ‖F‖∞ ≤ f_tol and ‖F‖∞ ≤ f_rtol ‖F(x₀)‖∞, and the last correction dx satisfies ‖dx‖∞ ≤ x_tol and ‖dx‖∞ ≤ x_rtol ‖x‖∞.
NewtonKrylovResult
The result of newton_krylov.

Enums§

InnerSolver
The Krylov solver for the Newton corrections.

Functions§

newton_krylov
Solves F(x) = 0 for large n without forming the Jacobian (SciPy’s newton_krylov). Each Newton iteration solves J dx = −F(x) inexactly with a Krylov method, to the relative accuracy η of the Eisenstat-Walker forcing sequence (choice 2, γ = 0.9), using finite- difference products J v; an Armijo line search on ‖F‖² then sets the step. An optional preconditioner M ≈ J⁻¹ (SciPy’s inner_M) applies to the inner solves.