QAP branch and bound

The quadratic assignment problem (QAP) involves matching facilities to locations to minimize the cost of moving materials between them. While finding good heuristic solutions to QAP is pretty easy, finding provably optimal solutions is a challenging problem in operations research. Try it out! Here is an example:

nug08 · 8 facilities, 8 locations
Cost so far
0
Place the facilities. The best possible cost is 214.
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.

Here you will find quite a bit about QAP:

Why am I so interested in QAP?

Well, I started trying to solve QAPs nearly three decades ago. Recently I have been working with my former colleagues, and Claude, to make new progress on this delightful problem.

Back in 2000 when I was a grad student, my colleagues and I solved a famous, previously open problem called nug30 for the first time. We used a branch-and-bound method with innovative algorithmic approaches, as well as something that was new at the time: grid aka distributed computing. It took us a week of wall-clock time across a thousand machines to do it.

In October 2026, Claude and I “ran it back”: nug30 was proven optimal again. Using new improvements on the DNN bound, we reduced the wall-clock time to just under 2 hours. With persistence and various tricks of the trade, Claude and I got the runtime down to under 2 minutes on my laptop. All told, about 200,000 times less CPU time.