LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
getAvgUtilChain.m
1function [UN] = getAvgUtilChain(self,U)
2% [UN] = GETAVGUTILCHAIN(SELF,U)
3% Return average utilization aggregated by chain
4%
5% Copyright (c) 2012-2026, Imperial College London
6% All rights reserved.
7
8sn = self.model.getStruct();
9UNclass = getAvgUtil(self);
10
11% compute average chain metrics
12if ~isempty(UNclass)
13 UN = cell2mat(cellfun(@(chain) sum(UNclass(:, chain), 2), sn.inchain, 'UniformOutput', false));
14else
15 UN = zeros(sn.nstations, sn.nchains);
16end
17
18end