LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
reachabilityAnalysis.m
1function [SS] = reachabilityAnalysis(sn, cutoff, options)
2% [SS] = RECHABILITYANALSYSIS(QN, CUTOFF)
3
4% Copyright (c) 2012-2026, Imperial College London
5% All rights reserved.
6
7% LINE state space generator limited to states reachable from the initial
8% state.
9%
10% SS: state space
11% SSh: hashed state space
12% sn: updated sn
13
14%%
15if ~exist('cutoff','var') && any(isinf(Np)) % if the model has open classes
16 line_error(mfilename,'Unspecified cutoff for open classes in state space generator.');
17end
18
19if numel(cutoff)==1
20 cutoff = cutoff * ones(sn.nstations, sn.nclasses);
21end
22T0=tic;
23if nargin<2 %~exist('options','var')
24 options = self.getOptions;
25end
26
27if self.enableChecks && ~SolverSSA.supports(self.model)
28 line_error(mfilename,'This model contains features not supported by the solver.');
29end
30
31self.runAnalyzerChecks(options);
32
33switch options.lang
34 case 'java'
35 case 'matlab'
36 sn = getStruct(self);
37 [StateSpaceAggr,arvRates,depRates] = solver_ssa(sn, options);
38 SS = sn.space;
39end
40end