LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
getLimitedLoadDependence.m
1function alpha = getLimitedLoadDependence(self)
2% alpha = GETLIMITEDLOADDEPENDENCE()
3
4% Copyright (c) 2012-2026, Imperial College London
5% All rights reserved.
6
7M = getNumberOfStations(self);
8
9% First pass: find maximum size needed
10maxsize = 0;
11for ist=1:M
12 mu = self.stations{ist}.lldScaling;
13 if ~isempty(mu)
14 maxsize = max(maxsize, length(mu));
15 end
16end
17
18% Initialize with correct size and fill with ones
19alpha = ones(M, maxsize);
20
21% Second pass: populate with actual values
22for ist=1:M
23 mu = self.stations{ist}.lldScaling;
24 if ~isempty(mu)
25 alpha(ist, 1:length(mu)) = mu;
26 % Replace any zeros with ones
27 alpha(ist, alpha(ist,:)==0) = 1;
28 end
29end
30end