2.7: Simulation.

Slides:



Advertisements
Similar presentations
Chapter 13 Queueing Models
Advertisements

Waiting Line Management
Simulation - An Introduction Simulation:- The technique of imitating the behaviour of some situation or system (economic, military, mechanical, etc.) by.
Chapter 14 Simulation. 2 What Is Simulation?  Simulation: A model of a complex system and the experimental manipulation of the model to observe the results.
Introduction into Simulation Basic Simulation Modeling.
Decision Maths Lesson 14 – Simulation. Wiltshire Simulation There are many times in real life where we need to make mathematical predictions. How long.
Operational Research (O.R.) Techniques Simulation.
Queuing Systems Chapter 17.
Chapter 13 Queuing Theory
Project 2: ATM’s & Queues
Chapter 9: Queuing Models
WAITING LINES The study of waiting lines, called queuing theory, is one of the most widely used and oldest management science techniques. The three basic.
Chapter 14 Simulation. 2 What Is Simulation?  Simulation: A model of a complex system and the experimental manipulation of the model to observe the results.
Slide - 1 Dr Terry Hinton 6/9/05UniS - Based on Slides by Micro Analysis & Design An example of a Simulation Simulation of a bank: Three tasks or processes:
___________________________________________________________________________ Operations Research  Jan Fábry Waiting Line Models.
Spreadsheet Modeling & Decision Analysis
Introduction to Management Science
Simulation Examples ~ By Hand ~ Using Excel
Waiting Line Models ___________________________________________________________________________ Quantitative Methods of Management  Jan Fábry.
Computer Science 101 Modeling and Simulation. Scientific Method Observe behavior of a system and formulate an hypothesis to explain it Design and carry.
Project 2: ATM’s & Queues. ATM’s & Queues  Certain business situations require customers to wait in line for a service Examples:  Waiting to use an.
1 Systems Analysis Methods Dr. Jerrell T. Stracener, SAE Fellow SMU EMIS 5300/7300 NTU SY-521-N NTU SY-521-N SMU EMIS 5300/7300 Queuing Modeling and Analysis.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
Computer Science 112 Fundamentals of Programming II Modeling and Simulation.
Simulation Examples and General Principles
1 CMPSCI 187 Computer Science 187 Introduction to Introduction to Programming with Data Structures Lecture 13: Queues Announcements.
M/M/1 Queues Customers arrive according to a Poisson process with rate. There is only one server. Service time is exponential with rate  j-1 jj+1...
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Waiting Line Analysis for Service Improvement Operations Management.
Advantages of simulation 1. New policies, operating procedures, information flows and son on can be explored without disrupting ongoing operation of the.
Queuing Models.
1 BIS 3106: Business Process Management (BPM) Lecture Nine: Quantitative Process Analysis (2) Makerere University School of Computing and Informatics Technology.
Managerial Decision Making Chapter 13 Queuing Models.
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.
Modeling the Optimization of a Toll Booth Plaza By Liam Connell, Erin Hoover and Zach Schutzman Figure 1. Plot of k values and outputs from Erlang’s Formula.
Traffic Simulation L2 – Introduction to simulation Ing. Ondřej Přibyl, Ph.D.
Computer Simulation Henry C. Co Technology and Operations Management,
Managing Waiting Lines & Queuing Systems
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All rights reserved.
WAITING LINES AND SIMULATION
Prepared by Lloyd R. Jaisingh
Data Logging & Control Systems
“QUEUING THEORY”.
Modeling and Simulation (An Introduction)
ETM 607 – Spreadsheet Simulations
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved
Simulation Examples STOCHASTIC PROCESSES.
Queuing Theory Queuing Theory.
Chapter 9: Queuing Models
Modeling of Traffic Patterns on Highways
Modeling and Simulation CS 313
DSS & Warehousing Systems
Chapter 10 Verification and Validation of Simulation Models
Service Operations Management (SOM) Waiting Line Models
Queuing Systems Don Sutton.
Solutions Hwk Que3 1 The port of Miami has 3 docking berths for loading and unloading ships but is considering adding a 4th berth.
World-Views of Simulation
COMP60611 Fundamentals of Parallel and Distributed Systems
COMP60621 Designing for Parallelism
A Queue system based on the bank service
COMP60611 Fundamentals of Parallel and Distributed Systems
Use your Chapter 1 notes to complete the following warm-up.
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
Solutions Hwk Que3 1 The port of Miami has 3 docking berths for loading and unloading ships but is considering adding a 4th berth.
COMP60621 Designing for Parallelism
Traffic Light Simulation
COMP60621 Designing for Parallelism
MECH 3550 : Simulation & Visualization
Queuing Models J. Mercy Arokia Rani Assistant Professor
Presentation transcript:

2.7: Simulation

Key points about computer simulation Computer simulation involves the construction of models using computer programs, which can represent real or imaginary situations. Computer simulations allow users to study or try things that would be difficult or impossible to do in real life. Queues often form an integral part of computer simulation. Computer simulation models need to deal with the behaviour of a system over a period of time. Simulations also often include some element of randomness, often through the use of a pseudo random number generator.

Simulation examples There are many examples of computer simulations, for example: The Bank of England may use simulations to see what might happen to the economy if interest rates were reduced or increased. A factory may use a simulation to see the increase in output and profit if more machines were installed. A supermarket may use a simulation to find out the optimum number of checkouts to open at different times of day, in order to reduce queuing and increase customer satisfaction.

Entities and Attributes Entities are the components that make up a system. Attributes are the characteristics of an entity. For example, in a supermarket, some entities might be Customer, Queue, Checkout Operator. An attribute of the customer might be waiting. An attribute of the queue might be its length. An attribute of the checkout operator might be busy.

States, events and activities A system also has states, events and activities. State – What is happening at the moment in the system. For example, in a queuing system, the states are: Nobody in the queue, server waiting. Nobody in the queue, a customer being served. Event – An event is what causes a change of state to take place. For example, a customer arrives. Activity – is defined as a process which takes time The serving of a customer. The inter-arrival time between customers arriving.

Simulation example 1: Taxi company A taxi cab company has a problem They only have one mechanic, Bob. Bob is very experienced but he cannot repair the taxis quickly enough on his own and taxis are out of action for too long queuing up waiting to be repaired. This means the company is losing money. One of the taxi drivers, Olly, used to be a mechanic. Should they use him to repair taxis as a backup? If so, the taxis may be back on the road more quickly. Olly is a quicker mechanic, but less experienced and thorough than Bob. The more time Olly is working as a mechanic, the less time he will be driving his taxi and earning taxi fares for the company. What should the company do to ensure they make the maximum profit? A computer simulation could help to model this situation.

Taxi scenario: Entities and Attributes What would be the entities in this system? Taxi Mechanic Queue What attributes are there of the taxi? How long waiting for repair Whether on or off the road Etc. Can you think of attributes of the other entities?

Taxi scenario: States, events and activities Possible states The mechanics are both busy; taxis are waiting. Olly is driving his cab; no taxis are waiting for repair. Possible events A taxi breaks down. Bob starts a repair. Bob finishes a repair. Possible activities Bob is repairing a taxi. Olly is repairing a taxi. Can you think of others?

Simulation example 2: Traffic flow A town is becoming very congested with traffic most of the day, particularly at rush-hour. A range of alternatives have been suggested including more traffic lights, building a bypass and putting in speed restrictors. A computer simulation is needed to investigate all of these alternatives to see how much traffic congestion would reduce with each alternative. For example, a simulation might consider the effect of introducing traffic lights and enforcing a speed limit. What would be the events and variables in this simulation?

Traffic flow scenario: Entities and Attributes What would be the entities in this system? A car The road The traffic lights What attributes are there of the traffic lights? Colour Time between changes Can you think of attributes of the other entities?

Traffic flow scenario: State, events and activities Possible states – There are no cars waiting at the traffic lights; the lights are red. All traffic is stationary. Possible events – The traffic lights change to red. The traffic lights change to green. Possible activities – A car is moving along the road. A car is waiting at the traffic lights. Can you think of others?

Timing of events Many simulations involve changing the timing of events – these are called discrete event simulations. Events may occur at random time intervals. To do this a (pseudo) random number generator can be used. A number is generated between 0 and 1 using a mathematical formula. It can then be multiplied by a number to generate larger numbers. Probability may be used to give realistic timing of events in the simulation. These may be based on averages such as how many customers arrive in a given period of time.

Summary Computer simulations can be used for a wide range of different situations, where a “what if” question needs to be asked. Computer simulations involve creating a model of a real-life, or imaginary situation. Creating a model of a system involves determining the entities, attributes, states, events, attributes and activities within the system.