NonlinLeastSquaresSolve Method |
Solve a nonlinear least-squares problem using a modified
Levenberg-Marquardt algorithm and a Jacobian.
Namespace: Imsl.MathAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public double[] Solve(
NonlinLeastSquaresIFunction f
)
Public Function Solve (
f As NonlinLeastSquaresIFunction
) As Double()
public:
array<double>^ Solve(
NonlinLeastSquaresIFunction^ f
)
member Solve :
f : NonlinLeastSquaresIFunction -> float[]
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 Exception | Condition |
---|
TooManyIterationsException |
is thrown if the number of iterations exceeds
MaximumIterations, MaximumIterations is set to 100 by
default
|
See Also