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:
In my ADMM post I introduced ADMM as an iterative algorithm for solving optimization problems of the form
with the following steps:
where is the augmented Lagrangian:
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) being positive semidefinite, b) , and , and c) . The notation between my two posts is different, but we can handle these with ADMM.
| DNN | ADMM | Condition |
|---|---|---|
The penalty parameter becomes . We will stick with the DNN notation. We now need to specify the equivalents of and in the ADMM post.
Write for the set of matrices that satisfy (a), and for the set of matrices that satisfy (b). Then
Both and are rules, but we’ve embedded the cost into our rule for . The constraint is group (c), written as .
We form , pricing the equality constraint with the multiplier and a quadratic penalty:
The three steps
Now we follow ADMM: minimize over , then the same over , update and repeat. Because , completing the square, as we did for the z-step in the ADMM post, turns both minimizations into projections.
The R-step.
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 . Because EVD is for a matrix of order , this step is . If you’re like “wow, that’s expensive”, then welcome to QAP! I would happily pay that for a good bound!
The Y-step.
Step downhill on the cost, then project onto : clip every entry to , set the gangster entries to 0, and set to 1. This is the clip from the ADMM post’s example again, on a much bigger box.
The Z-step.
accumulates the mismatch between and . With this is the y-step of the ADMM post. The dual step is a metaparameter: the method converges for any between 0 and . Oliveira et al. set and heuristically.
The iterates converge to an optimal pair with , and converges to an optimal dual multiplier.
Bounds from the multiplier
ADMM is stopped at a tolerance. This means that neither nor 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 . Now the Lagrangian separates into:
For any this is at most , which is at most . The second minimum is 0 when and otherwise.
Oliveira et al. therefore define on the set of with . They project the multiplier ADMM returns onto that set and evaluate there. The minimum is easy to compute: it is plus the sum of the negative entries of outside the gangster set.
Graham et al. later refined both halves of this. They use a variant of ADMM that updates twice per iteration, and they observe that has trace for every assignment, which gives a bound for any 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 with every other entry of and zero, with and . The optimum is 578, and QPB is 482.
- primal value (not a bound)
- lower bound
- reference values
Values at selected iterations
| Iteration | Primal value | Lower bound |
|---|---|---|
| 0 | 0.00 | 0.00 |
| 5 | 108.08 | −2,776.90 |
| 10 | 472.63 | −1,059.91 |
| 24 | 583.40 | 102.47 |
| 50 | 567.64 | 442.33 |
| 65 | 568.69 | 485.93 |
| 100 | 568.54 | 517.50 |
| 200 | 568.15 | 556.61 |
| 300 | 568.02 | 565.55 |
| 400 | 568.00 | 567.32 |
| 600 | 567.99 | 567.88 |
| 1,000 | 567.99 | 567.99 |
| 3,000 | 567.99 | 567.99 |
As we mentioned, we can’t use the primal value 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.