Click or drag to resize
NonlinLeastSquaresSolve Method
Solve a nonlinear least-squares problem using a modified Levenberg-Marquardt algorithm and a Jacobian.

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public double[] Solve(
	NonlinLeastSquaresIFunction f
)

Parameters

f
Type: Imsl.MathNonlinLeastSquaresIFunction
User supplied NonlinLeastSquares.IFunction that defines the least-squares problem. If f implements IJacobian then its Jacobian is used. Otherwise, a finite difference Jacobian is used.

Return Value

Type: Double
A double array of length n containing the approximate solution.
Exceptions
ExceptionCondition
TooManyIterationsException is thrown if the number of iterations exceeds MaximumIterations, MaximumIterations is set to 100 by default
See Also