0% found this document useful (0 votes)
7 views12 pages

Discrete Event Simulation Overview

Uploaded by

nehasidar152
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)
7 views12 pages

Discrete Event Simulation Overview

Uploaded by

nehasidar152
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

LECTURE 36

SIMULATION MODELING II

DR. ANUP KUMAR TRIPATHI

DEPARTMENT OF MINING ENGINEERING


NATIONAL INSTITUTE OF TECHNOLOGY KARNATAKA (NITK)
SURATHKAL − 575025, INDIA

1
SIMULATION MODELING II

TYPES OF SIMULATION
 The execution of present-day simulation is based generally on the idea of sampling used with the
Monte Carlo method.

It differs in that it is concerned with the study of the behavior of real systems as a function of time.

Two distinct types of simulation models exist.

1. Continuous models deal with systems whose behavior changes continuously with time.

These models usually use difference-differential equations to describe the interactions among
the different elements of the system.

A typical example of a continuous simulation is the study of world population dynamics.

2
2. Discrete models deal with systems whose behavior changes only at given instants.

A typical example occurs in waiting lines where we are interested in estimating such measures
as the average waiting time or the length of the waiting line.

Such measures change only when a customer enters or leaves the system.
At all other instants, there is no occurrence from the perspective of collecting statistics in the
system.

The instants at which changes in the system occur identify the model's events (for example:
arrival and departure of customers).

The fact that these events occur at discrete instants gives rise to the name discrete event
simulation.

3
 Although both continuous and discrete simulations are important tools in practice, the discrete
type is the one that is usually presented in conjunction with operations research areas.

The reason is that discrete simulation is more closely associated with queueing models.
Indeed, it is proper to state that practically all discrete simulation cases can be described in some
form or another as queueing models.

 This chapter presents the basics of discrete event simulation, including a description of the
components of a simulation model, collection of simulation statistics, and the statistical aspect of
the simulation experiment.

The chapter also emphasizes the role of the computer and simulation languages in the execution of
simulation models.

4
ELEMENTS OF DISCRETE-EVENT SIMULATION
 This section introduces the concept of events in simulation and shows how the statistics of the
simulated system are collected.

Generic Definition of Events


 All discrete-event simulations describe, directly or indirectly, queuing or waiting line situations in
which customers arrive, wait in a queue if necessary, and then receive service before they depart
the system.

In general, any discrete-event model is composed of a network of interrelated queues.

5
 Given that a discrete-event model is in reality a composite of queues, collection of simulation
statistics (for example: queue length and status of the service facility) take place only when a
customer arrives at the queue or leaves the facility after being served.

This means that the two principal events in any discrete simulation model are an arrival and a
departure.

These are the only two instants at which we need to examine the system.

At all other instants, no changes affecting the statistics of the system occur.

6
Example 2
 Metalco Jobshop receives two types of jobs: regular and rush.

All jobs are processed on two consecutive machines with ample buffer areas.

Rush jobs always assume non-preemptive priority over regular jobs.

The task is to identify the events of the situation.

7
Solution
 This situation consists of two tandem queues corresponding to the two machines.

At first, one may be inclined to identify the events of the situation as:

A11: A regular job arrives at machine 1.


A21: A rush job arrives at machine 1.
D11: A regular job departs machine 1.
D21: A rush job departs machine 1.
A12: A regular job arrives at machine 2.
A22: A rush job arrives at machine 2.
D12: A regular job departs machine 2.
D22: A rush job departs machine 2.

8
 In reality, there are only two events: an arrival of a (new) job at the shop and a departure of a
(completed) job from a machine.

We first notice that events D11 and A12 are actually one and the same.

The same applies to D21 and A22.

Next, in discrete simulation we can use one event (arrival or departure) for both types of jobs and
simply “tag” the event with an attribute that identifies the job type as either regular or rush.

 We can think of the attribute in this case as a personal identification descriptor, and indeed
it is.

Given this reasoning, the events of the model reduce to (1) an arrival A (at the shop) and (2) a
departure D (from a machine).

9
The actions associated with the arrival event depend on the type of arriving job (rush or regular)
and the availability of a machine.

Similarly, the processing of the departure event will depend on the machine and the status of
waiting jobs.

The actions associated with the arrival and departure events will therefore depend on the machine
at which they occur.

 Having defined the basic events of a simulation model, we show how the model is executed.

Figure 2 gives a schematic representation of typical occurrences of events on the simulation


timescale.

10
Figure 2: Example of the occurrence of simulation events on the time scale.

After all the actions associated with a current event have been performed, the simulation advances
by “jumping” to the next chronological event.

In essence, the execution of the simulation occurs at the instants at which the events occur.

 How does the simulation determine the occurrence time of the events?

The arrival events are separated by the inter-arrival time (the interval between successive arrivals),
and the departure events are a function of the service time in the facility.

11
These times may be deterministic (for example: a train arriving at a station every 5 minutes) or
probabilistic (for example: the random arrival of customers at a bank).

If the time between events is deterministic, the determination of their occurrence times is
straightforward.

If it is probabilistic, we use a special procedure to sample from the corresponding probability


distribution.

This is discussed in the next section.

12

Common questions

Powered by AI

A simulation determines the next chronological event based on the timing dictated by inter-arrival and service time distributions. The model evaluates pending events in the timeline and selects the earliest to execute next, allowing for precise tracking of system state changes. This process is crucial as it ensures the model follows a logical progression that reflects real-world temporal dynamics, providing accurate insights into system behavior and performance over time .

Arrival and departure events are interdependent as they define the system state in simulation modeling. Arrival events introduce new elements into the system, while departure events reduce them. The timing and processing of each are crucial for synchronizing the system's state, with arrivals affecting queue length and departures determining service completion. This dependency ensures that the system evolves logically over time, maintaining a balance between input (arrivals) and output (departures).

In the Metalco Jobshop example, event identification is simplified by recognizing that similar actions can be condensed into broader event categories. Initially, events were distinguished as arrivals and departures across different job types and machines. However, by tagging events with attributes that identify job types (regular or rush), it reduces to two primary events: the arrival of a job at the shop and the departure from a machine . This simplification aids in reducing complexity and enhancing understanding of the simulation model .

Continuous simulation models deal with systems whose behavior changes continuously over time using difference-differential equations, such as the study of world population dynamics . In contrast, discrete simulation models focus on systems that change at specific instants, primarily used in queuing models. Discrete models observe changes only when events, like customer arrivals or departures, occur, making them crucial for operations research where queuing analysis is needed .

Computers and simulation languages facilitate the efficient execution of discrete-event simulation models by automating the process of event scheduling, statistical tracking, and data analysis . They help in representing complex interactions with precision and executing the simulation in real-time, ensuring the model remains accurate and manageable. These tools are essential in capturing the dynamic nature of discrete-event systems and allow for extensive experimentation and validation of simulation models .

When using probabilistic inter-arrival and service times, the simulation handles variance by sampling from relevant probability distributions. This approach mimics the randomness in real-world systems, ensuring that event occurrence times vary as they naturally would. It makes the simulation reflect true system behavior by incorporating stochastic processes, which can then be analyzed to provide insights into system performance under uncertainty .

Discrete simulation is closely associated with queueing models in operations research because it effectively models systems where entities wait for service, changing state at discrete events. Queueing models inherently feature in many logistical and operational contexts, particularly where processes involve waiting lines, making discrete event simulation an ideal analytical tool to analyze such systems' performance .

Using a single event type with attributes for different job types and machines simplifies the simulation model by reducing the number of distinct events tracked within the system. It streamlines event management while retaining specificity about job types and their handling procedures, which leads to reduced complexity and enhanced computational efficiency. This approach allows for more straightforward coding and analysis, improving the model's overall clarity and maintainability .

A discrete-event simulation model collects system statistics at the instants when customers arrive or depart from the system, which involves identifying the arrival and departure as principal events. This is because the statistics, such as queue length or service status, only change at these specific moments in queue-based systems . The execution of these events allows for the accurate collection and analysis of the system's performance over time .

Deterministic approaches use fixed intervals to determine event occurrence times, such as a train arriving at a station every 5 minutes. This method provides straightforward calculation of event times . In contrast, probabilistic approaches rely on sampling from probability distributions to determine times, which is necessary when dealing with random events like customer arrivals at a bank. Probabilistic methods require specialized procedures to accurately simulate the inherent randomness in such processes .

You might also like