Learn R Programming

DLMtool (version 5.0.2)

runMSE: Run a Management Strategy Evaluation

Description

A function that runs a Management Strategy Evaluation (closed-loop simulation) for a specified operating model

Usage

runMSE(OM = DLMtool::testOM, MPs = c("AvC", "DCAC", "FMSYref", "curE",
  "matlenlim", "MRreal"), nsim = 48, proyears = 50, interval = 4,
  pstar = 0.5, maxF = 0.8, reps = 1, CheckMPs = FALSE, timelimit = 1,
  Hist = FALSE, ntrials = 50, fracD = 0.05, CalcBlow = FALSE, HZN = 2,
  Bfrac = 0.5)

Arguments

OM

An operating model object (class 'OM')

MPs

A vector of methods (character string) of class Output or Input.

nsim

Number of simulations. Note that in DLMtool V4.1+ 'nsim is ignored if OM object contains the slot 'nsim'.

proyears

Number of projected years. Note that in DLMtool V4.1+ 'proyears is ignored if OM object contains the slot 'proyears'.

interval

The assessment interval - how often would you like to update the management system? NOTE: since DLMtool V4.5 this slot is included in the OM object which will override the value used here. This slot to be deprecated in the future.

pstar

The percentile of the sample of the management recommendation for each method. NOTE: since DLMtool V4.5 this slot is included in the OM object which will override the value used here. This slot to be deprecated in the future.

maxF

Maximum instantaneous fishing mortality rate that may be simulated for any given age class. NOTE: since DLMtool V4.5 this slot is included in the OM object which will override the value used here. This slot to be deprecated in the future.

reps

Number of samples of the management recommendation for each method. Note that when this is set to 1, the mean value of the data inputs is used. NOTE: since DLMtool V4.5 this slot is included in the OM object which will override the value used here. This slot to be deprecated in the future.

CheckMPs

Logical to indicate if Can function should be used to check if MPs can be run.

timelimit

Maximum time taken for a method to carry out 10 reps (methods are ignored that take longer)

Hist

Should model stop after historical simulations? Returns a list containing all historical data

ntrials

Maximum of times depletion and recruitment deviations are resampled to optimize for depletion. After this the model stops if more than percent of simulations are not close to the required depletion

fracD

maximum allowed proportion of simulations where depletion is not close to sampled depletion from OM before model stops with error

CalcBlow

Should low biomass be calculated where this is the spawning biomass at which it takes HZN mean generation times of zero fishing to reach Bfrac fraction of SSBMSY

HZN

The number of mean generation times required to reach Bfrac SSBMSY in the Blow calculation

Bfrac

The target fraction of SSBMSY for calculating Blow

Value

An object of class MSE