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

Mean waiting times in polling systems: 1-limited and decrementing service, and the pseudo-conservation law. More...

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

Go to the source code of this file.

Classes

struct  line::polling::PollingMoments< T >
 Per-queue first two moments of the arrival, service and switchover processes, the reduced form both formulas consume. More...
struct  line::polling::PollingPcl< T >
 Weights and right-hand side of the pseudo-conservation law. More...

Namespaces

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

Functions

template<class T>
std::vector< T > line::polling::polling_qsys_1limited (const PollingMoments< T > &m)
 1-limited polling: one job served per visit.
template<class T>
PollingPcl< T > line::polling::polling_pcl (const PollingMoments< T > &m, const std::string &code)
 Pseudo-conservation law SUM_i w_i E[W_i] = rhs of a cyclic polling system with Poisson arrivals (Takagi 1988, eq (10); MATLAB polling_pcl.m).
template<class T>
std::vector< T > line::polling::polling_qsys_decrementing_asymmetric (const PollingMoments< T > &m)
 Decrementing service.
template<class T>
std::vector< T > line::polling::polling_qsys_decrementing (const PollingMoments< T > &m)

Detailed Description

Mean waiting times in polling systems: 1-limited and decrementing service, and the pseudo-conservation law.

Templated port of matlab/src/api/polling/polling_qsys_1limited.m, polling_qsys_decrementing.m and polling_pcl.m. The MATLAB versions take MAP descriptors and reduce them to the first two moments of the arrival, service and switchover processes; this port takes those moments directly, so the MAP reduction stays in line::mam (map_lambda, map_mean, map_moment, map_var) and the waiting-time formula is a pure rational function of the moments. Callers holding MAPs compose the two.

Both formulas stay in the field, so a polling system with rational parameters has an exactly representable mean waiting time. Worth having: the denominator 1 - rho - lambda R vanishes at the stability boundary, and near it a rounded evaluation can return a finite but meaningless number where the exact one shows the pole.

Definition in file polling_qsys_1limited.h.