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:
Here you will find quite a bit about QAP:
- Start with an introduction to the QAP and branch and bound.
- Try solving QAPs yourself using this interactive app, or the easier cousin LAP by matching the boxes.
- The story of how we solved nug30 for the first time in 2000, and again in 2026, is told in nug30, again.
- Here is a catalog of recent solve attempts for QAP problems.
- Back in 2008 I gave some code examples in Quadratic assignment problems: branch and bound and the posts that follow it.
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.