Expand description
MINPACK’s Levenberg-Marquardt method (lmder and lmdif, Moré 1978), as SciPy’s
optimize.leastsq and optimize.root(method="lm") call it: nonlinear least squares
min ‖F(x)‖², F: ℝⁿ → ℝᵐ, m ≥ n, and so also the roots of square systems.
See the book entry Levenberg-Marquardt for systems, mixed-integer programming and truncated Newton.
Structs§
- LmOptions
- Options for
leastsqandroot_lm, with SciPy’sleastsqdefaults. - LmResult
- The result of
leastsq.
Functions§
- leastsq
- Minimises
‖F(x)‖²by MINPACK’s Levenberg-Marquardt method (SciPy’sleastsq;lmderwith an analytic Jacobian,lmdifwith forward differences). Each iteration factorises the JacobianJ P = Q Ronce, then finds bylmparthe dampingλwhose stepmin ‖J p + F‖² + λ‖D p‖²fits the trust region‖D p‖ ≤ Δ, withDthe running maximum of the column norms ofJ(MINPACK’smode = 1);Δgrows or shrinks with the ratio of actual to predicted reduction.jacreturns them × nJacobian by rows. - root_lm
- A root of the square system
F(x) = 0by MINPACK’s Levenberg-Marquardt method (SciPy’sroot(method="lm")):leastsqon‖F‖². Converged when MINPACK stops on its ftol or xtol test (info 1–4) with‖F‖∞at most1e-8; a local minimum of‖F‖that is not a root is reported as not converged.
Type Aliases§
- Jacobian
Fn - An analytic Jacobian for
leastsqandroot_lm: them × nmatrix∂Fᵢ/∂xⱼby rows.