the objective function of QAP

Min Z = ∑ n i=1 ∑ n j=1 ∑ n k=1 ∑ n q=1 fik djq xij xkq

subject to,

  • ∑ n j=1 xij =1, i ∈ N
  • ∑ n i=1 xij =1, j ∈ N
  • xij ∈ { 0,1}, i,j ∈ N
  • n = number of total number of facility and location,

    f(i,k) = amount of flow between facilities i and k

    d(j,q) = distance between locations j and q

    xij = facility i assignt to location j

    xkq = facility k assignt to location q

    subject to,

    1. each facility need to be assign to each location

    2. only one facility can be assign to one location

    3. xij = 1 if facility i is assigned to location j otherwise xij = 0.

    the data used in the problem

    matrix flow assigning facility i (colum) to facility k (row)=

    0 4 8

    4 0 6

    8 6 0

    matrix distance assigning location j (colum) to location q (row)=

    0 10 5

    10 0 8

    5 8 0

    how do i write this in Matlab? can someone help me

    Similar questions and discussions