Skip to content

andres15alvarez/queue

Repository files navigation

Queueing Theory

Static Badge Static Badge

This package provides models for queueing theory, including finite and infinite queue models. Queueing theory is the mathematical study of waiting lines, or queues. This package allows you to calculate various performance metrics for different types of queues.
This package is developed and maintained by a group of students of the Operations Research III course of the Science and Technology Department (DCyT) of UCLA, Barquisimeto.

Installation

To install the package, use npm:

npm install @dcyt/queue

Usage

here is an example of how to use the package:

import { Queue } from '@dcyt/queue'

const queue = new Queue()

const result = queue.calculate({
  lambda: 5,
  mu: 8,
  servers: 1,
  maxCapacity: 0,
  iterations: 5
})

console.log(result)

Models

The package supports the following queue models

  • MM1 Infinite
  • MM1 Finite

License

This project is licensed under the MIT License - see the LICENSE file for details.