hacktoberfest2023 icon indicating copy to clipboard operation
hacktoberfest2023 copied to clipboard

Create Quadratic-Assignment-Problem.cpp

Open R1shA3h opened this issue 2 years ago • 1 comments
trafficstars

The Quadratic Assignment Problem (QAP) is an optimization problem that deals with assigning a set of facilities to a set of locations, considering the pairwise distances and flows between them.

The problem is to find the assignment that minimizes the total cost or distance, taking into account both the distances and the flows.

The distance matrix and flow matrix, as well as restrictions to ensure each facility is assigned to exactly one location and each location is assigned to exactly one facility, can be used to formulate the QAP as a quadratic objective function.

The QAP is a well-known example of an NP-hard problem, which means that for larger cases, computing the best solution might be difficult. As a result, many algorithms and heuristics have been created to quickly identify approximations of answers.

R1shA3h avatar Oct 21 '23 17:10 R1shA3h

@R1shA3h Your PR will be merged after evaluation. Till then make sure you give a star ⭐to the repository.

kaal-coder avatar Oct 22 '23 07:10 kaal-coder