nug30, again
Work in progress. Last updated November 17, 2026.
Long ago, in a time before AI, my advisor Kurt Anstreicher, Jeff Linderoth, Jean-Pierre Goux, Steve Wright, and I solved the famous nug30 quadratic assignment problem (QAP). Now we're running it back.
In 2000, it took everything we had: a lovingly hand-coded solver coded in C running on 653 workstations for a total of 346 million CPU seconds, processing nearly 12 billion branch-and-bound nodes. In 2026, it takes one laptop 722 CPU seconds, under two minutes on the clock, to process 1,302 nodes, powered by a new implementation supercharged by Claude.
Here's how we did it.
Where nug30 comes from
The quadratic assignment problem (QAP) is a classic problem in combinatorial optimization. We want to assign facilities to locations to minimize total traffic: for every pair of facilities, the flow between them times the distance between where they sit.
One of the crown jewels of the QAP world is the nug30 instance.
Nug stands for Christopher Nugent, who with Thomas Vollmann and John Ruml introduced these QAPs in a paper from 1968. The size 12 instance, nug12, is special. It was actually introduced by Frederick S. Hillier in 1963 in the context of “departments” and “site locations”. The other nug instances are extensions of the size 12 instance. Hillier was an eminent figure in operations research, and passed away only recently.
Finding a good assignment is easy; heuristics found the layout above decades ago. Proving that nothing better exists is what took until 2000, because the cost of placing one facility depends on where all the others go.
Branch and bound does the proving. If you assign one facility to a location, you end up with a smaller QAP, so the search splits nug30 into a tree of partial assignments. At each one it computes a lower bound, for example by solving a simplified (relaxed) version of it. If the lower bound exceeds the value of the best known solution, then there is no way the partial solution can lead to something better. So we prune (aka “fathom”) it. Bounds make the search tractable, but only if they are tight. Check out our tutorial for more details.
The first proof, in 2000
In 2000, Kurt, Jeff, JP and I solved nug30 for the first time, leveraging all the tricks in the tutorial:
- QPB, a bound that balanced quality and speed;
- Clever tricks to make smart branching decisions;
- Clever tricks to speed up bound computation;
- Leveraging symmetry in the problem (which I discussed in my “QAP for bartenders” post)
And one more: distributed computing, which was in its infancy at that time. The branch-and-bound tree, even with all of the tricks above, had over 10 billion nodes. We used an average of 653 workstations and nearly 11 CPU-years of time to solve nug30 in 7 days of wall clock time.
| Level | QPB nodes | % fathom | % c.elim | Time |
|---|---|---|---|---|
| 0 | 1 | 0% | 0% | 25.08 s |
| 1 | 9 | 0% | 0% | 608.7 s |
| 2 | 225 | 0% | 0% | 4.89 h |
| 3 | 6,120 | 0% | 4% | 4.61 d |
| 4 | 157,947 | 1.7% | 18.2% | 34 d |
| 5 | 3.3M | 15.8% | 38.9% | 229 d |
| 6 | 42.5M | 39.5% | 53.6% | 684 d |
| 7 | 286M | 61.4% | 62.5% | 2.62 y |
| 8 | 956M | 74.3% | 64.2% | 362 d |
| 9 | 1.94B | 82.1% | 63.4% | 480 d |
| 10 | 2.66B | 85.4% | 66.4% | 522 d |
| 11 | 2.61B | 87.4% | 68.3% | 381 d |
| 12 | 1.98B | 90.9% | 71.1% | 225 d |
| 13 | 939M | 92.1% | 73.3% | 88 d |
| 14 | 339M | 92.7% | 75.1% | 26.5 d |
| 15 | 99M | 93% | 76.9% | 6.64 d |
| 16 | 24.2M | 93.2% | 78.3% | 32.8 h |
| 17 | 5M | 93.4% | 79.4% | 5.71 h |
| 18 | 885,554 | 93.6% | 80.3% | 50.7 min |
| 19 | 135,201 | 93.7% | 80.8% | 389.9 s |
| 20 | 18,058 | 93.1% | 81.4% | 43.97 s |
| 21 | 2,317 | 90.9% | 81.8% | 5.07 s |
| 22 | 344 | 86.1% | 80% | 0.83 s |
| 23 | 77 | 83.1% | 79.1% | 0.23 s |
| 24 | 19 | 73.7% | 73.3% | 0.04 s |
| 25 | 8 | 75% | 80% | 0.02 s |
| 26 | 2 | 0% | 75% | 0.00 s |
| 27 | 2 | 0% | – | 0.00 s |
Node and time bars use a log scale. % fathom is the share of a level’s nodes that the bound fathomed; % c.elim is the share of candidate children eliminated before they were created.
A cheap bound and a strong one
QPB, the quadratic programming bound of 2000, relaxes the problem to a convex quadratic program and estimates it with Frank–Wolfe steps, each one a linear assignment problem. It costs milliseconds and is about 13% below the optimum at the root. That balance suited a search of billions of nodes.
DNN, the doubly nonnegative semidefinite relaxation of Zhao, Karisch, Rendl and Wolkowicz, lifts each assignment to a matrix of size 901 × 901 and asks that it be positive semidefinite and nonnegative. It is within 3% at the root and far stronger lower in the tree, but each evaluation takes seconds. Across 40 QAPLIB problems it closes on average 89% of the gap QPB leaves, and on ten of them, including every hadxx problem, it equals the optimum.
A bound you can trust at any iteration
The DNN relaxation is solved approximately by ADMM, an iterative method whose running value is not a bound: stopped early, it can sit above the true optimum. A proof cannot use it. So every ten iterations the solver turns the current state into a number that is a lower bound no matter how far the method has converged.
- Take the multiplier. ADMM carries a dual multiplier Z. The solver uses the one implied by its last projection step, whose restriction to the relaxation's face is negative semidefinite by construction.
- Bound the leftover. For every assignment, cost ≥ min ⟨L + Z, Y⟩ − (m+1)·λmax. The tiny positive λmax left by rounding is bounded rigorously with a Cholesky factorization (Rump's criterion).
- Minimize over assignments. The minimum of ⟨L + Z, Y⟩ over all assignments is bounded below by a two-level Gilmore–Lawler computation: one small assignment problem per facility–location pair, then one more. A safety margin for floating-point error is subtracted.
The node is fathomed the moment this certified value passes the best known cost (minus 1.95, since every nug30 cost is an even number), often after a hundred or so iterations.
Start in the corner
At every node the search must pick what to branch on. The branching used here picks a free location and makes one child for every facility that could still go there. Which location? The new rule takes the most eccentric one: the free location farthest from the other free locations. On nug30's grid that is a corner.
Branch on a corner. Every facility placed there is far from its partners. Facilities with heavy flows become expensive at once, so most of the children have high bounds and are fathomed quickly. Only a few light facilities survive.
Branch in the middle. Every facility costs about the same there, so the children look alike. Few are fathomed, and the search has to explore them all.
The rule costs nothing: it only reads the distance matrix. The lookahead rule it replaces bounds every child of every candidate before choosing. Eccentricity is measured among the locations still free, so as the corners fill, the rule moves on to the next most isolated spots. Where every location is equally eccentric, as on esc16a's hypercube, it falls back to the old rule. A second new rule keeps lookahead where it pays but tries only the three most eccentric locations and two facilities, instead of ten candidates. With QPB alone the two rules cut nug25 from 53 million nodes and 18,400 CPU seconds to 40 million and 12,400.
Where the DNN bound has already run, there is a better guide, and it is free: the relaxation's own solution, which gives every facility a fractional weight at every location. The final rule branches on the facility or location whose weights are most concentrated, where the relaxation has nearly made up its mind; the children it rates poorly are then ruled out quickly. On nug30 it cut the depth-3 misses from 85 to 59 and the time by 16%, but on nug28 it took 37% longer. The record runs use a hedge: bound the children of both the most concentrated facility and the most concentrated location with QPB, and branch on the better of the two. It keeps most of the gain on nug30 and gives back most of the loss on nug28, which takes 8% longer instead of 37%.
Cuts from the grid
A relaxation can be tightened with cuts: constraints that every real assignment satisfies but the relaxation does not enforce on its own. nug30's cuts come from its grid. Take a block of locations, such as the grid's first two rows, and let zi be 1 if facility i sits in the block and 0 if not. Numbers that are 0 or 1 satisfy, for any three facilities,
and each product is a sum of entries of the DNN matrix, so the inequality is a linear constraint that the relaxation can violate. When the DNN bound gives up on a node, the solver adds such cuts in rounds, each with its own multiplier, and every value it uses is still a certified bound.
Rounds of cuts are expensive. On November 1 a round of cuts after every near miss made nug30 34% slower overall. What changed is where the work goes. The cuts a node finds pass to its children, which start their own solves with them. At the nine depth-1 nodes, each with 25 children, the cuts run until they stall. They fathom none of the nine, but with the inherited cuts 191 of the 225 children fathom in their first solve, against 163 without. Below depth 1 a cut phase stops after 100 iterations unless it is within 5 of the cutoff, and hands its cuts on. With an ADMM penalty of its own and an earlier give-up for warm-started nodes, the cut phase took nug30's tree from 3,716 nodes to 1,302, and its time on the laptop from 1,261 CPU seconds to 722. With regions drawn around clustered locations instead of a grid, the same cuts proved tai50b optimal in November.
The strong bound does almost all the work
The November 16 record run has 1,302 nodes. QPB bounds one of them, and the DNN bound gets the other 1,301; 75 of those also get cuts.
Near the top of the tree nodes are few and each carries an enormous subtree, so a bound that costs seconds pays for itself thousands of times over, and long rounds of cuts at depth 1 pay because 225 children inherit them. Deep in the tree neither would pay, but there is no deep tree left. QPB still runs first at every node, and in the record run it fathoms none. Its Frank–Wolfe steps, the branching and the bookkeeping share 8 of the 722 CPU seconds, about 1%; the DNN bound takes 471 and the cuts 243. At each branching QPB also screens the children; in the record run it screened out none.
A node's QPB value does predict whether the DNN bound will succeed. On nug30's second level, every sampled node with QPB above about 5554 was fathomed by it, and across all 225 nodes there QPB separates fathoms from misses better than the classic Gilmore–Lawler bound or the eigenvalue bound QPB descends from. The record run does not use the prediction. It gives the DNN bound to every node below the root.
From three hours to under two minutes
Every 2026 run is given the known optimum, 6124, as its starting incumbent, so it measures the work of the proof alone. The first one, finished on October 29, used the DNN bound at depths 2–6 on a four-core cloud machine: 45 million nodes and about three hours. Since then nug30 has been the test bed for making the method faster, on an Apple M2 Pro laptop with eight solver processes. These are the steps that mattered:
| Date | Change, on top of the row above | Nodes | CPU s | Wall | |
|---|---|---|---|---|---|
| Oct 29 | DNN bound to depth 7, children start from the parent | 585,550 | 8,355 | 19:42 | |
| Oct 30 | A faster ADMM step (Peaceman–Rachford) | 4,555 | 5,334 | 13:21 | |
| Oct 31 | Branch on the DNN marginals; give up sooner | 3,946 | 4,133 | 9:56 | |
| Nov 1 | DNN bound from depth 1; Goux's penalty settings | 3,821 | 2,895 | 6:59 | |
| Nov 3–7 | Children inherit the parent's whole state; single precision | 3,934 | 1,370 | 3:16 | |
| Nov 8 | The hedged branching rule | 3,705 | 1,270 | 3:00 | |
| Nov 16 | Cuts from the grid | 1,302 | 722 | 1:43 |
Each row is one run, with the main changes of its days; repeated runs of a setting vary by about 2%. The October 29 tree is large because two depth-7 nodes went unfathomed on the laptop and the QPB search below them took 580,000 nodes; on the cloud machine the same settings gave 5,817. From October 31 to November 8 the tree hardly changed, and the gains came from how fast each DNN node converges and where it starts. The cuts are the first change since then to shrink the tree, by almost a factor of three. On the four-core cloud machine the record settings take 1,667 CPU seconds and 7 minutes, against 3,030 seconds for those of November 8. Every bound is still certified, and every run proves the same optimum.
The same tree, level by level
In 2000 no node was fathomed above level 4. The tree grew more than twenty-fold per level through level 6, peaked at 2.7 billion nodes at level 10, and levels 2–7 took almost half the CPU time on under 3% of the nodes. In the November 16 record run the same 225 nodes appear at level 2, but the DNN bound and the cuts fathom 199 of them, then 98% of level 3 and 99% of level 4. Nothing survives level 5.
2026 needs 9.13 million times fewer nodes and 479,000 times less CPU time than 2000.
| Level | Nodes | % fathom | % c.elim | Time |
|---|---|---|---|---|
| 0 | 2000: 12026: 1 | 2000: 0%2026: 0% | 2000: 0%2026: 0% | 2000: 25.08 s2026: 0.13 s |
| 1 | 2000: 92026: 9 | 2000: 0%2026: 0% | 2000: 0%2026: 0% | 2000: 608.7 s2026: 170.8 s |
| 2 | 2000: 2252026: 225 | 2000: 0%2026: 88.4% | 2000: 0%2026: 0% | 2000: 4.89 h2026: 204.2 s |
| 3 | 2000: 6,1202026: 692 | 2000: 0%2026: 98.4% | 2000: 4%2026: 0% | 2000: 4.61 d2026: 247.6 s |
| 4 | 2000: 157,9472026: 297 | 2000: 1.7%2026: 99% | 2000: 18.2%2026: 0% | 2000: 34 d2026: 79.33 s |
| 5 | 2000: 3.3M2026: 78 | 2000: 15.8%2026: 100% | 2000: 38.9%2026: – | 2000: 229 d2026: 19.74 s |
| 6 | 2000: 42.5M | 2000: 39.5% | 2000: 53.6% | 2000: 684 d |
| 7 | 2000: 286M | 2000: 61.4% | 2000: 62.5% | 2000: 2.62 y |
| 8 | 2000: 956M | 2000: 74.3% | 2000: 64.2% | 2000: 362 d |
| 9 | 2000: 1.94B | 2000: 82.1% | 2000: 63.4% | 2000: 480 d |
| 10 | 2000: 2.66B | 2000: 85.4% | 2000: 66.4% | 2000: 522 d |
| 11 | 2000: 2.61B | 2000: 87.4% | 2000: 68.3% | 2000: 381 d |
| 12 | 2000: 1.98B | 2000: 90.9% | 2000: 71.1% | 2000: 225 d |
| 13 | 2000: 939M | 2000: 92.1% | 2000: 73.3% | 2000: 88 d |
| 14 | 2000: 339M | 2000: 92.7% | 2000: 75.1% | 2000: 26.5 d |
| 15 | 2000: 99M | 2000: 93% | 2000: 76.9% | 2000: 6.64 d |
| 16 | 2000: 24.2M | 2000: 93.2% | 2000: 78.3% | 2000: 32.8 h |
| 17 | 2000: 5M | 2000: 93.4% | 2000: 79.4% | 2000: 5.71 h |
| 18 | 2000: 885,554 | 2000: 93.6% | 2000: 80.3% | 2000: 50.7 min |
| 19 | 2000: 135,201 | 2000: 93.7% | 2000: 80.8% | 2000: 389.9 s |
| 20 | 2000: 18,058 | 2000: 93.1% | 2000: 81.4% | 2000: 43.97 s |
| 21 | 2000: 2,317 | 2000: 90.9% | 2000: 81.8% | 2000: 5.07 s |
| 22 | 2000: 344 | 2000: 86.1% | 2000: 80% | 2000: 0.83 s |
| 23 | 2000: 77 | 2000: 83.1% | 2000: 79.1% | 2000: 0.23 s |
| 24 | 2000: 19 | 2000: 73.7% | 2000: 73.3% | 2000: 0.04 s |
| 25 | 2000: 8 | 2000: 75% | 2000: 80% | 2000: 0.02 s |
| 26 | 2000: 2 | 2000: 0% | 2000: 75% | 2000: 0.00 s |
| 27 | 2000: 2 | 2000: 0% | 2000: – | 2000: 0.00 s |
In each cell the upper bar is 2000, the lower 2026. Node and time bars use log scales shared by both. % fathom is the share of a level’s nodes that the bound fathomed; % c.elim is the share of candidate children eliminated before they were created.
Each run's CPU time is as it was recorded: in 2000, on the grid's machines, which averaged a little over half the speed of an HP C3000 workstation; in 2026, on the eight solver processes of an Apple M2 Pro laptop.
About 200,000 times less work
The 2000 solve took 346 million CPU seconds, nearly 11 years, on machines that averaged a little over half the speed of the reference workstation of the day, an HP9000 C3000 (6.9 years of its time). Today's takes 28 CPU-minutes on a four-core cloud Xeon, and 12 on a laptop. A rough breakdown for the Xeon, multiplied together:
- Faster processors ≈ 32×
- Better QPB search ≈ 3×
- DNN bound and cuts at the top, tuned ≈ 2,200×
On wall-clock time, the grid's 650 machines gave 2000 a parallelism we no longer need: a week then, 1 minute 43 seconds on a laptop now.
How the bound was verified
- 1,512 certified bounds on small random problems compared with the optimum found by enumeration: none exceeds it.
- The solver's brute-force test, 4,536 runs on random instances, passes with the DNN bound applied at every depth.
- The C++ bound reproduces the prototype's certified values to eight digits, and nodes with exactly solved subproblems are fathomed the same way.
- Independent reviews of the mathematics and the code by separate AI agents found nothing that could make a certified bound invalid on QAPLIB-type data; their minor hardening fixes are in, and every check above passes with them.
- A third agent attacked the bound with extreme data: about 15,000 bounds and 8,600 solver runs. It broke the bound only with data that is both non-symmetric and huge (products above 253) or non-integer, through rounding the margin did not cover. Those holes are now closed. Nothing in QAPLIB comes close: every nug30 product and sum is computed exactly.
- An outside review by Astra, an OpenAI Codex agent, found two more inputs where huge products cancelled after rounding and produced a false fathom. The subproblem data are now rounded to guaranteed lower bounds, and both inputs are regression tests.
- The cuts enter the objective with nonnegative multipliers, so a certified value of the problem with cuts is a certified bound for nug30 itself. Each cut setting was also run from 6126, the optimum plus two: each found 6124 on its own, and no certified value on the path to it passes 6124.
Sources
Source, run logs and the technical report: the cognac branch of github.com/natebrix/qap (docs/dnn_bound/dnn_bound.pdf, experiments/nug30_solve, and for the cuts experiments/bound_lab/nug30_phase). The recorded runs, including the 2000 solve, the October 29 solve and the November 16 record, are on the QAP runs page.
References: K. Anstreicher and N. Brixius, Math. Programming 89 (2001); K. Anstreicher, N. Brixius, J.-P. Goux and J. Linderoth, Math. Programming 91 (2002); Q. Zhao, S. Karisch, F. Rendl and H. Wolkowicz, J. Comb. Optim. 2 (1998); D. Oliveira, H. Wolkowicz and Y. Xu, Math. Prog. Comp. 10 (2018); N. Graham, H. Hu, J. Im, X. Li and H. Wolkowicz, INFORMS J. Comput. 34 (2022); K. Fujii et al., arXiv:2101.09629 (2021); N. Brixius, Ph.D. thesis, University of Iowa (2000).
By Nathan W. Brixius, Jean-Pierre Goux, Claude, and friends. Claude is an AI system made by Anthropic.