The field of simulation is broadly divided into two main kinds of simulation models:
So far, we've been doing Process Simulation. We will now be moving on to Discrete Event Simulation, though there is a great deal of overlap between the two. They both
So how is Discrete Event Simulation (DES) different from Process Simulation (PS)? There are two main differences:
So, in a discrete event simulation, entities have "events" in their "lives" and the simulation is about the aggregate result of those events. The simulation moves from event to event.
I think the following table is helpful. It's drawn from the Extend v6 manual:
| Factor | Continuous Modeling | Discrete Event Modeling |
|---|---|---|
| What is modeled | Flows of "stuff" | Discrete items or "things" |
| Characteristics | random number "simulates" characteristics of flows and must be repeated for each query or junction | Using attributes, unique characteristics are assigned to items whch can then be tracked throughout the model |
| Time Steps | Interval between time steps is constant. Model recalculations are sequential and time dependent. | Interval between events is dependent on when events occur. Model only recalculates when events occur |
| Ordering | Flows are in FIFO order | Items can flow in FIFO, LIFO, Priority or customized order |
| Routing | Flows need to be explicitly routed by being turned off at one branch and turned on at the other (flows can go to multiple places at the same time). | Items are automatically routed to the first available branch (items can only be in one place at a time). |
| Statistical detail | Only general statistics about the system: amount, efficiency, transit time | In addition to general statistics, each item can be tracked: count, utilization, cycle time. |
| Common Uses | science (biology, chemistry, physics), engineering (electronics, control systems), economics, system dynamics | manufacturing, service industries, business processes, computer networks, digital electronics |
Discrete event simulations work in a fundamentally different way. The use of a block from one of the discrete event libraries (either Discrete Event or Manufacturing) makes a model into a Discrete Event Simulation (DES) model. (Paradoxically, DE is often used to stand for Differential Equation, which is the basis for CP models. Don't let this confuse you!)
However, DES models certainly make use of blocks such as constants, random number generators, equations and other math blocks.
There are different connectors in the DES models. The connectors that are for the flow if items have concentric squares, while connectors for ordinary numerical values are just a single square.
The classic example of a discrete event simulation is the so-called M/M/1 queue. This model encompasses any situation where:
We'll discuss what this means, in preparation for building such a model in Extend.
Attributes are important, for distinguishing one kind of item from another and for recording information about those items. Here's an example of a bathroom simulation, using a "gender" attribute to distinguish men from women. This model doesn't have the different kinds of items come back together after, so the attribute is actuallly unnecessary once they are divided, but that need not be the case.
This work is licensed under a Creative Commons
License |
|
|
|