Algorithm Search⌘K

Techniqueadvanced

Passivity-based control

Also called PBC, energy shaping control.

Designs a feedback that makes the closed loop passive with a chosen storage function that has its minimum at the target, often by shaping the energy and adding damping.

Passivity-based control (PBC) is a way to design a feedback for a nonlinear system so that the closed loop is passive with a storage function that you choose, and that has a strict minimum at the target state. The storage function is then a Lyapunov function, and the target is Lyapunov stable; damping on a suitable output makes it asymptotically stable. For physical systems the storage function is usually an energy, and the design has two steps: energy shaping moves the minimum of the energy to the target, and damping injection makes the energy decrease. Passivity is the property, the passivity theorem is the result about feedback loops of passive systems, the port-Hamiltonian system is a model class with a built-in energy, and IDA-PBC is one systematic algorithm of this technique. This page is about the technique in general.

In plain words

A marble in a bowl rolls to the bottom and stays there, because friction takes its energy away. If you want the marble to stop at another place, you can reshape the bowl so that its lowest point is where you want it, and you can add some extra friction so that it settles faster. A passivity-based controller does the same with a machine. The controller adds forces that act like new springs, so that the total energy of machine and controller has its minimum at the target. It also adds forces that act like dampers, so that this energy can only go down. The machine then goes to the target for the same physical reason that the marble goes to the bottom. The design keeps much of the physical structure, so the controller often stays simple and works well when the model is not exact.

When it applies

The technique needs a storage function and an output. The usual cases:

  • Systems with a physical energy. Mechanical systems (robot arms, pendulums), electric circuits, motors and power converters have an energy H(x)H(x) and a power balance H˙≤yTu\dot H \le y^T u, where yy is the output conjugate to the input (velocity for a force, current for a voltage). Port-Hamiltonian systems and Euler-Lagrange systems have this property by construction.
  • Systems that feedback can make passive. For a control-affine system x˙=f(x)+g(x)u\dot x = f(x) + g(x) u with output y=h(x)y = h(x), a smooth state feedback u=α(x)+β(x)vu = \alpha(x) + \beta(x) v that makes the system passive exists, locally around an equilibrium and under regularity conditions, if and only if the system has relative degree one and is weakly minimum phase (Byrnes, Isidori and Willems 1991). This is called feedback passivation.
  • Full actuation, or matching conditions. If every degree of freedom has an actuator, the energy can be changed freely. With fewer actuators than degrees of freedom, only some energies can be reached, and the design must solve matching equations. These are partial differential equations; IDA-PBC is the standard way to set them up.

The technique does not apply directly when no output with relative degree one exists, when the system is not weakly minimum phase, or when the matching equations have no solution with a minimum at the target.

The template

  1. Find the storage and the output. Write the system with a storage function H(x)H(x), bounded below, and an output yy such that H˙≤yTu\dot H \le y^T u along all solutions.
  2. Shape the energy. Choose a feedback u=β(x)+vu = \beta(x) + v and a new storage Hd(x)H_d(x) with a strict minimum at the target x⋆x^\star, such that the closed loop satisfies H˙d≤ydTv\dot H_d \le y_d^T v for a new output ydy_d. For a fully actuated mechanical system this means: keep the kinetic energy, and replace the potential energy V(q)V(q) by Vd(q)V_d(q) with its minimum at q⋆q^\star, using β=∇V−∇Vd\beta = \nabla V - \nabla V_d.
  3. Inject damping. Close the loop with v=−Kvydv = -K_v y_d, Kv=KvT>0K_v = K_v^T > 0. Then H˙d≤−ydTKvyd≤0\dot H_d \le -y_d^T K_v y_d \le 0.
  4. Prove convergence. Hd−Hd(x⋆)H_d - H_d(x^\star) is a Lyapunov function, so x⋆x^\star is a Lyapunov stable equilibrium (Lyapunov's direct method). If x⋆x^\star is the only solution that keeps yd≡0y_d \equiv 0 (a detectability condition), then the LaSalle invariance principle on a compact sublevel set of HdH_d gives local asymptotic stability, with that sublevel set inside the region of attraction. If HdH_d is radially unbounded and x⋆x^\star is its only critical point, the result is global.

The theorem behind steps 3 and 4. Let the closed loop be autonomous, with a locally Lipschitz right side. Let HdH_d be C1C^1 with a strict local minimum at x⋆x^\star, and let H˙d≤−ydTKvyd\dot H_d \le -y_d^T K_v y_d along solutions. Then x⋆x^\star is Lyapunov stable. If, moreover, no solution other than x⋆x^\star stays in {yd=0}\{y_d = 0\} within a compact sublevel set Ωc={Hd≤c}\Omega_c = \{H_d \le c\} around x⋆x^\star, every solution that starts in Ωc\Omega_c converges to x⋆x^\star. This is the invariance principle of Khalil 2002 (Section 4.2) applied to HdH_d, and it is the form used in Khalil 2002, Section 14.4.

Classic examples

1. A pendulum: energy shaping plus damping. Take a pendulum with inertia 1, mgl=9.81m g l = 9.81 (units of torque, N m), friction b=0.1b = 0.1 and torque input uu:

q¨=−9.81sin⁡q−0.1 q˙+u.\ddot q = -9.81 \sin q - 0.1\, \dot q + u.

The target is the horizontal position q⋆=π/2q^\star = \pi / 2. The open-loop energy is H=12q˙2+9.81(1−cos⁡q)H = \frac12 \dot q^2 + 9.81 (1 - \cos q). Shape the potential to

Vd(q)=9.81(1−cos⁡q)+kp2(q−q⋆)2−9.81sin⁡(q⋆)(q−q⋆),V_d(q) = 9.81 (1 - \cos q) + \tfrac{k_p}{2} (q - q^\star)^2 - 9.81 \sin(q^\star)(q - q^\star),

which has Vd′(q⋆)=0V_d'(q^\star) = 0 and Vd′′(q)=9.81cos⁡q+kp≥kp−9.81>0V_d''(q) = 9.81 \cos q + k_p \ge k_p - 9.81 > 0 for kp>9.81k_p > 9.81. So q⋆q^\star is the only minimum, and VdV_d grows without bound. The feedback that gives this potential, with damping injection kdk_d, is

u=9.81sin⁡q⋆−kp(q−q⋆)−kdq˙,u = 9.81 \sin q^\star - k_p (q - q^\star) - k_d \dot q,

a PD controller with a constant gravity term. The closed loop is q¨=−Vd′(q)−(b+kd)q˙\ddot q = -V_d'(q) - (b + k_d) \dot q, and with Hd=12q˙2+Vd(q)−Vd(q⋆)H_d = \frac12 \dot q^2 + V_d(q) - V_d(q^\star),

H˙d=−(b+kd) q˙2≤0.\dot H_d = -(b + k_d)\, \dot q^2 \le 0.

On the set q˙=0\dot q = 0 the closed loop gives q¨=−Vd′(q)\ddot q = -V_d'(q), which is zero only at q⋆q^\star, so LaSalle gives global asymptotic stability. With kp=20k_p = 20 and kd=6k_d = 6, from rest at q=0q = 0, Hd(0)=30.2735H_d(0) = 30.2735 and u(0)=41.2259u(0) = 41.2259. A classical RK4 simulation with step 0.010.01 gives:

tt 0 0.25 0.5 1 1.5 2 3 4
qq 0 0.71642 1.45608 1.67335 1.57481 1.56589 1.57103 1.57079
HdH_d 30.2735 15.7564 1.82617 0.13218 0.00380 0.00033 0.000001 0.000000

HdH_d decreases at every step, up to rounding of order 10−1510^{-15}. The largest angle is 1.69861.6986, an overshoot of 0.1280.128 rad. For comparison, the plain PD law u=−20(q−q⋆)−6q˙u = -20 (q - q^\star) - 6 \dot q without the gravity term settles at q=1.1277q = 1.1277: its shaped potential has its minimum at the wrong place.

2. PD with gravity compensation for robot arms. For a fully actuated arm M(q)q¨+C(q,q˙)q˙+∇V(q)=uM(q) \ddot q + C(q, \dot q) \dot q + \nabla V(q) = u, Takegaki and Arimoto (1981) used u=∇V(q)−Kp(q−q⋆)−Kdq˙u = \nabla V(q) - K_p (q - q^\star) - K_d \dot q with Kp,Kd>0K_p, K_d > 0. The function Hd=12q˙TM(q)q˙+12(q−q⋆)TKp(q−q⋆)H_d = \frac12 \dot q^T M(q) \dot q + \frac12 (q - q^\star)^T K_p (q - q^\star) has H˙d=−q˙TKdq˙\dot H_d = -\dot q^T K_d \dot q, because M˙−2C\dot M - 2C is skew-symmetric for the Christoffel choice of CC. LaSalle gives global asymptotic stability of (q⋆,0)(q^\star, 0). See PD control with gravity compensation.

3. Damping injection alone. For the mass, spring and damper on the port-Hamiltonian system page, u=−Kvyu = -K_v y with the velocity yy adds friction and keeps the minimum of the energy where it is. This is step 3 without step 2. It is enough when the open-loop energy already has its minimum at the target.

4. Feedback passivation. For z˙=f0(z)+p(z,y)y\dot z = f_0(z) + p(z, y) y, y˙=a(z,y)+b(z,y)u\dot y = a(z, y) + b(z, y) u with b≠0b \neq 0 and a storage W(z)W(z) for the zero dynamics with ∇WTf0≤0\nabla W^T f_0 \le 0, the feedback u=b−1(−a−(∇WTp)T+v)u = b^{-1}(-a - (\nabla W^T p)^T + v) makes the system passive from vv to yy with storage W(z)+12∣y∣2W(z) + \frac12 |y|^2. Then v=−Kvyv = -K_v y gives W˙+ddt12∣y∣2=∇WTf0−yTKvy≤0\dot W + \frac{d}{dt}\frac12 |y|^2 = \nabla W^T f_0 - y^T K_v y \le 0. The result of Byrnes, Isidori and Willems (1991) says when such a form exists.

5. Swing-up by energy control. Åström and Furuta (2000) swing up a pendulum by controlling its energy instead of its position. For a frictionless pendulum with torque input, E˙=q˙ u\dot E = \dot q\, u with E=12q˙2+mgl(1−cos⁡q)E = \frac12 \dot q^2 + m g l (1 - \cos q). The feedback u=−k(E−Etop)q˙u = -k (E - E_{\text{top}}) \dot q with Etop=2mglE_{\text{top}} = 2 m g l gives ddt(E−Etop)=−k(E−Etop)q˙2\frac{d}{dt}(E - E_{\text{top}}) = -k (E - E_{\text{top}}) \dot q^2, so the energy goes to the energy of the upright position. A local controller then catches the pendulum near the top. Here the passive output q˙\dot q is used, but the target is a level of energy, not a point.

Variations

  • IDA-PBC. Instead of choosing HdH_d first, choose the desired interconnection and damping matrices and solve the matching equations for HdH_d. This handles underactuated and electromechanical systems. See IDA-PBC.
  • Energy balancing. If the closed-loop energy equals the stored energy minus the energy supplied by the controller, the controller acts like a physical system connected to the plant. Ortega et al. (2002) show when this holds. It fails when dissipation acts on the coordinates that must be shaped, which is the dissipation obstacle described on the port-Hamiltonian system page.
  • Tracking. For robots that follow a trajectory, the Slotine-Li controller and its adaptive form use the passivity of the map from a filtered tracking error to the velocity error (Ortega and Spong 1989). See Slotine-Li adaptive control.
  • Without velocity measurements. The damping can be injected through a filter of the position, which makes the closed loop passive from a filtered output. Ortega, Loría, Nicklasson and Sira-Ramírez (1998) treat these output feedback designs.
  • Combination with other designs. Backstepping can make a cascade passive step by step, and the passivity of the subsystems gives the cross terms that cancel.

Pitfalls

  • Stability without convergence. Damping injection only on some coordinates gives H˙d≤0\dot H_d \le 0, not <0< 0. Without the detectability condition of step 4, the state can stay on a level set of HdH_d forever. Check the largest invariant set in {yd=0}\{y_d = 0\}.
  • A local minimum is a local result. If HdH_d has other minima or is not radially unbounded, the result holds only on a sublevel set that contains no other critical point. In the pendulum example, kp<9.81k_p < 9.81 makes Vd′′V_d'' negative at some angles, and other equilibria appear.
  • Cancellation needs a good model. The gravity term ∇V(q)\nabla V(q) in example 2 must be exact. An error ΔV\Delta V moves the minimum of the shaped potential and gives a steady-state error. Example 1 uses only the constant 9.81sin⁡q⋆9.81 \sin q^\star, which still must be right.
  • Passive for a new output. After energy shaping, the closed loop is passive from vv to ydy_d, which need not be the physical output. Robustness arguments that use the physical output need yd=yy_d = y (Ortega et al. 2002, Section 3.2).
  • Sampling and saturation. The power balance holds for the continuous-time loop. A sampled controller can inject energy, and actuator saturation removes part of the damping. Both can destroy the guarantee for large gains or slow sampling.
  • The damping does not always help. Larger KvK_v makes H˙d\dot H_d more negative, but it can make the response slower in other directions and amplify measurement noise.

Exercises

  1. For the pendulum of example 1, find the smallest kpk_p for which VdV_d is convex on all of R\mathbb{R}. Answer: Vd′′=9.81cos⁡q+kpV_d'' = 9.81 \cos q + k_p, so kp>9.81k_p > 9.81 is needed, and kp=9.81k_p = 9.81 fails at q=πq = \pi.
  2. Show that with u=−20(q−π/2)−6q˙u = -20 (q - \pi/2) - 6 \dot q (no gravity term) the pendulum settles where 9.81sin⁡q=20(π/2−q)9.81 \sin q = 20 (\pi/2 - q), and that the root is near q=1.1277q = 1.1277.
  3. For the mass, spring and damper with m=1m = 1, k=2k = 2, b=0.5b = 0.5, shape the energy so that the new rest position is q⋆=1q^\star = 1. Answer: u=kq⋆+k1(q⋆−q)−kvq˙u = k q^\star + k_1 (q^\star - q) - k_v \dot q gives Hd=12q˙2+12(k+k1)(q−q⋆)2H_d = \frac12 \dot q^2 + \frac12 (k + k_1)(q - q^\star)^2, with H˙d=−(b+kv)q˙2\dot H_d = -(b + k_v) \dot q^2.
  4. In example 5, show that E=EtopE = E_{\text{top}} is reached only in the limit, and explain why a second controller is needed near the top.
  5. Show that a port-Hamiltonian system with the feedback u=−Kvy+vu = -K_v y + v is again port-Hamiltonian from vv to yy, with the same HH and JJ. Answer: the dissipation matrix becomes R+gKvgTR + g K_v g^T, which is symmetric positive semidefinite.

References

  1. Adaptive motion control of rigid robots: a tutorial, the introduction of the term passivity-based control for robot controllers
  2. Romeo Ortega, Antonio Loría, Per Johan Nicklasson and Hebertt Sira-Ramírez, Passivity-based Control of Euler-Lagrange Systems, Springer, 1998, the passivity-based design for mechanical, electrical and electromechanical Euler-Lagrange systems
  3. Morikazu Takegaki and Suguru Arimoto, A new feedback method for dynamic control of manipulators, Journal of Dynamic Systems, Measurement, and Control 103(2), 119-125, 1981, PD feedback with gravity compensation for manipulators and its global convergence
  4. Christopher I. Byrnes, Alberto Isidori and Jan C. Willems, Passivity, feedback equivalence, and the global stabilization of minimum phase nonlinear systems, IEEE Transactions on Automatic Control 36(11), 1228-1240, 1991, feedback equivalence to a passive system (relative degree one and weakly minimum phase)
  5. Romeo Ortega, Arjan van der Schaft, Bernhard Maschke and Gerardo Escobar, Interconnection and damping assignment passivity-based control of port-controlled Hamiltonian systems, Automatica 38(4), 585-596, 2002, Sections 1 and 2 (the passivation objective and energy balancing)
  6. Swinging up a pendulum by energy control, the energy control strategy for the swing-up
  7. Hassan K. Khalil, Nonlinear Systems, third edition, Prentice Hall, 2002, Chapter 6 (passivity) and Section 14.4 (passivity-based control)

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)
WritingW2 basic
  • three classic examples