Skip to content

Commit 09c3959

Browse files
committed
theta and gamma results
1 parent cb049ce commit 09c3959

24 files changed

Lines changed: 17902 additions & 19038 deletions
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
4.704627765844190179e+00
2-
3.015805097896647524e+00
3-
4.368238579733623617e+00
4-
4.780055633932779102e+00
5-
4.367912950115156789e+00
6-
4.146493746603518105e+00
7-
1.892306233185714559e+00
8-
4.582047429071768541e+00
9-
3.618796664291114684e+00
10-
3.166489557973879432e+00
11-
4.579939918019401368e+00
1+
2.999999999999999889e-01
2+
3.247292591954848096e+00
3+
2.999999999999999889e-01
4+
6.704977198373817115e-01
5+
2.999999999999999889e-01
6+
4.528406946376854592e+00
7+
4.386141156671918395e+00
8+
3.754168154707762550e+00
9+
4.595462127333146407e-01
10+
5.219601815475097162e+00
11+
3.539768189926069564e+00
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.209282765596643294e+05
1+
1.120910370898277470e+05

baseline_controllers/gamma/evaluate_baseline_controllers.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# GAMMA
2323
# options are: 'equal-filling' and 'constant-flow' (or 'uncontrolled')
24-
evaluating = 'uncontrolled'
24+
evaluating = 'constant-flow'
2525
verbose = True
2626
version = "2" # options are "1" and "2"
2727
level = "1" # options are "1" , "2", and "3"
@@ -51,11 +51,16 @@
5151

5252

5353
for parameter in tuning_values:
54+
if evaluating == "constant-flow":
55+
optimal_constant_flows = np.loadtxt(str("./v" + version + "/optimal_constant_flows.txt"))
56+
elif evaluating == "equal-filling":
57+
optimal_constant_flows = np.loadtxt(str("./v" + version + "/optimal_efd.txt"))[:-1]
58+
optimal_efd_params = np.loadtxt(str("./v" + version + "/optimal_efd.txt"))[-1]
5459
#optimal_constant_flows = np.loadtxt(str("./v" + version + "/optimal_constant_flows.txt"))
55-
optimal_constant_flows = np.ones(9)*6.0
60+
#optimal_constant_flows = np.ones(9)*6.0
5661
#optimal_constant_flows[[4,8]] = 75.0 # 5 and 9 will flood
5762
#optimal_efd_params = np.loadtxt(str("./v" + version + "/optimal_efd_params.txt"))
58-
optimal_efd_params = 0.5
63+
#optimal_efd_params = 0.5
5964

6065
print("tuning value: ", parameter)
6166
optimal_constant_flows = optimal_constant_flows*(1+parameter)

baseline_controllers/gamma/optimize_parameters.py

Lines changed: 416 additions & 55 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
,cost,final_depths,final_filling
2-
0,157984.56953174088,0.02,0.0
3-
1,157984.56953174088,0.08,0.01
4-
2,157984.56953174088,0.05,0.0
5-
3,157984.56953174088,0.05,0.0
6-
4,157984.56953174088,0.01,0.0
7-
5,157984.56953174088,0.0,0.0
8-
6,157984.56953174088,0.0,0.0
9-
7,157984.56953174088,0.0,0.0
10-
8,157984.56953174088,0.0,0.0
2+
0,46815.37457569794,0.02,0.0
3+
1,46815.37457569794,0.09,0.01
4+
2,46815.37457569794,0.06,0.01
5+
3,46815.37457569794,0.06,0.01
6+
4,46815.37457569794,0.01,0.0
7+
5,46815.37457569794,0.0,0.0
8+
6,46815.37457569794,0.0,0.0
9+
7,46815.37457569794,0.0,0.0
10+
8,46815.37457569794,0.0,0.0
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
,cost,final_depths,final_filling
2-
0,169097.1580202613,0.01,0.0
3-
1,169097.1580202613,0.07,0.01
4-
2,169097.1580202613,0.04,0.0
5-
3,169097.1580202613,0.04,0.0
6-
4,169097.1580202613,0.01,0.0
7-
5,169097.1580202613,0.0,0.0
8-
6,169097.1580202613,0.0,0.0
9-
7,169097.1580202613,0.0,0.0
10-
8,169097.1580202613,0.0,0.0
2+
0,117134.41665265542,0.02,0.0
3+
1,117134.41665265542,0.07,0.01
4+
2,117134.41665265542,0.05,0.0
5+
3,117134.41665265542,0.04,0.0
6+
4,117134.41665265542,0.01,0.0
7+
5,117134.41665265542,0.0,0.0
8+
6,117134.41665265542,0.0,0.0
9+
7,117134.41665265542,0.0,0.0
10+
8,117134.41665265542,0.0,0.0
12.3 KB
Loading

0 commit comments

Comments
 (0)