Using reinforcement learning for finding the optimal quantum annealing schedule