| eqsolve | R Documentation |
Non linear Solving methods
eqsolve(xinit, f, jac,
method=c("Newton", "Levenberg-Marquardt", "Broyden"),
global=c("line search", "none"), control=list())
xinit |
initial point. |
f |
the function for which we search roots. |
jac |
the Jacobian of the function |
method |
a character string specifying the method to use: either
|
global |
a character string for the globalization method to be used:
either |
control |
a list for the control parameters. See details. |
The control argument is a list that can supply any of the following components:
tolThe absolute convergence tolerance. Default to 1e-6.
maxitThe maximum number of iterations. Default to 100.
echoA logical or an integer (0, 1, 2, 3, 4) to print traces.
Default to FALSE, i.e. 0.
echofileA character string to store the traces in that file. Default to NULL.
echographA character string to plot iter-by-iter information.
Either "NULL" (default), or "line" for line search plot
or "trust" for trust region plots.
sigmaReduction factor for the geometric linesearch. Default to 0.5.
btolThe backtracking tolerance. Default to 0.01.
deltaThe exponent parameter for the LM parameter, should in [1,2]. Default to 2.
initlnsrchThe initial integer for starting the line search. Default to 0.
minstepThe minimal step. Default to 0.001.
A list with components:
parThe best set of parameters found.
countsA two-element integer vector giving the number of calls to phi and jacphi respectively.
iterThe iteration number.
code0 if convergence, 1 if maxit is reached, 10
if tol is not reached and 11 for both.
Christophe Dutang
See nleqslv from the package of the same name.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.