Detectability and Observer Design for Switched Differential Algebraic Equations
Aneel Tanwani, Stephan Trenn

TL;DR
This paper introduces the concept of interval-wise detectability for switched differential-algebraic equations and applies it to design observers that ensure asymptotic state estimation accuracy.
Contribution
It proposes a new detectability notion for switched DAEs and demonstrates its use in synthesizing observers with guaranteed convergence.
Findings
Interval-wise detectability implies asymptotic stability of zero-output trajectories.
Observer design based on state decomposition ensures error convergence.
Conditions for stability and convergence are established.
Abstract
This paper studies detectability for switched linear differential-algebraic equations (DAEs) and its application to the synthesis of observers, which generate asymptotically converging state estimates. Equating detectability to asymptotic stability of zero-output-constrained state trajectories, and building on our work on interval-wise observability, we propose the notion of interval-wise detectability: If the output of the system is constrained to be identically zero over an interval, then the norm of the corresponding state trajectories scales down by a certain factor at the end of that interval. Conditions are provided under which the interval-wise detectability leads to asymptotic stability of zero-output-constrained state trajectories. An application is demonstrated in designing state estimators. Decomposing the state into observable and unobservable components, we show that if the…
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.
Detectability and Observer Design for Switched Differential Algebraic Equations111This work was supported by DFG-project TR 1223/2-1 and was partly carried out while the authors were at the University of Kaiserslautern, Germany. The first author also acknowledges the support provided by the ANR project ConVan with grant number ANR-17-CE40-0019-01.
Aneel Tanwani
Stephan Trenn
Team MAC (Decision and Optimization), LAAS – CNRS, Toulouse, France
Jan C. Willems Center for Systems and Control, University of Groningen, Netherlands.
Abstract
This paper studies detectability for switched linear differential-algebraic equations (DAEs) and its application to the synthesis of observers, which generate asymptotically converging state estimates. Equating detectability to asymptotic stability of zero-output-constrained state trajectories, and building on our work on interval-wise observability, we propose the notion of interval-wise detectability: If the output of the system is constrained to be identically zero over an interval, then the norm of the corresponding state trajectories scales down by a certain factor at the end of that interval. Conditions are provided under which the interval-wise detectability leads to asymptotic stability of zero-output-constrained state trajectories. An application is demonstrated in designing state estimators. Decomposing the state into observable and unobservable components, we show that if the observable component of the system is reset appropriately and persistently, then the estimation error converges to zero asymptotically under the interval-wise detectability assumption.
keywords:
Switched systems, differential-algebraic equations, detectability, observer design, state estimation, asymptotic convergence.
††journal: Automatica
1 Introduction
The growing application of switched systems in modeling and analysis has contributed toward immense research in the area of dynamical systems which combine discrete and continuous dynamics. Different classes of switched systems can be introduced based on the models associated with the switching signal, or the particular characteristics of the individual subsystems. In this regard, this article studies the problem of detectability for switched systems where the subsystems are described by differential-algebraic equations (DAEs) and the switching signal is assumed to be known a priori.
Switched DAEs arise naturally when the system dynamics undergo sudden structural changes (switches) and the dynamics of each mode are algebraically constrained (Trenn, 2012). A typical example are electrical circuits with switches where the constraints are induced by Kirchhoff’s laws. Our previous works on structural properties of switched DAEs has addressed the problem of observability (Tanwani and Trenn, 2012) and the observer design (Tanwani and Trenn, 2013, 2017a) under the stronger assumption of determinability (which in the nonswitched case is equivalent to observability and roughly speaking means that the state at the end of the observation interval can be determined to any given accuracy). Building on this line of work, this article proposes the notion of (interval-) detectability for switched linear DAEs and its application in the observer design.
Roughly speaking, the property of detectability incorporates the notions of observability and stability, that is, a dynamical system is called detectable if the state trajectories, which correspond to the same input and output, converge asymptotically towards a single trajectory. Seen as a generalization of the observability property for classical linear systems, detectability is characterized by asymptotic stability of the unobservable modes for linear time-invariant systems, or stability of the reduced-order system obtained by setting the output of the system to identically zero. For nonlinear systems, while there are different notions for observability (Sontag, 1998), the notion of output-to-state stability (OSS) provides one possible framework (Sontag and Wang, 1997) to study detectability, which has also been used in observer design (Astolfi and Praly, 2003). These techniques are generalized for switched systems as well: The work of De Santis et al. (2009) proposes detectability conditions for switched linear system in terms of the stability of a reduced order switched system. More recently, Mancilla-Aguilar and Garcìa (2018) also show the relevance of detectability of a reduced-order system with zero output in establishing global asymptotic stability of the switched system. The notion of OSS has been studied for switched nonlinear systems by Müller and Liberzon (2012), where the focus is on characterizing a class of switching signals under which the growth of the state trajectory is bounded by some increasing function of the output norm.
One major utility of the detectability notion is its application in design of observers, or state estimators.222While some references differentiate between the terms observer, asymptotic observer and state estimator, e.g. (Trentelman et al., 2001), these terms are used synonymously in this article. See the beginning of Section 4 for a formal definition adopted in this paper. The observer design for (nonswitched) DAEs using observability and detectability notions is an ongoing research topic (Berger and Reis, 2017). Our approach towards observer design for switched DAEs builds on the observability notions studied in (Tanwani et al., 2013) and (Tanwani and Trenn, 2012, 2017a), where we use the output information from different modes active over an interval to recover the value of the state, either at the start of the interval (observability), or at the end of the interval (determinability). Due to this generalized notion, we have to introduce unobservable dynamics over an interval which not only depend on the unobservable dynamics of individual subsystems but also their activation times. The detectability notion proposed in this article thus relates to the stability of the unobservable dynamics over an interval (and not the individual subsystems). Inspired by the fact that detectability is a sufficient condition for designing state observers for linear systems, we use these ideas to propose an observer design for switched DAEs.
The contribution of this paper lies in studying detectability notions for switched DAEs (see Section 3 for the formal definitions) and design state estimators for systems satisfying the detectability assumption in an appropriate sense. This work builds on our two conference papers: geometric conditions for detectability of switched DAEs were studied in (Tanwani and Trenn, 2015) and the preliminary design of the observer was proposed in (Tanwani and Trenn, 2017b). Using the presentation of the later article as a template, this paper provides additional details, rigorous proofs of the results, and simulation results which were not a part of the conference paper. To the best of our knowledge, these results are also new for the case of switched ordinary differential equations (switched ODEs), as the previous works have only dealt with observable switched systems (Tanwani et al., 2013). It turns out that an observer for the detectable case has to work fundamentally different to our observer proposed for the determinable case. We illustrate this by the following simple example.
Example 1**.**
Consider the switched ODE on the interval given by
[TABLE]
If we restrict our attention to the interval , then on this interval implies , and hence is observable (but only when two switches occur, otherwise is not observable). Also, the identically zero output would imply that the magnitude of decreases, which is the notion of detectability we adopt in this paper (see Section 3). It is possible to design an impulsive estimator with states which copies the system dynamics over the interval , and at we reset the estimations of the observable states as
[TABLE]
for some map , so that, if denotes the state estimation error, we have
[TABLE]
for some desired . Here, and in the remainder of this article, we use the notation to denote the Euclidean norm of a vector. Moreover, for the unobservable error , we get
[TABLE]
and hence
[TABLE]
Thus, independently of the accuracy of the estimation of the observable components, for a large initial value , the final error may be significantly larger than . Therefore a direct application of our previous presented observer to detectable systems will not work. The underlying problem for this example is that it is not enough to have a good estimate of the observable states at the end of the considered interval, but the estimate must be available already when the observable states influence the unobservable states.
The remainder of the paper is structured as follows: In Section 2 we formally introduce the system class of switched DAEs and also highlight the importance of taking induced Dirac impulses into account. Afterwards we introduce in Section 3 the notion of detectability. In particular, we introduce the notion of uniform interval-detectability, which is fundamental for our observer design, which we present in Section 4. The key result in Section 4 is Theorem 13, which shows how the ideal correction term decreases the estimation error. Convergence of the observer for non-ideal correction terms is shown in Theorem 15 in Section 5. The observer design in the form of an algorithm and implementational issues are discussed in Section 6, simulations are carried in Section 7.
2 Preliminaries
2.1 Switched DAEs
We consider switched linear DAEs of the form
[TABLE]
where denote the state (with dimension ), input (with dimension ) and output (with dimension ) of the system, respectively. The switching signal is a piecewise constant, right-continuous function of time and in our notation it changes its value at time instants called the switching times. We adopt the convention that over the interval of length , the active mode is defined by the quintuple , and . If for all we call (2) a switched ODE. In general, is not assumed to be invertible, which means that in addition to differential equations the state has to satisfy certain algebraic constraints. At a switching instant the algebraic constraints before the switch and the algebraic constraints after the switch do not match in general, i.e. the state variable has to jump in order to satisfy the algebraic constraints after the switch (cf. Lemma 18 in Appendix A). These induced jumps are a first major difference to switched ODEs (which do not exhibit jumps unless one imposes some additional external jump rules). The second major difference is the possible presence of Dirac impulses in the state variable in response to a state jump, see Trenn (2012) for details. The following example shows this effect and also the role of the Dirac impulses in the state estimation problem.
Example 2**.**
Consider the switched DAE given by, ,
[TABLE]
The dynamics for and are actually non-switched and it is therefore obvious that the overall switched system can only be detectable when it is possible to determine from the output. On the intervals , , the output is zero by definition and on the open intervals , , it holds that , hence , i.e. the output is zero almost everywhere. Consequently, we are not able to deduce anything about from the output if we do not take into account what the output is doing at the switching times. So what is doing at the switching times , ? The state jumps from to , hence contains the derivative of this jump! The derivative of a jump is only well defined in a distributional (generalized functions) solution framework; in this framework contains a Dirac impulse with magnitude and this Dirac impulse is visible at the output. Consider now the switching time then we can deduce from the Dirac impulse of the output at the value . We know that on , on and is constant, hence . In particular, if we observe a zero output (including zero Dirac impulses) we can conclude that , on and as . In summary, the above switched DAE is detectable but it is not possible to estimate the state without taking into account the Dirac impulses in the output.
The above example shows that an observer design which does not utilize the information from possible Dirac impulses in the output will not work for general switched DAEs. We will therefore recall now the distributional solution framework for (2) as introduced in Trenn (2009).
2.2 Distributional solution framework
Let denote the space of distributions in the sense of Schwartz (1950, 1951), i.e. if, and only if, is linear and continuous, where is the space of test functions consisting of smooth functions with compact support and equipped with a suitable topology. Any locally integrable function induces a distribution given by
[TABLE]
For differentiable it is easily seen via integration by parts that
[TABLE]
which motivates the definition of the derivative of a general distribution :
[TABLE]
For some interval let be the indicator function of , i.e. for and otherwise. Then the Dirac impulse can be defined as the distributional derivative of the unit jump (or Heaviside step function), i.e.
[TABLE]
Note that for any test function . The Dirac impulse at , denoted by , is the distributional derivative of . As shown in (Trenn, 2009) it is not possible to use the space directly as the underlying solution space for the switched DAE (2). Instead, the smaller space of piecewise-smooth distributions will be used as underlying solution space for (2), where
[TABLE]
i.e. a piecewise-smooth distribution is the sum of a piecewise-smooth function and Dirac impulses (and their derivatives) at isolated points in time. Any piecewise smooth distribution can be evaluate at time in three different ways:
[TABLE]
where we denote by the impulsive part of at time . Note that for any
[TABLE]
for some finite and . Furthermore, the product of a piecewise-smooth function with a piecewise-smooth distribution is well defined, in particular, (2) can be evaluated for piecewise-smooth distributions. It is also possible to define the restriction to intervals for piecewise-smooth distributions,in particular, for any interval we have
[TABLE]
Lemma 3** (cf. Trenn (2009)).**
Consider the switched DAE (2) and assume that each matrix pair is regular, i.e. is not the zero polynomial. Then for every , any and any interval there exists uniquely defined on such that and (2) holds as an equation of piecewise-smooth distributions restricted to .
This motivates the following solution definition of (2).
Definition 4** (Solution of switched DAE).**
A tuple (or just when and are clear) is called a solution of (2) on an interval if , , and (2) restricted to holds in the distributional sense. If we omit “on the interval ” in the following.
3 Detectability Notions
Roughly speaking, in classical literature on nonswitched systems, a dynamical system is called detectable if, for a fixed input and an observed output, the trajectories starting from every pair of indistinguishable initial states converge to a common trajectory asymptotically. This definition can readily be generalized to DAEs (see e.g. the notion of behavioral detectability in Berger et al. (2017, Sec. 9)) as well as to switched systems (see e.g. De Santis et al. (2009, Defn. 2.2)); the formal definition for switched DAEs is as follows:
Definition 5**.**
The switched DAE (2) is called detectable for a given switching signal , if there exists a class function333A function is called a class function, if 1) for each , is continuous, strictly increasing, with ; 2) for each , is decreasing and converging to zero as . such that, for any two distributional solutions , of (2) we have
[TABLE]
Because of linearity the definition can be simplified to the case that and , in particular, convergence to zero has only to be checked for the homogeneous system and the initial states in
[TABLE]
or in other words, detectability is the same as asymptotic stability of the switched DAE (2) with and .
Remark 6**.**
In contrast to previous works on stability of switched DAEs (Liberzon and Trenn, 2009, 2012) we do not require impulse-freeness of solutions for asymptotic stability. The reason is that the presence of Dirac impulses may actually help to make certain states observable (cf. Example 2), hence the exclusion of Dirac impulses may exclude an important class of problems where Dirac impulses are needed for observability (or detectability). It should also be noted that the magnitude of the Dirac impulses is always proportional to the state value prior to the time the Dirac impulse occurs (cf. the explicit expression (22) in the Appendix), i.e. when the state converges to zero as the magnitude of the Dirac impulses also converges to zero (under an additional mild boundedness assumption on as ).
Computation of the set in general depends on all switching times and the data of all subsystems. For certain applications, such as state estimation which we discuss later, it may be desirable to work with system data available on finite intervals only, and in that case, Definition 5 may not be suitable. To overcome this problem, we consider the system behavior on finite intervals, and introduce the notion of interval-detectability:
Definition 7** (Interval-detectability).**
The switched DAE (2) is called -detectable for a given switching signal , if there exists a class function with
[TABLE]
One should be aware, that a solution on some interval is not always a part of a solution on a larger interval. Consequently, detectability does not always imply interval-detectability: The switched system on and on with zero output is obviously detectable (because zero is the only global solution), but it is not interval-detectable on for any because on there are nonzero solutions which do not converge towards zero.
Furthermore, we would like to emphasize that the interval in general contains multiple switches, i.e. it is not assumed that the individual modes of the switched systems are detectable. We need some uniformity assumption to conclude that interval-detectability on each interval of a partition of implies detectability:
Assumption 1** (Uniform interval-detectability).**
Consider the switched system (2) with switching signal and switching times , . Assume that there exists a strictly increasing sequence with such that for the system is -detectable with -function for which additionally it holds that
[TABLE]
for some uniform and .
We can now show the following result:
Proposition 8**.**
If the switched system (2) is uniformly interval-detectable in the sense of Assumption 1 then (2) is detectable.
Proof. Let for
[TABLE]
i.e. for each the function is linear on and decreasing from towards . Now let
[TABLE]
where is such that . Clearly, for fixed , is continuous and strictly increasing. From (6a) and it follows that
[TABLE]
and, invoking (6b),
[TABLE]
Because , continuity of with fixed follows. Furthermore, on each interval the function is strictly decreasing as a maximum of two strictly decreasing functions. Additionally, with implies that converges to zero as . So is a -function and it remains to be shown that for any solution of (2). First observe, that by (6a) and continuity of it follows that
[TABLE]
hence . Therefore,
[TABLE]
∎
The uniformity conditions (6a) and (6b) are both crucial, see (Tanwani and Trenn, 2017b, Example 2) for counterexamples.
Example 9** (Example 1 revisited).**
Consider the system in Example 1 with periodic switching where the mode sequence and activation times defined for the interval are repeated on the interval , . It can be verified that the resulting system is uniformly interval-detectable, and hence detectable by Proposition 8. To see this, we consider the sequence and let
[TABLE]
The function satisfies the inequalities (6a) and (6b), with and , respectively. The constraint yields , and it can be verified that
[TABLE]
Remark 10**.**
Proposition 8 can actually be seen as a statement about asymptotic stability of switched systems and when it is possible to conclude asymptotic stability from some stability notion on finite intervals. Furthermore, the statement carries over to the nonlinear case without much change, because in the proof we did not exploit the special (linear) form of the switched system (2).
4 Observer design
We now turn our attention to designing observers. By definition, an observer for system (2) is an operator , either static or dynamic, which for each satisfying (2), generates having the property that
[TABLE]
for some class function . The observer design presented here is an extension of the algorithm proposed in (Tanwani and Trenn, 2017a) for the determinable case (in particular, the interval-wise observer design), i.e. we propose an impulsive observer which consists of a system copy and a correction term which updates the state of the system copy at the end of the detectability interval.
Taking a bird’s eye view, the state estimator — under the uniform interval-detectability (Assumption 1) with detectability intervals , — is given by with
[TABLE]
where is a state estimation correction obtained from the available data on the interval applied at the end of the corresponding interval. Similar to the technique adopted in (Tanwani and Trenn, 2017a), the correction term is obtained by collecting the local observability data for each mode. However, these local data is combined in a fundamentally different way compared to (Tanwani and Trenn, 2017a), because is obtained by composing the local observability data backward in time first and then propagating this forward in time under the error dynamics, cf. Example 1.
In particular, a much more complicated algorithm is needed to obtain the correction term at the end of the interval. In fact, it consists of the three following steps which have to be carried out on each of the detectability intervals :
- (i)
Collect local observability data for each mode synchronous to the system dynamics from the measured input and output over the interval . 2. (ii)
Propagate back the collected information to obtain an estimation correction at the beginning of the detectability interval. 3. (iii)
Propagate forward the correction term to obtain the actual estimation correction at the end of the interval.
We will now explain each of the steps in detail, for that we drop the index and just consider the generic detectability interval for some . It is helpful to introduce the estimation error (which we don’t know, because is not known) and the corresponding output mismatch (which we know). It is easily seen that the error is governed by the following homogeneous switched DAE on :
[TABLE]
and the idea of the observer is to estimate the error signal from the measured output mismatch . The estimation of will then be used to update the state estimation at to ; if it then holds by definition that
[TABLE]
Remark 11**.**
*A key feature of our observer is the consideration of the homogeneous error dynamics (8) not only in the analysis but also in the implementation of our observer. In particular, it is not necessary to store the input and output values over a (possibly long) time interval to carry out Steps (ii) and (iii), see also Remark 14. This approach is only possible because the observer consists of a system copy without a continuous update of the state estimation based on an output error injection; instead our observer is an impulsive observer in the sense that only at isolated time points the state estimation is updated discontinuously. Another reason not to use continuous updates of the state estimations via output error injection is the problem that the observable subspace is not necessarily aligned with the original coordinates. While for the original Example 1 it would be possible to continuously update the estimation of already on the first interval; this update is not possible if we slightly change the example such that the output on the intervals and takes the form . It is easily seen that also with this output the switched system is detectable; however, now it is unclear how the local (one-dimensional) observability information available on the interval can be injected continuously to update the state variable in a meaningful way. *
4.1 Collecting local observability data for each mode
For each mode with consider the local unobservable space:
[TABLE]
Defining , and in terms of as in the Appendix A, it can be shown (cf. (Tanwani and Trenn, 2013, 2017a)) that
[TABLE]
Note that in general is not invertible and stands for the set-valued preimage.
Remark 12** (Different definitions of local unobservable space).**
In (Tanwani and Trenn, 2012, 2013, 2017a) slightly different definitions of the local unobservable spaces are used. The difference is based on the different solution interval; in the previous works this interval was or , while here the interval is . As a consequence here only depends on the system’s parameters of mode and not on parameters of two modes. The different definitions are motivated by the overall observability notion studied. In our first work we defined the local unobservable space in such a way that all information around a single switching time is utilized, in particular, the local unobservable space for a system with a single switch matched the overall unobservable space. Our later works focused on observer design and determinability (i.e. the ability to determine the state value at the end of the observation interval), for this reason it made sense to consider as local information the continuous output measurement before the current switching time and the Dirac impulses instantaneously induced at that switching time. Here our focus is on observable components of the state at the beginning of the observed interval (cf. Example 1) which motivated the definition (9).
If the output mismatch is nonzero then the value of in (8) prior to the switching time can be decomposed as
[TABLE]
where and and are orthonormal matrices. In particular, is the observable part of the error based on the knowledge on the interval . It is possible to write the observable part in terms of :
[TABLE]
with some operator which evaluates the impulsive part as well as the smooth part (possibly depending on the derivatives of ). The construction of this “ideal” observability operator is provided in Appendix B.1. One may also refer to (Tanwani and Trenn, 2017a, Section 5) for a detailed treatment. In practice, only an approximation of will be available, this will be discussed in Section 5.
4.2 Combining local information backwards in time
Next we want to combine the observable information collected on the interval via (10), to arrive at an expression for . To do so, we first quantify the information that can be extracted from the output over an interval by introducing the subspace
[TABLE]
which can be recursively calculated (backwards in time, i.e. for ), see (29) in the Appendix. We then decompose the state estimation error just before the interval accordingly:
[TABLE]
for some vectors and of appropriate dimension; here, and are the matrices with orthonormal columns such that
[TABLE]
As shown in Appendix B.2, there exists a matrix given in terms of , , and the duration time such that for
[TABLE]
and . Note that by construction, for all
[TABLE]
Now the ideal estimation error correction is
[TABLE]
where ; here the notation stands for a vector (or matrix) resulting from stacking all entries over each other. In fact, by construction the following is true:
[TABLE]
i.e. we are able to obtain the orthogonal projection of onto without actually knowing .
4.3 Propagating correction term forward in time
For the detectability interval , let be given as above, then let
[TABLE]
where and , is recursively given by
[TABLE]
with and are given as in Definition 17 in the Appendix. In fact, as a consequence from Lemmas 18 and 20 in the Appendix, is the transition matrix of the homogeneous error DAE (8) from to . We then have the following result:
Theorem 13**.**
Consider the switched DAE (2) which is detectable on with corresponding -function . Let be the solution of the system copy
[TABLE]
on . Based on the output mismatch , let
[TABLE]
where is given by (15), is given by (13) and with , is given by (10). Then
[TABLE]
i.e. the correction term indeed reduces the estimation error at the end of the interval in comparison to the estimation error at the beginning of the interval.
Proof. Let be the (virtual) solution of the system copy (16) with corrected initial value . By construction hence on and therefore, for all ,
[TABLE]
Note that as well as are solutions of the homogenous error DAE (8), in particular
[TABLE]
or, in other words,
[TABLE]
Finally, by construction and therefore, by Pythagoras’ Theorem,
[TABLE]
Altogether we have:
[TABLE]
which is the desired estimate. ∎
Remark 14**.**
The proof of Theorem 13 reveals that by applying the correction at the beginning of the interval the output of the system copy is then identical to the output of the original system. However, for the observer design it is not necessary to rerun the system copy (in particular storing the whole input signal over the interval ), because we just propagate via the homogenous error dynamics (8) which is independent of the in- and output. This actually allows us to calculate the error correction for an arbitrary future; this fact can be utilized to deal with time delays due to computation times, see the discussion in Section 6.
5 Estimation errors and asymptotic convergence
In theory, it is possible to determine the observable part exactly from the output, however, in practice one can only get approximations. Nevertheless, these approximations may be as accurate as desired (e.g. by choosing appropriate gains in a Luenberger observer). Similar as in (Tanwani and Trenn, 2017a) we therefore make the following assumption about the ability to approximate the observable part to any given accuracy:
Assumption 2**.**
For each mode of the switched DAE (2) and a given , there exists an estimator such that
[TABLE]
where is the ideal estimator of the observable part on as given in Section 4.1.
Under Assumption 2, the state estimation correction in (7) for the interval is given by
[TABLE]
where .
As detailed in B.1, the observable component of the estimation error on the interval is composed of the two components and , where the former is obtained from the continuous output mismatch on and the latter is obtained from the impulsive mismatch . The estimation of can be reduced to the classical state estimation problem for non-switched linear ODEs and there are many methods to do that. The only non-standard aspect here is that we have to obtain the state-estimation at the beginning of the interval and not (as usual) at the end of the interval. This does not pose any serious problems, as we can use a standard Luenberger observer on the interval to get an estimate at the end of the interval and then propagate this estimate back in time. Since the (homogeneous) ODE dynamics are known as well as the length of the interval, we can ensure the desired estimation accuracy at the beginning of the interval by increasing the accuracy of the estimate at the end of the interval.444In fact, consider an observable LTI system , over the interval , with the estimator , . For every , there exists such that . Choose , and for some desired , then it is easily verified that .
Another (more sophisticated) way of obtaining such estimates is by the use of “back-and-forth observer” as presented in (Shim et al., 2012), however, this requires the storage of the output over the whole interval .
The estimation accuracy for is actually concerned with the measurement accuracy of the impulsive part , i.e. on how well Dirac impulses and their derivatives can be measured in practice, see (Tanwani and Trenn, 2017a) for details.
Assumption 2, together with Assumption 1, provide all the ingredients we need for obtaining converging state estimates.
Theorem 15**.**
Consider the switched DAE (2) satisfying the uniform local detectability Assumption 1, and the local estimation accuracy Assumption 2. For the given in (6a), choose , , (depending on ) such that
[TABLE]
for some , where
[TABLE]
and
[TABLE]
Then the observer given by the system copies (7), with error corrections in (18) and the estimate chosen to satisfy (17) for specified in (19), results in
[TABLE]
i.e. the observer achieves asymptotic estimation of the state.
Proof. From Theorem 13 we know that for each detectable interval the ideal correction ensures
[TABLE]
Hence for the actual correction term , we have
[TABLE]
By assumption, and since for any with , we have
[TABLE]
Altogether we have
[TABLE]
i.e. on each detectability interval ) the estimation error decreases uniformly by a factor and the same proof technique as in Proposition 8 shows asymptotic convergence. ∎
6 Observer implementation
We have implemented the observer in Matlab and show in the next section the simulation results for the academic Examples 1 and 2. Before presenting the simulation results, we would like to discuss some implementation issues, in particular, which calculations can be carried out offline and how to treat the necessary computation times. The overall structure of the observer is given in Algorithm 1.
In the initialization phase, certain matrices and subspaces are calculated for each individual subsystem; in particular, a decomposition into unobservable and observable states is carried out. It should be noted that, in practice and in our setup, these calculations have to be carried out only for finitely many modes. In fact, it suffices to carry out the calculation for all modes occurring in the next detectability interval (and these calculations can be done in parallel to running the system copy and collecting the corresponding measurements). For a suitable choice of the Luenberger gain it is necessary to know (at least some bounds of) the values in (19) and consequently (bounds on) the necessary estimation accuracies as in Assumption 2. In case of a periodic switching signal one may adapt the Luenberger gain in each iteration until the estimation error is sufficiently small such that convergence of the state-estimator is guaranteed.
In the online (or synchronous) phase of the observer, a system copy must be simulated (driven by the current input) and its output must be compared with the actual output of the system. Although the output of the original system may contain Dirac impulses at arbitrary times, for the observer only the Dirac impulses at the switching times are compared with the predicted Dirac impulses of the system copy at the switching times. All other Dirac impulses are induced by discontinuities in the input (and are independent of the current state), hence (at least in theory) they are identical for the system copy and the original system and do not provide any additional information for the state estimation problem. Hence the impulse measurement needs only be active around the switching times. For estimating the observable part between the switching times, one could either run a classical observer (for the system (25) with the desired output ) synchronously to the system without the need to store the measures output difference ; however, as the dimension of the output is usually low, it may also be feasible to store the whole trajectory and carry out some more sophisticated estimation procedure offline.
Finally, after the local observability data is obtained, it must be combined in a suitable way to obtain the impulsive update for the state estimation . Although all the involved matrices can be computed offline, the actual calculations can only be carried out after the last estimate is obtained, hence some unavoidable processing time is required to compute . However, the effect of the processing time can be entirely compensated as follows: For a generic detectability interval , assume that an upper bound is known for the time required to calculate . Furthermore, we assume that is still a detectable interval in the sense of Definition 7 (this is always the case for sufficiently small ). In particular, is an arbitrarily good estimate of the projection of on the unobservable space . Now, we just propagate forward with the matrix to get a good estimate of , and we can update at the correct time. The key observation is that once we have obtained , we can freely chose the update time (i.e. how far we propagate forward the error correction) without loosing any accuracy.
7 Simulations
7.1 Simulation of Example 1
Consider the switched ODE given in Example 1 with the periodic switching signal. It was already shown in Example 9 that, due to periodicity assumption on , this system is uniformly interval-detectable. To implement the proposed observer, we run the system copy (7) on the intervals , , and apply the correction term at . The correction terms are obtained by
[TABLE]
where , for each , and is computed from the estimates of the observable states of individual subsystems: and . We recall that is an empty vector because the output over the interval is zero for each and nothing can be deduced about the state. The values of and are obtained by running a Luenberger observer (with gain ) for the -dynamics over the intervals and , respectively. We use the later to first compute
[TABLE]
where , and . This leads to
[TABLE]
where and .
The results of the simulation are reported in Figure 1.
It is observed that whenever a correction is applied at , the estimation error decreases and the convergence to zero is achieved asymptotically.
7.2 Simulation of Example 2
We now implement our observer on the system given in Example 2 where one of the subsystem is a DAE. As already discussed above the presence and evaluation of the occurring Dirac impulses in the output are crucial for the state estimation.
The system is detectable on the intervals , for and so we run the system copy (7) on the intervals , and apply the correction term at . The correction term, for each , is obtained by
[TABLE]
where and
[TABLE]
The term is computed from the estimates of the observable states of individual subsystems: and . Because on , and the corresponding subsystem is an ODE, we set to be the empty vector (nothing can be concluded from the output). Also, due to the structure of the second subsystem, the only observable information is due to impulses in the output, so that because
[TABLE]
To compute , we have , and
[TABLE]
where , and . Finally, we compute and use it along with to compute the correction terms .
Since in the simulation both the system and the system copy are simulated, we would be able to obtain without estimation error (i.e. in Assumption 2) and then already after one correction we would have a perfect state-estimation. Therefore, we introduced some artificial random noise when “measuring” , so that (17) is only satisfied with .
The results of the simulation are reported in Figure 2 where we see that the estimation error converges to zero in each of the state components. In particular, we see corrections in the magnitude of the impulses in state component .
8 Conclusion
We have studied the notion of detectability for switched DAEs which allows us to consider the problem of observer design under relaxed assumptions on system dynamics compared to the existing works. A novel estimation algorithm is proposed which relies on propagating backward and forward the correction terms obtained by processing the measured outputs and inputs. Rigorous convergence analysis of estimation error for the proposed algorithm is carried out and the results are illustrated by studying two academic examples with simulations.
Appendix
A Properties of a matrix pair
A very useful characterization of regularity is the following well-known result.
Proposition 16** (Regularity and quasi-Weierstraß form).**
A matrix pair is regular if, and only if, there exist invertible matrices such that
[TABLE]
where , , is some matrix and , , is a nilpotent matrix.
We call (20) a quasi-Weierstrass form of following Berger et al. (2012); therein it also shown how to easily obtain (20) via the Wong-sequences (Wong, 1974).
Definition 17**.**
Consider the regular matrix pair with corresponding quasi-Weierstraß form (20). The consistency projector of is given by
[TABLE]
Furthermore, let
[TABLE]
Finally, if also an output matrix is considered let
[TABLE]
To see the utility of the matrices introduced in Definition 17, consider the problem of finding a trajectory which solves the initial-trajectory problem (ITP)
[TABLE]
in some appropriate sense.
Lemma 18** (Role of consistency projector, (Trenn, 2009, Thm. 4.2.8)).**
Consider the ITP (21) with regular matrix pair and with arbitrary initial trajectory . There exists a unique solution and
[TABLE]
Lemma 19** ((Tanwani and Trenn, 2010, Cor. 5)).**
Consider the ITP (21) with regular matrix pair and the corresponding matrix. For the unique solution , it holds that
[TABLE]
where denotes the -th (distributional) derivative of the Dirac-impulse at .
Lemma 20**.**
For any regular matrix pair and output matrix , the following implication holds for all continuously differentiable :
[TABLE]
In particular, any classical solution of satisfies
[TABLE]
B Output-to-State Mappings
B.1 Observable component of a subsystem
The local unobservable space (9) is given by
[TABLE]
where
[TABLE]
In other words, denotes the unobservable space of the ODE , , and denotes the impulse unobservable space in the sense that implies .
We may now write
[TABLE]
where and and are orthonormal matrices. Here determines the projection of onto the subspace . The latter can further be decomposed as
[TABLE]
Let , and be the orthonormal matrices such that
[TABLE]
The motivation for introducing the components and is that they can be estimated using the output measurements on the interval . To express the vector in terms of these components, we introduce the matrix such that
[TABLE]
Such a matrix always exists because
[TABLE]
It then follows that
[TABLE]
If only estimates and of and are available, we therefore obtain an estimate of as follows:
[TABLE]
Next, we specify how to write and in terms of the output measured over the interval .
Mapping for the differentiable part : In order to define , where , we first introduce the function , which represents the observable component of the subsystem that can be recovered from the smooth output measurements over the interval . It follows (cf. (Tanwani and Trenn, 2017a, Lem. 17)) that the evolution of is governed by an observable ODE
[TABLE]
where and . Because of the observability of the pair in (25), there exists a (linear) operator such that
[TABLE]
and we set
[TABLE]
Note that for an estimation of obtained by a standard observer (e.g. the Luenberger observer) the evaluation at the beginning of the observation interval is not meaningful (because this value is not affected by the output injection). However, a good estimate can easily be obtained by propagating back the final estimate with the known homogeneous system dynamics; i.e.
[TABLE]
Mapping for the impulsive part : The impulsive part of the output at switching time can be represented as
[TABLE]
where due to Lemma 19 the coefficients satisfy the relation , with . We chose a matrix such that
[TABLE]
then
[TABLE]
B.2 Observable component over an interval
For , the -unobservable subspace (11) can be computed recursively as follows
[TABLE]
The objective is to compute the observable part in (12) recursively for . We choose . By construction, we know that
[TABLE]
Recalling that , and introducing the matrix , for , such that
[TABLE]
we obtain
[TABLE]
Hence there exists a matrix such that
[TABLE]
Noting that
[TABLE]
and multiplication on both sides from left by gives
[TABLE]
This allows us to compute , , as follows:
[TABLE]
References
- Astolfi and Praly (2003)
Astolfi, A., Praly, L., 2003. Global complete observability and output-to-state stability imply the existence of a globally convergent observer. In: Proc. 42nd IEEE Conf. Decis. Control, Hawaii, USA. pp. 1562–1567.
- Berger et al. (2012)
Berger, T., Ilchmann, A., Trenn, S., 2012. The quasi-Weierstraß form for regular matrix pencils. Linear Algebra Appl. 436 (10), 4052–4069.
- Berger and Reis (2017)
Berger, T., Reis, T., 2017. Observers and dynamic controllers for linear differential-algebraic systems. SIAM J. Control Optim. 55 (6), 3564–3591.
- Berger et al. (2017)
Berger, T., Reis, T., Trenn, S., 2017. Observability of linear differential-algebraic systems: A survey. In: Ilchmann, A., Reis, T. (Eds.), Surveys in Differential-Algebraic Equations IV. Differential-Algebraic Equations Forum. Springer-Verlag, Berlin-Heidelberg, pp. 161–219.
- De Santis et al. (2009)
De Santis, E., Di Benedetto, M. D., Pola, G., 2009. A structural approach to detectability for a class of hybrid systems. Automatica 45 (5), 1202–1206.
- Liberzon and Trenn (2009)
Liberzon, D., Trenn, S., December 2009. On stability of linear switched differential algebraic equations. In: Proc. IEEE 48th Conf. on Decision and Control. pp. 2156–2161.
- Liberzon and Trenn (2012)
Liberzon, D., Trenn, S., May 2012. Switched nonlinear differential algebraic equations: Solution theory, Lyapunov functions, and stability. Automatica 48 (5), 954–963.
- Mancilla-Aguilar and Garcìa (2018)
Mancilla-Aguilar, J.L., Garcìa, R.A., 2018. Uniform Asymptotic Stability of Switched Systems via detectability of reduced control systems. In: Proc. 2018 American Control Conference. pp. 4552–4557.
- Müller and Liberzon (2012)
Müller, M., Liberzon, D., 2012. Input/output-to-state stability and state-norm estimators for switched nonlinear systems. Automatica 48 (9), 2029–2039.
- Schwartz (1950, 1951)
Schwartz, L., 1950, 1951. Théorie des Distributions I,II. No. IX,X in Publications de l’institut de mathématique de l’Universite de Strasbourg. Hermann, Paris.
- Shim et al. (2012)
Shim, H., Tanwani, A., Ping, Z., December 2012. Back-and-forth operation of state observers and norm estimation of estimation error. In: Proc. 51st IEEE Conf. Decis. Control, Maui, USA. pp. 3221–3226.
- Sontag and Wang (1997)
Sontag, E., Wang, Y., 1997. Output-to-state stability and detectability of nonlinear systems. Syst. Control Lett. 29 (5), 279–290.
- Sontag (1998)
Sontag, E. D., 1998. Mathematical Control Theory: Deterministic Finite Dimensional Systems, 2nd Edition. Springer-Verlag, New York.
- Tanwani et al. (2013)
Tanwani, A., Shim, H., Liberzon, D., 2013. Observability for switched linear systems: Characterization and observer design. IEEE Trans. Autom. Control 58 (4), 891–904.
- Tanwani and Trenn (2010)
Tanwani, A., Trenn, S., 2010. On observability of switched differential-algebraic equations. In: Proc. 49th IEEE Conf. Decis. Control, Atlanta, USA. pp. 5656–5661.
- Tanwani and Trenn (2012)
Tanwani, A., Trenn, S., 2012. Observability of switched differential-algebraic equations for general switching signals. In: Proc. 51st IEEE Conf. Decis. Control, Maui, USA. pp. 2648–2653.
- Tanwani and Trenn (2013)
Tanwani, A., Trenn, S., 2013. An observer for switched differential-algebraic equations based on geometric characterization of observability. In: Proc. 52nd IEEE Conf. Decis. Control, Florence, Italy. pp. 5981–5986.
- Tanwani and Trenn (2015)
Tanwani, A., Trenn, S., 2015. On detectability of switched linear differential-algebraic equations. In: Proc. 54th IEEE Conf. Decis. Control, Osaka, Japan. pp. 2957–2962.
- Tanwani and Trenn (2017a)
Tanwani, A., Trenn, S., 2017a. Determinability and state estimation for switched differential–algebraic equations. Automatica 76, 17–31.
- Tanwani and Trenn (2017b)
Tanwani, A., Trenn, S., 2017b. Observer design for detectable switched differential-algebraic equations. In: Proceedings of the 20th IFAC World Congress. pp. 2953–2958.
- Trenn (2009)
Trenn, S., 2009. Distributional differential algebraic equations. Ph.D. thesis, Institut für Mathematik, Technische Universität Ilmenau, Universitätsverlag Ilmenau, Germany.
URL http://www.db-thueringen.de/servlets/DocumentServlet?id=13581
- Trenn (2012)
Trenn, S., 2012. Switched differential algebraic equations. In: Vasca, F., Iannelli, L. (Eds.), Dynamics and Control of Switched Electronic Systems - Advanced Perspectives for Modeling, Simulation and Control of Power Converters. Springer-Verlag, London, Ch. 6, pp. 189–216.
- Trentelman et al. (2001)
Trentelman, H. L., Stoorvogel, A. A., Hautus, M. L. J., 2001. Control Theory for Linear Systems. Communications and Control Engineering. Springer-Verlag, London.
- Wong (1974)
Wong, K.-T., 1974. The eigenvalue problem . J. Diff. Eqns. 16, 270–280.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Astolfi and Praly (2003) Astolfi, A., Praly, L., 2003. Global complete observability and output-to-state stability imply the existence of a globally convergent observer. In: Proc. 42nd IEEE Conf. Decis. Control, Hawaii, USA. pp. 1562–1567.
- 2Berger et al. (2012) Berger, T., Ilchmann, A., Trenn, S., 2012. The quasi-Weierstraß form for regular matrix pencils. Linear Algebra Appl. 436 (10), 4052–4069.
- 3Berger and Reis (2017) Berger, T., Reis, T., 2017. Observers and dynamic controllers for linear differential-algebraic systems. SIAM J. Control Optim. 55 (6), 3564–3591.
- 4Berger et al. (2017) Berger, T., Reis, T., Trenn, S., 2017. Observability of linear differential-algebraic systems: A survey. In: Ilchmann, A., Reis, T. (Eds.), Surveys in Differential-Algebraic Equations IV. Differential-Algebraic Equations Forum. Springer-Verlag, Berlin-Heidelberg, pp. 161–219.
- 5De Santis et al. (2009) De Santis, E., Di Benedetto, M. D., Pola, G., 2009. A structural approach to detectability for a class of hybrid systems. Automatica 45 (5), 1202–1206.
- 6Liberzon and Trenn (2009) Liberzon, D., Trenn, S., December 2009. On stability of linear switched differential algebraic equations. In: Proc. IEEE 48th Conf. on Decision and Control. pp. 2156–2161.
- 7Liberzon and Trenn (2012) Liberzon, D., Trenn, S., May 2012. Switched nonlinear differential algebraic equations: Solution theory, Lyapunov functions, and stability. Automatica 48 (5), 954–963.
- 8Mancilla-Aguilar and Garcìa (2018) Mancilla-Aguilar, J.L., Garcìa, R.A., 2018. Uniform Asymptotic Stability of Switched Systems via detectability of reduced control systems. In: Proc. 2018 American Control Conference. pp. 4552–4557.
