SMART THERMAL GRID WITH INTEGRATION OF DISTRIBUTED AND CENTRALIZED