run_optim: run_optim

View source: R/run_optim.R

run_optimR Documentation

run_optim

Description

runs optimization using optim package

Usage

run_optim(
  objective,
  start,
  lower = -Inf,
  upper = Inf,
  hessian = FALSE,
  method = "Nelder-Mead",
  control = list(),
  ...
)

Arguments

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


gkane26/modelfitr documentation built on March 21, 2022, 10:52 a.m.