An Intelligent System for Energy Efficiency in a Complex of Buildings