Control various aspects of the Levenberg-Marquardt algorithm
Allow the user to set some characteristics
Levenberg-Marquardt nonlinear least squares algorithm implemented
in nls.lm
.
nls.lm.control(ftol = sqrt(.Machine$double.eps), ptol = sqrt(.Machine$double.eps), gtol = 0, diag = list(), epsfcn = 0, factor = 100, maxfev = integer(), maxiter = 50, nprint = 0)
ftol |
non-negative numeric. Termination occurs when
both the actual and predicted relative reductions in the sum of
squares are at most |
ptol |
non-negative numeric. Termination occurs when
the relative error between two consecutive iterates is at most
|
gtol |
non-negative numeric. Termination occurs when
the cosine of the angle between result of |
diag |
a list or numeric vector containing positive
entries that serve as multiplicative scale factors for the
parameters. Length of |
epsfcn |
(used if |
factor |
positive numeric, used in determining the
initial step bound. This bound is set to the product of
|
maxfev |
integer; termination occurs
when the number of calls to |
maxiter |
positive integer. Termination occurs
when the number of iterations reaches |
nprint |
is an integer; set |
A list
with exactly nine components:
ftol |
|
ptol |
|
gtol |
|
diag |
|
epsfcn |
|
factor |
|
maxfev |
|
nprint |
with meanings as explained under ‘Arguments’.
J.J. Moré, "The Levenberg-Marquardt algorithm: implementation and theory," in Lecture Notes in Mathematics 630: Numerical Analysis, G.A. Watson (Ed.), Springer-Verlag: Berlin, 1978, pp. 105-116.
nls.lm.control(maxiter = 4)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.