030 Integer Programming PDF
030 Integer Programming PDF
Bishram
Topics
1
Integer Programming Models
Types of Models
Required
Machine Floor Space (ft.2) Purchase Price
Press 15 $8,000
Lathe 30 4,000
2
A Total Integer Model (2 of 2)
A 0 - 1 Integer Model (1 of 2)
3
A 0 - 1 Integer Model (2 of 2)
4
A Mixed Integer Model (2 of 2)
10
5
Integer Programming Example
Graphical Solution of Machine Shop Model
Optimal Solution:
Z = $1,055.56
x1 = 2.22 presses
x2 = 5.55 lathes
11
12
6
Computer Solution of IP Problems
Total Integer Model with Excel (2 of 5)
13
14
7
Computer Solution of IP Problems
Total Integer Model with Excel (3 of 5)
15
16
8
Computer Solution of IP Problems
0 – 1 Model with Excel (1 of 5)
17
18
9
Computer Solution of IP Problems
0 – 1 Model with Excel (3 of 5)
19
20
10
Computer Solution of IP Problems
0 – 1 Model with Excel (5 of 5)
21
22
11
Computer Solution of IP Problems
Total Integer Model with Excel (2 of 3)
23
24
12
25
13
Solving IPs – Cutting Plane Algorithm
Example: Max z = 8x1 + 5x2
s.t. x1 + x2 <= 6
9x1 + 5x2 <= 45
x1, x2 >= 0; x1, x2 are integer
z x1 x2 s1 s2 rhs
14
Solving IPs – Cutting Plane Algorithm
The cutting plane algorithm suggests that the equation where the
fractional components are set <= 0 be used as a new constraint to
the original problem.
Knowing that: s1 = 6 – x1 – x2
and s2 = 45 – 9x1 – 5x2,
Any feasible solution to original problem satisfies Row 2 above. Also, any
feasible solution must have s1 and s2 >= 0 (non-negativity constraint). Thus, the
rhs of row 2 <= .75 < 1. Also because all decision variables are integer, then the
lhs of row 2 is integer. Thus the rhs must also be an integer that is less than 1.
This implies that point that is feasible for the IP satisfies the constraint:
-.75s1 - .25s2 + .75 <= 0
15
Solving IPs – Cutting Plane Algorithm
Since, Row 2: x1 – 2s1 – 3 = -.75s1 - .25s2 + .75
Thus: -.75s1 - .25s2 + .75 <= 0, so the current optimal solution is not in the
feasible region when this constraint is added.
z x1 x2 s1 s2 s3 rhs
16
Solving IPs – Cutting Plane Algorithm
z x1 x2 s1 s2 s3 rhs
z 1 0 0 0 0.33 1.67 40
x2 0 0 1 0 -1 3 0
x1 0 1 0 0 0.67 -1.67 5
s1 0 0 0 1 0.33 -1.33 1
Dr. Bishram
17
Branch and Bound Method
■ Traditional approach to solving integer programming problems.
Feasible solutions can be partitioned into smaller subsets
Smaller subsets evaluated until best solution is found.
Method is a tedious and complex mathematical process.
■ Excel
35
X1 2.50
X2 3.75 A
Z= 38.75
X2 <= 3 X2 >= 4
X1=2.8 X1 = 2
X2 = 3 X2 = 4
Z=37.4 Z = 36
B C
18
Branch & Bound - Continued
X1=2.8
X2 = 3
Z=37.4
X1 <= 2 X1 >= 3
X1=2 X1=3
X2 = 3 X2 = 2.5
D E
Z=31 Z=36.5
X2 <= 2 X2 >= 3
X1=3.2
X2 = 2 Infeasible Solution
F G
Z=35.6
The solution is
X1 = 2
X2 = 4
Z = 36
19
Additional Computer Solution
40
20
0 – 1 Integer Programming Modeling Examples
Capital Budgeting Example (2 of 4)
x1 = selection of web site project
x2 = selection of warehouse project
x3 = selection clothing department project
x4 = selection of computer department project
x5 = selection of ATM project
xi = 1 if project “i” is selected, 0 if project “i” is not selected
41
42
21
0 – 1 Integer Programming Modeling Examples
Capital Budgeting Example (4 of 4)
43
44
22
0 – 1 Integer Programming Modeling Examples
Fixed Charge and Facility Example (2 of 4)
yi = 0 if farm i is not selected, and 1 if farm i is selected; i = 1,2,3,4,5,6
xij = potatoes (1000 tons) shipped from farm I to plant j; j = A,B,C.
Minimize Z = 18x1A+ 15x1B+ 12x1C+ 13x2A+ 10x2B+ 17x2C+ 16x3+ 14x3B
+18x3C+ 19x4A+ 15x4b+ 16x4C+ 17x5A+ 19x5B+12x5C+ 14x6A
+ 16x6B+ 12x6C+ 405y1+ 390y2+ 450y3+ 368y4+ 520y5+ 465y6
subject to:
x1A + x1B + x1B - 11.2y1 ≤ 0 x2A + x2B + x2C -10.5y2 ≤ 0
x3A + x3A + x3C - 12.8y3 ≤ 0 x4A + x4b + x4C - 9.3y4 ≤ 0
x5A + x5B + x5B - 10.8y5 ≤ 0 x6A + x6B + X6C - 9.6y6 ≤ 0
xij ≥ 0 yi = 0 or 1
45
46
23
0 – 1 Integer Programming Modeling Examples
Fixed Charge and Facility Example (4 of 4)
47
48
24
0 – 1 Integer Programming Modeling Examples
Set Covering Example (2 of 4)
xi = city i, i = 1 to 12; xi = 0 if city is not selected as a hub and xi = 1 if it is.
Minimize Z = x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 + x10 + x11 + x12
subject to: Atlanta: x1 + x3 + x8 ≥ 1
Boston: x2 + x10 ≥ 1
Charlotte: x1 + x3 + x11 ≥ 1
Cincinnati: x4 + x5 + x6 + x8 + x10 ≥ 1
Detroit: x4 + x5 + x6 + x7 + x10 ≥ 1
Indianapolis: x4 + x5 + x6 + x7 + x8 + x12 ≥ 1
Milwaukee: x5 + x6 + x7 ≥ 1
Nashville: x1 + x4 + x6+ x8 + x12 ≥ 1
New York: x2 + x9+ x11 ≥ 1
Pittsburgh: x4 + x5 + x10 + x11 ≥ 1
Richmond: x3 + x9 + x10 + x11 ≥ 1
St Louis: x6 + x8 + x12 ≥ 1 xij = 0 or 1
49
25
0 – 1 Integer Programming Modeling Examples
Set Covering Example (4 of 4)
51
Thank You
52
26