run_optim | R Documentation |
runs optimization using optim package
run_optim( objective, start, lower = -Inf, upper = Inf, hessian = FALSE, method = "Nelder-Mead", control = list(), ... )
objective |
function; the objective function to minimize |
start |
numeric vector; starting parameters |
lower |
numeric vector; lower bounds for parameters |
upper |
numeric vector; upper bounds for parameters |
hessian |
logical; if TRUE, find the hessian at the optimum |
method |
string; method to use. See optim for details |
control |
list; a list of control parameters, see optim for details |
... |
further arguments passed to optim and objective |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.