set_first_order_elimination#

pharmpy.modeling.set_first_order_elimination(model)[source]#

Sets elimination to first order

Parameters:

model (Model) – Pharmpy model

Returns:

Model – Pharmpy model object

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> model = set_first_order_elimination(model)
>>> model.statements.ode_system
Bolus(AMT, admid=1) → CENTRAL
┌───────┐
│CENTRAL│──CL/V→
└───────┘