set_simulation#
- pharmpy.modeling.set_simulation(model, n=1, seed=64206)[source]#
Change model into simulation model
- Parameters:
model (Model) – Pharmpy model
n (int) – Number of replicates
seed (int) – Random seed for the simulation
- Returns:
Model – Pharmpy model object
Examples
>>> from pharmpy.modeling import * >>> model = load_example_model("pheno") >>> model = set_simulation(model, n=10, seed=1234) >>> steps = model.execution_steps >>> steps[0] SimulationStep(n=10, seed=1234, solver=None, solver_rtol=None, solver_atol=None, tool_options={})