Algorithm Search⌘K

Theoremadvanced

S-procedure

Also called S-lemma, Yakubovich S-lemma.

If F_0 - tau F_1 >= 0 everywhere for some tau >= 0, then F_0 >= 0 wherever F_1 >= 0. For one quadratic F_1 that is positive at some point the converse holds; for two or more it can fail.

The S-procedure is a way to prove that a quadratic function is nonnegative on a set described by other quadratic inequalities. Instead of the hard question "is F0(x)≥0F_0(x) \ge 0 for every xx with F1(x)≥0,…,Fp(x)≥0F_1(x) \ge 0, \dots, F_p(x) \ge 0?", it asks the easier question "are there multipliers τi≥0\tau_i \ge 0 with F0−∑iτiFi≥0F_0 - \sum_i \tau_i F_i \ge 0 everywhere?". The second question is a linear matrix inequality in the τi\tau_i. A yes always answers the first question. The S-lemma of Yakubovich says that for one constraint, with a point where the constraint is strict, the two questions have the same answer. This is why many robustness tests with one norm-bounded or sector-bounded uncertainty are exact LMIs.

Statement

Setting. For i=0,1,…,pi = 0, 1, \dots, p, let Fi(x)=xTTix+2uiTx+viF_i(x) = x^T T_i x + 2 u_i^T x + v_i on Rn\mathbb{R}^n, with TiT_i symmetric, ui∈Rnu_i \in \mathbb{R}^n and vi∈Rv_i \in \mathbb{R}. Write

Mi=[TiuiuiTvi],Fi(x)=[x1]TMi[x1].M_i = \begin{bmatrix} T_i & u_i \\ u_i^T & v_i \end{bmatrix}, \qquad F_i(x) = \begin{bmatrix} x \\ 1 \end{bmatrix}^T M_i \begin{bmatrix} x \\ 1 \end{bmatrix}.

For symmetric matrices, ⪰0\succeq 0 means positive semidefinite.

Theorem 1 (the S-procedure). If there are τ1,…,τp≥0\tau_1, \dots, \tau_p \ge 0 with

M0−τ1M1−⋯−τpMp⪰0,M_0 - \tau_1 M_1 - \dots - \tau_p M_p \succeq 0,

then F0(x)≥0F_0(x) \ge 0 for every xx with F1(x)≥0,…,Fp(x)≥0F_1(x) \ge 0, \dots, F_p(x) \ge 0.

Theorem 2 (the S-lemma, Yakubovich 1971). Let p=1p = 1 and assume that F1(x0)>0F_1(x_0) > 0 for some x0x_0. Then F0(x)≥0F_0(x) \ge 0 for every xx with F1(x)≥0F_1(x) \ge 0 if and only if there is τ≥0\tau \ge 0 with M0−τM1⪰0M_0 - \tau M_1 \succeq 0, that is, with F0(x)−τF1(x)≥0F_0(x) - \tau F_1(x) \ge 0 for all x∈Rnx \in \mathbb{R}^n.

In plain words

You want to show that one quadratic function is never negative inside a region cut out by another quadratic function. Checking every point of the region is hard, because the functions need not be convex. The trick is to add a nonnegative multiple of the constraint function to the target function. Inside the region the constraint is nonnegative, so subtracting it can only make the target smaller there. If the difference is never negative anywhere, the target is never negative in the region. The S-lemma says that with one constraint, and a point where that constraint is strictly positive, this trick never misses: if the target is nonnegative in the region, some multiple works.

Proof

Theorem 1. Let Fi(x)≥0F_i(x) \ge 0 for i=1,…,pi = 1, \dots, p. Then F0(x)≥F0(x)−∑iτiFi(x)≥0F_0(x) \ge F_0(x) - \sum_i \tau_i F_i(x) \ge 0, because each τiFi(x)≥0\tau_i F_i(x) \ge 0. The matrix condition is the same as F0−∑iτiFi≥0F_0 - \sum_i \tau_i F_i \ge 0 on Rn\mathbb{R}^n: one direction takes the vector (x,1)(x, 1), and for the other, a quadratic form q(x,t)q(x, t) that is ≥0\ge 0 for all t≠0t \ne 0 (where q(x,t)=t2q(x/t,1)q(x, t) = t^2 q(x/t, 1)) is ≥0\ge 0 at t=0t = 0 too, by continuity.

The "if" part of Theorem 2 is Theorem 1 with p=1p = 1. The "only if" part takes three steps.

Step 1 (Dines' lemma). For symmetric matrices Q0,Q1Q_0, Q_1 of size NN, the set S={(zTQ0z, zTQ1z):z∈RN}S = \{(z^T Q_0 z,\ z^T Q_1 z) : z \in \mathbb{R}^N\} is a convex cone in R2\mathbb{R}^2.

It is a cone because (cz)TQi(cz)=c2zTQiz(c z)^T Q_i (c z) = c^2 z^T Q_i z. For convexity, take z,w∈RNz, w \in \mathbb{R}^N and put z(θ)=cos⁡θ z+sin⁡θ wz(\theta) = \cos\theta\, z + \sin\theta\, w. Then

z(θ)TQiz(θ)=zTQiz+wTQiw2+cos⁡2θ zTQiz−wTQiw2+sin⁡2θ zTQiw,z(\theta)^T Q_i z(\theta) = \frac{z^T Q_i z + w^T Q_i w}{2} + \cos 2\theta\, \frac{z^T Q_i z - w^T Q_i w}{2} + \sin 2\theta\, z^T Q_i w ,

so as θ\theta runs over [0,π)[0, \pi), the image point runs over a curve EE that is an affine image of the unit circle: an ellipse, a segment or a point. Let Eˉ\bar E be its convex hull (the filled ellipse, or EE itself). The image of the plane spanned by zz and ww is {r2e:r≥0, e∈E}\{r^2 e : r \ge 0,\ e \in E\}, the cone generated by EE. It is also the cone generated by Eˉ\bar E: for y∈Eˉy \in \bar E, y≠0y \ne 0, the farthest point s∗ys^* y (s∗≥1s^* \ge 1) of Eˉ\bar E on the ray through yy lies on EE, and y=(1/s∗)(s∗y)y = (1/s^*)(s^* y). The cone generated by a convex set is convex, and it contains the images of zz (θ=0\theta = 0) and of ww (θ=π/2\theta = \pi/2). So the segment between these two points of SS lies in SS.

Step 2 (homogenization). Put qi(x,t)=(x,t)TMi(x,t)q_i(x, t) = (x, t)^T M_i (x, t) on Rn+1\mathbb{R}^{n+1}, so that qi(x,1)=Fi(x)q_i(x, 1) = F_i(x). Claim: q1(x,t)>0q_1(x, t) > 0 implies q0(x,t)≥0q_0(x, t) \ge 0. If t≠0t \ne 0, this is the hypothesis at the point x/tx/t, multiplied by t2t^2. If t=0t = 0, then xTT1x>0x^T T_1 x > 0. For large ss, F1(sx)=s2xTT1x+2su1Tx+v1>0F_1(s x) = s^2 x^T T_1 x + 2 s u_1^T x + v_1 > 0, so F0(sx)≥0F_0(s x) \ge 0; divide by s2s^2 and let s→∞s \to \infty to get q0(x,0)=xTT0x≥0q_0(x, 0) = x^T T_0 x \ge 0.

Step 3 (separation). By Steps 1 and 2, the image SS of Rn+1\mathbb{R}^{n+1} under (q0,q1)(q_0, q_1) is a convex set that does not meet the open convex set W={(a,b):a<0, b>0}W = \{(a, b) : a < 0,\ b > 0\}. Two disjoint convex sets in the plane, one of them open, are separated by a line, and since both are cones the line passes through the origin. So there are λ0,λ1\lambda_0, \lambda_1, not both zero, with λ0a−λ1b≥0\lambda_0 a - \lambda_1 b \ge 0 on SS and ≤0\le 0 on WW. Testing points of WW near (−1,0)(-1, 0) and near (0,1)(0, 1) gives λ0≥0\lambda_0 \ge 0 and λ1≥0\lambda_1 \ge 0. If λ0=0\lambda_0 = 0, then λ1>0\lambda_1 > 0 and −λ1q1≥0-\lambda_1 q_1 \ge 0 everywhere, which is false at (x0,1)(x_0, 1), where q1=F1(x0)>0q_1 = F_1(x_0) > 0. So λ0>0\lambda_0 > 0, and with τ=λ1/λ0≥0\tau = \lambda_1 / \lambda_0 \ge 0, q0−τq1≥0q_0 - \tau q_1 \ge 0 on Rn+1\mathbb{R}^{n+1}, that is, M0−τM1⪰0M_0 - \tau M_1 \succeq 0.

Consequences

  • An LMI test. For fixed MiM_i, the condition of Theorem 1 is an LMI in pp scalars of size n+1n + 1, a small semidefinite program. If the MiM_i depend affinely on other unknowns, such as a Lyapunov matrix, the condition stays an LMI in all unknowns together. This is how the S-procedure is used in control.
  • The strict form. For quadratic forms (ui=0u_i = 0, vi=0v_i = 0) there is a strict version (Boyd et al. 1994, Section 2.6.3): if ζTT0ζ>0\zeta^T T_0 \zeta > 0 for every ζ≠0\zeta \ne 0 with ζTT1ζ≥0\zeta^T T_1 \zeta \ge 0, and ζ0TT1ζ0>0\zeta_0^T T_1 \zeta_0 > 0 for some ζ0\zeta_0, then T0−τT1≻0T_0 - \tau T_1 \succ 0 for some τ≥0\tau \ge 0; the converse is the easy direction.
  • Lyapunov functions with a norm-bounded nonlinearity. For x′=Ax+Bpx' = A x + B p with ∣p∣≤∣Cx∣|p| \le |C x| and C≠0C \ne 0, the derivative of V=xTPxV = x^T P x is negative for every such pp and every (x,p)≠0(x, p) \ne 0 if and only if, for some τ≥0\tau \ge 0,
[ATP+PA+τCTCPBBTP−τI]≺0.\begin{bmatrix} A^T P + P A + \tau C^T C & P B \\ B^T P & -\tau I \end{bmatrix} \prec 0 .

This is the strict form with the constraint ∣Cx∣2−∣p∣2≥0|C x|^2 - |p|^2 \ge 0 and the target −2xTP(Ax+Bp)-2 x^T P (A x + B p) (Boyd et al. 1994, Section 2.6.3). Together with P≻0P \succ 0 it is one LMI in (P,τ)(P, \tau). The lower right block forces τ>0\tau > 0, and after division by τ\tau it is the bounded real lemma for C(sI−A)−1BC (sI - A)^{-1} B with γ=1\gamma = 1: the small gain test. It is also the basis of the Lur'e problem and of the circle criterion. With a polytope of state matrices instead, one gets quadratic stability.

  • A theorem of alternatives. In terms of Lagrangian duality, the S-lemma says that the problem "minimize F0(x)F_0(x) subject to F1(x)≥0F_1(x) \ge 0" has no duality gap under the Slater condition, even when F0F_0 and F1F_1 are not convex. An example is the trust region problem: minimize a quadratic with an indefinite T0T_0 over a ball.
  • Affine constraints. If all Ti=0T_i = 0 and the set {F1≥0,…,Fp≥0}\{F_1 \ge 0, \dots, F_p \ge 0\} is not empty, Theorem 1 is lossless for every pp: this is the affine Farkas lemma.

Example. Let F1(x)=1−x2F_1(x) = 1 - x^2, so the set is [−1,1][-1, 1], and F0(x)=2−x−x2=(1−x)(2+x)F_0(x) = 2 - x - x^2 = (1 - x)(2 + x), a concave function that is ≥0\ge 0 on [−1,1][-1, 1] and 00 at x=1x = 1. The Slater point is x0=0x_0 = 0. Then

F0−τF1=(τ−1)x2−x+(2−τ),F_0 - \tau F_1 = (\tau - 1) x^2 - x + (2 - \tau),

which is ≥0\ge 0 for all xx exactly when τ>1\tau > 1 and 1−4(τ−1)(2−τ)≤01 - 4(\tau - 1)(2 - \tau) \le 0, that is (2τ−3)2≤0(2\tau - 3)^2 \le 0. So τ=3/2\tau = 3/2 is the only multiplier, and F0−32F1=12(x−1)2F_0 - \frac{3}{2} F_1 = \frac{1}{2}(x - 1)^2. In matrix form, M0=[−1−1/2−1/22]M_0 = \begin{bmatrix} -1 & -1/2 \\ -1/2 & 2 \end{bmatrix}, M1=[−1001]M_1 = \begin{bmatrix} -1 & 0 \\ 0 & 1 \end{bmatrix}, and M0−32M1=12[1−1−11]⪰0M_0 - \frac{3}{2} M_1 = \frac{1}{2}\begin{bmatrix} 1 & -1 \\ -1 & 1 \end{bmatrix} \succeq 0, singular because the bound is reached at x=1x = 1.

Tightness

  • Two constraints. Theorem 1 can be lossy for p=2p = 2, even in one variable and with Slater points. Take F1(x)=x2−1F_1(x) = x^2 - 1 and F2(x)=xF_2(x) = x, so the set is {x≥1}\{x \ge 1\}, and F0(x)=x−1≥0F_0(x) = x - 1 \ge 0 on it. For τ1,τ2≥0\tau_1, \tau_2 \ge 0, F0−τ1F1−τ2F2=−τ1x2+(1−τ2)x−1+τ1F_0 - \tau_1 F_1 - \tau_2 F_2 = -\tau_1 x^2 + (1 - \tau_2) x - 1 + \tau_1. Nonnegativity for all xx needs τ1=0\tau_1 = 0 (the leading coefficient), and then (1−τ2)x−1≥0(1 - \tau_2) x - 1 \ge 0 for all xx fails at x=0x = 0. So no multipliers exist, although x=2x = 2 makes both constraints strict. In general, deciding whether F0≥0F_0 \ge 0 on the set of several quadratic constraints is hard; Boyd et al. (1994, notes to Chapter 2) state that it is NP-complete.
  • The Slater point. Theorem 2 fails without it. Take F1(x)=−x2F_1(x) = -x^2, so the set is {0}\{0\}, and F0(x)=xF_0(x) = x, which is 00 there. For τ>0\tau > 0, x+τx2x + \tau x^2 is −1/(4τ)-1/(4\tau) at x=−1/(2τ)x = -1/(2\tau), and for τ=0\tau = 0 it is xx, so no τ≥0\tau \ge 0 works.
  • The multiplier must be nonnegative. With τ<0\tau < 0 allowed, the condition would prove F0≥0F_0 \ge 0 on {F1≤0}\{F_1 \le 0\}, a different set. For an equality constraint F1(x)=0F_1(x) = 0 the multiplier is free, and the lossless version needs extra assumptions (see Pólik and Terlaky 2007).

History

Lur'e and Postnikov used the idea in 1944 to find Lyapunov functions for systems with a sector-bounded nonlinearity, and Aizerman and Gantmacher gave it the name S-procedure in 1964 (as recorded in the notes of Boyd et al. 1994). The convexity of the joint range of two quadratic forms is due to Dines (1941). Yakubovich (1971) proved that the procedure is lossless for one constraint with a strictly feasible point. With interior point methods for LMIs in the 1990s, the S-procedure became a standard step that turns a robustness question into a semidefinite program. Pólik and Terlaky (2007) survey the proofs, the extensions and the links to optimization.

References

  1. Stephen Boyd, Laurent El Ghaoui, Eric Feron and Venkataramanan Balakrishnan, Linear Matrix Inequalities in System and Control Theory, SIAM Studies in Applied Mathematics 15, SIAM, 1994, Section 2.6.3, The S-procedure (the nonstrict and strict forms, the case of one constraint, the affine case, and the Lyapunov example with a norm-bounded nonlinearity), and the Notes and References of Chapter 2
  2. Imre Pólik and Tamás Terlaky, A survey of the S-lemma, SIAM Review 49(3) (2007) 371-418, the statement of the S-lemma with the Slater condition, its proofs, the counterexamples with two constraints, and the history
  3. V. A. Yakubovich, S-procedure in nonlinear control theory, Vestnik Leningrad University, 1971 (in Russian); English translation in Vestnik Leningrad University Mathematics 4 (1977) 73-93, the proof that the S-procedure is lossless for one constraint

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/E4NDGT/text.yaml