Bayesian Optimization For Dynamic Problems