Next Article in Journal
Maximum Doppler Shift Identification Using Decision Feedback Channel Estimation
Previous Article in Journal
AffectiVR: A Database for Periocular Identification and Valence and Arousal Evaluation in Virtual Reality
Previous Article in Special Issue
Aggregators Used in Fuzzy Control—A Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Distributed Algorithm for Reaching Average Consensus in Unbalanced Tree Networks

by
Gianfranco Parlangeli
Department of Engineering for Innovation, University of Salento, Via per Monteroni, 73100 Lecce, Italy
Electronics 2024, 13(20), 4114; https://doi.org/10.3390/electronics13204114
Submission received: 13 August 2024 / Revised: 8 October 2024 / Accepted: 14 October 2024 / Published: 18 October 2024
(This article belongs to the Special Issue New Insights in Multi-Agent Systems and Intelligent Control)

Abstract

:
In this paper, a distributed algorithm for reaching average consensus is proposed for multi-agent systems with tree communication graph, when the edge weight distribution is unbalanced. First, the problem is introduced as a key topic of core algorithms for several modern scenarios. Then, the relative solution is proposed as a finite-time algorithm, which can be included in any application as a preliminary setup routine, and it is well-suited to be integrated with other adaptive setup routines, thus making the proposed solution useful in several practical applications. A special focus is devoted to the integration of the proposed method with a recent Laplacian eigenvalue allocation algorithm, and the implementation of the overall approach in a wireless sensor network framework. Finally, a worked example is provided, showing the significance of this approach for reaching a more precise average consensus in uncertain scenarios.

1. Introduction

In the last decades, research on the collective behavior of a team of agents through iterative local interactions has been intense, due to the significance of applications in a wide range of fields, from computer science to social networks, from complex technological networks (e.g., electric smart grid), to biological ecosystems [1]. In each framework, a fundamental property to reach agreement among all agents through local interactions is the consensus condition, which happens when all agents recursively update a local variable using local information to asymptotically obtain a common value for all participants [2].
One special yet fundamental consensus condition regards the value of such agreements as a function of the initial conditions of all nodes, and, in particular, the average of all initial conditions of the agents is known in the literature as the average consensus [3,4]. This special condition is adopted in a large number of applications of distributed estimation, WSN algorithms, robotics, and many more [5].
Average consensus represents the natural equilibrium for a multi-agent system when the communication graph is undirected and unweighted, or more generally, when it is weight-balanced. This condition enables the distributed achievement of various fundamental goals [1]. Even though the average consensus is a well-known condition of a multi-agent system, it is still discussed and debated over the years until our days due to its importance. In [6], the authors study the privacy-preserving problem, namely an algorithm ensuring to reach exact average consensus while keeping the initial state of each agent private. The problem of average consensus is studied in [7] in the presence of communication link failures, and in [8], the same problem is studied in the presence of node faults. In [9,10], the average consensus problem is studied within the wireless sensor network application framework.
Unfortunately, one fundamental limitation when dealing with classical average consensus through the use of undirected communication graphs with the traditional symmetric edge weight assignment is a limited convergence rate, which significantly decreases when the number of participants grows [5]. This condition leads to a prolonged convergence time, which, in practice, can render consensus unattainable when factoring in the inevitable communication delays, computational errors, or agent faults over extended periods [8,11].
However, the practical significance of this condition for the large number of the applications referenced above pushed the scientific community to a significant effort to derive sophisticated algorithms for general unbalanced graphs, as, for example, through the use of additional state variables [12], dedicated atomic transactions between pairs of neighbors [13], a chain of two integrators that are coupled with a distributed estimator [14] average tracking with incomplete measurement through a distributed averaging filter and a decentralized tracking controller [15], and recently also considering signed networks [16].
In the last few years, advances have been made in adopting the strategy of assigning asymmetric weights to neighbors’ edges [17]. Indeed, it was found that a proper choice of asymmetric weights can significantly improve the convergence rate, even over the symmetric optimal design [18], and it makes the convergence rate independent of the size of the graph with asymmetric weights, which is in striking contrast with the fundamental limitations of symmetric weights [1]. On the other hand, the choice of asymmetric weights makes the network converge to a different function of the nodes rather than the average of the initial conditions.
In general, there are several scenarios where edge weight asymmetry should be taken into account, other than design choice. Indeed, empirical research clearly shows that real-world networks usually have a large heterogeneity in the intensity or capacity of connections (and hence weights of the links) [19]. These asymmetries are related to defects and uncertainties in the network, and they result in an inaccurate and biased consensus condition (namely, the asymptotic values of network nodes are only roughly close to each other). The technique proposed in this paper can be useful in these scenarios, as it would produce a much more precise consensus value.
The theoretical backbone of the proposed approach is the distributed estimation of the Perron vector, which allows for a scaling of the initial conditions to reach an average consensus, thus combining the beneficial effects of asymmetric edge weight assignment with the large practical applications of average consensus problems. It is worth remarking that the use of the Perron vector to achieve a more precise average estimation is adopted also in [20] to compensate for inaccurate sensor readings. The results developed in this paper are inspired by [21], as described in detail in Section 3. The approach proposed in this paper can be combined with an asymmetric design of the edge weights as in [22] to achieve the ambitious goal of average consensus with prescribed dynamics, as explained in the Problem Statement description; analogous design techniques have recently been adopted to achieve prescribed-time consensus [23].
This paper is organized as follows. After a brief description of the notation hereafter, in Section 2, some motivating examples of the research pursued in this paper are described, and hence, two facets of the problem are stated. In Section 3, the main theoretical results are provided for two graph topologies, namely path graphs and star graphs, which are prodromal for the inductive general solution, whose theoretical backbone is given in Section 4. These results are then exploited in Section 5, where the iterative algorithm is deduced through a worked example. A final simulation is provided in Section 6, where the application of the results to an uncertain WSN network, computing the average value of an environmental quantity, shows the effectiveness of the proposed results to achieve a more precise consensus value.

Notation

Here, we briefly describe the notation adopted in this paper. We denote by N , R , R 0 , R + the set of natural, real numbers and non-negative real numbers, and positive real numbers. We denote by 0 d , d N the d-dimensional vectors with components equal to 0 and by 1 d those vectors whose components are all 1. 0 d 1 × d 2 2 , d 1 , d 2 N , is the d 1 × d 2 matrix made by all zero entries. Vector e i denotes the i-th canonical vector, e.g., e 1 = 1 0 0 . Vectors are denoted in bold letters. For a vector v R d , we denote v i the ith component of v so that v = [ v 1 . . . v d ] . The spectral radius of A is the maximum modulus of its eigenvalues, namely ρ A = max i { 1 , n } { | λ i |   where   λ i Λ A } .
A non-negative (positive) matrix A R n × n satisfies [ A ] i j 0 ( [ A ] i j > 0 ). A permutation matrix P is a matrix obtained by permuting the rows of the n × n identity matrix. A non-negative matrix A R n × n is reducible if there exist a permutation matrix P such that the matrix P A P is in block triangular form, i.e.,
P A P = B 11 B 12 0 B 22 ,
where B 11 , B 22 are square matrices. An irreducible matrix is a matrix that is not reducible. A non-negative matrix A R n × n is primitive if there exists a positive integer m such that A m > 0 .
A graph G = ( V , E ) is made of a vertex set  V = { 1 , 2 , , n } and an edge set E V × V . It is undirected if ( j , i ) E if and only if ( i , j ) E . The neighbors set of a node i V is defined as N i = { j V | ( i , j ) E } . A path connecting vertex j 1 with j k + 1 is a subset of nodes connected by graph edges { j V such that ( j , j + 1 ) E } | [ 1 , k ] . An undirected graph G is connected if there is a path connecting i and j for every pair of vertices i , j V such that i j .
An undirected graph T with no cycles is called a tree if it is connected, otherwise it is called a forest. For a vertex w of a tree T , T w denotes the forest obtained from T by deleting w, and it is made of | N w | trees. For any v neighbor of w, v N w , T v denotes the subtree of T w having v as a vertex. The center (or Jordan center) of a graph is the set of all vertices u V where the greatest distance d ( u , v ) to other vertices v V is minimal. Equivalently, it is the set of vertices with eccentricity equal to the graph’s radius. Every tree has a center consisting of one vertex or two adjacent vertices. The center is the middle vertex or middle two vertices in every longest path.
For a graph G = ( V , E ) , the adjacency matrix  A R n × n is the matrix [ A ] i j = 1 if ( i , j ) E and [ A ] i j = 0 if ( i , j ) E , the weighted adjacency matrix as [ A w ] i j = α i j with α i j > 0 if ( i , j ) E and [ A w ] i j = 0 if ( i , j ) E . The weighted Laplacian matrix is built upon the rule [ L w ] i j = [ A w ] i j if i j , [ L w ] i i = j = 1 , i j n [ A w ] i j . By construction, L w 1 = 0 , i.e., the Laplacian is a zero-row-sum matrix. In the following, given a graph G , L w ( G ) denotes the set of all n × n  zero-row-sum G -structured square matrices. There are connections between the properties of non-negative matrices and their related graphs explaining their zero-nonzero pattern, as the following result shows [1]:
Lemma 1.
A matrix A R n × n is irreducible if and only if its relative graph G A encoding its zero-nonzero pattern is strongly connected.

2. Motivating Examples

In this section, we introduce the abstract mathematical framework of our problem, namely average consensus for a multi-agent system running a distributed iterative algorithm to accomplish a global task, which is usually in terms of network coordination or synchronization. After that, several applications in modern fields adopting the described framework are reported.

2.1. Multi-Agent Systems Running Consensus Algorithms

Here, we introduce the mathematical framework of multi-agent systems running a consensus algorithm [1,2].
This setting is made of a set of N nodes, each holding a variable x i ( t ) , i { 1 , , N } updated as x ˙ i ( t ) = u i ( t ) where u i ( t ) is set by each node i to update its value. Some nodes of the team can communicate between themselves, and two neighbor nodes i, j are able to exchange their values. In this setting, each node i assigns as input u i ( t ) = j N i k i j ( x j ( t ) x i ( t ) ) where k i j are set by node i. The resulting evolution of the team can be effectively computed using the aggregate vector x R N chosen as [ x ] i ( t ) = x i ( t ) , and updated as x ˙ ( t ) = L κ x ( t ) , which gives rise to the Laplacian flow [1], as follows:
x ( t ) = Φ ( t ) x ( 0 ) , Φ ( t ) = e L κ t = i = 0 ( L κ ) i t i i ! ,
for a L κ in the set L w . Network evolution is dictated by the spectrum of L κ [24]. It is worth mentioning that the design of asymmetric gains was recently proposed [18,25,26] as a key feature to improve the convergence rate.
Other multi-agent processes are better described by discrete updates of a local quantity, namely x ( t + 1 ) = ( I γ L κ ) x ( t ) , where γ R + is called coupling factor, and it must be sufficiently small to keep the system stable [1], and analogously in this case one obtains the following global evolution:
x ( t ) = Φ ( t ) x ( 0 ) , Φ ( t ) = I γ L κ t .
Both in case of (1) and (2), matrix Φ ( t ) shows some interesting properties inherited from the properties of L κ that L κ 1 = 0 , w L k L κ = 0 , namely [1]:
Φ 1 = 1 , w L k Φ = w L k ,
and matrix Φ ( t ) is positive if G is strongly connected. Moreover, even if the eigenvalues of matrix Φ ( t ) are related to those of L k according to λ Φ = e λ L k t for systems (1) and λ Φ = ( 1 γ λ L k ) t when dealing with (2), eigenvectors of (1) and (2) do coincide.
By direct consequence of (3), system (1) and (2) are called consensus networks, namely for every choice of the initial conditions x i ( 0 ) , i = 1 , 2 , , N , there exists α R such that
lim t + x i ( t ) = α , i { 1 , , N } ,
or, equivalently, lim t + x ( t ) = α 1 N , α R . The constant α is called the consensus value (or collective decision) [2] for system (1), corresponding to the given initial conditions. The consensus value is a key tool in many applications, indeed it encapsulates a global information, equal to
α = w L k x ( 0 ) w L k 1 N ,
where w L k is a left eigenvector of Φ ( t ) associated to the unitary eigenvalue and satisfying the normal condition w L k 1 = 1 [27]. In a wide number of applications, it holds w L k = 1 N 1 and Equation (5) simplifies to the average of the initial conditions of the whole network, i.e.,
α = i = 1 N x i ( 0 ) N ,
and we refer to this condition as average consensus.
Average consensus has become a very popular and significant tool in many applications, as for example, sensor fusion and data aggregation, distributed optimization and machine learning, collective motion, vehicle coordination, and more [1]. However, one main issue of multi-agent systems running standard consensus protocols is a low convergence rate, which is related to the algebraic connectivity of graph G , and it is often a key limiting feature of the original consensus protocol [1].
The fundamental mathematical background for our analysis is the renowned Perron–Frobenius Theorem [1]:
Theorem 1
(Perron–Frobenius). Let A R n × n be an irreducible non-negative matrix. Then
  • A has a positive eigenvalue equal to ρ ( A ) , and it is a simple eigenvalue of A.
  • The left and right eigenvectors relative to the eigenvalue ρ ( A ) are positive.
It is worth remarking that, for any non-negative matrix A R n × n , ρ ( A ) is an eigenvalue of A and the right and left eigenvectors of λ = ρ ( A ) can be selected as non-negative. If A is additionally irreducible, then the multiplicity of λ = ρ ( A ) is one and the relative left and right eigenvector are strictly positive and uniquely determined (up to a scalar factor).
In general, the positive left and right eigenvectors relative to the eigenvalue ρ ( A ) are called left and right Perron vectors. However, considering Equation (3), vector 1 is always a right eigenvector of Φ so that in the following, we refer to the left eigenvector of 1 = ρ ( A ) as the Perron vector of Φ (e.g., vector w L κ in Equation (3)).
In the remainder of this paper, for a given Laplacian matrix L w related to a connected graph G , we denote by w its left eigenvector corresponding to λ = 0 . If matrix L w is the generator of a dynamical flow x ( t ) = e L w x ( 0 ) , then w is the Perron vector of the positive matrix e L w , and with a little abuse of notation we refer to w as the Perron vector of L w .
The importance of the Perron vector in such applications is that it explains how the final distribution is [28], so it allows for detecting aggregations, clusters, or, conversely, the weight of each node influence on the asymptotic consensus value.
In the following, we provide some recent technological applications where the above framework has been exploited to design decentralized average consensus algorithms.

2.2. Some Examples of Modern Applications

The above setting is the abstract representation of several technological modern applications, where average consensus is the key methodology for distributed algorithm architectures, as described in the following.
In [5], the authors survey the scientific literature on distributed estimation and control applications using linear consensus algorithms. In this paper, there are interesting examples of how some classical estimation and control problems can be rephrased as the average value of some suitable quantities, thus allowing for being efficiently computed in a distributed fashion through average consensus algorithms.
Average consensus is the key strategy for sharing global information through local interactions. In the field of wireless sensor networks, clock synchronization is a fundamental problem and it can be efficiently solved through consensus [29]. In [30], the same synchronization problem is solved through average consensus in IoT applications. Within the above application scenarios, average consensus is also adopted for achieving the estimation of an environmental quantity [13].
In the field of electric grids, smart power grids, and renewable energies, average consensus-based algorithms are widely adopted for the following fundamental issues: generator synchronization [31], economic dispatch [32], and clock synchronization [33].
Finally, several tasks of great value in the area of robotic networks can be accomplished through the exploitment of average consensus. Among the others, it is worth mentioning rendezvous and, conversely, the deployment of a team of robots, which is fundamental for surveillance and, in general, for coverage purposes. Also, attaining and keeping a formation can be executed through properly designed average consensus protocols, without recurring to a supervisory device [34].

2.3. Problem Statement

Inspired by the applications discussed in the previous paragraph, we are now ready to state the problem that we afford in the remainder of this paper.
  • Problem Statement 1.
    Given a weighted Laplacian matrix L κ L of a tree graph T , compute the (left) Perron vector of the positive matrix Φ ( t ) , either in the case of (1) or (2).
    However, in view of the motivations discussed above and considering the applications described so far, Problem Statement 1 can be rephrased in a more application-oriented engineering fashion, as follows:
  • Problem Statement 2.
    Given a weighted tree graph T = ( V , E ) and a multi-agent system (either (1) or (2)) running consensus algorithm so that each node asymptotically reaches the value α as in (4) with α equal to (5), compute a set of scaling factors ζ i , i = 1 , , N such that the state vector χ ( t ) defined as ( χ ( t ) ) i = ( x ( t ) ) i ζ i converges to χ ( t ) t α 1 with α = i = 1 N x ( 0 ) N , thus solving the average consensus problem for the original problem.
    The above two problems are indeed two facets of the same argument, the first formulation being closer to a mathematical fashion while the second one is stated in an engineering style. It is worth noting that Statement 2 can also be effectively encapsulated in the Problem Statement of [22], which is related to the Laplacian eigenvalue allocation by a proper asymmetric edge weights assignment, so that the two problems can be integrated into each other as follows:
  • Problem Statement 2-bis. Given a tree graph T = ( V , E ) , and one node triggering the distributed algorithm in [35] to allocate the Laplace spectrum and grounded Laplacian to, resp., λ i and μ i R (satisfying 0 < μ 1 < λ 2 < < μ n 1 < λ n ), compute a set of scaling factors ζ i , i = 1 , , N such that the state vector χ ( t ) defined as ( χ ( t ) ) i = ( x ( t ) ) i ζ i converges to χ ( t ) t α 1 with α = i = 1 N x ( 0 ) N , thus solving the average consensus problem with prescribed dynamics adopting the asymmetric weight distribution.
Remark 1.
The connection and equivalence of the different Problem Statements stated above is clearly established by considering Equations (5) and (6). Namely, the asymptotic value of χ ( t ) is χ ( t ) t α 1 with α = i = 1 N w χ ( 0 ) w 1 , so that, considering that ( χ ( 0 ) ) i = ( x ( 0 ) ) i ζ i and imposing
w 1 w 1 χ 1 ( 0 ) + w 2 w 1 χ 2 ( 0 ) + = 1 N x 1 ( 0 ) + 1 N x 2 ( 0 ) + ,
one has that the system evolution seeks average consensus for any set of initial conditions x i ( 0 ) if the scaling factors ζ i are set equal to
ζ i = N w i 1 w .
Remark 2.
Even if it is not explicitly stated in the above Problem Statement, a further feature of the proposed algorithm is that it can be implemented distributedly, namely, each component of the scaling vector can be computed through the use of local data.

3. Problem Solution

We start by seeking the solution of some special topologies, namely path graphs and star graphs, which constitute the topology of the most peripherical branches of any tree, as well as widely adopted graph topologies in general [1]. We further extend the solution to a generic n tree graph.
In the case of path and star graph, we are able to provide the full characterization of the Perron vector by exploiting some recent mathematical results concerning structured matrix manipulation and inversion.
On the other hand, the general solution for tree graphs is inductive, and it can be implemented through an iterative algorithm.

3.1. Solution for Path Graphs

The Laplacian matrix of path graphs is a special case of tridiagonal matrix, so the theoretical background for the construction of the solution is based on [36], adapted to the special structure of our matrices. The following statement is proven in [36], and it is our main mathematical tool to obtain the explicit solution of the path graph.
Proposition 1
([36]). Consider the following tridiagonal matrix:
L = a 1 b 1 0 c 1 a 2 b 2 b n 1 0 c n 1 a n ,
and assume that L is nonsingular. Build the two following sequences:
θ i = a i θ i 1 b i 1 c i 1 θ i 2 , for i = 2 , , n , with   initial   conditions θ 0 = 1   and   θ 1 = a 1 ,
and
φ i = a i φ i + 1 b i c i φ i + 2 , for i = n 1 , , 1 , with   initial   conditions φ n + 1 = 1   and   φ n = a n ,
then, the inverse of matrix L can be computed using the following formula:
[ L 1 ] i j = [ l ] ( 1 ) i + j b i b j 1 θ i 1 φ j + 1 / θ n , i f i < j , θ i 1 φ j + 1 / θ n , i f i = j , ( 1 ) i + j c j c i 1 θ j 1 φ i + 1 / θ n , i f i > j .
It is possible to exploit the above result for the computation of the Perron vector in the case of path graphs, as follows.
Proposition 2.
Let α i , j R + , and consider the Laplacian matrix:
L w = α 1 , 2 α 1 , 2 α 2 , 1 a 2 , 2 α ( n 1 ) , n 0 α n , ( n 1 ) α n , ( n 1 ) ,
with diagonal entries a i , i = α i , ( i 1 ) + α i , ( i + 1 ) for i = 2 , , n 1 . The corresponding (left) Perron vector is equal to
w = κ 1 α 12 α 21 α 23 α 12 α 32 α 21 j = 2 i α ( j 1 ) , j α j , ( j 1 ) , κ R { 0 } .
Proof. 
The proof is conducted by direct inspection on the relation w L w with L w as in (10) for a nonzero w R n . Consider the partition of L w as follows:
L w = α 12 | L 1 * L * 1 | L 1 ,
with L 1 * = α 12 0 0 , L * 1 = α 21 0 0 and
L 1 = α 2 , 1 + α 23 α 2 , 3 0 α 3 , 2 a 3 , 3 0 α ( n 1 ) , n 0 α n , ( n 1 ) α n , ( n 1 ) ,
so that, taking w = w 1 w 1 ˜ with w 1 R , w 1 ˜ R n 1 , one has
w L w = 0 w 1 α 12 + w 1 ˜ L * 1 = 0 w 1 L 1 * + w 1 ˜ L 1 = 0 ;
from the second relation it is possible to parametrize w as
w = κ 1 L * 1 L 1 1 , with κ R { 0 } .
Considering that L 1 * = α 12 e 1 , it is possible to find an explicit expression for (13) by computing the first row of L 1 1 through (9) to obtain
L * 1 L 1 1 = α 12 1 α 21 α 23 α 21 α 32 α 23 α ( n 1 ) , n α 21 α 32 α n , ( n 1 ) ,
so that, putting together (13) with (14), Equation (11) follows. □

3.2. Solution for Star Graphs

The explicit parametric structure of the Perron vector can be easily computed by direct inspection in the case of star graphs. Indeed, it holds
Proposition 3.
Let G be a star graph having n rays, and suppose that the central node is selected as the first node. Let L w be its corresponding Laplacian matrix for any choice of edge weights, so that
L w = a 11 α 12 α 1 n α 21 α 21 0 0 α n 1 0 α n 1 ,
where
a 11 = j = 2 n α 1 j .
Then, the corresponding Perron vector is equal to
w = κ 1 α 12 α 21 α 13 α 31 α 1 , ( j + 1 ) α ( j + 1 ) , 1 , κ R { 0 } .
Proof. 
The proof is conducted by direct inspection on the relation w L w , with L w as in (15) for a nonzero w R n . Consider the partition of L w as
L w = a 11 | L 1 * L * 1 | L 1 ,
with L 1 * = α 12 α 13 α 1 n , L * 1 = α 21 α 31 α n 1 and
L 1 = α 2 , 1 0 0 α 3 , 1 0 0 0 0 0 α n , 1 = diag ( { α j , 1 } | j = 2 , . . , n ) ,
so that, taking w = w 1 w 1 ˜ with w 1 R , w 1 ˜ R n 1 , it is possible to analogously parametrize w as
w = κ 1 L * 1 L 1 1 with κ R { 0 } .
and considering (17) and (18), one has
L * 1 L 1 1 = α 12 α 21 α 13 α 31 α 1 n α n 1 .
Putting together Equation (19) with Equation (18), Equation (16) follows. □

4. A Recursive General Solution Tree Graphs

In this section, we derive a solution for a general tree graph T . The structure of the solution in such a case is not in a closed form as for path and star graphs, but it is based on an inductive process over N , so that the resulting algorithmic solution is recursive. The proposed approach is inspired by the subdivision of the computation of the Perron vector into smaller problems of [21], and it perfectly fits the eigenvalue allocation algorithm in [22], so it can be integrated into the final algorithmic solution, thus solving the ambitious problem of eigenvalue allocation for average consensus problems.
Proposition 4.
Consider a tree graph T , L w its corresponding weighted Laplacian, let node 1 be a reference node with neighbor set N 1 = { i 1 , . . , i } , so that = | N 1 | . Let T j , j = 1 , , represent the subtrees of T after remotion of node 1, each made of j = | T j | nodes, and finally L w j R j × j the submatrix of L w being the Laplacian of T j .
If we denote by w = w 1 w ˜ 1 w ˜ a Perron vector for T , where w 1 R and each w ˜ j R j , then it holds that
  • Each w ˜ j is a Perron vector for each L w j ;
  • The first component of each w ˜ j satisfies
    w ˜ j 1 = w 1 α 1 i j α i j 1 , j = 1 , , .
Proof. 
Let N 1 = { i 1 , . . , i } , so that convenient labeling allows for writing the Laplacian matrix without loss of generality as
L w = a 11 α 1 i 1 0 α 1 i 0 α i 1 1 0 L ¯ i 1 0 i 1 × i α i 1 0 0 i × i 1 L ¯ i ,
where L ¯ i = L T i + α i i 1 e 1 e 1 , with L T i being the weighted Laplacian of T i , and a 11 = k = 1 α 1 i k . Now, take a vector w partitioned conformably to the Laplacian (21), so that w = w 1 w ˜ 1 w ˜ with dimension of each w ˜ i according to those of the related subtree T i , as detailed in the statement. By direct inspection of the relation w L w = 0 one obtains
k = 1 α 1 i k w 1 k = 1 ( w ˜ k ) 1 = 0 , w 1 α 1 i 0 0 + w ˜ 1 L ¯ 1 = 0 1 , w 1 α 2 i 0 0 + w ˜ 2 L ¯ 2 = 0 2 ,
and considering that w ˜ 1 L ¯ i = w ˜ 1 L T i + α i i 1 e 1 e 1 = w ˜ 1 L T i + α i i 1 w ˜ i 1 e 1 , Equation (22) can be rewritten as
k = 1 α 1 i k w 1 k = 1 ( w ˜ k ) 1 = 0 , w 1 α 1 i + α i i 1 w ˜ 1 1 0 0 + w ˜ 1 L T 1 = 0 1 , w 1 α 2 i + α i i 2 w ˜ 2 1 0 0 + w ˜ 2 L T 2 = 0 2 ,
so that, assuming that each w ˜ i satisfies w ˜ i L T i = 0 , one has
k = 1 α 1 i k w 1 k = 1 ( w ˜ k ) 1 = 0 , w 1 α 1 i + α i i 1 w ˜ 1 1 = 0 , w 2 α 2 i + α i i 1 w ˜ 2 1 = 0 ,
and hence the statement follows. □
The previous result provides the main tools for setting up an algorithm, which solves Problem 1 iteratively, though some remarks are needed to fully describe the proposed approach. In the next section, we exploit the results gained in this section, and we deduce an algorithm for the solution of Problems 1 and 2, thus achieving our main goal for this paper.

5. A Distributed Algorithm for the General Solution

The results of Section 4 are useful for establishing an iterative procedure for the distributed computation of the Perron vector. In the following, we solve Problem 1 for a worked example, which is taken from the simulation results of [35]. Then, we provide the general algorithm, based on the experience gained through the example.

5.1. An Illustrative Example

Consider the weighted tree graph in Figure 1 and Node 1 as the reference node for the algorithm execution. Considering the notation adopted in this paper, which is reported in Figure 1b, we take a vector w R 9 partitioned as
w = w 1 w ˜ 2 w ˜ 4 w ˜ 7 ,
where
w ˜ 2 L T 2 = 0 , w ˜ 4 L T 4 = 0 , w ˜ 7 L T 7 = 0 ,
and the first component of each subvector must satisfy
( w ˜ 2 ) 1 = w 1 α 12 α 21 , ( w ˜ 4 ) 1 = w 1 α 14 α 41 , ( w ˜ 7 ) 1 = w 1 α 17 α 71 .
Consider now that each subtree has the topology of either a path or a star graph, so that we can recur to the results of Section 3.1 and Section 3.2. Specifically, T 2 is either a path of two nodes (or, equivalently, a star with one ray), T 4 is a path made of three nodes, and finally, T 7 is a three-node two-ray star; thus:
w ˜ 2 = κ 1 κ 1 α 23 α 32 , w ˜ 4 = κ 2 κ 2 α 45 α 54 κ 2 α 45 α 56 α 54 α 65 , w ˜ 7 = κ 3 κ 3 α 78 α 87 κ 3 α 79 α 97 .
Combining (24) with (23), one has that the structure of w is as follows:
w = w 1 w 1 α 12 α 21 w 1 α 12 α 23 α 21 α 32 w 1 α 14 α 41 w 1 α 14 α 41 α 45 α 54 w 1 α 14 α 41 α 45 α 56 α 54 α 65 w 1 α 17 α 71 w 1 α 17 α 71 α 78 α 87 w 1 α 17 α 71 α 79 α 97 ,
for a nonzero w 1 R . We now seek the value of w 1 to match the normal condition w 1 N = 1 , which leads to:
1 = w 1 1 + α 12 α 21 1 + α 23 α 32 c T 2 + α 14 α 41 1 + α 45 α 54 + α 45 α 56 α 54 α 65 c T 4 + α 17 α 71 1 + α 78 α 87 + α 79 α 97 c T 7 ,
so that (25) solves Problem 1 with the choice
w 1 = 1 + α 12 α 21 c T 2 + α 14 α 41 c T 4 + α 17 α 71 c T 7 1 .
It is worth noting here, in view of Problem 2 and a distributed implementation of the proposed approach, that coefficients c T i are analogous coefficients related to each subtree, and indeed we can write
w 1 = c T 1 where c T = 1 + α 12 α 21 c T 2 + α 14 α 41 c T 4 + α 17 α 71 c T 7 ,
and each c T i can be analogously computed referring to the subgraphs of each T i , thus opening the path for a distributed implementation for its computation. Coefficients c T i are reminiscent of the normalizing terms in [21] called coupling factors, and in the following of this paper we use the same name.

5.2. Algorithm Description

Starting from the experience gained from the example, we now generalize the iterative algorithm to retrieve the value of the scaling factors that allow for reaching average consensus, as stated in Problem Statement 2.
Considering the solution computed in the example, and in particular Equations (26)–(28), it is straight to see that a first stage of the computation of the coupling factors should flow from the peripheral nodes to the inner ones. Indeed, each coupling factor c T i can be determined only following this order, since c T i = 1 for leaf nodes while it is unknown in advance for the other nodes. In the following, for the sake of clearness, we describe each stage separately.

5.2.1. First Stage

The first stage of the algorithm is as follows. Each leaf node starts the computation with c = 1 , and sends it to its (only) neighbor v. At each time instant, each node v V has to run the following algorithm:
  • If v has received less than | N v | 1 coefficients c w from its neighbors, node v must stay idle.
  • If v has received | N v | 1 coefficients c w from its neighbors, node v must compute
    c v = 1 + w N v α v w α w v c w ,
    and send it to the remaining neighbor.
The above computation is active until there is at least one node executing the second line, and it is easy to see that there exists an instant when a node, which we call c in the following, receives all the coefficients c v from each one of its neighbors. When this condition happens, then node c triggers the second stage of the algorithm.

5.2.2. Second Stage

As soon as one node c receives coefficients c v from all its neighbors, then it triggers the second stage of the algorithm as follows.
  • Node c makes the computation as in Equation (28), namely
    w c = 1 + v N c α c v α v c c T v 1 ,
    thus computing the component of the Perron vector corresponding to its own location w c ;
  • Node c sends the result back to its neighbors v, v N c ;
  • According to (8), node c sets its own scaling factor ζ c equal to ζ c = N w c .
Then, this latter procedure propagates from node c back to the leaf nodes. At this stage, when any node, say node j, receives w from one of its neighbors , then j prosecutes the second stage of the algorithm as follows.
  • Node j computes w j = α j α j w , namely the component of the Perron vector corresponding to its own location, according to the structure of Equation (25).
  • It sends the result back to its neighbors v but , v N j { } .
  • According to (8), node j sets its scaling factor ζ j equal to ζ j = N w j .
The above procedure prosecutes until there are still neighbor nodes, thus ending when it reaches the leaf nodes.
The above procedure allows us to compute the scaling factors for average consensus in a distributed fashion. A final issue of the above procedure is the time instant when the leaf node should start running stage one. There are several possible strategies according to the specific setting, described in the following. However, this aspect is not relevant for the algorithm execution, but only for estimation in advance of the time needed for algorithm execution.
If all the leaf nodes start synchronously at time t ¯ , then the algorithm lasts until t ¯ + 2 R , where R is the radius of the graph. In this case, the ending node is the center of the tree. However, if the leaves are not synchronized and each node has its own starting time, then the algorithm still has a finite execution, and it ends with a correct solution, though neither the execution time nor the location of the last node(s) running the algorithm can be computed in advance.
Finally, there are scenarios where one leader node is present and it can trigger the algorithm. In this latter case, our reference scenario is the Laplacian allocation algorithm in [22], where weights are set in a distributed fashion from one leader node to the leaves; however, several different frameworks are possible, also adopting a virtual leader. In this latter setting, where a leader triggers the algorithm in general, the total algorithm time execution is equal to e + 2 R , where e represents the eccentricity of the leader within the network graph.

6. Simulation Results

In this section, we show the results of the proposed approach in the consensus network described by the graph in Figure 2, where a parameter ε denotes an uncertainty term, and it is a variation in the edge value with respect to the nominal one equal to 1.
Our reference scenario for this simulation is the WSN Implementation of the average consensus algorithm as described in ([37], Figure 3), where the architecture of a wireless sensor node is sketched, allowing the scaling of the initial measurements in the preliminary initialization step (Stages I and II).
We assume to have a set of nine sensor nodes connected as depicted in Figure 2, each holding a measured quantity. The initial values are set as equal to
x ( 0 ) = 33 12 12 4 17 6 48 2 10 ,
with average value equal to i = 1 9 x i ( 0 ) / 9 = 4.667 .
The first simulation shows the results of the evolution of the system when the uncertainty parameter is ε = 0.05 . The evolution of the system is shown in Figure 3 as solid lines.
A first notable point is the magnitude of the drift of the consensus value from the initial average value. Indeed, the consensus value changes to 5.91 , which is 26.4 % away from the nominal average value, equal to 4.667 when no perturbation is present, even if the variation in the edge values was only of magnitude 5 % .
The above phenomenon is even more evident for values of ε = 0.2 . Simulation results of this case are reported in Figure 4. Indeed, in such a case the asymptotic value is equal to 10.02 , so that it is more than 100 % away from the nominal one, and it is useless even as a rough estimation of the average value.
The reason for this phenomenon is related to the variation in the Perron vector. Even if each component has limited variation, the overall weighted sum results are far from the average. The Perron vector is equal to
w = 1.5 1 0.7 1 0.7 0.7 1.5 1 1 ,
so that a suitable rescaling of the initial values according to Equation (8) provides
χ ( 0 ) = 2 12 18 4 25.5 9 32 2 10 ,
which restores the original consensus value to the average of x ( 0 ) (dashed lines).

7. Conclusions

In this paper, a distributed algorithm is derived for the computation of suitable scaling factors that allow reaching average consensus in unbalanced tree networks. The general algorithm is iterative and based on local data, and it is appropriate to be run as a preliminary routine. Simulation results show that the proposed algorithm can be effectively integrated with other set-up routines, and it gathers beneficial effects on the precision of the computed average value.

Future Work

There are several directions for further research stemming from the results of this paper; in the following, we describe some related activities that are now under investigation or consideration. From a theoretical/methodological standpoint, we are interested in the extension of the proposed approach to more general and time-varying graphs, graphs with cycles and directed graphs, and the use of a more general dynamics for a single agent, thus allowing for vehicle and mobile robot network applications. On the other hand, there are several perspective activities that use the results of this paper in applications, as for example testing the algorithm in experimental stages of WSN applications.

Funding

This research received no external funding.

Data Availability Statement

The datasets generated for this study are available on request to the corresponding author.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Bullo, F. Lectures on Network Systems, 1st ed.; Kindle Direct Publishing: Seattle, WA, USA, 2022. [Google Scholar]
  2. Olfati-Saber, R.; Fax, A.J.; Murray, R. Consensus and Cooperation in Networked Multi-Agent Systems. Proc. IEEE 2007, 95, 215–233. [Google Scholar] [CrossRef]
  3. Rezaee, H.; Abdollahi, F. Average consensus over high-order multiagent systems. IEEE Trans. Autom. Control 2015, 60, 3047–3052. [Google Scholar] [CrossRef]
  4. Kia, S.S.; Van Scoy, B.; Cortes, J.; Freeman, R.A.; Lynch, K.M.; Martinez, S. Tutorial on dynamic average consensus: The problem, its applications, and the algorithms. IEEE Control Syst. Mag. 2019, 39, 40–72. [Google Scholar] [CrossRef]
  5. Garin, F.; Schenato, L. A survey on distributed estimation and control applications using linear consensus algorithms. In Networked Control Systems; Springer: Berlin/Heidelberg, Germany, 2010; pp. 75–107. [Google Scholar]
  6. Chen, W.; Wang, Z.; Liu, Q.; Yue, D.; Liu, G.P. A new privacy-preserving average consensus algorithm with two-phase structure: Applications to load sharing of microgrids. Automatica 2024, 167, 111715. [Google Scholar] [CrossRef]
  7. Xing, L.; Xu, Q.; Wen, C.; Tian, Y.C.; Mishra, Y.; Ledwich, G.; Song, Y. Robust event-triggered dynamic average consensus against communication link failures with application to battery control. IEEE Trans. Control Netw. Syst. 2020, 7, 1559–1570. [Google Scholar] [CrossRef]
  8. Parlangeli, G. A Supervisory Algorithm Against Intermittent and Temporary Faults in Consensus-Based Networks. IEEE Access 2020, 8, 98775–98786. [Google Scholar] [CrossRef]
  9. Kenyeres, M.; Kenyeres, J. Distributed mechanism for detecting average consensus with maximum-degree weights in bipartite regular graphs. Mathematics 2021, 9, 3020. [Google Scholar] [CrossRef]
  10. Kenyeres, M.; Kenyeres, J. Average consensus over mobile wireless sensor networks: Weight matrix guaranteeing convergence without reconfiguration of edge weights. Sensors 2020, 20, 3677. [Google Scholar] [CrossRef] [PubMed]
  11. Patterson, S.; Bamieh, B.; El Abbadi, A. Convergence rates of distributed average consensus with stochastic link failures. IEEE Trans. Autom. Control 2010, 55, 880–892. [Google Scholar] [CrossRef]
  12. Cai, K.; Ishii, H. Average consensus on general digraphs. In Proceedings of the 2011 50th IEEE Conference on Decision and Control and European Control Conference, Orlando, FL, USA, 12–15 December 2011; pp. 1956–1961. [Google Scholar]
  13. Guyeux, C.; Haddad, M.; Hakem, M.; Lagacherie, M. Efficient distributed average consensus in wireless sensor networks. Comput. Commun. 2020, 150, 115–121. [Google Scholar] [CrossRef]
  14. Sun, S.; Chen, F.; Ren, W. Distributed average tracking in weight-unbalanced directed networks. IEEE Trans. Autom. Control 2020, 66, 4436–4443. [Google Scholar] [CrossRef]
  15. Sen, A.; Sahoo, S.R.; Kothari, M. Distributed average tracking with incomplete measurement under a weight-unbalanced digraph. IEEE Trans. Autom. Control 2022, 67, 6025–6037. [Google Scholar] [CrossRef]
  16. Du, M.; Meng, D.; Wu, Z.G. Distributed averaging problems over directed signed networks. IEEE Trans. Control Netw. Syst. 2021, 8, 1442–1453. [Google Scholar] [CrossRef]
  17. Shafi, S.Y.; Arcak, M.; El Ghaoui, L. Graph weight allocation to meet Laplacian spectral constraints. IEEE Trans. Autom. Control 2011, 57, 1872–1877. [Google Scholar] [CrossRef]
  18. Hao, H.; Barooah, P. Improving convergence rate of distributed consensus through asymmetric weights. In Proceedings of the 2012 American Control Conference (ACC), Montreal, QC, Canada, 27–29 June 2012; pp. 787–792. [Google Scholar]
  19. Gao, L.; Zhao, J.; Di, Z.; Wang, D. Asymmetry between odd and even node weight in complex networks. Phys. A Stat. Mech. Its Appl. 2007, 376, 687–691. [Google Scholar] [CrossRef]
  20. Kenyeres, M.; Kenyeres, J. Average Consensus with Perron Matrix for Alleviating Inaccurate Sensor Readings Caused by Gaussian Noise in Wireless Sensor Networks. In Software Engineering and Algorithms: Proceedings of 10th Computer Science On-line Conference 2021; Springer: Cham, Switzerland, 2021; Volume 1, pp. 391–405. [Google Scholar]
  21. Meyer, C.D. Uncoupling the Perron eigenvector problem. Linear Algebra Its Appl. 1989, 114, 69–94. [Google Scholar] [CrossRef]
  22. Parlangeli, G. Laplacian Eigenvalue Allocation Through Asymmetric Weights in Acyclic Leader-Follower Networks. IEEE Access 2023, 11, 126409–126419. [Google Scholar] [CrossRef]
  23. Parlangeli, G. Prescribed-time average consensus through data-driven leader motion. IEEE Access 2024, 12, 71970–71981. [Google Scholar] [CrossRef]
  24. Liu, Z.; Guo, L. Synchronization of multi-agent systems without connectivity assumptions. Automatica 2009, 45, 2744–2753. [Google Scholar] [CrossRef]
  25. Sardellitti, S.; Giona, M.; Barbarossa, S. Fast distributed average consensus algorithms based on advection-diffusion processes. IEEE Trans. Signal Process. 2009, 58, 826–842. [Google Scholar] [CrossRef]
  26. Chen, Y.; Tron, R.; Terzis, A.; Vidal, R. Corrective consensus with asymmetric wireless links. In Proceedings of the 2011 50th IEEE Conference on Decision and Control and European Control Conference, Orlando, FL, USA, 12–15 December 2011; pp. 6660–6665. [Google Scholar]
  27. Mirzaev, I.; Gunawardena, J. Laplacian dynamics on general graphs. Bull. Math. Biol. 2013, 75, 2118–2149. [Google Scholar] [CrossRef] [PubMed]
  28. Dietzenbacher, E. Aggregation in multisector models: Using the Perron vector. Econ. Syst. Res. 1992, 4, 3–24. [Google Scholar] [CrossRef]
  29. Schenato, L.; Fiorentin, F. Average TimeSynch: A consensus-based protocol for clock synchronization in wireless sensor networks. Automatica 2011, 47, 1878–1886. [Google Scholar] [CrossRef]
  30. Shi, F.; Yang, S.X.; Mukherjee, M.; Jiang, H.; da Costa, D.B.; Wong, W.K. Parameter-sharing-based average-consensus time synchronization in IoT networks. IEEE Internet Things J. 2022, 10, 8215–8227. [Google Scholar] [CrossRef]
  31. Wu, J.; Li, X. Collective synchronization of Kuramoto-oscillator networks. IEEE Circuits Syst. Mag. 2020, 20, 46–67. [Google Scholar] [CrossRef]
  32. Duan, Y.; He, X.; Zhao, Y. Distributed algorithm based on consensus control strategy for dynamic economic dispatch problem. Int. J. Electr. Power Energy Syst. 2021, 129, 106833. [Google Scholar] [CrossRef]
  33. Macii, D.; Rinaldi, S. Time synchronization for smart grids applications: Requirements and uncertainty issues. IEEE Instrum. Meas. Mag. 2022, 25, 11–18. [Google Scholar] [CrossRef]
  34. Bullo, F.; Cortés, J.; Martínez, S. Distributed Control of Robotic Networks; Applied Mathematics Series; Princeton University Press: Princeton, NJ, USA, 2009. [Google Scholar]
  35. Parlangeli, G. A distributed algorithm for the assignment of the Laplacian spectrum for path graphs. Mathematics 2023, 11, 2359. [Google Scholar] [CrossRef]
  36. Usmani, R.A. Inversion of a tridiagonal Jacobi matrix. Linear Algebra Its Appl. 1994, 212, 413–414. [Google Scholar] [CrossRef]
  37. Kenyeres, J.; Kenyeres, M.; Rupp, M.; Farkas, P. WSN implementation of the average consensus algorithm. In Proceedings of the 17th European Wireless 2011-Sustainable Wireless Technologies, Vienna, Austria, 27–29 April 2011; pp. 139–146. [Google Scholar]
Figure 1. Worked example from [22]: (a) unbalanced tree graph, (b) subdivision of the graph according to the notation.
Figure 1. Worked example from [22]: (a) unbalanced tree graph, (b) subdivision of the graph according to the notation.
Electronics 13 04114 g001
Figure 2. Simulation results: perturbed consensus network topology adopted in the simulations.
Figure 2. Simulation results: perturbed consensus network topology adopted in the simulations.
Electronics 13 04114 g002
Figure 3. Simulation results: perturbed consensus network. Case ε = 0.05 . Solid lines show uncompensated trajectories, dashed lines show the evolution with scaled initial conditions.
Figure 3. Simulation results: perturbed consensus network. Case ε = 0.05 . Solid lines show uncompensated trajectories, dashed lines show the evolution with scaled initial conditions.
Electronics 13 04114 g003
Figure 4. Simulation results: perturbed consensus network. Case ε = 0.2 . Solid lines show uncompensated trajectories, dashed lines show the evolution with scaled initial conditions.
Figure 4. Simulation results: perturbed consensus network. Case ε = 0.2 . Solid lines show uncompensated trajectories, dashed lines show the evolution with scaled initial conditions.
Electronics 13 04114 g004
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Parlangeli, G. A Distributed Algorithm for Reaching Average Consensus in Unbalanced Tree Networks. Electronics 2024, 13, 4114. https://doi.org/10.3390/electronics13204114

AMA Style

Parlangeli G. A Distributed Algorithm for Reaching Average Consensus in Unbalanced Tree Networks. Electronics. 2024; 13(20):4114. https://doi.org/10.3390/electronics13204114

Chicago/Turabian Style

Parlangeli, Gianfranco. 2024. "A Distributed Algorithm for Reaching Average Consensus in Unbalanced Tree Networks" Electronics 13, no. 20: 4114. https://doi.org/10.3390/electronics13204114

APA Style

Parlangeli, G. (2024). A Distributed Algorithm for Reaching Average Consensus in Unbalanced Tree Networks. Electronics, 13(20), 4114. https://doi.org/10.3390/electronics13204114

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop