Integer Programming
Integer Programming
Example: All-Integer LP
Consider the following all-integer linear program:
Max 3x1 + 2x2
s.t.
3x1 + x2 < 9
x1 + 3x2 < 7
-x1 + x2 < 1
x1, x2 > 0 and integer
Example: All-Integer LP
Solving the problem as a linear program
ignoring the integer constraints, the optimal
solution to the linear program gives fractional
values for both x1 and x2. From the graph on the
next slide, we see that the optimal solution to the
linear program is:
x1 = 2.5, x2 = 1.5, z = 10.5
Example: All-Integer LP
x2
5
-x1 + x2 < 1
3x1 + x2 < 9
x1 + 3x2 < 7
x1
Example: All-Integer LP
If we round up the fractional solution (x1 =
2.5, x2 = 1.5) to the LP relaxation problem, we get
x1 = 3 and x2 = 2. From the graph on the next slide,
we see that this point lies outside the feasible
region, making this solution infeasible.
Example: All-Integer LP
x2
Rounded Up5Solution
-x1 + x2 < 1
3x1 + x2 < 9
x1 + 3x2 < 7
x1
Example: All-Integer LP
Rounding Down
By rounding the optimal solution down to x1 =
2, x2 = 1, we see that this solution indeed is an
integer solution within the feasible region, and
substituting in the objective function, it gives z = 8.
We have found a feasible all-integer solution,
but have we found the OPTIMAL all-integer
solution?
The answer is NO! The optimal solution is x1
= 3 and x2 = 0 giving z = 9, as evidenced in the next
two slides.
Example: All-Integer LP
Complete Enumeration of Feasible ILP Solutions
There are eight feasible integer solutions to this
problem:
x1 x 2 z
1. 0
0
0
2. 1
0
3
3. 2
0
6
4. 3
0
9
optimal solution
5. 0
1
2
6. 1
1
5
7. 2
1
8
8. 1
2
7
Example: All-Integer LP
x2
5
-x1 + x2 < 1
3x1 + x2 < 9
x1 + 3x2 < 7
1
x1
125
150
200
40
40
20
100
8.1%
9.0
11.0
10.2
10.5
14.1
13.2
Garment
Wedding gown
Clown costume
Admiral's uniform
Bullfighter's outfit
Tailor
1 2
19 23
11 14
12 8
X 20
3
20
X
11
20
4
21
12
X
18
5
18
10
9
21
lbs.
Item
Value ($)
Weight (lbs)
15
18
20
10
18
21
13
11
12
11
23
24
xj < k