Changed seed
This commit is contained in:
parent
b20ac9c356
commit
a0da920e39
@ -36,8 +36,8 @@ def geneticAlgorithm(map, iter, solutions, mutationAmount=0.05, multithread=Fals
|
|||||||
|
|
||||||
|
|
||||||
# Set the RNG seed for this GA
|
# Set the RNG seed for this GA
|
||||||
# 5 is good for weak start
|
# 125 is good for weak start
|
||||||
random.seed(5)
|
random.seed(125)
|
||||||
# Begin
|
# Begin
|
||||||
for i in range(iter):
|
for i in range(iter):
|
||||||
print("\nRunning {} generation...".format(i + 1))
|
print("\nRunning {} generation...".format(i + 1))
|
||||||
|
Loading…
Reference in New Issue
Block a user