Session 05 Linear Programming II Posting
Session 05 Linear Programming II Posting
HU, Xing
Associate Professor
HKU Business School
05 Linear Programming II
1
2
Agenda
100 –
–
80 – Maximum Profit Line
Number of Chairs
–
60 – Optimal Solution Point
– (T = 30, C = 40)
40 –
– $4,100 = $70T + $50C
20 –
–
| | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
8
C
NUMBER OF NUMBER OF PROFIT
100 – TABLES (T) CHAIRS (C) = $70T + $50C
– 0 0 $0
(0, 80)
80 – 50 0 $3,500
Number of Chairs
– 0 80 $4,000
60 –
30 40 $4,100
– (30,40)
40 –
–
20 –
– (50, 0)
| | | | | | | | | | | |
(0, 0) 0 20 40 60 80 100 T
Number of Tables
9
Both the carpentry and P&V constraints are binding (no slack). If we
require 𝐶 ≥ 20, then we have surplus for this constraint
Sensitivity Analysis
10
Excel Solver
• Step 2: Write the formulas for the objective function and the
constraints.
12
Resource may
change by these
amounts and the
shadow price will
not change.
In-Class Exercise
• True or False?
• A new technology that saves one carpentry hour per chair will lead to the
optimal solution of producing fewer chairs.
• If the number of carpentry hours is increased, it is optimal to produce more
tables.
• If the profit of a chair is increased to $60, it is optimal to produce more
chairs.
14
Agenda
Casinos
Car radio ads
Ads magazine
TV ads
16
Media Selection
Media Selection
AUDIENCE NUMBER
REACHED COST PER MAX ADS TAKEN PER
MEDIUM PER AD AD ($) PER WEEK WEEK
TV spot (1 minute) 5,000 800 12 𝑋!
Media Selection
19
Media Selection
20
Agenda
Robot Scheduling
Robot Scheduling
Day # Robots Required • Formulate LP to minimize
Monday 17
the number of robots that
must be used. Robots are
Tuesday 13 very expensive!
Wednesday 15
Thursday 19
Friday 14
Saturday 16
Sunday 11
23
Robot Scheduling
• Decision variables:
• Objective:
25
Robot Scheduling
𝑋( : the number of robots whose first working day is Day i
Req
17
13
15
19
14
16
11
26
Robot Scheduling
27
Robot Scheduling
Decision Variables Monday Tuesday Wednesday Thursday Friday Saturday Sunday Total No. of FT Employees
No. of FT Employees: 6.333333333 3.333333333 2 7.333333333 0 3.333333333 0 22.33333
Constraints RHS
Monday 1 1 1 1 1 17 >= 17
Tuesday 1 1 1 1 1 13 >= 13
Wednesday 1 1 1 1 1 15 >= 15
Thursday 1 1 1 1 1 19 >= 19
Friday 1 1 1 1 1 19 >= 14
Saturday 1 1 1 1 1 16 >= 16
Sunday 1 1 1 1 1 12.66667 >= 11
Agenda
Portfolio Optimization
30
Portfolio Selection
Variable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$B$3 Amount LA Municipal Bonds 50000 0 0.053 0.014 0.406
$C$3 Amount Thompson Electronics, Inc. 0 -0.016 0.068 0.016 1E+30
$D$3 Amount United Aerospace Corp. 0 -0.035 0.049 0.035 1E+30
$E$3 Amount Palmer Drugs 175000 0 0.084 0.034 0.009333333
$F$3 Amount Happy Days Nursing Homes 25000 0 0.118 0.028 0.034
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$G$8 Total Amount Constraint 250000 0.0812 250000 1E+30 250000
$G$9 Municipal Bond Constraint 50000 -0.014 0 50000 50000
$G$10 E.A.D. Constraint 175000 0 0 75000 1E+30
$G$11 Nursing Home Constraint 25000 0.034 0 75000 25000
Agenda
Order delivered
Order arrived at HK
facility
Order confirmed
Order submitted
Transportation Problem
• The Executive Furniture Corporation is faced with the transportation
problem and is trying to minimize the daily transportation cost. How
to optimize the shipping plan, while the demand must be satisfied?
Evansville 8 4 3 300
(Plant 2)
Transportation Matrix
39
Transportation Problem
• The Executive Furniture Corporation is faced with the transportation
problem and is trying to minimize the daily transportation cost. How
to optimize the shipping plan, while the demand must be satisfied?
Transportation network
Daily Supply Origin Destination Daily Demand
Evansville $8 Boston
300 $4 200
(Plant 2) $3 (Market 2)
Fort $9 $7 Cleveland
300 Lauderdale 200
$5 (Market 3)
(Plant 3)
Per-unit
shipping costs
40
LP Formulation
41
Transportation Problem
42
Production Planning
43
Production Planning
• During the next four months the SureStep Company must meet the
following demand (pairs of shoes) on time: 3000 in month 1; 5000 in
month 2; 2000 in month 3; and 1000 in month 4.
• At the beginning of month 1, 1500 pairs of shoes are on hand and the
company has 75 workers. Each worker can work up to 160 hours a
month before he or she receives overtime. A worker can work up to
20 hours of overtime a month and is paid $13 per hour for overtime.
It takes 4 hours of labor and $15 of raw material to produce a pair of
shoes.
• At the end of each month, each pair of unsold shoes incurs a holding
cost of $3.
• SureStep wants to find the minimum-cost solution that meets
forecasted/contracted demand on time.
44
Production Planning
• Constraints:
• Monthly production capacity
• Monthly overtime limit
• Monthly demand satisfaction
• Monthly Production Capacity = (Number of workers available * 160 + Monthly overtime) / 4
Production Planning
• The decisions in different months will affect each other through the
following inventory balance equation:
Ending inventory of last month
+ Production quantity of this month
– Demand of this month
= Ending inventory of this month
Production Planning
47
Production Planning(2)
Lost Sales
• Suppose demand satisfaction is not a hard constraint, but there will
be a penalty of $50 for each unit of unsatisfied demand. How to
minimize the total cost?
Exercise:
Production Planning(3)
• During the next four months the SureStep Company must meet the
following demand for pair of shoes on time: 3000 in month 1; 5000 in
month 2; 2000 in month 3; and 3800 in month 4.
• At the beginning of month 1, 1500 pairs of shoes are on hand and the
company has 100 workers.
• A worker is paid $1200 per month. Each worker can work up to 160
hours a month before he or she has to work overtime. A worker can
work up to 20 hours of overtime a month and is paid $12 per hour for
overtime. It takes four hours of labor and $15 of raw material to produce
a pair of shoes.
• At the beginning of each month, workers can be hired or fired. Each
hiring costs $1600 and each firing costs $2000.
• At the end of each month, each pair of unsold shoes incurs a holding
cost of $3.
49
Exercise