runProfiles: Function to run profiles on a TCSAM2015 model.

Description Usage Arguments Details Value

View source: R/runProfiles.R

Description

This functions runs profiles on a TCSAM2015 model.

Usage

1
2
3
4
runProfiles(os = "osx", path = ".", model = "tcsam2015",
  path2model = "", configFileTemplate = NULL, controlFileTemplate = NULL,
  profiles = NULL, runSeqs = TRUE, numRuns = 4, mcmc = FALSE,
  mc.N = 1e+06, mc.save = 1000, mc.scale = 1000, plotResults = TRUE)

Arguments

os

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

path

- path to parent folder for model output

model

- TCSAM2015 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

mcmc

- flag (T/F) to run mcmc on "best" model

mc.N

- number of mcmc iterations to make

mc.save

- number of iterations to skip when saving mcmc calculations

mc.scale

- number of iterations to adjust scale for mcmc calculations

plotResults

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

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 TCSAM2015 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/rTCSAM2015 documentation built on May 3, 2019, 7:14 p.m.