LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
qsys_gig1_rqt.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2012-2026, QORE Lab, Imperial College London
3 * All rights reserved.
4 */
5#ifndef LINE_API_QSYS_QSYS_GIG1_RQT_H
6#define LINE_API_QSYS_QSYS_GIG1_RQT_H
7
8/**
9 * @file
10 * @ingroup api_qsys
11 * Robust Queueing Theory (RQT) worst-case system time of a G/G/1 FCFS queue,
12 * the single-server case of qsys_gigk_rqt (Theorem 2 and eq. 12).
13 *
14 * Templated port of matlab/src/api/qsys/qsys_gig1_rqt.m, cross-checked against
15 * jar/src/main/java/jline/api/qsys/Qsys_gig1_rqt.java.
16 *
17 * Reference: C. Bandi, D. Bertsimas, N. Youssef (2015). Robust Queueing Theory.
18 * Operations Research 63(3), 676-700.
19 */
20
22
23namespace line {
24namespace qsys {
25
26/**
27 * @brief Robust Queueing Theory (RQT) worst-case system time of a G/G/1 FCFS
28 * queue, the single-server case of qsys_gigk_rqt (Theorem 2 and eq.
29 * 12).
30 *
31 * @param lambda arrival rate
32 * @param mu service rate
33 * @param Gamma_a variability parameter of the arrival uncertainty set
34 * @param Gamma_s variability parameter of the service uncertainty set
35 * @param alpha_a arrival tail coefficient in (1,2]
36 * @param alpha_s service tail coefficient in (1,2]
37 */
38template <class T>
39GigkRqtResult<T> qsys_gig1_rqt(const T& lambda, const T& mu, const T& Gamma_a, const T& Gamma_s,
40 const T& alpha_a, const T& alpha_s) {
41 return qsys_gigk_rqt(lambda, mu, Gamma_a, Gamma_s, static_cast<std::size_t>(1), alpha_a, alpha_s);
42}
43
44/** Finite-variance case, alpha_a = alpha_s = 2. */
45template <class T>
46GigkRqtResult<T> qsys_gig1_rqt(const T& lambda, const T& mu, const T& Gamma_a, const T& Gamma_s) {
47 const T two = num_traits<T>::from_int(2);
48 return qsys_gigk_rqt(lambda, mu, Gamma_a, Gamma_s, static_cast<std::size_t>(1), two, two);
49}
50
51} // namespace qsys
52} // namespace line
53
54#endif // LINE_API_QSYS_QSYS_GIG1_RQT_H
GigkRqtResult< T > qsys_gigk_rqt(const T &lambda, const T &mu, const T &Gamma_a, const T &Gamma_s, std::size_t k, const T &alpha_a, const T &alpha_s)
Robust Queueing Theory (RQT) worst-case system time of a G/G/k FCFS queue.
GigkRqtResult< T > qsys_gig1_rqt(const T &lambda, const T &mu, const T &Gamma_a, const T &Gamma_s, const T &alpha_a, const T &alpha_s)
Robust Queueing Theory (RQT) worst-case system time of a G/G/1 FCFS queue, the single-server case of ...
Robust Queueing Theory (RQT) worst-case system time of a G/G/k FCFS queue.