Quantitative Methods MM ZG515 / QM ZG515: L10: Linear Programming
Quantitative Methods MM ZG515 / QM ZG515: L10: Linear Programming
MM ZG515 / QM ZG515
L10: Linear Programming
BITS Pilani Srinivas Kota
Work Integrated Learning
Programmes Division
Scope of this lecture
• Formulate linear programming models, including an objective
function and constraints
• Graphically solve an LP problem with the iso‐profit line
method
• Graphically solve an LP problem with the corner‐point
method
• Interpret sensitivity analysis and shadow prices
• Construct and solve a minimization problem
• Formulate production‐mix, diet, and labor scheduling
problems
2 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Linear Programming
• Will find the minimum or maximum value of the objective
• Guarantees the optimal solution to the model formulated
3 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
LP Applications
Two products
• Shader X-pod, a portable music player
• Shader BlueBerry, an internet-connected color
telephone
6 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Formulating LP Problems
Hours Required
to Produce 1 Unit
X-pods BlueBerrys Available Hours
Department (X1) (X2) This Week
Electronic 4 3 240
Assembly 2 1 100
Profit per unit 7 5
Decision Variables:
X1 = number of X-pods to be produced
X2 = number of BlueBerrys to be produced
7 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Formulating LP Problems
Objective Function:
Maximize Profit = 7X1 + 5X2
8 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Formulating LP Problems
First Constraint:
Electronic Electronic
time used is ≤ time available
4X1 + 3X2 ≤ 240 (hours of electronic time)
Second Constraint:
Assembly Assembly
time used is ≤ time available
2X1 + 1X2 ≤ 100 (hours of assembly time)
9 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Graphical Solution
10 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Graphical Solution
X2
Iso-Profit
100 –
Line Solution Method
–
Choose80 a– possible value for the
Number of BlueBerrys
X2
100 –
– 350 = 7X1 + 5X2
80 –
Number of BlueBerrys
X2
100 –
– Maximum profit line
80 –
Number of BlueBerrys
–
Optimal solution point
60 – (X1 = 30, X2 = 40)
–
40 –
– 420 = 7X1 + 5X2
20 –
–
|– | | | | | | | | | | X1
0 20 40 60 80 100
Number of X-pods
13 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Corner‐Point Method
• The optimal
X2 value will always be at a corner
point 100 –
Solve for the intersection of two constraints
2 –
• Find the objective function value at each
4X
80 – + 3X ≤ 240 (electronics time)
Number of BlueBerrys
corner point
–
1 and 2 choose the one with the
2X 1 + 1X2 ≤ 100 (assembly time)
highest60profit
–
• The optimal
X2 value will always be at a corner
point 100 –
2 –
• Find the objective
80 –
function value at each
Number of BlueBerrys
corner point
–
and choose the one with the
highest60profit
–
–
3
Point 1 : (X401 =– 0, X2 = 0) Profit 7(0) + 5(0) = 0
–
Point 2 : (X201 =– 0, X2 = 80) Profit 7(0) + 5(80) = 400
Point 4 : (X1 =– 50, X2 = 0) Profit 7(50) + 5(0) = 350
|– | | | | | | | | | | X
Point 3 : 1 = 30, X = 40)
(X Profit 7(30) +100
5(40) = 4101
1 0 20
2 40 60 80
4
Number of X-pods
15 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Sensitivity Analysis
16 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Changes in Resources
17 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Sensitivity Analysis
X2
–
Changed assembly constraint from 2X1
100 –
+ 1X2 = 100
–
to 2X1 + 1X2 = 110
80 – 2
–
Corner point 3 is still optimal, but
60 –
values at this point are now X1 = 45, X2
–
= 20, with a profit = 415
40 –
–
20 – Electronics constraint is
3 unchanged
–
1 |– | | | | | | | | | |
0 20 40 4 60 80 100 X1
18 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Sensitivity Analysis
X2
–
100 – Changed assembly constraint from 2X1
– + 1X2 = 100
80 –
to 2X1 + 1X2 = 90
2 –
Corner point 3 is still optimal, but
60 –
values at this point are now X1 = 15, X2
– 3
= 60, with a profit = 405
40 –
–
20 – Electronics constraint is
unchanged
–
1 |– | | | | | | | | | |
0 20 40 4 60 80 100 X1
19 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Changes in the Objective Function
Coefficients
• A change in the coefficients in the objective function may
cause a different corner point to become the optimal
solution
• The sensitivity report shows how much objective function
coefficients may change without changing the optimal
solution point
20 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Solving Minimization Problem
21 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Minimization Example
X2
60 – X1 + X2 = 60
50 –
Feasible
40 – region
30 –
b
20 –
a
10 – X1 = 30
X2 = 20
|– | | | | | |
X1
0 10 20 30 40 50 60
23 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Minimization Example
24 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
Minimization Example
25 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD
LP Applications
Formulate the Linear Programming Model for the following Problem
26 MM ZG515/QMZG515 Quantitative Methods BITS Pilani, WILPD