Problem 1: Service System Capacity CustomersServed Customers Queue Server Problem: Can a server taking an average of x time units meet the demand? Solution.

Slides:



Advertisements
Similar presentations
Estimation of Means and Proportions
Advertisements

The Easiest solution isn’t always the best solution, even in Math Should we always believe what we are taught in the classroom?
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
1 Overview of Simulation When do we prefer to develop simulation model over an analytic model? When not all the underlying assumptions set for analytic.
11 Simulation. 22 Overview of Simulation – When do we prefer to develop simulation model over an analytic model? When not all the underlying assumptions.
Monte Carlo Methods and Statistical Physics
1 12. Principles of Parameter Estimation The purpose of this lecture is to illustrate the usefulness of the various concepts introduced and studied in.
Sensitivity Analysis In deterministic analysis, single fixed values (typically, mean values) of representative samples or strength parameters or slope.
Output analyses for single system
COMPUTER MODELS IN BIOLOGY Bernie Roitberg and Greg Baker.
Simulation Modeling and Analysis
Waiting Line Models And Service Improvement
Chapter 6 Continuous Random Variables and Probability Distributions
#10 MONTE CARLO SIMULATION Systems Fall 2000 Instructor: Peter M. Hahn
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
Module C9 Simulation Concepts. NEED FOR SIMULATION Mathematical models we have studied thus far have “closed form” solutions –Obtained from formulas --
Simulation Basic Concepts. NEED FOR SIMULATION Mathematical models we have studied thus far have “closed form” solutions –Obtained from formulas -- forecasting,
Simulation Basic Concepts. NEED FOR SIMULATION Mathematical models we have studied thus far have “closed form” solutions –Obtained from formulas -- forecasting,
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Hypothesis Testing Methodology Z Test for the Mean (  Known) p-Value Approach to Hypothesis Testing.
The Monte Carlo Method: an Introduction Detlev Reiter Research Centre Jülich (FZJ) D Jülich
Random-Number Generation. 2 Properties of Random Numbers Random Number, R i, must be independently drawn from a uniform distribution with pdf: Two important.
Problem 1 Given a high-resolution computer image of a map of an irregularly shaped lake with several islands, determine the water surface area. Assume.
Simulation Output Analysis
Simulation of Random Walk How do we investigate this numerically? Choose the step length to be a=1 Use a computer to generate random numbers r i uniformly.
Data Mining Practical Machine Learning Tools and Techniques Slides for Chapter 5 of Data Mining by I. H. Witten, E. Frank and M. A. Hall 報告人:黃子齊
Estimation Basic Concepts & Estimation of Proportions
Standard Statistical Distributions Most elementary statistical books provide a survey of commonly used statistical distributions. The reason we study these.
1 Mohammed M. Olama Seddik M. Djouadi ECE Department/University of Tennessee Ioannis G. PapageorgiouCharalambos D. Charalambous Ioannis G. Papageorgiou.
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 BSSRDF – Bidirectional surface scattering reflectance distribution function Radiance theory BRDF.
MA3264 Mathematical Modelling Lecture 6 Monte Carlo Simulation.
General Principle of Monte Carlo Fall 2013 By Yaohang Li, Ph.D.
Module 1: Statistical Issues in Micro simulation Paul Sousa.
1 Lesson 8: Basic Monte Carlo integration We begin the 2 nd phase of our course: Study of general mathematics of MC We begin the 2 nd phase of our course:
1 SMU EMIS 7364 NTU TO-570-N Inferences About Process Quality Updated: 2/3/04 Statistical Quality Control Dr. Jerrell T. Stracener, SAE Fellow.
Monte Carlo Methods.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
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.
Monté Carlo Simulation  Understand the concept of Monté Carlo Simulation  Learn how to use Monté Carlo Simulation to make good decisions  Learn how.
Monte Carlo Process Risk Analysis for Water Resources Planning and Management Institute for Water Resources 2008.
Copyright © 2014, 2013, 2010 and 2007 Pearson Education, Inc. Chapter The Normal Probability Distribution 7.
Point Pattern Analysis Point Patterns fall between the two extremes, highly clustered and highly dispersed. Most tests of point patterns compare the observed.
Suppose we are given a differential equation and initial condition: Then we can approximate the solution to the differential equation by its linearization.
1 1 Slide © 2004 Thomson/South-Western Simulation n Simulation is one of the most frequently employed management science techniques. n It is typically.
CHAPTER 5 Simulation Modeling. Introduction In many situations a modeler is unable to construct an analytic (symbolic) model adequately explaining the.
Simulation Chapter 16 of Quantitative Methods for Business, by Anderson, Sweeney and Williams Read sections 16.1, 16.2, 16.3, 16.4, and Appendix 16.1.
Understanding Basic Statistics Fourth Edition By Brase and Brase Prepared by: Lynn Smith Gloucester County College Chapter Nine Hypothesis Testing.
Dr. Anis Koubâa CS433 Modeling and Simulation
Delays  Deterministic Assumes “error free” type case Delay only when demand (known) exceeds capacity (known)  Stochastic Delay may occur any time Random.
SIMULATION EXAMPLES. Monte-Carlo (Static) Simulation Estimating profit on a sale promotion Estimating profit on a sale promotion Estimating profit on.
MAT 4830 Mathematical Modeling 04 Monte Carlo Integrations
EMIS 7300 SYSTEMS ANALYSIS METHODS FALL 2005 Dr. John Lipp Copyright © 2005 Dr. John Lipp.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
Introduction to Computer Simulation of Physical Systems (Lecture 10) Numerical and Monte Carlo Methods (CONTINUED) PHYS 3061.
2( ) 8x + 14y = 4 -12x – 14y = x = x = 4 8x + 14y = 4 8(4) + 14y = y = y = -28 ___ ___ y = -2 The solution is (4, -2)
Markov Chain Monte Carlo in R
Simulation of Inventory Systems
Modeling and Simulation CS 313
Chapter Nine Hypothesis Testing.
Virtual University of Pakistan
Lecture 1.31 Criteria for optimal reception of radio signals.
Computer Simulation Henry C. Co Technology and Operations Management,
12. Principles of Parameter Estimation
Problem 1: Service System Capacity
Modeling and Simulation CS 313
MONTECARLO (STATIC) SIMULATIONS
Unfolding Problem: A Machine Learning Approach
Use the substitution method to find all solutions of the system of equations {image} Choose the answer from the following: (10, 2) (2, 10) (5, - 2) ( -
MONTECARLO (STATIC) SIMULATIONS
12. Principles of Parameter Estimation
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Presentation transcript:

Problem 1: Service System Capacity CustomersServed Customers Queue Server Problem: Can a server taking an average of x time units meet the demand? Solution with an Analytical Model: Must specify the conditions on customer arrival, service completions. Take measurements or adopt assumptions (clearly specified). 1. Pr{customer arrives in interval (t, t +  t]} =  t + o(  t) independent of t 2. Pr{service completes in interval (t, t +  t]} =   t + o(  t) independent of t 3. Customer arrivals and service completions are mutually independent events 4. Population of customers is large and service is in order of arrival 5. The limit of the ratio o(  t) /  t as  t  0 is 0

Analytical Model of Server Capacity Let p n (t) = Pr{n customers in the system at time t} Then p n (t +  t) = p n-1 (t) [  t + o(  t)] + p n (t) [1 -  t + o(  t)] [1 -  t + o(  t)] + p n+1 (t) [  t + o(  t)] n  1 P 0 (t +  t) = p 0 (t) [1 -  t + o(  t)] [1 -  t + o(  t)] + p 1 (t) [  t + o(  t)] Producing the steady-state equations:  p n+1 – ( +  ) p n + p n-1 = 0 (n  1) and  p 1 - p 0 = 0 (n = 0) Solving for p n in terms of p 0 gives p n = ( /  ) n p 0 Using the fact that  p n = 1 and letting  = / , we obtain p n =  n (1 -  ) where  < 1

Problem 2 Given a high-resolution computer image of a map of an irregularly shaped lake with several islands, determine the water surface area. Assume that the x-y coordinates of every point on the map can be measured at an acceptable level of resolution. Suggest alternative solution approaches!

Monte Carlo Simulation 0 X Y Step 1: Enclose the area of interest in the smallest rectangle of known dimensions X and Y. Set j = 1, S = 0, and choose a large value for N where: j = trial number S = number of trials resulting in a hit on the water surface area N = total number of trials

Monte Carlo Simulation RN y 0 x X Y Step 2: Generate a uniformly distributed random number, RN x over the length of X. Step 3: Generate another uniformly distributed random number, RN y over the length of Y.

Monte Carlo Simulation RN y 0 x X Y Step 4: If the point of intersection, (RN x, RN y ), falls on the water surface area, add 1 to S. Step 5: Add 1 to j. If j > N, go to Step 6; otherwise, go to Step 2.

Monte Carlo Simulation RN y 0 x X Y Step 6: The estimate of the water surface area, A, is given by: NOTE: As N  , A  true value of the area X Y S N = A

Problem 3 Use the fundamental theory and logic of the Monte Carlo Simulation technique to estimate the area under the Sine curve over 0 and . 0 1 y  Sin (x)

Monte Carlo Simulation Step 1: Enclose the area of interest in the smallest rectangle of known dimensions  and 1. Set j = 1, S = 0, and choose a large value for N where: j = trial number S = number of trials with a hit on the area under the Sin (x) curve N = total number of trials 0 1 y  Sin (x)

Monte Carlo Simulation 0 1 y  Sin (x) Step 2: Generate a uniformly distributed random number, RN x over the length of . Step 3: Generate another uniformly distributed random number, RN y over the length of 1. RN x RN y

Monte Carlo Simulation 0 1 y  Sin (x) RN x RN y Step 4: If the point of intersection, (RN x, RN y ), falls on or below the Sin (x) curve (i.e., if RN y ≤ Sin (RN x )), add 1 to S. Step 5: Add 1 to j. If j > N, go to Step 6; otherwise, go to Step 2.

Monte Carlo Simulation 0 1 y  Sin (x) RN x RN y Step 6: The estimate of the area, A, is given by: NOTE: As N  , A  2 (true value of the area) X Y S N = A

Problem 4 Use the fundamental theory and logic of the Monte Carlo Simulation technique to solve the following optimization problem: MaximizeZ = ( e X 1 + X 2 ) ( 1 – X 3 ) 2 Subject to: 0 ≤ X 1 ≤ 1 0 ≤ X 2 ≤ 2 2 ≤ X 3 ≤ 3

Step 1: Set j = 1 and choose a large value for N where: j = trial number N = total number of trials Monte Carlo Simulation Use the fundamental theory and logic of the Monte Carlo Simulation technique to solve the following optimization problem: MaximizeZ = ( e X 1 + X 2 ) ( 1 – X 3 ) 2 Subject to: 0 ≤ X 1 ≤ 1 0 ≤ X 2 ≤ 2 2 ≤ X 3 ≤ 3

Step 2: Generate a proper random number, RN 1, over 0 and 1. Step 3: Generate another proper random number, RN 2, over 0 and 2. Step 4: Generate another proper random number, RN 3, over 2 and 3. Monte Carlo Simulation Use the fundamental theory and logic of the Monte Carlo Simulation technique to solve the following optimization problem: MaximizeZ = ( e X 1 + X 2 ) ( 1 – X 3 ) 2 Subject to: 0 ≤ X 1 ≤ 1 0 ≤ X 2 ≤ 2 2 ≤ X 3 ≤ 3

Step 5: Substitute RN 1 for X 1, RN 2 for X 2, and RN 3 for X 3 in the objective function. Store its value in Z(j) and record the corresponding values for X 1, X 2, and X 3. Step 6: Add 1 to j. If j > N, go to Step 7; otherwise, go to Step 2. Monte Carlo Simulation Use the fundamental theory and logic of the Monte Carlo Simulation technique to solve the following optimization problem: MaximizeZ = ( e X 1 + X 2 ) ( 1 – X 3 ) 2 Subject to: 0 ≤ X 1 ≤ 1 0 ≤ X 2 ≤ 2 2 ≤ X 3 ≤ 3

Step 7: The approximate solution of the problem is determined by the values of X 1 ( = RN 1 ), X 2 ( = RN 2 ), and X 3 ( = RN 3 ), which correspond to the maximum value of { Z(j), j = 1, 2, 3,..., N }. NOTE: As N  , X 1  1, X 2  2, and X 3  3. Monte Carlo Simulation Use the fundamental theory and logic of the Monte Carlo Simulation technique to solve the following optimization problem: MaximizeZ = ( e X 1 + X 2 ) ( 1 – X 3 ) 2 Subject to: 0 ≤ X 1 ≤ 1 0 ≤ X 2 ≤ 2 2 ≤ X 3 ≤ 3