stochastic and Bayesian optimization