-
Notifications
You must be signed in to change notification settings - Fork 0
/
experiments.py
69 lines (61 loc) · 1.07 KB
/
experiments.py
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import itertools
import os
envs = [
('PDDLEnvRiver-alt-v0', 0),
('PDDLEnvRiver-alt-v0', 1),
#('PDDLEnvRiver-alt-v0', 3),
#('PDDLEnvTireworld-v0', 0),
#('PDDLEnvTireworld-v0', 1),
#('PDDLEnvTireworld-v0', 2)
]
# river
k_gs = [
0.01,
0.1,
0.5,
1
]
# tireworld
#k_gs = [
# 1e-7,
# 1e-6,
# 1e-5,
# 1e-4,
# 1e-3,
# 1e-2,
# 1e-1,
# 1,
#]
# river
lambs = [
#-0.01,
#-0.05,
-0.1,
#-0.2,
#-0.3,
#-0.4,
#-0.5
]
# tireworld
#lambs = [
# #-0.2,
# #-0.22,
# #-0.24,
# #-0.26,
# #-0.28,
# -0.3,
#]
algorithms = [
('vi', 'vi'),
('vi', 'ao'),
('lao', 'ao'),
('lao_eliminate_traps', 'ao'),
]
try:
for (env, prob_index), k_g, lamb, (alg_dc, alg_gubs) in itertools.product(envs, k_gs, lambs, algorithms):
os.system(
f'python src/main.py --env {env} --problem_index {prob_index} --lambda {lamb} --k_g {k_g} --algorithm_dc {alg_dc} --algorithm_gubs {alg_gubs} --epsilon 1e-10 --render_and_save')
except Exception as e:
raise e
finally:
exit()