Full text
On the persistency of excitation Ivan Markovsky a, Eduardo Prieto-Araujo b, Florian Dörfler c aI. Markovsky is with the Catalan Institution for Research and Advanced Studies (ICREA), Pg. Lluis Companys 23, Barcelona, Spain and the International Centre for Numerical Methods in Engineering (CIMNE), Gran Capitàn, Barcelona, Spain. bE. Prieto-Araujo is with the CITCEA, Universitat Politècnica de Catalunya, Barcelona, Spain. cF. Dörfler is with the Automatic Control Laboratory (IfA), ETH-Zürich, 8092 Zürich, Switzerland. Abstract The result of J.C. Willems et al. “A note on persistency of excitation”, System & Control Letters, 2005 gives identifiability conditions for system identification as well as data-driven representations for data-driven control. The existing proofs however are proofs by contradiction and do not give insight into the assumptions of controllability and persistency of excitation of the input. Moreover, the existing proofs do not clarify how conservative the assumptions are. We provide an alternative constructive proof for the single-input case. It is shown that persistency of excitation of order more than the time horizon is needed in nongeneric cases, corresponding to special initial conditions. The special initial conditions are explicitly characterized in terms of the solution of a Sylvester equation. Another contribution of the paper is a representation of a scalar persistently exciting input of a finite order as an output of an autonomous linear time-invariant system. Key words: behavioral approach; exact identification; identifiability; persistency of excitation; input design. 1 Introduction A class of subspace-type system identification and datadriven control methods for discrete-time linear timeinvariant systems originate from a result that became known as the fundamental lemma [13]. The fundamental lemma gives identifiability conditions, i.e., conditions under which the data-generating system can be recovered back from the data. At the same time, the fundamental lemma gives a nonparametric representation of the finite-horizon behavior of the data-generating system. This nonparametric representation is completely specified by a single trajectory of the system. For an overview of the methods based on the fundamental lemma, we refer the reader to [5]. The data-driven nonparametric representation of the system is given by a Hankel matrix constructed from the data. Under the conditions of the fundamental lemma, the image of the Hankel matrix equals the set of all finite-length trajectories of the data generating system. The conditions of the fundamental lemma restrict the input signal and the datagenerating system, so that an observed input/output trajec- ⋆This paper was presented at the MTNS meeting 2022. Corresponding author I. Markovsky. Email addresses: [email protected] (Ivan Markovsky), [email protected] (Eduardo Prieto-Araujo), [email protected] (Florian Dörfler). tory of the system completely reveals the system’s dynamics. The key condition of the fundamental lemma is that the input signal be persistently exciting of order equal to the length the finite horizon plus the order of the system. Although the fundamental lemma is widely used and has numerous generalizations, see, e.g., [8,3,9,10], there are important open problems related to it. The original proof [13] as well as the subsequent proof of [9] are by contradiction and do not give insight into the need and the meaning of the persistency of excitation condition. Indeed, the conditions of the fundamental lemma are sufficient only and it is unknown how conservative they are. Our main contributions are: (1) an alternative constructive proof of the fundamental lemma in the single-input case that shows the nonconservatism of the fundamental lemma, (2) explicit characterization of the cases, in which persistency of excitation of order more than the horizon’s length is needed, and (3) a representation of a scalar persistently exciting input of a specified order as an output of an autonomous linear time-invariant system. The third contribution can be used for design of informative experiments with additional constraints on the input. Preprint submitted to Automatica 19 August 2022
2 Background and problem statement We use the behavioral language, where a dynamical system Bis a set of trajectories [12,5]. In this paper, we consider deterministic discrete-time linear time-invariant dynamical systems. Let qbe the number of variables. A finite T-sample long trajectory of the system Bis a time series wd=wd(1),...,wd(T)∈(Rq)T. The problem studied in [13] is to find for a given finite trajectory wd(the subscript “d” stands for “data”) of a linear time-invariant system Band a given natural number L, 1 ≤ L≤T, conditions under which the ‘windows’ of length L wd(1) . . . wd(L) , wd(2) . . . wd(L+1) ,..., wd(T−L+1) . . . wd(T) ,(WIN) constructed from the trajectory wdspan the space B|Lof all possible windows of length Lwhich the system can produce. A compact way of writing that (WIN) spans B|Lis B|L=image wd(1)wd(2)··· wd(T−L+1) . . .. . .. . . wd(L)wd(L+1)··· wd(T) | {z } HL(wd) , (DD-REPR) where HL(wd)is the Hankel matrix, constructed from wd with Lblock-rows. We refer to (DD-REPR) as the datadriven representation of the restricted behavior B|L. The problem addressed in [13] can then be rephrased as: Under what conditions does the data-driven representation (DD-REPR) hold true? The complexity of a linear time-invariant system Bis characterized by three integers that are properties of the system: the number of inputs m(B), the lag l(B), and the order of n(B)[4, Section III]. In a minimal state-space representation of the system, n(B)is the state dimension and l(B) is the observability index. As shown in [4], for L≥l(B), a necessary and sufficient condition for (DD-REPR) is rank HL(wd) = m(B)L+n(B).(GPE) We refer to (GPE) as a generalized persistency of excitation condition. This condition can be verified from the data wd and the prior knowledge of the number of inputs and the order of the data-generating system. The solution given in [13] assumes a given input/output partitioning w= [u y]of the variables and provides sufficient conditions only: (DD-REPR) holds true assuming that A1: Bis controllable and A2: PE(ud) = L+n(B), where PE(ud)is the order of persistency of excitation of ud∈(Rm)T,i.e., the maximal L, for which HL(ud)is full row-rank. Assumption A1 is not verifiable from the data and Assumption A2 requires prior knowledge of the order of the data-generating system. The need to assume input/output partitioning and controllability as well as the sufficiency but not necessity of A1 and A2 make the result of [13] more restrictive than (GPE). Obtaining conditions for (DD-REPR) in terms of the input udis not motivated in [13]. A possible motivation for this choice is input design: A2 can be used for choosing the input so that the data wdis guaranteed to ensure (DD-REPR) for any initial condition. In the behavioral setting, initial conditions of a trajectory are specified by a prefix trajectory wd,ini ∈(Rq)Tini . Let wd,ini ∧ wdbe the concatenation of the trajectories wd,ini and wd, ie, wd,ini ∧wd:=wd,ini(1),...,wd,ini(Tini), wd(1),...,wd(T)∈(Rq)Tini+T. In wd,ini ∧wd, the prefix wd,ini specifies the initial condition for wdprovided Tini ≥l(B)[6, Lemma 1]. We refine the problem statement of [13] as follows: for given L≥l(B), find nonconservative conditions on the input ud and the data-generating system B, under which for any initial condition wd,ini ∈B|Tini , a trajectory wd,ini ∧wd∈B|Tini satisfies (GPE). (GOAL) We verify (GOAL) by proving that there is no initial condition for which (GPE) is not satisfied. Thus, our proof searches for the wini that minimizes the rank of HL(wd). Assumption A1 and the weaker version of Assumption A2: A2′:PE(ud) = L are necessary for (GOAL). 1Moreover, under conditions A1 and A2′, (GOAL) holds generically, i.e., for any controllable system Band any input udsatisfying A2′, (GPE) holds true for almost all wd,ini. Alternatively, (GOAL) holds almost 1To see that Assumption A1 is necessary, assume to the contrary that Bis uncontrollable. Then, B=Bctr ⊕Baut, where Bctr is controllable and Baut is autonomous [11, Proposition V.8]. Therefore, wd∈Bcan be decomposed into wd=wd,ctr +wd,aut, with wd,ctr ∈Bctr and wd,aut ∈Baut. Since wd,aut is completely determined by the initial condition, there is wd,ini, such that wd,aut =0 and therefore (GPE) does not hold. To see that Assumption A2′ is necessary, denote with Πuthe projection of w=u yon the u-component. Since uis an input, ΠuB|L=Rm(B)L. Therefore, for (GPE) to hold true, image HL(ud) = Rm(B)Lor, equivalently, HL(ud)must be full row-rank. 2
certainly for a random controllable system Band a random input udsatisfying A2′. The question occurs: What are the cases of A1 and A2′in which (GOAL) fails? The extra persistency of excitation of order n(B)in Assumption A2 that is needed beyond the obvious persistency of excitation of order Lis the crux of the result in [13]. “The interesting, and somewhat surprising, part of Theorem 1 (the fundamental lemma) is that persistency of excitation of order L+n(B)is needed in order to be able to deduce that the observed sequences (WIN) of length L have the “correct” annihilators and the “correct” span. In other words, we have to assume a “deeper” persistency of excitation on udthan the width of the windows of (ud,yd) which are considered.” [13, Section 4] The original publication [13] as well as subsequent publications using and generalizing the result (see, e.g., [8,3,9,10]) do not given explanation (or speculation) that shed light on this crucial fact. In addition, presently it is not known how conservative assumptions A1 and A2 are for (GOAL). We address these questions in the following section. Summary of notation: •w|L:=w(1),...,w(L)— restriction of wto [1,L] •B|L:={w|L|w∈B}— restriction of Bto [1,L] •m(B)/l(B)/n(B)— number of inputs/lag/order of B •HL,j(w)— Hankel matrix with Lblock rows and j columns (by default j=T−L+1, i.e., all data is used) •PE(u)— order of persistency of excitation of u •Bss(A,B,C,D)/Bss(A,C)— minimal state-space representation of input-output / autonomous system •CL(A,B)/OL(A,C)— extended controllability/observability matrix with Lblock-columns/rows •expλ— exponential function, expλ(t):=eλt 3 Main results As in [13], we consider a controllable linear time-invariant system Bwith an input/output partitioning w= [u y].In Section 3.2 we present an alternative constructive proof of the result of [13] for the single-input case m(B) = 1. The proof is constructive because the persistency of excitation assumption is derived rather than postulated. The new proof shows that in the single-input case assumptions A1 and A2 are necessary and sufficient for (GOAL). The proof is based on the fact, proven in Section 3.1, that persistency of excitation of ud∈RTis equivalent to existence of an autonomous linear time-invariant model Buof order nu=PE(ud).Then, a state-space representation of the system combining the input model Buand the system Ballows us to characterize the nongeneric cases of (GOAL), corresponding to A1 and A2′. 3.1 Model of input with bounded persistency of excitation Lemma 1 The following are equivalent: (1) ud∈(R)Tis persistently exciting of order PE(ud) = nu, (2) udis a response of an autonomous system Bu= Bss(Au,Cu)of order nuwith T ≥2nu−1samples, i.e., ud∈Bu|T, and initial condition xu,ini =xu(1), such that Au,xu,iniis controllable. PROOF. The condition ud∈Bss(Au,Cu)implies that, HL(ud) = OL(Au,Cu)CT−L+1Au,xu,ini,for L≤T(FAC) and, vice versa, the factorization (FAC) implies that ud∈ Bss(Au,Cu)|T. The matrix OL(Au,Cu)is full row rank for all L=1,...,nuand CT−L+1Au,xu,iniis full row rank for all L=1,...,nudue to the minimality of the representation, the controllability of the pair Au,xu,ini, and the assumption T≥2nu−1. It follows that HL(ud)is full row rank for all L=1,...,nu. Finally, rank Hnu+1(ud) = nu, so that Hnu+1(ud)is rank deficient. 2 Using Lemma 1, a system B=Bss(A,B,C,D), whose input uis persistently exciting of order nu, can be augmented with the “internal model” Bu=Bss(Au,Cu)of the input, resulting in an extended autonomous system Bext for w= [u y]. The augmented system Bext, including the input model Bu and Bis given by Bext =Bss(Aext,Cext),where Aext ="Au0 BCuA#and Cext ="Cu0 DCuC#. The extended state is xext = [xu x], where xuis the state of Bss(Au,Cu)and xis the state of Bss(A,B,C,D). As a result of using the input model Bu, we transform the original problem about the input/output system Binto an equivalent problem about the autonomous system Bext. This is the main motivation of using the input model in the first place. The following proposition derives a state transformation that block-diagonalizes Aext. The block-diagonalization leads to a representation of Bext with decoupled states of the input model Buand the system B, which simplifies the analysis. Proposition 1 Assume that A and Auhave no common eigenvalues and let V ∈Rn×nube the solution to the Sylvester equation AV −VAu=BCu.(SYLV) 3
Then, Bext =Bss (A′ ext,C′ ext), where A′ ext ="Au0 0A#and C′ ext ="Cu0 C′C#,with C′:=DCu−CV. The state of Bss (A′ ext,C′ ext)is x′ ext =xu Vxu+x, where xuis the state of Bss(Au,Cu)and x is the state of Bss(A,B,C,D). PROOF. Consider a similarity transformation hInu0 V Ini, where V∈Rn×nu. We have, "Inu0 V In#"Au0 BCuA#="Au0 0A#"Inu0 V In#, The lower-left block of the equation gives the Sylvester equation (SYLV) for V. The existence and uniqueness of the solution of (SYLV) follows from [2, Theorem 8.2.1.]. 2 Proposition 1 shows that the nongeneric cases of A1 and A2′in which (GOAL) fails correspond to a special choice of the initial condition of B: xini =−Vxu,ini.(NONGEN) Indeed, then wd=hCu C′iexpAuxu,ini,so rank HL(wd)≤nu. In a trajectory wdcorresponding to (NONGEN) the transient is removed, i.e.,yd, has no terms expλi, where λiis an eigenvalue of A. This fact leads us to a constructive proof. 3.2 Constructive proof In view of the necessary condition A2′, let PE(ud) = L+k, where kwill be determined as the minimum natural number, for which (GOAL) holds. By Proposition 1, (GOAL) holds if and only if (GPE) holds for the initial condition (NONGEN). Therefore, we only need to guarantee the rank condition (GPE) for (NONGEN). In what follows, we adopt a proof strategy based on a sum-of-polynomials-times-exponentials representation of wd. In order to simplify the derivation, with some loss of generality, we assume that Band Buhave distinct eigenvalues. Then, the proof is effectively using the modal forms of B(A,B,C,D)and B(Au,Cu). Lemma 2 Assume that the eigenvalues λu,1,...,λu,nuof Bu and the eigenvalues λ1,...,λnof Bare simple and distinct, i.e.,λu,i=λj, for all i =1,...,nuand j =1,...,n. Let ud∈ Bu|Twith PE(ud) = nu=L+k and ydbe the corresponding output of Bunder the initial conditions (NONGEN). Then, rank HL(wd) = L+k,for k =1,...,n L+n,for k =n+1,... (RANK) PROOF. As a corollary of Lemma 1, udis a sum-of- polynomials-times-exponentials signal, see [7, Thm. 3.2.5]. Since, the eigenvalues of Buare simple, ud= nu ∑ i=1 aiexpλu,i.(SE) Since the eigenvalues of Buare distinct, the rank of the Hankel matrix rank Hnu(ud)is equal to the number of nonzero coefficients ai. On the other hand, rank Hnu(ud) = nubecause PE(ud) = nu. Therefore, ai=0 for all i=1,...,nu. The output ydcorresponding to the input (SE) and general initial conditions is yd= nu ∑ i=1 biexpλu,i+ n ∑ j=1 cjexpλj, where bi=H(eiλu,i)ai,for i=1,...,nu,i:=√−1, H(z):= C(Iz−A)−1B+D,and the cj’s are determined by the initial conditions and the input, see [1, Section 12.12]. With initial conditions (NONGEN), cj=0 for all j=1,...,n. Define the Vandermonde matrix VT(λu):= λ1 u,1··· λ1 u,nu . . .. . . λT u,1··· λT u,nu and let H(λu):=diagH(eiλu,1),...,H(eiλu,nu). With this notation we rewrite udand ydas ud=VT(λu)aand yd = VT(λu)H(λu)a.For the trajectory wd= [ud yd], we have wd=ΠT"VT(λu) VT(λu)H(λu)#a, where ΠT∈R2T×2Tis the permutation matrix that makes the identity wd=ΠT[ud yd]. Then, we have HL(wd) = ΠL"VL(λu) VL(λu)H(λu)# | {z } WL haΛuaΛ2 ua··· ΛT−L uai | {z } CT−L+1(Λu,a) , where Λu:=diag(λu,1,...,λu,nu). The right-hand-side factor matrix CT−L+1(Λu,a)is full row rank because λu,i=λu,j, for all i=j, and ai=0, for all i. The columns of the left-hand- side factor matrix WL, viewed as L-sample signals are L- sample long trajectories of B,i.e., they are elements of B|L. Therefore, image WL⊆B|Land, by [5, equation (1)], dim WL≤dim B|L=L+n,for L≥n(B). 4
The columns of WLare linearly independence for k≤n because λu,i=λu,j, for all i=j. Then, we have rank WL=L+k,for k=1,...,n L+n,for k=n+1,... 2 Lemma 2 shows that for (GOAL) to hold true for all initial conditions, we need to take k=n. This proves that assumptions A1 and A2 are necessary and sufficient for (GOAL). Theorem 3 For m(B) = 1and L ≥l(B), assumptions A1 and A2 are necessary and sufficient for (GOAL). Comments System zeros In the sum-of-exponentials representation of the output ydup to ncoefficients bimay be equal to zero due to λu,i’s matching the zeros of H(z). Therefore, yd may be a sum of as few as L+k−nexponents. This, however, does not affect (RANK). Robustifying the persistency of excitation conditions For PE(ud)to hold true 1) ai=0, for all iand 2) λu,i=λu,j, for all i=j. A way of robustifying these conditions is 1) ai>ε, for some user defined tolerance ε, and 2) choose the λu,i’s "well spread". Input design using the input model BuUsing the input model representation of a persistently exciting signal (see, Figure ??), the freedom of choosing an input that satisfies the conditions of the fundamental lemma is equivalent to choosing the input model Buand the initial conditions xu,ini. The input model representation of the class of sufficiently exciting inputs can be used then for input design under user defined specifications, such as frequency band, maximum/minimum value bounds, etc. Simple eigenvalues of Buand BThe assumptions of simple and distinct eigenvalues are generic. The proof of Lemma 2 can be generalized to the case of multiple eigenvalues, however, the distinctness of the eigenvalues of Auand Ais still needed for Proposition 1. Multivariable systems We conjecture that in the multiinput case, the persistency of excitation assumption A2 of the fundamental lemma is conservative and can be improved. Let ℓ ℓ ℓctrb(B)be controllability index of B. We conjecture that assumption A1 and A2′′:PE(ud) = L+ℓ ℓ ℓctrb(B) are necessary and sufficient conditions for (GOAL). 4 Simulation example The purpose of the simulation examples shown in this section is to verify empirically the result of Theorem 3. The simulation parameters are the order nof the system Band the horizon Lof the data-driven representation (DD-REPR). n = 4;L=n+ 1; The number of samples Tof the trajectory wdis chosen to be sufficiently large, so that Assumption A2 can hold. T = 3*(L +n); With these parameters, Bis selected as a random linear time-invariant system. B = drss(n); A random system is almost certainly controllable, so that it satisfies Assumption A1. In the experiments, we choose the following orders of persistency of excitation nu of the input ud: E1: nu = L, which corresponds to Assumption A2′, E2: nu = L + n - 1, which is the highest order not satisfying Assumption A2, E3: nu=L+n, which corresponds to Assumption A2. According to Lemma 1, in all experiments the input udis generated as an output of an autonomous system Buwith order nu, which is equal to PE(ud). The system Buis selected as random marginal stable (drss_ms). Marginal stability is needed in order to avoid divergence and convergence to 0 of udas Tgrows. Bu = drss_ms(nu, 1,0); With the systems Band Bu selected, we are ready to simulate data wdunder different initial conditions and test (GPE). We do the simulation first with random initial condition: x0u = rand(nu, 1); u = initial(Bu, x0u, T-1); x0 = rand(n, 1); y = lsim(B, u, [], x0); and then with the special initial condition (NONGEN), which leads to a nongeneric case for (GOAL): v = sylvester(B.a, -Bu.a, B.b *Bu.c); y_ = lsim(B, u, [], -v*x0u); We verify that PE(u) = nu Hu = blkhank(u, nu + 1); check = (rank(Hu) == nu) % -> TRUE For the simulated trajectories [u,y] and [u,y_], we check if (GPE) holds. H = blkhank([u y ], L); check = (rank(H)== L+n) % -> TRUE H_ = blkhank([u y_], L); check = (rank(H_) == L+n) % -> ??? The results for the experiments E1–3 are shown in Table 1. In all experiments PE(u) = nu. The cases when (GPE) holds confirm empirically Theorem 3, i.e., the fact that Assumption A2 is necessary and sufficient for (GOAL). 5
Table 1 The results of checking (GPE) with random initial condition (generic case) and the special initial condition (NONGEN) (nongeneric case) confirm Theorem 3, i.e., Assumption A2 is necessary and sufficient for (GOAL). experiment E1 E2 E2 assumption A2′— A2 PE(u)L L +n−1L+n generic xini true true true nongeneric xini false false true Acknowledgements I. Markovsky is funded by the Catalan Institution for Research and Advanced Studies (ICREA), FWO projects G090117N and G033822N; and FNRS–FWO EOS Project 30468160. E. Prieto is a lecturer of the Serra Húnter Programme. References [1] Dennis Bernstein. Matrix Mathematics: Theory, Facts, and Formulas. Princeton University Press, second edition, 2011. [2] B. Datta. Numerical Methods for Linear Control Systems. Elsevier, Oxford, UK, 2004. [3] C. De Persis and P. Tesi. Formulas for data-driven control: Stabilization, optimality, and robustness. IEEE Trans. Automat. Contr., 65:909–924, 2020. [4] I. Markovsky and F. Dörfler. Identifiability in the behavioral setting. Technical report, 2019. [5] I. Markovsky and F. Dörfler. Behavioral systems theory in datadriven analysis, signal processing, and control. Annual Reviews in Control, 52:42–64, 2021. [6] I. Markovsky and P. Rapisarda. Data-driven simulation and control. Int. J. Control, 81(12):1946–1959, 2008. [7] J. Polderman and J. C. Willems. Introduction to Mathematical Systems Theory. Springer-Verlag, 1998. [8] H. van Waarde, J. Eising, H. Trentelman, and K. Camlibel. Data informativity: A new perspective on data-driven analysis and control. IEEE Trans. Automat. Contr., 65:4753–4768, 2020. [9] H. J. van Waarde, C. De Persis, M. K. Camlibel, and P. Tesi. Willems’ fundamental lemma for state-space systems and its extension to multiple datasets. IEEE Control Systems Letters, 4:602–607, 2020. [10] Henk van Waarde. Beyond persistent excitation: Online experiment design for data-driven modeling and control. IEEE Control. Syst. Lett., 6:319–324, 2021. [11] J. C. Willems. Paradigms and puzzles in the theory of dynamical systems. IEEE Trans. Automat. Contr., 36(3):259–294, 1991. [12] J. C. Willems. The behavioral approach to open and interconnected systems: Modeling by tearing, zooming, and linking. Control Systems Magazine, 27:46–99, 2007. [13] J. C. Willems, P. Rapisarda, I. Markovsky, and B. De Moor. A note on persistency of excitation. Control Lett., 54(4):325–329, 2005. 6