Linear Programming
Linear Programming
Applications
1. Marketing Applications
2. Manufacturing Applications
3. Employee Scheduling Applications
4. Financial Applications
5. Ingredient Blending Applications
6. Other Linear Programming Applications
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Learning Objectives
After completing this chapter, students will be able to:
1. Formulate and solve LP problems with Excel Solver in
marketing.
2. Formulate and solve LP problems with Excel Solver in
production.
3. Formulate and solve LP problems with Excel Solver in
the scheduling of employees.
4. Formulate and solve LP problems with Excel Solver in
finance.
5. Formulate and solve LP problems with Excel Solver in
the blending of ingredients.
6. Formulate and solve LP problems with Excel Solver in
revenue management.
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Introduction
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Marketing Applications
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Case Study: Win Big Gambling Club (1 of 4)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Win Big Gambling Club (2 of 4)
• Advertising options
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Win Big Gambling Club (3 of 4)
• Problem formulation
X1 = number of 1-minute TV spots taken each week
X2 = number of daily newspaper ads taken each week
X3 = number of 30-second prime-time radio spots taken each week
X4 = number of 1-minute afternoon radio spots taken each week
Objective:
Maximize audience coverage = 5,000X1 + 8,500X2 + 2,400X3 + 2,800X4
Subject to X1 ≤ 12(max TV spots/wk)
X2 ≤ 5 (max newspaper ads/wk)
X3 ≤ 25(max 30-sec radio spots/wk)
X4 ≤ 20(max 1-min radio spots/wk)
800X1 + 925X2 + 290X3 + 380X4 ≤ $8,000 (weekly advertising
budget)
X3 + X4 ≥ 5 (min radio spots contracted)
290X3 + 380X4 ≤ $1,800 (max dollars spent on radio)
X 1, X 2, X 3, X 4 ≥ 0
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Win Big Gambling Club (4 of 4)
Solution
X1 = 1.97 TV spots
X2 = 5 newspaper ads
X3 = 6.2 30-second radio spots
X4 = 0 1-minute radio spots
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (1 of 2)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (2 of 2)
Set Objective: F6 bl
By Changing cells: B5:E5 a
n
To: Max k Copy F6 to F9:F15
Subject to the Constraints:
F9:F14 <= H9:H14
F15 >= H15
Solving Method: Simplex LP
☑ Make Variables Non-Negative
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Case Study 2: Management Sciences
Association (MSA) (1 of 5)
• MSA is a marketing research firm
• Several requirements for a statistical validity
1. Survey at least 2,300 U.S. households
2. Survey at least 1,000 households whose heads
are ≤ 30 years old
3. Survey at least 600 households whose heads
are between 31 and 50
4. Ensure that at least 15% of those surveyed live
in a state that borders Mexico
5. Ensure that no more than 20% of those
surveyed who are 51 years of age or over live in
a state that borders Mexico
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Management Sciences Association (2 of 5)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Management Sciences Association (3 of 5)
• Decision variables
X1 = number of 30 or younger and in a border state
X2 = number of 31-50 and in a border state
X3 = number 51 or older and in a border state
X4 = number 30 or younger and not in a border state
X5 = number of 31-50 and not in a border state
X6 = number 51 or older and not in a border state
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Management Sciences Association (4 of 5)
Objective function
Minimize total interview costs = $7.50X1 + $6.80X2 + $5.50X3
+ $6.90X4 + $7.25X5 +
$6.10X6
subject to
X1 + X2 + X3 + X4 + X5 + X6 ≥ 2,300 (total households)
X1 + X4 ≥ 1,000 (households 30 or younger)
X2 + X5 ≥ 600 (households 31-50)
X1 + X2 + X3 ≥0.15(X1 + X2+ X3 + X4 + X5 + X6) (border states)
X3 ≤ 0.20(X3 + X6) (limit on age group 51+ who can live in border
state)
X 1, X 2, X 3, X 4, X 5, X 6 ≥ 0
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Management Sciences Association (5 of 5)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (1 of 14)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (2 of 14)
PROGRAM 2 MSA Solution in Excel 2016
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Manufacturing Applications (1 of 2)
• Production Mix
– LP can be used to plan the optimal mix of products to
manufacture
– Company must meet a myriad of constraints
▪ Financial concerns
▪ Sales demand
▪ Material contracts
▪ Union labor demands
– Primary goal is to generate the largest profit possible
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Case Study 3: Fifth Avenue Industries (1 of
6)
• Produces four varieties of ties
– Expensive all-silk
– All-polyester
– Two are polyester-cotton or silk-cotton blends
• Cost and availability of the three materials used in the
production process
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Fifth Avenue Industries (2 of 6)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Fifth Avenue Industries (3 of 6)
MONTHL
SELLIN Y MONTH MATERIAL
G PRICE CONTRA LY REQUIRED
VARIETY PER TIE CT DEMAN PER TIE MATERIAL
OF TIE ($) MINIMUM D (YARDS) REQUIREMENTS
5,00 7,0
All silk 19.24 0.125 100% silk
0 00
All 10,0 14,
8.70 0.08 100% polyester
polyester 00 000
Poly-cotton 13,0 16, 50% polyester – 50%
9.52 0.10
blend 1 00 000 cotton
Silk-cotton 5,00 8,5
10.64 0.11 60% silk – 40% cotton
blend 2 0 00
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Fifth Avenue Industries (4 of 6)
PROFIT
POLY-ESTE COTTON MATERIAL SELLING
SILK REQ’D COST R REQ’D COST REQ’D COST COST PRICE
blank blank blank blank blank blank blank blank
All-silk X1
blank blank blank blank
All-polyester X2
blank blank blank
Poly-cotton blend X3
blank
Silk-cotton blend X4
blank blank
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Fifth Avenue Industries (5 of 6)
Objective function
Maximize profit = $16.24X1 + $8.22X2 + $8.77X3 + $8.66X4
Subject to 0.125X1 + 0.066X4 ≤ 1200 (yds of silk)
0.08X2 + 0.05X3 ≤ 3,000 (yds of polyester)
0.05X3 + 0.44X4 ≤ 1,600 (yds of cotton)
X1 ≥ 5,000 (contract min for silk)
X1 ≤ 7,000 (contract min)
X2 ≥ 10,000 (contract min for all polyester)
X2 ≤ 14,000 (contract max)
X3 ≥ 13,000 (contract min for blend 1)
X3 ≤ 16,000 (contract max)
X4 ≥ 5,000 (contract min for blend 2)
X4 ≤ 8,500 (contract max)
X1, X2, X3, X4 ≥ 0
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Fifth Avenue Industries (6 of 6)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (3 of 14)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (4 of 14)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Manufacturing Applications (2 of 2)
• Production Scheduling
– Low-cost production schedule
▪ Period of weeks or months
– Important factors include
▪ Labor capacity
▪ Inventory and storage costs
▪ Space limitations
▪ Product demand
▪ Labor relations
– With more than one product, the scheduling process
can be quite complex
– The problem resembles the product mix model for each
time period in the future
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Case Study 4: Greenberg Motors (1 of 12)
• Manufactures two different electric motors for sale under
contract to Drexel Corp
– Orders placed three times a year for four months at a
time
– Demand varies month to month
– Develop a production plan for the next four months
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Greenberg Motors (2 of 12)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Greenberg Motors (3 of 12)
• Basic data
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Greenberg Motors (4 of 12)
• Model formulation
Objective
Minimize total cost (production plus inventory carrying cost)
Constraints
4 demand constraints (1 constraint for each of 4 months) for GM3A
4 demand constraints (1 constraint for each of 4 months) for GM3B
2 constraints (1 for GM3A and 1 for GM3B) for the inventory at the
end of April
4 constraints for minimum labor hours (1 constraint for each month)
4 constraints for maximum labor hours (1 constraint for each
month)
4 constraints for inventory storage capacity each month
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Greenberg Motors (5 of 12)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Greenberg Motors (6 of 12)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Greenberg Motors (7 of 12)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Greenberg Motors (8 of 12)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Greenberg Motors (9 of 12)
• The demand constraints
A1 − IA1 = 800 (demand for GM3A in Jan)
IA1 + A2 − IA2 = 700 (demand for GM3A in Feb)
IA2 + A3 − IA3 = 1,000 (demand for GM3A in Mar)
IA3 + A4 − IA4 = 1,100 (demand for GM3A in Apr)
B1 − IB1 = 1,000 (demand for GM3B in Jan)
IB1 + B2 − IB2 = 1,200 (demand for GM3B in Feb)
IB2 + B3 − IB3 = 1,400 (demand for GM3B in Mar)
IB3 + B4 − IB4 = 1,400 (demand for GM3B in Apr)
IA4 = 450 (inventory of GM3A at end of Apr)
IB4 = 300 (inventory of GM3B at end of Apr)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Greenberg Motors (10 of 12)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Greenberg Motors (11 of 12)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (5 of 14)
PROGRAM 4 Greenberg Motors Solution in Excel 2016
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (6 of 14)
PROGRAM 4 Greenberg Motors Solution in Excel
2016
Solver Parameter Inputs and Selections Key Formulas
Set Objective: F5
By Changing cells: B4:Q4
To: Min
Copy formula in R5 to R8:R17
Subject to the Constraints: Copy formula in R5 to R19:R26
R19:R22 >= T19:T22 Copy formula in R5 to R28:R31
R23:R26 <= T23:T31
R28:R31 <= T28:T31
R8:R17 = T8:T17
Solving Method: Simplex LP
☑ Make Variables Non-Negative
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Greenberg Motors (12 of 12)
TABLE 3 Solution to Greenberg Motors Problem
PRODUCTION
JANUARY FEBRUARY MARCH APRIL
SCHEDULE
1,75
Units GM3A produced 1,277 223 792
8
Units GM3B produced 1,000 2,522 78 1,700
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Case Study 5 Employee Scheduling
Applications
• Labor Planning
– Address staffing needs over a particular time
– Especially useful when there is some flexibility
in assigning workers that require overlapping or
interchangeable talents
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Hong Kong Bank (1 of 6)
• Hong Kong Bank of Commerce and Industry requires
between 10 and 18 tellers depending on the time of
day
• The bank wants a schedule that will minimize total
personnel costs
– Lunch time from noon to 2 pm is generally the
busiest
– Bank employs 12 full-time tellers, many part-time
workers
– Part-time workers must put in exactly four hours
per day, can start anytime between 9 am and 1
pm, and are inexpensive
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Hong Kong Bank (2 of 6)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Hong Kong Bank (3 of 6)
• Labor requirements
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Hong Kong Bank (4 of 6)
• Variables
F = full-time tellers
P1 = part-timers starting at 9 am (leaving at 1 pm)
P2 = part-timers starting at 10 am (leaving at 2 pm)
P3 = part-timers starting at 11 am (leaving at 3 pm)
P4 = part-timers starting at noon (leaving at 4 pm)
P5 = part-timers starting at 1 pm (leaving at 5 pm)
• Objective
Minimize total daily personnel cost = $100F + $32(P1 + P2 + P3 + P4 +
P5)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Hong Kong Bank (5 of 6)
• Constraints
F + P1 blank blank blank blank ≥ 10 (9 am – 10 am needs)
F blank + P2 + P3 + P4 + P5 ≥ 18 (1 pm – 2 pm needs)
blank 4P1 + 4P2 + 4P3 + 4P4 + 4P5 ≤ 0.50(112) (max 50% part-timers)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (7 of 14)
PROGRAM 5 Labor Planning Solution in Excel
2016
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (8 of 14)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Hong Kong Bank (6 of 6)
Full-Time Tellers 10 10
P1 Tellers 0 6
P2 Tellers 7 1
P3 Tellers 2 2
P4 Tellers 5 5
P5 Tellers 0 0
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Financial Applications
• Portfolio Selection
– Bank, investment funds, and insurance
companies often have to select specific
investments from a variety of alternatives
– Overall objective is generally to maximize the
potential return on the investment given a set
of legal, policy, or risk restraints
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Case Study 6: International City Trust (1 of
5)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
International City Trust (2 of 5)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
International City Trust (3 of 5)
• Variables
X1 = dollars invested in trade credit
X2 = dollars invested in corporate bonds
X3 = dollars invested in gold stocks
X4 = dollars invested in construction loans
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
International City Trust (4 of 5)
• Formulation
Maximize dollars of interest earned = 0.07X1 + 0.11X2 +
0.19X3 + 0.15X4
subject to : X1 ≤ 1,000,000
X2 ≤ 2,500,000
X3 ≤ 1,500,000
X4 ≤ 1,800,000
X3 + X4 ≥ 0.55(X1 + X2 + X3 + X4)
X1 ≥ 0.15(X1 + X2 + X3 + X4)
X1 + X2 + X3 + X4 ≤ 5,000,000
X 1, X 2, X 3, X 4 ≥ 0
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (9 of 14)
PROGRAM 6 ICT Portfolio Solution in Excel 2016
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (10 of 14)
PROGRAM 6 ICT Portfolio Solution in Excel 2016
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
International City Trust (5 of 5)
• Optimal solution
– Make the following investments
X1 = $750,000
X2 = $950,000
X3 = $1,500,000
X4 = $1,800,000
– Total interest earned = $712,000
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Truck Loading Problem
• Truck Loading Problem
– Deciding which items to load on a truck so as
to maximize the value of a load shipped
– Goodman Shipping has to ship the following
six items
ITEM VALUE ($) WEIGHT (POUNDS)
1 22,500 7,500
2 24,000 7,500
3 8,000 3,000
4 9,500 3,500
5 11,500 4,000
6 9,750 3,500
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Case Study 7: Goodman Shipping (1 of 3)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Goodman Shipping (2 of 3)
• Formulation
Maximize load value = $22,500X1 + $24,000X2 + $8,000X3 + $9,500X4
+ $11,500X5 + $9,750X6
subject to
7,500X1 + 7,500X2 + 3,000X3
+ 3,500X4 + 4,000X5 + 3,500X6 ≤ 10,000 lb
capacity
X1 ≤ 1
X2 ≤ 1
X3 ≤ 1
X4 ≤ 1
X5 ≤ 1
X6 ≤ 1
X1, X2, X3, X4, X5, X6 ≥ 0
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (11 of 14)
PROGRAM 7. Goodman Truck Loading Solution in
Excel 2016
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (12 of 14)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Goodman Shipping (3 of 3)
• Goodman Shipping raises an interesting issue
– The solution calls for one third of Item 1 to be
loaded on the truck
– What if Item 1 cannot be divided into smaller
pieces?
• Rounding down leaves unused capacity on the truck
and results in a value of $24,000
• Rounding up is not possible since this would exceed
the capacity of the truck
• Using integer programming, the solution is to load
one unit of Items 3, 4, and 6 for a value of $27,250
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Ingredient Blending Applications (1 of 2)
• Diet Problems
– One of the earliest LP applications
– Used to determine the most economical diet
for hospital patients
– This is also known as the feed mix problem
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Case Study 8: Whole Food Nutrition
Center (1 of 4)
• Uses three bulk grains to blend a natural cereal
• Advertises that the cereal meets the U.S. Recommended
Daily Allowance (USRDA) for four key nutrients
• Select the blend that will meet the requirements at the
minimum cost
NUTRIENT USRDA
Protein 3 units
Riboflavin 2 units
Phosphorus 1 unit
Magnesium 0.425 unit
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Whole Food Nutrition Center (2 of 4)
• Variables
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Whole Food Nutrition Center (3 of 4)
• Formulation
Minimize total cost of mixing a 2-ounce serving = $0.33XA +
$0.47XB + $0.38XC
subject to
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (12 of 14)
PROGRAM 8. Whole Food Diet Solution in Excel 2016
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (2 of 3)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (3 of 3)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Ingredient Blending Applications (2 of 2)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Case Study 9: Low Knock Oil Company (1
of 5)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Low Knock Oil Company (2 of 5)
• Variables
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Low Knock Oil Company (3 of 5)
• Formulation
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Low Knock Oil Company (4 of 5)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Low Knock Oil Company (5 of 5)
• Formulation
Minimize cost = $30X1 + $30X2 + $34.80X3 + $34.80X4
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (13 of 14)
PROGRAM 9. Low Knock Oil Solution in Excel 2016
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Solution in Excel 2016 (14 of 14)
• Revenue Management
– Developed by American Airlines
– Differential pricing of seats to generate
additional revenue
– How many seats to make available to each
type of passenger
– Adopted by hotel industry
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Other LP Applications (2 of 3)
• Data Envelopment Analysis (DEA)
– Measure efficiency of similar operating units
– Can be used when there is no single objective
to be optimized
▪ Identify inputs and outputs
▪ Develop constraints for each unit in the
system
– Objective is to minimize the resources
required to generate specific levels of output
– Identify areas where improvement might be
possible
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Other LP Applications (3 of 3)
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved
Copyright
Copyright © 2018, 2015, 2012 Pearson Education, Inc. All Rights Reserved