Problem_8_Explanation_chapter14 - Problem 8 Explanation The...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Problem 8 Explanation The following is the explanation of how to build the simulation table for teller queue: We need a random number to generate time between two arrivals (r1). The random number for each arrival time is a number between 1 to 100, given in the following table (Table1): Time between car arrival (in min) Probability Random number 1 .20 1 to 20 2 .60 21 to 80 3 .10 81 to 90 4 .10 91 to 100 We need a random number to generate time of service per each customer (r2). This  random number for customer is a number between 1 to 100, given in the following table  (Table 2): Service time (min) Probability Random number 2 .10 1 to 10 3 .40 11 to 50 4 .20 51 to 70 5 .20 71 to 90 6 .10 91 to 100 The explanation of the simulation table is the following: One teller system Customer 1 arrives, then r1 is not needed (or you can put 0)  Arrival interval is not needed (or you can put 0), Arrival clock is not needed (or you can put 0), Enter facility clock is 0, Waiting time is 0, We generate a random number for r2. Let it be 39, from table 2 the service time for  random number 39 is 3,
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Time in the system is total of waiting time and service time which is 3 min. Duration time is the total time in the system and waiting time which is 3 min Time in the system is departure time minus arrival time which is 3-0 or 3 The first row of the table is: Custom er R1 Arrival  interva l Arrival  clock Enter  facility  clock Waitin g time Lengt h of  queue R2 Servic e time Departur e time Time  in  syste m 1 - 0 0 0 0 0 39 3 3 3 The second raw is for customer 2 We generate a random number for customer 2. Let it be 73. From table 1 we get the  arrival interval which is 2. The arrival clock for customer two is the arrival time of customer 1 plus arrival interval of  customer 2which is 2. The enter facility for customer 2 is the departure time of customer 1 which is 3, The waiting time for customer 2 is the difference between enter to facility for customer 2  and arrival clock for customer 2, which is (3-2) or 1, When customer 2 arrives there is no other customer in the queue, then queue length is  0, We generate a random number to represent service time for customer 2, let it be 72,  from table 2 the service time for random number 72 is 5 min, The departure time for the customer 1 plus the service time of customer 2. Which is 5+3  or 8, Time in the system is the difference between departure time and arrival time, which is 8- 2 or 6. Then second raw is added to simulation table:
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/17/2010 for the course MAT 540 taught by Professor Azad during the Spring '10 term at Strayer.

Page1 / 9

Problem_8_Explanation_chapter14 - Problem 8 Explanation The...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online