From c77946fe3086fef67b4d9af24b8226dad5ac76a5 Mon Sep 17 00:00:00 2001 From: Brandon Sutherland Date: Thu, 11 Apr 2024 15:43:57 -0600 Subject: [PATCH] misc value tweaks --- rosplane_tuning/src/autotune/optimizer.py | 2 +- rosplane_tuning/src/autotune/optimizer_tester.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rosplane_tuning/src/autotune/optimizer.py b/rosplane_tuning/src/autotune/optimizer.py index f3a26e1..d280b92 100644 --- a/rosplane_tuning/src/autotune/optimizer.py +++ b/rosplane_tuning/src/autotune/optimizer.py @@ -97,7 +97,7 @@ def __init__(self, initial_point, optimization_params): # Number of iterations since improvement self.k = 0 - self.max_k = 10 + self.max_k = 5 # Reason for termination self.reason = "" diff --git a/rosplane_tuning/src/autotune/optimizer_tester.py b/rosplane_tuning/src/autotune/optimizer_tester.py index d358125..072baff 100644 --- a/rosplane_tuning/src/autotune/optimizer_tester.py +++ b/rosplane_tuning/src/autotune/optimizer_tester.py @@ -29,9 +29,9 @@ def FakeRollController(x, include_noise): 'sigma': 1.5, 'alpha': 0.05, 'tau': 0.1, - 'h': 0.05} + 'h': 0.01} optimizer = Optimizer(curr_points[0], optimization_params) -num_repeats = 5 +num_repeats = 3 # Print initial point and value print('Initial point: {}'.format(curr_points[0]))