Deep reinforcement learning for energy management in a microgrid with flexible demand | Synapse