You are on page 1of 4

Homework 2 solution Consider the following continuously operating job shop.

Interarrival times of jobs are distributed as follows: Time between arrivals (hours) 0 1 2 3

probability 0.23 0.37 0.28 0.12

Processing times for jobs are normally distributed with mean 50 minutes and standard deviation 8 minutes. construct a simulation table, and perform a simulation for 10 new customers. Assume that when the simulation begins there is one job being processed (scheduled to be completed in 25 minutes) and there is one job with a 50-minute processing time in the queue. (a) What was the average time in the queue for the 10 new jobs? (b) What was the average processing time of the 10 new jobs? c) What was the maximum time in the system for the 10 new jobs? arrival time 0 60 120 180 <=180 culmulative probability 0 0.23 0.6 0.88 1

job# A B 1 2 3 4 5 6 7 8 9 10 average

arriva interarrival arrival rand# time time given unknown 0 given unknown 0 0.58999162 60 60 0.69112022 120 180 0.05743104 0 180 0.30720634 60 240 0.48770137 60 300 0.80047582 120 420 0.19452891 0 420 0.30114034 60 480 0.85851617 120 600 0.8373517 120 720

service time 25 50 44 52 42 48 52 53 45 47 50 57 49

service start time 0 25 75 180 232 274 322 420 473 518 600 720

time wait in queue 0 25 15 0 52 34 22 0 53 38 0 0 21

service end time 25 75 119 232 274 322 374 473 518 565 650 777

The average time in the queue for the 10 new jobs is The average processing time for the 10 new jobs is The maximum time in the system for the 10 new jobs

21 49 98

n 8 minutes. en the simulation is one job with a

time spend in system 25 75 59 52 94 82 74 53 98 85 50 57

A bank has one drive-in teller and room for one additional customer to wait. Customers arriving when the queue is full, park and go inside the bank to transact business. The time-between-arrivals and service time-distributions are given below Time between Arrivals (minutes) 0 1 2 3 4 5 Service Time (minutes) 1 2 3 4

P( ) 0.09 0.17 0.27 0.2 0.15 0.12

P( ) 0.2 0.4 0.28 0.12

Simulate the operation of the drive-in teller for 10 new customers. The first of the 10 new customers arrive at a time determined at random. Start the simulation with one customer being served, leaving at time 3, and one in the queue. How many customers went into the bank to transact business? arrival time 0 1 2 3 4 5 <=5 cum. P( ) service time 0 0.09 0.26 0.53 0.73 <=4 0.88 1 cum. P( ) 1 2 3 4 0 0.2 0.6 0.88 1

customer# A B 1 2 3 4 5 6 7 8 9 10

arrival rand# given given 0.344995 0.018257 0.316725 0.965803 0.001237 0.813686 0.448835 0.672207 0.3827 0.416239

interarrival T unknown unknown 2 0 2 5 0 4 2 3 2 2

arrival T 0 0 2 2 4 9 9 13 15 18 20 22

service rand# given 0.761148 0.053983 0.971637 0.198008 0.828854 0.18582 0.843469 0.663197 0.80573 0.657295 0.167777

-99 service start/finish time indicat customer who goes in bank, rathe in queue in queue service T before arriv after arriv 3 0 0 3 0 1 1 1 1 4 1 1 1 1 1 3 0 1 1 1 1 3 0 1 3 1 1 3 0 1 3 1 1 1 0 1

number of customers who we

-99 service start/finish time indicates a customer who goes in bank, rather than joining queue service service Go in starts ends bank? 0 3 no 0 3 6 no 0 -99 -99 yes 1 -99 -99 yes 1 -99 -99 yes 1 9 12 no 0 -99 -99 yes 1 13 16 no 0 -99 -99 yes 1 18 21 no 0 -99 -99 yes 1 22 23 no 0 number of customers who went in bank: 6

You might also like