Discrete-Event Simulation: A First Course Steve Park and Larry Leemis College of William and Mary.

Slides:



Advertisements
Similar presentations
Modeling and Simulation By Lecturer: Nada Ahmed. Introduction to simulation and Modeling.
Advertisements

Introduction into Simulation Basic Simulation Modeling.
INTRODUCTION TO MODELING
Chapter 1 Introduction to Modeling DECISION MODELING WITH MICROSOFT EXCEL Copyright 2001 Prentice Hall.
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
Decision Making: An Introduction 1. 2 Decision Making Decision Making is a process of choosing among two or more alternative courses of action for the.
FIN 685: Risk Management Topic 5: Simulation Larry Schrenk, Instructor.
Classification of Simulation Models
Intro to Simulation and Virtual Reality CE Animation v Simulation Week 3.
Steps of a sound simulation study
Simulation.
Lecture 7 Model Development and Model Verification.
1 Simulation Modeling and Analysis Verification and Validation.
1 Validation and Verification of Simulation Models.
SIMULATION. Simulation Definition of Simulation Simulation Methodology Proposing a New Experiment Considerations When Using Computer Models Types of Simulations.
Robert M. Saltzman © DS 851: 4 Main Components 1.Applications The more you see, the better 2.Probability & Statistics Computer does most of the work.
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Basic Simulation Modeling II
Chapter 12: Simulation and Modeling Invitation to Computer Science, Java Version, Third Edition.
Machine Shop Model. Lecture Two by: Lecturer/ Nada Ahmed.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Modeling and Simulation
Chapter 12: Simulation and Modeling
Discrete Event Systems Simulation
(C) 2009 J. M. Garrido1 Object Oriented Simulation with Java.
Chapter 1 Introduction to Simulation
1 Validation & Verification Chapter VALIDATION & VERIFICATION Very Difficult Very Important Conceptually distinct, but performed simultaneously.
Simulation Concepts Dr. Jason Merrick. Simulation with Arena — A Quick Peek at Arena C3/2 The above was just one “replication” -- a sample of size one.
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
ENM 503 Lesson 1 – Methods and Models The why’s, how’s, and what’s of mathematical modeling A model is a representation in mathematical terms of some real.
Modeling and simulation of systems Model building Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Entities and Objects The major components in a model are entities, entity types are implemented as Java classes The active entities have a life of their.
Simulation is the process of studying the behavior of a real system by using a model that replicates the behavior of the system under different scenarios.
Modeling and Simulation Discrete-Event Simulation
Chap. 5 Building Valid, Credible, and Appropriately Detailed Simulation Models.
McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. 1.
Chapter 10 Verification and Validation of Simulation Models
Simulation Techniques Overview Simulation environments emulation/ exec- driven event- driven sim trace- driven sim stochastic sim Workload parameters System.
Building Simulation Model In this lecture, we are interested in whether a simulation model is accurate representation of the real system. We are interested.
Object Oriented Discrete-Event Simulation CS4730 Fall 2010 Jose M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All rights reserved.
12/7/2015© 2008 Raymond P. Jefferis III1 Simulation of Computer Systems.
Introduction to Simulation K.Sailaja Kumar 1 SYSTEM SIMULATION AND MODELLING Course Code: MCA 52 Faculty : Sailaja Kumar k.
Probabilistic Design Systems (PDS) Chapter Seven.
Introduction to Simulation Andy Wang CIS Computer Systems Performance Analysis.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
(C) J. M. Garrido1 Objects in a Simulation Model There are several objects in a simulation model The activate objects are instances of the classes that.
 Simulation enables the study of complex system.  Simulation is a good approach when analytic study of a system is not possible or very complex.  Informational,
Introduction The objective of simulation – Analysis the system (Model) Analytically the model – a description of some system intended to predict the behavior.
Simulation. Types of simulation Discrete-event simulation – Used for modeling of a system as it evolves over time by a representation in which the state.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 15-1 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Prepared by.
Building Valid, Credible & Appropriately Detailed Simulation Models
Simulation Modeling & Simulation 33.  Simulation: It is a numerical technique for conducting experiments with certain types of mathematical models.
Modelling & Simulation of Semiconductor Devices Lecture 1 & 2 Introduction to Modelling & Simulation.
Traffic Simulation L2 – Introduction to simulation Ing. Ondřej Přibyl, Ph.D.
Chapter 12: Simulation and Modeling
OPERATING SYSTEMS CS 3502 Fall 2017
CPSC 531: System Modeling and Simulation
Prepared by Lloyd R. Jaisingh
User-centred system design process
Modeling and Simulation (An Introduction)
ADVANTAGES OF SIMULATION
Modeling and Simulation CS 313
Chapter 10 Verification and Validation of Simulation Models
Basic Simulation Modeling II
Prepared by Lee Revere and John Large
Discrete-Event System Simulation
Building Valid, Credible, and Appropriately Detailed Simulation Models
Modeling and Simulation CS 313
MECH 3550 : Simulation & Visualization
Presentation transcript:

Discrete-Event Simulation: A First Course Steve Park and Larry Leemis College of William and Mary

Technical Attractions of Simulation * Ability to compress time, expand time Ability to control sources of variation Avoids errors in measurement Ability to stop and review Ability to restore system state Facilitates replication Modeler can control level of detail *Discrete-Event Simulation: Modeling, Programming, and Analysis by G. Fishman, 2001, pp

Ways To Study A System * * Simulation, Modeling & Analysis (3/e) by Law and Kelton, 2000, p. 4, Figure 1.1

Introduction What is discrete-event simulation? –Modeling, simulating, and analyzing systems –Computational and mathematical techniques Model: construct a conceptual framework that describes a system Simulate: perform experiments using computer implementation of the model Analyze: draw conclusions from output that assist in decision making process We will first focus on the model

Characterizing a Model 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

Definitions Discrete-Event Simulation Model –Stochastic: some state variables are random –Dynamic: time evolution is important –Discrete-Event: significant changes occur at discrete time instances Monte Carlo Simulation Model –Stochastic –Static: time evolution is not important

Model Taxonomy

DES Model Development Algorithm 1.1 — How to develop a model: 1)Determine the goals and objectives 2)Build a conceptual model 3)Convert into a specification model 4)Convert into a computational model 5)Verify 6)Validate Typically an iterative process

Three Model Levels 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?

Verification vs. Validation 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

A Machine Shop Model 150 identical machines: –Operate continuously, 8 hr/day, 250 days/yr –Operate independently –Repaired in the order of failure –Income: $20/hr of operation Service technician(s): –2-year contract at $52,000/yr –Each works hr days/yr How many service technicians should be hired?

System Diagram

Algorithm Applied 1)Goals and Objectives: —Find number of technicians for max profit —Extremes: one techie, one techie per machine 2)Conceptual Model: —State of each machine (failed, operational) —State of each techie (busy, idle) —Provides a high-level description of the system at any time 3)Specification Model: —What is known about time between failures? —What is the distribution of the repair times? —How will time evolution be simulated?

Algorithm 1.1 Applied 4)Computational Model: —Simulation clock data structure —Queue of failed machines —Queue of available techies 5)Verify: —Software engineering activity —Usually done via extensive testing 6)Validate: —Is the computational model a good approximation of the actual machine shop? —If operational, compare against the real thing —Otherwise, use consistency checks

Observations Make each model as simple as possible –Never simpler –Do not ignore relevant characteristics –Do not include extraneous characteristics Model development is not sequential –Steps are often iterated –In a team setting, some steps will be in parallel –Do not merge verification and validation Develop models at three levels –Do not jump immediately to computational level –Think a little, program a lot (and poorly); Think a lot, program a little (and well)

Simulation Studies Algorithm — Using the resulting model: 7)Design simulation experiments —What parameters should be varied? —Perhaps many combinatoric possibilities 8)Make production runs —Record initial conditions, input parameters —Record statistical output 9)Analyze the output —Use common statistical analysis tools (Ch. 4) 10)Make decisions 11)Document the results

Algorithm Applied 7)Design Experiments —Vary the number of technicians —What are the initial conditions? —How many replications are required? 8)Make Production Runs —Manage output wisely —Must be able to reproduce results exactly 9)Analyze Output —Observations are often correlated (not independent) —Take care not to derive erroneous conclusions

Algorithm Applied 10)Make Decisions —Graphical display gives optimal number of technicians and sensitivity —Implement the policy subject to external conditions 11)Document Results —System diagram —Assumptions about failure and repair rates —Description of specification model —Software —Tables and figures of output —Description of output analysis DES can provide valuable insight about the system

Programming Languages General-purpose programming languages –Flexible and familiar –Well suited for learning DES principles and techniques –E.g.: C, C++, Java Special-purpose simulation languages –Good for building models quickly –Provide built-in features (e.g., queue structures) –Graphics and animation provided –E.g.: Arena, Promodel

Terminology Model vs. Simulation (noun) –Model can be used WRT conceptual, specification, or computational levels –Simulation is rarely used to describe the conceptual or specification model –Simulation is frequently used to refer to the computational model (program) Model vs. Simulate (verb) – To model can refer to development at any of the levels –To simulate refers to computational activity Meaning should be obvious from the context

Looking Ahead Begin by studying trace-driven single server queue Follow that with a trace-driven machine shop model