Learn R Programming

nloptr (version 2.2.0)

nl.opts: Setting NL Options

Description

Sets and changes the NLOPT options.

Usage

nl.opts(optlist = NULL)

Value

returns a list with default and changed options.

Arguments

optlist

list of options, see below.

Author

Hans W. Borchers

Details

The following options can be set (here with default values):

stopval = -Inf, # stop minimization at this value
xtol_rel = 1e-6, # stop on small optimization step
maxeval = 1000, # stop on this many function evaluations
ftol_rel = 0.0, # stop on change times function value
ftol_abs = 0.0, # stop on small change of function value
check_derivatives = FALSE

Examples

Run this code

nl.opts(list(xtol_rel = 1e-8, maxeval = 2000))

Run the code above in your browser using DataLab