Professional Documents
Culture Documents
LINEAR PROGRAMMING – LP
6
Tuesday, September 09, 2014
Formulation as a Linear Programming
Problem
• x1 = number of batches of product 1 produced per week
• x2 = number of batches of product 2 produced per week
• Z = total profit per week (in thousands of dollars) from producing
these two products
The graphical method works only when there are two decision variables, but it
provides valuable insight into how larger problems are structured
• Isoprofit-line method
• Corner points method
8
Tuesday, September 09, 2014
Graphical Representation of Constraints
x2
x1 4
5
4
3
2
1
0 1 2 3 4 5 6 7 x1
Number of batches of product 1
9
Tuesday, September 09, 2014
Graphical Representation of Constraints
x2
x1 4
5
4
Feasible
Feasible
3 region
region
2
1
0 1 2 3 4 5 6 7 x1
Number of batches of product 1
10
Tuesday, September 09, 2014
Solving LP graphically by Isoprofit- line method
Fig 3. The value of (x1 , x2 ) that x2
maximizes 3x1 5x2is (2, 6).
99
88
Z 36 3x1 5 x2
77
(2,6)
66
55
Z 20 3x1 5 x2 44
33
Z 10 3x1 5 x2 22
11
0 1 2 3 4 5 6 7 x1
11
Tuesday, September 09, 2014
Solving LP graphically by Isoprofit- line method
3 1 x2
x2 x1 Z Optimal solution
5 5
99
88
Z 36 3x1 5 x2 I ( x1 2, x 2 6)
77
66
55
Max Profit: Z=3*2+5*6=36
Z 20 3x1 5 x2 44
33
Z 10 3x1 5 x2 22
11
0 1 2 3 4 5 6 7 x1
12
Tuesday, September 09, 2014
Optimal Solution Structure
x2
99 Binding constraints
A constraint is said to be 88
binding if it holds with equality 77
I ( x1 2, x 2 6)
at the optimum solution. 66
55
Other constraints are non- 44 Z 3x1 5 x2
binding 33
22
11
0 1 2 3 4 5 6 7 x1
13
Tuesday, September 09, 2014
Remarks:
14
Tuesday, September 09, 2014
Solving LP problem by Corner-point method
Objective: Maximize Profit Z = 3X1 + 5X2
• The mathematical theory in LP shows that the
optimal solution must lie at one corner point, or
extreme point, of the feasible region
15
Tuesday, September 09, 2014
x2
• At A=(0,0): Profit = 0
• At B=(0,6): 99
88
Profit = 3(0) + 5(6) = 30
77
B=(0,6)
• At C=(2,6): 66 C=(2,6)
55
Profit = 3(2) + 5(6) = 36 44
33 D=(4,3)
• At D=(4,3):
22
Profit = 3(4) + 5(3) = 27 11
E=(4,0)
A=(0,0)
• The optimal solution is C = (2,6) 0 1 2 3 4 5 6 7 x1
which obtains profit of 36 16
Tuesday, September 09, 2014
There are 04 special cases in LP:
• Infeasible solutions
• Unbounded solutions
• Redundant constraints
• Multiple optimal solutions
17
18
St: 88
77
3X1 + 5X2 50 (2,6)
19
20
0 1 2 3 4 5 6 7 x1
Number of batches of product 1
21
22
St: 8
7
3X1 + 2X2 18 (2,6)
23
24
0 1 2 3 4 5 6 7 x1
Number of batches of product 1 25
0 1 2 3 4 5 6 7 x1
Number of batches of product 1 26
Tuesday, September 09, 2014
Sensitivity Analysis on the Contsraints
• On constraint 1:
If we increase RHS by 1: 3X1 + 2X2 18+1
The new optimal solution is: X1= 7/3 , X2 =6 and the
new Z’ = 37 . The net change in profit is is $1. This is
called shadow price (marginal value or dual price)
associated with constraint 1.
• On constraint 2:
If we increase RHS by 1: 2X2 13, X1= 5/3 ,
X2 =13/2
The net change in profit is is $1.5. The shadow price
associated with constraint 2 is $1.5.
27
Tuesday, September 09, 2014
• On constrain 3:
X1 4 : not binding constraint x2
9 3x1 2 x2 18
8
Z 36 3x1 5 x2
7
(2,6) 2 x2 12
0 1 2 3 4 5 6 7 x1
Number of batches of product 1 28
Tuesday, September 09, 2014
Remarks
- Consider binding constraints
- Slightly change RHS of each binding constraint
- Shadow price = Z(new)- Z(old):
- Shadow price > 0: if RHS changes, the optimal solution change,
that RHS is sensitive parameter
- Shadow price = 0: if RHS changes, the optimal solution does
not change. Thus that RHS is not sensitive parameter
29
Tuesday, September 09, 2014
Summary
30
MIT and James Orlin © 2003