LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
Loss Networks

Analysis of networks with blocking.

The lossn module implements algorithms for loss networks where arrivals can be blocked (dropped) when resources are unavailable. These algorithms are based on the Erlang fixed-point approximation for multiclass loss systems.

NC Solver Integration

The NC solver automatically uses the erlangfp method when detecting an open model with a single Delay node inside a Finite Capacity Region (FCR) configured with DROP policy. The FCR constraints are mapped to the Erlang fixed-point parameters:

  • Global max jobs → First capacity link (all classes contribute)
  • Per-class max jobs → Additional capacity links (one per class)

Example usage via NC solver:

model = Network('Loss Network');
source = Source(model, 'Source');
delay = Delay(model, 'Delay');
sink = Sink(model, 'Sink');
class1 = OpenClass(model, 'Class1', 0);
class2 = OpenClass(model, 'Class2', 1);
source.setArrival(class1, Exp(0.3));
source.setArrival(class2, Exp(0.2));
delay.setService(class1, Exp(1.0));
delay.setService(class2, Exp(0.8));
P = model.initRoutingMatrix();
P.set(class1, class1, source, delay, 1.0);
P.set(class1, class1, delay, sink, 1.0);
P.set(class2, class2, source, delay, 1.0);
P.set(class2, class2, delay, sink, 1.0);
model.link(P);
% Add FCR with drop policy
fcr = model.addRegion({delay});
fcr.setGlobalMaxJobs(5);
fcr.setClassMaxJobs(class1, 3);
fcr.setClassMaxJobs(class2, 3);
fcr.setDropRule(class1, true); % true = drop
fcr.setDropRule(class2, true);
% NC solver automatically selects 'erlangfp' method
solver = SolverNC(model);
avgTable = solver.getAvgTable();
Note
The NC solver requires DROP policy (not WAITQ/blocking) for FCR loss network analysis.

Key Functions

lossn_erlangfp

Description: Erlang fixed-point approximation for multiclass loss networks. Computes effective throughputs and blocking probabilities using iterative fixed-point computation based on the reduced-load approximation.

Syntax:

[QLen, Loss, E, niter] = lossn_erlangfp(nu, A, C)

Parameters:

NameDescription
nuOffered load vector (1 x R), where nu(r) = arrival_rate(r) / service_rate(r) for each class r
ARouting/constraint matrix (J x R), where A(j,r) = 1 if class r uses link/constraint j
CCapacity vector (J x 1), where C(j) is the maximum jobs allowed on link/constraint j

Returns:

NameDescription
QLenEffective throughput per class (1 x R), i.e., arrival rate after blocking
LossLoss probability per class (1 x R)
EBlocking probability per link/constraint (J x 1)
niterNumber of fixed-point iterations performed

Algorithm: The algorithm iterates until convergence, computing:

  1. Reduced loads on each link based on current blocking estimates
  2. Link blocking probabilities using Erlang-B formula
  3. Class loss probabilities as product of link blocking probabilities

Reference: Kelly, F.P. (1991). Loss networks. Annals of Applied Probability.