Skip to content

Commit

Permalink
fixed bug with get_optimization_status
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutherland333 committed Apr 12, 2024
1 parent 6fe8002 commit 9d633f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rosplane_tuning/src/autotune/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ def get_optimization_status(self):
"""
if self.state == OptimizerState.UNINITIALIZED:
return "Optimizer awaiting first iteration."
elif self.state == OptimizerState.FIRST_ITERATION:
return "First iteration."
elif self.state == OptimizerState.OPTIMIZING:
return "Optimizing."
elif self.state == OptimizerState.TERMINATED:
else: # self.state == OptimizerState.TERMINATED:
return str(self.reason) + " Final gains: " + str(self.x)

def get_next_parameter_set(self, error):
Expand Down

0 comments on commit 9d633f3

Please sign in to comment.