View source: R/utilities-simulation.R
initializeSimulation | R Documentation |
Helper method that combines a set of common steps performed before running a simulation. This method applies individual parameters data set and additional user-defined parameters to the simulation and runs the simulation to its steady-state and applies the steady-state as new initial conditions.
initializeSimulation(
simulation,
individualCharacteristics = NULL,
additionalParams = NULL,
stopIfParameterNotFound = TRUE
)
simulation |
|
individualCharacteristics |
Optional |
additionalParams |
Optional named list with lists 'paths', 'values', and 'units'. |
stopIfParameterNotFound |
Logical. If |
## Not run:
simulation <- loadSimulation(filePath = modelPath)
humanIndividualCharacteristics <- createIndividualCharacteristics(
species = Species$Human, population = HumanPopulation$European_ICRP_2002,
gender = Gender$Male, weight = 70
)
userParams <- readParametersFromXLS(parameterXLSPath)
initializeSimulation(simulation, humanIndividualCharacteristics, userParams)
simulationResults <- runSimulations(simulation = simulation)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.