Reinforcement learning for control of flexibility providers in a residential microgrid | Synapse