Finding a global extremum of real function using a genetic algorithm.