View source: R/utilities-simulation.R
createSimulationBatch | R Documentation |
SimulationBatch
that can be used to efficiently vary parameters and initial values in a simulationCreates and returns an instance of a SimulationBatch
that can be used to efficiently vary parameters and initial values in a simulation
createSimulationBatch(
simulation,
parametersOrPaths = NULL,
moleculesOrPaths = NULL
)
simulation |
Instance of a |
parametersOrPaths |
Parameter instances (element or vector) typically retrieved using
|
moleculesOrPaths |
Molecule instances (element or vector) typically retrieved using
|
SimulationBatch that can be used to vary parameter values or molecule initial values and run simulation in an optimized manner
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
# Create a simulation batch that will allow batch run for one parameter value
simulationBatch <- createSimulationBatch(sim, "Organism|Liver|Volume")
# Create a simulation batch that will allow batch run for multiple parameter
# values and initial values
simulationBatch <- createSimulationBatch(
sim,
c("Organism|Liver|Volume", "R1|k1"),
c("Organism|Liver|A")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.