<< Chapter < Page Chapter >> Page >
Basic theory of one- and two-server ques with Poisson arrivals and exponential servers. Matlab calculations provide numerical examples.

A standard model of a queueing system with a single waiting line and one or more servers assumes that “customers” arrive according to a Poisson process withrate ( λ ) . The customer at the head of the line goes to the first available server, if there are more than one, or to the single server as soonas available, if there is only one. The servers operate independently (of each other and the arrival process), each with exponential service time. We supposeeach server has the same distribution, exponential ( μ ) . Such a system may be analyzed as a Markov birth-death process. An analysis of the long-runprobabilities and expectations of various quantities after the system has settled down to equilibrium yields the results below.

Calculation of these quantities is straightforward, but somewhat tedious if various cases are considered. Matlab procedures for single-server andtwo-server systems are utilized to make these calculations quickly and to present them in a useful way.

Notation

  • N t = number in system (in service and waiting) at time t
  • Q t = number waiting to be served at time t
  • π j = lim t p i j ( t ) = long-run probability of being in state j
  • W t = waiting time for service for customer who arrives at time t
  • D t = waiting time plus service time for customer who arrives at time t
  • A = random variable with distribution of interarrival times
  • S = random variable with distribution of service times

Long-run probabilities π j = P ( N t = j ) for large t , s servers, E [ A ] = 1 / λ , E [ S ] = 1 / μ

For s = 1 ,

  • ρ = E [ S ] / E [ A ] = λ / μ
  • π 0 = 1 - ρ π n = ( 1 - ρ ) ρ n
  • N t is approximately geometric ( 1 - ρ )

For s > 1 ,

  • ρ = E [ S ] / s E [ A ] = λ / s μ
  • π n = π 0 ( s ρ ) n / n ! = π 0 ( λ / μ ) n / n ! 0 n s π 0 ( s s / s ! ) ρ n = π 0 [ ( s ρ ) s / s ! ] ρ n - s s < n

For s = 2

  • π 0 = 1 - ρ 1 + ρ = 2 μ - λ 2 μ + λ

For s = 3

  • π 0 = 1 - ρ 1 + 2 ρ + 3 2 ρ 2

For s = 4

  • π 0 = 1 - ρ 1 + 3 ρ + 8 ρ 2 + 8 3 ρ 3

For large t , with the system in equilibrium

E [ D t ] = E [ A ] E [ N t ] and E [ W t ] = E [ A ] E [ Q t ] E [ S ] E [ N t ]

For s = 1

  • E [ N t ] = ρ 1 - ρ = λ μ - λ
  • E [ Q t ] = ρ E [ N t ] P ( N t > 0 ) = ρ
  • E [ W t ] = E [ S ] E [ N t ] = λ / μ μ - λ
  • D t is approximately exponential ( μ - λ )

For s > 1

  • C = P ( W t > 0 ) = π 0 ( s ρ ) s s ! ( 1 - ρ ) = E [ Q t ] 1 - ρ ρ = s μ ( 1 - ρ ) E [ W t ]
  • P ( W t > v ) = C e - ( μ s - λ ) v v 0
  • P ( D t > v ) = e - μ v 1 + C μ 1 - e - [ μ ( s - 1 ) - λ ] v μ ( s - 1 ) - λ for λ μ ( s - 1 )
  • P ( D t > v ) = e - μ v [ 1 + μ C v ] for λ = μ ( s - 1 )
  • E [ Q t ] = π 0 ( s ρ ) s s ! ρ ( 1 - ρ ) 2
  • E [ N t ] E [ Q t ] + λ μ = E [ Q t ] + s ρ

Matlab calculations for single server queue (in file queue1.m)

L = input('Enter lambda '); % Type desired value, no extra space M = input('Enter mu '); % Type desired value, no extra spacea = [' lambda mu'];b = [L M];disp(a) disp(b)r = L/M; % RhoEN = r/(1 - r); % E[N]EQ = r*EN; % E[Q]EW = EQ/L; % E[W]ED = EN/L; % E[D]A = [' rho EN EQ EW ED']; % Identifies entries in B B = [r EN EQ EW ED]; disp(A)disp(B)v = input('Enter row matrix of values v '); % Type matrix of desired valuesPD = exp(-M*(1 - r)*v); % Calculates P(Dt>v)S = [' v P(D>v)'];s = [v; PD]';disp(S) disp(s)
queue1Enter lambda 0.1 Enter mu 0.2lambda mu 0.1000 0.2000rho EN EQ EW ED0.5000 1.0000 0.5000 5.0000 10.0000Enter row matrix of values v [8 16 24]v P(D>v) 8.0000 0.449316.0000 0.2019 24.0000 0.0907

Questions & Answers

what is defense mechanism
Chinaza Reply
what is defense mechanisms
Chinaza
I'm interested in biological psychology and cognitive psychology
Tanya Reply
what does preconceived mean
sammie Reply
physiological Psychology
Nwosu Reply
How can I develope my cognitive domain
Amanyire Reply
why is communication effective
Dakolo Reply
Communication is effective because it allows individuals to share ideas, thoughts, and information with others.
effective communication can lead to improved outcomes in various settings, including personal relationships, business environments, and educational settings. By communicating effectively, individuals can negotiate effectively, solve problems collaboratively, and work towards common goals.
it starts up serve and return practice/assessments.it helps find voice talking therapy also assessments through relaxed conversation.
miss
Every time someone flushes a toilet in the apartment building, the person begins to jumb back automatically after hearing the flush, before the water temperature changes. Identify the types of learning, if it is classical conditioning identify the NS, UCS, CS and CR. If it is operant conditioning, identify the type of consequence positive reinforcement, negative reinforcement or punishment
Wekolamo Reply
please i need answer
Wekolamo
because it helps many people around the world to understand how to interact with other people and understand them well, for example at work (job).
Manix Reply
Agreed 👍 There are many parts of our brains and behaviors, we really need to get to know. Blessings for everyone and happy Sunday!
ARC
A child is a member of community not society elucidate ?
JESSY Reply
Isn't practices worldwide, be it psychology, be it science. isn't much just a false belief of control over something the mind cannot truly comprehend?
Simon Reply
compare and contrast skinner's perspective on personality development on freud
namakula Reply
Skinner skipped the whole unconscious phenomenon and rather emphasized on classical conditioning
war
explain how nature and nurture affect the development and later the productivity of an individual.
Amesalu Reply
nature is an hereditary factor while nurture is an environmental factor which constitute an individual personality. so if an individual's parent has a deviant behavior and was also brought up in an deviant environment, observation of the behavior and the inborn trait we make the individual deviant.
Samuel
I am taking this course because I am hoping that I could somehow learn more about my chosen field of interest and due to the fact that being a PsyD really ignites my passion as an individual the more I hope to learn about developing and literally explore the complexity of my critical thinking skills
Zyryn Reply
good👍
Jonathan
and having a good philosophy of the world is like a sandwich and a peanut butter 👍
Jonathan
generally amnesi how long yrs memory loss
Kelu Reply
interpersonal relationships
Abdulfatai Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Topics in applied probability. OpenStax CNX. Sep 04, 2009 Download for free at http://cnx.org/content/col10964/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Topics in applied probability' conversation and receive update notifications?

Ask