Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Interior-point methods practice

Original practice questions (PDF)

Use the primal LP min⁡{c⊺x:Ax=b,x≥0}\min\{c^\intercal x:Ax=b,\ x\ge0\} and its dual max⁡{b⊺y:A⊺y+s=c,s≥0}\max\{b^\intercal y:A^\intercal y+s=c,\ s\ge0\}. Write X=diag⁡(x)X=\operatorname{diag}(x) and S=diag⁡(s)S=\operatorname{diag}(s). In the Newton systems, QQ is the symmetric quadratic objective matrix, which is zero for an LP.

1. Complementarity and duality gap

Show how the complementarity residual x⊺sx^\intercal s controls the duality gap when xx and (y,s)(y,s) are primal and dual feasible, respectively.

Solution to exercise 1

Dual feasibility gives c=A⊺y+sc=A^\intercal y+s. Therefore c⊺x−b⊺y=y⊺(Ax−b)+s⊺x=x⊺sc^\intercal x-b^\intercal y=y^\intercal(Ax-b)+s^\intercal x=x^\intercal s by primal feasibility.

2. A stopping certificate

If feasible primal and dual iterates satisfy x⊺s≤εx^\intercal s\le\varepsilon, what can you say about the duality gap at this iterate?

Solution to exercise 2

It is x⊺sx^\intercal s by Exercise 1 and lies in [0,ε][0,\varepsilon]. Weak duality then places the optimal value between b⊺yb^\intercal y and c⊺xc^\intercal x.

3. The log-barrier conditions

Write the KKT conditions for the primal log-barrier problem minimizec⊺x−μ∑ilog⁡xisubject toAx=b,x>0,\text{minimize}\quad c^\intercal x-\mu\sum_i\log x_i \qquad\text{subject to}\quad Ax=b,\quad x>0, where μ>0\mu>0.

Solution to exercise 3

With equality term −y⊺(Ax−b)-y^\intercal(Ax-b), stationarity is c−A⊺y−μX−1𝟏=0c-A^\intercal y-\mu X^{-1}\mathbf 1=0. With s=μX−1𝟏s=\mu X^{-1}\mathbf 1, the conditions become Ax=bAx=b, A⊺y+s=cA^\intercal y+s=c, and XS𝟏=μ𝟏XS\mathbf 1=\mu\mathbf 1, with x,s>0x,s>0. The web problem states a primal barrier explicitly because the PDF formula mixes the primal objective with a logarithm of the dual slack.

4. Feasibility of a full Newton step

Start at a feasible point (x,y,s)(x,y,s) with x,s>0x,s>0. The interior-point Newton direction satisfies AΔx=0,−QΔx+A⊺Δy+Δs=0,SΔx+XΔs=μ𝟏−XS𝟏. \begin{aligned} A\Delta x&=0,\\ -Q\Delta x+A^\intercal\Delta y+\Delta s&=0,\\ S\Delta x+X\Delta s&=\mu\mathbf 1-XS\mathbf 1. \end{aligned} Is the full Newton step always feasible? Explain.

Solution to exercise 4

The first two equations preserve the affine feasibility equalities. Positivity of the new coordinates requires a separate step-length check. For example, take Q=0Q=0, A=[11]A=[1\ 1], x=(1,1)x=(1,1), s=(1,4)s=(1,4), and μ=0.1\mu=0.1, with b=2b=2, c=sc=s, and y=0y=0. The direction has Δx=(0.6,−0.6)\Delta x=(0.6,-0.6) and Δs=(−1.5,−1.5)\Delta s=(-1.5,-1.5), which makes the first new slack negative. A shorter step keeps x,s>0x,s>0.

5. The augmented Newton system

Consider AΔx=rp,−QΔx+A⊺Δy+Δs=rd,SΔx+XΔs=rc, \begin{aligned} A\Delta x&=r_p,\\ -Q\Delta x+A^\intercal\Delta y+\Delta s&=r_d,\\ S\Delta x+X\Delta s&=r_c, \end{aligned} with rp=b−Axr_p=b-Ax, rd=c−A⊺y−s+Qxr_d=c-A^\intercal y-s+Qx, and rc=μ𝟏−XS𝟏r_c=\mu\mathbf 1-XS\mathbf 1. Eliminate Δs\Delta s. What are the advantages and disadvantages of solving the augmented system?

Solution to exercise 5

Since XX is invertible, Δs=X−1(rc−SΔx)\Delta s=X^{-1}(r_c-S\Delta x). Substituting gives the augmented equations −(Q+X−1S)Δx+A⊺Δy=rd−X−1rc,AΔx=rp. \begin{aligned} -(Q+X^{-1}S)\Delta x+A^\intercal\Delta y&=r_d-X^{-1}r_c,\\ A\Delta x&=r_p. \end{aligned} The system is smaller and symmetric, and Δs\Delta s is recovered with a diagonal solve. The augmented matrix is generally indefinite, which can require pivoting, and widely varying entries of X−1SX^{-1}S can cause scaling difficulties near the solution.

6. The normal equations

Suppose the augmented system is −Θ−1Δx+A⊺Δy=gd,AΔx=ξp, \begin{aligned} -\Theta^{-1}\Delta x+A^\intercal\Delta y&=g_d,\\ A\Delta x&=\xi_p, \end{aligned} where Θ=XS−1\Theta=XS^{-1} and gd=ξd−X−1ξμg_d=\xi_d-X^{-1}\xi_\mu. Eliminate Δx\Delta x and compare the normal equations with the augmented system.

Solution to exercise 6

Use Δx=Θ(A⊺Δy−gd)\Delta x=\Theta(A^\intercal\Delta y-g_d) to get AΘA⊺Δy=ξp+AΘgd.A\Theta A^\intercal\Delta y=\xi_p+A\Theta g_d. This system has dimension equal to the number of equality rows. For full row rank AA and Θ≻0\Theta\succ0, it is positive definite and allows Cholesky factorization. Forming the product can add fill and square the condition number of the scaled constraint matrix AΘ1/2A\Theta^{1/2}.

7. The central-path duality gap

State the KKT conditions for the standard-form primal LP. Show that at any point on the central path with Ax=bAx=b, A⊺y+s=cA^\intercal y+s=c, XS𝟏=μ𝟏XS\mathbf 1=\mu\mathbf 1, and x,s>0x,s>0, the duality gap is nμn\mu.

Solution to exercise 7

The LP KKT conditions are primal feasibility, dual feasibility, and xisi=0x_i s_i=0 for each ii. The central path replaces complementary products by xisi=μx_i s_i=\mu. Feasibility gives c⊺x−b⊺y=x⊺sc^\intercal x-b^\intercal y=x^\intercal s, and summing the nn complementary products gives nμn\mu.

8. A numerical point on the central path

For A=[11]A=[1\ 1], b=1b=1, c=(1,0)c=(1,0), and μ=1/2\mu=1/2, find x,y,sx,y,s with x,s>0x,s>0 satisfying the central-path equations. Verify the gap x⊺s=nμx^\intercal s=n\mu.

Solution to exercise 8

Let r=−y>0r=-y>0. Then s=(1+r,r)s=(1+r,r) and x=(1/(2(1+r)),1/(2r))x=(1/(2(1+r)),1/(2r)). The equation x1+x2=1x_1+x_2=1 simplifies to 2r2=12r^2=1, so r=1/2r=1/\sqrt2. Thus x=(1−1/2,1/2),y=−1/2,s=(1+1/2,1/2).x=(1-1/\sqrt2,1/\sqrt2),\qquad y=-1/\sqrt2,\qquad s=(1+1/\sqrt2,1/\sqrt2). Each product is xisi=1/2x_i s_i=1/2, giving the gap 1=nμ1=n\mu.

9. Recovering the perturbed KKT equations

Let L(x,y;μ)=c⊺x−y⊺(Ax−b)−μ∑ilog⁡xiL(x,y;\mu)=c^\intercal x-y^\intercal(Ax-b)-\mu\sum_i\log x_i for x>0x>0 and μ>0\mu>0. Compute ∇xL\nabla_x L. With s=μX−1𝟏s=\mu X^{-1}\mathbf 1, show that stationarity together with Ax=bAx=b is equivalent to the perturbed KKT system.

Solution to exercise 9

The gradient is c−A⊺y−μX−1𝟏c-A^\intercal y-\mu X^{-1}\mathbf 1. At stationarity, A⊺y+s=cA^\intercal y+s=c, and the definition of ss gives XS𝟏=μ𝟏XS\mathbf 1=\mu\mathbf 1 and s>0s>0. Conversely, these complementarity equations with x>0x>0 force s=μX−1𝟏s=\mu X^{-1}\mathbf 1, which gives the same stationarity equation.

10. Residuals and centrality

Let A=[11]A=[1\ 1], b=1b=1, c=(1,1)c=(1,1), Q=0Q=0, and (x,y,s)=((0.6,0.5),−0.2,(0.3,0.4))(x,y,s)=((0.6,0.5),-0.2,(0.3,0.4)). Compute rp=Ax−br_p=Ax-b, rd=A⊺y+s−cr_d=A^\intercal y+s-c, and rc=XS𝟏−μ𝟏r_c=XS\mathbf 1-\mu\mathbf 1, where μ=(x⊺s)/n\mu=(x^\intercal s)/n. State nn and μ\mu.

Solution to exercise 10

There are n=2n=2 variables. The two products are (0.18,0.20)(0.18,0.20), so μ=0.19\mu=0.19. The residuals with the signs in the question are rp=0.1r_p=0.1, rd=(−0.9,−0.8)r_d=(-0.9,-0.8), and rc=(−0.01,0.01)r_c=(-0.01,0.01).

11. Step lengths for positivity

Let x=(0.5,0.5)x=(0.5,0.5), s=(0.4,0.6)s=(0.4,0.6), Δx=(−0.10,0.05)\Delta x=(-0.10,0.05), and Δs=(−0.20,0.10)\Delta s=(-0.20,0.10).

  1. Find the largest primal and dual step lengths in (0,1](0,1] that keep x+αpriΔx>0x+\alpha_{\mathrm{pri}}\Delta x>0 and s+αdualΔs>0s+\alpha_{\mathrm{dual}}\Delta s>0.
  2. Multiply both maxima by 0.950.95. Compute the resulting x+,s+x^+,s^+ and μ+=(x+⊺s+)/n\mu^+=(x^{+\intercal}s^+)/n.
Solution to exercise 11

The only decreasing coordinates would reach zero at lengths 5 and 2, respectively, so both capped maxima are 1. Using both safe steps of 0.950.95 gives x+=(0.405,0.5475)x^+=(0.405,0.5475) and s+=(0.21,0.695)s^+=(0.21,0.695). The average product is μ+=(0.08505+0.3805125)/2=0.23278125\mu^+=(0.08505+0.3805125)/2=0.23278125.