Every model has a default solver, the most specific its class allows
(design §4.3, D6): the closed form for a linCmt() model, the matrix
exponential for a linear one of up to 20 compartments, LSODA otherwise.
pmx_ode_method(model) says which a model uses; pmx_ode_method(model, method) returns a copy that uses method. pmx_ode_info() says why.
Examples
m <- pmx_ode_model({
d/dt(central) <- -k * central
})
pmx_ode_method(m)
#> [1] "expm"
pmx_ode_method(pmx_ode_method(m, "lsoda"))
#> [1] "lsoda"