ParallelRun: ParallelRun

Description Usage Arguments Value Examples

View source: R/rrepast-parallel.R

Description

Run simulations in parallel. This function executes the time steps of an instantiated model. The number of replications of model runs can be specified by the function parameter. The seed parameter may be omitted and will be generated internally. If provided, the seed collection, must contain the same number of r parameter.

Usage

1
2
ParallelRun(modeldir, datasource, maxtime, r = 1, seed = c(),
  design = NULL, default = NULL)

Arguments

modeldir

The installation directory of some repast model

datasource

The name of any model aggregate dataset

maxtime

The total simulated time

r

The number of experiment replications

seed

The random seed collection

design

The desing matrix holding parameter sampling

default

The alternative values for parameters which should be kept fixed

Value

The model output dataset

Examples

1
2
3
4
## Not run: 
   md<- "/usr/models/your-model-directory"
   output<- ParallelRun(modeldir= md, maxtime = 360, dataset= ds, r=4)
## End(Not run) 

antonio-pgarcia/RRepast documentation built on Feb. 22, 2020, 1:20 a.m.