Learn R Programming

DDD (version 3.7)

optimizer: Carries out optimization (finding a minimum)

Description

A wrapper to use several optimization routines, currently only 'simplex' (a method adopted from Matlab, or 'subplex', from the R package subplex). The function is called from several packages by the same author.

Usage

optimizer(optimmethod = 'simplex',optimpars = c(1E-4,1E-4,1E-6,1000),fun,trparsopt, ...)

Arguments

optimmethod

The method to use for optimization, either 'simplex' or 'subplex'

optimpars

Parameters of the optimization: relative tolerance in function arguments, relative tolerance in function value, absolute tolerance in function arguments, and maximum number of iterations

fun

Function to be optimized

trparsopt

Initial guess of the parameters to be optimized

...

Any other arguments of the function to be optimimzed, or settings of the optimization routine

Value

out

A list containing optimal function arguments (par, the optimal function value (fvalues) and whether the optimization converged (conv)

.

Examples

Run this code
# NOT RUN {
cat("No examples")
# }

Run the code above in your browser using DataLab