This research includes the development of a state-of-the-art Energy Optimisation algorithm for possible control and safety aspects of the smart microgrid.