Hand Simulation Examples
1. Consider a batch manufacturing process in which a machine processes jobs in batches of three units. The process starts only when there are three or more jobs in the buffer in front of the machine. Otherwise, the machine stays idle until the batch is completed. Assume that job interarrival times are uniformly distributed between 2 and 8 hours, and batch service times are uniformly distributed between 5 and 15 hours. Assuming the system is initially empty, simulate the system manually for three batch service completions and calculate the following statistics:
• Average number of jobs in the buffer (excluding the batch being served)
• Probability distribution of number of jobs in the buffer (excluding the batch being served)
• Machine utilization
• Average job waiting time (time in buffer)
• Average job system time (total time in the system, including processing time)
• System throughput (number of departing jobs per unit time)
Approach :
• After each arrival, schedule the next interarrival time, and when each batch goes into service, schedule it's service completion time. To obtain these quantities, use random numbers obtained from Table A.1 [See Banks et al., 2009, p. 610] (these are equally likely between 0 and 1, and statistically independent of each other).
• Then transform these numbers as follows :
(a) To generate the next random interarrival time (A), get the next random number R from Table A.1 and set A = 2 + 6R
(b) To generate the next random batch service time (B), get the next random number R from Table A.1 and set B = 5 + 10R