Skip to content

Quadratic Assignment Problem

Optimize a one-to-one placement when the cost of one item-position choice depends on other simultaneous placements.

Version
v1 · 2026-10-03 · History
Domain-specific #
13538
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomain
Combinatorial Optimization → Mathematics
Aliases
QAP

Core Idea

A quadratic assignment problem (QAP) assigns \(n\) items one-to-one to \(n\) positions while optimizing costs that depend on pairs of placements. Moving one item can change the cost associated with other items' placements. With binary \(x_{ij}\) for item \(i\) at position \(j\), one formulation sums \(C_{ikjl}x_{ij}x_{kl}\) over two item-position choices, subject to each item and position appearing exactly once. Lawler's general four-index coefficients include the Koopmans–Beckmann special form \(C_{ikjl}=F_{ik}D_{jl}\), which separates item interaction from position-pair cost.[1][2][3]

How would you explain it like I'm…

The Party Seating Puzzle

You have to put friends in seats, one friend per seat. Friends who chat a lot should sit close, so where one friend sits changes how good the other friends' seats are. The Quadratic Assignment Problem is the puzzle of finding the best whole seating plan when every choice depends on the others.

Paired-Cost Placement

Imagine placing factories in cities, one factory per city. Some pairs of factories ship lots of goods to each other, and some pairs of cities are far apart. The cost depends on pairs: if two busy factories end up in far-apart cities, that costs a lot. The Quadratic Assignment Problem asks for the one-to-one placement with the smallest total cost. You cannot just give each factory its own best city, because a choice that looks good alone can be bad once you see where the others went.

Pair-Coupled Assignment Problem

The Quadratic Assignment Problem (QAP) asks how to assign n items one-to-one to n positions when costs depend on pairs of placements. In the ordinary (linear) assignment problem, each item-position pair has its own cost, so you can score choices independently. In QAP, a cost attaches to joint choices like "item i goes to j and item k goes to l," so the whole assignment must be evaluated together. A common special form multiplies a flow between two items by a distance between their two positions, as in placing plants that ship goods to each other, or placing components on a board connected by wires. The defining idea is a permutation whose score depends on pairs, not any particular solving method or application.

 

The Quadratic Assignment Problem (QAP) seeks a one-to-one assignment of n items to n positions minimizing an objective in which costs depend on pairs of simultaneous placements. Using binary variables x_ij = 1 when item i occupies position j, with every row and column summing to one (a permutation matrix), the general Lawler-style objective includes sum over i,k,j,l of C_ikjl x_ij x_kl, a four-index cost on joint placements. The Koopmans-Beckmann special case factors C_ikjl = F_ik D_jl, with F the flow or interaction between items and D a cost tied to the pair of positions; an optional linear term sum A_ij x_ij can be added without removing the quadratic coupling. The original Koopmans-Beckmann location model combined individual plant-location profit with interplant transport costs, and Lawler identified it as a special case of his more general formulation. Because changing one assignment alters the contributions of several others, ranking item-position pairs locally does not in general find the optimum. QAP is defined by this coupled structure, not by an algorithm, hardness result, distance metric, or application.

Scope of Application

Koopmans and Beckmann modeled plants assigned to sites: commodity flow between plants incurs a cost depending on their chosen locations, sometimes alongside independent plant-site profit. Steinberg's backboard problem places connected electronic components in board slots; a later original study maps wire counts and slot distances into a factorized QAP. In that analyzed benchmark, two dummy items make 34 components and 36 slots into an equal-size permutation problem. Neither application makes physical Euclidean distance a requirement of general QAP.[1][4][3]

Clarity

The decisive question is whether the cost of placing \(i\) at \(j\) changes when another item \(k\) moves. If all scores are independent item-position terms, the problem is linear assignment or a degenerate special case, not the distinctive pair-coupled QAP. A general Lawler coefficient need not factor into flow times distance; the Koopmans–Beckmann product is a useful subtype. A solver, a historical wiring instance and a claimed optimum are different from the problem class.[1][2]

Manages Complexity

Permutation variables and pair coefficients compress a large set of complete layouts into a testable optimization model. Factorized \(F\) and \(D\) expose who interacts and where interaction is expensive; general \(C\) preserves costs that cannot be separated. The model's economy comes with limits: capacities, multiway routing effects or different objectives require extensions, and a computed layout is not automatically certified optimal.[2][3]

Abstract Reasoning

Declare equal item and position sets (or justified dummy padding), the feasible bijections, and either the general joint coefficients \(C_{ikjl}\) or a verified product \(F_{ik}D_{jl}\). Evaluate the full placement objective, including any declared linear terms. A swap can change many pair contributions, which explains why independent local rankings can mislead. Methods such as bounds and exact search analyze an instance but are not constitutive of QAP itself.[1][2][3]

Knowledge Transfer

The plant and backboard cases share items, positions, bijection, pair interaction and an objective. Commodity flows do not become wires, and the cost metric or best permutation does not transfer between them. A broader “interdependent choices” pattern is a possible future-prime question; it is not established merely by dropping QAP's mathematical types.[1][3]

Relationships to Other Abstractions

Local relationship map for Quadratic Assignment ProblemParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.QuadraticAssignment ProblemDOMAINDomain-specific abstraction: Optimization Problem — is a kind ofOptimizationProblemDOMAIN

Current abstraction Quadratic Assignment Problem Domain-specific

Parents (1) — outgoing typed relations

  • Quadratic Assignment Problem is a kind of Optimization Problem Domain-specific

    QAP is an optimization problem over bijections with a pairwise placement objective.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Quadratic Assignment Problem sits in a moderately populated region (51st percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Storage & Lookup Data Structures (22 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] Tjalling C. Koopmans and Martin J. Beckmann, “Assignment Problems and the Location of Economic Activities,” Cowles Foundation Discussion Paper 4 (1955), Yale original scan, §§2 and 6; revised Econometrica 25(1):53–76 (1957). registry ↩a ↩b ↩c ↩d ↩e

[2] Eugene L. Lawler, “The Quadratic Assignment Problem,” Management Science 9(4):586–599 (1963), original publisher abstract. registry ↩a ↩b ↩c ↩d

[3] Nathan W. Brixius and Kurt M. Anstreicher, “The Steinberg Wiring Problem,” original later research chapter, §§17.1–17.2 pp.293–295. registry ↩a ↩b ↩c ↩d ↩e

[4] Leon Steinberg, “The Backboard Wiring Problem: A Placement Algorithm,” SIAM Review 3(1):37–50 (1961), original publisher record. registry ↩