LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
showLibraryAttribution.m
1function showLibraryAttribution(self, options)
2% SHOWLIBRARYATTRIBUTION(OPTIONS)
3%
4% Print the third-party libraries the solver will use, at most once per
5% session. This is not called automatically: attribution is pull-based, so a
6% user asks for it (see also getLibrariesUsed, which returns the list without
7% printing).
8% getLibrariesUsed is a static method of the concrete solver class and is
9% resolved through the instance, so the block no longer has to be copied into
10% each runAnalyzer just to name that class.
11%
12% Copyright (c) 2012-2026, Imperial College London
13% All rights reserved.
14
15if nargin < 2 || isempty(options)
16 options = self.getOptions;
17end
18if options.verbose == VerboseLevel.SILENT || GlobalConstants.isLibraryAttributionShown()
19 return
20end
21try
22 sn = self.getStruct();
23catch
24 sn = [];
25end
26libs = self.getLibrariesUsed(sn, options);
27if ~isempty(libs)
28 line_printf('The solver will leverage %s.\n', strjoin(libs, ', '));
29 GlobalConstants.setLibraryAttributionShown(true);
30end
31end