Move bindings of variables to initial conditions
Source:R/misc-api.R
convert_bindings_for_time_independent_system.RdFor a time dependent system, convert_bindings_for_time_independent_system()
moves the bindings of unknowns and observed variables to initial
conditions, as needed to turn the system into a time independent one. The
system is not modified.
Examples
t <- t_nounits; D <- D_nounits
parameters("a = 2"); x <- Variable("x", t, default = 2 * a)
sys <- System(list(D(x) ~ -x), t, name = "s")
convert_bindings_for_time_independent_system(sys)$initial_conditions
#> a => 2
#> x(t) => 2*a