CPSolver.Examples.QAP (Fixpoint v0.10.2)

Summary

Functions

check_solution(solution, distances, weights)

model(data)

model(distances, weights)

parse_instance(filename)

run(instance, opts \\ [])

The Quadratic Assignment problem. Given:

  • a set of n facilities;
  • a set of n locations;
  • for each pair of locations, a distance between them;
  • for each pair of facilities, a weight of the edge (e.g., the amount of supplies transported) between them.

Assign all facilities to different locations, such that the sum of products d(i,j ) * w(i, j)

, where d(i,j) is a distance between locations i and j

and w(i, j) is a weight of edge (i, j)

is minimized.

Wikipedia

search(model)

solution_handler(model)