Heimdall “magic ball” optimises power grid with real-time monitoring