Professional Documents
Culture Documents
Ifac2012 Working With Time-Delay Systems in MATLAB Suat Gumussoy
Ifac2012 Working With Time-Delay Systems in MATLAB Suat Gumussoy
MATLAB R
Abstract: This paper presents the functionality of Control System Toolbox in MATLAB
regarding systems with time-delays. The toolbox allows the user to define their systems in
different system representations and to make complex system interconnections. The user can
analyze the overall system in time and frequency domains with different tools and design PID
controllers satisfying design requirements. Various visualization tools are available for analysis
and design verification. This paper aims to introduce these functionalities to researchers and
engineers and to discuss the open directions in computer algorithms for control system design.
fractional transformation (LFT). Recall that the LFT is be a minimal realization of H(s) in (3). State-space equa-
defined for matrices by tions for H(s, τ ) = L(H(s), Θ(s, τ )) are readily obtained
M11 M12 as
L( , Θ) := M11 + M12 Θ(I − M22 Θ)−1 M21 .
M21 M22
dx
The LFT has been extensively used in robust control = Ax(t) + B1 u(t) + B2 w(t) (4)
dt
theory for representing models with uncertainty, see Sko- y(t) = C1 x(t) + D11 u(t) + D12 w(t) (5)
gestad and Postlethwaite (1996) for details.
z(t) = C2 x(t) + D21 u(t) + D22 w(t) (6)
Consider the class generalized LTI (GLTI) of continuous-
time LTI systems whose transfer function is of the form w(t) = (∆τ z)(t) (7)
where
H11 (s) H12 (s)
H(s, τ ) = L( , Θ(s, τ )) • u(t) and y(t) are the input and output vectors,
H21 (s) H22 (s)
| {z } respectively
H(s) • w(t) and z(t) are internal signals commensurate with
the vector τ of time delays
Θ(s, τ ) := Diag e−τ1 s , . . . , e−τN s (3)
• ∆τ z is the vector-valued signal defined by (∆τ z)(t) :=
where H(s) is a rational (delay free) MIMO transfer (z1T (t − τ1 ), . . . , zN
T
(t − τN ))T .
function, and τ = (τ1 , . . . , τN ) is a vector of nonnegative
Note that standard delay-free state-space models are just
time delays. Systems in this class are modeled as the LFT
a special case of (4)-(7) corresponding to N = 0, a
interconnection of a delay-free LTI model and a bank of
handy fact when it comes to integrating GLTI models with
pure delays (see Figure 2). As such, they are clearly linear
existing software for manipulating delay-free state-space
time-invariant. Also, pure delays are in this class since
models.
0 1
e−τ s = L( , e−τ s ).
1 0 Delay LTI systems of the form
M P.InputName = ’u’; P.OutputName = ’y’;
dx X
= A0 x(t) + B0 u(t) + (Aj x(t − θj ) + Bj u(t − θj ))
dt j=1
Gp = 5.6/(40.2*s+1);
Gp.InputName = ’u’; Gp.OutputName = ’yp’;
M
X
y = C0 x(t) + D0 u(t) + (Cj x(t − θj ) + Dj u(t − θj )) Dp = exp(-93.9*s);
j=1 Dp.InputName = ’yp’; Dp.OutputName = ’y1’;
are often considered in the literature with various restric- C = 0.5 * (1 + 1/(40*s));
tions on the number and locations of the delays θ1 , . . . , θM . C.InputName = ’e’; C.OutputName = ’u’;
It turns out that any model of this form belongs to the
class GLTI as shown in Gahinet and Shampine (2004). It F = 1/(20*s+1);
is possible to define a large class of time-delay systems F.InputName = ’dy’; F.OutputName = ’dp’;
in MATLAB, both in time and frequency domains. For
further details on representation of time-delay systems, see % Sum blocks
Control System Toolbox (2011). Sum1 = ss([1,-1,-1],’InputName’,...
{’ysp’,’yp’,’dp’},’OutputName’,’e’);
Sum2 = ss([1,-1],...
4. INTERCONNECTIONS ’InputN’,{’y’,’y1’},’OutputN’,’dy’);
Magnitude (dB)
5
To: y
−10
4
−20
3 −30
2 −40
0
1 −720
Phase (deg)
−1440
0
0 200 400 600 800 1000 1200 1400 1600 1800 2000 −2160
Time (sec)
−2880
−3600
5
To: y
4
imaginary part of the characteristic equation on certain
3
regions in complex-plane. This approach is further im-
2 proved and accelerated by removing the regions outside
1 of asymptotic chain roots in Vyhlı́dal and Zı́tek (2009).
These methods consider the transfer function representa-
0
tion of delay differential equations which can be written
−1
0 200 400 600 800 1000 1200 1400 1600 1800 2000
as a ratio of quasi-polynomials. As noted in Vyhlı́dal
Time (seconds) and Zı́tek (2009), when delay differential equations have
state-space representations, transforming these systems
Fig. 7. Responses of the Smith Predictor (–), PID (- -) into transfer function representation is not numerically
for P (s) and PID (:) for Pa (s) to the reference signal desired, therefore in this case discretization approaches
(gray colored). may be preferred.
The computation of H∞ norm of a time-delay system
7. POSSIBLE ENHANCEMENTS IN CONTROL requires solving a nonlinear eigenvalue problem where the
SYSTEM TOOLBOX recent developments are applicable, Michiels and Gumus-
soy (2010). The computation of H2 norm requires solving
In this section, we discuss possible enhancements for the delay Lyapunov equation, Jarlebring et al. (2011c).
Control System Toolbox regarding time-delay systems.
Most of the functions in Control System Toolbox are Another challenging task is the compensator design for
extended for time-delay systems. There is an on-going time-delay systems and extension of classical control meth-
research on numerical methods for ods to time-delay systems such as
• deciding the stability of a time-delay system, • LQG,
• computation of system poles and zeros, • H2 control,
• computation of H∞ and H2 norms of a time-delay • H∞ control,
system. • root-locus technique,
• model reduction methods.
There are various numerical methods to determine the
stability of LTI systems with constant delays Dugard and There are continuing research efforts to solve these prob-
Verriest (1998); Gu et al. (2003); Michiels and Niculescu lems such as Vanbiervliet et al. (2011); Gumussoy and
(2007) via detection of characteristic roots through imag- Michiels (2011, 2012); Jarlebring et al. (2011a). The re-
inary axis; approximating the right-most characteristic maining main task is to determine numerically stable
roots; using Lyapunov theory. Each method has different algorithms to solve control design problems for high di-
pitfalls. Some of them are restricted to the special type of mensional plant with the least user interactions.
time-delay systems, i.e., retarded type, quasi-polynomials;
while others are conservative or they are based on some 8. CONCLUDING REMARKS
heuristic methods with possible failing points. Most meth-
ods can not handle time-delay systems with high orders.
We have shown that the GLTI class is suitable for
The right-most system poles and zeros of an time-delay computer-aided manipulation. We discussed various repre-
system can be computed by approximating the spectrum sentations and interconnections of time-delay systems on
MATLAB. We presented the functionality to do analysis Ingimundarson, A. and Hagglund, T. (2001). Robust tun-
and design of control systems with delays, regardless of ing procedures of dead-time compensating controllers.
the control structure and number of delays. Most Control Control Engineering Practice, 9, 1195–1208.
System Toolbox functions have been extended to work on Jarlebring, E., Damm, T., and Michiels, W. (2011a).
GLTI models, all this without additional complexity or Model reduction of time-delay systems using position
new syntax for the user. We hope that these new tools balancing and delay Lyapunov equations. Technical
will facilitate the design of control systems with delays Report TW602, Department of Computer Science, K.
and bring new insights into their behavior. U. Leuven, Leuven, Belgium.
Jarlebring, E., Michiels, W., and Meerbergen, K. (2011b).
A linear eigenvalue algorithm for the nonlinear eigen-
REFERENCES value problem. Technical Report TW580, Department
of Computer Science, K. U. Leuven, Leuven, Belgium.
Atay, F.M. (ed.) (2010). Complex Time-Delay Systems: Jarlebring, E., Vanbiervliet, J., and Michiels, W. (2011c).
Theory and Applications. Understanding Complex Sys- Characterizing and computing the L2 norm of time-
tems. Springer. delay systems by solving the delay Lyapunov equation.
Breda, D., Maset, S., and Vermiglio, R. (2005). Pseu- IEEE Transactions on Automatic Control, 56, 814–825.
dospectral differencing methods for characteristic roots Michiels, W. and Gumussoy, S. (2010). Characterization
of delay differential equations. SIAM Journal on Scien- and computation of H-infinity norms of time-delay sys-
tific Computing, 27(2), 482–495. tems. SIAM Journal on Matrix Analysis and Applica-
Breda, D., Maset, S., and Vermiglio, R. (2006). Pseu- tions, 31(4), 2093–2115.
dospectral approximation of eigenvalues of derivative Michiels, W. and Niculescu, S.I. (2007). Stability and
operators with non-local boundary conditions. Applied stabilization of time-delay systems. An eigenvalue based
Numerical Mathematics, 56(3-4), 318–331. approach, volume 12 of Advances in design and control.
Breda, D., Maset, S., and Vermiglio, R. (2009). TRACE- SIAM, Philadelphia.
DDE: a Tool for Robust Analysis and Characteristic Niculescu, S.I. (2001). Delay effects on stability: A robust
Equations for Delay Differential Equations, volume 388 control approach, volume 269 of Lecture notes in control
of Lecture Notes in Control and Information Sciences. and information sciences. Springer-Verlag, London.
Springer. Skogestad, S. and Postlethwaite, I. (1996). Multivariable
Control System Toolbox (2011). MathWorks Inc., Natick. Feedback Control. John Wiley.
Dugard, L. and Verriest, E. (eds.) (1998). Stability and Vanbiervliet, J., Michiels, W., and Jarlebring, E. (2011).
control of time-delay systems, volume 228 of Lecture Using spectral discretization for the optimal H2 design
Notes in Control and Information Sciences. Springer- of time-delay systems. International Journal of Control,
Verlag. 84(2), 228–241.
Engelborghs, K., Luzyanina, T., and Samaey, G. (2001). Vyhlı́dal, T. and Zı́tek, P. (2003). Quasipolynomial map-
DDE-BIFTOOL V. 2.00: a Matlab Package for Bifurca- ping based rootfinder for analysis of time delay systems.
tion Analysis of Delay Differential Equations. Technical In Proceedings of the 4th IFAC workshop on Time Delay
Report TW330, Department of Computer Science, K. Systems, 227–232. Rocquencourt, France.
U. Leuven, Leuven, Belgium. Vyhlı́dal, T. and Zı́tek, P. (2009). Mapping based algo-
Engelborghs, K. and Roose, D. (2002). On stability of LMS rithm for large-scale computation of quasi-polynomial
methods and characteristic roots of delay differential zeros. IEEE Transactions on Automatic Control, 54(1),
equations. SIAM Journal on Numerical Analysis, 40(2), 171–177.
629–650. Wu, Z. and Michiels, W. (2011). Reliably computing all
Enright, W.H. and Hayashi, H. (1997). A delay differen- characteristic roots of delay differential equations in a
tial equation solver based on a continuous rungekutta given right half plane using a spectral method. Technical
method with defect control. Numerical Algorithms, 16, Report TW596, Department of Computer Science, K. U.
349–364. Leuven, Leuven, Belgium.
Erneux, T. (2009). Applied delay differential equations.
Surveys and tutorials in the applied mathematical sci-
ences. Springer.
Gahinet, P. and Shampine, L.F. (2004). Software for
modeling and analysis of linear systems with delays. In
Proceedings of the American Control Conference.
Gu, K., Kharitonov, V., and Chen, J. (2003). Stability of
time-delay systems. Birkhuser, Boston, MA.
Gumussoy, S. and Michiels, W. (2011). Fixed-Order H-
infinity Control for Interconnected Systems using Delay
Differential Algebraic Equations. SIAM Journal on
Control and Optimization, 49(2), 2212–2238.
Gumussoy, S. and Michiels, W. (2012). Root Locus
for SISO Dead-Time Systems: A Continuation Based
Approach. In Press, Automatica.
Hairer, E. and Wanner, G. (1995). RETARD:
Software for delay differential equations.
unige.ch/ hairer/software.html.