Usage
runMSErobust(OM = "1", MPs = NA, nsim = 200, proyears = 28,
interval = 4, pstar = 0.5, maxF = 0.8, timelimit = 1, reps = 1,
custompars = NULL, CheckMPs = TRUE, Hist = FALSE, ntrials = 50,
fracD = 0.05, maxsims = 64, name = NULL, unique = TRUE,
maxCrash = 10, saveMSE = TRUE, savePack = FALSE)
Arguments
OM
An operating model object (class OM)
MPs
A vector of methods (character string) of class DLM_output or
DLM_input. If NA all available MPs are run.
nsim
Number of simulations
proyears
Number of projected years
interval
The assessment interval - how often would you like to update
the management system?
pstar
The percentile of the sample of the management recommendation
for each method
maxF
Maximum instantaneous fishing mortality rate that may be
simulated for any given age class
timelimit
Maximum time taken for a method to carry out 10 reps
(methods are ignored that take longer)
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.
custompars
A data.table with nsim rows and nparameter columns. The
column names must respond to variables of the operating model or observation
model see the OM and Obs slots of the MSE class for correct names and
interpretation. This allows users to prescribe correlated parameters or
estimates from stock assessments.
CheckMPs
Logical to indicate if Can function should be used to check
if MPs can be run
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
maxsims
Maximum number of simulations per packet
name
Character string for name of saved MSE packets (if
savePack=TRUE
) and final MSE object. If none provided, it uses the
first four letters from the OM
name
unique
Logical. Should the name be unique? Current date and time appended to name.
maxCrash
Maximum number of consecutive crashes before the MSE stops
saveMSE
Logical to indiciate if final MSEobject should be saved to
current working directory (this is probably a good idea)
savePack
Logical to indicate if packets should be save to current
working directory