An input or output variable is bound when it appears in an equation
together with a variable of another subsystem (or through observed
equations with a variable bound further out): it is then internal to
sys. unbound_inputs() are the external inputs a user has to supply.
Usage
is_bound(sys, u)
bound_inputs(sys)
unbound_inputs(sys)
bound_outputs(sys)
unbound_outputs(sys)Examples
t <- t_nounits; D <- D_nounits
u <- Variable("u", t, input = TRUE); x <- Variable("x", t)
inner <- System(list(D(x) ~ -x + u), t, name = "inner")
r <- Variable("r", t)
outer <- System(list(inner$u ~ r, D(r) ~ 0), t, name = "outer", systems = list(inner))
is_bound(outer, outer$inner$u)
#> [1] FALSE
unbound_inputs(inner)
#> [[1]]
#> u(t)
#>