Comparing Traditional and Reinforcement-Learning Methods for Energy Storage Control