Arguments
- simulation
One
Simulationto simulate.- population
Optional instance of a
Populationto use for the simulation. This is only used when simulating one simulation Alternatively, you can also pass the result ofcreatePopulationdirectly. In this case, the population will be extracted- agingData
Optional instance of
AgingDatato use for the simulation. This is only used with a population simulation- simulationRunOptions
Optional instance of a
SimulationRunOptionsused during the simulation run
Details
Runs one simulation (individual or population) and returns a
SimulationResults object containing all results of the simulation.
Examples
if (FALSE) { # \dontrun{
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)
} # }