An AI-driven optimization and prediction system for the future reliable district energy and a flexible grid.