Professional Documents
Culture Documents
of Manufacturing Systems
>50% Yes
Semiconductor Industry
Extensive Money
Involve Getting competitive
day by day
High Level of
Complexity
Automation
required
Almost no
tolerance to
failure
Short Lead High Quality
Time Requirement
• Easy to test − Simulation allows to make changes into the system and their
effect on the output without working on real time systems.
Telecommunication
Networking
Mathematical analysis
Good solutions, but only feasible for simple systems.
Real world systems are too complex, e.g., factory, computer,
network, etc.
Simulation
Build the behavior of a system within a program
How it is done?
Develop a model
Model consists of entities (objects)
Arrival and
Checking Making No of busy tellers,
Banking Customers departure of
A/c balance deposit no of customers
customer
Arrival at a
No of riders in
Start point station,
Rapid rail Riders Travelling each station, no
& end point Reaching
of riders in transit
destination
Speed,
Welding Machine status
capacity,
Production Machines machining, Breakdown (Busy, ideal, or
Breakdown
cutting down)
rate
Length, Transmitting Arrival at No of packets in
Communication Massage
destination , receiving destination wait
receiving
Inventory level,
Inventory Warehouse Capacity order demand
backlog demand
distributing
10.02.2021 Dr. Ashish Kumar Saxena 3
Discrete vs. Continuous
It should specify
important components
Assumptions/approximation about how the system works
System: An articulate object under definite conditions, exists in the real world.
Experimental Frame: Used to study a real world system, consists of two sets of
variables: frame input variables & frame output variables.
Static
Deterministic
Stochastic
Dynamic Continuous
Deterministic
Discrete-event Simulation
• System state changes only at discrete set of points in time
• Simulation model is analysed by numerical methods
• Numerical methods employ computational procedures to
“solve” mathematical models
• The model is rather “run” than “solved”
• Is Syntax Ok?
Verification
• Are model represented correctly
• Documentation and
More and more Run • Report detailed
procedure for
10.02.2021 Dr. Ashish Kumar Saxena 12
implementation
Any Question ?
…..Continue
Steps of simulation study (conti..)
• Translate the model into a package like ARENA or GPSS
Model translation using syntax
• Some of the modern package are GUI based
• Is Syntax Ok?
Verification
• Are model represented correctly
• Documentation and
More and more Run • Report detailed
procedure for
implementation
Steps of simulation
study Problem formulation
Model Translation
No
Verified ?
Yes
No No
Validated ?
Yes
Experimental Design
Implementation
Simulation example
Simulating single server queue
Queuing systems
Simulating Single sever queuing systems
Let us consider an example of super market, who have a single billing counter, following
are observations and assumption of the market
• The calling population is infinite
• Mean time of arrival of a customer is uniformly distributed between 2 to 7min, with
mean of 5 min
• Service time per customer is uniformly distributed between 1 to 6 min with mean of 4
min
• Since the mean customer arrival time is more than service time of each customer,
hence the system is stable
• First Come First Serve rule is applicable
Problem: Simulate the billing process of the supermarket, and find out efficiency of the
system over finite event
Simulation Process flow
Problem statement: Simulate the billing process of the supermarket, and find out
efficiency of the system over finite event
Customer arrival to
Stand in Waiting line Billing Process
billing counter
There are two events, in which system stage changes with time.
• Arrival event
• Departure event
Between these two events the complete process take place …….
So we should discuss these two events in detail.
Arrival Event Processing
No Customer Billing
Process start
Customer arrival at
Billing Counter busy ?
billing counter
Yes
Customer need to
stand in queue
• Since the mean customer arrival time is more than service time of each customer,
hence the system is stable
• First Come First Serve rule is applicable
Problem: Simulate the billing process of the supermarket, and find out efficiency of the
system over finite event
06.03.2021 Dr. Ashish Kumar Saxena 2
Simulation Process flow
Problem statement: Simulate the billing process of the supermarket, and find out
efficiency of the system over finite event
Customer arrival to
Stand in Waiting line Billing Process
billing counter
There are two events, in which system stage changes with time.
• Arrival event
• Departure event
Between these two events the complete process take place …….
So we should discuss these two events in detail.
Customer arrival to
Stand in Waiting line Billing Process
billing counter
Everyday demand varies from 200 to 300 in multiples of 20, the probability of demands is
known and given in table 1. The economic order quantity for engine block is 2500 and as a
policy the company maintains a safety stock of 250 engine blocks. The reorder point is 1000
and the lead time to delivery varies from 1 to 5 days with associated probabilities given in
table 2.
Simulate the inventory system for 100days and compute i) the average inventory ii) Days of
shortage iii) maximum inventory iv) Minimum days v) Order frequency vi) Probability of stock
going below safety stock. Also compute is there any need for policy revision ?
Table 1 daily demand Table 2 Lead time
Demand Probability Lead Time
Probability
(Days)
200 0.1
1 0.1
220 0.15
2 0.2
240 0.25
3 0.4
260 0.25
4 0.2
280 0.15
5 0.1
300 0.1
2500
Engine Stock
(numbers)
Reorder 1000
point
0
Lead time
2300
1800
1300
800
300
-200 0 10 20 30 40 50 60 70
Time (Days)
Results
𝑇𝑜𝑡𝑜𝑙 𝑛𝑜 𝑜𝑓 𝑢𝑛𝑖𝑡𝑠 𝑜𝑓 𝑒𝑛𝑔𝑖𝑛𝑒𝑠 𝑎𝑡 𝑐𝑙𝑜𝑠𝑖𝑛𝑔 𝑡𝑖𝑚𝑒
Average Inventory =
𝑇𝑜𝑡𝑎𝑙 𝑁𝑜 𝑜𝑓 𝑑𝑎𝑦𝑠
61960
= = 1032.6𝑢𝑛𝑖𝑡𝑠
60
Everyday demands varies from 200 to 300 in multiples of 20, the probability of demands is
known and given in table 1. The economic order quantity for engine block is 2500 and as a
policy the company maintains a safety stock of 250 engine blocks. The reorder point is 1000
and the lead time to delivery varies from 1 to 5 days with associated probabilities given in
table 2.
Simulate the inventory system for 100days and compute i) the average inventory ii) Days of
shortage iii) maximum inventory iv) Minimum days v) Order frequency vi) Probability of stock
going below safety stock. Also compute is there any need for policy revision ?
Table 1 daily demand Table 2 Lead time
Demand Probability Lead Time
Probability
(Days)
200 0.1
1 0.1
220 0.15
2 0.2
240 0.25
3 0.4
260 0.25
4 0.2
280 0.15
19.02.2021 Dr. Ashish K. Saxena 5 0.1 2
300 0.1
1. How the demand table utilize in this problem and How did
we generated the random demand for all 100 days ?
Simulation:
• is a Mathematical Model of the system under study
• Is a Collection of system information
• Carried out with/without programming the calculation
• Changes in the state take place in accordance with rule/equations
• Mimic the real system
• Continue the process until the desired analytic solution achieved
19.02.2021 Dr. Ashish K. Saxena 5
Concepts/terminology in Discrete Event Simulation
System: Collection of entities (e.g. People, machine), interacted
together to accomplish goals
Event Notice : A record of current or future time event, with necessary data
require to execute the event
Event List: event notice of future events, ordered by time, also known as FEL
(Future Event List)
Discrete event models are appropriate for those system in which change in
the state take place only at the discrete point in time
23.02.2021
5Dr. Ashish K. Saxena
0.17 6 0.20 5
Simulation parameters in Call Centre problem….
• System state
LQ(t)- # of customer (callers) waiting at time t
LA(t)- 0 or 1 state of ‘A’ at time t (0 for free)
LB(t)- 0 or 1 state of ‘B’ at time t (0 for free)
• Entities: Callers
• Events
Arrival of a call
Service completion by ‘A’
Service completion by ‘B’
• Activities
Inter arrival time of customer (callers)
Service time by ‘A’ & ‘B’
• Delay-
23.02.2021
customer (Caller) waiting in the queue until A or B is free
Dr. Ashish K. Saxena 6
Cumulative
Entities Future
System Statistic
Clock and Set 1 Set 2 ……. event list
State and
Attribute (FEL)
counters
LQ(t),
i LA(t),
LB(t)
No Is Yes
Set LS(t)=1 Increase LQ(t) by 1
LS(t)=1 ?
No Is Yes
Set LS(t)=0 Reduce LQ(t) by 1
LS(t)>0 ?
Collect statistics
Customer ‘n’
End
Arrival Begin Service
Event Service Event
Time X X X
Delay Activity
Interaction delayed until
service of ‘n’ get completed
Begin End
Arrival
Service service
Event
Event
Time X X X
Delay Activity
Customer ‘n+1’
Activity scanning word view
Dump truck problem
Traveling
Loading Weighing
Scale
Loading Weighing
queue queue
Activity Condition
Loading time Truck is at front of loading queue
Weighing time Truck is at front of weighing queue loading
Travel time Truck has just completed weighing
EL WL
Any Question ?
J component doubts
Database collection
Or you can use the data from the other authentic sources,
Make sure you do not violate the copyright issue of the source.
Type of projects for J
component
Work for real problem
Few examples
• Current Social Problem: Covid 19 related prediction, Pollution control, River pollution,
Decreasing ground water level etc.
• Service sector related: Supply chain related, Airport passengers boarding, connecting flight
baggage transfer, Seasonal flight delay predictions, car/bike/room rental services, tourism
industry related
Measure of dispersion
Range : difference between highest and lowest number
Standard deviation & Variance : Shows how spread out a
group of numbers from its mean
Mean Mean
Mode
Median
Mean
Normal distribution
Types
Discrete random variables : Can take only on a finite or countably
infinite set of outcome
Continuous distribution function: Can take on any value along a
continuum (but may be report “discretely”)
Representation:
Random variables denoted by Upper case letter (X)
Individual outcomes for given random variable are denoted
by26.02.2021
lower case letters (x1,x2,…..)
Dr. Ashish Kumar Saxena 7
Probability Terminology and Concepts
Probability distribution:
A statistical function, which describes all the possible values
and likelihood that a random variable can take within given range.
This range is bounded between minimum and maximum
possible value
1 2 3 4 5 6 7
2 3 4 5 6 7 8
3 4 5 6 7 8 9
4 5 6 7 8 9 10
5 6 7 8 9 10 11
6 7 8 9 10 11 12
03.03.2021 Dr. Ashish Kumar Saxena 4
Example : Rolling of 2 dies
Here, X is the sum of up faces in two dies
X p(x) F(x)
Probability mass function p(x) and
0 0/36 0
Cumulative distribution function F(x)
1 0/36 0
2 1/36 1/36
𝑛𝑜 𝑜𝑓 𝑤𝑎𝑦𝑠 2𝑑𝑖𝑒𝑠 ℎ𝑎𝑠 𝑠𝑢𝑚 𝑥 3 2/36 3/36
𝑝 𝑥 =
𝑡𝑜𝑡𝑎𝑙 𝑛𝑢𝑚𝑏𝑒𝑟𝑠 𝑜𝑓 𝑟𝑒𝑠𝑢𝑙𝑡𝑠 4 3/36 6/36
5 4/36 10/36
𝑥
6 5/36 15/36
𝐹 𝑥 = 𝑝(𝑡) 7 6/36 21/36
𝑡=0 8 5/36 26/36
9 4/36 30/36
10 3/36 33/36
11 2/36 35/36
12 1/36 36/36
03.03.2021 Dr. Ashish Kumar Saxena 5
Example : Rolling of 2 dies- Probability Mass Function
=𝐶63000 𝑝6 𝑞 2994
Using Poisson approximation
𝜆𝑥0 6
0.3
=𝑒 −𝜆 = 𝑒 −0.3
𝑥0! 6!
=
Finally, the probability of exactly 6 seconded glassware =
Inter-call
10 15 20 25 30
time (min)
Probability 0.14 0.22 0.43 0.17 0.04
Distribution of service time varies from 5 to 25 minutes, the service time probability
distribution varies as
Service
5 10 15 20 25
Time (min)
Probability 0.10 0.10 0.50 0.20 0.10
First come First serve rule is applicable.
Simulate the first 6 taxi services and obtain the probability that customer has to wait
for the service, average time customer spent in complete process of waiting and
service.
[Please use given that set of 6 random number for solution of problem:
0.24, 0.73, 0.58, 0.42, 0.33, 0.78]
Question 2
Simulate the process of first 10 customers. Find out average waiting time of customer and
average time spend in bank system.
[Please use given that set of 6 random number for solution of problem:
0.28, 0.65, 0.92, 0.87, 0.31, 0.11, 0.73, 0.58, 0.04, 0.33 ]