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.

110210410610810100369121518212427LEVEL (FACILITIES ASSIGNED)2000: 1.19 × 1010 nodes2026: 1,302 nodes
Nodes per level, log scale. Gray: the 2000 run, 11,892,208,412 nodes (from Table 5.12 of Nathan Brixius's thesis). Terracotta: the November 16 record run on a laptop, 1,302 nodes.

Here's how we did it.

nug30 · 30 facilities, 30 locations
Cost
6124
Optimal. No assignment costs less.
Unassigned
Drag a facility onto a location, or tap a facility and then a location. Dropping onto a taken location swaps the two. Lines join facilities that exchange flow, heavier for more; the cost adds flow times distance over every pair, so heavy lines should be short. Buttons: random, greedy, optimal and clear.

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.

nug30 · 28 levels · QPB
Nodes
11,892,208,412
CPU time
10.9 y
QPB nodes, fathom rate, children eliminated and CPU time by level of the branch-and-bound tree for nug30
LevelQPB nodes% fathom% c.elimTime
010%0%25.08 s
190%0%608.7 s
22250%0%4.89 h
36,1200%4%4.61 d
4157,9471.7%18.2%34 d
53.3M15.8%38.9%229 d
642.5M39.5%53.6%684 d
7286M61.4%62.5%2.62 y
8956M74.3%64.2%362 d
91.94B82.1%63.4%480 d
102.66B85.4%66.4%522 d
112.61B87.4%68.3%381 d
121.98B90.9%71.1%225 d
13939M92.1%73.3%88 d
14339M92.7%75.1%26.5 d
1599M93%76.9%6.64 d
1624.2M93.2%78.3%32.8 h
175M93.4%79.4%5.71 h
18885,55493.6%80.3%50.7 min
19135,20193.7%80.8%389.9 s
2018,05893.1%81.4%43.97 s
212,31790.9%81.8%5.07 s
2234486.1%80%0.83 s
237783.1%79.1%0.23 s
241973.7%73.3%0.04 s
25875%80%0.02 s
2620%75%0.00 s
2720%–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

520054005600580060006200QPB 533212.9% belowDNN 59492.9% belowoptimum 6124
Lower bounds for the whole of nug30, before any branching. The distance to the optimum is the gap the search has to close.

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.

  1. 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.
  2. 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).
  3. 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.

987789876678765567876678987789Branch hereeccentricity 9average distance 4.7Not hereeccentricity 5average distance 2.8
Each square shows the distance, in city blocks, from that location to the farthest other location. The rule branches on the darkest square. On average a corner is 4.7 blocks from the other 29 locations; a central square is 2.8.

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,

zizj+zizk−zjzk≤zi

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.

depth 0
QPBThe root, the one node the DNN bound skips. QPB bounds it at 5342, and the grid's symmetries leave 9 children.
depth 1
DNN, then cuts until they stallThe DNN bound gives up on all nine nodes after 200 iterations, and each then runs rounds of cuts. None is fathomed, but each hands its cuts to its 25 children. The nine take 171 of the run's 722 CPU seconds.
depth 2–5
DNN at every other nodeThe DNN bound fathoms 1,226 of the 1,292 nodes here, most in a few dozen iterations. 66 near misses get a short round of cuts, which fathoms 26 of them. The DNN solution also picks where to branch.
depth 6+
Nothing left for QPBNo node survives depth 5. Down here, where QPB bounded billions of nodes in 2000, it has none left to bound.

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:

DateChange, on top of the row aboveNodesCPU sWall
Oct 29DNN bound to depth 7, children start from the parent585,5508,35519:42
Oct 30A faster ADMM step (Peaceman–Rachford)4,5555,33413:21
Oct 31Branch on the DNN marginals; give up sooner3,9464,1339:56
Nov 1DNN bound from depth 1; Goux's penalty settings3,8212,8956:59
Nov 3–7Children inherit the parent's whole state; single precision3,9341,3703:16
Nov 8The hedged branching rule3,7051,2703:00
Nov 16Cuts from the grid1,3027221: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.

nug30 · 2000 and 2026 · 28 levels
11,892,208,412 nodes10.9 y CPU
1,302 nodes721.7 s CPU

2026 needs 9.13 million times fewer nodes and 479,000 times less CPU time than 2000.

Nodes, fathom rate, children eliminated and CPU time by level of the branch-and-bound tree for nug30, 2000 and 2026 side by side
LevelNodes% fathom% c.elimTime
02000: 12026: 12000: 0%2026: 0%2000: 0%2026: 0%2000: 25.08 s2026: 0.13 s
12000: 92026: 92000: 0%2026: 0%2000: 0%2026: 0%2000: 608.7 s2026: 170.8 s
22000: 2252026: 2252000: 0%2026: 88.4%2000: 0%2026: 0%2000: 4.89 h2026: 204.2 s
32000: 6,1202026: 6922000: 0%2026: 98.4%2000: 4%2026: 0%2000: 4.61 d2026: 247.6 s
42000: 157,9472026: 2972000: 1.7%2026: 99%2000: 18.2%2026: 0%2000: 34 d2026: 79.33 s
52000: 3.3M2026: 782000: 15.8%2026: 100%2000: 38.9%2026: –2000: 229 d2026: 19.74 s
62000: 42.5M2000: 39.5%2000: 53.6%2000: 684 d
72000: 286M2000: 61.4%2000: 62.5%2000: 2.62 y
82000: 956M2000: 74.3%2000: 64.2%2000: 362 d
92000: 1.94B2000: 82.1%2000: 63.4%2000: 480 d
102000: 2.66B2000: 85.4%2000: 66.4%2000: 522 d
112000: 2.61B2000: 87.4%2000: 68.3%2000: 381 d
122000: 1.98B2000: 90.9%2000: 71.1%2000: 225 d
132000: 939M2000: 92.1%2000: 73.3%2000: 88 d
142000: 339M2000: 92.7%2000: 75.1%2000: 26.5 d
152000: 99M2000: 93%2000: 76.9%2000: 6.64 d
162000: 24.2M2000: 93.2%2000: 78.3%2000: 32.8 h
172000: 5M2000: 93.4%2000: 79.4%2000: 5.71 h
182000: 885,5542000: 93.6%2000: 80.3%2000: 50.7 min
192000: 135,2012000: 93.7%2000: 80.8%2000: 389.9 s
202000: 18,0582000: 93.1%2000: 81.4%2000: 43.97 s
212000: 2,3172000: 90.9%2000: 81.8%2000: 5.07 s
222000: 3442000: 86.1%2000: 80%2000: 0.83 s
232000: 772000: 83.1%2000: 79.1%2000: 0.23 s
242000: 192000: 73.7%2000: 73.3%2000: 0.04 s
252000: 82000: 75%2000: 80%2000: 0.02 s
262000: 22000: 0%2000: 75%2000: 0.00 s
272000: 22000: 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:

Widths on a log scale, so the three factors add up to the whole. The processor factor comes from comparing per-node times deep in the tree, where little else changed; the QPB factor from nug25 with QPB alone in 2000 and now. The DNN factor was about 150 on October 29; the refinements through November 4 multiplied it by seven, and the cuts and the changes since by two more. On the same settings the laptop needs 2.3 times less CPU than the Xeon, about 480,000 times less than in 2000.

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.