Description Usage Arguments Details Value Examples
View source: R/rrepast-parallel.R
Run the model multiple times for different parameters given by design matrix function parameter.
1 2 | ParallellRunExperiment(modeldir, datasource, maxtime, r = 1, design, FUN,
default = NULL)
|
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 |
The FUN function must return zero for perfect fit and values greater than zero otherwise.
A list with output and dataset
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.