View source: R/utilities-parameter.R
setParameterValuesByPath | R Documentation |
Set the values of parameters in the simulation by path
setParameterValuesByPath(
parameterPaths,
values,
simulation,
units = NULL,
stopIfNotFound = TRUE
)
parameterPaths |
A single or a list of parameter path |
values |
A numeric value that should be assigned to the parameters or a vector of numeric values, if the value of more than one parameter should be changed. Must have the same length as 'parameterPaths' |
simulation |
Simulation uses to retrieve parameter instances from given paths. |
units |
A string or a list of strings defining the units of the
|
stopIfNotFound |
Boolean. If |
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
setParameterValuesByPath("Organism|Liver|Volume", 1, sim)
setParameterValuesByPath(c("Organism|Liver|Volume", "Organism|Volume"), c(2, 3), sim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.