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
where . In addition, is assumed to be affected by the multiplicative dynamic uncertainty
where and .
We consider a standard tracking configuration yielding the open-loop generalized plant interconnection , given by:
Here , , and are the reference, noise, and control input, respectively, while , , , and denote the tracking error, control input, plant output, and measurement input.
We consider two PI controllers
and implement two mode switching schemes between and :
- Classical switch:
- Youla-based switch: , where , where , , and are constructed from the plant and the controllers and by the function fYoulaSwitch (see details here).
In both cases, is the switching parameter. In the simulations, this parameter is varied in two fashions:
- Instantaneous switch: is switched from 0 to 1 instantaneously
- Smooth switch: 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.
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.
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 as an uncertain parameter.