Learn R Programming

queuecomputer (version 1.2.0)

print.summary_queue_list: Print method for output of summary.queue_list.

Description

Print method for output of summary.queue_list.

Usage

# S3 method for summary_queue_list
print(x, ...)

Value

A list of performance statistics for the queue:

"Total customers": Total customers in simulation,

"Missed customers": Customers who never saw a server,

"Mean waiting time": The mean time each customer had to wait in queue for service,

"Mean response time": The mean time that each customer spends in the system (departure time - arrival time),

"Utilization factor": The ratio of available time for all servers and time all servers were used. It can be greater than one if a customer arrives near the end of a shift and keeps a server busy,

"Mean queue length": Average queue length, and

"Mean number of customers in system": Average number of customers in queue or currently being served.

Arguments

x

an object of class summary_queue_list, the result of a call to summary.queue_list().

...

further arguments to be passed to or from other methods.

Examples

Run this code
n <- 1e3
arrivals <- cumsum(rexp(n, 1.8))
service <- rexp(n)

queue_obj <- queue_step(arrivals, service, servers = 2)
summary(queue_obj)

Run the code above in your browser using DataLab