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.
Arguments
- parameters
A
listof model parameters. Expected fields:F_full(numeric vector of fully-selected fishing mortality by fishery, length nfisheries).- data
A
listof 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).
