Salta al contenuto
Note per Studenti Mathematical Models of Systems Report

Mathematical Models of Systems

In questa pagina 5

An introduction to systems

Examples of physical and artificial systems: encoders/decoders; equalizers for audio applications; the mass-spring system, or even a more detailed version of it, drawn as a block

   u        +-----------+        y
 ------->   |  Sigma  x |  ------->
            +-----------+

where Σ\Sigma is the system, uu the input, yy the output and xx the state of the system. For the mass-spring system with damping β\beta (previously we assumed β=0\beta=0):

Σ:{mx¨(t)+βx˙(t)+Kx(t)=u(t)t0=0, x(t0)=x0, x˙(t0)=0y(t)=x(t)\Sigma:\begin{cases} m\ddot x(t)+\beta\dot x(t)+Kx(t)=u(t)\\ t_0=0,\ x(t_0)=x_0,\ \dot x(t_0)=0\\ y(t)=x(t)\end{cases}

Note: in this course we study systems where y(t)=x(t)y(t)=x(t). There are more advanced courses where systems of the type

Σ:{x˙(t)=Ax(t)+Bu(t),x(0)=x0y(t)=Cx(t)+Du(t)\Sigma:\begin{cases}\dot x(t)=Ax(t)+Bu(t),\quad x(0)=x_0\\ y(t)=Cx(t)+Du(t)\end{cases}

with A∈Rn×nA\in\mathbb{R}^{n\times n}, B∈Rn×mB\in\mathbb{R}^{n\times m}, C∈Rp×nC\in\mathbb{R}^{p\times n}, D∈Rp×mD\in\mathbb{R}^{p\times m} are the subject.

Bank account (a discrete-time example, a simplification of a real bank account):

y(k)=y(k−1)+0.01 y(k−1)+u(k),y(k)=y(k-1)+0.01\,y(k-1)+u(k),

where y(k−1)y(k-1) is the previous balance (the deposit), 0.01 y(k−1)0.01\,y(k-1) is the 1%1\% interest and u(k)u(k) is the money flow.

More sophisticated examples:

  • Estimators: given the output y(t)y(t), or part of it, they allow us to find an estimate x^(t)\hat x(t) of the state.
  • Controllers: given a reference signal r(t)r(t) they typically use r(t)r(t) and y(t)y(t) to generate u(t)u(t) such that ∣r(t)−y(t)∣→0|r(t)-y(t)|\to0.
  • Regulators: estimators + controllers.

Definition of a system

Definition (system). A system is a triple (U,Y,Σ)(\mathcal{U},\mathcal{Y},\Sigma) where U,Y\mathcal{U},\mathcal{Y} are families of signals and Σ\Sigma is a map from U\mathcal{U} to Y\mathcal{Y}:

Σ:U→Y,u→Σ→y,\Sigma:\mathcal{U}\to\mathcal{Y},\qquad u\to\boxed{\Sigma}\to y,

with uu the input signal and yy the output signal.

  • Continuous time: Σ[{u(t)}]={y(t)}\Sigma[\{u(t)\}]=\{y(t)\}.
  • Discrete time: Σ[{u(k)}]={y(k)}\Sigma[\{u(k)\}]=\{y(k)\}.
  • Hybrid systems: Σ[{u(t)}]={y(k)}\Sigma[\{u(t)\}]=\{y(k)\} or Σ[{u(k)}]={y(t)}\Sigma[\{u(k)\}]=\{y(t)\}. For example the sampler: Σ[{u(t)}]={u(Tk)}={y(k)}\Sigma[\{u(t)\}]=\{u(Tk)\}=\{y(k)\} for a fixed T>0T>0 (the sampling time).

Basic operators

Since systems are operators on signals, it is useful to have a catalogue of simple ones (properties of these operators are discussed in Properties of Systemsdefinitions of static, dynamic, time-invariant, causal, anticausal, acausal, omnicausal, linear and BIBO-stable systems, with examples, counterexamples and a long set of worked classification exercises.Properties of Systems →).

Temporal shift UT[{u(t)}]={u(t−T)}U_T[\{u(t)\}]=\{u(t-T)\}, T∈RT\in\mathbb{R}. Then UT[δ(t)]=δ(t−T)U_T[\delta(t)]=\delta(t-T).

Temporal scaling Sα[{u(t)}]={u(αt)}S_\alpha[\{u(t)\}]=\{u(\alpha t)\}, α≠0\alpha\neq0, α∈R\alpha\in\mathbb{R}.

 x(t) supported on [-1,1]        compression alpha>1 (alpha=2)     dilation 0<alpha<1 (alpha=1/2)
    support [-1, 1]              support [-1/2, 1/2]               support [-2, 2]

If α<0\alpha<0 we also have to perform a temporal inversion: S−1=RS_{-1}=\mathcal{R}, where R[{x(t)}]={x(−t)}\mathcal{R}[\{x(t)\}]=\{x(-t)\} is the time reversal.

The composition Sˉα,T=UT∘Sα\bar S_{\alpha,T}=U_T\circ S_\alpha (UTU_T is applied after SαS_\alpha) gives {u(t)}→Sˉα,T{y(t)}={u(α(t−T))}\{u(t)\}\xrightarrow{\bar S_{\alpha,T}}\{y(t)\}=\{u(\alpha(t-T))\}.

Caveat: UT∘Sα≠Sα∘UTU_T\circ S_\alpha\neq S_\alpha\circ U_T in general. Indeed Sα∘UT[u(t)]=u(αt−T)S_\alpha\circ U_T[u(t)]=u(\alpha t-T).

Integrator. Let L1(R)={u(t)∈C  ∣  ∫−∞+∞∣u(τ)∣ dτ<+∞}L^1(\mathbb{R})=\left\{u(t)\in\mathbb{C}\;\Big|\;\int_{-\infty}^{+\infty}|u(\tau)|\,d\tau<+\infty\right\}. In continuous time U=L1(R)\mathcal{U}=L^1(\mathbb{R}), in discrete time U=ℓ1={u  ∣  ∑n=−∞+∞∣u(n)∣<+∞}\mathcal{U}=\ell^1=\left\{u\;\Big|\;\sum_{n=-\infty}^{+\infty}|u(n)|<+\infty\right\}. The integrator is

y(t)=∫−∞tu(τ) dτ,y(k)=∑n=−∞ku(n).y(t)=\int_{-\infty}^{t}u(\tau)\,d\tau,\qquad y(k)=\sum_{n=-\infty}^{k}u(n).

Amplifier y(t)=Au(t)y(t)=Au(t), A∈CA\in\mathbb{C}.

Derivative operator y(t)=ddtu(t)y(t)=\frac{d}{dt}u(t) and its discrete counterpart, the difference operator:

  • backward: y−(k)=u(k)−u(k−1)y_-(k)=u(k)-u(k-1) (causal; this is the one we will use);
  • forward: y+(k)=u(k+1)−u(k)y_+(k)=u(k+1)-u(k).

An anticausal difference operator can also be defined; however y+(k)≠y−(k)y_+(k)\neq y_-(k) in general.

Example: the RC circuit

A voltage source vs(t)v_s(t) drives a series resistor RR and capacitor CC, with current i(t)i(t) and capacitor voltage vc(t)v_c(t):

   i(t) ->  R
  +---/\/\/\---+
  |            |+
 (~) v_s(t)   === C     v_c(t)        v_s(t) --> [ Sigma_RC ] --> v_c(t)
  |            |-
  +------------+

The model is ΣRC: v˙c(t)+1RCvc(t)=1RCvs(t),\Sigma_{RC}:\ \dot v_c(t)+\frac{1}{RC}v_c(t)=\frac{1}{RC}v_s(t), a dynamic system. We will see that vc(t)=f(vc(0),vs(t))v_c(t)=f(v_c(0),v_s(t)).

From physics, the electric charge q(t)q(t) satisfies i(t):=dq(t)dti(t):=\frac{dq(t)}{dt} and q(t)=Cvc(t)q(t)=Cv_c(t). Therefore

ΣRCINT: vc(t)=1C∫−∞ti(τ) dτ,\Sigma^{INT}_{RC}:\ v_c(t)=\frac1C\int_{-\infty}^{t}i(\tau)\,d\tau,

so the system i(t)→[ΣRCINT]→vc(t)i(t)\to[\Sigma^{INT}_{RC}]\to v_c(t) is an integrator.

Basic system interconnections

  1. Series (cascade): u→[Σ1]→w[Σ2]→yu\to[\Sigma_1]\xrightarrow{w}[\Sigma_2]\to y, so y=(Σ2∘Σ1)[u]=Σ2[w]y=(\Sigma_2\circ\Sigma_1)[u]=\Sigma_2[w].
  2. Parallel: both systems receive uu and their outputs w1,w2w_1,w_2 are added: y=(Σ1+Σ2)[u]=Σ1[u]+Σ2[u]=w1+w2y=(\Sigma_1+\Sigma_2)[u]=\Sigma_1[u]+\Sigma_2[u]=w_1+w_2.
  3. Feedback: to be seen in the course on Control Systems.

For LTI systems the series and parallel connections translate into associativity and bilinearity of convolution: see Properties of Discrete-Time Convolutionalgebraic properties of the discrete convolution (time invariance, commutativity, associativity, bilinearity, neutral element, support), its link with correlation and a set of worked examples including the rectangle-by-rectangle graphical method.Properties of Discrete-Time Convolution →.

Versione ripasso

  • System: a triple (U,Y,Σ)(\mathcal{U},\mathcal{Y},\Sigma), U,Y\mathcal{U},\mathcal{Y} families of signals, Σ:U→Y\Sigma:\mathcal{U}\to\mathcal{Y} a map (input uu, output yy, state xx). Continuous: Σ[{u(t)}]={y(t)}\Sigma[\{u(t)\}]=\{y(t)\}; discrete: Σ[{u(k)}]={y(k)}\Sigma[\{u(k)\}]=\{y(k)\}; hybrid: the sampler {u(t)}↦{u(Tk)}\{u(t)\}\mapsto\{u(Tk)\}.
  • In this course the output equals the state, y=xy=x; the general state-space form is x˙=Ax+Bu\dot x=Ax+Bu, y=Cx+Duy=Cx+Du.
  • Models: mass-spring-damper mx¨+βx˙+Kx=um\ddot x+\beta\dot x+Kx=u; bank account y(k)=y(k−1)+0.01y(k−1)+u(k)y(k)=y(k-1)+0.01y(k-1)+u(k); RC circuit v˙c+1RCvc=1RCvs\dot v_c+\frac1{RC}v_c=\frac1{RC}v_s (dynamic), and vc=1C∫iv_c=\frac1C\int i (integrator).
  • Basic operators: shift UTU_T: u(t−T)u(t-T); scaling SαS_\alpha: u(αt)u(\alpha t) (compression α>1\alpha>1, dilation 0<α<10<\alpha<1, S−1=RS_{-1}=\mathcal{R} time reversal); integrator ∫−∞tu\int_{-\infty}^tu or ∑n=−∞ku(n)\sum_{n=-\infty}^ku(n); derivative; backward difference u(k)−u(k−1)u(k)-u(k-1) (causal); amplifier Au(t)Au(t).
  • Composition: UT∘SαU_T\circ S_\alpha gives u(α(t−T))u(\alpha(t-T)), while Sα∘UTS_\alpha\circ U_T gives u(αt−T)u(\alpha t-T); they differ.
  • Interconnections: series y=(Σ2∘Σ1)[u]y=(\Sigma_2\circ\Sigma_1)[u]; parallel y=Σ1[u]+Σ2[u]y=\Sigma_1[u]+\Sigma_2[u]; feedback (Control Systems).
  • Typical mistake: swapping the order of shift and scaling.

Teoria collegata