Subject 1 Introduction2
Subject 1 Introduction2
Subject 1 Introduction2
Subject 1
Introduction
Mujdat Soyturk, Ph.D.
Associate Professor
Contents
1-2 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
1
11/17/2023
Definition
1-3 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
• A model can be used to investigate a wide variety of “what if” questions about real-
world system.
– Potential changes to the system can be simulated, in order to predict their impact on the system
performance.
– Find adequate parameters before implementation
• So simulation can be used as
– An analysis tool for predicting the effect of changes to existing systems
– A design tool to predict the performance of new system
• It is better to do simulation before Implementation.
1-4 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
2
11/17/2023
• Mathematical Methods
– The use of probability theory, algebraic methods,…
– Their results are accurate
– They have a few number of parameters (measures)
– It is impossible for complex systems → e.g. real-world systems.
1-5 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
1-6 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
3
11/17/2023
1-7 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
1-8 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
4
11/17/2023
• In contrast to optimization models, simulation models are “run” rather than solved.
– Given as a set of inputs and model characteristics the model is run and the
simulated behavior is observed
• This process of changing inputs and model characteristics results in a set of
scenarios that are evaluated.
1-9 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
Advantages of simulation
• New policies, operating procedures, information flows and so on can be explored without
disrupting ongoing operation of the real system.
• New hardware designs, physical layouts, transportation systems and so on can be tested without
committing resources for their acquisition.
• Hypotheses about how or why certain phenomena occur can be tested for feasibility.
• Time can be compressed or expanded to allow for a speed-up or slow-down of the phenomenon
under investigation.
• Insight can be obtained about interaction of variables and important variables to the
performance of the system.
• Bottleneck analysis can be performed to discover where work in process, the system is delayed.
• A simulation study can help in understanding how the system operates.
• “What if” questions can be answered.
1-10 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
5
11/17/2023
Disadvantages of simulation
1-11 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
1-12 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
6
11/17/2023
1-13 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
• A system is defined as a groups of objects that are joined together in some regular
interaction toward the accomplishment of some purpose.
– An automobile factory: Machines, components parts and workers operate jointly along assembly
line
• A system is often affected by changes occurring outside the system: system
environment.
– Factory : Arrival of orders
• Effect of supply on demand : relationship between factory output and arrival (activity of system)
– Banks : arrival of customers
*Decide on the boundary between the system and the system environment
1-14 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
7
11/17/2023
Components of system
• Entity
– An object of interest in the system : in factory: machines - in bank: customers.
• Attribute
– The property of an entity : in factory: speed, capacity - in bank: the balance in their accounts
• Activity
– A time period of specified length: in factory: welding,stamping - in bank: the making deposits
• State
– A collection of variables that describe the system in any time : in factory: status of machine (busy, idle,
down,…) - in bank: the number of busy tellers, customers waiting in the line
• Event
– A instantaneous occurrence that might change the state of the system: in factory: breakdown - in bank: arrival
of a customer
– Endogenous
• Activities and events occurring with the system: in bank: completion of service of a customer
– Exogenous
• Activities and events occurring with the environment: in bank: arrival of a customer
1-15 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
• A discrete system is one in which the state variables change only at a discrete set of
points in time : Bank example
1-16 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
8
11/17/2023
A continues system is one in which the state variables change continuously over time:
Head of water behind the dam
1-17 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
Model of a System
1-18 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
9
11/17/2023
Model of a System
Figure source: “The Big Book of Simulation Modeling, Multimethod Modeling with AnyLogic 8”, Authors: Andrei Borshchev, Ilya Grigoryev
1-19 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
Model of a System
Model
Abstraction
Real
World
Abstraction Level?
Programming Language – Tool?
1-20 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
10
11/17/2023
Types of Models
1-21 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
• Deterministic or Stochastic
– Does the model contain stochastic components?
– Randomness is easy to add to a DES
• Static or Dynamic
– Is time a significant variable?
• Continuous or Discrete
– Does the system state evolve continuously or only at discrete points in time?
– Continuous: classical mechanics
– Discrete: queuing, inventory, machine shop models
1-22 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
11
11/17/2023
1-23 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
Model Taxonomy
1-24 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
12
11/17/2023
• Conceptual
– Very high level
– How comprehensive should the model be?
– What are the state variables, which are dynamic, and which are important?
• Specification
– On paper
– May involve equations, pseudocode, etc.
– How will the model receive input?
• Computational
– A computer program
– General-purpose PL or simulation language?
1-26 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
13
11/17/2023
• Verification
– Computational model should be consistent with specification model
– Did we build the model right?
• Validation
– Computational model should be consistent with the system being analyzed
– Did we build the right model?
– Can an expert distinguish simulation output from system output?
• Interactive graphics can prove valuable
1-27 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
1-28 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
14
11/17/2023
1-29 Mujdat Soyturk, Modeling and Discrete Simulation, Fall 2023, Marmara University
15