nocad.viz.plot_structure_matrix#

nocad.viz.plot_structure_matrix(adj, B=None, C=None, matching=None, order='scc', ax=None, labels=None, title=None, design='path_finding')[source]#

Zero pattern of the system matrix \(\left[\begin{smallmatrix}\mathbf{A}&\mathbf{B}\\ \mathbf{C}&\mathbf{0}\end{smallmatrix}\right]\) in block-triangular order.

Rows are the equations \(\dot x_i\), columns the states \(x_j\). With order="scc" states are sorted by a topological order of the strongly connected components (source components first), so \(\mathbf{A}\) becomes block lower triangular and the diagonal blocks are the components; the entries of the control matching (green rings) form a transversal that, completed by the entries of \(\mathbf{B}\), covers every row: the generic-rank condition of Lin’s theorem. Source blocks are outlined blue (they need a non-zero in \(\mathbf{B}\)), sink blocks vermilion (they need a non-zero in \(\mathbf{C}\)).

Parameters:
B, Carray_like, optional

Input and output matrices; designed by design when omitted.

order{“scc”, “natural”}

Examples using nocad.viz.plot_structure_matrix#

The system matrix in block-triangular order

The system matrix in block-triangular order