Stav dette: Tutorial , optimization via simulation with bayesian statistics and dynamic programming