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

Exact analysis of the first-come-first-matched (FCFM) stochastic matching model (Comte 2022). More...

#include <cmath>
#include <limits>
#include <string>
#include <vector>
#include "line/util/error.h"
Include dependency graph for qsys_match_fcfm.h:

Go to the source code of this file.

Classes

struct  line::qsys::MatchFcfmResult
 Return value of qsys_match_fcfm. More...

Namespaces

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

Functions

MatchFcfmResult line::qsys::qsys_match_fcfm (const std::vector< double > &lam, const std::vector< std::vector< double > > &Gm, double Kcap=std::numeric_limits< double >::infinity())
 Exact FCFM matching model.

Detailed Description

Exact analysis of the first-come-first-matched (FCFM) stochastic matching model (Comte 2022).

Port of matlab/src/api/qsys/qsys_match_fcfm.m (twin of the JAR Qsys_match_fcfm and python qsys_match_fcfm). Items of class i = 0..R-1 arrive as independent Poisson processes of rate lambda[i]. G is the symmetric 0/1 compatibility graph between classes, with a zero diagonal. An arriving class-i item is matched at once with the OLDEST waiting item whose class is a neighbour of i in G, and both leave. When no compatible item is waiting, the arrival joins the queue, or is lost when the queue already holds K items (K = Inf: no limit).

The ordered queue (c_1..c_m), oldest first, has the order-independent product form pi(c_1..c_m) = (1/Z) prod_p lambda[c_p] / mu(V_p), with mu(A) = lambda(N(A)) and V_p = {c_1..c_p}. With K = Inf this requires NCond: lambda(A) < lambda(N(A)) for every non-empty independent set A; when it fails the result is flagged unstable (Q = W = Inf, X = NaN, Z = Inf).

References: Comte (2022), Stochastic non-bipartite matching models and order-independent loss queues, Stochastic Models 38(1):1-36. Berezner, Krzesinski (1996), Order independent loss queues, Queueing Systems 23:331-335.

Definition in file qsys_match_fcfm.h.