Module B PDF
Module B PDF
Linear
MODULE
Programming ► Why Use Linear Programming?
► Requirements of a Linear
Programming Problem
► Formulating Linear Programming
OPSM 301
Problems
Koç University
► Graphical Solution to a Linear
Programming Problem
© 2014 Pearson Education, Inc.
LP Applications LP Applications
4. Selecting the product mix in a factory to 7. Developing a production schedule that will
make best use of machine- and labor- satisfy future demands for a firm’s product
hours available while maximizing the and at the same time minimize total
firm’s profit production and inventory costs
5. Picking blends of raw materials in feed 8. Allocating space for a tenant
mills to produce finished feed mix in a new shopping mall
combinations at minimum costs so as to maximize
revenues to the
6. Determining the distribution system that leasing company
will minimize total shipping cost
variables 100 –
–
1. Plot the constraint equations at their limits by
Number of BlueBerrys
80 – Assembly (Constraint B)
converting each equation to an equality –
60 –
2. Identify the feasible solution space –
Number of BlueBerrys
Assembly (Constraint B) 80 –
– –
60 – $210 = 7X1 + 5X2 60 – $210 = $7X1 + $5X2
– –
(0, 42)
Solve for
40 the
– axis intercepts of the function and 40 –
plot the line
– Electronic (Constraint A) –
20 – Feasible 20 – (30, 0)
– X2 =
region 42 X1 = 30 –
|– | | | | | | | | | | X1 –
| | | | | | | | | | |
X1
0 20 40 60 80 100 0 20 40 60 80 100
Figure B.3 Number of x-pods Figure B.4 Number of x-pods
OPSM 301 MB - 17 OPSM 301 MB - 18
100 – 100 –
– $350 = $7X1 + $5X2 – Maximum profit line
Number of BlueBerrys
Number of BlueBerrys
80 – 80 –
$280 = $7X1 + $5X2
– –
60 – $210 = $7X1 + $5X2 60 – Optimal solution point
– – (X1 = 30, X2 = 40)
40 – 40 –
– $420 = $7X1 + $5X2 – $410 = $7X1 + $5X2
20 – 20 –
– –
|– | | | | | | | | | | |
– | | | | | | | | | |
X1 X1
0 20 40 60 80 100 0 20 40 60 80 100
Figure B.5 Number of x-pods Figure B.6 Number of x-pods
OPSM 301 MB - 19 OPSM 301 MB - 20
Corner-Point Method Corner-Point Method
X2 X
► The optimal2
value will always be at a corner
100 – point 100 –
2 – 2 –
► Find the
80 objective function value at each
Number of BlueBerrys
Number of BlueBerrys
80 – –
– corner point
– and choose the one with the
60 – highest60profit
–
– –
3 3
40 – 40 –
–
Point 1 : (X1 –= 0, X2 = 0) Profit $7(0) + $5(0) = $0
20 – Point 2 : (X
201 –= 0, X2 = 80) Profit $7(0) + $5(80) = $400
– –
Point 4 : (X1 |= 50, X| 2 =| 0) Profit $7(50) +| $5(0) = $350
1 – 1 –
| | | | | | | | | | | | | | | | | |
X1 X1
0 20 40 60 80 100 0 20 40 60 80 100
4 4
Figure B.7 Number of x-pods Figure B.7 Number of x-pods
OPSM 301 MB - 21 OPSM
© 2014
301 Pearson Education, Inc. MB - 22
Number of BlueBerrys
– –
2X
corner point + 1X ≤ 100 (assembly time)
– 1 and2 choose the one with the corner point
– and choose the one with the
highest60profit
– highest60profit
–
4X1–+ 3X2 = 240 4X1 + 3(40) = 240 –
3 3
– 4X
40 1–– 2X2 = –200 4X1 + 120 = 240 40 –
Point 1 : (X1 –= 0, X2 = 0) Profit $7(0) + $5(0) = $0 Point 1 : (X1 –= 0, X2 = 0) Profit $7(0) + $5(0) = $0
+ 1X2 = 40 X1 = 30
Point 2 : (X
201 –= 0, X2 = 80) Profit $7(0) + $5(80) = $400 Point 2 : (X
201 –= 0, X2 = 80) Profit $7(0) + $5(80) = $400
– –
Point 4 : (X1 |= 50, X| 2 =| 0) Profit $7(50) +| $5(0) = $350 Point 4 : (X1 |= 50, X| 2 =| 0) | | Profit $7(50) +| $5(0) = $350
1 – 1 –
| | | | | | | | | | | |
X1 X1
0 20 40 60 80 100 Point 3 : (X10= 30, 20
X2 = 40) 40 60 80 100
4 4 Profit $7(30) + $5(40) = $410
Figure B.7 Number of x-pods Figure B.7 Number of x-pods
OPSM
© 2014
301 Pearson Education, Inc. MB - 23 OPSM
© 2014
301 Pearson Education, Inc. MB - 24
Minimization Example Minimization Example
X2
X1 = number of tons of black-and-white picture Figure B.9
chemical produced 60 – X1 + X2 = 60
LP Applications LP Applications
Labor Scheduling Example (details in the text book)
X1 = number of pounds of stock X purchased per cow each month
X2 = number of pounds of stock Y purchased per cow each month
NUMBER OF NUMBER OF
X3 = number of pounds of stock Z purchased per cow each month TIME PERIOD TELLERS REQUIRED TIME PERIOD TELLERS REQUIRED
9 a.m.–10 a.m. 10 1 p.m.–2 p.m. 18
Minimize cost = .02X1 + .04X2 + .025X3 10 a.m.–11 a.m. 12 2 p.m.–3 p.m. 17
11 a.m.–Noon 14 3 p.m.–4 p.m. 15
Ingredient A requirement: 3X1 + 2X2 + 4X3 ≥ 64
Noon–1 p.m. 16 4 p.m.–5 p.m. 10
Ingredient B requirement: 2X1 + 3X2 + 1X3 ≥ 80
Ingredient C requirement: 1X1 + 0X2 + 2X3 ≥ 16
F = Full-time tellers
Ingredient D requirement: 6X1 + 8X2 + 4X3 ≥ 128
P1 = Part-time tellers starting at 9 AM (leaving at 1 PM)
Stock Z limitation: X3 ≤5
P2 = Part-time tellers starting at 10 AM (leaving at 2 PM)
X1, X2, X3 ≥0
P3 = Part-time tellers starting at 11 AM (leaving at 3 PM)
Cheapest solution is to purchase 40 pounds of stock X P4 = Part-time tellers starting at noon (leaving at 4 PM)
at a cost of $0.80 per cow P5 = Part-time tellers starting at 1 PM (leaving at 5 PM)
OPSM 301 MB - 31 OPSM 301 MB - 32
LP Applications LP Applications
Minimize total daily Minimize total daily
= $75F + $24(P1 + P2 + P3 + P4 + P5) = $75F + $24(P1 + P2 + P3 + P4 + P5)
manpower cost manpower cost
F + P1 ≥ 10 (9 AM - 10 AM needs) F + P1 ≥ 10 (9 AM - 10 AM needs)
F + P1 + P2 ≥ 12 (10 AM - 11 AM needs) F + P1 + P2 ≥ 12 (10 AM - 11 AM needs)
1/2 F + P1 + P2 + P3 ≥ 14 (11 AM - 11 AM needs) 1/2 F + P1 + P2 + P3 ≥ 14 (11 AM - 11 AM needs)
1/2 F + P1 + P2 + P3 + P4 ≥ 16 (noon - 1 PM needs) 1/2 F + P1 + P2 + P3 + P4 ≥ 16 (noon - 1 PM needs)
F + P2 + P3 + P4 + P5 ≥ 18 (1 PM - 2 PM needs) F + P2 + P3 + P4 + P5 ≥ 18 (1 PM - 2 PM needs)
F + P3 + P4 + P5 ≥ 17 (2 PM - 3 PM needs) F + P3 + P4 + P5 ≥ 17 (2 PM - 3 PM needs)
F + P4 + P5 ≥ 15 (3 PM - 7 PM needs) F + P4 + P5 ≥ 15 (3 PM - 7 PM needs)
F + P5 ≥ 10 (4 PM - 5 PM needs) F + P5 ≥ 10 (4 PM - 5 PM needs)
F ≤ 12 F ≤ 12