A Youla-based switching example

The file Demo_011.m is found in IQClab’s folder demos. In this demo we demonstrate the Youla-based switching approach presented here.

Let us consider the first order system

    \[G=\dfrac{1}{(s/\delta+1)}\]

where \delta\in[4.5,5]. In addition, G is assumed to be affected by the multiplicative dynamic uncertainty

    \[H=G(1+W\Delta),\]

where W=\dfrac{10(s+0.4483)}{(s+89.66)} and \|\Delta\|_\infty\leq1.

We consider a standard tracking configuration yielding the open-loop generalized plant interconnection P, given by:

    \[\left(\begin{array}{c}z_1\\z_2\\z_3\\y\end{array}\right)=\left(\begin{array}{ccc}I&0&-G\\0&0&I\\0&0&G\\I&-I&-G\end{array}\right) \left(\begin{array}{c}r\\n\\u\end{array}\right)\]

Here r, n, and u are the reference, noise, and control input, respectively, while z_1, z_2, z_3, and y denote the tracking error, control input, plant output, and measurement input.

We consider two PI controllers

    \[K_1=\dfrac{-0.1516(s-11.87)}{s},\ \ \ K_2=\dfrac{1.121(s+10.04)}{s}\]

and implement two mode switching schemes between K_1 and K_2:

  1. Classical switch: u=Ky=(1-\alpha)K_1+\alpha K_2
  2. Youla-based switch: u=(L\star Q)y, where Q=(1-\alpha)Q_1+\alpha Q_2, where L, Q_1, and Q_2 are constructed from the plant and the controllers K_1 and K_2 by the function fYoulaSwitch (see details here).

In both cases, \alpha is the switching parameter. In the simulations, this parameter is varied in two fashions:

  1. Instantaneous switch: \alpha(t) is switched from 0 to 1 instantaneously
  2. Smooth switch: \alpha(t) is switched from 0 to 1 by slowly increasing its value

The following two figures show the nominal and uncertain simulation step responses for the instantaneous and smooth switching scenario for both the classical as well as the Youla-based switching scheme respectively.

Regarding the instantaneous switching in the first figure, we conclude that:

  • Nominal performance is significantly better for the Youla based implementation, where stability is guaranteed for the nominal case (i.e for this demonstration, we did not bother to address robustness issues with respect to the plant uncertainties).
  • Even if we also see a degradation of performance for the Youla based approach in case the plant uncertainties are included, we clearly see a robustification if compared to the classical implementation.
Classical versus Youla-based switching (instantaneous switch at t=6 seconds)

Regarding the smooth switching in the next figure, we conclude that:

  • In both cases performance can be significantly improved if compared to instantaneous switching.
  • Moreover, also for this scenario, the Youla based implementation outperforms the classical one in both the nominal as well as the uncertain cases.
Classical versus Youla-based switching (smooth switch duting t\in[6,7] seconds)

Further remarks:

  • The switching between the different controllers in the presented demo was performed while the controller was tracking a reference input (i.e. not while being in steady state). Clearly, switching while being in steady state will have much less of an impact. However, this might not always be possible.
  • The Youla-based switching implementation has as drawback that the control order will increase. The reader is referred to [11] for further details.
  • With the IQC-analysis tools, one can easily perform a robustness analysis by including \alpha(t)\in[0,1] as an uncertain parameter.

Previous page