Zaktualizuj 'Algorytm_genetyczny - raport.md'
This commit is contained in:
parent
99576f7107
commit
1961db28fe
@ -62,5 +62,4 @@ if random.random() < mutationRate:
|
||||
indexA = abs(random.randint(0, len(self.genes)) - 1)
|
||||
indexB = (indexA + 1) % len(self.genes)
|
||||
self.genes[indexA], self.genes[indexB] = self.genes[indexB], self.genes[indexA]
|
||||
```
|
||||
|
||||
```
|
Loading…
Reference in New Issue
Block a user