LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
getTranProbAggr.m
1function [Pi_t, SSnode_a] = getTranProbAggr(self, node)
2% [PI_T, SSNODE_A] = GETTRANPROBSTATEAGGR(NODE)
3if GlobalConstants.DummyMode
4 Pi_t = NaN;
5 SSnode_a = NaN;
6 return
7end
8line_error(mfilename,'Method not implemented yet.')
9options = self.getOptions;
10initSeed = self.options.seed;
11if isfield(options,'timespan') && isfinite(options.timespan(2))
12 tu = [];
13 TranSysStateAggr = cell(options.iter_max,1);
14 for it=1:options.iter_max
15 self.options.seed = initSeed + it -1;
16 TranSysStateAggr{it} = self.sampleSysAggr;
17 tu = union(tu, TranSysStateAggr{it}.t);
18 end
19 for j=1:length(TranSysStateAggr{it}.state)
20 for it=1:options.iter_max
21 TranSysStateAggr{it}.state{j} = interp1(TranSysStateAggr{it}.t, TranSysStateAggr{it}.state{j}, tu, 'previous');
22
23 end
24 end
25
26 % self.options.seed = initSeed; % in case of interruption
27 % jnd = node.index;
28 % SSnode_a = SSa(:,(jnd-1)*sn.nclasses+1:jnd*sn.nclasses);
29 % Pi_t = [t, pi_t];
30 SSnode_a = [];
31 Pi_t = [];
32else
33 line_error(mfilename,'getTranProbAggr in SolverJMT requires to specify a finite timespan T, e.g., SolverJMT(model,''timespan'',[0,T]).');
34end
35end