Salta al contenuto
Note per Studenti Modelling Examples - Lotka-Volterra and Car Suspension Report

Modelling Examples - Lotka-Volterra and Car Suspension

In questa pagina 3

Logistic model (population)

p˙(t)=αp(t)−βp2(t),α,β>0,\dot p(t)=\alpha p(t)-\beta p^2(t),\qquad \alpha,\beta>0,

where pp is the population size.

Lotka-Volterra model

Two populations: prey x1x_1 and predators x2x_2.

Prey:

  • birth rate b>0b>0: the number of births is proportional to x1x_1;
  • death rate d>0d>0: the number of deaths is proportional to both x1x_1 and x2x_2.

Predators:

  • survival rate ≈\approx the death rate of the prey times some coefficient c>0c>0;
  • the number of deaths is proportional to x2x_2, with coefficient a>0a>0.

The model is

x˙1(t)=bx1(t)−dx1(t)x2(t),x˙2(t)=cx1(t)x2(t)−ax2(t).\dot x_1(t)=bx_1(t)-dx_1(t)x_2(t),\qquad \dot x_2(t)=cx_1(t)x_2(t)-ax_2(t).

Stability is studied through linearization (Stability of Nonlinear Systems by LinearizationThe stability of an equilibrium of a nonlinear system can be read from the eigenvalues of its linearization when they are all strictly stable or when one is unstable, while the critical case of a merely stable linearization says nothing about the nonlinear system.Stability of Nonlinear Systems by Linearization →) about xeq=0x_{eq}=0. The linearization is

x˙1(t)=bx1(t),x˙2(t)=−ax2(t),F=(b00−a),\dot x_1(t)=bx_1(t),\quad\dot x_2(t)=-ax_2(t),\qquad F=\begin{pmatrix}b&0\\0&-a\end{pmatrix},

with modes ebte^{bt} and e−ate^{-at}. Since b>0b>0 one mode grows, so this linearization is unstable, hence xeq=0x_{eq}=0 is unstable for the nonlinear model (a consequence of the linearization theorem, not written on the board).

Car suspension (two masses)

The vertical model of a car on one wheel (positions measured upward along yy from the ground at 00):

  • M2M_2: mass of the car body, position s2s_2;
  • M1M_1: mass of the wheel, position s1s_1;
  • the shock absorber between the two is a spring K2K_2 in parallel with a damper q2q_2;
  • the tire is a spring K1K_1 between the ground, whose position is the input uu, and the wheel.

State: x=(s1s˙1s2s˙2)Tx=\begin{pmatrix}s_1&\dot s_1&s_2&\dot s_2\end{pmatrix}^T.

From F=maF=ma on each mass:

0=M1s¨1+K1(s1−u)+K2(s1−s2)+q2(s˙1−s˙2),0=M_1\ddot s_1+K_1(s_1-u)+K_2(s_1-s_2)+q_2(\dot s_1-\dot s_2), 0=M2s¨2+K2(s2−s1)+q2(s˙2−s˙1).0=M_2\ddot s_2+K_2(s_2-s_1)+q_2(\dot s_2-\dot s_1).

In terms of the state components x1,…,x4x_1,\dots,x_4 the board then writes

0=M1x˙2+K1(x1−u)+K2(x1−x3),0=M2x˙4+K2(x3−x1)+q2(x4−x2),0=M_1\dot x_2+K_1(x_1-u)+K_2(x_1-x_3),\qquad 0=M_2\dot x_4+K_2(x_3-x_1)+q_2(x_4-x_2), x˙1=x2,x˙3=x4,\dot x_1=x_2,\qquad\dot x_3=x_4,

and, solving for the derivatives,

x˙1=x2,x˙2=−K1−K2M1x1+K2M1x3+K1M1u,\dot x_1=x_2,\qquad \dot x_2=\frac{-K_1-K_2}{M_1}x_1+\frac{K_2}{M_1}x_3+\frac{K_1}{M_1}u, x˙3=x4,x˙4=K2M2x1+q2M2x2−K2M2x3−q2M2x4.\dot x_3=x_4,\qquad \dot x_4=\frac{K_2}{M_2}x_1+\frac{q_2}{M_2}x_2-\frac{K_2}{M_2}x_3-\frac{q_2}{M_2}x_4 .

(Flagged: the state equations for x˙2\dot x_2 on the board do not contain the damper terms q2(x2−x4)q_2(x_2-x_4) that appear in the force balance for M1M_1 above; this looks like an omission on the board.)

A sketch of the response is drawn with three plots: the road input uu oscillates a lot and irregularly, the wheel position s1s_1 oscillates with a smaller amplitude, and the car body position s2s_2 oscillates the least, showing that the suspension filters the road profile.

Versione ripasso

  • Logistic: p˙=αp−βp2\dot p=\alpha p-\beta p^2, α,β>0\alpha,\beta>0.
  • Lotka-Volterra (prey x1x_1, predators x2x_2): x˙1=bx1−dx1x2\dot x_1=bx_1-dx_1x_2, x˙2=cx1x2−ax2\dot x_2=cx_1x_2-ax_2, all coefficients positive. Linearization at 00: F=diag(b,−a)F=\mathrm{diag}(b,-a), modes ebt,e−ate^{bt},e^{-at} (the ebte^{bt} mode grows).
  • Car suspension: state (s1,s˙1,s2,s˙2)(s_1,\dot s_1,s_2,\dot s_2), wheel mass M1M_1, body mass M2M_2, tire spring K1K_1, shock absorber spring K2K_2 and damper q2q_2, road input uu.
    • 0=M1s¨1+K1(s1−u)+K2(s1−s2)+q2(s˙1−s˙2)0=M_1\ddot s_1+K_1(s_1-u)+K_2(s_1-s_2)+q_2(\dot s_1-\dot s_2); 0=M2s¨2+K2(s2−s1)+q2(s˙2−s˙1)0=M_2\ddot s_2+K_2(s_2-s_1)+q_2(\dot s_2-\dot s_1).
    • x˙4=K2M2x1+q2M2x2−K2M2x3−q2M2x4\dot x_4=\tfrac{K_2}{M_2}x_1+\tfrac{q_2}{M_2}x_2-\tfrac{K_2}{M_2}x_3-\tfrac{q_2}{M_2}x_4.
    • Output sketch: uu large oscillations, s1s_1 smaller, s2s_2 smallest.