CPSC 441 Tutorial TA: Fang Wang. Simulation Methodology Plan: Introduce basics of simulation modeling Define terminology and methods used Introduce simulation.

Slides:



Advertisements
Similar presentations
© 2004 Wayne Wolf Topics Task-level partitioning. Hardware/software partitioning.  Bus-based systems.
Advertisements

1 The ns-2 Network Simulator H Plan: –Discuss discrete-event network simulation –Discuss ns-2 simulator in particular –Demonstration and examples: u Download,
Simulation - An Introduction Simulation:- The technique of imitating the behaviour of some situation or system (economic, military, mechanical, etc.) by.
Lookahead. Outline Null message algorithm: The Time Creep Problem Lookahead –What is it and why is it important? –Writing simulations to maximize lookahead.
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
 1  Outline  Model  problem statement  detailed ARENA model  model technique  Output Analysis.
Event-drive SimulationCS-2303, C-Term Project #3 – Event-driven Simulation CS-2303 System Programming Concepts (Slides include materials from The.
Simulation. Example: A Bank Simulator We are given: –The number of tellers –The arrival time of each customer –The amount of time each customer requires.
1 Statistical Inference H Plan: –Discuss statistical methods in simulations –Define concepts and terminology –Traditional approaches: u Hypothesis testing.
FIN 685: Risk Management Topic 5: Simulation Larry Schrenk, Instructor.
Simulation Where real stuff starts. ToC 1.What, transience, stationarity 2.How, discrete event, recurrence 3.Accuracy of output 4.Monte Carlo 5.Random.
Classification of Simulation Models
Programming Assignment #3 CS-2301, B-Term Programming Assignment #3 User-defined Functions Due, November 18, 11:59 PM (Assignment adapted from C:
Discrete-Event Simulation: A First Course Steve Park and Larry Leemis College of William and Mary.
Discrete Event Simulation How to generate RV according to a specified distribution? geometric Poisson etc. Example of a DEVS: repair problem.
Components and Organization of Discrete-event Simulation Model
Simulation.
Cmpt-225 Queues. A queue is a data structure that only allows items to be inserted at the end and removed from the front Queues are FIFO (First In First.
Copyright © 2005 Department of Computer Science CPSC 641 Winter Simulation Methodology Plan: –Introduce basics of simulation modeling –Define terminology.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Introduction to Simulation Shiv Kalyanaraman Rensselaer Polytechnic Institute
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
1 Simulation Methodology H Plan: –Introduce basics of simulation modeling –Define terminology and methods used –Introduce simulation paradigms u Time-driven.
Descriptive Modelling: Simulation “Simulation is the process of designing a model of a real system and conducting experiments with this model for the purpose.
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.
Cmpt-225 Simulation. Application: Simulation Simulation  A technique for modeling the behavior of both natural and human-made systems  Goal Generate.
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.
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:
© 2005 The MathWorks, Inc. Advanced Technologies to Accelerate Mixed Signal Simulation Pieter J. Mosterman Senior Research Scientist The MathWorks, Inc.
Modeling and Simulation
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Chapter 1 Introduction to Simulation
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
Chapter 4 – Modeling Basic Operations and Inputs  Structural modeling: what we’ve done so far ◦ Logical aspects – entities, resources, paths, etc. 
ICOM 6115: Computer Systems Performance Measurement and Evaluation August 11, 2006.
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.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Monté Carlo Simulation  Understand the concept of Monté Carlo Simulation  Learn how to use Monté Carlo Simulation to make good decisions  Learn how.
June 10, 1999 Discrete Event Simulation - 3 What other subsystems do we need to simulate? Although Packets are responsible for the largest amount of events,
Interconnect simulation. Different levels for Evaluating an architecture Numerical models – Mathematic formulations to obtain performance characteristics.
Interconnect simulation. Different levels for Evaluating an architecture Numerical models – Mathematic formulations to obtain performance characteristics.
Monte Carlo Process Risk Analysis for Water Resources Planning and Management Institute for Water Resources 2008.
Simulation Techniques Overview Simulation environments emulation/ exec- driven event- driven sim trace- driven sim stochastic sim Workload parameters System.
Fall 2011 CSC 446/546 Part 1: Introduction to Simulation.
Chapter 2 Fundamental Simulation Concepts
Reid & Sanders, Operations Management © Wiley 2002 Simulation Analysis D SUPPLEMENT.
Lecture 1 – Operations Research
Introduction to Simulation Andy Wang CIS Computer Systems Performance Analysis.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Computer Simulation of Networks ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
Network Protocol Simulation: A look at Discrete Event Simulation Grant D. Lanterman 5/21/2004.
Dr. Anis Koubâa CS433 Modeling and Simulation
Simulation Sesi 12 Dosen Pembina: Danang Junaedi IF-UTAMA1.
Csci 418/618 Simulation Models Dr. Ken Nygard, IACC 262B
 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,
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.
Discrete-Event System Simulation in Java. Discrete Event Systems New dynamic systems New dynamic systems Computer and communication networks Computer.
LMI Use of Generalized Activity Network Models for Analysis of European ATM Development Projects Peter Kostiuk LMI Patrick Ky Eurocontrol Experimental.
Traffic Simulation L2 – Introduction to simulation Ing. Ondřej Přibyl, Ph.D.
Modeling and Simulation (An Introduction)
ADVANTAGES OF SIMULATION
Simulation Department of Industrial Engineering Anadolu University
CPSC 531: System Modeling and Simulation
Introduction to Simulation
Computer Simulation of Networks
CPSC 531: System Modeling and Simulation
Simulation Carey Williamson Department of Computer Science
Statistical Methods Carey Williamson Department of Computer Science
Carey Williamson Department of Computer Science University of Calgary
Carey Williamson Department of Computer Science University of Calgary
MECH 3550 : Simulation & Visualization
Presentation transcript:

CPSC 441 Tutorial TA: Fang Wang

Simulation Methodology Plan: Introduce basics of simulation modeling Define terminology and methods used Introduce simulation paradigms Time-driven simulation Event-driven simulation Monte Carlo simulation Technical issues for simulations Random number generation Statistical inference

Simulations Widely used in computing and technology for helping to understand the behavior of systems that are too hard to model in other forms Processor scheduling Traffic and highway analysis Rivers and streams and flooding Robot movement and control Network congestion Satellites and space craft … From: web.cs.wpi.edu/.../Assignment3--EventDrivenSimulation.ppt

Performance Evaluation Analytical Methods Simulation Methods Experimental Methods

Performance Evaluation Analytical Methods Simulation Methods Experimental Methods Time-DrivenEvent-DrivenMonte Carlo...

Performance Evaluation Analytical Methods Simulation Methods Experimental Methods Time-DrivenEvent-DrivenMonte Carlo Sequential ParallelDistributed...

Time-Driven Simulation Time advances in fixed size steps Time step = smallest unit in model Check each entity to see if state changes Well-suited to continuous systems e.g., river flow, factory floor automation Granularity issue: Too small: slow execution for model Too large: miss important state changes

Event-Driven Simulation (1 of 2) Discrete-event simulation (DES) System is modeled as a set of entities that affect each other via events (msgs) Each entity can have a set of states Events happen at specific points in time (continous or discrete), and trigger state changes in the system Very general technique, well-suited to modeling discrete systems (e.g, queues)

Event-Driven Simulation (2 of 2) Typical implementation involves an event list, ordered by time Process events in (non-decreasing) timestamp order, with seed event at t=0 Each event can trigger 0 or more events Zero: “dead end” event One: “sustaining” event More than one: “triggering” event Simulation ends when event list is null, or desired time duration has elapsed

Sequential Simulation Assumes a single processor system Uses central event list (ordered by time) Global state information available Single, well-defined notion of time Many clever implementation techniques and data structures for optimizing event list management Linked list; doubly-linked list; priority queue; heap; calendar queue; trie structure

Monte Carlo Simulation Estimating an answer to some difficult problem using numerical approximation, based on random numbers Examples: numerical integration, primality testing, WSN coverage Suited to stochastic problems in which probabilistic answers are acceptable Might be one-sided answers (e.g., prime) Can bound probability to some epsilon

Random Number Generators Random numbers are needed frequently in engineering & scientific computations Simulations, arrival times, etc. Exercising other code Analyzing system performance Definition: Random Number Generator A function that returns a seemingly random number each time it is called (Usually) within a specified range From: web.cs.wpi.edu/.../Assignment3--EventDrivenSimulation.ppt

Summary Simulation methods offer a range of general-purpose approaches for perf eval Simulation modeler must determine the appropriate aspects of system to model “The hardest part about simulation is deciding what not to model.” - M. Lavigne Many technical issues: RNG, validation, statistical inference, efficiency We will look at some examples soon