Skip to contents

Optimize

Usage

mp_optimize(model, optimizer, ...)

# S3 method for class 'TMBCalibrator'
mp_optimize(model, optimizer = c("nlminb", "optim"), ...)

Arguments

model

A model object capable of being optimized. See below for model types that are supported.

optimizer

Name of an implemented optimizer. See below for options for each type of model.

...

Arguments to pass to the optimizer.

Value

The output of the optimizer. The model object is modified and saves the history of optimization outputs. These outputs can be obtained using mp_optimizer_output.

Methods (by class)

  • mp_optimize(TMBCalibrator): Optimize a TMB calibrator.