Reinforcement Learning, Artificial Intelligence, Machine Learning, Data Science, Statistics.
np.random.poisson(lamda_sun) def transition(self, x_t_1, a_t_1, d_t): if x_t_1[1] <6: next_day = x_t_1[1]+1 else: next_day = 0 stock_after_sales = max(x_t_1[0] - d_t, 0) #first this is calculated because this cannot go below 0 stock_EOD = min(stock_after_sales + a_t_1, m) #this is calculated second