Description Usage Arguments Details Value Author(s) Examples
Load an experiment plan and execute simulation
1 | output <- runexpplan(experimentplan,hpc=1)
|
experimentplan |
the experiment plan to run |
hpc |
The number of processors you want to use |
good luck
Experiment name is defined in the model and can not be null Model file must exist :-)
Nicolas Marilleau - UMI UMMISCO - Research Institute for the Development
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.