Deterministic Problem Linear Programming Nonlinear Programming Integer Programming Network and Graphs Transportation Problem Game Theory
Deterministic Problem Linear Programming Nonlinear Programming Integer Programming Network and Graphs Transportation Problem Game Theory
Deterministic
Linear Programming
Problem
Nonlinear Programming Integer Programming
Simulation Forecasting
Probabilistic
Decision Making Stochastic Process
Problem
1
Integer Programming Model
2
Classifications of IP Models
Pure IP Model: Where all variables must take integer values.
Maximize z = x1 - x2
subject to x1 + 2x2 2
2x1 - x2 1, x1, x2 = 0 or 1
3
Classifications of IP Models (contd.)
LP Relaxation: The LP obtained by omitting all integer or 0-1
constraints on variables is called the LP relaxation of IP.
IP:
Maximize z = 21x1 + 11x2
subject to
7x1 + 4x2 13
x1, x2 0, x1 and x2 integer
LP Relaxation:
Maximize z = 21x1 + 11x2
subject to
7x1 + 4x2 13
x1, x2 0
Result:
Optimal objective function value of IP
Optimal obj. function value of LP relaxation
4
Solving Integer Programming Problem
ST
2x1 + 6 x2 27 4
x2 2
3x1 + x2 19
3
x1 , x2 0 and Integer 2
x1
1 2 3 4 5 6 7 8
LP Optimal
x1 = 5 7/16
x2 = 2 11/16
5
Solving Integer Programming Problem
x1 , x2 0 and Integer 2
Round down?
1
x1 = 5
x2 = 2
x1
1 2 3 4 5 6 7 8
LP Optimal
x1 = 5 7/16
x2 = 2 11/16
6
Solving Integer Programming Problem
x2
6
IP Optimal
x1 = 4
5 x2 = 3
x1
1 2 3 4 5 6 7 8
7
Possible Solution Methods
Enumeration
Will yield the optimal solution
Time consuming
Branch and Bound
Will yield the optimal solution
More efficient than enumeration
8
Simple Approaches for Solving IP
Approach 1:
Approach 2:
9
Branch and Bound Algorithm
10
An Example
Telfa Corporation makes tables and chairs
11
Feasible Region for Telfa’s Problem
Subproblem 1 : The LP relaxation of
original
Subproblem 2: Subproblem 1 +
Constraint x1 4
Subproblem 3: Subproblem 1 +
Constraint x1 3
12
Feasible Region for Subproblems
Branching : The process of
decomposing a subproblem into two
or more subproblems is called
branching.
Subproblem 4: Subproblem 2 +
Constraint x2 2
Subproblem 5: Subproblem 2 +
Constraint x2 1
13
Feasible Region for Subproblems 4 & 5
14
The Branch and Bound Tree
Subproblem 1
z = 41.25
1 x1 = 3.75
x2 = 2.25
x1 4 x1 3
Subproblem 2 Subproblem 3
z = 41
2 x1 = 4
x2 = 1.8
x2 2 x2 1
Subproblem 4 Subproblem 5
3 Infeasible 4
z = 40.05, x1 = 4.44, x2 = 1
Optimal solution of
Subproblem 7:
z = 37, x1 = 4, x2 = 1
Optimal solution of
Subproblem 6:
z = 40, x1 = 5, x2 = 0
16
The Branch and Bound Tree
Subproblem 1
1 z = 41.25
x1 = 3.75
x2 = 2.25
x1 4 x1 3
Subproblem 2
Subproblem 3
z = 41
z = 29 x1 = 3 7
2 x1 = 4
x2 = 1, LB = 29
x2 = 1.8
x2 2 x2 1
Subproblem 5
Subproblem 4 z = 40.55
3 Infeasible x1 = 4.44 4
x2 = 1
Subproblem 6 Subproblem 7
z = 40 z = 37
6 x1 = 5 x1 = 4 5
x2 = 0, LB = 37 x2 = 1
17
Solving Knapsack Problems
Max z = 16x1+ 22x2 + 12x3 + 8x4
subject to
LP Relaxation:
18
The Branch and Bound Tree
Subproblem 1
z = 44
1 x1 = x 2 = 1
x3 =.5
x3 = 1
x3 = 0
Subproblem 3
Subproblem 2
z = 43.7
z = 43.3, LB=42 2
x1 =x3= 1,
7 x1 = x2=1
x2 = .7, x4=0
x3 = 0, x4 =.67
x2 = 1
x4 = 0 x4 = 1 x2 = 0
3 4
Subproblem 8 Subproblem 9 Subproblem 4 Subproblem 5
z = 38, LB=42 z= 42.85, LB=42 z = 36 z = 43.6
8 x1 = x2=1 9 x1 = x4 =1 x1 = x3=1 x1 =.6, x2=x3=1
x3 = x 4 = 0 x3 = 0, x2 = .85 x2 = 0, x4 =1 x4 = 0, LB = 36
x1 = 0 x1 = 1
Subproblem 6
z = 42 Subproblem 7
x1 =0, x2=x3=1 LB = 42
5 6
Infeasible
x4 = 1, LB = 36
19
Strategies of Branch and Bound
The branch and bound algorithm is a divide and conquer
algorithm, where a problem is divided into smaller and smaller
subproblems. Each subproblem is solved separately, and the
best solution is taken.
20
Strategies of Branch and Bound (contd.)
Upper Bounding Strategy: The process of obtaining an upper
bound (UB) for each subproblem is called an upper bounding
strategy.
21
Formulating Integer Programming Problems
22
Example 1: Basketball Starting Lineup
Positions Skills
Player Guard Forward Center Ball-Handling Shooting Rebounding Total
1 Yes No No 3 1 2 6
2 No No Yes 1 2 1 4
3 Yes Yes No 1 3 1 5
4 No Yes Yes 1 2 1 4
5 Yes Yes No 2 1 3 6
6 No Yes Yes 1 3 1 5
7 Yes Yes No 1 2 2 5
23
Constraints
There must be exactly five starters.
At least four must be able to play guard
At least two must be able to play forward
At least one must be able to play center
The average skill level must be at least two
Either player 2 or player 3 must start
If player 3 starts, then player 6 cannot start
If player 1 starts, then both players 4 and 5 must also start
24
Binary Integer Programming (BIP) Solution
25
Skill Constraints
1. Average ball-handling 2
(3 x1 + x2 + x3 + x4 + 2 x5 + x6 + x7)/5 2
3 x1 + x2 + x3 + x4 + 2 x5 + x6 + x7 10
2. Average shooting 2
x1 + 2 x2 +3 x3 + 2 x4 + x5 + 3 x6 + 2 x7 10
3. Average rebounding 2
2 x1 + x2 + x3 + x4 + 3 x5 + x6 + 2 x7 10
26
Either Player 2 or Player 3 Must Start:
x2 + x3 1
27
If Player 3 Starts, Then Player 6 Cannot Start
x3 + x6 1
28
If player 1 starts, then players 4 and 5 must both start
x1 x4
x1 x5
If x1 = 1, then x4 = 1 and x5 =1.
x1 x4 x5 Intrepretation
1 1 1 all three start
0 0 0 none of them start
0 1 0 only player 4 starts
0 0 1 only player 5 starts
0 1 1 players 4 and 5 start, player 1 does not
29
Example 2: oil-exploration
30
BIP Formulation
Let xi = 1 if site i is explored; and 0, otherwise.
min C1 x1 + C2 x2 + C3 x3 + C4 x4 +
C5 x5 + C6 x6 + C7 x7 + C8 x8 + C9 x9 + C10 x10
subject to
(1) x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 + x10 = 5
(2) x5 + x6 + x7 + x8 2
(3a) x3 + x5 1
(3b) x4 + x5 1
(4) x1 + x7 + x8 2
all variables are binary
31
(3a) x3 + x5 1
(3b) x4 + x5 1
x3 =1 or x4 = 1 => x5 = 0
(if you explore site S3 or site S4, then you can’t explore
site S5)
x5 = 1=> x3 = 0 and x4 = 0
(if you explore site S5, then you can’t explore sites S3 and
S4)
32
(4) x1 + x7 + x8 2
x8 x1 x7 Interpretation
0 0 0 Don't explore any of the three sites
0 0 1 Explore Site 7 only
0 1 0 Explore Site 1 only
0 1 1 Explore Sites 1 and 7, but not 8
33
(4) x1 + x7 + x8 2
Case 2: Explore Site 8
x8 = 1 => x1 + x7 1
(can also explore site S1, or S7, but not both)
x8 x1 x7 Interpretation
1 0 0 Explore Site 8 only
1 1 0 Explore Sites 8 and 1, but not 7
1 0 1 Explore Sites 8 and 7, but not 1
1 1 1 Explore all three sites (Infeasible)
34
Example 3: Either-Or Constraints
Feasible solutions:
1) x = 1, y = 3 (Satisfies both)
2) x = 0, y = 4 (Satisfies 1, but not 2)
3) x = 5, y = 0 (Satisfies 2, but not 1)
4) x = 2, y = 3 (Satisfies neither)
35
Either-Or Constraints
(3) x + y 4 + M z
(4) 3 x + 4 y 15 + M (1 – z)
(5) z binary
36
Either-Or Constraints
(3) x + y 4 + M z
(4) 3 x + 4 y 15 + M (1 – z)
(5) z binary
To allow the solution x =5 and y = 0, set z = 1:
x = 5, y = 0, z = 1
5+0=5<4+M (3) is satisfied
15 + 0 = 15 = 15 + M (1 –1) = 15 (4) is satisfied
37
Either-Or Constraints
(3) x + y 4 + M z
(4) 3 x + 4 y 15 + M (1 – z)
(5) z binary
38
Solutions with M = 1000
39
Capital Budgeting Problem
Stockco Co. is considering four investments
Investment 1 2 3 4
choice
Cash $5000 $7000 $4000 $3000
outflow
NPV $16000 $22000 $12000 $8000
IP:
40
Fixed Charge Problem
Gandhi cloth company manufactures three types of clothing: shirts,
shorts, and pants
There are 150 hours of labor available per week and 160 square yards of
cloth
41
Fixed Charge Problem (contd.)
Decision Variables:
Formulation:
42
Either-Or Constraints
Dorian Auto is considering manufacturing three types of auto:
compact, midsize, large.
Resources required and profits obtained from these cars are given
below.
43
Either-Or Constraints (contd.)
Decision Variables:
Formulation:
44
Set Covering Problems
Western Airlines has decided to have hubs in USA.
45
Formulation of Set Covering Problems
Decision Variables:
Minimize xAT + xBO + xCH + xDE + xHO + xLA + xNO + xNY + xPI + xSL + xSF + xSE
subject to
AT BO CH DE HO LA NO NY PI SL SF SE Required
AT 1 0 1 0 1 0 1 1 1 0 0 0 xAT >= 1
BO 0 1 0 0 0 0 0 1 1 0 0 0 xBO >= 1
CH 1 0 1 0 0 0 1 1 1 0 0 0 xCH >= 1
DE 0 0 0 1 0 0 0 0 0 1 0 0 xDE >= 1
HO 1 0 0 0 1 0 1 0 0 0 0 0 xHO >= 1
LA 0 0 0 0 0 1 0 0 0 1 1 0 xLA >= 1
NO 1 0 1 0 1 0 1 0 0 0 0 0 xNO >= 1
NY 1 1 1 0 0 0 0 1 1 0 0 0 xNY >= 1
PI 1 1 1 0 0 0 0 1 1 0 0 0 xPI >= 1
SL 0 0 0 1 0 1 0 0 0 1 1 1 xSL >= 1
SF 0 0 0 0 0 1 0 0 0 1 1 1 xSF >= 1
SE 0 0 0 0 0 0 0 0 0 1 1 1 xSE >= 1
46
Additional Applications
Political redistricting
Capital investments
47