Algorithm Search⌘K

Techniqueadvanced

Parameter projection

Also called projection operator for adaptive laws.

Projects the update of an adaptive law so that the estimates stay in a known convex set, which keeps them bounded.

Parameter projection is a modification of an adaptive law that keeps the parameter estimate inside a known closed convex set SS that contains the true parameter: when the estimate is on the boundary of SS and the update points outward, the outward part of the update is removed. The modified law keeps the Lyapunov property of the original law, because the removed part never increases the Lyapunov function, and it adds a bound on the estimate that holds even with disturbances and unmodeled dynamics. It also keeps the estimate in a region where a certainty equivalence design exists, for example away from a zero gain. It is the continuous-time relative of projected gradient descent, with the projection taken in the metric of the adaptation gain.

In plain words

An adaptive controller learns some numbers while it runs. Noise or errors in the model can push these numbers far away from any sensible value, and then the controller can fail. Often you know in advance a range where the true numbers must be, for example a gain that is positive and not larger than 10. Projection is a fence around this range. Inside the range, learning goes on as before. At the fence, any push that would go outside is cut off, and only the part along the fence is kept. The numbers can never leave the range, and the cut never makes the learning worse with respect to the true values, because the true values are inside the fence too.

When it applies

  • The adaptive law has the gradient form θ˙=Γy\dot\theta = \Gamma y with a symmetric positive definite gain Γ\Gamma, and its analysis uses a Lyapunov function that contains θ~TΓ−1θ~\tilde\theta^T\Gamma^{-1}\tilde\theta with θ~=θ−θ∗\tilde\theta = \theta - \theta^*. This covers the laws of MRAC, L1 adaptive control and gradient estimators.
  • A closed convex set S={θ:g(θ)≤0}S = \{\theta : g(\theta) \le 0\} with θ∗∈S\theta^* \in S is known, where gg is convex and continuously differentiable and ∇g≠0\nabla g \ne 0 on the boundary.
  • The initial estimate is in SS.

The template

Let θ∈S\theta \in S and let yy be the update direction of the original law. Ioannou and Sun (Section 4.4) define

θ˙={Γyif g(θ)<0, or g(θ)=0 and (Γy)T∇g≤0,Γy−Γ∇g ∇gT∇gTΓ∇gΓyotherwise.\dot\theta = \begin{cases} \Gamma y & \text{if } g(\theta) < 0, \text{ or } g(\theta) = 0 \text{ and } (\Gamma y)^T\nabla g \le 0,\\[2pt] \Gamma y - \Gamma\dfrac{\nabla g\,\nabla g^T}{\nabla g^T\Gamma\nabla g}\Gamma y & \text{otherwise.}\end{cases}

In the second case ∇gTθ˙=0\nabla g^T\dot\theta = 0: the update is tangent to the boundary.

Property 1 (the estimate stays in the set). If θ(0)∈S\theta(0) \in S, then θ(t)∈S\theta(t) \in S for all tt. Reason: on the boundary, ddtg(θ)=∇gTθ˙\frac{d}{dt}g(\theta) = \nabla g^T\dot\theta, which is at most 00 in the first case and exactly 00 in the second, so gg cannot become positive.

Property 2 (the Lyapunov function does not increase because of the projection). Let θ∗∈S\theta^* \in S. Then θ~TΓ−1(θ˙−Γy)≤0\tilde\theta^T\Gamma^{-1}(\dot\theta - \Gamma y) \le 0. Reason: the difference is zero in the first case. In the second, it equals −θ~T∇g  ∇gTΓy∇gTΓ∇g-\tilde\theta^T\nabla g\;\frac{\nabla g^T\Gamma y}{\nabla g^T\Gamma\nabla g}, where ∇gTΓy>0\nabla g^T\Gamma y > 0. By convexity, g(θ∗)≥g(θ)+∇g(θ)T(θ∗−θ)g(\theta^*) \ge g(\theta) + \nabla g(\theta)^T(\theta^* - \theta), and g(θ)=0≥g(θ∗)g(\theta) = 0 \ge g(\theta^*), so θ~T∇g=(θ−θ∗)T∇g≥0\tilde\theta^T\nabla g = (\theta - \theta^*)^T\nabla g \ge 0. Hence the difference is at most 00.

So if the original law gives V˙≤−W\dot V \le -W for V=(error terms)+θ~TΓ−1θ~/2V = (\text{error terms}) + \tilde\theta^T\Gamma^{-1}\tilde\theta/2, the projected law gives the same bound, and in addition θ\theta is bounded by the size of SS. Both properties are theorems.

Discrete time. For θk+1=ΠS(θk+Γyk)\theta_{k+1} = \Pi_S(\theta_k + \Gamma y_k), where ΠS\Pi_S is the projection onto SS in the norm ∥v∥Γ−12=vTΓ−1v\|v\|_{\Gamma^{-1}}^2 = v^T\Gamma^{-1}v, the projection is nonexpansive toward points of SS: ∥ΠS(z)−θ∗∥Γ−1≤∥z−θ∗∥Γ−1\|\Pi_S(z) - \theta^*\|_{\Gamma^{-1}} \le \|z - \theta^*\|_{\Gamma^{-1}} for θ∗∈S\theta^* \in S (a theorem on projections onto closed convex sets).

Classic examples

Parameter drift with a bounded disturbance. Ioannou and Sun (Section 8.3.1) take x˙=ax+u+d\dot x = ax + u + d, u=−kxu = -kx, k˙=γx2\dot k = \gamma x^2 with a=1a = 1, γ=1\gamma = 1, x(0)=1x(0) = 1, k(0)=5k(0) = 5 and the disturbance d(t)=5(1+t)−1/5−(1+t)−2/5−0.4(1+t)−7/5d(t) = 5(1 + t)^{-1/5} - (1 + t)^{-2/5} - 0.4(1 + t)^{-7/5}, which is bounded and goes to zero. The exact solution is x=(1+t)−2/5x = (1 + t)^{-2/5} and k=5(1+t)1/5k = 5(1 + t)^{1/5}: the error goes to zero, but the gain grows without bound. With projection of kk onto [0,10][0, 10], the gain reaches 10 at t=31t = 31 (5⋅321/5=105 \cdot 32^{1/5} = 10) and stays there. A simulation with RK4 and the step 0.01 gives k(1000)=10k(1000) = 10 and x(1000)=0.1325x(1000) = 0.1325, against k(1000)=19.91k(1000) = 19.91 and x(1000)=0.0631x(1000) = 0.0631 without projection (measurements). The bounded gain costs a larger error while the disturbance lasts.

A gain away from zero. For a certainty equivalence law u=−2y/b^u = -2y/\hat b with a known sign b>0b > 0 and a known lower bound b0b_0, project b^\hat b onto [b0,∞)[b_0, \infty), that is g(b^)=b0−b^g(\hat b) = b_0 - \hat b. Then uu is always defined. The adaptive pole placement page uses the same rule with bmin⁡=0.1b_{\min} = 0.1 for the leading coefficient of B^\hat B, which keeps the design equation solvable at the start.

A ball. For ∣θ∣≤M|\theta| \le M with Γ=γI\Gamma = \gamma I, g=θTθ−M2g = \theta^T\theta - M^2 and ∇g=2θ\nabla g = 2\theta. On the sphere ∣θ∣=M|\theta| = M with θTy>0\theta^Ty > 0, the law becomes θ˙=γ(y−θθTy/M2)\dot\theta = \gamma(y - \theta\theta^Ty/M^2), which removes the radial part.

Smooth projection in L1 adaptive control. The L1 adaptive control page uses f(θ)=(θ2−θb2)/(ϵθb2)f(\theta) = (\theta^2 - \theta_b^2)/(\epsilon\theta_b^2) and scales the outward update by 1−f1 - f in the band 0<f≤10 < f \le 1. The estimate stays in ∣θ∣≤θb1+ϵ|\theta| \le \theta_b\sqrt{1 + \epsilon} and the right-hand side is Lipschitz (Pomet and Praly 1992).

Variations

  • Box constraints. For a diagonal Γ\Gamma and the box θi∈[ℓi,ui]\theta_i \in [\ell_i, u_i], the template is the same as setting θ˙i=0\dot\theta_i = 0 when θi\theta_i is at a bound and its update points outward.
  • Smooth projection. The update is reduced gradually in a thin band outside SS, as in the L1 example; the vector field is then Lipschitz, which helps both the existence theory and simulation with a fixed step.
  • Projection in recursive least squares. With the gain P(t)P(t) in place of Γ\Gamma, the projection uses the metric P−1P^{-1}, so that the same Property 2 holds for V=θ~TP−1θ~V = \tilde\theta^TP^{-1}\tilde\theta.
  • Projection into a stabilizable set. In indirect schemes, SS is chosen so that the estimated model has no common factor with a margin, as in Ioannou and Sun (Section 7.6.2).
  • Soft alternatives. Sigma modification and its switching version bound the estimate without a hard set, at the cost of a bias.

Pitfalls

  • The set must contain the true parameter. If θ∗∉S\theta^* \notin S, Property 2 fails and the loop can have a persistent error. Choose SS from physics, with a margin.
  • Clipping is not projection for a nondiagonal gain. Clipping each component of θ\theta is the template only when Γ\Gamma is diagonal and SS is a box. With a nondiagonal Γ\Gamma, clipping can increase θ~TΓ−1θ~\tilde\theta^T\Gamma^{-1}\tilde\theta.
  • Discontinuous right-hand side. The hard projection switches on the boundary. Solutions exist in the sense of Filippov, but a simulation with a fixed step can chatter on the boundary; the smooth version avoids this.
  • No convergence of the parameters. Projection gives bounds, not θ→θ∗\theta \to \theta^*; that still needs persistent excitation.
  • A large set gives a weak bound. The bound on the estimate is the size of SS. A set much larger than the true uncertainty allows large gains, which can still excite unmodeled dynamics, as in the Rohrs counterexample.

Exercises

  1. Write the projected law for S={∣θ∣≤M}S = \{|\theta| \le M\} and Γ=γI\Gamma = \gamma I, and show that ddt∣θ∣2=0\frac{d}{dt}|\theta|^2 = 0 when the projection is active.
  2. Show that for a diagonal Γ\Gamma and a box, the template reduces to stopping each component that is at a bound and points outward.
  3. In the drift example with k∈[0,10]k \in [0, 10], find the time when kk reaches 10, and show that for later tt, xx obeys x˙=−9x+d\dot x = -9x + d, so xx stays bounded and goes to zero with dd.
  4. Find a 2×22 \times 2 positive definite Γ\Gamma, a point θ\theta on the boundary of the box [−1,1]2[-1, 1]^2 and a direction yy for which clipping each component increases θ~TΓ−1θ~\tilde\theta^T\Gamma^{-1}\tilde\theta for some θ∗\theta^* in the box.
  5. Prove the discrete nonexpansive property from the variational inequality (z−ΠS(z))TΓ−1(θ∗−ΠS(z))≤0(z - \Pi_S(z))^T\Gamma^{-1}(\theta^* - \Pi_S(z)) \le 0 for θ∗∈S\theta^* \in S.

References

  1. Petros A. Ioannou and Jing Sun, Robust Adaptive Control, Prentice Hall 1996 (Dover reprint 2012), Section 4.4 (adaptive laws with projection: the projection operator for a convex set g(theta) <= 0 and its properties), Section 7.6.2 (projection that keeps the estimate in a stabilizable set) and Section 8.3.1 (the parameter drift example)
  2. Jean-Baptiste Pomet and Laurent Praly, Adaptive nonlinear regulation: estimation from the Lyapunov equation, IEEE Transactions on Automatic Control 37(6), 1992, pages 729 to 740 (a smooth projection operator that keeps the estimate in a slightly larger set and is Lipschitz)
  3. Bo Egardt, Stability of Adaptive Controllers, Lecture Notes in Control and Information Sciences 20, Springer 1979, the chapters on robustness (projection of the estimates into a bounded set as a remedy for bounded disturbances)

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