Genetic algorithms based reference signal determination for temperature control of residential buildings