Skip to content

Commit

Permalink
fix function typo (thanks @VivekThazhathattil)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanrooy authored Nov 11, 2024
1 parent 42eb34e commit 293e2b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simulated_annealing/sa.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ def __init__(self, func, x0, opt_mode, cooling_schedule='linear', step_max=1000,
if self.cooling_schedule == 'exponential':
if alpha == None: self.alpha = 0.8
else: self.alpha = alpha
self.update_t = self.cooling_exponential
self.update_t = self.cooling_exponential_m

if self.cooling_schedule == 'logarithmic':
if alpha == None: self.alpha = 0.8
else: self.alpha = alpha
self.update_t = self.cooling_logarithmic
self.update_t = self.cooling_logarithmic_m


# begin optimizing
Expand Down

0 comments on commit 293e2b0

Please sign in to comment.