Integer Linear Programming
17 – 13
subject to
Every City is assigned to exactly one carrier:
x[1,1] + x[1,2] + x[1,3] + x[1,4] + x[1,5] + x[1,6] + x[1,7] = 1
x[2,1] + x[2,2] + x[2,3] + x[2,4] + x[2,5] + x[2,6] + x[2,7] = 1
x[3,1] + x[3,2] + x[3,3] + x[3,4] + x[3,5] + x[3,6] + x[3,7] = 1
x[4,1] + x[4,2] + x[4,3] + x[4,4] + x[4,5] + x[4,6] + x[4,7] = 1
x[5,1] + x[5,2] + x[5,3] + x[5,4] + x[5,5] + x[5,6] + x[5,7] = 1
x[12,1] + x[12,2] + x[12,3] + x[12,4] + x[12,5] + x[12,6] + x[12,7] = 1
x[13,1] + x[13,2] + x[13,3] + x[13,4] + x[13,5] + x[13,6] + x[13,7] = 1
x[14,1] + x[14,2] + x[14,3] + x[14,4] + x[14,5] + x[14,6] + x[14,7] = 1
x[15,1] + x[15,2] + x[15,3] + x[15,4] + x[15,5] + x[15,6] + x[15,7] = 1
x[16,1] + x[16,2] + x[16,3] + x[16,4] + x[16,5] + x[16,6] + x[16,7] = 1
If a Carrier is selected, it can be assigned only the number of bids made:
Note:
The idea here is that if carrier j is not chosen, then no cities can be assigned to that carrier. Hence if y[j] =
0, the sum must be less than or equal to zero and hence all the associated x’s must be zero. If y[j] = 1 then
the constraint becomes redundant. It could also be modeled as x[i,j] ≤ y[j] but this would generate more
constraints
x[1,1] + x[2,1] + x[3,1] + x[4,1] + x[5,1] + x[6,1] + x[7,1]+ x[8,1] +
x[9,1] + x[10,1] + x[11,1] + x[12,1] + x[13,1] + x[14,1] + x[15,1] +
x[16,1] + x[17,1] + x[18,1] + x[19,1] + x[20,1] ≤ 10y[1]
x[1,4] + x[2,4] + x[3,4] + x[4,4] + x[5,4] + x[6,4] + x[7,4]+ x[8,4] +
x[9,4] + x[10,4] + x[11,4] + x[12,4] + x[13,4] + x[14,4] + x[15,4] +
x[16,4] + x[17,4] + x[18,4] + x[19,4] + x[20,4] ≤ 7y[4]
x[1,5] + x[2,5] + x[3,5] + x[4,5] + x[5,5] + x[6,5] + x[7,5] + x[8,5] +
x[9,5] + x[10,5] + x[11,5] + x[12,5] + x[13,5] + x[14,5] + x[15,5] +
x[16,5] + x[17,5] + x[18,5] + x[19,5] + x[20,5] ≤ 20y[5]