LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
infer_minps.m
1function demandEst = infer_minps(model, node, rt, class, ql)
2% INFER_MINPS MINPS demand estimation method.
3%
4% Runs both MLPS and RPS estimators and selects the one with the
5% smaller mean demand estimate.
6%
7% Inputs:
8% model - LINE Network model with delay rates set and queue rates to estimate
9% node - PS queue node (Station object)
10% rt - response time samples (column vector, n x 1)
11% class - class of each sample (column vector, n x 1)
12% ql - queue lengths at arrival (n x R matrix, per-class)
13%
14% Returns:
15% demandEst - 1 x R vector of estimated mean service demands
16%
17% Copyright (c) 2012-2026, Imperial College London
18% All rights reserved.
19
20V = node.getNumberOfServers();
21
22% Run MLPS
23demandEstMLPS = infer_mlps(model, node, rt, class, ql);
24% Run RPS
25demandEstRPS = infer_rps(rt, class, ql, V);
26
27% Choose the smallest mean result
28if mean(demandEstMLPS) < mean(demandEstRPS)
29 demandEst = demandEstMLPS;
30else
31 demandEst = demandEstRPS;
32end
33
34end