Completed genetic algorithm