Vai al contenuto

Teoria dei Sistemi: formulario e flashcard

Tutte le formule di Teoria dei Sistemi in una pagina, argomento per argomento, dalle lezioni del corso: stampale o ripassale con le flashcard.

Programma e lezioni Dispensa (PDF) Dispensa per appunti (PDF) Esercizi d'esame 37 formule

Rappresentazione di stato e linearizzazione

Lo stato

    \[ \dot{x}(t) = f\big(x(t), u(t), t\big),\qquad y(t) = g\big(x(t), u(t), t\big) \]

La classificazione

    \[ \dot{x} = Ax + Bu,\qquad y = Cx + Du \]

    \[ \dot{x}_1 = \frac{1}{C}x_2,\qquad \dot{x}_2 = \frac{1}{L}\left(u - x_1 - R x_2\right) \]

La linearizzazione

    \[ \dot{\delta x} = A\,\delta x + B\,\delta u,\qquad A = \left.\frac{\partial f}{\partial x}\right|_{\bar{x},\bar{u}},\quad B = \left.\frac{\partial f}{\partial u}\right|_{\bar{x},\bar{u}} \]

    \[ f(\bar{x} + \delta x, \bar{u} + \delta u) = f(\bar{x}, \bar{u}) + \frac{\partial f}{\partial x}\,\delta x + \frac{\partial f}{\partial u}\,\delta u + o(\|\delta x\| + \|\delta u\|) \]

L'esempio del pendolo

    \[ \dot{x}_1 = x_2,\qquad \dot{x}_2 = -\frac{g}{L}\sin x_1 - \beta x_2 + \gamma u \]

    \[ A_0 = \begin{pmatrix} 0 & 1 \\ -g/L & -\beta \end{pmatrix},\qquad A_\pi = \begin{pmatrix} 0 & 1 \\ g/L & -\beta \end{pmatrix} \]

I cambiamenti di coordinate

    \[ \dot{z} = T^{-1}AT\,z + T^{-1}B\,u,\qquad y = CT\,z + Du \]

Soluzione delle equazioni di stato e modi

L'esponenziale di matrice

    \[ e^{At} = I + At + \frac{(At)^2}{2!} + \frac{(At)^3}{3!} + \dots \]

La formula di Lagrange

    \[ x(t) = e^{At}x_0 + \int_0^t e^{A(t-\tau)}B\,u(\tau)\,d\tau \]

    \[ e^{-At}x(t) - x_0 = \int_0^t e^{-A\tau}B\,u(\tau)\,d\tau \]

I modi naturali

    \[ e^{At} = V\,e^{\Lambda t}\,V^{-1},\qquad e^{\Lambda t} = \mathrm{diag}\left(e^{\lambda_1 t}, \dots, e^{\lambda_n t}\right) \]

Il calcolo con la trasformata di Laplace

    \[ e^{At} = \mathcal{L}^{-1}\left\{(sI - A)^{-1}\right\},\qquad G(s) = C(sI - A)^{-1}B + D \]

Un esempio completo

    \[ (sI - A)^{-1} = \frac{1}{(s+1)(s+2)}\begin{pmatrix} s + 3 & 1 \\ -2 & s \end{pmatrix} \]

    \[ e^{At} = \begin{pmatrix} 2e^{-t} - e^{-2t} & e^{-t} - e^{-2t} \\ -2e^{-t} + 2e^{-2t} & -e^{-t} + 2e^{-2t} \end{pmatrix} \]

Sistemi a tempo discreto

Le equazioni di stato a tempo discreto

    \[ x(k+1) = Ax(k) + Bu(k),\qquad y(k) = Cx(k) + Du(k) \]

    \[ x(k) = A^k x_0 + \sum_{j=0}^{k-1} A^{\,k-1-j}B\,u(j) \]

    \[ x(k+1) = A\,x(k) + Bu(k) = A^{k+1}x_0 + \sum_{j=0}^{k-1}A^{\,k-j}B\,u(j) + Bu(k) \]

La discretizzazione esatta

    \[ x_{k+1} = A_d\,x_k + B_d\,u(k),\qquad A_d = e^{AT},\quad B_d = \int_0^T e^{A\sigma}\,d\sigma\;B \]

    \[ x\big((k+1)T\big) = e^{AT}x(kT) + \int_{kT}^{(k+1)T} e^{A((k+1)T - \tau)}B\,u(k)\,d\tau \]

La trasformata zeta

    \[ G(z) = C(zI - A)^{-1}B + D \]

Stabilità

L'equazione di Lyapunov

    \[ A^TP + PA = -Q \]

    \[ \dot{V} = \dot{x}^TPx + x^TP\dot{x} = x^TA^TPx + x^TPAx = x^T(A^TP + PA)x = -x^TQx \]

Raggiungibilità e controllabilità

Il test di Kalman a tempo discreto

    \[ \mathcal{R} = \begin{pmatrix} B & AB & A^2B & \cdots & A^{n-1}B \end{pmatrix} \]

    \[ x(k) = \sum_{j=0}^{k-1}A^{k-1-j}Bu(j) = \begin{pmatrix} B & AB & \cdots & A^{k-1}B \end{pmatrix}\begin{pmatrix} u(k-1) \\ \vdots \\ u(0) \end{pmatrix} \]

Il caso continuo e il gramiano

    \[ W(T) = \int_0^T e^{A\tau}BB^Te^{A^T\tau}\,d\tau \]

    \[ x(T) = \int_0^T e^{A(T-t)}BB^Te^{A^T(T-t)}\,dt\;W(T)^{-1}x_f \]

Osservabilità e scomposizione di Kalman

La definizione e il test

    \[ \mathcal{O} = \begin{pmatrix} C \\ CA \\ \vdots \\ CA^{n-1} \end{pmatrix} \]

    \[ \begin{pmatrix} y(0) \\ y(1) \\ \vdots \\ y(n-1) \end{pmatrix} = \mathcal{O}\,x_0 \]

La scomposizione di Kalman

    \[ G(s) = C(sI - A)^{-1}B + D = C_{RO}(sI - A_{RO})^{-1}B_{RO} + D \]

Realizzazione e forme canoniche

La forma canonica di raggiungibilità

    \[ G(s) = \frac{b_2s^2 + b_1s + b_0}{s^3 + a_2s^2 + a_1s + a_0} \]

    \[ A = \begin{pmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ -a_0 & -a_1 & -a_2 \end{pmatrix},\quad B = \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix},\quad C = \begin{pmatrix} b_0 & b_1 & b_2 \end{pmatrix},\quad D = 0 \]

    \[ \mathcal{R} = \begin{pmatrix} 0 & 0 & 1 \\ 0 & 1 & -a_2 \\ 1 & -a_2 & a_2^2 - a_1 \end{pmatrix} \]

La forma modale

    \[ G(s) = \sum_{i=1}^{n}\frac{r_i}{s - p_i} \]

    \[ \dot{x}_1 = -x_1 + u,\quad \dot{x}_2 = -2x_2 + u,\quad y = 2x_1 - x_2 \]

Sistemi non lineari

L'esempio del pendolo

    \[ V(\theta, \omega) = \frac{1}{2}\omega^2 + \frac{g}{L}(1 - \cos\theta) \]

    \[ \dot{V} = \omega\dot\omega + \frac{g}{L}\sin\theta\,\dot\theta = \omega\left(-\frac{g}{L}\sin\theta - \beta\omega\right) + \frac{g}{L}\sin\theta\,\omega = -\beta\omega^2 \le 0 \]