runMSE: Function to run the TCSAM02 MSE for one harvest strategy

Description Usage Arguments Details Value

View source: R/runMSE.R

Description

This functions runs the TCSAM02 MSE for one harvest strategy.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
runMSE(os = "osx", topLevelFolder = ".", model = "tcsam02",
  path2model = "", HCR = 1, numRuns = 3, minRunID = 1,
  firstYr = 2018, numYrs = 10, 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, calcTAC = TRUE, HCR = 1), opModInfo = list(path = ".",
  configFile = "OpMod.Configuration.inp", optsFile = "OpMod.Options.inp",
  mpiFile = "OpMod.ParametersInfo,inp", pinFile = "opMod.pin"),
  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)

Arguments

os

- 'win', 'mac', 'osx', or 'linux'

topLevelFolder

- path to top-level folder for MSE model runs

model

- TCSAM02 model executable name

path2model

- path to model executable

HCR

- integer identifying harvest control rule to use

numRuns

- number of complete MSE runs to make

minRunID

- integer identifying first run label for the series of runs (default=1)

firstYr

- first year for projection (i.e., the assessment year, or max year + 1, of base model)

numYrs

- number of years to run model forward

runBaseModel

- flag to run base model to calculate TAC and create operating model state for first projection year

baseModelInfo

- list of parameters to run base model (if necessary)

opModInfo

- list of parameters to run operating model

estModInfo

- list of parameters to run estimation model

keepFiles

- vector of file names to keep after model run, if cleanupAll is true

cleanupAll

- T/F to clean up ALMOST ALL model output files after each run

test

- flag (T/F) to run in "test" mode

verbose

- flag (T/F) to print diagnostic messages

configFile

- path to model configuration file

Details

TODO!

Value

- NULL


wStockhausen/rTCSAM02 documentation built on Dec. 14, 2018, 2:09 p.m.