Upload
xinearpinger
View
222
Download
1
Embed Size (px)
Citation preview
8/4/2019 SDA 3E Chapter 12
1/40
8/4/2019 SDA 3E Chapter 12
2/40
2007 Pearson Education
Queueing Systems Customer arrivals: people, machines,
telephone calls, messages
Servers: people, machines, airportrunways, ATMs, computers
Queue (waiting line): single, parallel,
multiple with common line, series
8/4/2019 SDA 3E Chapter 12
3/40
8/4/2019 SDA 3E Chapter 12
4/40
2007 Pearson Education
Service Characteristics Service process: deterministic or
probabilistic
Exponential services
mean service rate m customers/time(average service time is 1/m)
Number of servers: one or many
8/4/2019 SDA 3E Chapter 12
5/40
2007 Pearson Education
Queue Characteristics
Queue discipline: order in whichcustomers are served
FCFS LCFS
Priority
8/4/2019 SDA 3E Chapter 12
6/40
2007 Pearson Education
System Configuration One or more parallel servers fed by a
single queue.
Several parallel servers fed by their ownqueues.
A combination of several queues in
series.
8/4/2019 SDA 3E Chapter 12
7/40 2007 Pearson Education
Performance Measures The quality of the service provided to the customer.
Waiting time in the queue Time in the system (waiting time plus service time) Completion by a deadline
The efficiency of the service operation and the cost ofproviding the service.
Average queue length Average number of customers in the system (queue
plus in service) Throughput -- the rate at which customers are served Server utilization -- percentage of time servers are
busy Percentage of customers who balk or renege
8/4/2019 SDA 3E Chapter 12
8/40 2007 Pearson Education
Operating Characteristics Lq=average number in the queue
L =average number in the system
Wq=average waiting time in the queue
W =average time in the system
P0=probability that the system isempty
8/4/2019 SDA 3E Chapter 12
9/40 2007 Pearson Education
Analytical Models Single Server
Model Assumptions
Single server
Poisson arrivals, mean rate = l Exponential services, mean rate = m
FCFS queue discipline
Other modelsArbitrary service times
Multiple servers
Finite calling populations
8/4/2019 SDA 3E Chapter 12
10/40 2007 Pearson Education
Single Server Model Operating
CharacteristicsAverage number in queue = Lq = l
2/[mml
Average number in system = L = lml
Average waiting time in queue = Wq = lmml
Average time in system = W = 1/(ml
Probability system is empty = 1 - lm
8/4/2019 SDA 3E Chapter 12
11/40 2007 Pearson Education
Example Customers arrive at an airline ticket counter
at a rate ofl = 2 customers/minute and can
be served at a rate ofm = 3 customers perminute.
8/4/2019 SDA 3E Chapter 12
12/40 2007 Pearson Education
Calculations Lq = =1.33 customers
L = = 2.00 customers
Wq = = 0.67 minutes
W = = 1.00 minutes
P0 = 1 2/3 = 0.33
)2(3
22
33
2
)23(3
2
23
1
8/4/2019 SDA 3E Chapter 12
13/40 2007 Pearson Education
Analytical Models vs.
SimulationAnalytical models provide only long-
term steady-stateresults
Simulation results show short-rermtransientbehavior
8/4/2019 SDA 3E Chapter 12
14/40
2007 Pearson Education
Littles Law For any steady-state queuing system,
L = lW
Other relationships
Lq = lWq
L = Lq
+ lm
W = Wq + 1/m
8/4/2019 SDA 3E Chapter 12
15/40
2007 Pearson Education
Process Simulation ConceptsCustomer arrives
Customer waits for serviceif server is busy
Customer receives service
Customer leaves
next!
8/4/2019 SDA 3E Chapter 12
16/40
2007 Pearson Education
Observations If a customer arrives and the server is idle,
then service can begin immediately uponarrival.
If the server is busy when a customerarrives, then the customer cannot beginservice until the previous customer hascompleted service.
The time that a customer completes serviceequals the time service begins plus theactual service time.
8/4/2019 SDA 3E Chapter 12
17/40
2007 Pearson Education
Manual Process Simulation
8/4/2019 SDA 3E Chapter 12
18/40
2007 Pearson Education
Process Simulation with SimQuick SimQuickElements
Entrances where objects enter a process. Buffers places where objects can be stored
(inventory storage, queues of people or parts, andso on). Work Stations places where work is performed on
objects (machines, service personnel, and so on). Decision Points where an object goes in one of
two or more directions (outcomes of processingactivities, routings for further processing, and soon).
Exits places where objects leave a processaccording to a specified schedule.
8/4/2019 SDA 3E Chapter 12
19/40
2007 Pearson Education
Process Simulation with SimQuick Statistical Distributions
Normal: Nor(mean, standard
deviation) Exponential: Exp(mean)
Uniform: Uni(lower, upper)
Constant Discrete: Dis(i), where iis the
reference to table iof the worksheet
8/4/2019 SDA 3E Chapter 12
20/40
2007 Pearson Education
SimQuickControl Panel
8/4/2019 SDA 3E Chapter 12
21/40
2007 Pearson Education
SimQuick Queuing Simulation
Model Customers at a car wash arrive randomly at
an average of 15 cars per hour (or one car
every 4 minutes). A car takes an average of 3minutes to wash (or 20 cars per hour)
Process flow map:
8/4/2019 SDA 3E Chapter 12
22/40
2007 Pearson Education
Entrances Worksheet
8/4/2019 SDA 3E Chapter 12
23/40
2007 Pearson Education
Buffers Worksheet
8/4/2019 SDA 3E Chapter 12
24/40
2007 Pearson Education
Work Stations Worksheet
8/4/2019 SDA 3E Chapter 12
25/40
2007 Pearson Education
Simulation Results
8/4/2019 SDA 3E Chapter 12
26/40
2007 Pearson Education
Work Station Statistics Final status: status of the work station when
the simulation ends Final inventory (int. buff.), Mean inventory
(int. buff.), and Mean cycle time (int. buff.): Work cycles started: the number of times the
work station has started processing Fraction time working: utilization of the work
station Fraction time blocked: fraction of time that
the work station was waiting to pass on anobject to the next element.
8/4/2019 SDA 3E Chapter 12
27/40
2007 Pearson Education
Buffer Statistics Objects leaving: number of objects that left
the buffer Final inventory: Inventory refers to the
number of objects in the buffer. Finalinventory is the number remaining at the endof the simulation
Minimum inventory; Maximum inventory;
Mean inventory: statistics on the number ofobjects during the simulation Mean cycle time: mean time that an object
spends in the buffer
8/4/2019 SDA 3E Chapter 12
28/40
2007 Pearson Education
Comparison to Analytical Results
8/4/2019 SDA 3E Chapter 12
29/40
2007 Pearson Education
Queues in Series with Blocking
8/4/2019 SDA 3E Chapter 12
30/40
2007 Pearson Education
Buffers Worksheet with Queue
Capacities
8/4/2019 SDA 3E Chapter 12
31/40
2007 Pearson Education
Grocery Store Model with
Resources
8/4/2019 SDA 3E Chapter 12
32/40
2007 Pearson Education
Resources Worksheets
8/4/2019 SDA 3E Chapter 12
33/40
2007 Pearson Education
Inspection Model with Decision
Points
8/4/2019 SDA 3E Chapter 12
34/40
2007 Pearson Education
Decision Point Table
8/4/2019 SDA 3E Chapter 12
35/40
2007 Pearson Education
Pull System Supply Chain With
Exit Schedules
8/4/2019 SDA 3E Chapter 12
36/40
2007 Pearson Education
Other SimQuickFeatures Discrete distributions
Custom schedules
8/4/2019 SDA 3E Chapter 12
37/40
2007 Pearson Education
Continuous Simulation ModelingA continuous simulation model defines
equations for relationships among state
variables so that the dynamic behaviorof the system over time can be studied.
8/4/2019 SDA 3E Chapter 12
38/40
2007 Pearson Education
Example: Cost of Medical
Services
8/4/2019 SDA 3E Chapter 12
39/40
2007 Pearson Education
Modeling Equations POPLVL(t) = POPLVL(t - 1) + GROWTH(t)
DEMAND(t) = POPLVL(t) - [MEDRATE(t - 1) - MEDRATE(t - 2)]
MEDRATE(t) = MEDRATE(t = 1) + POPLVL(t) - POPLVL(t - 1)
+ .8*[INSRATE(t - 1) - INSRATE(t - 2)]
INSRATE(t) = INSRATE(t = 1) + .10*MEDSUIT(t - 1) - [RISK(t - 1) -
RISK(t - 2)]
MEDSUIT(t) = MEDSUIT(t - 1) + [MEDRATE(t - 1) - 1]/RISK(t - 1)
RISK(t) = RISK(t - 1) + .10*[MEDSUIT(t - 1) - 1]
8/4/2019 SDA 3E Chapter 12
40/40
Simulation Results