View source: R/utilities-simulation.R
runSimulation | R Documentation |
runSimulation(
simulation,
population = NULL,
agingData = NULL,
simulationRunOptions = NULL
)
simulation |
One |
population |
Optional instance of a |
agingData |
Optional instance of |
simulationRunOptions |
Optional instance of a |
Runs one simulation (individual or population) and returns a
SimulationResults
object containing all results of the simulation.
SimulationResults (one entry per Individual) for a single simulation
## Not run:
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
# Running an individual simulation
# results is an instance of `SimulationResults`
results <- runSimulation(sim)
# Creating custom simulation run options
simRunOptions <- SimulationRunOptions$new()
simRunOptions$numberOfCores <- 3
simRunOptions$showProgress <- TRUE
# Running a population simulation
popPath <- system.file("extdata", "pop.csv", package = "ospsuite")
population <- loadPopulation(popPath)
results <- runSimulation(sim, population, simulationRunOptions = simRunOptions)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.