Genetic algorithm optimization