I want to use some switching logic to dynamically switch between two controllers to control a plant during simulation. A simplified model can be seen below.
I am facing the issue that, the control signal generated in this way has discontinuity at the switching time points (see the figure below). Is there a way to bumplessly switch between the controllers to eliminate the discontinuity?
Best Answer