1function bmax = cd_peak_scaling(beta, NK, K) %#ok<INUSD>
2% CD_PEAK_SCALING Peak of a
class-dependence handle over
the population lattice
4% bmax = CD_PEAK_SCALING(beta, NK, K)
6% Peak of
the class-dependence handle over
the reachable population lattice
7% 0 <= n(r) <= NK(r). The handle returns either a scalar (shared by every
8%
class) or a length-K vector, so
the peak
is taken over both
the states and
9%
the classes: utilization
is a per-station quantity, so
the whole station
10% shares one normalizer, as it does
for max(lldscaling(ist,:)).
12% This
is the single normalizer used to report utilization at stations with
13% limited class dependence, U = T*S/bmax, so that every solver follows
the
14% same convention as solver_ncld does for lldscaling (U/max(lldscaling)).
23 bmax = max(bmax, max(v));
26 n = pprod_next(n, NK);
30function n = pprod_init(N)
34function n = pprod_next(n, N)
41while s > 0 && n(s) == N(s)