Chapter 4 - Optimization - Linear Programming
Chapter 4 - Optimization - Linear Programming
LINEAR PROGRAMMING – LP
Operations Research 1
INTRODUCTION
Operations Research 2
LP PROBLEM
Carpentry 4 3 240
Painting and varnishing 2 1 100
Profit per unit $7 $5
Formulation
• X1 = number of tables to be produced
• X2 = number of chairs to be produced
• Isoprofit-line method
• Corner points method
Graphical Representation of Constraints
100
80 A (X 1
= 0, X 2
= 80)
2
Number of Chairs - X
60
4X 1 +3 X 2 = 240
40
4X 1 +3 X 2 <= 240
20
B (X 1 = 60, X 2 = 0)
0 20 40 60 80 100 120
Number of Tables - X 1
100 C (X 1
= 0, X 2
= 100)
80 A (X 1
= 0, X 2
= 80)
Number of Chairs - X2
2X 1 +1 X 2 = 100
60
4X 1 +3 X 2 = 240
40
D (X 1 = 50, X 2 = 0)
20
Feasible B (X 1 = 60, X 2 = 0)
Region
0 20 40 60 80 100 120
Number of Tables - X 1
Solving LP graphically by Isoprofit- line method
100
80 A (X 1 = 0, X 2 = 80)
Number of Chairs - X 2
60 I (X 1 = 30, X 2 = 40)
Feasible
Region 20
D (X 1 = 50, X 2 = 0)
0 20 40 60 80 100 120
Number of Tables - X 1
Solving LP problem by Corner-point method
• Objective: Maximize Profit Z = 7X1 + 5X2
• The mathematical theory in LP shows that the optimal
solution must lie at one corner point, or extreme point,
of the feasible region
12
04 SPECIAL CASES
• Case1: Infeasible
• Infeasible solutions occurred when we have conflicting constraints ;
or
• No solution satisfy all constraints; or
• Can not build the feasible solutions region.
Operations Research 13
04 SPECIAL CASES
• Exampleï:
X2 Regions which
Consider three constraints: Mieàn thoaû maõn raøng
100
satisfy
buoäc thöù ba
40
Regions which 20
satisfy
constraints 1 0 20 40 60 80 100 120 X1
and 2
Operations Research 14
04 SPECIAL CASES
Operations Research 15
04 SPECIAL CASES
• Example:
Maximize Z = 3X1 + 5X2
St:
X1 5 X2
X1 = 5
X2 10
X1 + 2 X2 10 15
X 2 = 10
X1, X2 0 10
0 5 10 15 X1
Operations Research 16
04 SPECIAL CASES
Operations Research 17
04 SPECIAL CASES
Example:
X2
Maximize Z = 7X1 + 5X2 100
St:
A (X 1 = 0, X 2 = 80)
4X1 + 3X2 240 80
X1 80
40
20
0 20 40 60 80 100 X1
Operations Research 18
04 SPECIAL CASES
Operations Research 19
04 SPECIAL CASES X2
100
80 A (X 1 = 0, X 2 = 80)
Maximize Z = 8X1 + 6X2
St:
60
4X1 + 3X2 240
2X1 + 1X2 100 40
I (X 1 = 30, X 2 = 40)
20
0 20 40 60 80 100 X1
Operations Research 20
COMPUTER APPLICATION
• Excel
• Lingo
Operations Research 21
Example on LP
• Ozark Farms uses at least 800 lbs of special feed daily. The special
feed is a mixture of corn and soybean meal with the following
compositions:
lb per lb of feedstuff
Feedstuff Protein Fiber Cost ($/lb)
Corn 0.09 0.02 0.3
Soybean 0.6 0.06 0.90
Operations Research 22
• The objective is to minimize the total daily cost (in dollars) of the
feed mix, that is,
Minimize z = .3x1 + .9x2
Subject to:
OR
Min Z= 0.3
Operations Research 23