0% found this document useful (0 votes)
29 views

07queue - Part01 - Service Simulation

This document discusses service simulation and outlines different levels of complexity based on the number of servers and services. It provides examples of less complex cases with one server and one fixed time service, and more complex cases with random time services, multiple servers, or both random servers and services.

Uploaded by

Anna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

07queue - Part01 - Service Simulation

This document discusses service simulation and outlines different levels of complexity based on the number of servers and services. It provides examples of less complex cases with one server and one fixed time service, and more complex cases with random time services, multiple servers, or both random servers and services.

Uploaded by

Anna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

PART 1

Service Simulation
Why Simulation?
2

• Simulation is used to imitate the real operation and gather


statistic of certain information.
• Example: Simulation at a bank counter, train ticket machines etc.

• Queue simulation is the replication of the real queue. It will retain


the queue concept: first item in queue will be served prior to the
next item. (
• Simulation process is used to produce statistical reports:
• arrival rates and patterns,
• waiting and service times
• percentage of time the automated equipment is utilized.
Case 1-Drive through car wash
• Each car wash takes a fixed amount of time. (let say 10 minutes)
• The next customer is likely to arrive within 1-9 minutes after the
current customer. (not realistic, but ok)
• Observe time of arrival and gaps between arrival.
• Output:
• number of customer arrive.
• Longest waiting time.
• Average waiting time

One server with one fixed service time.


One queue with random arrival.
fixed service time (1 service) = 10 minutes
startTime = 8.00am endTime = 12pm

Input
Output
7:58
8:03, 1. Number of customer arrive.
8:10, 2. Longest waiting time.
8:17, 3. Average waiting time
8:26,
8:31
• If the arrival of car is as follows: 7:58, 8.03, 8:10, 8:17, 8:26, 8:31
With fixed service time = 10 minutes
• Info: startTime = 8.00am endTime = 12pm

#customer Arriving time Waiting time Start wash End wash

1 7:58 0 8.00 8.10


2 8.03 8 min 8.11 8.21
3 8.10 12 min 8:22 8.32
4 8.17 16 min 8:33 8:43
5 8.26 x 8:44 8:54
6 8:31 y 8:55 9:05

Output:
(1)number of customer arrive,
(2)Longest waiting time,
(3)Average waiting time
Simulation
Complexity
Requirement:
• Information that need to identify about service simulation is its
complexity.
• These complexities depend on:
(1) number of servers
(2) number of services provided.

Example #SERVER #SERVICES


cinema ticket counter Many counter 1 service (buying ticket)

auto teller machine One machine 2 services: (1)withdraw money (2)Transfer money

7
Case 1 Fixed time service
Simulation Complexity

One server with one service.


One queue with many customers.

random arrival

Example:
Case: Queue at Car wash machine
1 machine with 1 type of wash,
Many cars arrives each day.
Case 2 Random time service
Simulation Complexity

One server with many services.


One queue with many customers.

random arrival

Example:
Case: Queue at ATM Machine
1 machine with 3 type of services
Services: 1.withdraw, 2.transfer money, 3.top-up TouchNGo
Many customers arrives each day.
Random Random time service
Server
Simulation Complexity

Many servers with one service.


One queue with many customers.

random arrival
Case 3

Example:
Case: Checkout counter at Supermarket
Many counter, for many customer to
make payment
Random Random time service
Server
Simulation Complexity

Many servers with Many services.


One queue with many customers.

random arrival
Case 4

Example:
Case: Bank Counter
Many counter, many services
Services: saving acct, withdraw money, loan
payment, credit card
One queue (queue number) with many customers
How complex is this case?

You might also like