Must be implemented in a subclass, returns a new candidate.
(self, candidate, d=0.1)
| 2455 | return None |
| 2456 | |
| 2457 | def mutate(self, candidate, d=0.1): |
| 2458 | """ Must be implemented in a subclass, returns a new candidate. |
| 2459 | """ |
| 2460 | return None or candidate |
| 2461 | |
| 2462 | def update(self, top=0.7, crossover=0.5, mutation=0.1, d=0.9): |
| 2463 | """ Updates the population by selecting the top fittest candidates, |