Self-optimization of genetic algorithm