2 % @file pfqn_lcfsqn_nc.m
3 % @brief Normalizing constant
for LCFS queueing networks
5 % @author LINE Development Team
9 % @brief Computes the normalizing constant
for LCFS queueing networks
10 % @fn pfqn_lcfsqn_nc(alpha, beta, N)
11 % @param alpha Service rates at LCFS station (1xR vector).
12 % @param beta Service rates at LCFS-PR station (1xR vector).
13 % @param N Population vector (
default: ones(1,R)).
14 % @return G Normalizing constant.
15 % @return Ax Cell array of A matrices for each state.
17function [G,Ax] = pfqn_lcfsqn_nc(alpha,beta,N)
18% [G,AX] = PFQN_LCFSQN_NC(ALPHA, BETA, N)
19% Normalizing constant for multiclass LCFS queueing networks
21% This function computes the normalizing constant for a 2-station closed
22% queueing network with:
23% - Station 1: LCFS (Last-Come-First-Served, non-preemptive)
24% - Station 2: LCFS-PR (LCFS with Preemption-Resume)
27% alpha - vector of inverse service rates at station 1 (LCFS)
28% alpha(r) = 1/mu(1,r) for class r
29% beta - vector of inverse service rates at station 2 (LCFS-PR)
30% beta(r) = 1/mu(2,r) for class r
31% N - population vector, N(r) = number of jobs of class r
34% G - normalizing constant
35% Ax - cell array of A matrices for each state x=0:K
38% G. Casale,
"A family of multiclass LCFS queueing networks with
39% order-dependent product-form solutions", QUESTA 2026.
41% Copyright (c) 2012-2026, Imperial College London
49 Ax{1+x} = make_A(alpha, beta, x, K, R);
50 G = G + perm(Ax{1+x}, N);
55function A = make_A(alpha, beta, x, K, R)
56% alpha : vector of length R
57% beta : vector of length R
70 A(i, x+j) = alpha(i)^(x+j-1) * beta(i);