Version 1.2.0

10th April 2013

Recent Changes

Code Download

  • Single
  • Double

NS23 Sparse nonlinear over-determined equations: Marquardt method

To solve a system of m nonlinear equations in n unknowns, x = x1,x2,,xn of the form

ri(x) = fi(x) + j=1na ijxj = 0i = 1,2,...,mm n

where the matrices A = aij m×n and J = fixj m×n are sparse.

The over-determined case, m > n, is handled by taking the solution to be that which minimizes the sum of squares

S = i=1mr i(x)2.

his makes the routine suitable for the nonlinear data fitting problem and parameter variances and covariances can be generated. Derivatives are optional and when not provided by the user are estimated using a definite difference approximation.

The algorithm is based on Fletcher’s version of the Marquardt method.

The user must supply the matrix A in a condensed form, an initial estimate of x, and code to calculate fi(x) and optionally the matrix J.