Addressing stochastic optimisations with control approaches in the microgrid energy management system | Synapse