run_simulation#
- pharmpy.tools.run_simulation(model=None, **kwargs)#
Run the simulation tool.
- Parameters:
model (Model) – Pharmpy mode
kwargs – Arguments to pass to tool
- Returns:
SimulationResult – SimulationResults object
Examples
>>> from pharmpy.modeling import * >>> from pharmpy.tools import run_simulation, load_example_modelfit_results >>> model = load_example_model("pheno") >>> model = set_simulation(model, n=10) >>> run_simulations(model)