Fit the SpatialSablefishAssessment TMB Model
#'
Use Template Model Builder (TMB) to fit the assessmnte model
from `SpatialSablefishAssessment`. Note that the 'ln_M_year_devs'
and 'ln_M_age_devs' parameters have been turned off.
Format OM Observation Data for TMB Assessment Model
#'
Format data and observations from an `afscOM` operating model
and update the model data and parameters required by the
`SpatialSablefishAssessment` TMB assessment model.
Compute proportion of population that is fully mature
#'
Calculate the proportion of a population
in age classes that are "fully mature" (e.g.
mat > 0.995).
Run Multiple MSE Simulations
#'
Wrapper function around `run_mse` that handle running and
compiling the outputs of multiple MSE closed-loop simulations,
across different random seeds.
Simulate Total Allowable Catch Projections
#'
Determine the total allowable catch (TAC) in the next simulation
year based on the fishing mortality rate identified by a harvest
control rule (HCR). TAC is computed by projecting the population
forward one year under the specific level of F and computing the
the amount of catch that would be taken from that projected
population structure based on the joint fishery selectivity curve.
Find F that yields a given SPR
spr_x(nages, mort, mat, waa, sel, ret, target_x = 0.35)
nagesnumber of ages in age structure
mortinstantaneous natural mortality rate
matmaturity-at-age vector
waaweight-at-age vector
seltotal selectivity-at-age vector
rettotal retention-at-age vector
target_xdesired SPR proportion
Use bisection algorithm to identify the level of
fishing mortality required to yield an SPR of x