Solve a system of nonlinear equations using the Levenberg-Marquardt
algorithm.
Namespace:
Imsl.Math
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public double[] Solve( ZeroSystem..::.IFunction f ) |
Visual Basic (Declaration) |
---|
Public Function Solve ( _ f As ZeroSystem..::.IFunction _ ) As Double() |
Visual C++ |
---|
public: array<double>^ Solve( ZeroSystem..::.IFunction^ f ) |
Parameters
- f
- Type: Imsl.Math..::.ZeroSystem..::.IFunction
Defines a ZeroSystem.IFunction whose zero is to be found. If f implements a ZeroSystem.IJacobian then its Jacobian is used. Otherwise finite difference is used.
Return Value
A double array containing the solution.
Exceptions
Exception | Condition |
---|---|
Imsl.Math..::.TooManyIterationsException | is thrown if the maximum number of iterations is exceeded |
Imsl.Math..::.ToleranceTooSmallException | is thrown if the error tolerance is too small |
Imsl.Math..::.DidNotConvergeException | is thrown if the algorithm does not converge |