LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
qsys_fcfs_alis.h File Reference

Exact steady-state means of an isolated FCFS parallel-server system with job-server compatibilities under Assign Longest Idle Server (ALIS). More...

#include <cmath>
#include <cstddef>
#include <limits>
#include <string>
#include <vector>
#include "line/num/number.h"
#include "line/util/error.h"
#include "line/util/matrix.h"
Include dependency graph for qsys_fcfs_alis.h:

Go to the source code of this file.

Classes

struct  line::qsys::FcfsAlisResult< T >
 Return value of qsys_fcfs_alis, mirroring [Q, Qw, X, U, P0, stable]. More...

Namespaces

namespace  line
 Conservation laws of a layered queueing network, enumerated from its structure.
namespace  line::qsys

Functions

template<class T>
FcfsAlisResult< T > line::qsys::qsys_fcfs_alis (const std::vector< T > &lambda, const std::vector< T > &mu, const std::vector< std::vector< bool > > &compat)
 Exact means of the isolated FCFS-ALIS pool.

Detailed Description

Exact steady-state means of an isolated FCFS parallel-server system with job-server compatibilities under Assign Longest Idle Server (ALIS).

Templated port of matlab/src/api/qsys/qsys_fcfs_alis.m. C job classes arrive as Poisson streams at rates LAMBDA, M servers serve at rates MU that depend on the server only (exponential, noncollaborative: one server per job), a class-c job may only be served by the servers m with COMPAT(c,m) true, a server that frees up takes the OLDEST waiting job it is compatible with, and an arriving job that finds compatible idle servers starts on the one that has been idle longest.

PRODUCT FORM. With the partially aggregated state of Adan and Weiss (Gardner, Righter 2020, Thm 5.2): the idle servers s in the order they became idle, the busy servers b in the arrival order of the jobs they serve, and n_j the number of waiting jobs between the j-th and (j+1)-th job in service,

pi(s, b, n) = G * prod_j alpha_j^{n_j} / mu(b_1..b_j) * prod_j 1/lambda(C(s_1..s_j)),

alpha_j = lambda(R(b_1..b_j)) / mu(b_1..b_j), where R(B) are the classes whose compatible servers all lie in B and C(S) the classes compatible with some server of S. Given (s, b) the n_j are independent geometric, and each job of segment j is class c in R(b_1..b_j) with probability lambda_c / lambda(R(b_1..b_j)), which gives the mean waiting counts Qw.

PER-CLASS MEANS. The classes of the jobs in service are not part of that state, so the in-service means come from the matching rates X(c,m), the rate at which class-c jobs start service at server m: a completion at b_j hands the server to the first waiting job it is compatible with (scanning the segments i >= j in order, segment i holds none with probability (1 - alpha_i) / (1 - alpha_i q_i), q_i the probability that one of its jobs is incompatible with b_j), and an arrival of class c that finds compatible idle servers starts at the first of them in s. Then E[in service, class c] = sum_m X(c,m) / mu_m and Q = Qw plus that.

The system is exact only IN ISOLATION: the noncollaborative ALIS pool has no balance function independent of lambda, so it does not compose into a product-form network. It is the textbook ALIS, which orders individual SERVERS by idle time, NOT HeteroSchedPolicy::ALIS, so no solver route uses it.

Cost: two depth-first passes, one over the ordered busy sets and one over the ordered idle sets (about e * M! visits each), joined by complementary bit masks; at most 9 servers with traffic.

References: Adan, Weiss (2014), Stochastic Systems 4(1):250-299; Gardner, Righter (2020), Queueing Systems 96:3-51, Sec. 3.2 and 5.1.

ARITHMETIC. Field arithmetic, exact under Rational. An UNSTABLE pool reports Q = Qw = Inf and X, U, P0 = NaN, which exist only in floating point: under exact arithmetic that case raises instead.

Definition in file qsys_fcfs_alis.h.