Skip to contents

RTMB implementation of the ADMB msycalc.tpl model for calculating Maximum Sustainable Yield (MSY) in a multi-fishery age-structured model. This is the RTMB-compatible version for automatic differentiation.

Usage

msy_model(parameters, data)

Arguments

parameters

A list of model parameters. Expected fields: F_full (numeric vector of fully-selected fishing mortality by fishery, length nfisheries).

data

A list of model data inputs. Expected fields: nfisheries (integer, number of fisheries), last_age (integer, maximum age class), sel_fa (numeric matrix, selectivity by fishery and age with dimensions nfisheries x (last_age+1)), cwt_fa (numeric matrix, catch weight-at-age by fishery and age with dimensions nfisheries x (last_age+1)), phi (numeric vector, spawning biomass per recruit by age, length last_age+1), spwt (numeric vector, spawning weight-at-age, length last_age+1), M_age (numeric vector, natural mortality by age, length last_age+1), alpha (numeric, stock-recruitment parameter), beta (numeric, stock-recruitment parameter).

Value

Numeric scalar, the objective function value (negative log-likelihood plus penalties).