runexpplan: load an experiment plan

Description Usage Arguments Details Value Author(s) Examples

Description

Load an experiment plan and execute simulation

Usage

1
output <- runexpplan(experimentplan,hpc=1)

Arguments

experimentplan

the experiment plan to run

hpc

The number of processors you want to use

Details

good luck

Value

Experiment name is defined in the model and can not be null Model file must exist :-)

Author(s)

Nicolas Marilleau - UMI UMMISCO - Research Institute for the Development

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
(f <- system.file("examples",package="gamar"))
experiment1 <- getmodelparameter(paste0(f,"/sir.gaml"),"sir")
experiment1 <- setparametervalue(experiment1,"S0",990)
experiment1 <- setparametervalue(experiment1,"I0",10)
experiment1 <- setparametervalue(experiment1,"R0",0)
experiment1 <- setparametervalue(experiment1,"beta",.3)
experiment1 <- setparametervalue(experiment1,"gamma",.1)
experiment1 <- setoutputframerate(experiment1,"susceptibles",1)
experiment1 <- setoutputframerate(experiment1,"infected",1)
experiment1 <- setoutputframerate(experiment1,"recovered",1)
experiment1 <- setfinalstep(experiment1,200)
experimentplan <- addtoexperimentplan(experiment1)

output <- runexpplan(experimentplan,1)

choisy/gamar documentation built on May 13, 2019, 5:30 p.m.