Last chance! 50% off unlimited learning
Sale ends in
Set an initial condition for the ode system
If the initial condition is already set it will be updated. If the initial condition is set to zero at time zero it will be removed (since the default is 0).
set_initial_condition(model, compartment, expression, time = 0)
(model) Pharmpy model object
(Model) Pharmpy model
(str) Name of the compartment
(numeric or str or Expr) The expression of the initial condition
(numeric or str or Expr) Time point. Default 0
if (FALSE) {
model <- load_example_model("pheno")
model <- set_initial_condition(model, "CENTRAL", 10)
get_initial_conditions(model)
}
Run the code above in your browser using DataLab