queueing package R -> M/M/c queue: how to model machine-repair queueing system, but only allow #servers down-events?

263 views Asked by At

M/M/c allows for modeling of c servers (in my case: repair men). Via lambda (arrival rate) I generate the arrival of events (in my case: failures that are triggered by some machines). This means that the max. number of failures-events in the system is equal the number of machines that trigger them. (this means that there cannot be generated a failure event if there are machines already broken ...). Question: Basic MMC() function in queueing package does not consider this max number! How can I implement it? Thanks.

mmc <- NewInput.MMC(lt,m,i) # (arrivalRate, serviceRate, resources)
      mmcQueue <- QueueingModel(mmc)

Here: arrivalRate shall only generate arrivals (of failures) if a certain number (#machines that trigger the failures) is not exceeded.

1

There are 1 answers

1
user2474226 On

Would this not be a finite-source system, M/M/c/c/m, where c = number of repairmen and c = maximum number of failures allowed in the system, and m = number of machines?

You could use the following function from the package:

NewInput.MMCKM(lambda=0, mu=0, c=1, k=1, m=1, method=0)