Simulation Sec
Simulation Sec
This chapter presents several examples of simulations that can be performed by devising a simulation table either manually or with a spreadsheet. The simulations in this chapter entail three steps:
For each repetition i , generate a value for each of the p inputs, and evaluate the function, calculating a value of the response A response typically depends on the inputs and one or more previous responses.
2.1 Simulation of Queueing Systems Queueing system is described by its calling population, the nature of the arrivals, the service mechanism.
Finally, service in Queueing system take by the order of their arrival (often called FIFO: first in, first out).
Note that the server has only two possible states: it is either busy or idle.
Random numbers are distributed uniformly and independently on the interval (0, 1). Random digits are uniformly distributed on the set Random numbers can also be generated in simulation packages and in spreadsheets such as Excel. For example, Excel has a macro function called RAND() that returns a .random. number between 0 and 1. In a single-server queueing system interarrival times and service times are generated by using random number.
These five interarrival times are used to compute the arrival times of six customers at the queueing system.
the interarrival times and service times used to simulate the single-server queueing system.
Time Service Begins(i)= max(Arrival Time(i), Time Service Begins(i-1)+ Service Time(i-1)). Time Service Ends(i)= Time Service Begins(i)+ Service Time(i).
The occurrence of the two types of events in chronological order is shown in Table 2.5
If we want generate random number to interarrival time and service time by other way