Integer Programming and Branch & Bound Method: Operational Research Methods 1 Week 5
Integer Programming and Branch & Bound Method: Operational Research Methods 1 Week 5
Integer Programming and Branch & Bound Method: Operational Research Methods 1 Week 5
Week 5
Introduction
LP is useful tool for optimizing decisions LP assumes all variables are continuous In many situations, variables has to be integer e.g., People, Machines, Trucks LP with variables restricted to integers is called Integer Linear Programming or Integer Programming
Week 5
Introduction
Example 1
Pottery making: Bowls and Vases each Bowl Clay (pounds) Time (hours) Revenue 2 3 10 each Vase 5 2 8 Available 35 20
How many of each item to make to maximize revenue? This problem can be formulated as an IP model
Week 5
Introduction
Decision variable:
B the number of bowls to be made, V the number of vases to be made.
Introduction
IP Model of the problem: maximize Z = 10B + 8V subject to 2B + 5V 35 3B + 2V 20 B, V 0 and integer.
Week 5
Graphical Solution
Applies to IP with two variables only Similar to LP, but considers integer constraints Steps Draw the feasible region for corresponding LP Feasible solutions are integer points in the region Get optimal LP solution point Compare objective values of integer points close to LP solution to get the optimal integer solution
Week 5
Graphical Solution
Graphical solution to problem in Example 1 feasible region and LP solution V
10 8 Optimal solution for LP 6 4 2 Objective function line 0
Week 5
10
12
14
16
18
B
7
Graphical Solution
Compare objective values of hopeful integer points.
Integer point B=2, V=6 B=3, V=5 B=4, V=4 Objective value 68 70 72*
The optimal solution is B=4, V=4. Making 4 bowls and 4 vases, max revenue 72.
Week 5 Operational Research Methods 8
IP with all integer variables like this, is called Binary Integer Programming or 0 1 Integer Programming
Week 5
Decide which items to carry to maximize total value? This problem can be formulated a binary IP model Other applications have same structure as this problem
Week 5 Operational Research Methods 10
The model
maximize 4x1 + 5x2 + 6x3 + 3x4 subject to 7x1 + 9x2 + 10x3 + 5x4 25 x1, x2, x3, x4 are 0 or 1.
Week 5 Operational Research Methods 11
In-class exercise
(a) There are three one-year projects available for investment. You company has 8m and wants to select some of these projects to invest. The investment needed for these projects and their potential profit are listed in the table below. Project Potential profit Investment needed 1 4 6 2 3 3 3 2 4
Formulate an integer programming model to decide which projects to invest in order to maximize the potential profit.
Week 5
12
In-class exercise
(b) Use enumeration to solve the model in (a): Maximize Subject to 4 x1 + 3 x2 + 2 x3 6 x1 + 3 x2 + 4 x3 8 x1, x2, x3 are binary
Objective value 0 2 3 5* Values of x1, x2, x3 1, 0, 0 1, 0, 1 1, 1, 0 1, 1, 1 Objective value 4 infeasible infeasible infeasible
Week 5
14
Week 5
Products A and B can be sold at the price of 12 and 10 respectively Work 8 hours per day. which machine to rent in order to maximize the daily profit ?
Operational Research Methods 15
Week 5
16
subject to
Each type of data needs one person only. To balance the workload, no one should spend less than 5 hours or more than 10 hours Formulate an integer programming model to minimize total data collection time
Operational Research Methods 18
Week 5
Week 5
19
Week 5
Week 5
21
Enumeration
Only for very small problems
Round-off
Solve as LP, then round the solution to integers. Not practical for most problems: solution obtained far from optimal or even infeasible.
More systematic method: branch and bound Computer packages, e.g., Xpress, Excel solver.
Week 5 Operational Research Methods 22
Week 5
23
Week 5
24
x1 1
x 1 2
Week 5
26
x1 1
x1 2
2 infeasible fathomed
Week 5
27
x1 2 2 infeasible fathomed
x2 2 4 (5/6, 2, 11/6, 0)
121/6
Week 5
28
2 infeasible fathomed
x2 1
x2 2
x1 0
x1 1
6 infeasible fathomed
Week 5
29
In-class exercise
(c) Solving the LP relaxation of the problem in (a), we got an optimal LP solution: x1 = 5/6, x2 = 1, x3 = 0, Z = 19/3. If you want to solve the IP problem using the Branch and Bound method, the above relaxed solution provides information for the first node of the branch tree. See the diagram below. There are two sub-problems branching out from this first node. Write these two sub-problems (hint: with additional constraints, the value of x1 is fixed in each of the sub-problems. So each of the sub-problem becomes a two-variable problem).
(1) Maximize Z = 3x2 + 2x3 Subject to 3x2 + 4x3 8 x2, x3 are binary and (2) Maximize Z = 4 + 3x2 + 2x3 Subject to 3x2 + 4x3 2 x2, x3 are binary
Week 5
30
In-class exercise
(d) Solve the LP relaxation of these two sub-problems using graphical method or any other method, and continue the branch and bound procedure to solve the original IP problem. Present the complete branch tree, and give the optimal solution.
0 x1=5/6, x2=1, x3=0 Z=19/3
x1 0
x1 1
Week 5
31
In-class exercise
0 x1=5/6, x2=1, x3=0 x1 0 Z=19/3
x1 1
x2 1
4 infeasible fathomed 32