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

View source: R/post_analysis.R

print.summary_queue_listR Documentation

Print method for output of summary.queue_list.

Description

Print method for output of summary.queue_list.

Usage

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

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.

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.

Examples

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

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

queuecomputer documentation built on Nov. 16, 2022, 1:07 a.m.