Integer Programming
Integer Programming
6 x 6 Sudoku example
Can have 1,2,3,4
6 5
1
Xijk = 1 if position
4 6 5 i,j takes value k
5 6 2
Can have 6 only
6
1 2
Examples
Assignment problem ?
Travelling Salesman problem
Location problems
Grouping (clustering)
Vehicle Routeing
Supply Chain
Sequencing and Scheduling problems
Binary knapsack
Location - Allocation
X1 + X2 + X3 = 150
Training example
X1 + X2 + X3 ≤ 100Y1 + 100Y2 + 100Y3 trainer
S1 + t1 – S2 ≤ 0 or S2 + t2 – S1 ≤ 0
S1 + t1 – S2 ≤ Mδ and S2 + t2 – S1 ≤ M(1-δ);
δ = 0, 1, How many constraints are there
3 pairs and 6 constraints for 10 people?
Formulating binary IP problems
Travelling salesman -- 10 8 9 7
10 -- 10 5 6
X13 = X34 = X42 = X25 = X51 = 1 8 10 -- 8 9
X13 = X34 = X42 = X21 = X55 = 1 9 5 8 -- 6
X13 = X31 = X42 = X25 = X54 = 1 7 6 9 6 --
u4 – u2 + 5X42 ≤ 4
u2 – u5 + 5X25 ≤ 4
u5 – u4 + 5X54 ≤ 4
How many constraints
u1 – u3 + 5X13 ≤ 4 for a 10 city TSP?
Formulating binary IP problems
Precedence (Workstations
Either X51 + X52 + X53 ≥ X21 or X52 + X53 ≥ X22 or X53 ≥ X23
• Example:
n=10 items with sizes
44, 24, 24, 22, 21, 17, 8, 8, 6, 6
Bin size is C=61
1d bin packing - applications
1
5 1
5
4 8
3 4 8
3
6
6
2 7 2 7
Unique solution?
Matching – How many pairs can I form?
Matching, Assignment, Covering, Location and Grouping problems
Bipartite Matching – How many pairs can I form?
1 5 1 5
4 8 4 8
3 6 3 6
2 7 2 7
Unique solution?
Matching, Assignment, Covering, Location and Grouping problems
1
5 1
5
4 8
3 4 8
3
6
6
2 7 2 7
Unique solution?
Matching, Assignment, Covering, Location and Grouping problems
1
5 1
100 400 5
100 400
500 4
8 500 4
100 3 8
100 3
200
200
6
6
100
100
2 7
200 2
200 200 7
200
LP gives binary solution. Usually covering is IP
Min cost covering vs minimum covering
More than 3 locations
Unique solution?
Grouping problem
4 8
3
2 7
Grouping problem
4 8
3
2 7
Grouping problem
2 7
Clustering problem