46.8. Optimal control for reference tracking#
In order to get perfect asymptotic tracking of polynomial reference signals with degree \(m\) with optimal control, the original system must be augmented with the dynamical equations of \(m+1\) integral errors. This process is shown for tracking step reference with the augmentation of the original system with a single integrator and for tracking ramp reference with the augmentation with a double integrator.
This procedure is somehow equivalent to the addition of integrators in open-loop transfer function, as discussed in the section about reference tracking as a performance of a closed-loop system.
An example about optimal control for reference tracking in a mass-damper-spring system is shown in the next section, as a Jupyter notebook that can be opened, run, and modified in Colab.
46.8.1. Augmented system for tracking step reference signal - integrator#
Let \(\mathbf{y}_{\text{ref}}\) a reference signal. An augmented system can be defined in order to use optimal control for tracking the desired reference signal.
the state-space representation of the plant. Let \(\mathbf{y}_{ref}\) a desired output and the integral error
as a new state with dynamical equation
The optimal control is applied to the augmented system
Optimal control framework provides the opitmal gain matrix \(\hat{\mathbf{K}}\), so that \(\mathbf{u} = - \hat{\mathbf{K}} \mathbf{z}\) and the closed loop system becomes
\(\lim_{t \rightarrow +\infty} e(t)\)
Transfer function. From the reference signal to the tracking error,
Final value theorem.
Let \(\mathbf{y}_{\text{ref}}\) a polynomial reference input, \(\mathbf{y}_{\text{ref}} = \mathbf{C}_{-1} \delta(t) + \sum_{k=0}^{m} \mathbf{C}_k t^k\) then its Laplace transform reads \(\mathbf{y}_{\text{ref}}(s) = \sum_{k=-1}^{m} \frac{\mathbf{C}_k}{s^{k+1}}\)
and thus, if
\(m = 0\) (i.e. linear combination of Dirac’s delta and a step) the asymptotic value of the tracking error is zero;
\(m = 1\) (i.e. up to a ramp) the asymptotic value of the tracking error is constant, \(\mathbf{G}_k^{-1}(0) \mathbf{C}_1\);
\(m > 1\) the tracking error goes to infinity.
Fig. 46.2 Caption#
46.8.2. Augmented system for tracking ramp reference signal - double integrator#
Let \(\mathbf{y}_{\text{ref}}\) a reference signal. An augmented system can be defined in order to used optimal control. Let
the state-space representation of the plant. Let \(\mathbf{y}_{ref}\) a desired output and the integral error
as a new state with dynamical equation
The second augmenting state is defined as
so that the dynamical equation is
The optimal control is applied to the augmented system
Optimal control framework provides the opitmal gain matrix \(\hat{\mathbf{K}}\), so that \(\mathbf{u} = - \hat{\mathbf{K}} \mathbf{z}\) and the closed loop system becomes
…
\(\lim_{t \rightarrow +\infty} e(t)\)
Transfer function. The closed-loop system reads
so that
and \(\mathbf{y} = \mathbf{G}_1(s) \mathbf{K}_1 \mathbf{z}_1 + \mathbf{G}_2(s) \mathbf{K}_2 \mathbf{z}_2\).
From the reference signal to the tracking error,
Final value theorem.
Let \(\mathbf{y}_{\text{ref}}\) a polynomial reference input, \(\mathbf{y}_{\text{ref}} = \mathbf{C}_{-1} \delta(t) + \sum_{k=0}^{m} \mathbf{C}_k t^k\) then its Laplace transform reads \(\mathbf{y}_{\text{ref}}(s) = \sum_{k=-1}^{m} \frac{\mathbf{C}_k}{s^{k+1}}\)
and thus, if
\(m = 1\) (i.e. linear combination of Dirac’s delta, step, and ramp) the asymptotic value of the tracking error is zero;
\(m = 2\) (i.e. up to a parabolic input, \(\dots + \mathbf{C}_2 t^2\)) the asymptotic value of the tracking error is constant, \(\mathbf{G}_2^{-1}(0) \mathbf{C}_2\);
\(m > 2\) the tracking error goes to infinity.
Fig. 46.3 Caption#