An entropy-based bound for the computational complexity of a switched system
Beno\^it Legat, Pablo A. Parrilo, Rapha\"el M. Jungers

TL;DR
This paper introduces an entropy-based bound for the computational complexity of switched systems, linking the joint spectral radius to system entropy and p-radius, and proposes a reduction method for low-rank matrices.
Contribution
It provides a new entropy-based guarantee for the sum of squares method's upper bound on the joint spectral radius of constrained switched systems.
Findings
The entropy and p-radius influence the accuracy of stability bounds.
A reduction method simplifies the computation of the joint spectral radius for low-rank matrices.
The approach enhances understanding of stability analysis in hybrid systems.
Abstract
The joint spectral radius (JSR) of a set of matrices characterizes the maximal asymptotic growth rate of an infinite product of matrices of the set. This quantity appears in a number of applications including the stability of switched and hybrid systems. A popular method used for the stability analysis of these systems searches for a Lyapunov function with convex optimization tools. We analyse the accuracy of this method for constrained switched systems, a class of systems that has attracted increasing attention recently. We provide a new guarantee for the upper bound provided by the sum of squares implementation of the method. This guarantee relies on the p-radius of the system and the entropy of the language of allowed switching sequences. We end this paper with a method to reduce the computation of the JSR of low rank matrices to the computation of the constrained JSR of matrices of…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
An entropy-based bound for the computational complexity of a switched system
Benoît Legat, Pablo A. Parrilo, and Raphaël M. Jungers B. Legat and R. M. Jungers are with the ICTEAM, Université catholique de Louvain (e-mail: [email protected]; [email protected]). P. A. Parrilo is with the Laboratory for Information and Decision Systems, Massachusetts Institute of Technology (e-mail: [email protected]).
Abstract
The joint spectral radius (JSR) of a set of matrices characterizes the maximal asymptotic growth rate of an infinite product of matrices of the set. This quantity appears in a number of applications including the stability of switched and hybrid systems. A popular method used for the stability analysis of these systems searches for a Lyapunov function with convex optimization tools.
We analyse the accuracy of this method for constrained switched systems, a class of systems that has attracted increasing attention recently. We provide a new guarantee for the upper bound provided by the sum of squares implementation of the method. This guarantee relies on the -radius of the system and the entropy of the language of allowed switching sequences.
We end this paper with a method to reduce the computation of the JSR of low rank matrices to the computation of the constrained JSR of matrices of small dimension.
Index Terms:
Joint spectral radius, Language Entropy, Sum of squares programming, Switched Systems, Path-complete Lyapunov functions
I Introduction
In recent years, the study of the stability of hybrid systems has been the subject of extensive research using methods based on classical ideas from Lyapunov theory and modern mathematical optimization techniques. Even for switched linear systems, arguably the simplest class of hybrid systems, determining stability is undecidable and approximating the maximal asymptotic growth rate that a trajectory can have is NP-hard [1]. Despite these negative results, the vast range of applications has motivated a wealth of algorithms to approximate this maximal asymptotic growth rate.
A switched linear system is characterized by a finite set of matrices and the iteration
[TABLE]
where denotes the set .
The maximal asymptotic growth rate of this iteration is given by the joint spectral radius (JSR). The JSR of a finite set of matrices is defined as
[TABLE]
This definition is independent of the norm used.
The JSR was introduced by Rota and Strang [2] and has many applications such as co-simulation [3], wavelets, the capacity of some particular codes, zero-order stability of ordinary differential equations, congestion control in computer networks, curve design and networked and delayed control systems; see [4] for a survey on the JSR and its applications.
In some applications the values that can take in (1) may depend on . These constraints are often conveniently represented using a finite automaton and the JSR under such constraints is called constrained joint spectral radius (CJSR) [5]; an example of constrained switched system is given by Example 1 and its automaton is illustrated by Figure 1. Constrained switched systems are used in a variety of applications including networked control [6, 7] and coordination of a network of autonomous agents [8]. Moreover, even if a switched system is unconstrained, studying an associated constrained system generated by path-complete methods enhance our ability to analyze the stability [9] or stabilize [10] the original unconstrained switched system.
The automaton representing the constraints can be represented by a strongly connected labelled directed graph , possibly with parallel edges. The labels are elements of the set and is a subset of . We say that if there is an edge between node and node with label .
We use to denote the subset of (i.e. the th cartesian power of ) that represents valid paths of length . The -tuple is said to be -admissible if are the respective labels of a path of length . We denote the set of all -tuples of that are -admissible as . The matrix product is written when or is a path with these respective labels.
The iteration (1) is rewritten as follows to take the automaton into account:
[TABLE]
The definition of the JSR is generalized as follows for constrained systems.
Definition 1** ([5]).**
The constrained joint spectral radius (CJSR) of a finite set of matrices constrained by an automaton , denoted as , is
[TABLE]
where
[TABLE]
The arbitrary switching case (1) can be seen as the particular case when the automaton has only one node and self-loops with labels .
Example 1** (Running example).**
We borrow the example of [11, Section 4]. It is based on a state-feedback control that might undergo dropouts in its state feedback. The set of matrices is composed of the following four matrices
[TABLE]
where , ,
[TABLE]
The corresponding automaton is represented by Figure 1.
Approximating the CJSR usually consists in certifying upper bounds to the CJSR by exhibiting Lyapunov functions or invariant sets for the matrices (see Section II for precise definitions). The search for such Lyapunov functions can naturally be written as a convex optimization program using sum of squares (SOS) programming [12]. It turns out that these Lyapunov methods cannot produce an arbitrarily bad CJSR approximation: bounds are known on the accuracy of the estimate they deliver. Indeed, the following two bounds have been proved in the unconstrained case for the lowest upper bound that can be certified using sum of squares polynomials111A polynomial is a sum of squares if there exists some natural number and polynomials such that . of degree , denoted :
[TABLE]
The two guarantees are incomparable, as (3) depends on the dimension, and (4) depends on the number of matrices. However, only (3) has been generalized in the constrained case yet; see Theorem 3. Our main result is a generalization of the second guarantee: we relate the accuracy of the SOS-based approximation algorithm with the combinatorial complexity of the automaton. This complexity is measured by the entropy of the language of allowed switching signals. This new estimate of the accuracy of the SOS technique is always better than the previously existing one for sufficiently large sum of squares degree. According to the new estimate, the more constrained the system is, the smaller the entropy is and the better the accuracy of the method is. This shows that, in some sense, it is easier to analyse stability of constrained switched systems than unconstrained switched systems because the entropy of the language of allowed switching signals is smaller.
Constrained switched systems may also be useful to analyse abstraction techniques for complex control systems. Given a nonlinear system, an abstraction of the system can be constructed by a discretization of the state-space, such abstraction may enhance our ability to analyse the system [13]. The entropy of the language of allowed switching signals of the abstraction is related222The entropy of the abstraction with an -discretization measures the growth rate of the number of cells in which the state could be [14, Example 6.3.4] while the topological entropy is the limsup, with , of the growth rate with of the cardinality of the largest -separated (or the smallest -spanning) set; see [15] for precise definitions. to the topological entropy of the nonlinear system [16, 15]. This suggests that the computational complexity of the abstraction is intrinsically related to the topological entropy of the nonlinear system and not to the specific choice of discretization, e.g. the value of . In [17], the authors use the Kullback-Leibler divergence of the uncertainty induced by a model to measure its fidelity. They measure the entropy of the uncertainty of the noise representing the part of the plant that is not accounted for in the model. This is similar to our work which measures the entropy of the uncertainty induced by an uncontrolled switching representing the loss of information due to the discretization. However, it is fundamentally different as we use this entropy to measure the computational complexity of the model and not the fidelity of the abstraction. Indeed, as we have seen, in our work this entropy is related to the topological entropy of the plant and not to the accuracy of the abstraction. Other appearances of the entropy in systems and control theory include [18, 19]; see [20] for an overview.
In [21], Ahmadi and Parrilo show how to reduce the computation of the JSR of matrices that are all of rank one to a combinatorial problem, which coincides with the CJSR of matrices (i.e. scalars). As a final contribution, we generalize this approach and give a reduction of the computation of the JSR (or CJSR) of matrices that are all of rank at most to the computation of the CJSR of matrices.
The paper is organized as follows. In Section II, we give the SOS program searching for Lyapunov functions and we give our new estimate for its accuracy. The new bounds explicitly depend on the allowable transitions, through the graph . In Section III, we give the low rank reduction mentioned above.
Reproducibility
The code used to obtain the results is published on codeocean [22]. The algorithms are part of the SwitchOnSafety Julia [23] package [24] which computes invariant sets for hybrid sytems represented with the HybridSystems package [25]. The implementation relies on the SumOfSquares [26] and SetProg [27] extensions of JuMP [28]. The solver used is Mosek v8 [29].
II Stability and entropy
In this section, we give the SOS-based method to approximate the CJSR, we define the entropy of a constrained switching signal and the -radius of a constrained switched system and we show how the performance guarantee of the method is related to the entropy of the switching signal and the -radius of the switched system.
II-A Stability
As introduced in [12] and generalized in [11] for the constrained case, homogeneous333A homogeneous polynomial of degree is a polynomial for which the degree of each monomial is . The polynomial is called homogeneous as for any real number , we have . polynomials of degree can be used to certify upper bounds on the CJSR.
Proposition 1** ([30, Theorem 1]).**
Consider a finite set of matrices constrained by an automaton . Suppose that there exist strictly positive homogeneous polynomials of degree such that holds for all edge . Then .
We relax the positivity condition of Proposition 1 by the more tractable sum of squares (SOS) condition and define as the solution of the following sum of squares program.
Program 1** (Primal).**
[TABLE]
Remark 1**.**
In practice we can replace (6) and (7) by “ is SOS” for any . This constrains to be in the interior of the SOS cone, which is sufficient for to be strictly positive. The bounds given in Section II-D are valid if is in the interior of the SOS cone.
Remark 2**.**
The constraint (5) is equivalent to “ is SOS” hence the 1-sublevel sets of the polynomials provide invariant sets for the matrices as claimed in the introduction.
By Proposition 1, a feasible solution of Program 1 gives an upper bound for , and thus, for any positive degree ,
[TABLE]
Example 2**.**
Consider the unconstrained system [21, Example 2.1] with : where denotes the th canonical basis vector. For any , a solution to Program 1 is given by
Example 3**.**
Let us reconsider our running example; see Example 1. The optimal solution of Program 1 is represented by Figure 2 for , 4, 10 and 12.
II-B Entropy
The entropy of a regular language is defined as follows.
Definition 2** ([14, Definition 4.1.1]).**
Given a regular language recognized by an automaton , we define the entropy of the language as
[TABLE]
The entropy of a language generated by an automaton is easily computable, as we now recall. The logarithm of the spectral radius of the adjacency matrix of an irreducible444An automaton is irreducible if for every pair of nodes , there exists a path from to accepted by the automaton. automaton gives the entropy of its edge shift.
Definition 3** ([14, Definition 2.2.5]).**
The edge shift of an automaton is the language recognized by the automaton with the transitions for each . We denote the entropy of the edge shift of as .
Particularizing equation (9) to the edge shift gives
[TABLE]
It turns out that the entropy of the edge shift is equal to the entropy of the language recognized by the automaton if the automaton is right-resolving [14, Proposition 4.1.13].
Definition 4** ([14, Definition 3.3.1]).**
An automaton is right-resolving if for every vertex , the outgoing edges have different symbols.
Every regular language is recognized by a right-resolving automaton. Moreover, there are automated ways to obtain such an automaton from a starting representation of a language with an automaton that is not right-resolving [14, Section 3.3].
II-C Constrained -radius
The constrained -radius is defined as follows.
Definition 5**.**
The constrained -radius of a finite set of matrices constrained by an automaton , denoted as , is
[TABLE]
Thus, the CJSR can be defined as the constrained -radius for .
Theorem 1 shows a relation between entropy of the switching signals and the -radius.
Lemma 1** ([31, Corollary B.5]).**
The limit
[TABLE]
converges.
Theorem 1**.**
Consider a finite set of matrices constrained by an automaton . The following relation holds
[TABLE]
Proof.
By Lemma 1, (11) converges and by (10), . ∎
II-D Performance guarantees
In this section, we provide a new bound that relates the accuracy of Program 1 to the entropy of the switching signal and the -radius of the switched system.
An important property of the -radius is that it is increasing in .
Lemma 2** ([31, Lemma 3.7]).**
Consider a finite set of matrices constrained by an automaton . For any integers ,
[TABLE]
This Lemma is already known in the unconstrained case where [32].
Remark 3**.**
Lemma 2 shows that the -radius provides an upper and lower bound on the CJSR. See [33, 12] for methods based on the veronese liftings computing the -radius either by computing a spectral radius or by solving a linear program (see [34] for computation algorithms when is not an even integer).
We show the following bound stating that the solution found by Program 1 is at least as good as the bound obtained by computing the -radius (see Lemma 2).
Theorem 2**.**
Consider a finite set of matrices constrained by an automaton . For any positive integer , the approximation given by Program 1 using homogeneous polynomials of degree satisfies:
[TABLE]
Note that the second inequality in (13) is simply (12). Theorem 2 is proven at the end of this section.
We can see with (13) that if , the approximation is exact. This corresponds to the case where every node of has indegree and outdegree 1. In that case, the graph forms a cycle of some length and the CJSR is simply the th root of the spectral radius of the product of the matrices along this cycle.
For the unconstrained switching case, is equal to the number of matrices . Theorem 2 is therefore the generalization of (4) to the constrained case. A generalization of (3) to the constrained case was already known (note that the bound does not take into account the particular structure of the automaton):
Theorem 3** ([11, Theorem 3.6]).**
Consider a finite set of matrices constrained by an automaton and a positive integer . The approximation given by Program 1 using homogeneous polynomials of degree satisfies:
[TABLE]
The results of Theorem 2, Theorem 3 and (8) are summarized by the following corollary.
Corollary 1**.**
Consider a finite set of matrices constrained by an automaton and a positive integer , the approximation given by Program 1 using homogeneous polynomials of degree satisfies:
[TABLE]
We see that we can have arbitrary accuracy by increasing .
Our proof technique for Theorem 2 relies on the analysis of an iteration in the vector space of polynomials of degree . When this iteration converges, it converges to a feasible solution of Program 1. By analysing this iteration as affine iterations in this vector space, we derive a sufficient condition for its convergence and thus an upper bound for .
Consider the iteration
[TABLE]
for fixed homogeneous polynomials of degree in variables (not necessarily different) and a constant .
When this iteration converges, it converges to a feasible solution of Program 1.
Lemma 3**.**
Consider a constant . If there exist homogeneous polynomials in the interior of the SOS cone such that iteration (14) converges then
Proof.
Suppose the iteration converges to the polynomials . It is easy to show by induction that is SOS for all . It is trivial for and if it is true for then it is also true for by (14). Since the SOS cone is closed, is SOS. Now by (14), for each ,
[TABLE]
so is also in the interior of the SOS cone. For each edge , by manipulating the above equation, we have
[TABLE]
so is SOS. Therefore is a feasible solution of Program 1. ∎
In view of Lemma 3, it is thus natural to analyse under which condition iteration (14) converges.
Proof of Theorem 2.
Iteration (14) is an affine map on the vector space of homogeneous polynomials of degree . It is well known that if the convergence is guaranteed when we only retain the linear part of the affine map then it is also guaranteed for the affine iteration.
Therefore we can analyse instead the following iteration
[TABLE]
We can see that
[TABLE]
where denotes the first node of the path .
Consider a norm of and its corresponding induced matrix norm of . For each , we know by continuity of that there exist such that for all . Let , then
[TABLE]
By Theorem 1, if , then hence since the polynomials belong to a proper cone. We obtain the result by Lemma 3. ∎
II-E Improving the automaton-dependent bounds
If strong duality holds for a convex problem, its feasibility is equivalent to the non-existence of an infeasibility certificate (see [35, Section 5.8]). An infeasibility certificate contains one entry per constraint and if this entry is zero for a given constraint then the infeasibility certificate remains valid if the constraint is removed from the problem. In this section, we show how this fact allows to improve the guarantee given by Theorem 2 using the sparsity of the infeasibility certificate.
We show in [31, Lemma A.1] that strong duality holds for Program 1 with a fixed . This allows Program 1 to be solved by binary search on : Given a fixed value , the problem is solved with ; if a feasible solution is found, it means that , otherwise, an infeasibility certificate is found showing that . By Corollary 1, an infeasibility certificate for provides the following lower bound certificate on the CJSR:
[TABLE]
In Theorem 4 we show a simple way to improve this lower bound certificate by inspecting the sparsity of the infeasibility certificate.
Definition 6**.**
Consider a finite set of matrices constrained by an automaton . Given an infeasibility certificate of Program 1, we denote by the set of edges such that the entry of corresponding to constraint (5) with edge is nonzero.
Theorem 4**.**
Consider a finite set of matrices constrained by an automaton . For any positive integer , if there exists an infeasibility certificate of Program 1 with then
[TABLE]
Proof.
We consider the graph . Since the infeasibility certificate is zero for constraints (5) with edges , remains a valid infeasibility certificate for Program 1 with input and , hence By Theorem 2, and since , . We obtain (15) by combining these three inequalities. ∎
Example 4**.**
Applying the result of this section to the running example gives the result of Figure 3. The “Kronecker lift” lower bound is the bound obtained by using the Kronecker lift to transform the constrained system with 9 edges into an unconstrained system with 9 matrices, one per edge. The upper bound obtained with both systems is the same [11, Proposition 3.9] hence we can use the guarantee for unconstrained systems (4) with for the constrained system.
The entropy of the switching signal used in Theorem 2 is , while the value used in Theorem 3 is since . Therefore, as we can see on the figure, the lower bound guaranteed by Theorem 3 is more accurate for only. The entropy used in Theorem 4 is for and for , it is more accurate than the three other lower bounds for every .
The lower bound obtained by computing the -radius is the most accurate one among all lower bounds for the same for this example. In practice, better lower bounds can be obtained from the solution of Program 1 using the techniques of [30, 31].
III Low rank reduction
Suppose we want to compute the CJSR of a finite set of matrices of rank at most constrained by an automaton . For , since the matrix has rank at most , there exists such that . This can be used to build a new system with matrices of with the same CJSR. This new system can therefore be used to reduce the computation of the CJSR of a system of low rank matrices to a system of matrices of small size. Note that in the case , it is known that the CJSR is computable in polynomial time [21].
Theorem 5** (Low Rank Reduction).**
Consider a finite set of matrices of rank at most constrained by an automaton .
For a fixed decomposition for where , denote the set of matrices where . Define the graph with and
[TABLE]
Then the two CJSR are the same:
Proof.
As the CJSR does not depend on the norm used, we choose a norm that is submultiplicative, that is for all matrices .
Let . If , then . Therefore we may assume that . Consider a positive integer . We first show that where is defined in (2). For any -admissible , we have
[TABLE]
using the submultiplicativity of the norm chosen, we have
[TABLE]
The same way, we now show that . For any -admissible , we have
[TABLE]
In summary, we have
[TABLE]
Taking the limit we get . ∎
Example 5**.**
Consider an unconstrained switched system with 2 rank matrices . This system is equivalent to the constrained switched system with automaton represented in Figure 4(a). Its low rank reduction is represented in Figure 4(b).
Remark 4**.**
The matrices of the factorization are not unique. For any invertible matrix , also gives a factorization. However, if is approximated using the sum of squares algorithm of Section II-A, any two factorizations will give the same approximation. The effect of using and instead of and will simply be a linear change of variable of the polynomial ; see Section II-A.
What is the impact of this reduction on the computational complexity and accuracy of the approximation ? The entropy of the language of allowed switching signals is the same for the initial system and the reduced system hence the guarantee in Theorem 2 is the same for both systems. However, the dimension of the matrices goes from the dimension of the matrices to their rank hence for low rank matrices the guarantee in Theorem 3 is improved.
In terms of computational complexity, there can be up to nodes and edges in the automaton of the reduced system. Therefore, even if the size of the matrices decreases from to , the number of variables and constraints increases. This shows that the reduction only decreases the computational complexity if the rank of the matrices is sufficiently low.
IV Conclusion
This paper uncovers a first relation between the complexity of the discrete dynamic of a hybrid system and the computational performance of convex optimization methods analysing the stability of its continuous dynamic. The analysis is performed on discrete linear switched systems, a subclass of hybrid systems, but we believe that it should be extended to other classes of hybrid systems such as markovian switched systems where the entropy of the discrete dynamics is influenced by transition probabilities.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] V. D. Blondel and J. N. Tsitsiklis, “The boundedness of all products of a pair of matrices is undecidable,” Systems & Control Letters , vol. 41, no. 2, pp. 135–140, 2000.
- 2[2] G.-C. Rota and W. Strang, “A note on the joint spectral radius,” Proceedings of the Netherlands Academy , 1960, 22:379–381.
- 3[3] C. Gomes, B. Legat, R. M. Jungers, and H. Vangheluwe, “Stable adaptive co-simulation: A switched systems approach,” in IUTAM Symposium on Co-Simulation and Solver Coupling , no. 1, Darmstadt, Germany, 2017, p. to appear.
- 4[4] R. Jungers, The joint spectral radius: theory and applications . Springer Science & Business Media, 2009, vol. 385.
- 5[5] X. Dai, “A Gel’fand-type spectral radius formula and stability of linear constrained switching systems,” Linear Algebra and its Applications , vol. 436, no. 5, pp. 1099–1113, 2012.
- 6[6] R. W. Brockett and D. Liberzon, “Quantized feedback stabilization of linear systems,” IEEE transactions on Automatic Control , vol. 45, no. 7, pp. 1279–1289, 2000.
- 7[7] L. Zhang, Y. Shi, T. Chen, and B. Huang, “A new method for stabilization of networked control systems with random delays,” IEEE Transactions on automatic control , vol. 50, no. 8, pp. 1177–1181, 2005.
- 8[8] A. Jadbabaie, J. Lin et al. , “Coordination of groups of mobile autonomous agents using nearest neighbor rules,” IEEE Transactions on Automatic Control , vol. 48, no. 6, pp. 988–1001, 2003.
