# Fundamentals of Transportation/Queueing/Solution2

Problem:

A ramp has an arrival rate of 200 cars an hour and the ramp meter only permits 250 cars per hour, while the ramp can store 40 cars before spilling over.

(A) What is the probability that it is half-full, empty, full?

(B) How many cars do we expect on the ramp?

Solution:

${\displaystyle \rho =200/250=0.8\,\!}$

Part (A)

What is the probability that it is half-full, empty, full?

Half-full

${\displaystyle P(n)={\frac {\left({1-\rho }\right)}{1-\rho ^{N+1}}}\left(\rho \right)^{n}\to P(20)={\frac {\left({1-0.8}\right)}{1-0.8^{40+1}}}\left({0.8}\right)^{20}=0.0023\,\!}$

Empty

${\displaystyle P(n)={\frac {\left({1-\rho }\right)}{1-\rho ^{N+1}}}\left(\rho \right)^{n}\to P(0)={\frac {\left({1-0.8}\right)}{1-0.8^{40+1}}}\left({0.8}\right)^{0}=0.20\,\!}$

Full

${\displaystyle P(n)={\frac {\left({1-\rho }\right)}{1-\rho ^{N+1}}}\left(\rho \right)^{n}\to P(40)={\frac {\left({1-0.8}\right)}{1-0.8^{40+1}}}\left({0.8}\right)^{40}=2.65*10^{-5}\,\!}$

Part (B)

How many cars do we expect on the ramp?

${\displaystyle E(n)={\frac {\left(\rho \right)}{\left({1-\rho }\right)^{}}}{\frac {1-\left({N+1}\right)\left(\rho \right)^{N}+N\rho ^{N+1}}{1-\rho ^{N+1}}}={\frac {\left({0.8}\right)}{\left({1-0.8}\right)^{}}}{\frac {1-\left({40+1}\right)\left({0.8}\right)^{40}+40\left({0.8}\right)^{40+1}}{1-\left({0.8}\right)^{40+1}}}=4\,\!}$