Ilovepdf Merged
Ilovepdf Merged
MANAGEMENT
SCIENCE, 13e
Anderson Slides by
Sweeney JOHN
Williams LOUCKS
Martin St. Edward’s
University
Transportation Problem
• Network Representation
• General LP Formulation
Assignment Problem
• Network Representation
• General LP Formulation
Transshipment Problem
• Network Representation
• General LP Formulation
Network Representation
1 d1
c11
s1 1 c12
c13
2 d2
c21
s2 2 c22
c23
3 d3
Sources Destinations
x
j =1
ij si i =1, 2, ,m Supply
σ𝑚
𝑖=1 𝑥𝑖𝑗 = 𝑑𝑗 j=1,2,…,n Demand
Optimal Solution
Destination
Mode San Diego Norfolk Pensacola
Truck $12 $6 $5
Railroad 20 11 9
Airplane 30 26 28
Solution Summary
• San Diego will receive 1000 lbs. by truck
and 3000 lbs. by airplane.
• Norfolk will receive 2000 lbs. by truck
and 500 lbs. by railroad.
• Pensacola will receive 2500 lbs. by railroad.
• The total shipping cost will be $142,000.
Network Representation
c11
1 1
c12
c13
Agents Tasks
c21
c22
2 2
c23
c31
c32
3 c33 3
continued
x
j =1
ij 1 i =1, 2, ,m Agents
m
x
i =1
ij = 1 j =1, 2, ,n Tasks
Network Representation
50
West. A
36
Subcontractors 16 Projects
28
Fed.
30 B
18
35 32
Gol. C
20
25 25
Univ.
14
© 2008 Thomson South-Western. All Rights Reserved
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
publicly accessible website, in whole or in part. Slide 27
Assignment Problem: Example
Min 50x11+36x12+16x13+28x21+30x22+18x23
+35x31+32x32+20x33+25x41+25x42+14x43
s.t. x11+x12+x13 < 1
x21+x22+x23 < 1
Agents
x31+x32+x33 < 1
x41+x42+x43 < 1
x11+x21+x31+x41 = 1
x12+x22+x32+x42 = 1 Tasks
x13+x23+x33+x43 = 1
xij = 0 or 1 for all i and j
Network Representation
c36
3
c13
s1 1
c37 6 d1
c14
c15 c46
Supply 4 c47 Demand
c23
c24 c56
s2 2 7 d2
c25
5 c57
Sources Destinations
Intermediate Nodes
Min cx
all arcs
ij ij
s.t.
arcs out
xij − x
arcs in
ij si Origin nodes i
arcs out
xij − x
arcs in
ij =0 Transhipment nodes
x
arcs in
ij −
arcs out
xij = d j Destination nodes j
Zeron N Zeron S
Arnold 5 8
Supershelf 7 4
The costs to install the shelving at the various
locations are:
Network Representation
ZROX
Zrox 50
5 1
Zeron
75 Arnold
ARNOLD
N 5
8 8
Hewes
HEWES 60
7 3
75
Super Zeron
WASH 4
Shelf S
4 BURN
4 Rock-
Rite 40
Constraints Defined
Amount Out of Arnold: x13 + x14 < 75
Amount Out of Supershelf: x23 + x24 < 75
Amount Through Zeron N: x13 + x23 - x35 - x36 - x37 = 0
Amount Through Zeron S: x14 + x24 - x45 - x46 - x47 = 0
Amount Into Zrox: x35 + x45 = 50
Amount Into Hewes: x36 + x46 = 60
Amount Into Rockrite: x37 + x47 = 40
Solution
ZROX
Zrox 50
5 75 1
Zeron
75 Arnold
ARNOLD
N 5
8 8
Hewes
HEWES 60
7 3 4
Super Zeron
75 Shelf
WASH
S
4 BURN
4 Rock-
Rite 40
Shortest-Route Problem
Maximal Flow Problem
Min
all arcs
c ij xij
s.t.
arcs out
xij 1 Origin node i
arcs out
xij x
arcs in
ij 0 Transhipment nodes
x
arcs in
ij 1 Destination node j
Network Model
F
2 5
K L
A
B G
C J
3
6
1
D I
H Paducah
Lewisburg E M
4
LP Formulation
• Objective Function
Min 80x12 + 40x13 + 80x14 + 130x15 + 180x16 + 60x25
+ 100x26 + 30x34 + 90x35 + 120x36 + 30x43 + 50x45
+ 90x46 + 60x52 + 90x53 + 50x54 + 30x56
• Node Flow-Conservation Constraints
x12 + x13 + x14 + x15 + x16 = 1 (origin)
– x12 + x25 + x26 – x52 = 0 (node 2)
– x13 + x34 + x35 + x36 – x43 – x53 = 0 (node 3)
– x14 – x34 + x43 + x45 + x46 – x54 = 0 (node 4)
– x15 – x25 – x35 – x45 + x52 + x53 + x54 + x56 = 0 (node 5)
x16 + x26 + x36 + x46 + x56 = 1 (destination)
Solution Summary
LP Formulation
(as Capacitated Transshipment Problem)
• There is a variable for every arc.
• There is a constraint for every node; the flow out
must equal the flow in.
• There is a constraint for every arc (except the
added sink-to-source arc); arc capacity cannot be
exceeded.
• The objective is to maximize the flow over the
added, sink-to-source arc.
LP Formulation
(as Capacitated Transshipment Problem)
Network Model
3
Denver 2 5 St. Louis
3
4 2 3 2
3 4
San 4 3
Diego 1 4 7 Tampa
3 1
3 5 1 5 Dallas
Houston 3 6 Atlanta
6
LP Formulation
• 18 variables (for 17 original arcs and 1 added arc)
• 24 constraints
• 7 node flow-conservation constraints
• 17 arc capacity constraints (for original arcs)
LP Formulation
• Objective Function
Max x71
• Node Flow-Conservation Constraints
x12 + x13 + x14 – x71 = 0 (node 1)
– x12 + x24 + x25 – x42 – x52 = 0 (node 2)
– x13 + x34 + x36 – x43 = 0 (and so on)
– x14 – x24 – x34 + x42 + x43 + x45 + x46 + x47 – x54 – x64 = 0
– x25 – x45 + x52 + x54 + x57 = 0
– x36 – x46 + x64 + x67 = 0
– x47 – x57 – x67 + x71 = 0
LP Formulation (continued)
• Arc Capacity Constraints
x12 < 4 x13 < 3 x14 < 4
x24 < 2 x25 < 3
x34 < 3 x36 < 6
x42 < 3 x43 < 5 x45 < 3 x46 < 1 x47 < 3
x52 < 3 x54 < 4 x57 < 2
x64 < 1 x67 < 5
2
2 5
3 1 2
Source Sink
4 3
1 4 7
3 2 5
10 3 6
5
2
2 5
3 1 2
Source Sink
4 3
1 4 7
1
3 1 5
10 3 6
4
Distribution of Arrivals
• Generally, the arrival of customers into the system
is a random event.
• Frequently the arrival pattern is modeled as a
Poisson process.
Distribution of Service Times
• Service time is also usually a random variable.
• A distribution commonly used to describe service
time is the exponential distribution.
Queue Discipline
• Most common queue discipline is first come, first
served (FCFS).
• Other disciplines assign priorities to the waiting
units and then serve the unit with the highest
priority first.
S1
S3
Single channel
Poisson arrival-rate distribution
Exponential service-time distribution
Unlimited maximum queue length
Infinite calling population
Examples:
• Single-window theatre ticket sales booth
• Single-scanner airport security station
Answer
P (x = 0) = (50e -5)/0! = e -5 = .0067
Answer
P (x = 3) = (53e -5)/3! = 125(.0067)/6 = .1396
Answer
P (x > 6) = 1 - P (x = 0) - P (x = 1) - P (x = 2)
- P (x = 3) - P (x = 4) - P (x = 5)
- P (x = 6)
= 1 - .762 = .238
Answer
Since Joe Ferris can process an order in an
average time of 2 minutes (= 2/60 hr.), then the mean
service rate, µ, is µ = 1/(mean service time), or 60/2.
m = 30/hr.
Answer
Since the units are expressed in hours,
P (T < 1 minute) = P (T < 1/60 hour).
Using the exponential distribution, P (T < t ) = 1 - e-µt.
Hence, P (T < 1/60) = 1 - e-30(1/60)
= 1 - .6065 = .3935 = 39.35%
Answer
Since the exponential distribution is a continuous
distribution, the probability a service time exactly
equals any specific value is 0.
Answer
The percentage of orders requiring more than 3
minutes to process is:
P (T > 3/60) = e-30(3/60) = e -1.5 = .2231 = 22.31%
Utilization Factor
Question
What percentage of the time is Joe processing
orders?
Answer
The percentage of time Joe is processing orders is
equivalent to the utilization factor, /m. Thus, the
percentage of time he is processing orders is:
/m = 20/30
= 2/3 or 66.67%
Answer
Since Joe Ferris processes orders at a mean rate of
µ = 30 per hour, then = µ = 30 and the utilization
factor is 1.
This implies the queue of orders will grow
infinitely large. Hence, Joe alone cannot handle this
increase in demand.
m ( m )k (30)(30)(30 30)2 1
Lq = ( P0 ) = (1/3) =
( k − 1)!( km − ) 2
(1!)(2(30) − 30) 2
3
L = Lq + ( /µ) = 1/3 + (30/30) = 4/3
W = L/ = (4/3)/30 = 4/90 hr. = 2.67 min.
Answer
The average number of orders waiting to be
filled is Lq. This was calculated earlier as 1/3.
Formula Spreadsheet
A B C D E F G H
1 Number of Channels k 2
2 Mean Arrival Rate (Poisson) 30
3 Mean Service Rate (Exponential ) m 30
4 Operating Characteristics
5 Probability of no orders in system Po =Po(H1,H2,H3)
6 Average number of orders waiting Lg ##
7 Average number of orders in system L =H6+H2/H3
8 Average time (hrs) an order waits Wq =H6/H2
9 Average time (hrs) an order is in system W =H8+1/H3
10 Probability an order must wait Pw =H2/H3
Spreadsheet Solution
A B C D E F G H
1 Number of Channels k 2
2 Mean Arrival Rate (Poisson) 30
3 Mean Service Rate (Exponential ) m 30
4 Operating Characteristics
5 Probability of no orders in system Po 0.333
6 Average number of orders waiting Lg 0.333
7 Average number of orders in system L 1.333
8 Average time (hrs) an order waits Wq 0.011
9 Average time (hrs) an order is in system W 0.044
10 Probability an order must wait Pw 1.000
Problem Formulation
Decision Making without Probabilities
Decision Making with Probabilities
Decision Analysis with Sample Information
States of Nature
s1 s2 s3
d1 4 4 -2
Decisions d2 0 3 -1
d3 1 5 -3
Maximum
Decision Payoff
Maximax d1 4 Maximax
decision d2 3 payoff
d3 5
Formula Spreadsheet
A B C D E F
1 PAYOFF TABLE
2
3 Decision State of Nature Maximum Recommended
4 Alternative s1 s2 s3 Payoff Decision
5 d1 4 4 -2 =MAX(B5:D5) =IF(E5=$E$9,A5,"")
6 d2 0 3 -1 =MAX(B6:D6) =IF(E6=$E$9,A6,"")
7 d3 1 5 -3 =MAX(B7:D7) =IF(E7=$E$9,A7,"")
8
9 Best Payoff =MAX(E5:E7)
Solution Spreadsheet
A B C D E F
1 PAYOFF TABLE
2
3 Decision State of Nature Maximum Recommended
4 Alternative s1 s2 s3 Payoff Decision
5 d1 4 4 -2 4
6 d2 0 3 -1 3
7 d3 1 5 -3 5 d3
8
9 Best Payoff 5
Minimum
Decision Payoff
Maximin d1 -2 Maximin
decision d2 -1 payoff
d3 -3
Formula Spreadsheet
A B C D E F
1 PAYOFF TABLE
2
3 Decision State of Nature Minimum Recommended
4 Alternative s1 s2 s3 Payoff Decision
5 d1 4 4 -2 =MIN(B5:D5) =IF(E5=$E$9,A5,"")
6 d2 0 3 -1 =MIN(B6:D6) =IF(E6=$E$9,A6,"")
7 d3 1 5 -3 =MIN(B7:D7) =IF(E7=$E$9,A7,"")
8
9 Best Payoff =MAX(E5:E7)
Solution Spreadsheet
A B C D E F
1 PAYOFF TABLE
2
3 Decision State of Nature Minimum Recommended
4 Alternative s1 s2 s3 Payoff Decision
5 d1 4 4 -2 -2
6 d2 0 3 -1 -1 d2
7 d3 1 5 -3 -3
8
9 Best Payoff -1
s1 s2 s3
d1 0 1 1
d2 4 2 0
d3 3 0 2
Maximum
Decision Regret
d1 1
Minimax d2 4 Minimax
decision d3 3 regret
Formula Spreadsheet
A B C D E F
1 PAYOFF TABLE
2 Decision State of Nature
3 Altern. s1 s2 s3
4 d1 4 4 -2
5 d2 0 3 -1
6 d3 1 5 -3
7
8 OPPORTUNITY LOSS TABLE
9 Decision State of Nature Maximum Recommended
10 Altern. s1 s2 s3 Regret Decision
11 d1 =MAX($B$4:$B$6)-B4 =MAX($C$4:$C$6)-C4 =MAX($D$4:$D$6)-D4 =MAX(B11:D11) =IF(E11=$E$14,A11,"")
12 d2 =MAX($B$4:$B$6)-B5 =MAX($C$4:$C$6)-C5 =MAX($D$4:$D$6)-D5 =MAX(B12:D12) =IF(E12=$E$14,A12,"")
13 d3 =MAX($B$4:$B$6)-B6 =MAX($C$4:$C$6)-C6 =MAX($D$4:$D$6)-D6 =MAX(B13:D13) =IF(E13=$E$14,A13,"")
14 Minimax Regret Value =MIN(E11:E13)
Solution Spreadsheet
A B C D E F
1 PAYOFF TABLE
2 Decision State
of Nature
3 Alternative s1 s2 s3
4 d1 4 4 -2
5 d2 0 3 -1
6 d3 1 5 -3
7
8 OPPORTUNITY LOSS TABLE
9 Decision State of Nature Maximum Recommended
10 Alternative s1 s2 s3 Regret Decision
11 d1 0 1 1 1 d1
12 d2 4 2 0 4
13 d3 3 0 2 3
14 Minimax Regret Value 1
Payoffs
s1 .4
10,000
s2 .2
2 s3 15,000
.4
d1 14,000
s1 .4
d2 8,000
1 s2 .2
3 18,000
d3 s3 .4
12,000
s1 .4
6,000
s2 .2
4 16,000
s3
.4
21,000
Formula Spreadsheet
A B C D E F
1 PAYOFF TABLE
2
3 Decision State of Nature Expected Recommended
4 Alternative s1 = 80 s2 = 100s3 = 120 Value Decision
5 d1 = Model A 10,000 15,000 14,000 =$B$8*B5+$C$8*C5+$D$8*D5 =IF(E5=$E$9,A5,"")
6 d2 = Model B 8,000 18,000 12,000 =$B$8*B6+$C$8*C6+$D$8*D6 =IF(E6=$E$9,A6,"")
7 d3 = Model C 6,000 16,000 21,000 =$B$8*B7+$C$8*C7+$D$8*D7 =IF(E7=$E$9,A7,"")
8 Probability 0.4 0.2 0.4
9 Maximum Expected Value =MAX(E5:E7)
Solution Spreadsheet
A B C D E F
1 PAYOFF TABLE
2
3 Decision State of Nature Expected Recommended
4 Alternative s1 = 80 s2 = 100s3 = 120 Value Decision
5 d1 = Model A 10,000 15,000 14,000 12600
6 d2 = Model B 8,000 18,000 12,000 11600
7 d3 = Model C 6,000 16,000 21,000 14000 d3 = Model C
8 Probability 0.4 0.2 0.4
9 Maximum Expected Value 14000
EVPI Calculation
• Step 1:
Determine the optimal return corresponding to
each state of nature.
• Step 2:
Compute the expected value of these optimal
returns.
• Step 3:
Subtract the EV of the optimal decision from
the amount determined in step (2).
Spreadsheet
A B C D E F
1 PAYOFF TABLE
2
3 Decision State of Nature Expected Recommended
4 Alternative s1 = 80 s2 = 100s3 = 120 Value Decision
5 d1 = Model A 10,000 15,000 14,000 12600
6 d2 = Model B 8,000 18,000 12,000 11600
7 d3 = Model C 6,000 16,000 21,000 14000 d3 = Model C
8 Probability 0.4 0.2 0.4
9 Maximum Expected Value 14000
10
11 Maximum Payoff EVwPI EVPI
12 10,000 18,000 21,000 16000 2000
EVSI Calculation
• Step 1:
Determine the optimal decision and its expected
return for the possible outcomes of the sample using
the posterior probabilities for the states of nature.
• Step 2:
Compute the expected value of these optimal
returns.
• Step 3:
Subtract the EV of the optimal decision obtained
without using the sample information from the
amount determined in step (2).
Favorable
State Prior Conditional Joint Posterior
80 .4 .2 .08 .148
100 .2 .5 .10 .185
120 .4 .9 .36 .667
Total .54 1.000
P(favorable) = .54
Unfavorable
State Prior Conditional Joint Posterior
80 .4 .8 .32 .696
100 .2 .5 .10 .217
120 .4 .1 .04 .087
Total .46 1.000
P(unfavorable) = .46
Formula Spreadsheet
A B C D E
1 Market Research Favorable
2 Prior Conditional Joint Posterior
3 State of Nature Probabilities Probabilities Probabilities Probabilities
4 s1 = 80 0.4 0.2 =B4*C4 =D4/$D$7
5 s2 = 100 0.2 0.5 =B5*C5 =D5/$D$7
6 s3 = 120 0.4 0.9 =B6*C6 =D6/$D$7
7 P(Favorable) = =SUM(D4:D6)
8
9 Market Research Unfavorable
10 Prior Conditional Joint Posterior
11 State of Nature Probabilities Probabilities Probabilities Probabilities
12 s1 = 80 0.4 0.8 =B12*C12 =D12/$D$15
13 s2 = 100 0.2 0.5 =B13*C13 =D13/$D$15
14 s3 = 120 0.4 0.1 =B14*C14 =D14/$D$15
15 P(Unfavorable) = =SUM(D12:D14)
Solution Spreadsheet
A B C D E
1 Market Research Favorable
2 Prior Conditional Joint Posterior
3 State of Nature Probabilities Probabilities Probabilities Probabilities
4 s1 = 80 0.4 0.2 0.08 0.148
5 s2 = 100 0.2 0.5 0.10 0.185
6 s3 = 120 0.4 0.9 0.36 0.667
7 P(Favorable) = 0.54
8
9 Market Research Unfavorable
10 Prior Conditional Joint Posterior
11 State of Nature Probabilities Probabilities Probabilities Probabilities
12 s1 = 80 0.4 0.8 0.32 0.696
13 s2 = 100 0.2 0.5 0.10 0.217
14 s3 = 120 0.4 0.1 0.04 0.087
15 P(Favorable) = 0.46
Top Half
s1 (.148)
$10,000
s2 (.185)
d1 4
s3 (.667)
$15,000
$14,000
s1 (.148)
d2 $8,000
s2 (.185)
2 5 $18,000
s3 (.667)
I1 d3 $12,000
s1 (.148)
(.54) $6,000
s2 (.185)
6 $16,000
s3 (.667)
1 $21,000
Bottom Half
1 s1 (.696) $10,000
I2 s2 (.217)
(.46) d1 7
s3 (.087)
$15,000
$14,000
s1 (.696)
d2 $8,000
s2 (.217)
3 8 $18,000
s3 (.087)
d3 $12,000
s1 (.696) $6,000
s2 (.217)
9
s3 (.087) $16,000
$21,000