Expand description
MINPACK routines backing the Levenberg-Marquardt method.
Port of ql/math/optimization/lmdif.{hpp,cpp}, itself the C translation
of the MINPACK Fortran (Argonne National Laboratory, Garbow, Hillstrom,
More, 1980). Matrices are stored column-major in flat slices, as in the
original; the arithmetic constants MACHEP and DWARF keep MINPACK’s
values so results match QuantLib’s.
Traits§
- Lmdif
Cost Function - The user-supplied functions minimized by
lmdif.
Functions§
- enorm
- Computes the Euclidean norm of
x. - fdjac2
- Computes a forward-difference approximation to the
mbynJacobian atxinto the column-majorfjac. - lmdif
- Minimizes the sum of the squares of
mnonlinear functions innvariables by the Levenberg-Marquardt algorithm, approximating the Jacobian by forward differences unlessfcnsupplies it. - lmpar
- Determines the Levenberg-Marquardt parameter
parand the corresponding stepxsuch that, withdxnorm = ||D*x||, eitherparis zero anddxnorm - delta <= 0.1 * delta, orparis positive and|dxnorm - delta| <= 0.1 * delta. - qrfac
- Computes the QR factorization
A * P = Q * Rof the column-majormbynmatrixaby Householder transformations with optional column pivoting. - qrsolv
- Solves the least-squares system
A*x = b,D*x = 0given the QR factorization ofA * P = Q * R.