To solve a system of nonlinear equations in unknowns, of the form
where the matrices and are sparse.
The over-determined case, , is handled by taking the solution to be that which minimizes the sum of squares
his makes the routine suitable for the nonlinear data ﬁtting problem and parameter variances and covariances can be generated. Derivatives are optional and when not provided by the user are estimated using a deﬁnite diﬀerence approximation.
The algorithm is based on Fletcher’s version of the Marquardt method.
The user must supply the matrix in a condensed form, an initial estimate of , and code to calculate and optionally the matrix .