An analysis point marks a causal connection between an output and one or
more inputs for linear analysis. It is usually created by
connect(out, "name", in) and referred to as sys$name on the
unsimplified model; AnalysisPoint("name") creates an empty point with a
name only. ap_var() returns the variable of one end of a point: the
variable u of a connector, its only unknown, or a causal variable
itself. expand_connections() turns analysis points into ordinary
connections.
Usage
AnalysisPoint(input = NULL, name = NULL, outputs = NULL, verbose = TRUE)
ap_var(x)
Arguments
- input
The output connector (or variable) feeding the point, or a
name when it is the only argument.
- name
The name of the point, a string.
- outputs
A list of input connectors (or variables) it feeds.
- verbose
Warn when the causality looks reversed.
- x
A connector system or a variable.
Value
An AnalysisPoint; ap_var() returns a variable.
Examples
t <- t_nounits
u_out <- Variable("y", t, output = TRUE)
u_in <- Variable("u", t, input = TRUE)
ap <- connect(u_out, "plant_input", u_in)
ap
#> AnalysisPoint(plant_input from y(t) to u(t))
ap_var(ap$input)
#> y(t)