On-site, real-time microgrid controller that manages DERs, storage and loads, handling islanding/reconnection, load shedding and stability; complemented by the cloud-based Microgrid Advisor for forecasting and economic optimisation.