摘要:With the rise in popularity of artificial intelligence, coupled with the growing concern over the environment, there has been a surge in the use of intelligent energy management systems. Additionally, as more buildings transition into the smart grid and, consequently, more energy and environmental data is gathered, there has been a significant increase in the number of data-driven approaches for building management systems. This paper proposes a methodology that aims to optimize the climatization and luminosity inside a building, using a genetic algorithm, a random forest, and two polynomial models. The proposed methodology enables the real-time management of the building taking into account the user needs and preferences. Air conditioner units and light systems are optimized to minimize energy costs, while also improving the air quality and considering the users’ temperature and luminosity preferences. This paper shows the results achieved, by the proposed solution, in an office building case study. The promising results demonstrate the possibility of minimizing energy costs while maximizing the users’ comfort.