fit_ga: fit_ga

View source: R/fit_ga.R

fit_gaR Documentation

fit_ga

Description

runs optimization using GA package

Usage

fit_ga(
  objective,
  start = NULL,
  lower = NULL,
  upper = NULL,
  hessian = T,
  sigma = 0.1,
  n_pop = 50L,
  minimize = T,
  opt_args = list(),
  obj_args = list(),
  ...
)

Arguments

objective

function; the objective function to minimize

start

numeric vector; starting parameters

lower

numeric vector; lower bounds on parameters

upper

numeric vector; upper bounds on parameters

hessian

logical; if TRUE, find the hessian at the optimum

sigma

numeric; standard deviation to create random initial population

n_pop

integer; population size

minimize

logical; if TRUE, maximize -1 * objective

opt_args

list; list of arguments to pass to ga, see GA::ga for details

obj_args

list; list of arguments to pass on to objective function

...

further arguments passed to objective


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