simplify_expression#
- pharmpy.modeling.simplify_expression(model, expr)[source]#
Simplify expression given constraints in model
- Parameters:
model (Model) – Pharmpy model object
expr (TExpr or str) – Expression to simplify
- Returns:
Expression – Simplified expression
Example
>>> from pharmpy.modeling import load_example_model, simplify_expression >>> model = load_example_model("pheno") >>> simplify_expression(model, "Abs(POP_CL)") POP_CL