SIMULATION TECHNIQUES. Introduction What is digital simulation? – Design a model for a real or proposed system – Execute the model on a computer – Analyze.

Slides:



Advertisements
Similar presentations
Network II.5 simulator ..
Advertisements

Introduction into Simulation Basic Simulation Modeling.
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
 1  Outline  performance measures for a single-server station  discrete-event simulation  hand simulation  process-oriented simulation approach.
Chapt 6 Resources & Gates Intro/ steps in the process Distributions...What & Why Resource Block Await Node Free node Alter node Group block Open Node Close.
Lecture 3 Concepts of Discrete-Event Simulation. 2 Discrete Event Model  In the discrete approach to system simulation, state changes in the physical.
Chapter 22 Simulation with Process Model to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004.
Classification of Simulation Models
DISCRETE-EVENT SIMULATION CONCEPTS and EVENT SCHEDULING ALGORITHM
1 Simulation Lecture 6 Simulation Chapter 18S. 2 Simulation Simulation Is …  Simulation – very broad term  methods and applications to imitate or mimic.
Simulation with ArenaChapter 2 – Fundamental Simulation Concepts Discrete Event “Hand” Simulation of a GI/GI/1 Queue.
1 Lecture 6 MGMT 650 Simulation – Chapter Announcements  HW #4 solutions and grades posted in BB  HW #4 average =  Final exam today 
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
Simulation Waiting Line. 2 Introduction Definition (informal) A model is a simplified description of an entity (an object, a system of objects) such that.
CPSC 531: DES Overview1 CPSC 531:Discrete-Event Simulation Instructor: Anirban Mahanti Office: ICT Class Location:
SIMULATION. Simulation Definition of Simulation Simulation Methodology Proposing a New Experiment Considerations When Using Computer Models Types of Simulations.
Fundamental Simulation Concepts
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Monté Carlo Simulation MGS 3100 – Chapter 9. Simulation Defined A computer-based model used to run experiments on a real system.  Typically done on a.
Graduate Program in Engineering and Technology Management
Introduction to Discrete Event Simulation Customer population Service system Served customers Waiting line Priority rule Service facilities Figure C.1.
Chapter 1 Introduction to Simulation
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.
 1  Outline  stages and topics in simulation  generation of random variates.
Verification & Validation
Modeling & Simulation: An Introduction Some slides in this presentation have been copyrighted to Dr. Amr Elmougy.
1 Chapter 2 Fundamental Simulation Concepts. Simulation with Arena Fundamental Simulation Concepts C2/2 What We’ll Do... Underlying ideas, methods, and.
1 Chapter 2 Fundamental Simulation Concepts Dr. Jason Merrick.
Simulation with ArenaChapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Fundamental Simulation Concepts Chapter 2.
ETM 607 – Discrete Event Simulation Fundamentals Define Discrete Event Simulation. Define concepts (entities, attributes, event list, etc…) Define “world-view”,
Structure of a Waiting Line System Queuing theory is the study of waiting lines Four characteristics of a queuing system: –The manner in which customers.
Chapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Chapter 2 Fundamental Simulation Concepts.
Slide 1 of 46 Fundamental Simulation Concepts Last revision June 7, 2003.
Chapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Fundamental Simulation Concepts.
Slide 1 of 46 Fundamental Simulation Concepts Chapter 2.
SIMULATION EXAMPLES QUEUEING SYSTEMS.
SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM
Discrete Event (time) Simulation. What is a simulation? “Simulation is the process of designing a model of a real system and conducting experiments with.
Chapter 10 Verification and Validation of Simulation Models
Chapter 2 Fundamental Simulation Concepts
MODELING EXAMPLES Types of model Conceptual Containing components that have not been clearly Identified in terms of theoretic categories such as state,
ETM 607 – Output Analysis: Estimation of Relative Performance Output comparison between two or more alternative systems Common Random Numbers (CRN) Comparison.
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 EXAMPLES. Monte-Carlo (Static) Simulation Estimating profit on a sale promotion Estimating profit on a sale promotion Estimating profit on.
COMP155 Computer Simulation September 10, Discrete Event Simulation  discrete event simulation: state variable change only at a discrete set of.
Advantages of simulation 1. New policies, operating procedures, information flows and son on can be explored without disrupting ongoing operation of the.
Chapter 2 Basic Simulation Modeling
 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.
MODELING AND SIMULATION CS 313 Simulation Examples 1.
Simulation Examples And General Principles Part 2
One More Try Another Example with Some Tweaks. Fall 2001IMSE 643 Industrial Simulation Two Job Types and a second Workstation Machine Inspection Arrivals.
Chapter 1 What is Simulation?. Fall 2001 IMSE643 Industrial Simulation What’s Simulation? Simulation – A broad collection of methods and applications.
Introduction To Modeling and Simulation 1. A simulation: A simulation is the imitation of the operation of real-world process or system over time. A Representation.
OPERATING SYSTEMS CS 3502 Fall 2017
Modeling and Simulation (An Introduction)
ADVANTAGES OF SIMULATION
Modeling and Simulation CS 313
Chapter 10 Verification and Validation of Simulation Models
SIMULATION EXAMPLES QUEUEING SYSTEMS.
World-Views of Simulation
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Variability 8/24/04 Paul A. Jensen
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
Fundamental Simulation Concepts
MECH 3550 : Simulation & Visualization
MECH 3550 : Simulation & Visualization
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Presentation transcript:

SIMULATION TECHNIQUES

Introduction What is digital simulation? – Design a model for a real or proposed system – Execute the model on a computer – Analyze the execution output Purpose of digital simulation – Evaluate the behavior of the system under different sets of conditions by using the models to carry out groups of experiments

Advantage of digital simulation – Cost reduction and time saving: draw inference about new systems without actually building them and evaluate changes in existing systems without actually disturbing them. – The only tool that will allow system interactions to be analyzed for complex systems. – Permits managers to visualize the operation of a new or existing system under a variety of conditions.

Objective of the course – Digital simulation modeling using SIMAN/ARENA – System Applications of digital simulation – Performance analysis of manufacturing and service systems and processes

What is a system? A collection of elements that cooperate to accomplish some stated objectives. – Examples: l Bank tellers + customer queues l Supermarket cashiers + customer queues l Hospital emergency room + patients l Machines + parts l Cities + Highways l Telephones + connection networks l Materials + handling equipment

What is a model? A collection of symbols and ideas that approximately represent the functional relationship of the elements in a system. Examples: l Queuing models: queues, servers, interarrival times, service times, distributions,... l Network models: nodes, links, traveling times, capacities,...

l Discrete simulation: State of system changes only at “discrete event” times. Examples: Customers arrive at a bank branch; parts moving in a production systems; trucks travel on a highway network; … l Continuous simulation: State of system represented by algebraic or differential equations with variables that change continuously over time. Examples: Nuclear reactions; chemical processes; ocean waves, etc. l Mixed simulation: The system has discrete elements as well as continue elements. Examples: Metal moulding and casting, ecosystems, etc. l Dynamic simulation: The system status changes over time. l Stochastic simulation: Models operate with random inputs. Types of Simulation

What simulation can do for you: – Provide estimates of the statistics of system performance – Evaluate the effects of system condition changes What simulation cannot do for you: – It cannot optimize the system’s performance; it can only describe the system behavior under the given conditions – It cannot provide accurate simulation results if the data and the model are not accurate

Modeling strategy – Start with simple models and evolve to complex ones – Focus on important issues and screen out unimportant issues

People Involved in a Simulation Project Simulation project team System design team Data/information sources Implementation team Contractors Decision maker/management Establish Responsibility Project manager Representatives from each major groups Project milestones and checkpoints

Stages of Simulation Modeling and Analysis – Identify Problem – State Objectives – Collect/Prepare Data – Formulate Model – Verify/Validate Model – Modify/Refine Model (Repeat the previous two steps if necessary) – Simulation Experiment Design – Simulation Execution – Output Analysis and Interpretation of Results – Conclusions and Implementation

A Simple Processing System Arriving Blank Parts Departing Finished Parts Machine (Server) Queue (FIFO) Part in Service 4567 General intent:  Estimate expected production  Waiting time in queue, queue length, proportion of time machine is busy Time units  Can use different units in different places … must declare  Be careful to check the units when specifying inputs  Declare base time units for internal calculations, outputs  Be reasonable (interpretation, roundoff error)

Model Specifics l Initially (time 0) empty and idle l Base time units: minutes l Input data (assume given for now …), in minutes: Part NumberArrival TimeInterarrival TimeService Time l Stop when 20 minutes of (simulated) time have passed

Output Performance Measures l Total production of parts over the run (P) l Average waiting time of parts in queue: l Maximum waiting time of parts in queue: N = no. of parts completing queue wait WQ i = waiting time in queue of ith part Know: WQ 1 = 0 (why?) N > 1 (why?)

Output Performance Measures l Time-average number of parts in queue: l Maximum number of parts in queue: l Average and maximum total time in system of parts (a.k.a. cycle time): Q(t) = number of parts in queue at time t TS i = time in system of part i

Output Performance Measures Output Performance Measures l Utilization of the machine (proportion of time busy) l Many others possible (information overload?)

Simulation by Hand: Setup

Simulation by Hand: t = 0.00, Initialize

Simulation by Hand: t = 0.00, Arrival of Part 1 1

Simulation by Hand: t = 1.73, Arrival of Part 2 12

Simulation by Hand: t = 2.90, Departure of Part 1 2

Simulation by Hand: t = 3.08, Arrival of Part 3 23

Simulation by Hand: t = 3.79, Arrival of Part 4 234

Simulation by Hand: t = 4.41, Arrival of Part

Simulation by Hand: t = 4.66, Departure of Part 2 345

Simulation by Hand: t = 8.05, Departure of Part 3 45

Simulation by Hand: t = 12.57, Departure of Part 4 5

Simulation by Hand: t = 17.03, Departure of Part 5

Simulation by Hand: t = 18.69, Arrival of Part 6 6

Simulation by Hand: t = 19.39, Arrival of Part 7 67

Simulation by Hand: t = 20.00, The End 67

Simulation by Hand: Finishing Up l Average waiting time in queue: l Time-average number in queue: l Utilization of drill press:

Comparing Alternatives l Usually, simulation is used for more than just a single model “configuration” l Often want to compare alternatives, select or search for the best (via some criterion) l Simple processing system: What would happen if the arrival rate were to double? –Cut interarrival times in half –Rerun the model for double-time arrivals –Make five replications

Results: Original vs. Double-Time Arrivals l Original – circles l Double-time – triangles l Replication 1 – filled in l Replications 2-5 – hollow l Note variability l Danger of making decisions based on one (first) replication l Hard to see if there are really differences l Need: Statistical analysis of simulation output data

SIMAN SIMULATION LANGUAGE – The Model Frame: Describes the logical flow of events within the system. The program should have the extension MOD (i.e., filename.MOD). Statements in the MODEL file are called BLOCKS. – The Experiment Frame: Specifies the experimental conditions for executing the model. The program should have the extension EXP (i.e., filename.EXP). Statements in the EXPERIMENT file are called ELEMENTS. A complete SIMAN model consists of a MODEL frame and an EXPERIMENT frame.

SIMAN RUNTIME PROCEDURE TEXT NAME.MOD TEXT NAME.EXP NAME.M NAME.E NAME.P NAME.OUT MODELEXPMT LINKER SIMAN

BASIC SIMAN MODELING – ENTITIES: Items that flow through a system, such as customers, parts, trucks, etc. – QUEUES: Waiting areas where the movement of entities is temporarily suspended. – RESOURCES: System components that may be allocated to entities, such as machines, workers, bank tellers, etc. – ATTRIBUTES: Represent values associated with individual entities, such as job type, arrival times, etc. – GLOBAL VARIABLES: Represent values that describe the state of the system, such as number of job in the system, number of machines available, shift number, etc.

Example 1: The single Machine Problem A single-Machine job shop processes two distinct products (or part types). Type 1 parts arrive every 10 minutes and require 4 minutes to process on the machine. Type 2 parts begin to arrive at time 5 and continue arriving every 6 minutes thereafter. Each type 2 part requires 3 minutes to process. Determine the number of parts of each type that are processed in one 8-hour shift. MachineBuffer Out Type 1 arrivals Type 2 arrivals

MODELING STRATEGY l Individual parts are entities l JobType and ProcessTime are attributes l Buffer is a queue l Machine is a resource l Time units are in minutes

FLOW LOGIC – CREATE arriving jobs – ASSIGN values to ProcessTime and JobType – QUEUE the jobs for the machine in the Buffer – SEIZE the machine – DELAY by ProcessTime – RELEASE the machine – COUNT the JobType completed – DISPOSE of the finished jobs

THE EXPERIMENT FILE: SM.EXP BEGIN; ;Single machine job shop PROJECT, Single Machine, CIS 441; ATTRIBUTES: 1, JobType: 2, ProcessTime; RESOURCES:1, Machine, capacity(1); QUEUES:1, Buffer; COUNTERS:1, Type 1 Job Count: 2, Type 2 Job Count; REPLICATE, 1, 0, 480; END;

THE SIMULATION RESULTS: SM.OUT Project: Single Machine Analyst:CIS 441 Simulation run ended at time: COUNTERS IdentifierCountLimit Type 1 Job Count48Infinite Type 2 Job Count79Infinite

Example 2: Modified SM Problem Modify the single machine model such that the time between arrivals is exponentially distributed with means of 10 minutes and 6 minutes for job types 1 and 2 respectively. The processing times are uniformly distributed between 2 and 6 minutes for part type 1 and between 1.5 and 4.5 minutes for part type 2. Collect statistics on the machine utilization, number of jobs waiting, job flowtime, and time between exits.

THE EXPERIMENT FILE: SM2.EXP BEGIN; ;Modified single machine job shop PROJECT, Single Machine, CIS 441; ATTRIBUTES: JobType: ProcessTime: ArrTime; RESOURCES:Machine; QUEUES:Buffer; COUNTERS:Type 1 Job Count: Type 2 Job Count; TALLIES:Flowtime: ExitPeriod; DSTATS:NQ(Buffer), Queue Length: NR(Machine), Machine Utilization; REPLICATE, 1, 0, 480; END;

THE SIMULATION RESULTS: SM2.OUT Project: Single Machine Analyst:CIS 441 Simulation run ended at time: TALLY VARIABLES Identifier AverageVariation Minimum Maximum Observations Flowtime ExitPeriod DISCRETE CHANGE VARIABLES Identifier Average Variation Minimum Maximum Final Value Queue Length Machine Utilization COUNTERS IdentifierCountLimit Type 1 Job Count 43Infinite Type 2 Job Count 73Infinite

HW #1 1.Reading Chapters 1 and Consider a manufacturing system comprising two different machines and a single operator who is shared between the two machines. Parts arrive with an exponentially distributed interarrival time with a mean of 3 minutes. The arriving parts are one of two types. Sixty percent of the arriving parts are type 1and are processed on machine 1. These parts require the operator for a one-minute setup operation. The remaining 40 percent are part type 2 and are processed on machine 2. These parts require the operator for a 1.5-minute setup operation. The service times (excluding the setup time) are normally distributed with a mean of 4.5 minutes and a standard deviation of 1 minute for type 1 parts and a mean of 7.5 minutes and a standard deviation of 1.5 minutes for type 2 parts. Two different priority schemes have been proposed for allocating the operator between the two types of waiting jobs. The first scheme is to assign priority to the type 1 jobs. Under this proposal, a job type 2 setup will only be performed if there is no type 1 setups waiting to be performed. The second proposed scheme is to alternate the priority between the two job types. Simulate each of these systems, using SIMAN language, for a 80-hour period; and collect statistics on the machine and operator utilization, the average number of parts waiting for each machine, and the average flow time for all parts.