Optimal real-time scheduling of battery operation using reinforcement learning | Synapse