runProfiles: Function to run profiles on a TCSAM2013 model.

Description Usage Arguments Details Value

Description

This functions runs profiles on a TCSAM2013 model.

Usage

1
2
3
runProfiles(os = "osx", path = ".", model = "tcsam2013alta",
  path2model = "", configFileTemplate = NULL, controlFileTemplate = NULL,
  profiles = NULL, runSeqs = TRUE, numRuns = 4, plotResults = TRUE)

Arguments

os

- 'win' or 'mac' or 'osx'

path

- path to parent folder for model output

model

- TCSAM2013 model executable name

path2model

- path to model executable

profiles

- dataframe with variables to profile on in each row

runSeqs

- TRUE to run sequences, FALSE to jitter

numRuns

- number of sequences or jitters to run

plotResults

- T/F to plot final results within each profile using plotTCSAM2013I

configFile

- path to model configuration file template

controlFile

- path to model control file template

Details

This function creates a shell script ('./tmp.sh') in the working directory and uses it to run a version of the TCSAM2013 model. Initial model parameters can be jittered based on the system clock time as a seed to the random number generator. The seed and final objective function value are saved for each model run in a csv file (the value of out.csv).

Value

- par file dataframe


wStockhausen/rTCSAM2013 documentation built on May 3, 2019, 7:13 p.m.