g3_optim | R Documentation |
Wrapper for stats::optim that returns the g3_cpp parameter template with optimised values
g3_optim(
model,
params,
use_parscale = TRUE,
method = "BFGS",
control = list(),
print_status = FALSE,
print_id = "g3_optim",
check_finite = TRUE,
...
)
model |
Either a g3 model of class 'g3_cpp', i.e., model <- gadget3::g3_to_tmb(actions), or an objective function from gadget3::g3_tmb_adfun(model, param) |
params |
The parameter template for a g3_cpp classed model. |
use_parscale |
Should parscale be used g3_tmb_parscale(params), see |
method |
The optimisation method, see |
control |
List of control options for optim, see |
print_status |
Print step comments, does not suppress comments from optim call (see control$trace) |
print_id |
A character string appended to the print statements (useful for when running g3_optim in parallel) |
check_finite |
boolean Should we check that initial/final conditions produce finite results before running? |
... |
Further arguments to be passed gadget3::g3_tmb_adfun, see |
A g3_cpp parameter template with optimised values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.