has_mixed_mm_fo_elimination#

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

Check if the model describes mixed Michaelis-Menten and first order elimination

This function relies on heuristics and will not be able to detect all possible ways of coding the mixed Michalis-Menten and first order elimination.

Parameters:

model (Model) – Pharmpy model

Returns:

bool – True if model has describes Michaelis-Menten elimination

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> has_mixed_mm_fo_elimination(model)
False
>>> model = set_mixed_mm_fo_elimination(model)
>>> has_mixed_mm_fo_elimination(model)
True