You are on page 1of 87

2018-SE-023

Sir Syed University of Engineering & Technology (SSUET)


Software EngineeringDepartment

Course Name: Simulations and Modelling (CE-


409) Semester: 7th
Batch:
2018
Sections: A
LAB MANUAL

Submitted By:

Syeda Rida Zainab (2018-SE-023)

Course Teachers:
Miss Hafsa

1
2018-SE-023

Index
S.no Lab Date Lab Name Pg. Signature Marks
No.
1 1 16–Feb- To create an Arena 4
2021 model using flow chat
modules and observe the
results of the simulation

2 2 16-Feb- To define the replication 9


2021 in ARENA and plot
different characteristics
of entities queue and
resources.
3 3 02-March- To analyze decide 27
2021 module and its types.

4 4 02-March- To analyze the Batch 40


2021 and Assign module

5 5 16-March- To analyze the 50


2021 Separate and Record
module.
6 6 16-March- Analyze Queue variables 58
2021
7 7 15-April- To analyze the seize 68
2021 delay and reduce
module.
8 8 18-April- To analyze the hold and 70
2021 signal module and
observe
the results of the
simulation run.
9 9 03-May- Hold and Signal Module 75
2021

10 10 14-May- To analyze the Search, 80


2021 Pickup and Drop-off
module.
11 11 25-May- To analyze the Seize and 83
2021 Release module.
12 12 25-May- To analyze the Gather 84
2021 and Disperse module.

2
LAB NO.1

Create, Process, Dispose module

OBJECTIVE:

To create an Arena model using flow chat modules and observe the results of the
simulation
LAB NO.2
Replication & Plot
OBJECTIVE:
To define the replication in ARENA and plot different characteristics of entities queue and
resources.

LAB TASK
1. Plot at least one characteristic of queue, entities and
resources. Here I am choosing attribute as Characteristics
2. Make 5 replication of simulation run fill the PMT for each replication.
2. Change Arrivals from 5 to 2.5 run the model for 5 replications and fill PMT
I have already set thi arrivals from 5 to 2.5 in previous task(Task 2) So this task is similar task 2.

4. Change the length of model to 720min inter-arrival time back to 5 and fill the PMT.
LAB NO.3
Decide Module
OBJECTIVE:
To analyze decide module and its types.

LAB TASK
1. Create part machine that works on part to decide whether they are good or bad.
Performance Measure Where to look In AREENA Result
reports
Total production Entity. Number out 50

Average delay in queue Queue. Waiting time- 0.04


Average
Maximum delay in queue Queue. Waiting time- -7.95
Maximum value
Average time in system Entity. Total Time- Average 0.053

Maximum time in system Entity. Total Time – -7.93


Maximum value
Time-average num. of parts Queue. Number Waiting- 2.72
in queue Average
Maximum number of parts Queue. Number Waiting- -5.27
in queue Max-value
Machine utilization Resource Utilization 0.98

2. Decide if part is good, exit the system, and if part is bad


decide further. a)Change entity picture.
Performance Measure Where to look In AREENA Result
reports
Total production Entity. Number out 50

Average delay in queue Queue. Waiting time- -49.95


Average
Maximum delay in queue Queue. Waiting time- -7.95
Maximum value
Average time in system Entity. Total Time- Average -49.93

Maximum time in system Entity. Total Time – -7.93


Maximum value
Time-average num. of parts Queue. Number Waiting- -47.27
in queue Average
Maximum number of parts Queue. Number Waiting- -5.27
in queue Max-value
Machine utilization Resource Utilization 0.98

3. Decide to trash the part or not. If bad part is greater than 5 than
trash and exit otherwise back to machine.
Performance Measure Where to look In AREENA Result
reports
Total production Entity. Number out 50

Average delay in queue Queue. Waiting time- -49.95


Average
Maximum delay in queue Queue. Waiting time- -7.95
Maximum value
Average time in system Entity. Total Time- Average -49.93

Maximum time in system Entity. Total Time – -7.93


Maximum value
Time-average num. of parts Queue. Number Waiting- -47.27
in queue Average
Maximum number of parts Queue. Number Waiting- -5.27
in queue Max-value
Machine utilization Resource Utilization 0.98

4. Make a model of Movie Rental system


Description: Customer enters the store and decide which type of movie they
would like to rent. After making this decision, they proceed to the appropriate part
of the store, and make their selections. After renting a movie, the customer is
faced with the decision of whether or not they would like to buy some popcorn.
If they decide to buy popcorn, they go to the popcorn cart and get it, then go to
the checkout line. If they decide not to get popcorn, they go directly to the
checkout line.
Performance Measure Where to look In AREENA Result
reports
Total production Entity. Number out 150

Average delay in queue Queue. Waiting time- Not Generated report


Average
Maximum delay in queue Queue. Waiting time- Not Generated report
Maximum value
Average time in system Entity. Total Time- Average Average Not Generated
report
Maximum time in system Entity. Total Time – -1
Maximum value
Time-average num. of parts Queue. Number Waiting- Not Generated report
in queue Average
Maximum number of parts Queue. Number Waiting- Not Generated report
in queue Max-value
Machine utilization Resource Utilization Not Generated report
LAB NO.4
Batch and Assign Module
Objective:
To analyze the Batch and Assign module
Performance Measure Where to look In AREENA Result
reports
Total production Entity. Number out 200

Average delay in queue Queue. Waiting time- 0


Average
Maximum delay in queue Queue. Waiting time- -37.01
Maximum value
Average time in system Entity. Total Time- Average 0

Maximum time in system Entity. Total Time – -37.01


Maximum value
Time-average num. of parts Queue. Number Waiting- 0
in queue Average
Maximum number of parts Queue. Number Waiting- -1.74
in queue Max-value
Machine utilization Resource Utilization No report generated
2. Change the box size to same color/same picture of bottles.
Performance Measure Where to look In AREENA Result
reports
Total production Entity. Number out 200

Average delay in queue Queue. Waiting time- 0.01


Average
Maximum delay in queue Queue. Waiting time- -98.69
Maximum value
Average time in system Entity. Total Time- Average 0.01

Maximum time in system Entity. Total Time – -98.69


Maximum value
Time-average num. of parts Queue. Number Waiting- 0
in queue Average
Maximum number of parts Queue. Number Waiting- -104.59
in queue Max-value
Machine utilization Resource Utilization No report generated

3. Change the box size to 16.


I have already changed the size to 16 in task # 2.
LAB NO.5
Separate and Record Module

Objective: To analyze the Separate and Record module.


LAB TASK:
Design a scenario for the billing department.

Invoices arrive in the billing department to be billed to the customer. At random; some of
the accounts are audited by a supervisor. The others are billed normally. Some of the
invoices are for commercial accounts, which have special contracts as to how they should
be billed. These accounts are handled in a different area than the normal bills. Once they
are ready to be printed, however, all print on the same printer, and are mailed in the same
way. After the bills go out the revenue and sales figure are reported to accounting
department. The Accounts receivable department also gets a copy of the bill for future AR
follow-up.
2018-SE-023

52
2018-SE-023

Performance Measure Where to look In AREENA Result


reports

Total production Entity. Number out 420

Average delay in queue Queue. Waiting time-Average 0.01

Maximum delay in queue Queue. Waiting time- -0.01


Maximum value

Average time in system Entity. Total Time- Average 0

Maximum time in system Entity. Total Time – -0.01


Maximum value
Time-average num. of parts in Queue. Number Waiting- 0.01
queue Average

Maximum number of parts in Queue. Number Waiting-Max- -2.97


queue value

Machine utilization Resource Utilization No report generated

57
LAB NO.6
Queue Variables
Objective:
Analyze Queue variables

LAB TASK
1. Movie theater system
Design Movie Theater in which customer arriving in the cinema house then
assign a picture then will check if the queue is greater than 10(limit of a
queue) exit the ticket queue and go somewhere else. After getting the ticket,
check for refreshment. There are two canteens: satellite canteen and a main
canteen. People select refreshment from the available canteens otherwise they
will leave the food queue. Also record how many people leave the food queue
and ticket queue so that theater administration takes necessary actions for
maintaining the theater After taking refreshment customer leaves the lobby
and enter the theater.
Performance Measure Where to look In AREENA Result
reports
Total production Entity. Number out 100

Average delay in queue Queue. Waiting time- 0


Average
Maximum delay in queue Queue. Waiting time- 0.01
Maximum value
Average time in system Entity. Total Time- Average 0

Maximum time in system Entity. Total Time – -5.02


Maximum value
Time-average num. of parts Queue. Number Waiting- 0
in queue Average
Maximum number of parts Queue. Number Waiting- -3.57
in queue Max-value
Machine utilization Resource Utilization 1.000
Lab# 07
Patient System
Objective:
To analyze the seize delay and reduce module.

Theory:
Simulation:
Collection of methods and apps that mimk the real world.

Modeling:
Modeling includes the construction and working of model.

Arena:
Combines the case of found in high level simulation with simulator languages and
procedural languages.
1. Entity
2. Attributes
3. Variables (reflects the info)
4. Resources
5. Simulation clock
Events: arrival, departure, the end system

Lab Task:
To keep track of patients in Emergency room segment.

Task#01
According to the given scenario of the lab task following model is design.
Collect Statistics :
Entity Number in Queue:

Time in Queue:

Waiting Time:

Resource Utilization:
Lab # 8
Objective:
To analyze the hold and signal module and observe the results of the simulation run.

Lab Task # 1:

a) Create a lab scenario in which 150 students are arrived for the test. All students take
2 mints apply delay of 2 mints, between students to complete the test.

Model:

Output:

b) Repeat scenario no 1 with delay distribution of max 5 and min 2 mins.


Lab Task # 2:

a) Create a bus stop scenario in which 5 persons come to bus stop every min. bus take
delay of 25mins.
The capacity of bus is 20 (space). Use hold and signal module the wait the value is 1,
write the queue time and process time.

Model:

Delay and Signal:


Output:

b) Hold type change wait to infinite and run the scenario

Hold block:
Output:

c) Repeat the scenario with the replication of 5 and run 1000, write queue time and process time.

Run Setup:
Output:
LAB NO.9
Hold and Signal Module

LAB TASKS

1(a)
1(b).
2(a).
_
2(b).

2(c).
LAB NO. 10

Search, Pickup and Dropoff Module

Objective: To analyze the Search, Pickup and Drop-off module.

LAB TASK

Public bus Transportation System:

Design a model of public bus transportation simulates a bus that moves between
different points, picking up and dropping off passengers.

Delay and Signal:


Simulation and Modeling (CE- SSUET/QR/114
2018-SE-023

Simulation and Modeling (CE- SSUET/QR/114

LAB 11
Seize and Release Module
OBJECTIVE: To analyze the Seize and Release module.
Lab Task:
Design a model to seize and release the resource. Choose your own scenario.
SYSTEM SCREEN SHORT:

83
2018-SE-023

Simulation and Modeling (CE- SSUET/QR/114

LAB NO.12
Gather and Disperse Module
Objective: To analyze the Gather and Disperse module.
Lab Task:

84
2018-SE-023

Simulation and Modeling (CE- SSUET/QR/114

87

You might also like