Module 1 - Optimization
Module 1 - Optimization
Decision Making
Module #1
Optimization
Introduction
Optimization
• Dwight and Hattie are currently planning the mix of crops to plant on their 120-acre farm
for the upcoming season.
• The table below gives the labor hours and fertilizer required per acre, as well as the total
expected profit per acre for each of the potential crops under consideration.
Wheat 60 2 $600
• Dwight, Hattie, and their children can work at most 6,500 total hours during the upcoming
season.
Question: What mix of crops should be planted to maximize the family’s total profit.
Scheduling Problem
Number of
Time Period Agents Needed
12am – 4am 11
4am – 8am 15
8am – 12pm 31
12pm – 4pm 17
4pm – 8pm 25
8pm – 12am 19
Question: How many reservation agents should work each 8-hour shift?
Diet Problem
• The kitchen manager for Sing Sing prison is trying to decide what to feed its
prisoners.
• She would like to offer some combination of milk, beans, and oranges.
• The cost and nutritional content of each food, along with the minimum
nutritional requirements, are shown below.
• Linear Problems
All the formulas defining the model must be linear
There exist very powerful LP solution techniques
Many problems in manufacturing, transportation, scheduling, finance, and
other areas have been formulated to be solved with LP
• Linear Integer
Some of the answers to a linear problem are restricted to integer variables
There exist powerful techniques
• Nonlinear
Any of the formulas are not linear
Often arise in the fields of engineering and finance
More difficult to solve than linear ones
• None of the above
George B. Dantzig
I am moving from New Jersey to Indiana and have rented a truck that can
haul up to 1100 cubic feet of furniture. The volume and value of each item
I am considering moving on the truck are given in the following.
15-14
Spreadsheet Optimization Software
• Hierarchical Objectives
Suppose the remaining engines become obsolete after the current
production run
You might consider maximizing the usage of engines instead of
profit
Constraints may be imposed on the old objectives
• Market Limitations
Suppose the demand for the various boat types is limited
Try to solve EXERCISE 7.1
The D’s of Optimization: Dual Values
• Add the sailing dinghy to the lineup and find the new optimal
production
How to blend the raw materials to produce one ton of the metal alloy
at the minimum cost while meeting the chemical requirements?
The ABC’s of the Blending Model
B. The best solution is what minimizes total cost per ton in cell
F10
Grain type 1 2 3 4
• If the four grains cost $25, $40, $75, and $80 per bushel
respectively, what blend will result in the lowest cost feed that
meets the nutritional requirements?
Staff Scheduling
• The staff needs should be met each day of the week at min cost
• A labor union requirement must be met, such as
Employees work a five-consecutive-day workweek followed by two days off
The allowable shifts are Monday through Friday, Tuesday through Saturday,
Wednesday through Sunday, . . .
Each employee earns $500 per week
The ABC’s of the Scheduling Model
A supplier of sheet steel cuts stock in various widths from 100'' rolls . . .
$300 $600
$200 $400
$500
$500
From:
To: Steel Mill 1 Steel Mill2
Plant A $200 $500
Plant B $300 $400
Plant C $500 $600
• Refugees are located in four camps with the requirements for emergency
supplies
Camp A Camp B Camp C Camp D
Tons Required 10 5 10 20
From:
• 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.
7-39
Data for California Manufacturing
7-40
Binary Decision Variables
7-41
Algebraic Formulation
7-42
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
7-43
Project Selection at Tazer Corp.
7-44
Data for the Tazer Project Selection Problem
1 2 3 4 5
Up Stable Choice Hope Release
7-45
Algebraic Formulation of Tazer Project Selection
subject to
7-46
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
7-47
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
7-48
Response Time and Cost Data for Caliente City
7-49
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
7-50
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
7-51
Southwestern Airways Crew Scheduling
• Southwestern Airways needs to assign crews to cover all its upcoming flights.
7-52
Southwestern Airways Flights
Seat tl e
(SEA)
Los Angel es
(LAX)
7-53
Data for the Southwestern Airways Problem
7-54
Algebraic Formulation
7-55
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
7-56
Woodridge Pewter Company
7-58
Spreadsheet Solution
A B C D E F G H
1 Woodridge Pewter Company
2
3 Platters Bowls Pitchers
4 Sales Price $100 $85 $75
5 Variable Cost $60 $50 $40
6 Fixed Cost $400 $250 $300
7
8 Constraint Usage (per unit produced) Total Available
9 Labor (hrs.) 3 1 4 60 <= 130
10 Pewter (lbs.) 5 4 3 240 <= 240
11
12 Lease Equipment? 0 1 0
13 Revenue $5,100
14 Production Quantity 0 60 0 Variable Cost $3,000
15 <= <= <= Fixed Cost $250
16 Produce only if Lease 0 99 0 Profit $1,850
7-59
Electrical Generator Startup Planning (Fixed Costs)
• To generate electricity, a generator must be started up, and associated with this
is a fixed startup cost.
• All of the generators are shut off at the end of each day.
Generator
A B C D E
Fixed Startup Cost $2,450 $1,600 $1,000 $1,250 $2,200
Variable Cost (per MW) $3 $4 $6 $5 $4
Capacity (MW) 2,000 2,800 4,300 2,100 2,000
7-60
Spreadsheet Solution
A B C D E F G H I J
1 Electrical Utility Generator Startup Planning
2
3 Generator A Generator B Generator C Generator D Generator E
4 Fixed Startup Cost $2,450 $1,600 $1,000 $1,250 $2,200
5 Cost per Megawatt $3 $4 $6 $5 $4
6 Max Capacity (MW) 2,000 2,800 4,300 2,100 2,000
7
8 Startup? 1 1 0 1 0
9 Total MW MW Needed
10 MW Generated 2,100 3,000 0 900 0 6000 >= 6,000
11 <= <= <= <= <=
12 Capacity 2,000 2,800 0 2,100 0
13
14 Fixed Cost $5,300
15 Variable Cost $22,800
16 Total Cost $28,100
7-61
Facility Location
Questions:
Which plants should they keep open?
Which warehouses should they keep open?
How should they divide production among the open plants?
How much should be shipped from each plant to each warehouse, and from each
warehouse to each customer?
7-62
Data for Facility Location Problem
7-63
Spreadsheet Solution
A B C D E F G H I J K L M
1 Plant to Warehouse
2 Shipping + Production Fixed
3 Cost Warehouse 1 Warehouse 2 Warehouse 3 Cost Capacity
4 Plant 1 $650 $750 $850 $42,000 400
5 Plant 2 $500 $350 $550 $50,000 300
6 Plant 3 $450 $450 $350 $45,000 300
7 Plant 4 $400 $500 $600 $50,000 350
8 Plant 5 $550 $450 $350 $47,000 375
9
10 Shipment Total Actual
11 Quantities Warehouse 1 Warehouse 2 Warehouse 3 Shipped Capacity Open? Total Costs
12 Plant 1 0 0 0 0 <= 0 0 Shipping Cost (P-->W) $332,500
13 Plant 2 0 300 0 300 <= 300 1 Shipping Cost (W-->C) $37,375
14 Plant 3 0 0 275 275 <= 300 1 Fixed Cost (P) $142,000
15 Plant 4 0 0 0 0 <= 0 0 Fixed Cost (W) $90,000
16 Plant 5 0 0 375 375 <= 375 1 Total Cost $601,875
17 Total Shipped 0 300 650
18
19 Warehouse to Customer
20 Shipping Fixed
21 Cost Customer 1 Customer 2 Customer 3 Customer 4 Cost Capacity
22 Warehouse 1 $25 $65 $70 $35 $45,000 600
23 Warehouse 2 $50 $25 $40 $60 $25,000 400
24 Warehouse 3 $60 $20 $40 $45 $65,000 900
25
26 Shipment Shipped Shipped Actual
27 Quantities Customer 1 Customer 2 Customer 3 Customer 4 Out In Capacity Open?
28 Warehouse 1 0 0 0 0 0 <= 0 <= 0 0
29 Warehouse 2 250 0 50 0 300 <= 300 <= 400 1
30 Warehouse 3 0 225 150 275 650 <= 650 <= 900 1
31 Total Shipped 250 225 200 275
32 >= >= >= >=
33 Needed 250 225 200 275
7-64
Network Optimization Models
7-65
Network Flow Models
Supply or
Source
Consumption point or
Sink
There can be a source of oil coming into the network, such as an oil field
There can be a sink, a place where oil gets consumed, such as a refinery
There can be flow to that node from other nodes
There can be flow from that node to other nodes
Three Related Network Flow Problems
Number of
Time Period Agents Needed
12am – 4am 11
4am – 8am 15
8am – 12pm 31
12pm – 4pm 17
4pm – 8pm 25
8pm – 12am 19
Question: How many reservation agents should work each 8-hour shift?
LP Example #3
• We need to take care of the future cash flow in the table below
Annual trips
Distances between cities
Boston 885
Los San
Boston Chicago Dallas Denver Angeles Miami New York Phoenix Pittsburgh Francisco Seattle Chicago 760
Boston 0 983 1815 1991 3036 1539 213 2664 792 2385 2612 Dallas 1124
Chicago 983 0 1205 1050 2112 1390 840 1729 457 2212 2052 Denver 708
Dallas 1815 1205 0 801 1425 1332 1604 1027 1237 1765 2404
Denver 1991 1050 801 0 1174 2041 1780 836 1411 1765 1373
Los Angeles 1224
Los Angeles 3036 2112 1425 1174 0 2757 2825 398 2456 403 1909 Miami 1152
Miami 1539 1390 1332 2041 2757 0 1258 2359 1250 3097 3389 New York 1560
New York 213 840 1604 1780 2825 1258 0 2442 386 3036 2900
Phoenix 1222
Phoenix 2664 1729 1027 836 398 2359 2442 0 2073 800 1482
Pittsburgh 792 457 1237 1411 2456 1250 386 2073 0 2653 2517 Pittsburgh 856
San Francisco 2385 2212 1765 1765 403 3097 3036 800 2653 0 817 San Francisco 1443
Seattle 2612 2052 2404 1373 1909 3389 2900 1482 2517 817 0 Seattle 612