Local optima smoothing for global optimization