![]() |
LINE Solver
MATLAB API documentation
|
Single-station queueing system analysis.
The qsys module provides exact and approximate formulas for single-station queueing systems, including M/M/1, M/M/k, M/G/1, G/I/G/1 approximations, and finite buffer loss models.
Basic Queueing Models:
Discrete-Time (Slotted) Models:
G/I/G/1 Approximations:
G/I/G/k Approximations:
Finite Buffer Loss Models:
Description: M/M/1 queue mean waiting time.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate |
Returns:
| Name | Description |
|---|---|
| W | Mean waiting time (including service) |
| rho | Utilization |
Description: M/M/k queue mean waiting time using Erlang-C formula.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate per server |
| k | Number of servers |
Returns:
| Name | Description |
|---|---|
| W | Mean waiting time (including service) |
| rho | Utilization per server |
Description: M/G/1 queue using the Pollaczek-Khinchine formula.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate |
| cs | Coefficient of variation of service time |
Returns:
| Name | Description |
|---|---|
| W | Mean waiting time (including service) |
| rhohat | Effective utilization for M/M/1 equivalence |
Description: Discrete-time Geo/Geo/1 queue: exact stationary distribution and mean measures. Time advances in slots of unit length; in each slot an arrival occurs with probability a and, if the server is engaged, a service completion occurs with probability s. The observation epoch is selected by the convention argument: 'LAS_DA' (default, the state after both the departure and the arrival of the slot) or 'EAS' (the state after the departure and before the arrival). The two are one departure apart, so the mean sojourn times differ by exactly one slot and the waiting times coincide.
Syntax:
| Name | Description |
|---|---|
| a | Per-slot arrival probability, 0 < a < s |
| s | Per-slot service completion probability, 0 < s <= 1 |
| convention | Observation epoch, 'LAS_DA' (default) or 'EAS' |
Returns: struct with meanQueueLength, meanWaitingQueue, meanSojournTime, meanWaitingTime, meanServiceTime, utilization, throughput, emptyProb, ratio and a pmf function handle.
Reference: H. Daduna, Queueing Networks with Discrete Time Scale, LNCS 2046, Springer 2001, corollary 2.7.
Description: Discrete-time Geo^X/Geo/1 queue with batch arrivals. In each slot a batch arrives with probability a; the batch size is geometric on {1,2,...} with parameter beta, so the job arrival rate is lambda = a/beta and stability requires lambda < s. The mean follows from the queue-length generating function and depends on the batch only through its first two factorial moments. At beta = 1 the result equals qsys_geogeo1.
Syntax:
| Name | Description |
|---|---|
| a | Per-slot probability that a batch arrives, 0 < a <= 1 |
| beta | Batch-size geometric parameter; batch supported on {1,2,...} with mean 1/beta |
| s | Per-slot service completion probability, 0 < s <= 1 |
| convention | Observation epoch, 'LAS_DA' (default) or 'EAS' |
Returns: struct with arrivalRate, throughput, utilization, boundaryEmptyProb, meanQueueLength, meanWaitingQueue, meanSojournTime, meanWaitingTime, meanServiceTime and a pgf function handle. No pmf is returned: for a general batch law the stationary distribution has no elementary closed form.
Description: G/M/1 queue mean waiting time.
Syntax:
| Name | Description |
|---|---|
| sigma | Load at arrival instants (Laplace transform of inter-arrival times) |
| mu | Service rate |
Returns:
| Name | Description |
|---|---|
| W | Mean waiting time (including service) |
Description: Kingman's upper bound for G/I/G/1 queue.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate |
| ca | Coefficient of variation of inter-arrival times |
| cs | Coefficient of variation of service times |
Returns:
| Name | Description |
|---|---|
| W | Upper bound on mean waiting time |
| rhohat | Effective utilization |
Description: Allen-Cunneen approximation for G/I/G/1 queue.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate |
| ca | Coefficient of variation of inter-arrival times |
| cs | Coefficient of variation of service times |
Returns:
| Name | Description |
|---|---|
| W | Approximate mean waiting time |
| rhohat | Effective utilization |
Description: Gelenbe approximation for G/I/G/1 queue.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate |
| ca | Coefficient of variation of inter-arrival times |
| cs | Coefficient of variation of service times |
Returns:
| Name | Description |
|---|---|
| W | Approximate mean waiting time |
Description: Heyman approximation for G/I/G/1 queue.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate |
| ca | Coefficient of variation of inter-arrival times |
| cs | Coefficient of variation of service times |
Returns:
| Name | Description |
|---|---|
| W | Approximate mean waiting time |
| rhohat | Effective utilization |
Description: Kimura approximation for G/I/G/1 queue.
Syntax:
| Name | Description |
|---|---|
| sigma | Load parameter |
| mu | Service rate |
| ca | Coefficient of variation of inter-arrival times |
| cs | Coefficient of variation of service times |
Returns:
| Name | Description |
|---|---|
| W | Approximate mean waiting time |
Description: Kramer-Langenbach-Belz (KLB) approximation for G/I/G/1 queue.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate |
| ca | Coefficient of variation of inter-arrival times |
| cs | Coefficient of variation of service times |
Returns:
| Name | Description |
|---|---|
| W | Approximate mean waiting time |
| rhohat | Effective utilization |
Description: Kobayashi approximation for G/I/G/1 queue.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate |
| ca | Coefficient of variation of inter-arrival times |
| cs | Coefficient of variation of service times |
Returns:
| Name | Description |
|---|---|
| W | Approximate mean waiting time |
| rhohat | Effective utilization |
Description: Marchal approximation for G/I/G/1 queue.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate |
| ca | Coefficient of variation of inter-arrival times |
| cs | Coefficient of variation of service times |
Returns:
| Name | Description |
|---|---|
| W | Approximate mean waiting time |
| rhohat | Effective utilization |
Description: Myskja approximation for G/I/G/1 queue.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate |
| ca | Coefficient of variation of inter-arrival times |
| cs | Coefficient of variation of service times |
| q0 | Lowest value of the relative third moment |
| qa | Third relative moment E[X^3]/6/E[X]^3 |
Returns:
| Name | Description |
|---|---|
| W | Approximate mean waiting time |
Description: Myskja improved approximation for G/I/G/1 queue.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate |
| ca | Coefficient of variation of inter-arrival times |
| cs | Coefficient of variation of service times |
| q0 | Lowest value of the relative third moment |
| qa | Third relative moment E[X^3]/6/E[X]^3 |
Returns:
| Name | Description |
|---|---|
| W | Approximate mean waiting time |
Description: G/I/G/k multiserver approximation.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate per server |
| ca | Coefficient of variation of inter-arrival times |
| cs | Coefficient of variation of service times |
| k | Number of servers |
Returns:
| Name | Description |
|---|---|
| W | Approximate mean waiting time |
| rhohat | Effective utilization |
Description: Kingman approximation for G/I/G/k multiserver queue.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate per server |
| ca | Coefficient of variation of inter-arrival times |
| cs | Coefficient of variation of service times |
| k | Number of servers |
Returns:
| Name | Description |
|---|---|
| W | Approximate mean waiting time |
| rhohat | Effective utilization |
Description: M/M/1/K finite buffer loss probability.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate |
| K | Buffer capacity (including server) |
Returns:
| Name | Description |
|---|---|
| lossprob | Blocking/loss probability |
| rho | Utilization |
Description: M/G/1/K finite buffer loss probability using Niu-Cooper method.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| svc_density | Service time probability density function handle |
| K | Buffer capacity |
Returns:
| Name | Description |
|---|---|
| lossprob | Blocking/loss probability |
| rho | Utilization |
Description: M/G/1/K finite buffer loss probability using MacGregor Smith approximation.
Syntax:
| Name | Description |
|---|---|
| lambda | Arrival rate |
| mu | Service rate |
| mu_scv | Squared coefficient of variation of service time |
| K | Buffer capacity |
Returns:
| Name | Description |
|---|---|
| lossprob | Blocking/loss probability |
| rho | Utilization |