This preview shows pages 1–2. Sign up to view the full content.
MIE360 Computer Modeling and Simulation
Lecture Notes
Daniel Frances © 2010
1
MIE360 Lecture 5. Generating Random Events (and other random variates)
We are almost ready to run a handsimulation of the small store to find out, for example, what is the
expected % of idle time you will be able to enjoy?
But we have yet to figure out how to initialize and update the Event List.
First some terminology:
•
Random variable – a variable  x  that can take on a value with probability described by a pdf(x),
e.g. the time to serve a customer, the time between arrivals
•
Random variate – a specific value – X  of the random variable x with pdf(x), X= 2:16
There are two possible events Arrivals and Departures.
Generating Random Departures
Generally there is some type of probability distribution for the time to service a customer – the service
time. Thus, by generating a random service time, just after a departure when the next customer starts
receiving service, then we will know the time of the departure of that customer.
Suppose
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview. Sign up
to
access the rest of the document.
This note was uploaded on 09/20/2011 for the course MIE 360 taught by Professor D.frances during the Fall '10 term at University of Toronto Toronto.
 Fall '10
 D.Frances

Click to edit the document details