AI microgrids