LevenbergMarquardt
Levenberg-Marquardt algorithm, commonly abbreviated Levenberg-Marquardt or LM, is an iterative method for solving nonlinear least squares problems. It combines aspects of the Gauss-Newton algorithm and gradient descent to provide a robust and efficient approach for minimizing the sum of squares of nonlinear residuals.
Let F(p) = 1/2 sum r_i(p)^2 be the objective, where r_i(p) are residuals depending on parameters p. At
When λ is large, the method behaves like gradient descent, favoring safer, smaller steps. When λ is small,
LM is widely used for curve fitting and nonlinear data fitting, especially when residuals are poorly scaled