Distances and relative degree#

Network distances, relative degree, control and observation depth.

For a linear system the relative degree \(r_{kl}\) of output \(y_k\) with respect to input \(u_l\) is the smallest \(r\) with \(\mathbf{c}_k\mathbf{A}^{r-1}\mathbf{b}_l\neq0\): the number of integrations between the input and the output. In the network of the state variables it is (generically) the length of the shortest path from the driver node of \(u_l\) to the sensor node of \(y_k\) plus one. NOCAD works with the network distance itself, the relative order of the papers, and reduces it by adding driver and sensor nodes.

Two node-level quantities summarize how quickly a state is reached:

  • control depth \(\rho^C_i=\min_{d\in\mathcal{D}}\ell_{di}\): the distance from the nearest driver node;

  • observation depth \(\rho^O_i=\min_{s\in\mathcal{S}}\ell_{is}\): the distance to the nearest sensor node.

The nearest driver (sensor) of every node defines a partition of the network into control regions (observation regions), the network Voronoi cells of the drivers.

Geodesic distances, relative degree, control and observation depth and regions, placement cost.

Functions#

geodesic_distances(adj[, weighted])

Matrix of shortest-path lengths \(\ell_{ij}\) from \(x_i\) to \(x_j\).

all_shortest_paths(adj)

MATLAB allShortestPaths (weighted Dijkstra on the given weights).

diameter(adj)

Longest finite geodesic distance (MATLAB diam).

relative_degree(adj, drivers, sensors[, ...])

Relative degree (order) of a configuration (MATLAB degreeRel).

relative_degree_matrix(adj, drivers, sensors)

Relative degrees \(r_{kl}\) between every sensor (row) and driver (column).

control_depth(adj, drivers)

Distance \(\rho^C_i\) of every state from the nearest driver node (inf if not reachable).

observation_depth(adj, sensors)

Distance \(\rho^O_i\) of every state to the nearest sensor node (inf if it cannot reach one).

control_regions(adj, drivers)

Nearest driver node of every state (-1 if unreachable): network Voronoi cells.

observation_regions(adj, sensors)

Nearest sensor node of every state (-1 if it reaches none).

placement_cost(dist, nodes[, beta])

Cost of a driver or sensor configuration (MATLAB getCost).

control_distance_matrix(A, B)

MATLAB clusterControl: number of derivations \(\ell+1\) needed by driver \(j\) (column) to influence state \(i\) (row); zero for non-drivers and unreachable states.

observation_distance_matrix(A, C)

MATLAB clusterObserve: derivations \(\ell+1\) needed by sensor \(j\) (column) to observe state \(i\) (row); zero for non-sensors and states it cannot see.