Keywords

1 Introduction

Research on multi-agent systems and consensus problems has been flourishing in the last decades [2, 7, 9, 11, 13, 14, 16], strongly stimulated by the large number of different applications areas where practical problems that can be formalized as consensus problems among autonomous agents/units arise. Just to mention the most popular ones, flocking and swarming in animal groups, dynamics of opinion forming, coordination in sensor networks, clock synchronization, distributed tasks among mobile robots/vehicles. These apparently different set-ups share some common features: in each of them there is a group of individuals/units (the agents), whose behavior can be regarded as homogeneous. Each agent performs tasks and updates  a vector of describing parameters (its state) based on the information received from neighbouring agents, with the final goal of agreeing on a common value for such a vector.

In a number of contexts, the information vector that the agents update (based on communication exchange with their neighbours), aiming to achieve consensus, is the value of variables that are intrinsically nonnegative. For instance, wireless sensor networks in greenhouses [1] exchange information regarding physical parameters as temperature, humidity, and \(CO_2\) concentration, and the sensors must converge to some common values for these parameters, based on which ventilation/heating systems will be activated, shading or artificial lights will be controlled, \(CO_2\) will be injected, and so on.

Another interesting problem, that is formalized as a consensus problem with positivity constraint, is the emissions control for a fleet of Plugin Hybrid Vehicles [8]. Each vehicle has a parallel power-train configuration that allows for any arbitrary combination of the power generated by the combustion engine and the electric motor. Moreover, the vehicles can communicate. Under these assumptions, an algorithm is proposed to regulate in a cooperative way the \(CO_2\) emissions, so that no vehicle has a higher emission level than the others.

In a series of recent papers [17,18,19] we have investigated the consensus problem for homogeneous multi-agent systems, whose agents are modelled as continuous-time, single-input, positive state-space models. We assumed that interactions among agents are cooperative and the communication graph regulating the agents’ mutual interactions is weighted, undirected and connected but not complete, namely not every agent directly exchanges information with all the other agents. As the agents’ states are intrinsically nonnegative, a natural requirement to introduce, in addition to consensus, is the positivity of the overall controlled multi-agent system and hence that the state feedback law adopted to achieve consensus constrains all the state trajectories to remain in the positive orthant. A rather complete characterization of the problem solvability has been provided, and special cases, arising under special conditions either on the agents’ description or on the communication graph, have been discussed.

The simple assumption that the communication graph is connected but not complete allowed to exclude the rather peculiar situation when the maximum weighted degree of an agent, namely the largest of the diagonal entries of the Laplacian associated with the communication graph, is smaller than all the positive eigenvalues of the Laplacian. By ruling out this case, we were able to derive some powerful necessary conditions for the solvability of the positive consensus problem that provided the backbone of the analysis carried on in [17,18,19]. This chapter addresses the critical case, namely the situation when the communication among the agents is described by a complete graph and all the positive eigenvalues of its Laplacian are greater than its diagonal entries. As we will see, the necessary conditions derived in this context are weaker, and conditions that in the previous investigation turned out to be necessary and sufficient for the problem solvability under the current assumptions are only sufficient.

In detail, Sect. 19.2 provides some background material. In Sect. 19.3 the positive consensus problem is formalized. A set of necessary or sufficient conditions for the problem solvability is provided in Sect. 19.4. The case when the input to state matrix involved in the agents’ description is monomial is investigated in Sect. 19.5. Finally, in Sect. 19.6, we address the case of two-dimensional agents.

2 Background Material

Given a positive integer N, we let [1, N] denote the set \(\{1,2,\dots , N\}\). \(\mathbf{e}_i\) is the ith canonical vector (whose size is always clear from the context). The (ij)th entry of a matrix A will be denoted either by \(a_{i j}\) or by \([A]_{i j}\), the ith entry of a vector \(\mathbf{v}\) by \(v_i\) or \([\mathbf{v}]_i\).A vector \(\mathbf{v}= v_i \mathbf{e}_i\), \(v_i > 0\), is called ith monomial vector. \(\mathbf{1}_N\) is the N-dimensional vector whose entries are all unitary. The Kronecker product of two matrices \(A\in \mathbb {R}^{m\times n}\) and \(B\in \mathbb {R}^{p\times q}\) is the matrix

$$ C =[A \otimes B] := \begin{bmatrix} a_{11} B&a_{12} B&\dots&a_{1n} B\\a_{21} B&a_{22} B&\dots&a_{2n} B\\\vdots&\vdots&\ddots&\vdots \\a_{m1} B&a_{m2} B&\dots&a_{mn} B\end{bmatrix}\in \mathbb {R}^{pm\times qn}. $$

Given a matrix \(A\in \mathbb {R}^{n\times n}\), we denote by \(\sigma (A)\) its spectrum. A is Hurwitz if all its eigenvalues lie in the open left complex halfplane, i.e. \(\lambda \in \sigma (A)\) implies \(\mathfrak {R}(\lambda ) <0\). \(\mathbb {R}_+\) is the set of nonnegative real numbers. A matrix (in particular, a vector) \(A_+\) with entries in \(\mathbb {R}_+\) is a nonnegative matrix (\(A_+ \ge 0\)); if \(A_+ \ge 0\) and at least one entry is positive, \(A_+\) is a positive matrix (\(A_+ > 0\)), while if all its entries are positive it is a strictly positive matrix (\(A_+ \gg 0\)). A matrix \(A\in \mathbb R^{n\times n}\) is a Metzler matrix if its off-diagonal entries are nonnegative.

Given \(A\in \mathbb R^{n\times n}\), we define the spectral abscissa of A as

$$\begin{aligned} \lambda _{\max }(A):=\max \{\mathfrak {R}(\lambda ),\lambda \in \sigma (A)\}. \end{aligned}$$
(19.1)

For a Metzler matrix, the spectral abscissa is always an eigenvalue (namely the eigenvalue with maximal real part is always real) and it is called Frobenius eigenvalue. Also, Metzler matrices exhibit a monotonicity property [15]: if A and \(\bar{A}\in \mathbb R^{n\times n}\) are Metzler matrices and \(A\le \bar{A}\), then \(\lambda _{\max }(A)\le \lambda _{\max }(\bar{A})\).

An undirected, weighted graph is a triple [10, 12] \(\mathscr {G}=(\mathscr {V},\mathscr {E},\mathscr {A})\), where \(\mathscr {V}=\{1,\dots ,N\}\) is the set of vertices, \(\mathscr {E}\subseteq \mathscr {V}\times \mathscr {V}\) is the set of arcs. \((i,j)\in {\mathscr {E}}\) if and only if \((j,i)\in {\mathscr {E}}\). Finally, \(\mathscr {A}\in \mathbb R_+^{N\times N}\) is the (positive and symmetric) adjacency matrix of the weighted graph \(\mathscr {G}\). We assume that the graph \({\mathscr {G}}\) has no self-loops, i.e. \([{\mathscr {A}}]_{ii}=0\) for every index \(i\in [1,N]\). If \({\mathscr {A}}\) is irreducible, the graph is connected. If \([{\mathscr {A}}]_{ij} >0\) for every \(i,j\in {\mathscr {V}}, i\ne j,\) the graph \({\mathscr {G}}\) is complete. If \([{\mathscr {A}}]_{ij} >0\) implies \([{\mathscr {A}}]_{ij} =1\) the graph is called unweighted. We define the Laplacian matrix \(\mathscr {L}\in \mathbb R^{N\times N}\) associated with the graph \({\mathscr {G}}\) as \( \mathscr {L}:=\mathscr {C}-\mathscr {A}, \) where \(\mathscr {C}\in \mathbb R_+^{N\times N}\) is a diagonal matrix with \( \mathopen {[}\mathscr {C}\mathclose {]}_{ii}:= \sum _{j=1}^N \mathopen {[}\mathscr {A}\mathclose {]}_{ij}, \forall \ i\in [1,N]. \) Accordingly, the Laplacian matrix \(\mathscr {L}=\mathscr {L}^\top \) takes the following form:

$$ \mathscr {L}=\begin{bmatrix} \ell _{11}&\ell _{12}&\dots&\ell _{1N} \\ \ell _{12}&\ell _{22}&\dots&\ell _{2N} \\ \vdots&\vdots&\ddots&\vdots \\ \ell _{1N}&\ell _{2N}&\dots&\ell _{NN} \end{bmatrix} = \begin{bmatrix} \sum _{j=1}^N \mathopen {[}\mathscr {A}\mathclose {]}_{1j}&-\mathopen {[}\mathscr {A}\mathclose {]}_{12}&\dots&-\mathopen {[}\mathscr {A}\mathclose {]}_{1N} \\ -\mathopen {[}\mathscr {A}\mathclose {]}_{12}&\sum _{j=1}^N \mathopen {[}\mathscr {A}\mathclose {]}_{2j}&\dots&-\mathopen {[}\mathscr {A}\mathclose {]}_{2N} \\ \vdots&\vdots&\ddots&\vdots \\ -\mathopen {[}\mathscr {A}\mathclose {]}_{1N}&-\mathopen {[}\mathscr {A}\mathclose {]}_{2N}&\dots&\sum _{j=1}^N \mathopen {[}\mathscr {A}\mathclose {]}_{Nj} \end{bmatrix}. $$

If \(\mathscr {G}\) is connected then \(\ell _{ii}>0\) for every \(i\in \mathopen {[}1,N\mathclose {]}\), and hence \(\ell ^*:=\max _{i\in [1,N]}\ell _{ii}\) \(> 0\). Notice that all rows of \(\mathscr {L}\) sum up to 0, and hence \(\mathbf 1_N\) is always a right eigenvector of \(\mathscr {L}\) corresponding to the null eigenvalue [3].

Lemma 19.1

[3, 13, 20] If the undirected, weighted graph \(\mathscr {G}\) is connected, then \(\mathscr {L}\) is a symmetric positive semidefinite matrix, and 0 is a simple eigenvalue of \(\mathscr {L}\).

Therefore, if we denote by \(\{\lambda _1, \lambda _2, \dots , \lambda _N\}\) the spectrum \(\sigma ({\mathscr {L}})\), then \(\lambda _i\in \mathbb {R}_+\) for every \(i\in [1,N]\), and we can always assume that the \(\lambda _i\)’s are sorted in non-decreasing order, namely

$$\begin{aligned} 0=\lambda _1\le \lambda _2\le \dots \le \lambda _N. \end{aligned}$$
(19.2)

It is well-known that if the eigenvalues of \(\mathscr {L}\) are sorted as in (19.2), then [4, 5] \(\ell ^* \le \lambda _N\). In addition, if \({\mathscr {L}}\) is irreducible, then \(\ell ^* < \lambda _N\) (see Theorem 3 in [4]).

Lemma 19.2

(1) Let \(\mathscr {G}\) be an undirected, weighted graph with N vertices. If \(\ell ^*<\lambda _2\), then [12] \(\mathscr {G}\) is complete.

(2) If \(\mathscr {G}\) is the undirected, unweighted graph with N vertices, then [3, 5, 10] \(\ell ^*<\lambda _2\) if and only if \(\mathscr {G}\) is complete. Moreover, in this case \(\ell ^*=N-1\) and \(\lambda _2=\dots =\lambda _N=N\).

Notice that, differently from the unweighted case, completeness of a weighted graph \(\mathscr {G}\) does not imply \(\ell ^*<\lambda _2\). Consider, e.g., the weighted Laplacian matrix

$$ \mathscr {L}=\begin{bmatrix} 3&-1&-2 \\ -1&2&-1 \\ -2&-1&3 \end{bmatrix}, $$

and notice that \(\lambda _2=3\) and hence \(\lambda _2=\ell ^*=3\) even if \(\mathscr {G}\) is complete. In the following the complete, undirected and unweighted graph will be denoted by \(\mathscr {G}_N\). Clearly, its Laplacian can be expressed as \({\mathscr {L}} = N I_N - \mathbf{1}_N \mathbf{1}_N^\top \) and its eigenvalues are \(\lambda _2=\dots =\lambda _N=N\), while \(\ell ^*=N-1\).

3 Problem Statement

We consider a homogeneous multi-agent system consisting of N identical agents whose dynamics is described by the continuous-time positive single-input system:

$$ \dot{\mathbf x}_i(t)=A\mathbf x_i(t)+Bu_i(t), \qquad t\in \mathbb {R}_+, $$

where \(\mathbf x_i\in \mathbb R^n\) and \(u_i\in \mathbb R\) are the state vector and the (scalar) input, respectively, of the ith agent. \(A=\begin{bmatrix}a_{ij}\end{bmatrix} \in \mathbb R^{n\times n}\) is a non-Hurwitz Metzler matrix, and \(B=\begin{bmatrix}b_i\end{bmatrix} \in \mathbb R_+^n\) is a positive vector. The mutual interactions among agents are described by a (connected, undirected, weighted) communication graph \(\mathscr {G}=(\mathscr {V},\mathscr {E},\mathscr {A})\), where \(\mathscr {V}=\{1,\dots ,N\}\) and \(\mathscr {A}=\mathscr {A}^\top \in \mathbb {R}_+^{N\times N}\). Note that we assume that the mutual interactions are cooperative and hence \(\mathscr {A}\) is a nonnegative matrix. Differently from what we did in [17,18,19], we assume that the graph \(\mathscr {G}\) is complete, namely each agent communicates with all the other agents, and that \(\ell ^* < \lambda _2\). As we will see, this apparently more restrictive situation makes the problem solution more difficult. In this scenario, \({\mathscr {A}}\in \mathbb R_+^{N\times N}\) is irreducible (in fact, primitive if \(N >2\)), and if we sort the eigenvalues of \({\mathscr {L}}\) as in (19.2), then

$$0 = \lambda _1< \ell ^* < \lambda _2 \le \dots \le \lambda _N.$$

Let \(K\in \mathbb R^{1\times n}\) be a state-feedback matrix (to be designed) and assume that each ith agent adopts the following DeGroot type control law [20]:

$$ u_i(t)=K\sum _{j=1}^N\mathopen {[}\mathscr {A}\mathclose {]}_{ij}\mathopen {[}\mathbf x_j(t)-\mathbf x_i(t)\mathclose {]}. $$

Define \(\mathbf x(t)\in \mathbb R^{Nn}\) and \(\mathbf u(t)\in \mathbb R^N\) as

$$ \mathbf x(t):=\begin{bmatrix}\mathbf x_1^\top (t)&\dots&\mathbf x_N^\top (t)\end{bmatrix}^\top \qquad \mathbf u(t):=\begin{bmatrix}u_1(t)&\dots&u_N(t)\end{bmatrix}^\top $$

respectively. The state-space description of the overall system becomes:

$$\begin{aligned} \dot{\mathbf x}(t)&=(I_N\otimes A)\mathbf x(t)+(I_N\otimes B)\mathbf u(t)\\ \mathbf u(t)&=-(\mathscr {L}\otimes K)\mathbf x(t) \end{aligned}$$

and the resulting autonomous closed-loop system is described by

$$\begin{aligned} \dot{\mathbf x}(t)=\mathopen {[}(I_N\otimes A)-(I_N\otimes B)(\mathscr {L}\otimes K)\mathclose {]}\mathbf x(t). \end{aligned}$$
(19.3)

The positive consensus problem is naturally posed as follows: determine, if possible, a state-feedback matrix \(K=\begin{bmatrix}k_i\end{bmatrix} \in \mathbb R^{1\times n}\) such that the (closed-loop multi-agent) system (19.3) satisfies the following conditions:

  1. (I)

    positivity: \(\mathbb {A}:=(I_N\otimes A)-(I_N\otimes B)(\mathscr {L}\otimes K)\) is a Metzler matrix;

  2. (II)

    consensus: meaning that

    $$ \lim _{t\rightarrow +\infty }\mathbf x_i(t)-\mathbf x_j(t)=0, \quad \forall i,j\in \mathopen {[}1,N\mathclose {]}. $$

As well-known in the literature [2, 20], a necessary and sufficient condition for the homogeneous agents to reach consensus is that all matrices \(A-\lambda _i BK, i\in [2,N],\) are Hurwitz. A necessary condition for this to happen is that the pair (AB) is stabilizable, a steady assumption from now onward.

As far as condition (I) is concerned, once we explicitly write the expression of the overall state matrix \(\mathbb {A}\):

$$ \mathbb {A}=\begin{bmatrix} A-\ell _{11}BK&-\ell _{12}BK&\dots&-\ell _{1N}BK \\ -\ell _{12}BK&A-\ell _{22}BK&\dots&-\ell _{2N}BK \\ \vdots&\vdots&\ddots&\vdots \\ -\ell _{1N}BK&-\ell _{2N}BK&\dots&A-\ell _{NN}BK \end{bmatrix} $$

it is easy to see [17,18,19] that \(\mathbb {A}\) is Metzler if and only if (a) the off-diagonal blocks \(-\ell _{ij}BK\), \(i,j\in \mathopen {[}1,N\mathclose {]},i\ne j\), are non-negative; and (b) the diagonal blocks \(A-\ell _{ii}BK\), \(i\in \mathopen {[}1,N\mathclose {]}\), are Metzler. So, keeping in mind the assumptions on A and B, once we define the vector \(K^*=\mathopen {[}k_i^*\mathclose {]}\in \mathbb {R}_+^{1\times n}\) as:

$$ k_i^*:= {\left\{ \begin{array}{ll} \min _{\begin{array}{c} j=1,\dots ,n\\ j\ne i \end{array}}{\displaystyle \frac{a_{ji}}{b_j}\frac{1}{\ell ^*}}, &{} \text {if }\exists \ j \ne i \text { s.t. } b_j\ne 0;\\ + \infty , &{} \text {otherwise}, \end{array}\right. } $$

it is immediate to prove that condition (I) holds if and only if \(0\le K\le K^*\). Note that in the special case when B is a monomial vector, say \(B= b_i \mathbf{e}_i\), for some \(\ i\in [1,n]\) and \(b_i>0\), the ith entry of \(K^*\) is infinite. In all the other cases (namely if B has at least two non-zero entries) \(K^*\) is always finite.

To summarize, the positive consensus problem can be equivalently posed as follows:

Positive consensus problem: determine, if possible, \(K\in \mathbb R_+^{1\times n}\), \(0\le K\le K^*\), such that all matrices \( A-\lambda _i BK, i\in \mathopen {[}2,N\mathclose {]}, \) are Hurwitz.

4 Necessary and/or Sufficient Conditions

A major consequence of the apparently more restrictive assumption that all the agents communicate with each other and \(\ell ^* < \lambda _i, i\in [2,N]\), is that one of the main necessary conditions for the positive consensus problem solvability we exploited in the previous analysis, namely the fact that the matrix \(A-\lambda _2 BK^*\) is Metzler and Hurwitz, does not hold anymore. As \(\ell ^*\) is smaller than \(\lambda _2\), by the way \(K^*\) is defined the matrix \(A-\lambda _2 BK^*\) (and hence all matrices \(A-\lambda _iBK^*, i\in [2,N]\)) is not Metzler, and the case may occur that \(A-\lambda _2 BK\) is Hurwitz even if \(A-\lambda _2 BK^*\) is not.

Some necessary conditions for the problem solvability, however, can be determined, as they are independent of the relationship between \(\ell ^*\) and \(\lambda _2\).

Proposition 19.1

Assume that A is an \(n\times n\) Metzler non-Hurwitz matrix, \(B\in \mathbb {R}_+^{n}\) is a positive vector and \(0< \ell ^* < \lambda _i, i\in [2,N]\). If the positive consensus problem is solvable, then

  1. (i)

    \(\lambda _{\max }(A)\) is a simple nonnegative eigenvalue;

  2. (ii)

    \( K^*B> \mathrm{tr}(A)/\lambda _2.\)

Proof

(i) The fact that \(\lambda _{\max }(A)\) is a simple eigenvalue follows from Proposition 1 and Remark 1 in [18], since those results are independent of the relationship between \(\ell ^*\) and \(\lambda _2\). The fact that it is real and nonnegative follows from the assumption that A is a Metzler non-Hurwitz matrix.

(ii) As the trace of a matrix equals the sum of its eigenvalues, a necessary condition for the matrices \(A-\lambda _iBK, i\in [2,N],\) to be Hurwitz is that their traces are negative, i.e., \(\mathrm{tr}(A-\lambda _iBK)=\mathrm{tr}(A)-\lambda _iKB<0, \forall \ i\in [2,N].\) However, since both B and K are positive vectors, if there exists a matrix K such that \(0\le K\le K^*\) and \(A-\lambda _iBK\) is Hurwitz, then \( K^*B\ge KB>\frac{\mathrm{tr}(A)}{\lambda _i}, \forall \ i\in [2,N]. \) Finally, note that if \(\mathrm{tr}(A)<0\) the previous condition is trivial. If \(\mathrm{tr}(A)\ge 0\) then

$$\frac{\mathrm{tr}(A)}{\lambda _2} \ge \frac{\mathrm{tr}(A)}{\lambda _i}$$

for every \(i\in [2,N]\). So, in both cases, condition \(K^*B>\frac{\mathrm{tr}(A)}{\lambda _i}\) holds for every \(i\in [2,N]\) if and only if \(K^*B>\frac{\mathrm{tr}(A)}{\lambda _2}\).

Conditions (i) and (ii) of the above proposition are not sufficient, not even when dealing with \(N=2\) agents described by a two-dimensional (\(n=2\)) model, as the following elementary example shows.

Example 19.1

Consider the positive single-input agent

$$ \dot{\mathbf x}_i(t)=A\mathbf x_i(t)+Bu_i(t)=\begin{bmatrix} 3&1\\ 1&-1 \end{bmatrix} \mathbf x_i(t)+\begin{bmatrix} 1\\ 1\ \end{bmatrix}u_i(t) $$

A is a Metzler and non-Hurwitz matrix and the pair (AB) is stabilizable. The matrix A has a simple positive eigenvalue and a negative one. Assume that there are \(N=2\) agents and assume that the interconnection topology is described by the complete, undirected and unweighted graph \({\mathscr {G}}_2\), namely

$${\mathscr {L}} = \begin{bmatrix} 1&-1\\-1&1\end{bmatrix}.$$

Then (see Lemma 19.2) \(0=\lambda _1< \ell ^*=1 < \lambda _2=2\). The matrix \(K^*\) is easily proved to be \(K^*=\begin{bmatrix} 1&1 \end{bmatrix}\), and hence condition \(2=K^*B > \mathrm{tr}(A)/\lambda _2= 1\) holds. Yet, for every \(K=\begin{bmatrix} k_1&k_2\end{bmatrix},\) with \(0\le k_i\le 1, i\in [1,2],\) \(A-\lambda _2 BK\) is not Hurwitz. So, the positive consensus problem is not solvable.\(\clubsuit \)

Example 19.2

Consider the positive single-input agent

$$ \dot{\mathbf x}_i(t)=A\mathbf x_i(t)+Bu_i(t)=\begin{bmatrix} -1&1&1\\ 1&-1&0\\ 1&1&6 \end{bmatrix} \mathbf x_i(t)+\begin{bmatrix} 1\\ 1\\ 0 \end{bmatrix}u_i(t) $$

Notice that A is a Metzler and non-Hurwitz matrix and that the pair (AB) is stabilizable. Consider \(N=3\) agents and assume that the interconnection topology is described by the complete, undirected and unweighted graph \({\mathscr {G}}_3\). In this case (see Lemma 19.2) \(\ell ^* =2\) and the eigenvalues of \({\mathscr {L}}\) are \(\lambda _1=0\) and \(\lambda _2=\lambda _3=3\). The matrix \(K^*\) is easily proved to be \(K^*=\begin{bmatrix}\frac{1}{2}&\frac{1}{2}&0\end{bmatrix}\). As \( K^*B=1<\frac{4}{3}=\frac{\mathrm{tr}(A)}{\lambda _2}, \) we conclude that the positive consensus problem is not solvable. \(\clubsuit \)

In order to investigate the problem solvability, let us define the set of solutions of the positive consensus problem as

$$ {\mathscr {K}}^{H} := \{ K : 0 \le K \le K^*,\ A-\lambda _i BK \ \mathrm{Hurwitz},\ i\in [2,N]\}. $$

A sufficient condition for the solvability of the positive consensus problem is represented by the case when there is a matrix K, satisfying the given bounds, that makes all matrices \(A-\lambda _i BK, i\in [2,N],\) Metzler and Hurwitz. To investigate this situation, we define

$$ {\mathscr {K}}^{MH} := \{ K \in {\mathscr {K}}^{H}: A-\lambda _i BK \ \mathrm{Metzler},\ i\in [2,N]\}. $$

The following result provides, in the case when \(\ell ^* < \lambda _2,\) an analysis that parallels the one carried on in Sect. 6 of [18]. In the case we are currently investigating the matrix \(A-\lambda _2BK^*\) is no longer Metzler and Hurwitz. However, \(A-\ell ^* BK^*\) is necessarily Metzler and hence we can ensure that all matrices taking the form \(K =\alpha K^*\), with \(\alpha \in [0,1]\), make \(A-\ell ^*BK\) Metzler. So, we focus on this class of state feedback matrices to determine whether some of them belong to \({\mathscr {K}}^{MH}\).

Proposition 19.2

Assume that A is an \(n\times n\) Metzler non-Hurwitz matrix, \(B\in \mathbb R^n_+\) is a positive vector and \(0< \ell ^* < \lambda _i\), \(i\in [2,N]\). The following conditions are equivalent:

  1. (i)

    \({\mathscr {K}}^{MH}\ne \emptyset \);

  2. (ii)

    \(\frac{\ell ^*}{\lambda _N}K^*\in {\mathscr {K}}^{MH}\);

  3. (iii)

    the set \(\{\alpha \in (0,1]:A-\alpha \ell ^* BK^* \, \text {is Hurwitz} \}\) is not empty and

    $$\begin{aligned} {\tilde{\alpha }}:= \inf \{\alpha \in (0,1]:A-\alpha \ell ^* BK^* \, \text {is Hurwitz} \} \end{aligned}$$
    (19.4)

    satisfies \({\tilde{\alpha }} < \frac{\lambda _2}{\lambda _N}\).

Proof

(i) \(\Rightarrow \) (ii) Suppose that \({\mathscr {K}}^{MH}\ne \emptyset \) and let \(K\in {\mathscr {K}}^{MH}\). As \(K\in {\mathscr {K}}^{MH}\) then \(A-\lambda _N BK\) is Metzler (and Hurwitz) and this implies that \(\lambda _N K \le \ell ^* K^*\), namely \(K \le \frac{\ell ^*}{\lambda _N} K^*\). On the other hand, the Metzler matrix \(A-\ell ^* BK^* \le A-\lambda _N BK\), being upper bounded by a Metzler and Hurwitz matrix, is Hurwitz in turn. Therefore, for every \(k\in [2,N]\), \(A-\lambda _k BK \ge A-\lambda _k \frac{\ell ^*}{\lambda _N} B K^* \ge A - \ell ^* BK^*.\) Since \(A - \ell ^* BK^*\) is Metzler, then \(A - \lambda _k \frac{\ell ^*}{\lambda _N} BK^*\) is Metzler, too, and being upper-bounded by a Metzler Hurwitz matrix, it is Hurwitz, in turn. This proves that \(A-\lambda _k\frac{\ell ^*}{\lambda _N}BK^*\) is Metzler and Hurwitz for every \(k\in [2,N]\), namely \(\frac{\ell ^*}{\lambda _N}K^*\in {\mathscr {K}}^{MH}\).

(ii) \(\Rightarrow \) (iii) If \(\frac{\ell ^*}{\lambda _N}K^*\in {\mathscr {K}}^{MH}\), then \(A-\lambda _2\frac{\ell ^*}{\lambda _N}BK^*\) is Metzler and Hurwitz, and hence \(\frac{\lambda _2}{\lambda _N}\in \{\alpha \in (0,1]:A-\alpha \ell ^* BK^* \, \text {is Hurwitz} \}\). This also implies that \({\tilde{\alpha }} < \frac{\lambda _2}{\lambda _N}\).

(iii) \(\Rightarrow \) (i) Observe, first, that if \(\{\alpha \in (0,1]:A-\alpha \ell ^* BK^* \, \text {is Hurwitz} \}\) is not empty and \(\tilde{\alpha }\) is the infimum value of the set, then for every \(\alpha \in (\tilde{\alpha },1]\) the matrix \(A-\alpha \ell ^* BK^*\) satisfies \(A- \ell ^* BK^* \le A-\alpha \ell ^* BK^* < A-\tilde{\alpha }\ell ^* BK^*\) and hence it is Metzler Hurwitz. Set \(K= \frac{\ell ^*}{\lambda _N} K^*\). By assumption, \({\tilde{\alpha }} < \frac{\lambda _2}{\lambda _N}\), and hence \(A-\lambda _2 BK\) is Hurwitz. On the other hand, \(A- \lambda _N BK =A- \ell ^*BK^*\) is Metzler. This implies that \(A-\lambda _2 BK \ge A-\lambda _3 BK \ge \dots \ge A-\lambda _N BK\) are all Metzler matrices, and since the largest one is Hurwitz, by the monotonicity property of the spectral abscissa we can claim that they are all Hurwitz. So, \(K\in {\mathscr {K}}^{MH}\).

Remark 19.1

It is easy to see that since \(A-\ell ^* B K^*\) is Metzler, then the set \(\{\alpha \in (0,1]:A-\alpha \ell ^* BK^* \, \text {is Hurwitz} \}\) coincides with the set \(\{\alpha \in (0,1]:A-\alpha \ell ^* BK^*\) is Metzler and Hurwitz \(\}\). Moreover, if the set is not empty then the Metzler matrix \(A-\ell ^* B K^*\) satisfies \(A-\ell ^* B K^* \le A- \tilde{\alpha }\ell ^* B K^*\) and hence it is necessarily Hurwitz. So, Proposition 19.2 above, essentially states that the set \({\mathscr {K}}^{MH}\) is not empty, namely there exists a state feedback matrix K, satisfying the usual bounding conditions, that makes all matrices \(A-\lambda _i BK, i\in [2,N],\) Metzler and Hurwitz, if and only if such a solution can be found in the set of matrices \(\{\alpha K^*: \alpha \in (0,1]\}\). Note that not only the set \(\{\alpha \in (0,1]:A-\alpha \ell ^* BK^* \, \text {is Hurwitz} \}\) must be not empty, and hence the parameter \(\tilde{\alpha }\) well defined, but the interval \((\tilde{\alpha },1]\) must be sufficiently “large" to include the interval \(\left[ \frac{\lambda _2}{\lambda _N},1\right] \). Only in this way we can determine a matrix of the form \(K=\alpha K^*\) that makes \(A-\lambda _i BK\) Metzler and Hurwitz for every \(\lambda \in [\lambda _2, \lambda _N]\).

5 B Is a Monomial Vector

We consider now the case when B is a monomial vector. Without loss of generality we assume that \(B=\mathbf {e}_1\), since we can always reduce ourselves to this case by resorting to a permutation and a rescaling that do not influence the problem solvability, only the value of the specific solution.

Proposition 19.3

Assume that \(B=\mathbf {e}_1\) and denote by \(A_{22}\) the principal submatrix obtained from A by deleting its first row and column.

  1. (i)

    If the positive consensus problem is solvable then every eigenvalue of \(A_{22}\) with nonnegative real part has geometric multiplicity equal to 1;

  2. (ii)

    If \(A_{22}\) is Hurwitz, then the positive consensus problem is solvable.

Proof

(i) Assume that the positive consensus problem is solvable and suppose by contradiction that there exists \(\mu \in \sigma (A_{22})\) with \(\mathfrak {R}\{{\mu }\}\ge 0\) and geometric multiplicity \(d>1\). Partition the matrix A as:

$$ A=\begin{bmatrix} a_{11}&\mathbf {r}^\top \\ \mathbf {c}&A_{22} \end{bmatrix}, $$

where \(a_{11}\in \mathbb R\), \(\mathbf {r},\mathbf {c}\in \mathbb R_+^{n-1}\) are nonnegative vectors, and \(A_{22}\in \mathbb R^{(n-1)\times (n-1)}\) is a Metzler matrix. Partition the feedback matrix \(K\in \mathbb R^{1\times n}_+\), \(0\le K\le K^*\), in a consistent way, namely as \( K=\begin{bmatrix}k_1&\mathbf{k}_2\end{bmatrix}, \) where \(\mathbf{k}_2\in \mathbb R^{1\times (n-1)}_+\). Now, notice that for every \(i\in \mathopen {[}2,N\mathclose {]}\) the characteristic polynomial of \(A-\lambda _iBK\) can be written as

$$\begin{aligned} \det (sI_n-A+\lambda _iBK)= & {} \det (sI_n-A)+\lambda _iK\mathrm{adj}(sI_n-A)B \\= & {} \det (sI_{n-1}-A_{22})\left[ s-a_{11}-\mathbf{r}^\top (sI_{n-1}-A_{22})^{-1}{} \mathbf{c}\right] \\+ & {} \lambda _i\begin{bmatrix}k_1&\mathbf{k}_2\end{bmatrix}\begin{bmatrix}\det (sI_{n-1}-A_{22})\\ \mathrm{adj}(sI_{n-1}-A_{22})\mathbf{c}\end{bmatrix} \\= & {} (s-a_{11}+\lambda _i k_1)\det (sI_{n-1}-A_{22}) \\+ & {} \left( \lambda _i\mathbf{k}_2-\mathbf{r}^\top \right) \mathrm{adj}(sI_{n-1}-A_{22})\mathbf{c}. \end{aligned}$$

If \({\mu }\in \sigma (A_{22})\), then \(\det ({\mu }I_{n-1}-A_{22})=0\) and, since the geometric multiplicity of \(\mu \) as an eigenvalue of \(A_{22}\) is \(d>1\), it also holds that \(\mathrm{adj}({\mu }I_{n-1}-A_{22})=0\), and hence \(\det ({\mu }I_n-A+\lambda _iBK)=0\) for every \(K\in \mathbb R^{1\times n}_+\), which contradicts the assumption of the solvability of the positive consensus problem.

(ii) It is the same as the proof of the sufficiency part of Proposition 7 in [18].

Differently from the case \(\lambda _2 \le \ell ^*\), the Hurwitz condition on the submatrix \(A_{22}\) is sufficient for the problem solvability, but it is not necessary, as shown in Example 19.3 below.

Example 19.3

Consider the positive single-input agent

$$ \dot{\mathbf x}_i(t)=A\mathbf x_i(t)+Bu_i(t)=\begin{bmatrix} -1&1&0\\ 0&0&1\\ 0&2&-1 \end{bmatrix} \mathbf x_i(t)+\begin{bmatrix} 0\\ 0\\ 1 \end{bmatrix}u_i(t) $$

Notice that A is a Metzler and non-Hurwitz matrix and that the pair (AB) is stabilizable. Consider \(N=3\) agents and the same adjacency matrix as in Example 19.2, so that \(\ell ^*=2\) and \(\lambda _2=\lambda _3=3\). \(B = \mathbf{e}_3\) and the matrix \(A_{11}\), obtained from A by deleting the third row and the third column, is non-Hurwitz, however this does not preclude the problem solvability. If we consider

$$A-\ell ^* BK=\begin{bmatrix} -1&1&0\\ 0&0&1\\ -2k_1&2- 2k_2&-1-2k_3 \end{bmatrix} $$

we notice that \(K^*=\begin{bmatrix} 0&1&+\infty \end{bmatrix}\). It is easy to verify that the positive consensus problem is solvable since for \(K= \begin{bmatrix} 0&1&0 \end{bmatrix} \in \mathbb R^{1\times 3}\), with \(0 \le K \le K^*\), we get

$$ A-\lambda _2BK= A-\lambda _3 BK =\begin{bmatrix} -1&1&0\\ 0&0&1\\ 0&-1&-1 \end{bmatrix} $$

which is Hurwitz. \(\clubsuit \)

6 Second-Order Agents

We investigate now the case when the agents are modelled by a second-order (positive) linear system, i.e.

$$\begin{aligned} \dot{\mathbf x}_i(t)=A\mathbf x_i(t)+Bu_i(t)=\begin{bmatrix}a_{11}&a_{12}\\ a_{21}&a_{22}\end{bmatrix}\mathbf x_i(t)+\begin{bmatrix}b_1\\ b_2\end{bmatrix}u_i(t), \end{aligned}$$
(19.5)

with \(a_{12}, a_{21}, b_1\) and \(b_2\) nonnegative real numbers. Recalling that any matrix \(M\in \mathbb R^{2\times 2}\) is Hurwitz if and only if \(\mathrm {tr}(M)<0\) and \(\det (M)>0\), after elementary manipulations it can be seen that for every \(A\in \mathbb R^{2\times 2}\), \(B\in \mathbb R^2\) and \(K\in \mathbb R^{1\times 2}\), the matrix \(M:=A-\lambda BK\) is Hurwitz if and only if

$$\begin{aligned} \left\{ \begin{array}{rcl} \lambda KB&{}>&{}\mathrm {tr}(A);\\ \lambda K\mathrm {adj}(A)B&{}<&{}\det (A). \end{array} \right. \end{aligned}$$
(19.6)

This simple observation leads to the following Lemma.

Lemma 19.3

[18] Given \(A\in \mathbb R^{2\times 2}\) and \(B\in \mathbb R^2\) and \(K\in \mathbb R^{1\times 2}\), for every choice of the \(N-1\) positive real numbers \(0< \lambda _2\le \lambda _3 \le \dots \le \lambda _N\), the following facts are equivalent:

  1. (i)

    \(A-\lambda BK\) is Hurwitz for every \(\lambda \in \mathopen {[}\lambda _2,\lambda _N\mathclose {]}\);

  2. (ii)

    \(A-\lambda _i BK\) is Hurwitz for every \(i\in \mathopen {[}2,N\mathclose {]}\);

  3. (iii)

    \(A-\lambda _i BK\) is Hurwitz for \(i=2,N\).

As a straightforward consequence of Lemma 19.3 and of the fact that \(KB \ge 0\) (and hence \(\lambda _N KB \ge \lambda _2 KB\)), it follows that for two-dimensional agents the set of feedback matrices that solve the positive consensus problem is the set of matrices \(K\in \mathbb {R}^{1\times 2}\) that satisfy the following LMIs:

$$\begin{aligned} K^*\ge & {} K \quad \ge 0;\\\lambda _2 KB> & {} \mathrm {tr}(A);\\\det (A)> & {} \lambda _i K\mathrm {adj}(A)B, \qquad i=2,N. \end{aligned}$$

This ensures that the set of solutions is necessarily convex.

When the agents are described by second-order state-space models the case of B monomial can be completely solved. To this aim recall that from Proposition 19.3 part (ii) it follows that condition \(a_{22}<0\) ensures the solvability of the positive consensus problem, but as we have shown this is not a necessary condition. So, in the following we assume \(a_{22}\ge 0\), \(\ell ^* < \lambda _2\), and investigate under which additional conditions on the matrix A and on the interconnection topology the positive consensus problem is solvable.

Proposition 19.4

Assume that \(B=\mathbf {e}_1\), \(A_{22}=a_{22}\ge 0\) and \(\ell ^* < \lambda _2\). Then, the positive consensus problem for second-order agents is solvable if and only if \(a_{21} >0\) and the following condition holds:

$$\begin{aligned} \max \left\{ 0,\frac{\mathrm{tr}(A) a_{22}}{\lambda _2}\right\} < \frac{a_{12}a_{21}}{\ell ^*} + \min \left\{ \frac{\det (A)}{\lambda _2}, \frac{\det (A)}{\lambda _N}\right\} . \end{aligned}$$
(19.7)

When so, there is always a solution of the form \(K= \begin{bmatrix} \max \left\{ 0,\frac{\mathrm{tr}(A) a_{22}}{\lambda _2}\right\} + \epsilon&\frac{a_{12}}{\ell ^*}\end{bmatrix},\) with \(\epsilon >0\) and arbitrarily small.

Proof

Note first that as \(B=\mathbf{e}_1\) and \(a_{22} \ge 0\), if the positive consensus problem is solvable, then \(a_{21}\) must be positive, otherwise \(a_{22}\) would be an eigenvalue of every matrix \(A-\lambda _i BK, i\in [2,N]\). Conversely, it is easy to see that condition (19.7) implies \(a_{21}>0\). So, in the following we will assume \(a_{21}> 0\). Set \(K=\begin{bmatrix}k_1&k_2\end{bmatrix}\). Then \(KB=k_1\), \(K^*= \begin{bmatrix} +\infty&\frac{a_{12}}{\ell ^*}\end{bmatrix}\), and the previous LMIs become

$$\begin{aligned} k_1 \ge 0, \quad k_1 > \frac{\mathrm{tr}(A)}{\lambda _2}, \quad \frac{a_{12}}{\ell ^*} \ge k_2 \ge 0, \end{aligned}$$
(19.8)
$$\begin{aligned} \begin{bmatrix}k_1&k_2\end{bmatrix} \begin{bmatrix} a_{22}\\- a_{21}\end{bmatrix} < \min \left\{ \frac{\det (A)}{\lambda _2}, \frac{\det (A)}{\lambda _N}\right\} . \end{aligned}$$
(19.9)

It is clear that, as \(a_{21} >0\), inequality (19.9) holds if and only if it holds for \(k_2=k_2^*= \frac{a_{12}}{\ell ^*}.\) So, inequality (19.9) becomes

$$\begin{aligned} k_1 a_{22} < \frac{a_{12}a_{21}}{\ell ^*} + \min \left\{ \frac{\det (A)}{\lambda _2}, \frac{\det (A)}{\lambda _N}\right\} . \end{aligned}$$
(19.10)

If \(\mathrm{tr}(A) <0\) then the only constraint on \(k_1\) is the nonnegativity and condition (19.10) holds if and only if it holds for \(k_1=0\). And if this is the case it also holds for \(k_1=\epsilon \), with \(\epsilon >0\) and arbitrarily small. On the other hand, if \(\mathrm{tr}(A) \ge 0\), then the problem is solvable if and only if it is solvable by assuming \(k_1=\frac{\mathrm{tr}(A)}{\lambda _2} + \epsilon \), with \(\epsilon >0\) arbitrarily small, and this happens if and only if

$$\frac{\mathrm{tr}(A)}{\lambda _2} a_{22} < \frac{a_{12}a_{21}}{\ell ^*} + \min \left\{ \frac{\det (A)}{\lambda _2}, \frac{\det (A)}{\lambda _N}\right\} .$$

When the N agents are described by a second-order state-space model, \(B=\mathbf {e}_1\), \(A_{22}=a_{22}>0\), and the communication among them is described by \(\mathscr {G}_N\), Proposition 19.4 allows us to draw the following conclusion concerning the number of agents.

Corollary 19.1

Assume that \(B=\mathbf {e}_1\), \(A_{22}=a_{22} > 0\) and the communication graph is described by the complete undirected and unweighted graph \(\mathscr {G}_N\) (and hence \(\ell ^* < \lambda _2\)). Then, there exists \(\bar{N}\) such that for every \(N\ge \bar{N}\) positive consensus cannot be reached.

Proof

The Laplacian of \(\mathscr {G}_N\) has \(\ell ^*=N-1\) and eigenvalues \(\lambda _2=\dots =\lambda _N=N\). So, condition (19.7) becomes

$$\max \left\{ 0,\frac{\mathrm{tr}(A) a_{22}}{N}\right\} < \frac{a_{12}a_{21}}{N-1} + \frac{\det (A)}{N},$$

and it implies \(a_{22}^2< \frac{1}{N-1} a_{12}a_{21}.\) Clearly, the term on the right goes to 0 as N tends to \(+\infty \), while \(a_{22}^2>0\). So, there exists \(\bar{N}\) such for every \(N\ge \bar{N}\) the previous inequality and hence condition (19.7) do not hold, i.e. positive consensus cannot be reached.

Example 19.4

Consider the positive single-input agent

$$ \dot{\mathbf x}_i(t)=A\mathbf x_i(t)+Bu_i(t)=\begin{bmatrix} -1&1\\ 3&1 \end{bmatrix} \mathbf x_i(t)+\begin{bmatrix} 1\\ 0 \end{bmatrix}u_i(t) $$

Assume that the communication among the agents is described by \(\mathscr {G}_N\): it follows from (19.7) that for every \(N\ge \bar{N}=4\) the positive consensus problem is not solvable.