-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlgorithmInit.m
More file actions
28 lines (21 loc) · 834 Bytes
/
AlgorithmInit.m
File metadata and controls
28 lines (21 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
%% forward search treee
T_fw = tree(x0); % initialize a empty tree
N = size(x0); % state dimensions
I_D_fw = [];
if (Dprime(x0))
I_D_fw = [I_D_fw, 1];
end
edge_map_fw = containers.Map('KeyType','double','ValueType','any');
reachedset_fw = containers.Map('KeyType','double','ValueType','any');
reachedset_fw = addstatetoreachedset(x0, reachedset_fw, 1);
edge_map_fw(1) = containers.Map('KeyType','double','ValueType','any');
%% backward search tree
T_bw = tree(xf); % initialize a empty tree
I_D_bw = [];
if (Dprime(xf))
I_D_bw = [I_D_bw, 1];
end
edge_map_bw = containers.Map('KeyType','double','ValueType','any');
reachedset_bw = containers.Map('KeyType','double','ValueType','any');
reachedset_bw = addstatetoreachedset(xf, reachedset_bw, 1);
edge_map_bw(1) = containers.Map('KeyType','double','ValueType','any');