Integer Programming
Integer Programming
●
Introduction
●
Case: California Manufacturing Co.
●
An Application Vignette
●
Using BIP for Project Selection: Tazer Corp.
●
Using BIP for the Selection of Sites: Caliente City
●
Using BIP for Crew Scheduling: Southwestern Airways
●
Using Mixed BIP to Deal with Setup Costs: Revised Wyndor
Introduction
●
Integer programming (IP) problem:
some decision variables have integer values
●
Examples:
Assignment: Assign jobs to machines
●
Binary integer programming (BIP)
0-1 decision variables: yes-or-no decisions
●
Examples – yes-or-no decisions:
Should we undertake a particular fixed project?
3
Case study: California Manufacturing Company
• The California Manufacturing Company is a diversified company with
several factories and warehouses throughout California, but none yet in
Los Angeles or San Francisco.
• A basic issue is whether to build a new factory in Los Angeles or San
Francisco, or perhaps even both.
• Management is also considering building at most one new warehouse,
– but will restrict the choice to a city where a new factory is being built.
5
Binary Decision Variables
6
Algebraic Formulation
Let
x1 = 1 if build a factory in L.A.; 0 otherwise
x2 = 1 if build a factory in S.F.; 0 otherwise
x3 = 1 if build a warehouse in Los Angeles; 0 otherwise
x4 = 1 if build a warehouse in San Francisco; 0 otherwise
Maximize
NPV = 8x1 + 5x2 + 6x3 + 4x4 ($millions)
subject to
6x1 + 3x2 + 5x3 + 2x4 ≤ 10 ($millions) – Capital Spent
x 3 + x4 ≤ 1 – Max 1 Warehouse
x3 ≤ x1 and x4 ≤ x2 – Warehouse only if Factory
x1, x2, x3, x4 are binary variables.
Spreadsheet Model
B C D E F G
3 NPV ($millions) LA SF
4 Warehouse 6 4
5
6 Factory 8 5
7
8 Capital Required
9 ($millions) LA SF
10 Warehouse 5 2 Capital Capital
11 Spent Available
12 Factory 6 3 9 <= 10
13
14 Total Maximum
15 Build? LA SF Warehouses Warehouses
16 Warehouse 0 0 0 <= 1
17 <= <=
18 Factory 1 1
19
20 Total NPV ($millions) 13
8
Sensitivity Analysis:
Parameter Analysis Report (Optional)
The parameter analysis report shows the effect of varying the amount
of capital being made available for these investments.
9
Management’s Conclusion
●
BC Cancer Agent Vancouver Centre, Chemotherapy Unit:
nearly 15,000 outpatient treatments per year
a team of 10 nurses.
●
Managerial difficulties and problems
clinical complexity, high resource utilization and
scheduling restrictions
significant waitlist, late appointment confirmation,
clerical rework
●
Patients
difficulty to arrange necessary transportation and
●
Objectives:
Reducing the size of the patient wait list
●
MS Approach:
Observe the booking and scheduling processes
Implementation:
●
Balances workload within
and across nursing shifts
●
Includes appointment-
specific parameters
nursing time, chair
time, protocol
start/end times and
other restrictions
●
Considers chemo unit
and pharmacy capacity,
other appointments and
patient preferences 13
The results
●
“The new booking system is more straightforward for the
clerks and helps the unit to have a more balanced workload
across nurses.” — Clinical Nurse Coordinator
Project Selection at Tazer Corp.
1 2 3 4 5
Up Stable Choice Hope Release
R&D 400 300 600 500 200
($million)
Success 50% 35% 35% 20% 45%
Rate
Revenue if 1,400 1,200 2,200 3,000 600
Successful
($million)
Expected 300 120 170 100 70
Profit
($million)
16
Algebraic Formulation of Tazer Project Selection
17
Spreadsheet for Tazer Project Selection Problem
A B C D E F G H I J
1 Tazer Corp. Project Selection Problem
2
3
4 Up Stable Choice Hope Release Total Budget
5 R&D Investment ($million) 400 300 600 500 200 1200 <= 1200
6 Success Rate 50% 35% 35% 20% 45%
7 Revenue if Successful ($million) 1400 1200 2200 3000 600
8 Expected Profit ($million) 300 120 170 100 70 540
9
10 Do Project? 1 0 1 0 1
18
Selection of Sites for Emergency Services:
The Caliente City Problem
• Caliente City is growing rapidly and spreading well beyond its original
borders
• They still have only one fire station, located in the congested center of town
• The result has been long delays in fire trucks reaching the outer part of the
city
Goal: Develop a plan for locating multiple fire stations throughout the city
New Policy: Response Time ≤ 10 minutes
19
Response Time and Cost Data for Caliente City
1 2 3 4 5 6 7 8
Response 1 2 8 18 9 23 22 16 28
times
(minutes) for 2 9 3 10 12 16 14 21 25
a fire in tract 3 17 8 4 20 21 8 22 17
4 10 13 19 2 18 21 6 12
5 21 12 16 13 5 11 9 12
6 25 15 7 21 15 3 14 8
7 14 22 18 7 13 15 2 9
8 30 24 15 14 17 9 8 3
Cost of Station 350 250 450 300 50 400 300 200
($thousands) 20
Algebraic Formulation of Caliente City Problem
subject to
Tract 1: x1 + x2 + x4 ≥1
Tract 2: x1 + x2 + x3 ≥1
Tract 3: x2 + x3 + x6 ≥1
Tract 4: x1 + x4 + x7 ≥1
Tract 5: x5 + x7 ≥1
Tract 6: x3 + x6 + x8 ≥ 1
Tract 7: x4 + x7 + x8 ≥ 1
Tract 8: x6 + x7 + x8 ≥ 1
xj are binary, j = 1, 2, … , 8.
Spreadsheet Model for Caliente City Problem
A B C D E F G H I J K L M N
1 Caliente City Fire Station Location Problem
2
3 Fire Station in Tract
4 1 2 3 4 5 6 7 8
5 1 2 8 18 9 23 22 16 28
6 Response 2 9 3 10 12 16 14 21 25
7 Times 3 17 8 4 20 21 8 22 17
8 (Minutes) 4 10 13 19 2 18 21 6 12
9 for a Fire 5 21 12 16 13 5 11 9 12
10 in Tract 6 25 15 7 21 15 3 14 8
11 7 14 22 18 7 13 15 2 9
12 8 30 24 15 14 17 9 8 3
13
14 Cost of Station 350 250 450 300 50 400 300 200
15 ($thousands) Number
16 Covering
17 1 1 1 0 1 0 0 0 0 1 >= 1
18 Response 2 1 1 1 0 0 0 0 0 1 >= 1
19 Time 3 0 1 1 0 0 1 0 0 1 >= 1
20 <= 4 1 0 0 1 0 0 1 0 1 >= 1
21 10 5 0 0 0 0 1 0 1 0 1 >= 1
22 Minutes? 6 0 0 1 0 0 1 0 1 1 >= 1
23 7 0 0 0 1 0 0 1 1 2 >= 1
24 8 0 0 0 0 0 1 1 1 2 >= 1
25
26 Total
27 Fire Station in Tract Cost
28 1 2 3 4 5 6 7 8 ($thousands)
29 Station in Tract? 0 1 0 0 0 0 1 1 750
23
Southwestern Airways Flights
Seat tl e
(SE A)
Denv er Ch i cag o
(DEN) ORD)
San Fran cis co
(SFO)
Lo s An gel es
(LAX)
24
Data for the Southwestern Airways Problem
Minimize
Cost = 2x1 + 3x2 + 4x3 + 6x4 + 7x5 + 5x6 + 7x7 + 8x8 + 9x9 + 9x10 + 8x11 + 9x12
subject to
Flight 1 covered: x1 + x4 + x7 + x10 ≥ 1
Flight 2 covered: x2 + x5 + x8 + x11 ≥ 1
: :
Flight11 covered: x6 + x9 + x10 + x11 + x12 ≥ 1
Three Crews: x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 + x10 + x11 + x12 ≤ 3
xj are binary, j = 1, 2, … , 12.
Spreadsheet Model
B C D E F G H I J K L M N O P Q
3 Flight Sequence
4 1 2 3 4 5 6 7 8 9 10 11 12
5 Cost ($thousands) 2 3 4 6 7 5 7 8 9 9 8 9 At
6 Least
7 Includes Segment? Total One
8 SFO-LAX 1 0 0 1 0 0 1 0 0 1 0 0 1 >= 1
9 SFO-DEN 0 1 0 0 1 0 0 1 0 0 1 0 1 >= 1
10 SFO-SEA 0 0 1 0 0 1 0 0 1 0 0 1 1 >= 1
11 LAX-ORD 0 0 0 1 0 0 1 0 1 1 0 1 1 >= 1
12 LAX-SFO 1 0 0 0 0 1 0 0 0 1 1 0 1 >= 1
13 ORD-DEN 0 0 0 1 1 0 0 0 1 0 0 0 1 >= 1
14 ORD-SEA 0 0 0 0 0 0 1 1 0 1 1 1 1 >= 1
15 DEN-SFO 0 1 0 1 1 0 0 0 1 0 0 0 1 >= 1
16 DEN-ORD 0 0 0 0 1 0 0 1 0 0 1 0 1 >= 1
17 SEA-SFO 0 0 1 0 0 0 1 1 0 0 0 1 1 >= 1
18 SEA-LAX 0 0 0 0 0 1 0 0 1 1 1 1 1 >= 1
19
20 Total Number
21 1 2 3 4 5 6 7 8 9 10 11 12 Sequences of Crews
22 Fly Sequence? 0 0 1 1 0 0 0 0 0 0 1 0 3 <= 3
23
24 Total Cost ($thousands) 18
Wyndor with Setup Costs
A B C D E F G
1 Wyndor Glass Co. Product-Mix Problem
2
3 Doors Windows
4 Unit Profit $300 $500
5 Hours
6 Hours Used Per Unit Produced Available
7 Plant 1 1 0 4
8 Plant 2 0 2 12
9 Plant 3 3 2 18
Suppose that two changes are made to the original Wyndor problem:
1. For each product, producing any units requires a substantial one-time
setup cost for setting up the production facilities ($700 for doors and
$1300 for windows, respectively).
2. The production runs for these products will be ended after one week, so D
and W in the original model now represent the total number of doors and
windows produced, respectively, rather than production rates. Therefore,
these two variables need to be restricted to integer values.
Graphical Solution to Original Wyndor Problem (Optional)
W
Production rate
for windows
8
Optimal solution
6 (2, 6)
0 2 4 6 8 10 D
Production rate for doors 29
Net Profit for Wyndor Problem with Setup Costs
30
Feasible Solutions for Wyndor with Setup Costs
8
Production
quantity for
windows (0, 6) gives P = 1700
6 (2, 6) gives P = -100 + 1700
= 1600
B C D E F G H
3 Doors Windows
4 Unit Profit $300 $500
5 Setup Cost $700 $1,300
6
7 Hours Hours
8 Hours Used Per Unit Produced Used Available
9 Plant 1 1 0 0 <= 4
10 Plant 2 0 2 12 <= 12
11 Plant 3 3 2 12 <= 18
12
13 Doors Windows
14 Units Produced 0 6
15 <= <= Production Profit $3,000
16 Only If Setup 0 99 - Total Setup Cost $1,300
17 Setup? 0 1 Total Profit $1,700
33
Assignment
●
Review
Slides, lecture notes (incl. review questions)
●
Assignment
Problem 1 (Broadcasting Olympic Games)
Submission via Blackboard: due date (check Blackboard)
Requirement: (1) please upload a single Word file for question answers
(incl. explanation of your models and solutions) and a single Excel file
containing spreadsheets. Name them (work/spreadsheet files) properly.
(2) You may work individually or in a group of two. If you work in a group,
only one submission (via Blackboard, by a “representative”) is required.
●
Preview for next topic, “queueing models”
34