runMSE | R Documentation |
This functions runs the TCSAM02 MSE for one harvest strategy.
runMSE(
os = "osx",
topLevelFolder = ".",
model = "tcsam02",
path2model = "",
HCR = 1,
numRuns = 3,
minRunID = 1,
firstYr = 2018,
numYrs = 10,
iSeeds = NULL,
runBaseModel = TRUE,
baseModelInfo = list(path = ".", configFile = "ModelConfig.inp", datasets = list(file =
"Datasets.inp", components = list(Bio = "Info", Fishery = c("TCF", "SCF", "GTF",
"RKF"), Survey = "NMFS", Growth = "EBS", ChelaHeights = NULL)), pin = TRUE, pinFile =
"tcsam02.pin", minPhase = 1, jitter = FALSE, iSeed = NULL, calcTAC = TRUE, HCR = 1),
opModInfo = list(path = ".", configFile = "OpMod.Configuration.inp", optsFile =
"OpMod.Options.inp", mpiFile = "OpMod.ParametersInfo,inp", pinFile = "opMod.pin",
minPhase = 5, maxPhase = 6),
estModInfo = list(path = ".", configFile = "EstMod.Configuration.inp", optsFile =
"EstMod.Options.inp", minPhase = 5),
keepFiles = c("tmp.sh", "tcsam02.par"),
cleanupAll = FALSE,
test = TRUE,
verbose = TRUE
)
os |
|
topLevelFolder |
|
model |
|
path2model |
|
HCR |
|
numRuns |
|
minRunID |
|
firstYr |
|
numYrs |
|
iSeeds |
|
runBaseModel |
|
baseModelInfo |
|
opModInfo |
|
estModInfo |
|
keepFiles |
|
cleanupAll |
|
test |
|
verbose |
|
configFile |
|
numRuns
is the number of successful iterations the MSE is to complete before stopping.
If a model run fails for some reason during an iteration in the MSE, the iteration is restarted from the
firstYr
with a new seed for the random number generator (RNG). If the input matrix iSeeds
is NULL, then the new RNG seed is based on the system clock. However, if the matrix is supplied,
the seed is taken from the first element in the "next" row of the matrix (a counter for the
total number of MSE iterations is used to track this; a separate counter tracks the number of
successful iterations). Thus, if iSeeds
is supplied, the number of rows in the matrix needs to be
larger than (or equal to) the total number of MSE iterations actually undergone to achieve numRuns
successful iterations.
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.