Using ADMM to Calculate the DNN Bound for QAP

In two recent posts I introduced the ADMM algorithm and the DNN bound for QAP. Here I want to show how we can use ADMM to compute DNN bounds efficiently. The approach is due to Oliveira, Wolkowicz and Xu.

In my DNN post I showed that the following is a lower bound for QAP:

DNN(A,B,C):min⁡L∙Ysubject toY=VˆRVˆT,R⪰0,Y00=1,𝒢(Y)=0,0≤Y≤1.

In my ADMM post I introduced ADMM as an iterative algorithm for solving optimization problems of the form

minimizef(x)+g(z)subject toAx+Bz=c

with the following steps:

xk+1:=argminx⁡Lρ(x,zk,yk)zk+1:=argminz⁡Lρ(xk+1,z,yk)yk+1:=yk+ρ(Axk+1+Bzk+1−c)

where Lρ is the augmented Lagrangian:

Lρ(x,z,y)=f(x)+g(z)+yT(Ax+Bz−c)+ρ2‖Ax+Bz−c‖22

Let’s see how ADMM can be applied to DNN.

Writing DNN in ADMM form

The three main groups of constraints we care about are a) R being positive semidefinite, b) Y00=1, 𝒢(Y)=0 and 0≤Y≤1, and c) Y=VˆRVˆT. The notation between my two posts is different, but we can handle these with ADMM.

DNNADMMCondition
RxR⪰0
YzY00=1, 𝒢(Y)=0, 0≤Y≤1
ZyY=VˆRVˆT

The penalty parameter ρ becomes β. We will stick with the DNN notation. We now need to specify the equivalents of f and g in the ADMM post.

Write ℛ for the set of matrices R that satisfy (a), and 𝒴 for the set of matrices Y that satisfy (b). Then

f(R)={0R∈ℛ+∞otherwise,
g(Y)={L∙YY∈𝒴+∞otherwise.

Both f and g are rules, but we’ve embedded the cost L∙Y into our rule for Y. The constraint Ax+Bz=c is group (c), written as Y−VˆRVˆT=0.

We form ℒβ, pricing the equality constraint with the multiplier Z and a quadratic penalty:

ℒβ(R,Y,Z)=L∙Y+Z∙(Y−VˆRVˆT)+β2‖Y−VˆRVˆT‖F2.

The three steps

Now we follow ADMM: minimize ℒβ over R∈ℛ, then the same over Y∈𝒴, update Z and repeat. Because VˆTVˆ=I, completing the square, as we did for the z-step in the ADMM post, turns both minimizations into projections.

The R-step.

R←𝒫+(VˆT(Y+Z/β)Vˆ)

Here 𝒫+ is the projection onto the positive semidefinite matrices: compute an eigenvalue decomposition (EVD) and set the negative eigenvalues to zero. The matrix has order (n−1)2+1. Because EVD is O(m3) for a matrix of order m, this step is O(n6). If you’re like “wow, that’s expensive”, then welcome to QAP! I would happily pay that for a good bound!

The Y-step.

Y←𝒫𝒴(VˆRVˆT−(L+Z)/β)

Step downhill on the cost, then project onto 𝒴: clip every entry to [0,1], set the gangster entries to 0, and set Y00 to 1. This is the clip from the ADMM post’s example again, on a much bigger box.

The Z-step.

Z←Z+γβ(Y−VˆRVˆT)

Z accumulates the mismatch between Y and VˆRVˆT. With γ=1 this is the y-step of the ADMM post. The dual step γ is a metaparameter: the method converges for any γ between 0 and 1+52. Oliveira et al. set β=n/3 and γ=1.618 heuristically.

The iterates converge to an optimal pair (R,Y) with Y=VˆRVˆT, and Z converges to an optimal dual multiplier.

Bounds from the multiplier

ADMM is stopped at a tolerance. This means that neither L∙Y nor L∙VˆRVˆT at a stopped iterate is a lower bound. We need a lower bound to use this procedure in a branch and bound context as I wrote about here. The good news is that the multiplier gives one through Lagrangian duality. Let’s relax the coupling constraint (c), with multiplier Z. Now the Lagrangian separates into:

minY∈𝒴⁡(L+Z)∙Y+minR⪰0⁡−(VˆTZVˆ)∙R.

For any Z this is at most DNN(A,B,C), which is at most QAP(A,B,C). The second minimum is 0 when VˆTZVˆ⪯0 and −∞ otherwise.

Oliveira et al. therefore define d(Z)=minY∈𝒴⁡(L+Z)∙Y on the set of Z with VˆTZVˆ⪯0. They project the multiplier ADMM returns onto that set and evaluate d there. The minimum is easy to compute: it is M00 plus the sum of the negative entries of M=L+Z outside the gangster set.

Graham et al. later refined both halves of this. They use a variant of ADMM that updates Z twice per iteration, and they observe that R has trace n+1 for every assignment, which gives a bound for any Z with no projection needed.

That gives us a lower bound we can use in a branch and bound solver for QAP.

Example

Here is the method on nug12, starting from Y00=1 with every other entry of Y and Z zero, with β=n/3 and γ=1.618. The optimum is 578, and QPB is 482.

ADMM on nug12: the primal value and the lower bound
  • primal value (not a bound)
  • lower bound
  • reference values
Values at selected iterations
IterationPrimal valueLower bound
00.000.00
5108.08−2,776.90
10472.63−1,059.91
24583.40102.47
50567.64442.33
65568.69485.93
100568.54517.50
200568.15556.61
300568.02565.55
400568.00567.32
600567.99567.88
1,000567.99567.99
3,000567.99567.99

As we mentioned, we can’t use the primal value L∙Y as a bound, and the diagram shows why. The blue line climbs quickly and moves above the optimum, peaking at 583.4. The lower bound (in orange) is slower but is valid as a lower bound. It passes QPB at iteration 65, reaches 560 at iteration 225 and 567 at iteration 370. Both settle at 567.99. The data are integers, so we can round up to 568, the DNN bound for nug12 in the table in my DNN post.

Each iteration requires an EVD of a matrix of size 122. For nug30 the order is 842, and the bound needs thousands of iterations. That’s the price of a bound this good, but one worth paying, as we will see in a future post.