fit_ga | R Documentation |
runs optimization using GA package
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(), ... )
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.