A function that runs a Management Strategy Evaluation (closed-loop simulation) for a specified operating model
runMSE(OM = DLMtool::testOM, MPs = c("AvC", "DCAC", "FMSYref", "curE",
"matlenlim", "MRreal"), CheckMPs = FALSE, timelimit = 1,
Hist = FALSE, ntrials = 100, fracD = 0.05, CalcBlow = TRUE,
HZN = 2, Bfrac = 0.5, AnnualMSY = TRUE, silent = FALSE,
PPD = TRUE, parallel = FALSE, save_name = NULL, checks = FALSE,
control = NULL)
An operating model object (class 'OM')
A vector of methods (character string) of class MP
Logical to indicate if Can function should be used to check if MPs can be run.
Maximum time taken for a method to carry out 10 reps (methods are ignored that take longer)
Should model stop after historical simulations? Returns an object of class 'Hist' containing all historical data
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
Maximum allowed proportion of simulations where depletion is not close to sampled depletion from OM before model stops with error
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
The number of mean generation times required to reach Bfrac SSBMSY in the Blow calculation
The target fraction of SSBMSY for calculating Blow
Deprecated. Always set to TRUE now. Logical. Should MSY statistics be calculated for each projection year? May differ from MSY statistics from last historical year if there are changes in productivity
Should messages be printed out to the console?
Logical. Should posterior predicted data be included in the MSE object Misc slot?
Logical. Should the MSE be run using parallel processing?
Character. Optional name to save parallel MSE list
Logical. Run tests?
control options for testing and debugging
runMSE
: Default function to use.