Publication Cover
Mathematical and Computer Modelling of Dynamical Systems
Methods, Tools and Applications in Engineering and Related Sciences
Volume 12, 2006 - Issue 6
253
Views
2
CrossRef citations to date
0
Altmetric
Original Articles

Algebraic modelling of linear systems by means of Walsh functions

Pages 589-605 | Published online: 22 Dec 2006

Abstract

In this paper a new algebraic representation of linear time-variant dynamic systems is developed. It is shown that Walsh functions can be used to provide such a representation up to any desired precision. Due to the orthogonality of the Walsh functions, the required precision only depends on the number of Walsh functions used in the underlying Walsh – Fourier analysis. The resulting linear algebraic model bears some resemblance to the well-known Laplace transform and especially in the case of linear time-invariant systems there is even a direct link between the two descriptions. Based upon this result new procedures for simulation, system identification and controller design can be obtained. This is illustrated by calculating stairstep approximations of the inverse Laplace transform of rational and irrational systems as well as the design of a time-variant multivariable PI controller for a sixth-order linear time-variant system.

1. Introduction

In the field of system theory the use of orthonormal descriptions and approximations to tackle different analysis and design problems has quite a long history. A well-known example is the classical Fourier analysis where the orthonormal basis is the trigonometric one. Based upon the convolution theorem of the corresponding Fourier or Laplace transform, for linear time-invariant systems a linear algebraic representation is obtained which serves as a basis for system analysis and design in the so-called frequency domain. But this powerful approach is mainly restricted to linear time-invariant systems and especially in the field of system identification and approximation there is also great interest in the ability to incorporate prior knowledge about the system dynamics in the basis. Therefore, a lot of other orthonormal basis functions like Legendre Citation1 or Laguerre polynomials Citation2, generalized orthonormal rational basis functions Citation3 and wavelets Citation4-6 have been extensively investigated and used in different fields of system theory, especially in problems of system identification and approximation Citation7,Citation8. While most of these applications are dedicated to stable linear time-invariant systems, in recent years kernel methods have proven to be also well suited for modelling and identification of non-linear systems Citation9.

On the other hand, beside modelling and system identification there is also great interest in simple system representations for the purpose of controller design and system analysis. As mentioned before, this is one of the reasons while the Laplace and Fourier transforms play such an important role in linear system theory. They allow for a simple algebraic system representation in the corresponding transform domain which serves as the basis of most classical analysis and design methods for linear time-invariant systems. Unfortunately, the advantage of using the Laplace or Fourier transform is immediately lost if the system under consideration is time-variant. Therefore, up to now for this type of systems far fewer design methods are available (see e.g. Citation10,Citation11). This is especially true if one is interested in the design of approved control schemes like PI or PID control. For this purpose in Citation12 a collocation approach based on the results of Citation1 is presented. In a rather analogous manner in what follows a new approach for the design of linear time-variant systems is developed which is based on the use of the complete orthonormal set of Walsh functions and the corresponding Walsh transform. Due to the inherent properties of the Walsh transform (e.g. the existence of the so-called dyadic convolution theorem) it will be shown that by means of Walsh functions an algebraic approximation of linear time-variant systems can be obtained which, for instance, can serve as a basis for controller design. Moreover, in the case of linear time-invariant systems this algebraic representation shows quite a close relation to the Laplace transform. This relation can be used to establish a simple linear algebraic equation between the transfer function of a linear time-invariant system in the Laplace domain and its corresponding stairstep approximation in the time domain. This result can, for instance, serve as a basis for an alternative approach to linear system identification. This new approach just relies on a stairstep approximation of the measured impulse or step response and needs no further reference to the underlying Walsh theory or Walsh functions used for its derivation.

Walsh functions have been widely used in different fields of system theory. For example, Walsh functions have been applied in the modelling, analysis and time-domain synthesis of linear systems Citation13 as well as in the analysis and design of communication systems and so-called linear sequency filters Citation14. Moreover, in Citation15,Citation16 Walsh functions are used for identification while Citation17 deals with a Walsh series approach to system simulation. In Citation18 an algebraic representation of linear time-invariant systems is presented. A rather comprehensive overview of the application of Walsh functions can be found in Citation19.

Walsh functions were first introduced by Walsh Citation20. shows the first eight of these functions. They form a complete orthonormal set of rectangular waves in [0,1) which take only the values ± 1. Therefore, every function f(τ) which belongs to L 2, the set of quadratically integrable functions over [0,1), can be expanded formally in a series of the form

where wal i (τ) is the i-th Walsh function and the constants [fcirc] i form the sequency spectrum [fcirc] = {[fcirc] i } of f(τ). They are obtained from
The series Equation(1) converges uniformly if the terms are grouped so that each group contains all of the Walsh functions designated by m binary digits. Thus, in the Walsh space Sm which is spanned by the N = 2 m first Walsh functions, the truncated sum
gives a stairstep approximation [fbar](τ) of f(τ) with minimum integral square error, where the constant value [fbar]i in the i-th subinterval of length 1/N equals the average value
of f(τ) in that subinterval. As an example shows the approximation of f(τ) = sin(2πτ) in S 3.

Figure 1 The first eight Walsh functions.

Figure 1 The first eight Walsh functions.

Figure 2 Approximation of f(τ) = sin(2πτ) in S 3.

Figure 2 Approximation of f(τ) = sin(2πτ) in S 3.

Of course, the N Walsh functions wal i (τ), i = 0, … , N − 1 are well defined, but their ordering can be chosen freely. In the following, an ordering scheme is used where the index of the individual Walsh functions corresponds to the number of sign changes within the unit interval as can be seen from . Moreover, the Walsh functions with even/odd index have even/odd symmetry about .

Another quite interesting feature of the Walsh transform W, which will be extensively used in the sequel, is the existence of the so-called dyadic convolution theorem

where ⊛ denotes dyadic multiplication of the corresponding sequency spectra. In the Walsh space Sm the finite sequency spectrum [fcirc] T  = [[fcirc]0, …, [fcirc] N−1 of the stairstep function [fbar] T  = [[fbar],…,[fbar] N−1] can be calculated by means of the discrete Walsh transform
where
is the symmetric, orthogonal Walsh transformation matrix, whose values in the i-th row or column, respectively, just correspond to the constant values ± 1 of wal i (τ) in the N individual subintervals. For example, in S 3 we have
Moreover, if [fbar] [odot] [gbar] denotes elementwise multiplication of the two vectors [fbar] and [gbar], the discrete dyadic convolution is given by
where is the so-called dyadic circulant of the spectrum [fcirc], which in Sm reads
In the above definition for , i ⊕ jmeans modulo 2 addition of the digits in the binary representations of the two integers i and j or the logical XOR-function, respectively.

It can be shown Citation21 that has the eigenvalues λ T  = [λ1,…,λ N ] = [fcirc] T W = [fbar] T with the column vectors of W as corresponding eigenvectors and thus

2 Transformed state space description of linear time-variant systems

We start with the given state equations

of a linear, time-variant system where x is the n-dimensional state, u the p-dimensional input and y the q-dimensional output. Following the idea presented in Citation1, we first apply the non-linear time-transformation
to Equation(9) and Equation(10). With α a positive real constant Equation(11) uniquely maps the infinite time interval t ∊ [0,∞) onto the right open finite interval τ ∊ [0,1). Using the inverse transformation
one can easily derive the relation
where the prime denotes differentiation with respect to τ and thus from Equation(9) and Equation(10) we get the following state space description in the τ-domain
With Equation(13) and Equation(14) we now have a description of the time-variant system Equation(9), Equation(10) over the finite interval [0,1) and therefore in what follows all τ-dependent functions can be represented by means of the complete set of orthonormal Walsh functions over [0,1), provided all τ-dependent functions in Equation(13) and Equation(14) belong to L 2 which will be assumed in the sequel.

3 Algebraic modelling of linear time-variant systems

Assuming τ0 = 0, integration of Equation(13) yields the following integral equation

where in turn all τ-dependent terms, that is [xtilde]i (τ), ãij (τ), [btilde]ij (τ), are replaced by their corresponding Walsh series. Taking into account the orthogonality of the Walsh functions we get the following algebraic relation between the individual Walsh spectra
where contains the N Walsh coefficients of the state variable [xtilde]i (τ) in Sm , corresponds to the initial condition xi 0, , , are the dyadic circulants of the spectra , , , respectively and
is the Walsh operational matrix for integration Citation21. Thus, the inverse
can be regarded as an operational matrix for differentiation in the Walsh space Sm (see Citation21 for further details concerning the structure and construction of T and S −1 = 1/N WT −1 W). Now multiplying Equation(15) from the left by
and taking into account Equation(6), Equation(8) and Equation(16) after a simple permutation of the corresponding rows and columns, Equationequation (15) can be further simplified to obtain
with γ i  = 2i, μ j  = 2(2j − 1), i = 1, … , N, j = 2, … , N and in a similar way we get from Equation(14)
where , , … are the constant values of the stairstep approximation of [xtilde](τ), Ã(τ), … in the i-th subinterval. Due to the lower triangular structure of Δ Equation(17) can easily be solved for . Substituting this result in Equation(18) and assuming zero initial conditions [xtilde] 0 = 0 we finally end up with the simple algebraic equation
or
with
and for i = 1, …, N − 1, j = 0, … i − 1. All other elements of G above the main diagonal are zero because of the causality of the system. As can be seen from the expression for G ij above, especially the diagonal elements of G reveal a close relation with the transfer matrix
of a linear time-invariant system in the Laplace domain and indeed this similarity becomes even more evident if the system under investigation is really time-invariant.

4 The special case of linear time-invariant systems

In case of a time-invariant system all matrices of the state space model Equation(9), Equation(10) are constant and therefore in Equation(17), Equation(18)

Denoting by vec(M) an operator which stacks the individual columns of the matrix M = [m 0, … , m N−1] into a single vector it can be shown Citation22 that
where ⊗ means the Kronecker product of two matrices. With regard to Equation(20) the Kronecker product can also be used to rewrite Equation(17), Equation(18) as
and by the aid of Equation(21) these last two equations can then be further simplified to read
Obviously there is a far-reaching correspondence between Equation(22), Equation(23) and the state Equationequations (9), Equation(10) in the case of a linear time-invariant system, which can be made even more evident by applying the transformation , , with V −1 Γ T V = Λ = diag(γ1, … , γ N ) to Equation(22), Equation(23) which results in
with , , , v i being the individual column vectors of the corresponding matrices , , , and V. Finally we can deduce from Equation(24), Equation(25) the simple relation
where G(αγ i ) = G(2αi) = C(2αi I n  − A)−1 B + D equals the transfer matrix G(s) of the linear time-invariant system evaluated at the N positive real values 2αi, i = 1, … , N. As with the conventional Laplace transform, Equation(26) consists of two terms where the first one reveals the I/O behaviour between the transformed input and output signals , , whereas the second term gives the system reaction to an initial condition [xtilde] 0 = x 0. Thus, for C = c T , , [xtilde] 0 = b, Equation(26) delivers the transformed impulse response
of the single-input single-output system with transfer function G(s)=c T (s I n  − A)−1 b which can be used to calculate a stairstep approximation of the inverse Laplace transform [gtilde](τ) of G(s) in the τ-domain.
In this context it should be noted that the matrix
which maps the N values g(α) of G(s) on the positive real axis to the values of the stairstep approximation of its corresponding inverse [gtilde](τ) only depends on the dimension N of the Walsh space and thus can be calculated once for all for fixed N. For example, in S 3 we have
shows the stairstep approximation [gbar] of the inverse Laplace transform g(t) of
in S 5. From this figure it can also be seen that the equally spaced subintervals of length 1/N in the τ-domain have an increasing length in the original t-domain due to the non-linear time-transformation Equation(11). The last or Nth subinterval has infinite length and with the positive parameter α the starting point of this subinterval can be chosen freely, for example in , T N−1 = T 31 = 6 s.

Figure 3 Inverse Laplace transform g(t) of and its stairstep approximation [gbar](t) in S 5.

Figure 3 Inverse Laplace transform g(t) of and its stairstep approximation [gbar](t) in S 5.

4.1 Approximation of non-rational Laplace transforms

Despite the derivation of Equation(27) from the state space model Equation(9), Equation(10) of a linear time-invariant system we can also look at Equation(27) as the mapping of any kind of Laplace transform G(s) to a stairstep approximation of its corresponding inverse in the time-domain. Thus, Equation(27) can also be used if G(s) contains irrational or transcendental terms like , e Ts , and so on.

In Citation23 Chen, Tsay and Wu developed Walsh operational matrices for fractional calculus and gave some examples of their application. For instance, the solution of the time-varying Bessel differential equation tÿ + ÿ + ty = 0 in the Laplace domain yields

According to Citation23, if we are interested in the inverse y(t) of Equation(28) for 0  t < 8, which is also known as Bessel function J 0(t) of the first kind, evaluating Equation(27) with we get the stairstep approximation [Jbar] 0(t) in S 5 as shown in .

Figure 4 Inverse Laplace transform J 0(t) of and its stairstep approximation [Jbar] 0(t) in S 5.

Figure 4 Inverse Laplace transform J 0(t) of and its stairstep approximation [Jbar] 0(t) in S 5.

Apart from irrational expressions like Equation(28) in many applications there also arise transcendental Laplace transforms. This is especially true for systems with transport delays or the solutions of linear partial differential equations. For example, if we look at the normalized heat equation

with zero initial condition x(0,z) = x 0(z) = 0 and the two boundary conditions x(t,0) = u 1(t),x(t,1) = 0, the solution to Equation(29) in the Laplace domain reads
According to Citation24, if a unit step input u 1(t) = σ(t) or U 1(s) = 1/s, respectively, is applied to the system at its left boundary z = 0, the solution x(t,z) of Equation(30) in the time domain can be expressed as
with
being the complementary error function. Setting k = 20, shows the evaluation of Equation(31) for four different values of z (z 1 = 0.2, z 2 = 0.4, z 3 = 0.6, z 4 = 0.8) together with the corresponding stairstep approximations in S 5 which have been calculated from Equation(30) by means of Equation(27) with .

Figure 5 Solutions x(t,zi ) of the heat Equationequation (29) according to Equation(31) and its stairstep approximations [xbar](t, zi ) in S 5 for z 1 = 0.2,z 2 = 0.4,z 3 = 0.6,z 4 = 0.8.

Figure 5 Solutions x(t,zi ) of the heat Equationequation (29) according to Equation(31) and its stairstep approximations [xbar](t, zi ) in S 5 for z 1 = 0.2,z 2 = 0.4,z 3 = 0.6,z 4 = 0.8.

4.2 Linear system identification

In Citation16 Prasada Rao and Palanisamy presented an approach for system identification via Walsh functions. Since L −1 is always regular, beside using Equation(27) to calculate a stairstep approximation for the inverse of a given Laplace transform G(s) we can also solve Equation(27) for g(α),

and this result gives an alternative approach for system identification, that is for calculating a Laplace transform G(s) which best matches a given stairstep function . To that purpose, in the first step the N values of are determined as mean values of the sampled data g(tj ) of the measured signal g(t) within the i-th subinterval (see ). At the same time this also gives rise to a reduction of measurement noise. In the second step, the n + r + 1 unknown parameters bj , j = 0, …, r and ai , i = 1, …, n of
can be evaluated from Equation(32) by solving a linear system of equations. This step is quite similar to the one presented in Citation1. The only difference lies in the way the values g(α) are calculated. Therefore, almost all pros and cons discussed in Citation1 should also carry over to the two-step approach suggested before, but of course this needs further detailed investigations.

The same rule will apply to a critical comparison of the proposed identification scheme with other known methods for system identification. For example, during the last few years new and powerful algorithms for dynamical system modelling, identification and function approximation based on general orthonormal bases, subspace methods or so-called kernel functions have been proposed Citation7,Citation8,Citation9,Citation25,Citation26. They not only proved to be very efficient and reliable but are also well suited for identification of time-varying and nonlinear systems Citation9,Citation27,Citation28. But since a comprehensive treatment of system identification and especially the examination of non-linear systems is far beyond the scope of this paper the interested reader is referred to the corresponding literature.

5 Algebraic controller design

In this section we turn back to the algebraic description of linear time-variant systems according to Equation(19) and in what follows the design of a multivariable time-variant PI controller for such a system is presented Citation12. To that purpose first the controller is described in state space notation

According to Equation(19) we then get the algebraic controller model
The same holds true for the time-variant plant. With
the evaluation of Equation(19) yields
Following the approach presented in Citation18 for the time-invariant case the desired closed-loop behaviour is specified by the decoupled linear time-invariant system
or with regard to Equation(19),
Thus, demanding
from Equation(33), Equation(34) immediately follows
Obviously, Equation(36) should be satisfied for any arbitrary reference input . Due to the finite dimension of this complies with the demand that Equation(36) must be satisfied for N·p linearly independent input signals , i =  0, …, N − 1, j = 1, …, p, for example , , and so on, where δ ij are discrete impulses.

Unfortunately, this approach leads to an overdetermined set of linear equations for and . Therefore, in the following Equation(36) has only been evaluated for four linearly independent input signals, namely , as well as the two-step inputs , .

In this way and can easily be calculated by solving N linear equations each of order 4. With α = lnEquation(2) and N = 64 (according to Equation(12) with this choice of α the last or 64th interval in the t-domain starts at t = 6 s) the resulting time-variant controller matrices [Kbar] P (t) and [Kbar] I (t) can be seen from and . Obviously, all elements of both controller matrices become constant for t→∞ which corresponds to the asymptotic time-invariant behaviour of the plant. and below show the closed-loop step response in comparison with the desired response y d (t) when at t 0 = 0.6 s a step input w(t) = [1,0] T σ(t − t 0) or w(t) = [0,1] T σ(t − t 0), respectively, is applied to the system. As can be seen from these figures there's quite a good correspondence between the desired time-invariant and decoupled behaviour specified by Equation(35) and the resulting closed-loop response of the time-variant system.

Figure 6 Time-variable PI controller.

Figure 6 Time-variable PI controller.

Figure 7 Closed-loop step response of the time-variant plant with [Kbar] P (t) and [Kbar] I (t) from in comparison with the desired decoupled closed-loop behaviour according to Equation(35) for w 1(t) = σ(t − 0.6), w 2(t) = 0.

Figure 7 Closed-loop step response of the time-variant plant with [Kbar] P (t) and [Kbar] I (t) from figure 6 in comparison with the desired decoupled closed-loop behaviour according to Equation(35) for w 1(t) = σ(t − 0.6), w 2(t) = 0.

Figure 8 Closed-loop step response of the time-variant plant with [Kbar] P (t) and [Kbar] I (t) from in comparison with the desired decoupled closed-loop behaviour according to Equation(35) for w 1(t) = 0, w 2(t) = σ(t − 0.6).

Figure 8 Closed-loop step response of the time-variant plant with [Kbar] P (t) and [Kbar] I (t) from figure 6 in comparison with the desired decoupled closed-loop behaviour according to Equation(35) for w 1(t) = 0, w 2(t) = σ(t − 0.6).

6 Conclusion

In this paper, a new approach to modelling linear time-variant systems is presented. It is shown that due to the special properties of Walsh functions and the corresponding Walsh transformation a simple algebraic representation for linear time-variant multivariable systems can be obtained. In case of linear time-invariant systems the resulting linear equation between the input and output shows quite a close relation to the well known Laplace transform. Therefore, a stairstep approximation [gbar](t) for the inverse Laplace transform of G(s) can easily be obtained by solving a linear equation. Moreover, based upon this correspondence a new approach for parameter identification in linear systems can be developed. Finally, the usefulness of the resulting algebraic model for linear time-variant systems is demonstrated by the design of a time-variant PI controller for a time-variant multivariable plant of order 6. Thereby, the controller matrices can be obtained by solving a set of simple linear equations.

References

  • Franke , D. , Krüger , K. and Knoop , M. 1992 . Systemdynamik und Reglerentwurf , München : R. Oldenbourg Verlag .
  • Wahlberg , B. 1991 . IEEE Transactions on Automatic Control , 36 : 551 – 562 .
  • de Hoog , Th. J. , Heuberger , P. S.C. and Van den Hof , P. M.J. 2001 . Selected Topics in Signals, Systems and Control , 12 : 81 – 88 .
  • Chui , C. K. 1992 . Wavelets: A Tutorial in Theory and Applications, Wavelet Analysis and Its Applications 2 , Boston : Academic Press .
  • Pati , Y. C. and Krishnapasad , P. S. . Rational wavelets in model reduction and system identification . Proc 33rd IEEE Conference on Decision and Control . December 1994 , Lake Buena Vista, Florida. pp. 3394 – 3399 .
  • Ward , N. F.D. and Partington , J. R. 1995 . Mathematics of Control, Signals and Systems , 8 : 257 – 278 .
  • Ninness , B. , Hjalmarsson , H. and Gustafsson , F. 1999 . IEEE Transactions on Automatic Control , 44 : 1384 – 1406 .
  • Van den Hof , P. M.J. , Heuberger , P. S.C. and Bokor , J. 1995 . Automatica , 31 : 1821 – 1834 .
  • Wan , Y. , Dodd , T. J. and Harrison , R. F. 2003 . “ A kernel method for non-linear systems identification – Infinite degree Volterra series estimation ” . Department of Automatic Control & Systems Engineering, The University of Sheffield, Research Report No. 842
  • D'Angelo , H. 1970 . Linear Time-Varying Systems: Analysis and Synthesis , Boston : Allyn and Bacon .
  • Emre , E. , Tai , H. M. and Seo , J. H. 1990 . Linear Algebra and its Applications , 141 : 79 – 104 .
  • Schumacher , A. , Knoop , M. and Moreno , J. 1994 . Ein neues Verfahren zum Entwurf zeitvarianter Ausgangsregler für eine spezielle Klasse linearer zeitvarianter Systeme . Automatisierung Stechnik , 6 : 248 – 253 .
  • Chen , C. F. and Hsiao , C. H. 1975 . IEE Proceedings , 122 : 565 – 570 .
  • Pichler , F. 1968 . Synthese linearer periodisch zeitvariabler Filter mit vorgeschriebenem Sequenzverhalten . Archiv der elektrischen Übertragurg, Band , 22 : 150 – 161 .
  • Prasada Rao , G. and Sivakumar , L. 1975 . IEE Proceedings , 122 : 1160 – 1161 .
  • Prasada Rao , G. and Palanisamy , K. R. 1983 . IEE Proceedings , 130 : 9 – 16 .
  • Chen , C. F. and Hsiao , C. H. 1975 . Journal of Computer and System Sciences International , 6 : 833 – 858 .
  • Konigorski , U. . Modeling of linear systems and finite deterministic automata by means of Walsh functions . Proc. IMACS Symposium on Mathematical Modelling, 3rd MATHMOD . 2000 , Vienna. Vol. 1 , pp. 399 – 402 .
  • Harmuth , H. F. 1970 . Sequency Theory , New York : Academic Press .
  • Walsh , J. L. 1923 . American Journal of Mathematics , 45 : 5 – 24 .
  • Gauss , E. 1994 . Walsh-Funktionen für Ingenieure und Naturwissenschaftler , Stuttgart : Teubner Verlag .
  • Brewer , J. W. 1978 . IEEE Transactions on Circuits and Systems , 25 : 772 – 781 .
  • Chen , C. F. , Tsay , Y. T. and Wu , T. T. 1977 . Journal of the Franklin Institute , 303 : 267 – 284 .
  • Doetsch , G. 1974 . Introduction to the Theory and Application of the Laplace Transformation , Berlin : Springer .
  • Van Overschee , P. and De Moor , B. 1996 . Subspace Identification for Linear Systems: Theory, Implementation, Applications , Boston : Kluwer Academic .
  • Freiss , T. T. and Harrison , R. F. 1999 . Journal of Intelligent Data Analysis , 3 : 307 – 313 .
  • Favoreel , W. , De Moor , B. and Van Overschee , P. 1999 . IEEE Transactions on Automatic Control , 44 : 1157 – 1165 .
  • Verdult , V. and Verhaegen , M. 2002 . Automatica , 38 : 805 – 814 .

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.