gsl_nls_control {gslnls} | R Documentation |
Tunable Nonlinear Least Squares iteration parameters
Description
Allow the user to tune the characteristics of the gsl_nls
and gsl_nls_large
nonlinear least squares algorithms.
Usage
gsl_nls_control(
maxiter = 100,
scale = "more",
solver = "qr",
fdtype = "forward",
factor_up = 2,
factor_down = 3,
avmax = 0.75,
h_df = sqrt(.Machine$double.eps),
h_fvv = 0.02,
xtol = sqrt(.Machine$double.eps),
ftol = sqrt(.Machine$double.eps),
gtol = sqrt(.Machine$double.eps),
mstart_n = 30,
mstart_p = 5,
mstart_q = mstart_n%/%10,
mstart_r = 4,
mstart_s = 2,
mstart_tol = 0.25,
mstart_maxiter = 10,
mstart_maxstart = 250,
mstart_minsp = 1,
...
)
Arguments
maxiter |
positive integer, termination occurs when the number of iterations reaches |
scale |
character, scaling method or damping strategy determining the diagonal scaling matrix D. The following options are supported:
|
solver |
character, method used to solve the linear least squares system resulting as a subproblem in each iteration.
For large-scale problems fitted with
|
fdtype |
character, method used to numerically approximate the Jacobian and/or second-order derivatives
when geodesic acceleration is used. Either |
factor_up |
numeric factor by which to increase the trust region radius when a search step is accepted. Too large values may destabilize the search, too small values slow down the search, defaults to 2. |
factor_down |
numeric factor by which to decrease the trust region radius when a search step is rejected. Too large values may destabilize the search, too small values slow down the search, defaults to 3. |
avmax |
numeric value, the ratio of the acceleration term to the velocity term when using geodesic acceleration to
solve the nonlinear least squares problem. Any steps with a ratio larger than |
h_df |
numeric value, the step size for approximating the Jacobian matrix with finite differences, defaults to |
h_fvv |
numeric value, the step size for approximating the second directional derivative when geodesic acceleration
is used to solve the nonlinear least squares problem, defaults to 0.02. This is only used if no analytic second
directional derivative ( |
xtol |
numeric value, termination occurs when the relative change in parameters between iterations is |
ftol |
numeric value, termination occurs when the relative change in sum of squared residuals between iterations is |
gtol |
numeric value, termination occurs when the relative size of the gradient of the sum of squared residuals is |
mstart_n |
positive integer, number of quasi-random points drawn in each major iteration, parameter |
mstart_p |
positive integer, number of iterations of inexpensive local search to concentrate the sample, parameter |
mstart_q |
positive integer, number of points retained in the concentrated sample, parameter |
mstart_r |
positive integer, scaling factor of number of stationary points determining when the multi-start algorithm terminates, parameter |
mstart_s |
positive integer, minimum number of iterations a point needs to be retained before starting an efficient local search, parameter |
mstart_tol |
numeric value, multiplicative tolerance |
mstart_maxiter |
positive integer, maximum number of iterations in the efficient local search algorithm (Algorithm B, Hickernell and Yuan (1997)), defaults to 10. |
mstart_maxstart |
positive integer, minimum number of major iterations (Algorithm 2.1, Hickernell and Yuan (1997)) before the multi-start algorithm terminates, defaults to 250. |
mstart_minsp |
positive integer, minimum number of detected stationary points before the multi-start algorithm terminates, defaults to 1. |
... |
any additional arguments (currently not used). |
Value
A list
with exactly twenty-one components:
maxiter
scale
solver
fdtype
factor_up
factor_down
avmax
h_df
h_fvv
xtol
ftol
gtol
mstart_n
mstart_p
mstart_q
mstart_r
mstart_s
mstart_tol
mstart_maxiter
mstart_maxstart
mstart_minsp
with meanings as explained under 'Arguments'.
Note
ftol
is disabled in some versions of the GSL library.
References
M. Galassi et al., GNU Scientific Library Reference Manual (3rd Ed.), ISBN 0954612078.
Hickernell, F.J. and Yuan, Y. (1997) “A simple multistart algorithm for global optimization”, OR Transactions, Vol. 1 (2).
See Also
https://www.gnu.org/software/gsl/doc/html/nls.html#tunable-parameters
Examples
## default tuning parameters
gsl_nls_control()