nocad: network-based controllability and observability analysis ================================================================ .. image:: _static/banner.png :alt: nocad :class: fc-banner **nocad** analyses the controllability and observability of dynamical systems on the network of their state variables. It is the Python successor of the *NOCAD* toolbox for MATLAB and Octave (Leitold, Vathy-Fogarassy and Abonyi) and contains its three modules — network mapping, system characterisation, improvement and robustness — together with an exact minimum-input design, matching-invariant node roles and edge classes, control profiles, and a set of visualization algorithms that show *why* a system is controllable or observable. .. grid:: 1 2 2 3 :gutter: 3 .. grid-item-card:: Input/output design :link: api/design :link-type: doc Maximum matching, path finding, signal sharing and the exact minimum of dedicated inputs; state-space matrices that are controllable and observable. .. grid-item-card:: Structural tests :link: api/structural :link-type: doc Lin's structural controllability test, Kalman and PBH tests, generic dimension of the controllable subspace, control centrality. .. grid-item-card:: Matchings and roles :link: api/matching :link-type: doc Critical, intermittent and redundant nodes; critical, ordinary and redundant edges; enumeration of maximum matchings. .. grid-item-card:: Visualization :link: api/viz :link-type: doc SCC hierarchy, bipartite view, control cacti, block-triangular system matrix, depth maps, operability plane, profiles, heat maps. .. grid-item-card:: System characterisation :link: api/measures :link-type: doc About fifty network, node and edge measures of the MATLAB toolbox, including driver/sensor similarity and endpoint/edge similarity. .. grid-item-card:: Placement and robustness :link: api/placement :link-type: doc Relative degree, set covering, centrality-based retrofit, mCLASA and GDFCMSA; node- and edge-removal robustness. .. grid-item-card:: Connection types :link: api/connection :link-type: doc Self-influence and interactions, the seven connection types and the heat maps of the NOCAD study. .. grid-item-card:: Import, export, annotations :link: interoperability :link-type: doc NetworkX, igraph, pandas, python-control and MATLAB; GraphML, GEXF, Cytoscape, DOT, CSV and Excel files; every node and edge labelled by its role. .. grid-item-card:: Data sets :link: api/datasets :link-type: doc The benchmark networks of the NOCAD study, the C. elegans frontal network, water tanks and heat exchanger networks. .. grid-item-card:: The book :link: book :link-type: doc *Network-Based Controllability and Observability Analysis in Python*: theory, algorithms and every example of the gallery. Quick start ----------- .. code-block:: python import nocad from nocad.datasets import load_nocad_example from nocad.viz import plot_control_cacti, plot_operability_plane adj = load_nocad_example().adj # network of the state variables (A transposed) design = nocad.InputOutputDesign("path_finding").fit(adj) design.driver_nodes_, design.sensor_nodes_ # nodes that need an input / an output A, B, C, D = design.matrices() # a controllable and observable system design.is_controllable(), design.is_observable() plot_control_cacti(adj) # why it is controllable plot_operability_plane(adj, design.driver_nodes_, design.sensor_nodes_) .. toctree:: :maxdepth: 1 :hidden: installation auto_examples/index api/index book interoperability migration citing changelog