The Bayesian approach to global optimization