1 Introduction

Controllability is one of the fundamental properties of dynamical control systems introduced by Kalman [20]. Various notions of controllability, like state controllability, structural controllability, etc., are introduced in the literature, and controllability conditions are obtained by many authors both for linear and nonlinear systems [10, 14, 19, 21]. The state controllability deals with the ability of the system to steer the system from an arbitrary initial state to a desired final state using suitable control functions, whereas the structural controllability introduced by Lin [22] attempts to set some values to the nonzero parameters in the system matrices such that the resulting system is state controllable in the sense of Kalman. The notion of controllability, whether it is state or structural, has been extensively studied for various types of systems and conditions for controllability have been obtained over the past few decades [17, 24, 26]. Most of these results are for single higher-dimensional control systems. However, in the real-world situation, occurrence of networked control systems is comparatively much larger than that of single stand-alone control systems. In general, modeling complex systems requires a collection of individual systems connected together with an interconnection topology. Controllability of large-scale complex networked systems gives rise to fascinating challenges for various studies. Such studies include different aspects of the systems such as structural complexity, node dynamics, interaction among various nodes, etc. The research on the controllability of networked systems is gaining much attention as it has applications in various fields of science and technology [3, 7, 27].

Many approaches were invoked to study the controllability of a dynamical system over the years. The study of network controllability employs tools like graph theoretic properties of network topology, rank conditions and spectral properties of the system matrices, etc. [1, 12, 18, 23, 29, 30, 39, 41, 42]. The problem of controllability of inter-connected systems dates back to the work of Gilbert [9], followed by the works of Callier and Nahum [5] and Fuhrmann [8]. Representation of complex interconnection structures needed the idea of weighted directed graphs to represent the network topology. By dividing the nodes into leaders and followers, some conditions on network topology were derived by Tanner [31], which ensured the controllability of a group of nodes with a single leader. Hara et al. [13] studied networks in which each node is a copy of the same single-input-single-output (SISO) system and obtained necessary and sufficient conditions for the controllability and observability. Later, Wang et al. [32] addressed the controllability problem of networked multi-input-multi-output (MIMO) systems. They established necessary and sufficient conditions for controllability of homogeneous networked systems that involve solution of certain matrix equations. Based on the above work, Wang et al. [33] further derived a necessary and sufficient condition for the state controllability of a homogeneous networked system where communications are performed through one-dimensional connections. They also discussed the controllability of a homogeneous networked system over some particular network topologies such as trees, cycles. Hao et al. [11] derived necessary and sufficient conditions for the controllability of a MIMO homogeneous LTI networked system where the network topology matrix is diagonalizable. Compared to Wang et al. [32], Hao’s result is easy to verify as it does not involve solving matrix equations.

All the works discussed above considered networked systems having the same dynamics in each node. However, in real-life applications, all nodes need not possess the same dynamics. Zhou [42] studied a networked system where every subsystem is permitted to have different dynamics. A necessary and sufficient condition for the controllability of a heterogeneous networked system was derived from Popov–Belevitch–Hautus (PBH) rank condition by Wang et al. [34]. They also attempted to extend the results obtained by Wang et al. [32] for homogeneous systems to heterogeneous systems. Later, Xiang et al. [36] extended this work and derived a necessary and sufficient condition for the controllability of a particular type of heterogeneous system in terms of some rank conditions. The obtained results are for a system in which the state matrices of the individual nodes are of a special form. Along with the necessary and sufficient conditions for controllability, several other necessary conditions for controllability were also derived based on the properties of the individual nodes. Inspired by this work, some necessary conditions for controllability of heterogeneous systems were derived in Ajayakumar and George [2]. The notion of structural controllability of large-scale networked systems is also studied by many authors [4, 6, 25, 37, 39]. A brief survey of recent advances in the study of controllability of networked linear dynamical systems can be seen in Xiang et al. [35].

Most of the available controllability results for the networked systems are for homogeneous LTI systems. This paper provides necessary and sufficient conditions for the controllability of a heterogeneous system model and discusses the connection between networked topology and the controllability of the whole networked system. Our result generalizes the work of Hao et al. [11], which was for the controllability of homogeneous LTI networked systems, enabling us to extend the scope of study into a larger class of systems. Compared to the result of Xiang et al. [36], the condition in this paper is easier to verify as it does not require solving matrix equations. The paper is organized as follows. Some preliminaries are given in Sect. 2. The controllability problem is formulated in Sect. 3. In Sect. 4, we prove necessary and sufficient condition for the controllability of the heterogeneous networked system formulated in Sect. 3, and some controllability results of the networked system over some specific topologies are also established. The derived results are substantiated with examples. Conclusion and future scope of the work are given in Sect. 5.

2 Preliminaries

In this paper, we make use of the following notations. Let \(\mathbb {R}^{m \times n}\) denotes the set of \(m \times n\) real matrices and by I we denote the identity matrix. Let \(\{ e_1,e_2, \ldots , e_n \}\) be the canonical basis for \(\mathbb {R}^n\). Let \({\textit{diag}} \lbrace a_1,a_2, \ldots ,a_n \rbrace \) denotes diagonal matrix of order n with diagonal entries \( a_1,a_2, \ldots ,a_n \) and \({\textit{uppertriang}} \lbrace a_1,a_2, \ldots ,a_n \rbrace \) denotes an upper triangular matrix of the form

$$\begin{aligned} \begin{bmatrix} a_1 &{}\quad *&{}\quad *&{}\quad \ldots &{}\quad *\\ 0 &{}\quad a_2 &{}\quad *&{}\quad \ldots &{}\quad *\\ 0 &{} \quad 0 &{}\quad a_3 &{}\quad \ldots &{} \quad *\\ \vdots &{} \quad \vdots &{}\quad \vdots &{}\quad \ddots &{} \quad \vdots \\ 0 &{}\quad 0 &{}\quad 0 &{}\quad \ldots &{}\quad a_n \end{bmatrix} \end{aligned}$$

By \({\textit{blockuppertriang}} \lbrace A_1,A_2, \ldots A_n \rbrace \), we denote a block upper triangular matrix of the form

$$\begin{aligned} \begin{bmatrix} A_1 &{}\quad *&{} \quad *&{}\quad \ldots &{} \quad *\\ 0 &{}\quad A_2 &{}\quad *&{}\quad \ldots &{} \quad *\\ 0 &{}\quad 0 &{}\quad A_3 &{}\quad \ldots &{}\quad *\\ \vdots &{}\quad \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ 0 &{}\quad 0 &{} \quad 0 &{}\quad \ldots &{}\quad A_n \end{bmatrix} \end{aligned}$$

where \(A_1,A_2, \ldots ,A_n\) are matrices. Let \(\sigma (A)\) denotes the eigen spectrum of a matrix A.

The following lemmas will be used in the subsequent sections of this paper.

Lemma 1

[15] Let A and B be similar matrices, that is, there exists a nonsingular matrix P such that \(PBP^{-1}=A\). If \(\nu \) is a left eigenvector of A with respect to the eigenvalue \(\lambda \), then \(\nu P\) is an eigenvector of B with respect to the eigenvalue \(\lambda \).

Lemma 2

[16] Let \(A \otimes B\) denotes the Kronecker product of two matrices A and B. We use the following properties of Kronecker product in this paper.

  1. (i)

    \((A \otimes B)(C \otimes D)=(AC \otimes BD)\)

  2. (ii)

    \((A \otimes B)^{-1}=A^{-1} \otimes B^{-1}\) if A and B are invertible.

  3. (iii)

    \((A+B) \otimes C =A \otimes C + B \otimes C\)

  4. (iv)

    \(A \otimes (B+C)= A \otimes B + A \otimes C\)

  5. (v)

    \(A \otimes B =0\) if and only if \(A=0\) or \(B=0\)

Lemma 3

[30] A linear time-invariant control system characterized by the pair of matrices (AB) is controllable if and only if left eigenvectors of A are not orthogonal to columns of B, i.e., \(\nu A=\lambda \nu \) implies that \(\nu B \ne 0\).

3 Model formulation

Consider a heterogeneous networked linear time-invariant system with N nodes, where the ith node is described by the following differential equation:

$$\begin{aligned} \dot{x_i}(t)=A_ix_i(t)+\sum _{j=1}^{N}c_{ij}Hx_j(t)+d_iBu_i(t),\quad i=1,2,\ldots ,N \end{aligned}$$
(1)

where \(x_i(t)\in \mathbb {R}^n\) is the state vector; \(u_i(t) \in \mathbb {R}^m \) is the external control vector; \(A_i\in \mathbb {R}^{n \times n}\) is the state matrix of node \(v_i\); \( B \in \mathbb {R}^{n \times m}\) is the control matrix, with \(d_i=1\) if node \(v_i\) is under control, otherwise \(d_i=0\). \(c_{ij} \in \mathbb {R}\) represents the coupling strength between the nodes \(v_i\) and \(v_j\) with \(c_{ij} \ne 0\) if there is a communication from node \(v_j\) to node \(v_i\), otherwise \(c_{ij}=0\), \(i,j=1,2,\ldots ,N \) and \(H\in \mathbb {R}^{n\times n}\) is the inner coupling matrix describing the interconnections among the states \(x_j,j=1,2, \ldots ,N\) of the nodes.

Let

$$\begin{aligned} C=\left[ c_{ij} \right] \in \mathbb {R}^{N \times N}\quad \textrm{and} \quad D={\textit{diag}} \lbrace d_1,d_2, \ldots ,d_N \rbrace \end{aligned}$$
(2)

denote the network topology and external input channels of networked system (1), respectively. Denote the whole state of the networked system by \(X=\left[ x_1^T,\ldots ,x_N^T \right] ^T \) and the total external control input vector by \(U=\left[ u_1^T,\ldots ,u_N^T \right] ^T\).

Now, using the Kronecker product notation, networked system (1) can be reduced into the following compact form:

$$\begin{aligned} \dot{X}(t)=F X(t)+ GU(t) \end{aligned}$$
(3)

where

$$\begin{aligned} F=A+C\otimes H ,\; G=D\otimes B \end{aligned}$$
(4)

and \(A={\textit{blockdiag}}\lbrace A_1,A_2,\ldots ,A_N \rbrace \).

If the state node matrices \(A_1,A_2, \ldots ,A_N\) are identical, that is, \(A_i=\tilde{A}\), then system (1) becomes a homogeneous networked system. Hao et al. [11] have proved the following necessary and sufficient condition for controllability of such homogeneous networked systems.

Theorem 1

[11] Consider a homogeneous networked system with a diagonalizable network topology matrix C. Let \(\sigma (C) =\{ \lambda _1 , \lambda _2, \ldots , \lambda _N \} \). Then networked system (1) is controllable if and only if the following conditions are satisfied.

  1. (i)

    (CD) is controllable;

  2. (ii)

    \((\tilde{A}+\lambda _i H,B)\) is controllable, for \(i=1,2,\ldots ,N\); and

  3. (iii)

    If matrices \(\tilde{A}+\lambda _{i_1}H ,\ldots , \tilde{A}+\lambda _{i_p}H \left( \lambda _{i_k} \in \sigma (C),\ for\ k=1, \ldots ,p,\ p>1\right) \) have a common eigenvalue \(\rho \), then \((t_{i_1}D) \otimes (\xi _{i_1}^1B), \ldots , (t_{i_1}D) \otimes (\xi _{i_1}^{\gamma _{i_1}}B), \ldots ,(t_{i_p}D) \otimes (\xi _{i_p}^1B), \ldots ,(t_{i_p}D) \otimes (\xi _{i_p}^{\gamma _{i_p}}B)\) are linearly independent, where \(t_{i_k}\) is the left eigenvector of C corresponding to the eigenvalue \(\lambda _{i_k}\); \(\gamma _{i_k} \ge 1\) is the geometric multiplicity of \(\rho \) for \(A+\lambda _{i_k}H;\xi _{i_k}^l(l=1, \ldots , \gamma _{i_k})\) are the left eigenvectors of \(A+\lambda _{i_k}H\) corresponding to \(\rho , k=1,\ldots ,p\).

In this paper, we will relax the diagonalizability condition of the network topology matrix C for the homogeneous system and also we derive necessary and sufficient condition for heterogeneous system under more relaxed condition on the network topology.

4 Main results

4.1 Controllability in a general network topology

In this section, we investigate the controllability of (3) under certain network topologies. Suppose that the network topology matrix C is triangularizable. That is, there exists a nonsingular matrix T such that \(TCT^{-1}=J\), where \(J={\textit{uppertriang}}\lbrace \lambda _1,\lambda _2,\ldots ,\lambda _N \rbrace \) is the Jordan Canonical Form of C. Let \(\sigma (A_i + \lambda _i H)=\lbrace \mu _i^1, \ldots ,\mu _i^{q_i} \rbrace \) denotes the set of eigenvalues of \(A_i + \lambda _i H ,i=1,2,\ldots ,N\) and \(\xi _{ij}^k,k=1,\ldots , \gamma _{ij}\) be the left eigenvectors of \(A_i+ \lambda _iH\) corresponding to \(\mu _i^j,j=1,\ldots ,q_i ,i=1,\ldots ,N\), where \(\gamma _{ij} \ge 1\) is the geometric multiplicity of the eigenvalue \(\mu _i^j\).

We investigate the controllability of original system (1) in terms of the eigenvalues and left eigenvectors of the matrix F in compact form (3). When the network topology matrix C is triangularizable with triangularizing matrix T and if \(T \otimes I\) commutes with A, we characterize the eigenvalues and left eigenvectors of F in terms of the eigenvalues and left eigenvectors of \(A_i+ \lambda _i H,\; i=1,2,\ldots , N\) as shown in the following theorem.

Theorem 2

Let T be the triangularizing matrix for the network topology matrix C and suppose \(T \otimes I\) commutes with A. Let \((\mu _i^j , \xi _{ij}^k)\) denotes the left eigenpair of \(A_i + \lambda _iH\). Then the following statements hold true.

  1. (i)

    The eigenspectrum of F is the union of eigenspectrum of \(A_i + \lambda _i H\), where \( i=1,2,\ldots ,N\). That is,

    $$\begin{aligned} \sigma (F) = \cup _{i=1}^N \sigma (A_i + \lambda _i H)= \left\{ \mu _1^1, \ldots ,\mu _1^{q_1},\ldots ,\mu _N^1, \ldots ,\mu _N^{q_N} \right\} \end{aligned}$$
  2. (ii)

    If J is a diagonal matrix, then \(e_iT \otimes \xi _{ij}^k,k=1,\ldots , \gamma _{ij}\) are the left eigenvectors of F corresponding to the eigenvalue \(\mu _i^j,j=1,\ldots ,q_i ,i=1,\ldots ,N\).

  3. (iii)

    If J contains a Jordan block of order \(l\ge 2\) for some eigenvalue \(\lambda _{i_0}\) of C with \(\xi _{ij}^kH=0\) for all \(i=i_0,i_0+1,\ldots ,i_0+l-1,j=1,2,\ldots ,q_i, k=1,2,\ldots , \gamma _{ij}\), then \(e_{i}T \otimes \xi _{ij}^k,k=1,\ldots , \gamma _{ij}\) are the left eigenvectors of F corresponding to the eigenvalue \(\mu _{i}^{j}, i=1,2,\ldots ,N,j=1,2,\ldots ,q_i\).

Proof

  1. (i)

    By hypothesis, T is a nonsingular matrix such that \(TCT^{-1}=J\), where \(J={\textit{uppertriang}}\lbrace \lambda _1,\lambda _2,\ldots ,\lambda _N \rbrace \) is the Jordan Canonical Form of C. Let

    $$\begin{aligned} \tilde{F}=(T \otimes I)F(T^{-1} \otimes I)=(T \otimes I)(A+C \otimes H)(T^{-1} \otimes I) \end{aligned}$$

    As \(T \otimes I\) commutes with A, we have

    $$\begin{aligned} \tilde{F}&=A(T \otimes I)(T^{-1} \otimes I)+(T \otimes I)(C \otimes H)(T^{-1} \otimes I) \\&= A+(TCT^{-1} \otimes H) \\&= A+J \otimes H \\&= A+{\textit{uppertriang}}\lbrace \lambda _1,\lambda _2,\ldots ,\lambda _N \rbrace \otimes H \\&= {\textit{blockuppertriang}} \lbrace A_1+\lambda _1 H, \ldots ,A_N +\lambda _N H\rbrace \end{aligned}$$

    Since \(\tilde{F}\) and F have same eigenvalues, we get

    $$\begin{aligned} \sigma (F) =\lbrace \mu _1^1, \ldots ,\mu _1^{q_1},\ldots ,\mu _N^1, \ldots ,\mu _N^{q_N} \rbrace \end{aligned}$$
  2. (ii)

    Let \(\xi _{ij}^k,k=1,\ldots , \gamma _{ij}\) be the left eigenvectors of \(A_i+ \lambda _iH\) corresponding to \(\mu _i^j,j=1,\ldots ,q_i ,i=1,\ldots ,N\). If J is a diagonal matrix, \(\tilde{F}\) is a block diagonal matrix and hence \(e_i \otimes \xi _{ij}^k,k=1,\ldots , \gamma _{ij}\) are left eigenvectors of \(\tilde{F} \) corresponding to \(\mu _i^j,j=1,\ldots ,q_i ,i=1,\ldots ,N\).

  3. (iii)

    Suppose that J contains a Jordan block of order 2, corresponding to the eigenvalue \(\lambda _{i_0}\) of C. Then the matrix \(\tilde{F}\) contains the block matrix of the form

    $$\begin{aligned} \mathcal {A}= \begin{bmatrix} A_{i_0}+\lambda _{i_0}H &{}\quad H \\ 0 &{}\quad A_{i_0+1}+ \lambda _{i_0+1}H \end{bmatrix} \end{aligned}$$
    (5)

    It follows easily that, \(e_{i_0+1} \otimes \xi _{i_0+1j}^{k},k=1,2, \ldots , \gamma _{i_0+1j}\) are eigenvectors of \(\tilde{F}\) corresponding to the eigenvalues \(\mu _{i_0+1}^j,j=1,2,\ldots ,q_{i_0+1}\). If \(\xi _{i_0j_0}^kH=0\) for all \(k=1,2,\ldots , \gamma _{i_0j_0}\), then \(e_{i_0}\otimes \xi _{i_0j_0}^k,k=1,2,\ldots , \gamma _{i_0j_0}\) are left eigenvectors of \(\tilde{F}\) corresponding to the eigenvalue \(\mu _{i_0}^{j_0}\). Now suppose that J contains a Jordan block of order \(l\ge 2\) for some eigenvalue \(\lambda _{i_0}\) of C, then again we can consider \((l-1)\) block matrices of form (5) and by using the fact that \(\xi _{ij}^kH=0\) for all \(i=i_0,i_0+1,\ldots ,i_0+l-1,j=1,2,\ldots ,q_i, k=1,2,\ldots , \gamma _{ij}\) we get \( e_i \otimes \xi _{ij}^k,k=1,2,\ldots , \gamma _{ij}\) are left eigenvectors of \(\tilde{F}\) corresponding to the eigenvalue \(\mu _i^j,i=1,2,\ldots ,N,j=1,2,\ldots ,q_i\). We will prove that these are the only eigenvectors of \(\tilde{F}\). Suppose that \(\tilde{F}\) does not have any Jordan blocks and let \(\xi = \begin{bmatrix} \xi _1&\xi _2&\ldots&\xi _N \end{bmatrix} \in \mathbb {R}^{Nn}\) be a left eigenvector of \(\tilde{F}\) corresponding to the eigenvalue \(\mu \), where \( \xi _1 , \xi _2 , \ldots , \xi _N \in \mathbb {R}^{n}\). Then \(\xi ^T \tilde{F} = \mu \xi ^T\) implies that

    $$ \begin{bmatrix} \xi _1 \left( A_1+\lambda _1 H \right) \\ \xi _2 \left( A_2+\lambda _2 H \right) \\ \vdots \\ \xi _N \left( A_N+\lambda _N H \right) \end{bmatrix}^T = \mu \begin{bmatrix} \xi _1 \\ \xi _2 \\ \vdots \\ \xi _N \end{bmatrix}^T $$

    This in turn implies that \(\mu \) is an eigenvalue of \(A_i+\lambda _i H\) for all i with \(\xi _i\) as an eigenvector. Suppose that \(\tilde{F}\) has a block of type (5). Then \(\xi ^T \tilde{F} = \mu \xi ^T\) implies that

    $$\begin{aligned} \begin{bmatrix} \xi _1 \left( A_1+\lambda _1 H \right) \\ \vdots \\ \xi _i \left( A_i+\lambda _i H \right) \\ \xi _iH+ \xi _{i+1}H \left( A_2+\lambda _2 H \right) \\ \vdots \\ \xi _1 \left( A_N+\lambda _N H \right) \end{bmatrix}^T = \mu \begin{bmatrix} \xi _1 \\ \vdots \\ \xi _i \\ \xi _{i+1} \\ \vdots \\ \xi _N \end{bmatrix}^T \end{aligned}$$

    As \(\xi _i \left( A_i+\lambda _i H \right) = \mu \xi _i\), \(\xi _i\) is a left eigenvector of \( A_i+\lambda _i H \). Then by our hypothesis, \(\xi _iH=0\). Hence \(\mu \) is an eigenvalue of \(A_i+\lambda _i H\) for all i with \(\xi \) as an eigenvector. Thus, if \(A_i+\lambda _i H,i=1,2,\ldots ,N\) does not have a common eigenvalue, then the left eigenvectors of \(\tilde{F}\) are of the form \(e_i \otimes \xi \), where \(\xi \) is a left eigenvector of \(A_i + \lambda _i H\) for some i. If they have a common eigenvalue, the eigenvectors are either of the form \(e_i \otimes \xi \), where \(\xi \) is a left eigenvector of \(A_i + \lambda _i H\) for some i or of the form \(\sum _{\alpha =1}^r e_{i_{\alpha }} \otimes \xi _{i_{\alpha }} \), where \(A_i + \lambda _i H,i \in \lbrace i_1,i_2, \ldots ,i_r \rbrace \) have a common eigenvalue \(\mu \) with eigenvector \(\xi _{i_{\alpha }}\) for each \(i_1,i_2, \ldots ,i_r\). Thus in both cases, by Lemma 2(i) and Lemma 1, \(\left( e_i \otimes \xi _{ij}^k\right) \left( T \otimes I \right) = e_iT \otimes \xi _{ij}^k(k=1,\ldots , \gamma _{ij})\) are the left eigenvectors of F corresponding to \(\mu _i^j,j=1,\ldots ,q_i ,i=1,\ldots ,N\). \(\square \)

Using the above result, we will prove the following necessary and sufficient conditions for controllability of heterogeneous networked system (3).

Theorem 3

Let T be a nonsingular matrix triangularizing matrix C such that \(T \otimes I\) commutes with A. If J contains a Jordan block of order \(l\ge 2\) corresponding to the eigenvalue \(\lambda _{i_0}\) of C, then assume that \(\xi _{ij}^kH=0\) for all \(i=i_0,i_0+1,\ldots ,i_0+l-1,j=1,2,\ldots ,q_i, k=1,2,\ldots , \gamma _{ij}\), where \(\xi _{ij}^k,i=1,2,\ldots ,N,j=1,2,\ldots ,q_i,k=1,2,\ldots ,\gamma _{ij}\) are the left eigenvectors of \(A_i+\lambda _iH\) corresponding to the eigenvalues \(\mu _i^j,i=1,2,\ldots ,N,j=1,2,\ldots ,q_i\). Then networked system (3) is controllable if and only if

  1. (i)

    \(e_iTD \ne 0\) for all \(i=1,\ldots ,N\)

  2. (ii)

    \((A_i+\lambda _i H,B)\) is controllable, for \(i=1,2,\ldots ,N\); and

  3. (iii)

    If matrices \(A_{i_1}+\lambda _{i_1}H , A_{i_2}+\lambda _{i_2}H ,\ldots , A_{i_p}+\lambda _{i_p}H(\lambda _{i_k} \in \sigma (C), k=1, \ldots ,p,\, where\, p>1)\) have a common eigenvalue \(\sigma \), then \((e_{i_1}TD) \otimes (\xi _{i_1}^1B), \ldots ,(e_{i_1}TD) \otimes (\xi _{i_1}^{\gamma _{i_1}}B), \ldots ,(e_{i_p}TD) \otimes (\xi _{i_p}^1B), \ldots ,(e_{i_p}TD) \otimes (\xi _{i_p}^{\gamma _{i_p}}B)\) are linearly independent vectors, where \(\gamma _{i_k} \ge 1\) is the geometric multiplicity of \(\sigma \) for \(A_{i_k}+\lambda _{i_k}H\) and \(\xi _{i_k}^l(l=1, \ldots , \gamma _{i_k})\) are the left eigenvectors of \(A_{i_k}+\lambda _{i_k}H\) corresponding to \(\sigma , k=1,\ldots ,p\).

Proof

(Necessary part) From Theorem 2 it follows that \(e_iT \otimes \xi _{ij}^k(k=1,\ldots , \gamma _{ij})\) are left eigenvectors of F corresponding to \(\mu _i^j,j=1,\ldots ,q_i ,i=1,\ldots ,N\). If networked system (3) is controllable, then

$$\begin{aligned} (e_iT \otimes \xi _{ij}^l)(D \otimes B)\ne 0,\quad \textrm{for}\quad l=1,\ldots , \gamma _{ij},j=1,\ldots ,q_i ,i=1,\ldots , N \end{aligned}$$

which implies that

$$\begin{aligned} e_iTD \ne 0,\quad i=1,\ldots ,N, \end{aligned}$$

and

$$\begin{aligned} \xi _{ij}^lB \ne 0,\quad \textrm{for} \quad l=1,\ldots , \gamma _{ij},j=1,\ldots ,q_i ,i=1,\ldots , N \end{aligned}$$

Since \(\xi _{ij}^l \) is an arbitrary left eigenvector of \(A_i +\lambda _i H\), the controllability of \((A_i +\lambda _i H,B)\), for \(i=1,\ldots ,N\) follows.

Assume that the matrices \(A_{i_1}+\lambda _{i_1}H ,\ldots , A_{i_p}+\lambda _{i_p}H (\lambda _{i_k} \in \sigma (C),k=1, \ldots ,p,\; \textrm{where}\; p>1)\) have a common eigenvalue \(\sigma \). Then all the left eigenvectors of F corresponding to \(\sigma \) can be expressed in the form of \(\sum _{k=1}^p\sum _{l=1}^{\gamma _{i_k}}\alpha _{kl}(e_{i_k}T \otimes \xi _{i_k}^l)\), where \(\alpha _{kl} \in \mathbb {R}(k=1,\ldots ,p,l=1,\ldots ,\gamma _{i_k})\) are scalars, not all are zero and \(\xi _{i_k}^1,\ldots ,\xi _{i_k}^{\gamma _{i_k}},\) are the eigenvectors of \(A_{i_k}+\lambda _{i_k}H\) corresponding to the eigenvalue \(\sigma \), where \(k=1, \ldots ,p\). If the networked system is controllable, then

$$\begin{aligned} \left[ \sum _{k=1}^p\sum _{l=1}^{\gamma _{i_k}}\alpha _{kl}(e_{i_k}T \otimes \xi _{i_k}^l)\right] (D \otimes B) \ne 0 \end{aligned}$$

Consequently, we have

$$\begin{aligned} \sum _{k=1}^p\sum _{l=1}^{\gamma _{ik}}\alpha _{kl}(e_{i_k}TD)\otimes (\xi _{ik}^lB)\ne 0 \end{aligned}$$

for any scalars \(\alpha _{kl} \in \mathbb {R}(k=1,\ldots ,p,l=1,\ldots ,\gamma _{ik})\), not all of them are zero. Therefore, \((e_{i1}TD) \otimes (\xi _{i1}^1B), \ldots ,(e_{i1}TD) \otimes (\xi _{i1}^{\gamma _{i1}}B), \ldots ,(e_{ip}TD) \otimes (\xi _{ip}^1B), \ldots ,(e_{ip}TD) \otimes (\xi _{ip}^{\gamma _{ip}}B)\) are linearly independent vectors in \(\mathbb {R}^{Nn}\).

(Sufficiency part) Suppose that the networked system is uncontrollable, then we will prove that at least one condition in Theorem 1 does not hold. If the networked system is not controllable, then there exists a left eigenpair of F, denoted as \((\tilde{\mu },\tilde{v})\), such that \(\tilde{v}G=0\).

If \(\tilde{\mu } \in \sigma (A_{i_0}+\lambda _{i_0}H) \) and \(\tilde{\mu } \notin \sigma (A_{1}+\lambda _{1}H) \cup \ldots \cup \sigma (A_{i_0-1}+\lambda _{i_0-1}H)\cup \sigma (A_{i_0+1}+\lambda _{i_0+1}H)\cup \ldots \cup \sigma (A_{i_N}+\lambda _{i_N}H)\). Again \(\tilde{v}\) can be written as a linear combination, \(\tilde{v}=\sum _{l=1}^{\gamma _{{i_0}_{j_0}}}\alpha _0^l(e_{i_0}T\otimes \xi _{{i_0}_{j_0}}^l)\), where \(\xi _{{i_0}_{j_0}}^1,\ldots ,\xi _{{i_0}_{j_0}}^{\gamma _{{i_0}_{j_0}}}\) of left eigenvectors of \(A_{i_0}+\lambda _{i_0}H\) corresponding to \(\tilde{\mu }\), where \(\left[ \alpha _0^1,\ldots ,\alpha _0^{\gamma _{{i_0}_{j_0}}} \right] \) is some nonzero vector. Now \(\tilde{v}G=0\) implies

$$\begin{aligned} \sum _{l=1}^{\gamma _{{i_0}_{j_0}}}\alpha _0^l(e_{i_0}T\otimes \xi _{{i_0}_{j_0}}^l)(D \otimes B)&=\sum _{l=1}^{\gamma _{{i_0}_{j_0}}}\alpha _0^l(e_{i_0}TD)\otimes (\xi _{{i_0}_{j_0}}^lB)\\&=(e_{i_0}TD) \otimes \left( \sum _{l=1}^{\gamma _{{i_0}_{j_0}}}\alpha _0^l\xi _{{i_0}_{j_0}}^lB \right) =0 \end{aligned}$$

This implies that \(e_{i_0}TD=0\) or \( \sum _{l=1}^{\gamma _{{i_0}_{j_0}}}\alpha _0^l\xi _{{i_0}_{j_0}}^lB=0\). If \(\sum _{l=1}^{\gamma _{{i_0}_{j_0}}}\alpha _0^l\xi _{{i_0}_{j_0}}^lB=0\), then \(\left( A_{i_0}+ \lambda _{i_0}H,B \right) \) is uncontrollable as \( \sum _{l=1}^{\gamma _{{i_0}_{j_0}}}\alpha _0^l\xi _{{i_0}_{j_0}}^l\) is a left eigenvector of \(A_{i_0}+ \lambda _{i_0}H\). Thus, if the networked system is uncontrollable, then either there exists \(\lambda _{i_0} \in \sigma (C)\) such that \(\left( A_{i_0}+ \lambda _{i_0}H,B \right) \) is uncontrollable or \(e_{i_0}TD=0\) for some \(i_0\).

Let \(\tilde{\mu }\) be the common eigenvalue of the matrices \(A_{i_1}+\lambda _{i_1}H,\ldots ,A_{i_p}+\lambda _{i_p}H(\lambda _{i_k} \in \sigma (C),\; \textrm{for}\; k=1, \ldots ,p, p>1)\) and the corresponding eigenvectors of \(A_{i_k}+\lambda _{i_k}\) are \(\xi _{i_k}^1,\ldots ,\xi _{i_k}^{\gamma _{i_k}}\), where \(k=1,\ldots ,p\). Since \(\tilde{v}\) can be expressed in the form \(\sum _{k=1}^p\sum _{l=1}^{\gamma _{i_k}}\alpha _0^{kl}\left( e_{i_k}T \otimes \xi _{ik}^l\right) \), where \(\alpha _0^{kl}(l=1,\ldots ,\gamma _{i_k},k=1,\ldots ,p)\) are some scalars, which are not all zero. Then \(\tilde{v}G=0\) implies that there exists a nonzero vector \(\left[ \alpha _0^{11}, \ldots ,\alpha _0^{1\gamma _{i_1}}, \ldots ,\alpha _0^{p1}, \ldots ,\alpha _0^{p\gamma _{i_p}}\right] \) such that

$$\begin{aligned} \left[ \sum _{k=1}^p\sum _{l=1}^{\gamma _{i_k}}\alpha _0^{kl}\left( e_{i_k}T \otimes \xi _{i_k}^l\right) \right] (D\otimes B)=\sum _{k=1}^p\sum _{l=1}^{\gamma _{i_k}}\alpha _0^{kl}\left[ (e_{i_k}TD) \otimes (\xi _{i_k}^lB) \right] =0 \end{aligned}$$

This implies that \((e_{i_1}TD) \otimes (\xi _{i_1}^1B), \ldots ,(e_{i_1}TD) \otimes (\xi _{i_1}^{\gamma _{i_1}}B), \ldots ,(e_{i_p}TD) \otimes (\xi _{i_p}^1B), \ldots ,(e_{i_p}TD) \otimes (\xi _{i_p}^{\gamma _{i_p}}B)\) are linearly dependent.

Therefore, if the networked system is uncontrollable, then at least one condition in Theorem 3 does not hold, true. \(\square \)

The following examples demonstrate the application of the result for testing controllability of heterogeneous networked systems.

Example 1

Consider a heterogeneous networked system as shown in Fig. 1 composed of 3 nodes in which two nodes are identical. The state matrices of each node \((A_1,A_2,A_3)\), control matrix B, inner coupling matrix H and the network topology matrix C are given by

$$\begin{aligned} A_1&=A_3=\begin{bmatrix} 1 &{}\quad -1 &{}\quad 1 \\ -1 &{}\quad 1 &{} \quad 0 \\ 1 &{} \quad 1 &{}\quad 1 \end{bmatrix},A_2=\begin{bmatrix} 1 &{}\quad 0 &{}\quad 0 \\ -1 &{}\quad 1 &{}\quad 0 \\ 0 &{}\quad 0 &{}\quad 1 \end{bmatrix},B=\begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix}, H=\begin{bmatrix} 0 &{}\quad 1 &{}\quad 0 \\ 1 &{}\quad 0 &{}\quad 1 \\ 0 &{}\quad 0 &{} \quad 0 \end{bmatrix},\nonumber \\ C&=\begin{bmatrix} 0 &{} \quad 0 &{}\quad 1 \\ 0 &{} \quad 1 &{} \quad 1 \\ 0 &{} \quad 0 &{}\quad 1 \end{bmatrix} \end{aligned}$$
(6)
Fig. 1
figure 1

Controllable heterogeneous networked system with triangularizable network topology C and node dynamics as given in (6)

As all the nodes have control input, the external control input matrix, \(D=\begin{bmatrix} 1 &{}\quad 0 &{}\quad 0 \\ 0 &{}\quad 1 &{}\quad 0 \\ 0 &{}\quad 0 &{}\quad 1 \end{bmatrix}\).

For the network topology matrix C, there exists a nonsingular matrix \(T=\begin{bmatrix} 1 &{} 0 &{} -1 \\ 0 &{} 1 &{} 0 \\ 0 &{} 0 &{} 1 \end{bmatrix}\) such that \(TCT^{-1}=J\), where \(J=\begin{bmatrix} 0 &{} 0 &{} 0 \\ 0 &{} 1 &{} 1 \\ 0 &{} 0 &{} 1 \end{bmatrix}\). Clearly, \(T \otimes I\) commutes with A. J contains a Jordan block of order 2 and the eigenvalues of C are \(\lambda _1=0 ,\lambda _2=1\) and \(\lambda _3=1\). Observe that \(\xi _2^1 = \begin{bmatrix} 0&0&1 \end{bmatrix} \) is the only left eigenvector corresponding to the eigenvalue 1 of matrix \(A_2+H\) and it satisfies \(\xi _2^1H=0\). Then, we can easily verify the following:

  1. (i)

    As \(TD=T=\begin{bmatrix} 1 &{} 0 &{} -1 \\ 0 &{} 1 &{} 0 \\ 0 &{} 0 &{} 1 \end{bmatrix}\), \(e_iTD \ne 0\) for all \(i=1,2,3\).

  2. (ii)

    \((A_1,B),(A_2+H,B)\) and \((A_3+H,B)\) are controllable.

  3. (iii)

    \(\sigma =1 \) is a common eigenvalue of the matrices \(A_2+H\) and \(A_3+H\) have with left eigenvectors \(\xi _2^1 = \begin{bmatrix} 0&0&1 \end{bmatrix} \) and \(\xi _3^1 = \begin{bmatrix} 1&-1&0 \end{bmatrix} \), respectively. Also, the vectors \(e_2TD \otimes \xi _2^1 B=\begin{bmatrix} 0&1&0 \end{bmatrix} \) and \(e_3TD \otimes \xi _3^1 B=\begin{bmatrix} 0&0&-1 \end{bmatrix} \) are linearly independent vectors.

As all the conditions (i)–(iii) of Theorem 3 are verified, the heterogeneous networked system is controllable.

Example 2

Consider a heterogeneous networked system shown in Fig. 2, which is composed of 3 nodes in which two nodes are identical. Let

$$\begin{aligned} A_1&=\begin{bmatrix} 0 &{}\quad 0 &{}\quad 0 \\ 0 &{} \quad 1 &{}\quad -2 \\ 0 &{}\quad 0 &{}\quad -1 \end{bmatrix},A_2=A_3=\begin{bmatrix} 0 &{}\quad 1 &{}\quad 1 \\ 2 &{}\quad 1 &{}\quad -1 \\ 0 &{}\quad 2 &{}\quad -1 \end{bmatrix},B=\begin{bmatrix} 1 \\ 1 \\ 0 \end{bmatrix}, H=\begin{bmatrix} 1 &{}\quad 1 &{}\quad 0 \\ 0 &{}\quad 1 &{}\quad 1 \\ 0 &{}\quad 1 &{}\quad 1 \end{bmatrix},\nonumber \\ C&=\begin{bmatrix} 1 &{}\quad 1 &{}\quad 1 \\ 0 &{}\quad 0 &{}\quad 1 \\ 0 &{}\quad 1 &{}\quad 0 \end{bmatrix} and D =\begin{bmatrix} 1 &{}\quad 0 &{}\quad 0 \\ 0 &{}\quad 1 &{}\quad 0 \\ 0 &{}\quad 0 &{}\quad 0 \end{bmatrix} \end{aligned}$$
(7)

.

Fig. 2
figure 2

Controllable heterogeneous networked system with triangularizable network topology C and node dynamics as in (7)

We observe that, for the network topology matrix C, there exists a triangularizing nonsingular matrix \(T=\begin{bmatrix} 1 &{} 0 &{} 0 \\ 0 &{} 1 &{} 1 \\ 0 &{} \frac{1}{2} &{} -\frac{1}{2} \end{bmatrix}\) such that \(TCT^{-1}=J\), where \(J=\begin{bmatrix} 1 &{} 1 &{} 0 \\ 0 &{} 1 &{} 0 \\ 0 &{} 0 &{} -1 \end{bmatrix}\). J contains a Jordan block of order 2 and \(T \otimes I\) commutes with A. The eigenvalues of C are, \(\lambda _1=1 ,\lambda _2=1\) and \(\lambda _3=-1\). Observe that \(\xi _{11}^1 = \begin{bmatrix} 0&1&-1 \end{bmatrix} \) is the only left eigenvector corresponding to the matrix \(A_1+H\) and \(\xi _{11}^1H=0\). Further, we can verify that

  1. (i)

    \(e_iTD \ne 0\) for all \(i=1,2,3\).

  2. (ii)

    \((A_1+H,B),(A_2+H,B)\) and \((A_3-H,B)\) are controllable.

  3. (iii)

    As the matrices \(A_1+H\),\(A_2+H\) and \(A_3-H\) do not have a common eigenvalue, the condition (iii) in Theorem 3 is satisfied.

Thus all the conditions (i)–(iii) of Theorem 3 are verified. Hence, the heterogeneous system is controllable.

Now, we give an example of a controllable networked system having heterogeneous dynamics with diagonalizable network topology matrix.

Example 3

Consider a heterogeneous network system composed of 3 nodes in which two nodes are identical, where \(A_1=\begin{bmatrix} 0 &{} 1 &{} 0 \\ 0 &{} 0 &{} 1 \\ 0 &{} 0 &{} 1 \end{bmatrix},A_2=A_3=\begin{bmatrix} 0 &{} 1 &{} 0 \\ 0 &{} 0 &{} 1 \\ 0 &{} 0 &{} 0 \end{bmatrix},B=\begin{bmatrix} 1 \\ 0 \\ 1 \end{bmatrix}, H=\begin{bmatrix} 1 &{} 0 &{} 0 \\ 0 &{} 1 &{} 0 \\ 0 &{} 0 &{} 1 \end{bmatrix}, C=\begin{bmatrix} 1 &{} 0 &{} 0 \\ 0 &{} 1 &{} 0 \\ 0 &{} 1 &{} 0 \end{bmatrix}\) and \(D=\begin{bmatrix} 1 &{} 0 &{} 0 \\ 0 &{} 1 &{} 0 \\ 0 &{} 0 &{} 0 \end{bmatrix}\). There exists a nonsingular matrix \(T=\begin{bmatrix} 1 &{} 0 &{} 0 \\ 0 &{} -1 &{} 1 \\ 0 &{} \sqrt{2} &{} 0 \end{bmatrix}\) such that \(TCT^{-1}=\begin{bmatrix} 1 &{} 0 &{} 0 \\ 0 &{} 0 &{} 0 \\ 0 &{} 0 &{} 1 \end{bmatrix}=J\). J has no Jordan block of order \(\ge 2\) and \(T \otimes I\) commutes with A. \(\lambda _1=1 ,\lambda _2=0\) and \(\lambda _3=1\) are the eigenvalues of C. Also,

  1. (i)

    \(e_iTD \ne 0\) for all \(i=1,2,3\).

  2. (ii)

    \((A_1+H,B),(A_2,B)\) and \((A_3+H,B)\) are controllable.

  3. (iii)

    The matrices \(A_1+H\) and \(A_3+H\) have a common eigenvalue 1 with left eigenvectors \(\xi _1^1 = \begin{bmatrix} 0&1&-1 \end{bmatrix} \) and \(\xi _3^1 = \begin{bmatrix} 0&0&1 \end{bmatrix} \), respectively. Further, \(e_1TD \otimes \xi _1^1 B=\begin{bmatrix} -1&0&0 \end{bmatrix} \) and \(e_3TD \otimes \xi _3^1 B=\begin{bmatrix} 0&\sqrt{2}&0 \end{bmatrix} \) are linearly independent vectors.

Thus, all the conditions (i)–(iii) of Theorem 3 are verified. Hence, the heterogeneous network system is controllable.

This approach enables as to find the nodes to which a control can be applied to make an uncontrollable system to a controllable system.

Remark 1

If \(e_iTD=0\) for some \(i=1,2,\ldots ,N\), then the given system is not controllable. For, we have, \(e_iT \otimes \xi _{ij}^k(k=1,\ldots , \gamma _{ij})\) are left eigenvectors of F corresponding to \(\mu _i^j,j=1,\ldots ,q_i ,i=1,\ldots ,N\). If \(e_iTD=0\) for some i, say \(i_0\), then \((e_{i_0}T \otimes \xi _{{i_0}_j}^k)(D \otimes B)=(e_{i_0}TD \otimes \xi _{{i_0}_j}^kB)=0\) for all \(j=1,2,\ldots ,q_{i_0},k=1,2,\ldots , \gamma _{i_0j}\). Then by Lemma 3, the given system is not controllable.

Now we may be able to modify the external input matrix D, so that \(e_iTD \ne 0,i=1, \ldots , N\) as shown in the following example.

Example 4

Consider a homogeneous network system composed of 3 nodes, where

$$\begin{aligned} A_1&=A_2=A_3= \begin{bmatrix} 0 &{}\quad 1 &{}\quad 0 \\ 0 &{}\quad 0 &{}\quad 1 \\ 0 &{}\quad 0 &{}\quad 0 \end{bmatrix}, B=\begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix}, H=\begin{bmatrix} 1 &{}\quad 0 &{}\quad 0 \\ 0 &{}\quad 1 &{}\quad 0 \\ 0 &{}\quad 0 &{}\quad 1 \end{bmatrix}, C=\begin{bmatrix} 0 &{}\quad 0 &{}\quad 1 \\ 1 &{}\quad 0 &{}\quad 0 \\ 1 &{}\quad 0 &{}\quad 0 \end{bmatrix},\nonumber \\ D&= \begin{bmatrix} 0 &{}\quad 0 &{} \quad 0\\ 0 &{}\quad 1 &{}\quad 0\\ 0 &{}\quad 0 &{}\quad 0 \end{bmatrix} \end{aligned}$$
(8)
Fig. 3
figure 3

Heterogeneous networked system which is not controllable with a triangularizable network topology C and node dynamics given in (8)

Fig. 4
figure 4

The networked system becomes controllable with node dynamics as in (8), if the external control input matrix is \(\tilde{D}\)

There exists a nonsingular matrix \(T= \begin{bmatrix} 0 &{} 1 &{} -1 \\ \frac{\sqrt{3}}{2} &{} 0 &{} \frac{\sqrt{3}}{2} \\ -\frac{\sqrt{3}}{2}&{} 0 &{} \frac{\sqrt{3}}{2} \end{bmatrix}\) such that \(TCT^{-1}=\begin{bmatrix} 0 &{} 0 &{} 0 \\ 0 &{} 1 &{} 0 \\ 0 &{} 0 &{} -1 \end{bmatrix}=J\). From Corollary 1, it is easy to verify that the networked system is not controllable as \(e_2TD=0\). Here \(TD= \begin{bmatrix} 0 &{} 1 &{} 0 \\ 0 &{} 0 &{} 0 \\ 0 &{} 0 &{} 0 \end{bmatrix}\). Observe that either \(\delta _1\) or \(\delta _3\) must be 1 so that \(e_iTD \ne 0\) for all \(i=1,2,3.\) Modify D as \(\tilde{D}= \begin{bmatrix} 0 &{} 0 &{} 0\\ 0 &{} 1 &{} 0\\ 0 &{} 0 &{} 1 \end{bmatrix}\). In other words, either node \(v_1\) or node \(v_3\) is supplied with a control input. Then \(e_iT\tilde{D} \ne 0\) for all \(i=1,2,3\).

For the modified network system, we can verify the conditions (ii) and (iii) of Theorem 3. The eigenvalues of C are \(\lambda _1=0, \lambda _2=1\) and \(\lambda _3=-1\). Clearly, \((A,B),(A+H,B),(A-H,B)\) are controllable and these matrices does not have a common eigenvalue. Thus, all the conditions of Theorem 3 are satisfied and hence the heterogeneous system is controllable.

The condition that the matrix \(T \otimes I\) commutes with A in Theorem 3 is satisfied when the networked system is homogeneous as we can see in the following proposition.

Proposition 1

If networked system (1) is a homogeneous system, that is, \(A_i=\tilde{A}\) for \(i=1,2,\ldots ,N\), then \(T \otimes I\) commutes with A.

Proof

If the given system is a homogeneous system, then it can be represented in the compact form

$$\begin{aligned} \dot{X}(t)=F X(t)+ GU(t) \end{aligned}$$

where \(F=A+C \otimes H\) and \(G=D \otimes B\). From Eq. (4),

$$\begin{aligned} A={\textit{blockdiag}}\lbrace A_1,A_2,\ldots ,A_N \rbrace = {\textit{blockdiag}}\lbrace \tilde{A},\tilde{A},\ldots , \tilde{A} \rbrace =I \otimes \tilde{A} \end{aligned}$$

Clearly,

$$\begin{aligned} (T \otimes I)A=(T \otimes I)(I \otimes \tilde{A})=T \otimes \tilde{A}=(I \otimes \tilde{A})(T \otimes I)=A(T \otimes I) \end{aligned}$$

Thus, \(T \otimes I\) commutes with A. \(\square \)

Consequently, for a homogeneous networked system, we have the following result.

Theorem 4

Suppose that networked system (1) is a homogeneous system, that is, \(A_i=\tilde{A}\) for all \(i=1,\ldots ,N\) with

  1. (a)

    a triangularizable network topology. That is, \(TCT^{-1}=J={\textit{uppertriang}}\lbrace \lambda _1,\lambda _2, \ldots ,\lambda _N \rbrace \), where J is the Jordan Canonical Form of C; and

  2. (b)

    if J contains a Jordan block of order \(l\ge 2\) corresponding to the eigenvalue \(\lambda _{i_0}\) of C and \(\xi _{ij}^kH=0\) for all \(i=i_0,i_0+1,\ldots ,i_0+l-1,j=1,2,\ldots ,q_i, k=1,2,\ldots , \gamma _{ij}\), where \(\xi _{ij}^k,i=1,2,\ldots ,k=1,2,\ldots ,\gamma _{ij}\) are the left eigenvectors of \(A_i+\lambda _iH\) corresponding to the eigenvalues \(\mu _i^j\) and \(\gamma _{ij} \ge 1\) represents the geometric multiplicity of \(\mu _i^j\).

Then networked system (3) is controllable if and only if the following conditions are satisfied.

  1. (i)

    \(e_iTD \ne 0\) for all \(i=1, \ldots ,N\) , where \(\lbrace e_i \rbrace \) is the canonical basis for \(\mathbb {R}^N\).

  2. (ii)

    \((\tilde{A}+\lambda _i H,B)\) is controllable, for \(i=1,2,\ldots ,N\); and

  3. (iii)

    If matrices \(\tilde{A}+\lambda _{i_1}H ,\ldots , \tilde{A}+\lambda _{i_p}H (\lambda _{i_k} \in \sigma (C),\; for\; k=1, \ldots ,p,\; p>1)\) have a common eigenvalue \(\sigma \), then \((e_{i_1}TD) \otimes (\xi _{i_1}^1B), \ldots ,(e_{i_1}TD) \otimes (\xi _{i_1}^{\gamma _{i_1}}B), \ldots ,(e_{i_p}TD) \otimes (\xi _{i_p}^1B), \ldots ,(e_{i_p}TD) \otimes (\xi _{i_p}^{\gamma _{i_p}}B)\) are linearly independent vectors where \(\gamma _{i_k} \ge 1\) is the geometric multiplicity of \(\sigma \) for \(\tilde{A}+\lambda _{i_k}H\) and \(\xi _{i_k}^l(l=1, \ldots , \gamma _{i_k})\) are the left eigenvectors of \(\tilde{A}+\lambda _{i_k}H\) corresponding to \(\sigma , k=1,\ldots ,p\).

In the following example, we verify the conditions of (i)–(iii) Theorem 4 to obtain the controllability of a homogeneous networked system.

Example 5

Consider a networked system with two identical nodes, \(A_1=A_2=\begin{bmatrix} 1 &{} 1 \\ 0 &{} 1 \\ \end{bmatrix},B=\begin{bmatrix} 0 \\ 1 \end{bmatrix}, H=\begin{bmatrix} 1 &{} 0 \\ 0 &{} 0 \end{bmatrix}, C=\begin{bmatrix} 0 &{} 1 \\ 1 &{} 0 \end{bmatrix}\) and \(D=\begin{bmatrix} 1 &{} 0 \\ 0 &{} 0 \end{bmatrix}\). Then, there exists a nonsingular matrix \(T=\begin{bmatrix} -1 &{} 1 \\ 1 &{} 1 \end{bmatrix}\) such that \(TCT^{-1}=\begin{bmatrix} -1 &{} 0 \\ 0 &{} 1 \end{bmatrix}\). Here, \(\lambda _1=-1\) and \(\lambda _2=1\) are the eigenvalues of C. Observe that

  1. (i)

    \(e_iTD \ne 0\) for all \(i=1,2\).

  2. (ii)

    \((A_1-H,B),(A_2+H,B)\) are controllable. As the matrices \(A_1-H\) and \(A_2+H\) do not have a common eigenvalue, condition (iii) does not apply.

Thus, all the conditions of Theorem 4 are verified. Hence, the system is controllable.

Remark 2

Verification of following conditions restricts the application of Theorem 3 to a general heterogeneous networked system.

  1. (i)

    \(T \otimes I\) commutes with A.

  2. (ii)

    If the network topology is triangularizable, the condition that \(\xi _{ij}^kH=0\) for all \(i=i_0,i_0+1,\ldots ,i_0+l-1,j=1,2,\ldots ,q_i, k=1,2,\ldots , \gamma _{ij}\) if J contains a Jordan block of order \(l\ge 2\) corresponding to the eigenvalue \(\lambda _{i_0}\) of C.

However, condition (i) is trivially satisfied in the case for a homogeneous networked system and condition (ii) does not apply when the network topology is diagonalizable. The network topology being triangularizable is an advantage over the existing results as the available results are only for systems with a diagonalizable network topology. If a triangularizable network topology is applied to a homogeneous system, Hao et al.’s [11] result does not ensure controllability of the system as the network topology matrix is not diagonalizable. But, we have seen in Example 3 that our result can be applied to a homogeneous networked system with nondiagonalizable network topology. Also, as seen in Examples 1 and 2, our result can be applied to heterogeneous networked systems with triangularizable network topology matrix. Another advantage is that, as shown in Example 4, we can identify nodes of an uncontrollable system in which one can apply control to a node to make the modified networked system controllable.

Hao et al. [11] have proved Theorem 1 as a necessary and sufficient condition for the controllability of a homogeneous networked system with a diagonalizable network topology matrix. With the help of the following proposition, we now show that Theorem 3 is a generalization of Theorem 1 of Hao et al. [11].

Proposition 2

Suppose that the network topology matrix C is diagonalizable. That is, there exists a matrix T such that \(TCT^{-1}=J\), where \(J={\textit{diag}} \lbrace \lambda _1, \lambda _2, \ldots , \lambda _N \rbrace \). Then (CD) is controllable if and only if \(e_iTD \ne 0,i=1,2,\ldots , N\).

Proof

Given that there exists a matrix T such that \(TCT^{-1}=J\), where \(J={\textit{diag}} \lbrace \lambda _1, \lambda _2, \ldots , \lambda _N \rbrace \). Now,

$$\begin{aligned} TCT^{-1}=J&\Rightarrow TC=JT \\&\Rightarrow e_iTC=e_iJT\quad \forall \; i=1,2,\ldots , N \\&\Rightarrow (e_iT)C=\lambda _i (e_iT)\quad \forall \; i=1,2,\ldots , N \end{aligned}$$

That is, \(e_iT\) is a left eigenvector of C corresponding to the eigenvalue \(\lambda _i,i=1,2,\ldots , N\). Then by Lemma 3, (CD) is controllable if and only if \(e_iTD \ne 0,i=1,2,\ldots , N\). \(\square \)

Thus by Proposition 2, we can now deduce the necessary and sufficient condition for the controllability of a homogeneous networked system with a diagonalizable network topology matrix C, established by Hao et al. [11] as a corollary of Theorem 4 as follows.

Corollary 1

Consider a homogeneous networked system, that is, \(A_i=\tilde{A}\) for all \(i=1,\ldots ,N\) with a diagonalizable network topology matrix C. Let \(\sigma (C) =\{ \lambda _1 , \lambda _2, \ldots , \lambda _N \} \). Then networked system (1) is controllable if and only if the following conditions are satisfied:

  1. (i)

    (CD) is controllable;

  2. (ii)

    \((\tilde{A}+\lambda _i H,B)\) is controllable, for \(i=1,2,\ldots ,N\); and

  3. (iii)

    If matrices \(\tilde{A}+\lambda _{i_1}H ,\ldots , \tilde{A}+\lambda _{i_p}H \left( \lambda _{i_k} \in \sigma (C),\; for\; k=1, \ldots ,p,\; p>1\right) \) have a common eigenvalue \(\rho \), then \((t_{i_1}D) \otimes (\xi _{i_1}^1B), \ldots ,(t_{i_1}D) \otimes (\xi _{i_1}^{\gamma _{i_1}}B), \ldots ,\) \((t_{i_p}D) \otimes (\xi _{i_p}^1B), \ldots ,(t_{i_p}D) \otimes (\xi _{i_p}^{\gamma _{i_p}}B)\) are linearly independent, where \(t_{i_k}\) is the left eigenvector of C corresponding to the eigenvalue \(\lambda _{i_k}\); \(\gamma _{i_k} \ge 1\) is the geometric multiplicity of \(\rho \) for \(A+\lambda _{i_k}H;\xi _{i_k}^l(l=1, \ldots , \gamma _{i_k})\) are the left eigenvectors of \(A+\lambda _{i_k}H\) corresponding to \(\rho , k=1,\ldots ,p\).

In view of Proposition 2, the condition (i) of Theorem 4 and condition (i) of Corollary 1 are equivalent. The condition (ii) in Theorem 4 and Corollary 1 coincides. As per the result of Hao et al. [11], if \((\lambda _i ,t_i)\) and \((\mu , \xi )\) are the left eigenpairs of C and \(A+ \lambda _iH\), respectively, then \(\left( \mu , \xi (t_i \otimes I_n) \right) \) is a left eigenpair of \(F=I_N \otimes \tilde{A}+C \otimes H\). This in turn implies that the condition (iii) in Theorem 4 is equivalent to condition 3 in Corollary 1.

Remark 3

The existence of the matrix T satisfying all the required conditions is crucial in applying the theorem. If the given system is such that \(A_i \ne A_j\) for all \(i \ne j\), then for \(A={\textit{blockdiag}} \lbrace A_1,A_2, \ldots , A_N \rbrace \) to commute with \((T \otimes I)\), T must be a diagonal matrix. If \(A_i = A_j\) for some \(i \ne j\), then \(T_{ij}\) and \(T_{ji}\) are the only possible nonzero elements along with the diagonal entries.

4.2 Necessary conditions for controllability in special network topologies

Now we obtain some controllability results over some specific network topologies. In case there exists a node \(v_j\) with no incoming edge, we obtain a necessary condition for controllability of heterogeneous networked system (3) as shown below.

Theorem 5

Suppose that there exists a node \(v_j\) with no edge from any other nodes. Then, if \((A_j,B)\) is not controllable, then networked system (3) is not controllable.

Proof

If there exists a node \(v_j\) with no edge from any other nodes, the network topology matrix C is of the form

$$\begin{aligned} C=\begin{bmatrix} c_{11} &{}\quad c_{12} &{}\quad \ldots &{}\quad c_{1N} \\ c_{21} &{}\quad c_{22} &{} \quad \ldots &{}\quad c_{2N} \\ \vdots &{}\quad \vdots &{}\quad \vdots &{}\quad \vdots \\ c_{(j-1)1} &{}\quad c_{(j-1)2} &{}\quad \ldots &{}\quad c_{(j-1)N} \\ 0 &{}\quad 0 &{}\quad \ldots &{}\quad 0 \\ c_{(j+1)1} &{}\quad c_{(j+1)2} &{}\quad \ldots &{}\quad c_{(j+1)N} \\ \vdots &{}\quad \vdots &{}\quad \vdots &{} \quad \vdots \\ c_{N1} &{}\quad c_{N2} &{}\quad \ldots &{}\quad c_{NN} \end{bmatrix} \end{aligned}$$

Suppose that \((A_j,B)\) is not controllable. Then by Lemma 3, there exists a nonzero eigenvector \(\xi \) of \(A_j\) such that \(\xi B=0\). The state matrix of the networked system F is given by

$$\begin{aligned} F=\begin{bmatrix} A_1+c_{11}H &{}\quad c_{12}H &{}\quad \ldots &{}\quad \ldots &{}\quad \ldots &{} \quad c_{1N}H \\ c_{21} &{}\quad A_2+c_{22}H &{}\quad \ldots &{}\quad \ldots &{}\quad \ldots &{} \quad c_{2N}H \\ \vdots &{}\quad \vdots &{}\quad \vdots &{} \quad \vdots &{} \quad \vdots &{} \quad \vdots \\ 0 &{} \quad 0 &{}\quad \ldots &{}\quad A_j &{}\quad \ldots &{}\quad 0 \\ \vdots &{}\quad \vdots &{}\quad \vdots &{}\quad \vdots &{} \quad \vdots &{} \quad \vdots \\ c_{N1}H &{} \quad c_{N2}H &{}\quad \ldots &{} \quad \ldots &{}\quad \ldots &{}\quad A_N+c_{NN}H \end{bmatrix} \end{aligned}$$

and hence \(e_j \otimes \xi \) is a left eigenvector of F. Since \(\xi B=0\), \((e_j \otimes \xi ) (D \otimes B)=e_jD \otimes \xi B=0 \). Then the networked system is not controllable. \(\square \)

We have seen that the controllability of an individual node is necessary when there are no incoming edges to that node. But this is not the case when there are no outgoing edges from a node. Example 6 shows that controllability of an individual node is not necessary for network controllability, even if there are no outgoing edges from that node.

Remark 4

If there exists some node \(v_j\) with no edge to other nodes, the controllability of \((A_j, B)\) is not necessary for the controllability of the networked system.

Example 6

Consider a system with two nodes which are nonidentical,

$$\begin{aligned} A_1=\begin{bmatrix} 1 &{}\quad 2 \\ 1 &{}\quad 3 \end{bmatrix}, A_2=\begin{bmatrix} 1 &{}\quad 1 \\ 0 &{}\quad 0 \end{bmatrix}, B=\begin{bmatrix} 1 \\ 0 \end{bmatrix}, H=\begin{bmatrix} 0 &{}\quad 1 \\ 1 &{} \quad 0 \end{bmatrix}, C=\begin{bmatrix} 0 &{}\quad 0 \\ 1 &{}\quad 0 \end{bmatrix}, D=\begin{bmatrix} 1 &{}\quad 0 \\ 0 &{} \quad 1 \end{bmatrix} \end{aligned}$$
(9)
Fig. 5
figure 5

The networked system is controllable with parameters given in (9). Observe that there is no edge from node \(v_2\) to node \(v_1\)

From Fig 5, it is easy to observe that there is no edge from node 2. Also, \((A_2, B)\) is not controllable. But the networked system is controllable.

The following theorem addresses a situation where the controllability of an individual node with no outgoing edges. Here controllability of the individual node becomes a necessary condition for network controllability.

Theorem 6

Suppose that there exists a node \(v_j\) with no edge to any other nodes. If \(\xi H=0\) for all left eigenvectors \(\xi \) of \(A_j\), then the controllability of \((A_j, B)\) is necessary for the controllability of the networked system.

Proof

If there exists some node \(v_j\) with no edge to any other nodes, then the network topology matrix C takes the form,

$$\begin{aligned} C=\begin{bmatrix} c_{11} &{}\quad c_{12} &{}\quad \ldots &{}\quad c_{1(j-1)} &{}\quad 0 &{} \quad c_{1(j+1)} &{}\quad \ldots &{}\quad c_{1N} \\ c_{21} &{}\quad c_{22} &{}\quad \ldots &{}\quad c_{2(j-1)} &{}\quad 0 &{} \quad c_{2(j+1)} &{}\quad \ldots &{} \quad c_{2N} \\ \vdots &{}\quad \vdots &{}\quad \ldots &{}\quad \vdots &{}\quad \vdots &{}\quad \vdots &{}\quad \ldots &{} \quad \vdots \\ c_{N1} &{}\quad c_{N2} &{} \quad \ldots &{}\quad c_{N(j-1)} &{} \quad 0 &{}\quad c_{N(j+1)} &{} \quad \ldots &{} \quad c_{NN} \end{bmatrix} \end{aligned}$$

The state matrix of the networked system F is given by,

$$F=\begin{bmatrix} A_1+c_{11}H &{} \quad c_{12}H &{}\quad \ldots &{}\quad 0 &{}\quad \ldots &{}\quad c_{1N}H \\ c_{21}H &{}\quad A_2+c_{22}H &{}\quad \ldots &{} \quad 0 &{}\quad \ldots &{}\quad c_{2N}H \\ \vdots &{} \quad \vdots &{} \quad \ddots &{} \quad \vdots &{}\quad \ldots &{}\quad \vdots \\ c_{j1}H &{}\quad c_{j2}H &{} \quad \ldots &{}\quad A_j &{} \quad \ldots &{}\quad c_{jN}H \\ \vdots &{} \quad \vdots &{}\quad \ldots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ c_{N1}H &{}\quad c_{N2}H &{}\quad \ldots &{}\quad 0 &{}\quad \ldots &{}\quad A_N+c_{NN}H \end{bmatrix}$$

Suppose that \((A_j,B)\) is not controllable. Then there exists a left eigenvector \(\xi \) of \(A_j\) such that \(\xi B=0\). Since \(\xi H=0\) for all left eigenvectors of \(A_j\), \(e_j \otimes \xi \) is a left eigenvector of F with \((e_j \otimes \xi ) (D \otimes B)=e_jD \otimes \xi B=0 \) and hence the networked system is not controllable. \(\square \)

5 Conclusion and future scope of work

In this paper, a necessary and sufficient condition has been derived for controllability of a class of heterogeneous networked systems under both a directed and weighted topology. Examples are provided to illustrate the theoretical results. Furthermore, our result generalizes the work of Hao et al. [11] on controllability of homogeneous LTI networked systems, allowing us to broaden the scope of study to a larger class of systems. In addition, controllability results have been derived for a networked system over some particular network topologies. Our result is more informative regarding the role of subsystem dynamics, network topology, etc., in the controllability of a networked system than the existing results and is easy to validate. In the present study, the control matrix is uniform in all subsystems. However, in the future, we intend to study the controllability of networked systems with heterogeneous control matrices. Another line of research could be an investigation of the controllability of networked systems with delays and impulses. However, research in this direction is performed for homogeneous networked systems with one-dimensional communication having delays in control. But for heterogeneous networked systems, such an investigation is yet to be performed.