self-learning algorithm for controlling the indoor climate