Algorithm Search⌘K

Modelcore

Control-affine nonlinear system

Also called affine nonlinear system, input-affine system.

A nonlinear system whose state derivative is a drift vector field plus input vector fields weighted by the inputs, x' = f(x) + g(x)u.

A control-affine nonlinear system is a state model in which the input enters linearly, though the state does not:

x˙=f(x)+∑i=1mgi(x) ui=f(x)+g(x) u,y=h(x).\dot x = f(x) + \sum_{i=1}^{m} g_i(x)\, u_i = f(x) + g(x)\, u, \qquad y = h(x).

The vector field ff is the drift, what the system does with zero input, and the gig_i are the input vector fields, the directions in which the inputs push. Most models of mechanical, electrical and chemical systems with forces, torques, voltages or flows as inputs have this form. It is the standard class of nonlinear control theory, because the tools based on Lie derivatives and Lie brackets need the input to enter linearly. The linear model x˙=Ax+Bu\dot x = A x + B u of the state-space representation page is the case f(x)=Axf(x) = A x, g(x)=Bg(x) = B.

The machine

Equations. The state is x∈D⊆Rnx \in D \subseteq \mathbb{R}^n, an open set; the input is u∈Rmu \in \mathbb{R}^m (or a subset UU, for bounded inputs), and the output is y∈Rpy \in \mathbb{R}^p. The model is x˙=f(x)+g(x)u\dot x = f(x) + g(x) u, y=h(x)y = h(x), where g(x)=[g1(x)⋯gm(x)]g(x) = [g_1(x) \cdots g_m(x)] is an n×mn \times m matrix.

Standing assumptions. ff, the gig_i and hh are smooth (C∞C^\infty) on DD. Smoothness is more than existence needs; it is assumed so that Lie derivatives and brackets of any order exist. Inputs are piecewise continuous. Since the right side is locally Lipschitz in xx, there is a unique solution from each initial state, on some interval (see Lipschitz condition). Unlike a linear system, it can escape in finite time: x˙=x2+u\dot x = x^2 + u with u=0u = 0 and x(0)=1x(0) = 1 gives x(t)=1/(1−t)x(t) = 1 / (1 - t), which is infinite at t=1t = 1.

Examples.

  • Pendulum with a torque. x˙1=x2\dot x_1 = x_2, x˙2=−sin⁡x1−0.5x2+u\dot x_2 = -\sin x_1 - 0.5 x_2 + u (normalized). Here f(x)=(x2,−sin⁡x1−0.5x2)f(x) = (x_2, -\sin x_1 - 0.5 x_2) and g=(0,1)g = (0, 1), a constant input field.
  • Mechanical systems. M(q)q¨+C(q,q˙)q˙+G(q)=τM(q) \ddot q + C(q, \dot q) \dot q + G(q) = \tau, with a positive definite inertia matrix M(q)M(q). With x=(q,q˙)x = (q, \dot q), f(x)=(q˙,−M(q)−1(C(q,q˙)q˙+G(q)))f(x) = (\dot q, -M(q)^{-1}(C(q, \dot q) \dot q + G(q))) and g(x)=[0M(q)−1]g(x) = \begin{bmatrix} 0 \\ M(q)^{-1} \end{bmatrix}. This is the form used by computed torque control.
  • A wheeled robot. The unicycle model p˙1=vcos⁡ϕ\dot p_1 = v \cos\phi, p˙2=vsin⁡ϕ\dot p_2 = v \sin\phi, ϕ˙=ω\dot\phi = \omega has f=0f = 0, g1=(cos⁡ϕ,sin⁡ϕ,0)g_1 = (\cos\phi, \sin\phi, 0) and g2=(0,0,1)g_2 = (0, 0, 1). A system with f=0f = 0 is called driftless.
  • Bilinear systems. x˙=Ax+∑iuiNix\dot x = A x + \sum_i u_i N_i x, with gi(x)=Nixg_i(x) = N_i x. Examples are a heat exchanger with the flow rate as input, and population models where the input scales a rate.

Non-examples. x˙=−x+sin⁡u\dot x = -x + \sin u, or a ship whose steering force is a nonlinear function of the rudder angle, are not affine in uu. A model x˙=F(x,u)\dot x = F(x, u) can be made affine by a dynamic extension: take uu as a new state with u˙=v\dot u = v, and vv as the new input. Then x˙=F(x,u)\dot x = F(x, u), u˙=v\dot u = v is affine in vv. The price is a larger state, and the controller must then produce the rate of the original input.

What it counts

The model gives the state and output trajectories for each initial state and input. The objects the theory works with are derivatives along the vector fields.

Lie derivatives. For a function hh, Lfh=∂h∂xfL_f h = \frac{\partial h}{\partial x} f is its rate of change along ff, and similarly LgihL_{g_i} h. Along a solution,

y˙=Lfh(x)+Lgh(x) u,\dot y = L_f h(x) + L_g h(x)\, u,

again affine in uu. If Lgh=0L_g h = 0, differentiate again, and so on. The relative degree is the number rr of derivatives needed before the input appears, with LgLfr−1h(x)≠0L_g L_f^{r-1} h(x) \ne 0 (see relative degree). For the pendulum with y=x1y = x_1, y˙=x2\dot y = x_2 and y¨=−sin⁡x1−0.5x2+u\ddot y = -\sin x_1 - 0.5 x_2 + u, so r=2r = 2.

Lie brackets. [f,g]=(Dg)f−(Df)g[f, g] = (Dg) f - (Df) g measures the motion that results from moving along ff and gg in turn and then back. Brackets give directions of motion that no input field gives directly. For the unicycle, [g1,g2]=(sin⁡ϕ,−cos⁡ϕ,0)[g_1, g_2] = (\sin\phi, -\cos\phi, 0), a sideways motion.

Linearization. At an equilibrium (x∗,u∗)(x^*, u^*) with f(x∗)+g(x∗)u∗=0f(x^*) + g(x^*) u^* = 0, the linearization about an equilibrium is

A=∂f∂x(x∗)+∑iui∗∂gi∂x(x∗),B=g(x∗).A = \frac{\partial f}{\partial x}(x^*) + \sum_{i} u_i^* \frac{\partial g_i}{\partial x}(x^*), \qquad B = g(x^*).

Relation to other models

  • Linear time-invariant. f(x)=Axf(x) = A x, g(x)=Bg(x) = B, h(x)=Cxh(x) = C x. Lie derivatives reduce to products such as CAkBC A^k B, the Markov parameters, and the Lie algebra rank condition reduces to the Kalman rank condition of controllability.
  • General nonlinear systems. x˙=F(x,u)\dot x = F(x, u) contains the affine class. Dynamic extension (above) maps the general class into the affine one.
  • Driftless systems. f=0f = 0. They model kinematic constraints such as rolling without slipping. Every state is an equilibrium for u=0u = 0.
  • Mechanical and port-Hamiltonian systems. A port-Hamiltonian system x˙=(J(x)−R(x))∇H(x)+g(x)u\dot x = (J(x) - R(x)) \nabla H(x) + g(x) u, y=g(x)T∇H(x)y = g(x)^T \nabla H(x) is control-affine with an energy structure, and satisfies H˙≤yTu\dot H \le y^T u.
  • Linearization. At each equilibrium the model has an LTI linearization (above); along a trajectory it has a linear time-varying one.

Known results in the model

  • Accessibility (theorem). If the vectors of the Lie algebra generated by f,g1,…,gmf, g_1, \dots, g_m span Rn\mathbb{R}^n at x0x_0, the set of states reachable from x0x_0 has a nonempty interior. For driftless systems, the same rank condition at every point of a connected DD implies that every state can be steered to every other state (the Chow-Rashevskii theorem). See Lie algebra rank condition. For the unicycle, g1g_1, g2g_2 and [g1,g2][g_1, g_2] have determinant

    det⁡[cos⁡ϕ0sin⁡ϕsin⁡ϕ0−cos⁡ϕ010]=1,\det \begin{bmatrix} \cos\phi & 0 & \sin\phi \\ \sin\phi & 0 & -\cos\phi \\ 0 & 1 & 0 \end{bmatrix} = 1,

    so the robot can reach every pose, although its linearization at rest is not controllable.

  • Obstruction to smooth stabilization (theorem). If a continuous feedback u=k(x)u = k(x) makes x∗=0x^* = 0 asymptotically stable, the map (x,u)↦f(x)+g(x)u(x, u) \mapsto f(x) + g(x) u is onto a neighbourhood of 0 (Brockett condition). For the unicycle near the origin, a velocity (0,ε,0)(0, \varepsilon, 0) needs vsin⁡ϕ=εv \sin\phi = \varepsilon with cos⁡ϕ=0\cos\phi = 0, which is impossible with ϕ\phi near 0. So the unicycle is controllable but has no continuous static stabilizing feedback.

  • Input-output linearization (theorem). If the relative degree is rr near x0x_0, the feedback

    u=v−Lfrh(x)LgLfr−1h(x)u = \frac{v - L_f^r h(x)}{L_g L_f^{r-1} h(x)}

    gives y(r)=vy^{(r)} = v, an integrator chain. The rest of the state, n−rn - r dimensions, evolves by the zero dynamics, which must be stable for the closed loop to be stable (Isidori 1995). For the pendulum with y=x1y = x_1, u=sin⁡x1+0.5x2+vu = \sin x_1 + 0.5 x_2 + v gives y¨=v\ddot y = v, and r=n=2r = n = 2, so there are no zero dynamics. See input-output linearization.

  • Full-state feedback linearization (theorem). A single-input system is exactly linearizable by a state transformation and feedback near x0x_0 if and only if the vectors g,adfg,…,adfn−1gg, \mathrm{ad}_f g, \dots, \mathrm{ad}_f^{n-1} g are linearly independent at x0x_0 and the set {g,…,adfn−2g}\{g, \dots, \mathrm{ad}_f^{n-2} g\} is involutive near x0x_0, where adfg=[f,g]\mathrm{ad}_f g = [f, g] (Isidori 1995). See feedback linearization and feedback linearizability conditions.

  • Control Lyapunov functions (theorem). A smooth positive definite VV is a control Lyapunov function if LgV(x)=0L_g V(x) = 0 implies LfV(x)<0L_f V(x) < 0 for x≠0x \ne 0. Because the input enters linearly, the condition "some uu makes V˙<0\dot V < 0" is the explicit test above, and Sontag's formula

    u=−a+a2+∥b∥4∥b∥2 bT(b≠0),u=0(b=0),u = -\frac{a + \sqrt{a^2 + \|b\|^4}}{\|b\|^2}\, b^T \quad (b \ne 0), \qquad u = 0 \quad (b = 0),

    with a=LfVa = L_f V and b=LgVb = L_g V, gives a feedback that is smooth away from the origin and makes it asymptotically stable (see Sontag's universal formula). For x˙=x+u\dot x = x + u and V=x2/2V = x^2 / 2, a=x2a = x^2, b=xb = x, and the formula gives u=−(1+2)xu = -(1 + \sqrt 2) x, so the closed loop is x˙=−2 x\dot x = -\sqrt 2\, x. With input bounds, the same linearity in uu makes the pointwise choice of uu a quadratic program, as in control barrier functions (rule of thumb: this is why most online safety filters assume an affine model).

References

  1. Alberto Isidori, Nonlinear Control Systems, third edition, Springer, 1995, the chapters on local decompositions and controllability of input-affine systems, and on feedback linearization, relative degree and zero dynamics
  2. Eduardo D. Sontag, Mathematical Control Theory, Deterministic Finite Dimensional Systems, second edition, Springer, 1998, the chapters on nonlinear controllability (Lie algebra rank condition) and on feedback stabilization (control Lyapunov functions and the universal formula)
  3. Hassan K. Khalil, Nonlinear Systems, third edition, Prentice Hall, 2002, the chapter on feedback linearization (input-output linearization, relative degree and full-state linearization)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/RFCEGD/text.yaml