Intelligent cooling system