Title: WAITING LINES AND SIMULATION
1WAITING LINES AND SIMULATION
- I. WAITING LINES (QUEUEING)
-
- II. SIMULATION
2WAITING LINES
- I. Length of line number of people in queue
- II. Time waiting in line
- III. Efficiency waiting vs idle server
- IV. Cost of waiting
3WAITING LINES
- ASSUMTIONS
- 1) FIRST COME FIRST SERVE
- 2) ARRIVALS COME FROM VERY LARGE POPULATION
- 3) NUMBER OF ARRIVALS IS POISSON
- 4) SERVICE TIME IS EXPONENTIAL
- 5) ARRIVALS INDEPENDENT
4APPLICATIONS
- BANK TELLER LINE, CAR WASH
- INTERNET CABLE VS PHONE LINE
- WAITING FOR CABLE GUY
- METERED FREEWAY ON RAMPS
- WAREHOUSE ORDERS WAIT TO BE SHIPPED
- AIRPLANES WAITING TO LAND
5(No Transcript)
6(No Transcript)
7EXAMPLE AUTO REPAIR
- ONE MECHANIC
- MAY NOT BE POISSON IF CUSTOMERS ARE CLUSTERED
EARLY MORNING OR AFTER WORK - MAY NEED TO USE SIMULATION LATER
8(No Transcript)
9(No Transcript)
10LAverage Length
- ALL customers in system
- Waiting AND being served
11(No Transcript)
12(No Transcript)
13LqAverage Length of queue
- Customers waiting in line
- Number waiting to be served
14(No Transcript)
15(No Transcript)
16WAv Time customer in system
- From arrival time to departure time
- Time waiting and being served
17(No Transcript)
18(No Transcript)
19WqAv time customer waits in queue
- Waiting to be served
- Marketing, Service operations management
- Customers may go to competitor if Wq big
- Exception lowest price(trade off)
- Car dealer Wq0
20(No Transcript)
21(No Transcript)
22Interpret Wq
- Wq40 minutes waiting in line
- W60 minutes in system
- 20 minutes being served
23UUtilization
- Uefficiency
- Probability server is busy
- Probability customer has to wait
24(No Transcript)
25U2/3
26PoP(zero customers in system)
- Po1-U
- P(server is idle)
- P(customer does not have to wait)
- Here Po .33
27COST OF WAITING
- SUPPOSE EACH HOUR A CUSTOMER WAITS COSTS 10
28INTANGIBLE COST
- NOT ACCOUNTING COST
- MARKETING ESTIMATE
- USED FOR DECISION MAKING
29SUPPOSE MECHANIC RESIGNS
- TWO ALTERNATIVE ACTIONS
- ACT 1 MECHANIC 1, 17/HR
LABOR COST, 3 CARS/HR - ACT 2 MECHANIC 2,
19/HR, 4 CARS/HR - 8 HRS/DAY
30MINIMIZE TOTAL COST
- TOTAL COST
WAITING COST LABOR COST - LABOR COST (8)(COST/HR)
- WAIT COST (HRS WAITING)(10)
- AVERAGE CARS ARRIVE/HR 2
- TOTAL CARS/DAY 8(2)16
31(No Transcript)
32MECHANIC 1
33(No Transcript)
34MECHANIC 2
35(No Transcript)
36WAIT COST
MECHANIC1 MECHANIC2
SERVED/HR 3 4
WAIT TIME .67 HR .25 HR
DAILY WAIT TIME .67(16) 10.67HR .25(16) 4HR
WAIT COST 10.67(10)107 4(10)40
37LABOR COST
MECHANIC1 MECHANIC2
HOURLY WAGE 17/HR 19/HR
DAILY LABOR COST 8(17)136 8(19)152
38Total cost
MECHANIC1 MECHANIC2
WAIT COST 107 40
LABOR COST 136 152
TOTAL COST 243 192MIN
39HIRE SECOND MECHANIC?
- SIMILAR TABLE 2
SERVERS VS 1 SERVER
40II. SIMULATION
- DEFINE PROBLEM
- DEFINE VARIABLES
- BUILD MODEL IMITATE BEHAVIOR OF REAL WORLD
- LIST ALTERNATIVE ACTIONS
- RANDOM NUMBERS
- CHOOSE BEST ALTERNATIVE
41MONTE CARLO SIMULATION
- ADVANTAGES
- Flexibility
- Probabilities
- Client understands model
- Familiar simulations dice, board games, video
games, flight simulator
- DISADVANTAGES
- No mathematical optimization (LP guarantees
optimum) - Trial and error
- Might not try best action
42EXAMPLES
- APOLLO 13 EMERGENCY RETURN
- WEATHER FORECAST
- SUGAR PLANTATION DECISION WHICH FIELD TO BURN
43EXAMPLE WAIT LINE
- PREVIOUS SECTION
- RESTRICTIVE ASSUMPTIONS
- EXACT FORMULAS
- SIMULATION
- NO RESTRICTIVE ASSUMPTIONS
- ONLY APPROXIMATIONS
44EXAMPLE WAIT LINE
- REFERENCE RENDER, BARRY
- QUANTITATIVE ANALYSIS, P 708
- BARGES ARRIVE AT PORT
- BARGES UNLOADED IN PORT
- OBJECTIVE MINIMIZE DELAY
- FCFSFIRST COME FIRST SERVED
45GIVEN PROBABILITY DISTRIBUTIONS
- X1 NUMBER OF BARGES ARRIVING AT PORT
- X2 MAXIMUM NUMBER OF BARGES UNLOADED IN PORT
46ARRIVALS
X1 P(X1)
O .13
1 .17
2 .15
3 .25
4 .20
5 .10
47STEP1CUMULATIVE PROB
X1 P(X1) P(X1ltx)
O .13 .13 P(X1lt0)
1 .17 .30 P(X1lt1)
2 .15 .45 P(X1lt2)
3 .25 .70
4 .20 .90
5 .10 1
48STEP 2 RANDOM NUMBER INTERVALS
X1 P(X1) P(Xltx) X1 RN
O .13 .13 P(X1lt0) 01 to 13
1 .17 .30 P(X1lt1) 14 to 30
2 .15 .45 P(X2lt2) 31 to 45
3 .25 .70 46 to 70
4 .20 .90 71 to 90
5 .10 1 91 to 00
49STEP 3 SIMULATE ARRIVALS
DAY X1 RN (GIVEN) SIMULATED ARRIVALS
1 06 0
2 50 3
3 88 4
4 53 3
50MAX UNLOADED
X2 P(X2) GIVEN
1 .05
2 .15
3 .50
4 .20
5 .10
51STEP 4 CUMULATIVE PROB
X2 P(X2) P(X2ltx)
1 .05 .05
2 .15 .20
3 .50 .70
4 .20 .90
5 .10 1
52STEP 5 RANDOM NUMBER INTERVALS
X2 P(X2) P(X2ltx) X2 RN
1 .05 .05 01 to 05
2 .15 .20 06 to 20
3 .50 .70 21 to 70
4 .20 .90 71 to 90
5 .10 1 91 to 00
53STEP 6 SIMULATE UNLOADING
DAY X2 RN (GIVEN) SIMULATED MAXIMUM UNLOADED
1 63 3
2 28 3
3 02 1
4 74 4
54UNLOADEDMIN(3),(4)
(1)DE-LAYED (2) ARRIV (3) TOTAL (4)MAX UNL UNLOADED
0 0 0 3 MIN(0,3 0
0 3 3 3 MIN(3,3 3
0 4 4 1 MIN(4,1 1
4-13 3 336 4 MIN(6,4 4
55AVERAGE NUMBER DELAYED
- AV TOTAL DELAYED
TOTAL NUMBER DAYS
¾ 0.75 - REAL-WORLD WOULD RE-DO SIMULATION WITH MORE
WORKERS TO UNLOAD BARGES TO RE-CALCULATE AV