View source: R/utilities-simulation.R
getSteadyState | R Documentation |
Get the steady-state values of species and state variable parameters.
getSteadyState(
simulations,
quantitiesPaths = NULL,
steadyStateTime = NULL,
ignoreIfFormula = TRUE,
lowerThreshold = 1e-15,
simulationRunOptions = NULL
)
simulations |
|
quantitiesPaths |
List of quantity paths (molecules and/or parameters)
for which the steady-state will be simulated. If |
steadyStateTime |
Simulation time (minutes). In |
ignoreIfFormula |
If |
lowerThreshold |
Numerical value (in default unit of the output).
Any steady-state values below this value are considered as numerical noise
and replaced by 0. If |
simulationRunOptions |
Optional instance of a |
The steady-state is considered to be the last values of the molecules amounts and state variable parameters in the simulation with sufficiently long simulation time, i.e., where the rates of the processes do not (significantly) change. The steady-state is NOT analytically calculated or estimated in any other way than simulating for the given time.
A named list, where the names are the IDs of the simulations and the
entries are lists containing paths
and their values
at the end of the
simulation.
simPath <- system.file("extdata", "Aciclovir.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
steadyState <- getSteadyState(simulations = sim)
# Set initial values for steady-state simulations
setQuantityValuesByPath(
quantityPaths = steadyState[[sim$id]]$paths,
values = steadyState[[sim$id]]$values, simulation = sim
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.