meta
This commit is contained in:
parent
98cc9401a1
commit
ddaa40f649
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ class Simulated_Annealing:
|
|||
current_len += delta_E
|
||||
if current_len < best_len:
|
||||
best_sol = current_sol
|
||||
best_len = current_len
|
||||
else:
|
||||
r = np.random.uniform(0, 1)
|
||||
if r < np.exp(- delta_E / temperature):
|
||||
|
|
Reference in a new issue