ParallellRunExperiment: ParallellRunExperiment

Description Usage Arguments Details Value Examples

View source: R/rrepast-parallel.R

Description

Run the model multiple times for different parameters given by design matrix function parameter.

Usage

1
2
ParallellRunExperiment(modeldir, datasource, maxtime, r = 1, design, FUN,
  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

design

The desing matrix holding parameter sampling

FUN

THe calibration function.

default

The alternative values for parameters which should be kept fixed

Details

The FUN function must return zero for perfect fit and values greater than zero otherwise.

Value

A list with output and dataset

Examples

1
2
3
4
5
6
7
8
## Not run: 
   my.cost<- function(params, results) { # your best fit calculation, being 0 the best metric.  }
   d<- "/usr/models/your-model-directory"
   f<- AddFactor(name="cyclePoint",min=40,max=90)
   f<- AddFactor(factors=f, name="conjugationCost",min=1,max=80)
   d<- AoE.LatinHypercube(factors=f)
   v<- ParallellRunExperiment()
## End(Not run)

rrepast documentation built on Feb. 19, 2020, 9:06 a.m.