Continuous Markov chains - vehicle service at a gas station
A gas station has a single pump. There is no space for vehicles to wait. If a vehicle arrives at the pump and there is no place the vehicle leaves without filling at the pump. Vehicles arrive at the gas station following a Poisson process with a rate of 3/20 vehicles per minute. Of the vehicles arriving at the pump, 75% are cars and 25% are motorcycles. The refueling time can be modeled with an exponential random variable with a mean of eight minutes for cars and three minutes for motorcycles.
Getting ready
In order to perform continuous Markov chains for vehicle service at a gas station we shall be simulating data.
How to do it...
Let's get into the details.
Step 1 - preparing the dataset
Load the following packages:
> install.packages("simmer") > install.packages("ggplot2") > library(simmer) > library(ggplot2)
Note
Version info: Code for this...