0% found this document useful (0 votes)
265 views3 pages

TMA1301 Assignment T2 - 1617

This document provides instructions for a group assignment to simulate a queuing system using FreeMat. Students will be assigned to groups of 3-4 and must submit their FreeMat code and a report by Week 14. The report should include a flow chart, outputs, tables and evaluation of results. The simulation should generate service times, inter-arrival times and item numbers for up to 3 servers. It should allow choosing servers, number of customers, and display messages and tables throughout the simulation run and results.
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)
265 views3 pages

TMA1301 Assignment T2 - 1617

This document provides instructions for a group assignment to simulate a queuing system using FreeMat. Students will be assigned to groups of 3-4 and must submit their FreeMat code and a report by Week 14. The report should include a flow chart, outputs, tables and evaluation of results. The simulation should generate service times, inter-arrival times and item numbers for up to 3 servers. It should allow choosing servers, number of customers, and display messages and tables throughout the simulation run and results.
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/ 3

Assignment (20%)

Instructions:
1. This is an assignment done in groups of 3 or 4. Submit your group members’
name (3 or 4 members in a group) to your respective lecturer.

2. The date for the submission is on Monday of Week 14. Please hand in the
FreeMat code in CD attached together with the report. Label your CD with the
names of your group members and provide an e-mail address for contact
purposes.

3. For the report, write down the detail of your simulation, construct the diagram
such as flow-chart for each simulation and provide all outputs, table( service time,
inter-arrival time and simulation) and results (evaluation results).

4. Interview/Demo will be conducted throughout WEEK 14 and please refer to the


respective lecturer for further arrangement.

5. Creativity and extra effort will grant higher marks.

Queue simulator

Create a simulator for customer arrivals at any shops, restaurants, banks or etc for
acquisition of things, foods, services or etc. The simulation system should be able to
simulate a queuing system at most for three servers. Firstly, generate the table of the
service time, inter-arrival time and item number for three servers.

Service Time ………


Probability ……
CDF
Range

Inter-arrival Time ……..


Probability ……..
CDF
Range

Item number ……..


Probability ……..
CDF
Range
Price/
Processing
fee
For generation of random numbers for service time, inter-arrival time, number of
items and item number you can consider rand function from FreeMat, linear
congruential generators or other generators. User should be able to choose the type
of random number generator to be used before the simulation. Use rand function to
generate the seed number for the different generators. Adjust the range of random
numbers so that they are within the appropriate range. For further details please refer
to Chapter 4. On top of these,

a) user should be able to choose which server(s) to be at the counter


b) user should be able to select the number of customers,
c) exhibit the message for arrival, departure and so on from time to time. For
example:

Arrival of second customer at minute 2 and queue at the counter 2

Departure of first customer at minute 4.

Service for second customer started at minute 4.

d) display the table for the inter-arrival, service time and item number at the
beginning and simulation table at the end. (refer to the example in the notes).
Example of two servers as below:

n RN for Inter- Arrival Number of RNs for Item Total


Inter- arrival time items the item numbers price/fee
arrival time purchased/ number
time acquired
1 - 3 23, 60, 15 2, 6, 1 35
2 2 45, 89 4, 8 24
3 3 22,24,23 2,2,2 15
4
5
Separate the simulation table for the case more than one server based on the customers
they served:

Server 1:

n RN for Service Time Time Waiting Time


service time service service time spends
time begins ends in the
system
1
3
5

Server 2:

n RN for Service Time Time Waiting Time


service time service service time spends
time begins ends in the
system
2
4

e) evaluate the results of the simulation, for example average waiting time of a customer,
average inter-arrival time, average arrival time, average time spent, probability that a
customer has to wait in the queue and average service time for each server (refer to
the example in the notes).

You might also like