Run: Run simulations

Description Usage Arguments Value Examples

View source: R/RRepast.R

Description

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
Run(e, r = 1, seed = c())

Arguments

e

An engine object instance

r

The number of experiment replications

seed

The random seed collection

Value

The model output dataset

Examples

1
2
3
4
5
6
## Not run: 
   d<- "C:/usr/models/your-model-directory"
   m<- Model(d)
   Load(m)
   Run(m,r=2) # or Run(m,r=2,seed=c(1,2))
## End(Not run)

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