Optimal Real-Time Battery Scheduling With Reinforcement Learning And Neural Networks