Function levenberg_marquardt

Source
pub fn levenberg_marquardt<R: Residuals>(
    problem: &mut R,
    x0: &[f64],
    options: LevenbergMarquardtOptions,
) -> NumericResult<LeastSquaresMinimum>
Expand description

Minimise 1/2 ||r(x)||^2 from x0 by Levenberg-Marquardt.

ยงErrors

Refuses non-finite x0, non-finite or negative tolerances, no unknowns and no residuals. A non-finite residual or Jacobian at x0 or at an accepted point is refused by name; a non-finite residual at a trial point only rejects that step. Fewer residuals than unknowns is accepted (the damping keeps each step defined), but the minimiser is then not isolated and error_estimate is None.