qap: Heuristics for the Quadratic Assignment Problem (QAP)

Implements a simulated annealing heuristic for the Quadratic Assignment Problem (QAP). Originally formulated as a facility location problem in operations research, the QAP also has applications in data analysis. The problem is NP-hard.

Getting started

Package details

AuthorMichael Hahsler [aut, cre, cph] (ORCID: <https://orcid.org/0000-0003-2716-1405>), Franz Rendl [ctb, cph]
MaintainerMichael Hahsler <mhahsler@lyle.smu.edu>
LicenseGPL-3
Version0.1-3
URL https://github.com/mhahsler/qap  https://michael.hahsler.net/qap/ 
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("qap")

Try the qap package in your browser

Any scripts or data that you put into this service are public.

qap documentation built on Oct. 1, 2026, 5:10 p.m.