Quadratic Assignment Problem (QAP)
- Quadratic Assignment Problem (QAP) is a permutation-based combinatorial optimization model where facilities are assigned to locations with bilinear cost functions defined by two weight matrices.
- The problem is NP-hard with a factorial-sized search space, making exact solutions impractical for large instances and encouraging research into efficient heuristics and relaxation techniques.
- Current methodologies span mathematical programming, convex relaxations, metaheuristics, and advanced machine learning approaches to obtain strong lower bounds and approximate optimal solutions.
The Quadratic Assignment Problem (QAP) is a central model in combinatorial optimization, representing a class of discrete, permutation-based assignment problems where cost depends bilinearly on an assignment through two weight matrices. QAPs model applications ranging from facility layout and electronic circuit design to protein structure and NMR assignment. First formally described by Koopmans and Beckmann (1957), QAP is among the most computationally challenging NP-hard problems: the search space is of factorial size, and no algorithm is known to solve general instances with to optimality in reasonable time. Research in QAP has produced an array of methodologies, from mathematical programming and convex relaxation to metaheuristic and quantum approaches, each contributing to state-of-the-art understanding, lower bounds, and practical algorithms.
1. Mathematical Models and Formulations
The standard QAP is defined on facilities and locations, with capturing flows or interactions between facilities, and giving costs or distances between locations. The permutation assigns each facility to location . The objective is to minimize the total assignment cost: This can be re-expressed with assignment matrices or via 0-1 variables representing facility assigned to location , yielding a quadratic integer program: subject to row and column sum constraints enforcing as a permutation matrix.
Special cases include the Traveling Salesman Problem (TSP), which can be represented within QAP via a specific choice of flow matrix , and facility location problems as linearizations. QAP is a prototype for permutation-based optimization—its solution space is the set of all permutations.
2. Computational Complexity and Hardness
QAP is classified as strongly NP-hard, with exact algorithms (e.g., branch-and-bound, branch-and-cut, and dynamic programming) becoming infeasible for due to factorial complexity of the search space (Azarbonyad et al., 2014). Statistical mechanical analysis reveals that for random instances, the optimal cost's asymptotic scaling is governed by the means and variances of and alone; deviations from the expected cost are of order rather than , implying that global structure is difficult to exploit algorithmically in the large limit (Paul et al., 2011).
A key theoretical development is the QAP-SAT framework, which demonstrates a phase transition in satisfiability and computational effort as problem clause density crosses a critical threshold. The order-parameter accurately predicts the hardest QAP instances, offering a mechanism for generating or identifying benchmark instances near the computational "phase transition" (Verel et al., 2024).
3. Convex Relaxations and Mathematical Programming Methods
Reformulation Linearization Techniques (RLT)
RLT methods systematically relax and linearize the quadratic structure, creating increasingly tight linear programs at the expense of memory and computation. RLT-2, involving triple-indexed variables, delivers tight lower bounds for when combined with memory-efficient, parallelized dual ascent and assignment schemes mapped onto GPU clusters (Gonçalves et al., 2015, Date et al., 2017). RLT-3, though tighter, requires extreme memory (up to 700GB for ) (Gonçalves et al., 2015).
Semidefinite and Doubly Nonnegative (DNN) Relaxations
Standard semidefinite relaxations (SDP) lift the problem to a rank-one constraint on a positive semidefinite matrix embedding permutation structure (Ling, 2024, Chen et al., 2024). These relaxations are tight for small or specially-structured input (e.g., signal-plus-small-noise, anti-symmetric cost structure), with exactness guaranteed under algebraic spectral conditions or systems of linear inequalities involving (Ling, 2024, Chen et al., 2024). Recent work provides verifiable, deterministic, and purely algebraic sufficient conditions for SDR exactness—whenever these hold, the global optimum is attained at a permutation matrix and the relaxation is tight (Ling, 2024, Chen et al., 2024).
For larger and sparse QAPs, blockwise and clique-based SDPs exploit problem structure to reformulate the global PSD constraint as a set of smaller PSD blocks, greatly improving scalability ( vs per iteration) with strong empirical lower bounds in real-world applications such as NMR spectral assignment (Ferreira et al., 2017).
Rank-Constrained DNN and Difference-of-Convex (DC) Programming
A recent methodological advance is the reformulation of QAP as a rank-one doubly nonnegative (DNN) problem, where the solution matrix is enforced to be both PSD and entrywise nonnegative (Jiang et al., 2019). By recasting the rank constraint as a difference-of-convex (DC) penalty (), a proximal DC algorithm (Prox-DCA) generates a sequence of convex subproblems, each solvable via semi-proximal augmented Lagrangian (sPALM) or semismooth Newton methods. Theoretical guarantees establish convergence to stationary points; for large enough penalty parameter, optimal rank-one solutions are returned, delivering global optima in a majority of QAPLIB instances up to (Jiang et al., 2019).
4. Metaheuristic, Heuristic, and Machine Learning Approaches
Due to intrinsic computational intractability, heuristics and metaheuristics (local and global search) are essential for QAPs of practical size ():
- Local Search: 2-opt exchanges and variants serve as foundational neighborhood moves. Improved versions with inversion, memory, or hybridization achieve strong solution quality and convergence (Novoa et al., 2023, Raziei et al., 2020). Tabu search, incorporating memory-based forbidden-move lists and aspiration criteria, balances quality and search breadth (Said et al., 2014).
- Simulated Annealing: Efficient implementations leverage matrix incremental updates to reduce the per-iteration cost from to or lower, enabling runs with large iteration counts (on the order of ) and practical solution of QAPs with , especially when mapped to GPU architectures (Paul, 2011, Paul, 2012).
- Genetic and Evolutionary Algorithms: Population-based, permutation-encoded GAs use specialized crossover (order, PMX) and swap/inversion mutations. Simple variants reach global or near-global optima for (Azarbonyad et al., 2014). Hybridizations, including PSO, grey wolf, and harmony search components, as well as hybrid GA-PSO frameworks, further enhance robustness and search diversity (Raziei et al., 2020).
- Estimation of Distribution Algorithms (EDAs): Permutation-based EDAs, particularly those using kernelized Mallows models under the Hamming distance, outperform traditional EDAs and other native permutation-EDAs on 30 QAPLIB instances, offering a transparent and efficient probabilistic alternative (Arza et al., 2019).
- Deep Reinforcement Learning: Recent architectures based on pointer networks (