| eqsolve {GNE} | R Documentation |
Solving non linear equations
Description
Non linear Solving methods
Usage
eqsolve(xinit, f, jac,
method=c("Newton", "Levenberg-Marquardt", "Broyden"),
global=c("line search", "none"), control=list())
Arguments
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. |
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.
Value
A list with components:
parThe best set of parameters found.
countsA two-element integer vector giving the number of calls to
phiandjacphirespectively.iterThe iteration number.
code0 if convergence, 1 if
maxitis reached, 10 iftolis not reached and 11 for both.
Author(s)
Christophe Dutang
See Also
See nleqslv from the package of the same name.