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

Stochastically monotone upper bound of a Markov chain. More...

Include dependency graph for ctmc_stmonotone.h:

Go to the source code of this file.

Namespaces

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

Functions

template<class T>
Matrix< T > line::mc::dtmc_stmonotone (const Matrix< T > &P)
template<class T>
Matrix< T > line::mc::ctmc_stmonotone (const Matrix< T > &Q)
 Stochastically monotone upper bound of a Markov chain.

Detailed Description

Stochastically monotone upper bound of a Markov chain.

Templated port of matlab/src/api/mc/dtmc_stmonotone.m and matlab/src/api/mc/ctmc_stmonotone.m (JAR twin jline/api/mc/Ctmc_stmonotone.java). For a row-stochastic P on a totally ordered state space the algorithm of Abu-Amsha and Vincent (1998), as restated in Busic and Fourneau (SAINT-W 2005, Algorithm 1), returns the row-stochastic Q whose row tails are

sum_{k>=l} Q(0,k) = sum_{k>=l} P(0,k) sum_{k>=l} Q(i,k) = max( sum_{k>=l} Q(i-1,k), sum_{k>=l} P(i,k) ), i >= 1,

the least st-monotone matrix dominating P row-wise in the strong stochastic order. The first row of Q is the first row of P and every other entry is the difference of two consecutive tails, which are nonincreasing in the column index, so the entries are nonnegative. O(n^2), as MATLAB.

The CTMC entry uniformizes Q at q = max|Q| (q = 1 when Q is all zero), repairs the chain I + Q/q through dtmc_makestochastic, bounds it, and maps the bound back to the generator q*(Pub - I) through ctmc_makeinfgen, so the bound runs on the time scale of Q itself and equals Q when I + Q/q is already st-monotone (user decision 2026-11-21; this port returned Pub - I, the bound divided by q, before).

ARITHMETIC: field plus comparisons. Exact under Rational.

Definition in file ctmc_stmonotone.h.