Consider 4 digits of your birthdate to simulate 4 customers, in a single queue single server system. For example, if yo
Posted: Fri May 20, 2022 10:26 am
Consider 4 digits of your birthdate to simulate 4 customers, in
a single queue single server system. For example, if your
birthdate
is 24/11/2001,
then 2, 4, 1,
and 1 will be the input as inter-arrival
time;
and 1, 1, 4,
and 2 as service time. If
your birthdate has 0, for
example, 20/09/2001, then
the interarrival time will
be 2, 1, 1,
and 9 ( replace
the 0 buy 1); and
the service time will
be 9, 1, 1,
and 2.
The given inter-arrival times and service times are in
minutes.
Conduct the “Hand” simulation using an excel sheet.
1) Display system, state variables, clock, events list, and
statistical counters, all after execution of each event.
2) Compute output performance measures (including:
The average delay in the queue in minutes/customer, average
number in the queue (customers/minute), the area under queue, Area
under busy, and Server utilization, ...; similar to the
example on the attached Excel sheet.
There are videos explaining how to conduct the "Hand"
simulation.
Use the attached pdf file to help how to compute the required
variables and follow the algorithm of the "Hand' simulation.
use the birthday 14/1/2000
Variables for Single-Queue-Single-Server Simulation Number of delay (number of customers served at any moment). Number_of_delay = Number_of_delay + 1, when customer starts of service. Total_delay (the delay time of each customer from the arrival time to start service time. If the customer waiting in queue then: Total_delay=Total_Delay + (Start Service Time of a customer) – (First Arrival Time in List of the customer). Area under Q(t) (total time of all customer waiting in queue until now). Q(t.)=Q(t.-1)+(na)*(t, -th-1), where Q(t.): Area under Q(t) current event, Q(t-1): Area under Q(t) of previous event, and nq: Number of customer waiting in queue. Area under B(t) (total time of server that serve the service). If server busy at the occurrence of current event then B(t)=B(t.)+( tn-to-1) Specify what to do at each event: A) At event of arrival, create next arrival. If the server is free or idle, send the customer to start service, then server become busy. Otherwise, it joins the queue. B) At event of service end, then server become free. If any customers waiting in queue remove first customer from the queue; send it for start of service. c) When first customer arrive, the server become occupied, the number of delay increase by one. D) Define the next event whether customer arrival or customer departure is to generate the random number of inter-arrival time and service time between the minimum and maximum of inter-arrival and service time that have been given. Define the next event: arrival or departure then move the simulation clock the next event time. E) The event occur, update system state (server status, number in queue, time of last event), statistic counter. F) Generate the next arrival time or next departure time according to the event occur. G) Then practice this step again until the number of delays equal to the number of required customers. H) After the simulation end, we get all the value of statistic counter, and the time of simulation end. Then we can calculate the mean of customer waiting in queue, mean of delay time, and percentage of server utilization to estimate of simulation on system. Calculate: The mean time of customer waiting in queue = (Area Under Q)/( time of simulation end), mean of delay time = (total delay)/(number of delay), and server_utilization= (Area under B)/(time of simulation end)
a single queue single server system. For example, if your
birthdate
is 24/11/2001,
then 2, 4, 1,
and 1 will be the input as inter-arrival
time;
and 1, 1, 4,
and 2 as service time. If
your birthdate has 0, for
example, 20/09/2001, then
the interarrival time will
be 2, 1, 1,
and 9 ( replace
the 0 buy 1); and
the service time will
be 9, 1, 1,
and 2.
The given inter-arrival times and service times are in
minutes.
Conduct the “Hand” simulation using an excel sheet.
1) Display system, state variables, clock, events list, and
statistical counters, all after execution of each event.
2) Compute output performance measures (including:
The average delay in the queue in minutes/customer, average
number in the queue (customers/minute), the area under queue, Area
under busy, and Server utilization, ...; similar to the
example on the attached Excel sheet.
There are videos explaining how to conduct the "Hand"
simulation.
Use the attached pdf file to help how to compute the required
variables and follow the algorithm of the "Hand' simulation.
use the birthday 14/1/2000
Variables for Single-Queue-Single-Server Simulation Number of delay (number of customers served at any moment). Number_of_delay = Number_of_delay + 1, when customer starts of service. Total_delay (the delay time of each customer from the arrival time to start service time. If the customer waiting in queue then: Total_delay=Total_Delay + (Start Service Time of a customer) – (First Arrival Time in List of the customer). Area under Q(t) (total time of all customer waiting in queue until now). Q(t.)=Q(t.-1)+(na)*(t, -th-1), where Q(t.): Area under Q(t) current event, Q(t-1): Area under Q(t) of previous event, and nq: Number of customer waiting in queue. Area under B(t) (total time of server that serve the service). If server busy at the occurrence of current event then B(t)=B(t.)+( tn-to-1) Specify what to do at each event: A) At event of arrival, create next arrival. If the server is free or idle, send the customer to start service, then server become busy. Otherwise, it joins the queue. B) At event of service end, then server become free. If any customers waiting in queue remove first customer from the queue; send it for start of service. c) When first customer arrive, the server become occupied, the number of delay increase by one. D) Define the next event whether customer arrival or customer departure is to generate the random number of inter-arrival time and service time between the minimum and maximum of inter-arrival and service time that have been given. Define the next event: arrival or departure then move the simulation clock the next event time. E) The event occur, update system state (server status, number in queue, time of last event), statistic counter. F) Generate the next arrival time or next departure time according to the event occur. G) Then practice this step again until the number of delays equal to the number of required customers. H) After the simulation end, we get all the value of statistic counter, and the time of simulation end. Then we can calculate the mean of customer waiting in queue, mean of delay time, and percentage of server utilization to estimate of simulation on system. Calculate: The mean time of customer waiting in queue = (Area Under Q)/( time of simulation end), mean of delay time = (total delay)/(number of delay), and server_utilization= (Area under B)/(time of simulation end)