Problem_8_Explanation_chapter14

Problem_8_Explanation_chapter14 - Problem 8 Explanation The...

Info icon This 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,
Image of page 1

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

View Full Document Right 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.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '10
  • AZAD
  • Following, SEPTA Regional Rail, Massachusetts Bay Transportation Authority, Randomness, Hardware random number generator

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern