Professional Documents
Culture Documents
CPES Networked Control System I
CPES Networked Control System I
CPES Networked Control System I
Zhiyong Sun
1
Where are we now (in the map of control theory)
2
Networked Control System
Lecture 1
Introduction to Network System & Graph Theory
4
4
Complex network systems
Sensor networks
Complex human
disease gene network
5 (Barrenas et al. Plos One 2009)
5
Emerging behavior in network systems
Fish schooling
Bird flocking
directed edges
3 4
interaction 1
node
subsystem edge 5
Communication/sensing links describe the interaction of relative states (e.g., relative positions, distances etc.)
7 7
Basic graph theory
8
8
Graph modelling: directed graph
2
directed edges
nodes
3 4
0.5
1 0.5
1
2
0.2 1.8
1.5
1.5
11 11
Simple graphs
• Parallel edges
• Two or more edges linking the same (ordered) pair of nodes
• e.g., from node 1 to node 3, there are two parallel edges
• Self-loops
• An edge that starts and ends at the same node
• e.g., node 3 has a self-loop
2 2
1 3 1 3
4 4
1 1
3 4 3 4
not connected
connected 5 5
13 Connected components 13
Connectivity in directed graphs
• A directed graph is
• strongly connected, if each node can reach all the other
nodes via directed paths.
• quasi-strongly connected, if there is a node that can reach
all the other nodes via directed paths.
• weakly connected, if the underlying undirected graph is
connected.
2 2 2
1 1 1
3 4 3 4 3 4
5 5 5
15
15
Adjacency matrix for directed graph
• Adjacency matrix: A
• Rows and columns are labeled with ordered vertices
• Aij= 0 if no edge exists between nodes i and j
• Aij is the weight of the edge incident from i to j
Node 1 ~ 4
2 1 2 3 4
1 2
1 0 2 0 0
1 3 Node 1 ~ 4 2 0 0 3 4
4
3 0 0 0 5
4 3
5 4 1 0 0 0
Directed graph G A is square and asymmetric
16 16
Adjacency matrix for undirected graph
• Adjacency matrix: A
• Rows and columns are labeled with ordered vertices
• Aij= 0 if no edge exists between nodes i and j
• Aij is the weight of the edge (i, j) connecting nodes i and j
Node 1 ~ 4
2 1 2 3 4
1 2
1 0 2 0 1
1 3 Node 1 ~ 4 2 2 0 3 4
4
3 0 3 0 5
4 3
5 4 1 4 5 0
Undirected graph G A is square and symmetric!
17 17
Adjacency/degree matrix
D D
18 18
Incidence matrix for directed graph
• Incidence matrix: H
• Label rows with edges and columns with vertices (nodes)
• Hij= 1 if edge ei is incident from node j
• Hij= -1 if edge ei is incident into node j Node 1 ~ 4
• Hij= 0 otherwise 1 2 3 4
e1 1 -1 0 0
e1
1 2 e2 -1 0 0 1
Edge e1 ~ e5
e3 0 1 0 -1
e2 e4
e3
e4 0 1 -1 0
4 3 e5 0 0 1 -1
e5
Node 1 ~ 4
4 e5 3 1 2 3 4
e1 1 -1 0 0
e1
1 2 e2 -1 0 0 1
Edge e1 ~ e5
e3 0 1 0 -1
e2 e4
e3
e4 0 1 -1 0
4 e5 3 e5 0 0 1 -1
20 20
Laplacian matrix for directed graph
2
1 2 3 4
1 2
1 2 -2 0 0
1 3 Node 1 ~ 4 2 0 7 -3 -4
4
3 0 0 5 -5
4 3
5 4 -1 0 0 1
Directed graph G L is asymmetric,
and has zero row sums
21 21
Laplacian matrix for undirected graph
• Laplacian matrix for an undirected graph:
L = D − A = HT W H
• Dii : sum of the weights of all the edges associated with i
• A : adjacency matrix
• H : incidence matrix Node 1 ~ 4
• W : diagonal weight matrix
1 2 3 4
• Wii : (positive) edge weight of ei
e1 1 3 -2 0 -1
Node 1 ~ 4
1 2
2 2 -2 9 -3 -4
e2 1 e3 e4 3 3 0 -3 8 -5
4
e5 4 -1 -4 -5 10
4 3
5 L is symmetric,
Undirected graph G has zero row sums
22 and zero column sums 22
Laplacian matrix for undirected graph
• Laplacian matrix of an undirected graph:
L = D − A = HT W H
• The two definitions are equivalent.
• The second definition L = HT W H implies that L does not depend on the
labeling and orientation chosen for the graph in defining H.
Node 1 ~ 4
e1
1 2 1 2 3 4
2
1 3 -2 0 -1
e2 1 e3 e4 3 Node 1 ~ 4
4
2 -2 9 -3 -4
e5
4 3 3 0 -3 8 -5
5
Undirected graph G 4 -1 -4 -5 10
23
Since L is symmetric, all its
eigenvalues are real 23
Linear algebra and graph Laplacian (undirected graphs)
What are the vectors in Null (L(G)) except the subspace generated
by 1 = [1, 1, …, 1]T?
24
Linear algebra and undirected graph Laplacian: null spaces
This means that if (i, j) ∈E, then zi = zj ; so, if the graph isconnected,
z1 = z2 = ... = zn
That is z = α1 for some α!
2
4
1
3 25
5
Linear algebra and undirected graph Laplacian: null spaces
which is equivalent to 1
3
H(G) z =0 ( Note: Null (L) =Null (H) ) 5
This means that if (i, j) ∈E, then zi = zj ; so, if the graph isconnected,
z1 = z2 = ... = zn
That is z = α1 for some α!
Actually, zi is constant on each (connected) component of G.
• Every connected component introduces an additional dimension in Null(L(G)).
Theorem
Let G have c connected components (when c = 1 the graph is connected).
Then rank L(G) = n − c.
The above theorem also holds for weighted (undirected) graphs.
26
Graph Laplacian (undirected graphs): Rank, λ2, and connectivity
Rank condition:
rank L(G) = n − 1 if and only if G is connected.
Equivalently
λ2(G) ≤ xTL(G) x, for all x ⊥ 1, ||x|| = 1
27
Properties of Laplacian matrix: undirected graph
1 3
4
28 λ2 28
❑ Barca, J.C. and Sekercioglu, Y.A., 2013. Swarm robotics reviewed. Robotica, 31(3), pp.345-359. 29
Online quiz
What is the value of the second smallest eigenvalue (λ2) of the Laplacian matrix
for the following weighted undirected graph?
2 4
1 3 3
5
2 2
(a) 1.3820
(b) 2.9182
(c) 1.9186
(d) 2.2256
30 30
Graph in Matlab
%% define a graph
% starting nodes
s = [1 1 2 2 2 3 4 5 ]; 2 4
% terminal nodes 1 2 3
t = [2 4 3 4 6 6 5 6 ];
% edge weights
weights = [2 1 4 5 3 3 2 2]; 1
5 3 3
%% plot a graph
% label/name each node
names = {'1' '2' '3' '4' '5' '6'}; 4 5 6
G = graph(s,t,weights,names); 2 2
plot(G,'EdgeLabel',G.Edges.Weight) % plot the graph
%% matrix representations
% Incidence matrix (convention: row-nodes and column-edges)
I = incidence(G);
% Laplacian (unweighted)
L = laplacian(G);
W = diag([2 1 4 5 3 3 2 2]);
% Construct weighted Laplacian
L_w = I*W*I';
% eigenvalues
eig(L_w)
31 31
Spectra of Laplacian matrix: special undirected graphs
• Complete graph (K4 graph)
A complete undirected graph G
1 2
4 3 eig(L) : 0 4 4 4
eig(L) : 0, n, n, …… n
32 32
Spectra of Laplacian matrix: special undirected graphs
33 33
Our first distributed algorithm: Consensus
34
34
Multi-agent consensus & flocking/schooling
Mobile agent
Sensing circle
Fish schooling
35 35
Multi-agent consensus protocol
Formulation of the consensus problem
• Consider N agents with an internal state 𝑥𝑖 ∈ 𝑅𝑑
• For now, we consider the scalar state case (d=1). Multi-dimensional state case
can be modelled via Kronecker products.
• To model the fish schooling behavior, each fish steers towards the average
heading of its neighbors.
L
Laplacian matrix of an undirected network
37 37
Example: Multi-agent consensus
L
Laplacian matrix of an undirected network
38 38
Consensus dynamics
L
L
Consensus dynamics
Consensus dynamics
Theorem
Consider the consensus dynamics under an undirected and connected graph with the
(weighted) Laplacian L.
(1) All node states reach an average consensus.
(2) The convergence rate is characterized by λ2 (the algebraic connectivity).
at a rate proportional to λ2 !
40 40
Convergence of consensus dynamics (undirected graph)
41 41
Summary/take home messages
• Complex network control system by graph modelling
42
The next lecture
43