Nonlinear Least-Squares Problems