07queue - Part01 - Service Simulation
07queue - Part01 - Service Simulation
Service Simulation
Why Simulation?
2
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
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.
auto teller machine One machine 2 services: (1)withdraw money (2)Transfer money
7
Case 1 Fixed time service
Simulation Complexity
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
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
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
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?