Chapter 2 & 3 LP
Chapter 2 & 3 LP
Chapter 2 & 3 LP
Linear Programming
LP as a “What-If” Tool
Formulation of a LP Model
• A market survey has established that the daily demand for the
interior paint cannot exceed that of exterior paint by more than 1
ton. The survey also showed that the maximum demand for the
interior paint is limited to 2 tons daily.
• The wholesale price per ton is $3000 for exterior paint and $2000
per interior paint. How much interior and exterior paint should the
company produce daily to maximize gross income?
© 2008 Prentice Hall, Inc. B – 14
Define:
XE = Tons of exterior paint to be produced
XI = Tons of interior paint to be produced
Capacity Minimum
Department (in hours) Product Production Level
Wiring 1,500 XJ201 150
Drilling 2,350 XM897 100
Assembly 2,600 TR29 300
Inspection 1,200 BR788 400
© 2008 Prentice Hall, Inc. B – 16
LP Applications
X1 = number of units of XJ201 produced
X2 = number of units of XM897 produced
X3 = number of units of TR29 produced
X4 = number of units of BR788 produced
Maximize profit = 9X1 + 12X2 + 15X3 + 11X4
3X1 + X2 ≥8
4X1 + 3X2 ≥ 19
X1 + 3X2 ≥7
X1 , X2 ≥0
© 2008 Prentice Hall, Inc. B – 23
Blending Problem
Bryant's Pizza, Inc. is a producer of frozen pizza products.
The company makes a net income of $1.00 for each
regular pizza and $1.50 for each deluxe pizza produced.
The firm currently has 150 pounds of dough mix and 50
pounds of topping mix. Each regular pizza uses 1 pound of
dough mix and 4 ounces (16 ounces= 1 pound) of topping
mix. Each deluxe pizza uses 1 pound of dough mix and 8
ounces of topping mix. Based on the past demand per
week, Bryant can sell at least 50 regular pizzas and at
least 25 deluxe pizzas. The problem is to determine the
number of regular and deluxe pizzas the company should
make to maximize net income. Formulate this problem as
an LP problem
© 2008 Prentice Hall, Inc. B – 24
A Blending Problem
Let X1 and X2 be the number of regular and deluxe pizza, then
the LP formulation is:
Maximize: { W = X1 + 1.5 X2 }
Subject to:
X1 + X2 ≤ 150
0.25 X1 + 0.5 X2 ≤ 50
X1 ≥ 50
X2 ≥ 25
X1 , X2 ≥ 0
© 2008 Prentice Hall, Inc. B – 25
Transportation problem
East Africa bottling has two distribution centers (DC’s). In DC A
5000units of products are stored. In DC B, the stock is
7000units. The two DCs deliver the products to 4 different
regions. Other data are given below in the table.
Two products
1. Shader X-pod, a portable music
player
2. Shader BlueBerry, an internet-
connected color telephone
Determine the mix of products that will
produce the maximum profit
Second Constraint:
Assembly Assembly
time used is ≤ time available
2X1 + 1X2 ≤ 100 (hours of assembly time)
© 2008 Prentice Hall, Inc. B – 34
Graphical Solution
Can be used when there are two
decision variables
1. Plot the constraint equations at their
limits by converting each equation to
an equality
2. Identify the feasible solution space
3. Create an iso-profit line based on the
objective function
4. Move this line outwards until the
optimal point is identified
© 2008 Prentice Hall, Inc. B – 35
Graphical Solution
X2
100 –
–
Number of BlueBerrys
80 – Assembly (constraint B)
–
60 –
–
40 –
– Electronics (constraint A)
Feasible
20 –
region
–
| |– | | | | | | | | | X1
0 20 40 60 80 100
Number of X-pods
© 2008 Prentice Hall, Inc. B – 36
Graphical Solution
Iso-Profit
X
Line Solution Method
2
Choose a100
possible
– value for the
objective function
–
Number of Watch TVs
80 – Assembly (constraint B)
–
$210 = 7X1 + 5X2
60 –
Solve for the– axis intercepts of the function
and plot the
40 –line
– Electronics (constraint A)
20 – X2 = 42
Feasible X1 = 30
region
–
| |– | | | | | | | | | X1
Figure B.3 0 20 40 60 80 100
Number of X-pods
© 2008 Prentice Hall, Inc. B – 37
Graphical Solution
X2
100 –
–
Number of BlueBerrys
80 –
–
60 –
$210 = $7X1 + $5X2
–
(0, 42)
40 –
–
20 – (30, 0)
–
| |– | | | | | | | | | X1
Figure B.4 0 20 40 60 80 100
Number of X-pods
© 2008 Prentice Hall, Inc. B – 38
Graphical Solution
X2
100 –
– $350 = $7X1 + $5X2
Number of BlueBeryys
80 –
–
$280 = $7X1 + $5X2
60 –
$210 = $7X1 + $5X2
–
40 –
–
$420 = $7X1 + $5X2
20 –
–
| |– | | | | | | | | | X1
Figure B.5 0 20 40 60 80 100
Number of X-pods
© 2008 Prentice Hall, Inc. B – 39
Graphical Solution
X2
100 –
– Maximum profit line
Number of BlueBerrys
80 –
–
60 – Optimal solution point
–
(X1 = 30, X2 = 40)
40 –
–
$410 = $7X1 + $5X2
20 –
–
| |– | | | | | | | | | X1
Figure B.6 0 20 40 60 80 100
Number of X-pods
© 2008 Prentice Hall, Inc. B – 40
Corner-Point Method
X2
100 –
2 –
Number of BlueBerrys
80 –
–
60 –
–
3
40 –
–
20 –
–
| |– | | | | | | | | | X1
Figure B.7 1
0 20 40 60 80 100
4
Number of X-pods
© 2008 Prentice Hall, Inc. B – 41
Corner-Point Method
The optimal value will always be at a
corner point
Find the objective function value at each
corner point and choose the one with the
highest profit
50 –
Feasible
region
40 –
30 – b
20 –
a
X1 = 30
10 – X2 = 20
| | | | | | |
– X1
0 10 20 30 40 50 60
© 2008 Prentice Hall, Inc. B – 47
© 2008 Prentice Hall, Inc. B – 48
4. (LP) Simplex Method
• Realistic linear programming problems often have
several decision variables and many constraints.
• Such problems cannot be solved graphically;
instead an algorithm such as the simplex
procedures is used.
• Simplex method is thus the most effective analytical
method of solving linear programming problems.
• The simplex method is an ITERATIVE or “step by
step” method or repetitive algebraic approach that
moves automatically from one basic feasible
solution to another basic feasible solution improving
the situation each time until the optimal solution is
reached at.
Objective Function
Optimize (Max. or Min.) z = Σ cj xj for j = 1..n
Subject to: (Constraints)
Σ a ij xj (<=, =, >=) bi ; for j = 1 ..n, i = 1,2, …
m
Primal Dual
Objective is minimization Objective is maximization and vice versa
No of columns No of rows
No of rows No of columns
Duality Advantage
1. The dual form provides an alternative form
2. The dual reduces the computational difficulties
associated with some formulation
3. The dual provides an important economic interpretation
concerning the value of scars resources used.