nocad.structural.is_controllable#
- nocad.structural.is_controllable(A, B, method='structural', tol=None, random_state=0)[source]#
Controllability of \((\mathbf{A},\mathbf{B})\).
- Parameters:
- method{“structural”, “kalman”, “generic”}
"structural": Lin’s graph test on the zero patterns (exact, fast);"kalman": rank test on the given numerical matrices (controllable subspace);"generic": rank test on a random realization of the patterns.
Examples
>>> A = [[-1, 0], [1, -1]] >>> is_controllable(A, [[1], [0]]), is_controllable(A, [[0], [1]]) (True, False)