A Genetic Algorithm-Based Home Energy Management Framework for Optimizing User-Dependent Flexible Loads
Abstract
1. Introduction
2. Literature Review
2.1. Subclassification of Flexible Loads
2.2. Demand Response for Fully User-Dependent Loads
2.3. Research Gaps and Contributions
- Existing works rely on fully automated optimization processes that exclude any form of daily user routine adaptation. Although many approaches are based on typical user routines or insights from interviews, the devices used in the optimization remain static, failing to adapt dynamically to day-to-day variations in user behavior. For example, the washing machine is usually not used every day. Allowing users to indicate whether they intend to use it the next day would enable the optimization process to better align with their actual needs.
- None of the reviewed frameworks allow users to define short-term preferences/constraints for individual loads. For instance, there may be occasions when the washing machine needs to operate within a particular time window that differs from the household’s typical routine.
- The temporal resolution used in most current approaches is limited. Most studies use 60 min time windows for appliance scheduling, although electricity billing in many countries is based on 15 min intervals, causing potential mismatches with tariff periods. In contrast, the study [25] applies a minute-by-minute resolution, which increases granularity but reduces forecast reliability. A 15 min resolution would offer a practical balance, aligning with common billing structures while ensuring accurate load scheduling.
- None of the previous studies mentions a user interface. The closest example is [26], which only includes a message-sending feature to convey suggestions.
3. Methodology
3.1. Time-Series Forecasting
3.1.1. Data Collection and Pre-Processing
3.1.2. Long Short-Term Memory, LSTM
3.1.3. Model Training and Validation
3.2. Genetic Algorithm-Based Home Energy Management System for User-Dependent Flexible Loads
- The first option allows the user to define a fixed start time for a specific load, thereby opting out of leveraging that load’s flexibility (e.g., 22h15).
- The second option consists of defining a time window within which the load may start operating (e.g., between 00h00 and 02h00).
- Finally, the third option involves defining the order of operation, meaning the user specifies that one appliance must operate before another (e.g., the washing machine must run before the dryer).
3.3. User Interface
4. Case Study
5. Results
5.1. Reference Scenario
5.2. Genetic Algorithm Application
5.3. Optimization with the Actual Data
5.4. Discussion
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- NASA. Evidence. Available online: https://science.nasa.gov/climate-change/evidence/ (accessed on 12 November 2025).
- NASA. Carbon Dioxide Concentration|NASA Global Climate Change. Climate Change: Vital Signs of the Planet. Available online: https://climate.nasa.gov/vital-signs/carbon-dioxide?intent=121 (accessed on 12 November 2025).
- European Environment Agency. Energia. Available online: https://www.eea.europa.eu/pt/themes/energy/intro (accessed on 12 November 2025).
- International Energy Agency. Transition to Sustainable Buildings: Strategies and Opportunities to 2050; OECD: Paris, France, 2013. [Google Scholar] [CrossRef]
- EUROPE 2020—A Strategy for Smart, Sustainable and Inclusive Growth. 2010. Available online: https://eur-lex.europa.eu/legal-content/EN/ALL/?uri=CELEX%3A52010DC2020 (accessed on 12 November 2025).
- Communication from the Commission to the European Parliament, the European Council, the Council, the European Economic and Social Committee and the Committee of the Regions—The European Green Deal. 2019. Available online: https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX%3A52019DC0640 (accessed on 12 November 2025).
- Priyadarshan; Crozier, C.; Baker, K.; Kircher, K. Distribution Grids May Be a Barrier to Residential Electrification. arXiv 2024, arXiv:2410.04540. [Google Scholar] [CrossRef]
- Reynders, G.; Lopes, R.A.; Marszal-Pomianowska, A.; Aelenei, D.; Martins, J.; Saelens, D. Energy flexible buildings: An evaluation of definitions and quantification methodologies applied to thermal storage. Energy Build. 2018, 166, 372–390. [Google Scholar] [CrossRef]
- Péan, T.Q.; Salom, J.; Costa-Castelló, R. Review of control strategies for improving the energy flexibility provided by heat pump systems in buildings. J. Process Control 2019, 74, 35–49. [Google Scholar] [CrossRef]
- Xiong, L.; Li, P.; Wang, Z.; Wang, J. Multi-agent based multi objective renewable energy management for diversified community power consumers. Appl. Energy 2020, 259, 114140. [Google Scholar] [CrossRef]
- Yang, Q.; Wang, H.; Wang, T.; Zhang, S.; Wu, X.; Wang, H. Blockchain-based decentralized energy management platform for residential distributed energy resources in a virtual power plant. Appl. Energy 2021, 294, 117026. [Google Scholar] [CrossRef]
- Saavedra, A.; Negrete-Pincetic, M.; Rodríguez, R.; Salgado, M.; Lorca, Á. Flexible load management using flexibility bands. Appl. Energy 2022, 317, 119077. [Google Scholar] [CrossRef]
- Reis, I.F.G.; Gonçalves, I.; Lopes, M.A.R.; Antunes, C.H. A multi-agent system approach to exploit demand-side flexibility in an energy community. Util. Policy 2020, 67, 101114. [Google Scholar] [CrossRef]
- Qiao, B.; Dong, J.; Xu, W.; Li, J.; Lu, F. Research and Demonstration of Operation Optimization Method of Zero-Carbon Building’s Compound Energy System Based on Day-Ahead Planning and Intraday Rolling Optimization Algorithm. Buildings 2025, 15, 836. [Google Scholar] [CrossRef]
- Akbari, S.; Lopes, R.A.; Martins, J. The potential of residential load flexibility: An approach for assessing operational flexibility. Int. J. Electr. Power Energy Syst. 2024, 158, 109918. [Google Scholar] [CrossRef]
- Tamilarasu, K.; Sathiasamuel, C.R.; Joseph, J.D.N.; Elavarasan, R.M.; Mihet-Popa, L. Reinforced Demand Side Management for Educational Institution with Incorporation of User’s Comfort. Energies 2021, 14, 2855. [Google Scholar] [CrossRef]
- Patrício, J.T.; Lopes, R.A.; Amaro, N.; Martins, J. Rule-Based Control Algorithm to Explore Energy Flexibility from Residential Pool Filtration Pumps. In Technological Innovation for Human-Centric Systems; Camarinha-Matos, L.M., Ferrada, F., Eds.; Springer Nature: Cham, Switzerland, 2024; pp. 231–243. [Google Scholar] [CrossRef]
- Wang, X.; Tu, J.; Qiu, Y. A research on family flexible load scheduling based on improved non-dominated sorting genetic algorithm. J. Build. Eng. 2023, 71, 106541. [Google Scholar] [CrossRef]
- Li, Q.; Mo, D.; Kong, X.; Lu, Y.; Liang, Y.; Liang, Z. Intelligent optimal scheduling strategy of IES with considering the multiple flexible loads. Energy Rep. 2023, 9, 1983–1994. [Google Scholar] [CrossRef]
- Yi, L.; Zhang, H.; Wang, Y.; Luo, B.; Fan, L.; Liu, J.; Li, G. Multi-objective optimal scheduling of electricity consumption in smart building based on resident classification. J. Build. Eng. 2024, 98, 111085. [Google Scholar] [CrossRef]
- Luo, X.; Yang, Y.; Liu, Y.; Zhao, T. Classification of energy use patterns and multi-objective optimal scheduling of flexible loads in rural households. Energy Build. 2023, 283, 112811. [Google Scholar] [CrossRef]
- Luo, Z.; Peng, J.; Yin, R. Many-objective day-ahead optimal scheduling of residential flexible loads integrated with stochastic occupant behavior models. Appl. Energy 2023, 347, 121348. [Google Scholar] [CrossRef]
- El Makroum, R.; Khallaayoun, A.; Lghoul, R.; Mehta, K.; Zörner, W. Home Energy Management System Based on Genetic Algorithm for Load Scheduling: A Case Study Based on Real Life Consumption Data. Energies 2023, 16, 2698. [Google Scholar] [CrossRef]
- Soares, A.; Gomes, Á.; Antunes, C.H.; Cardoso, H. Domestic Load Scheduling Using Genetic Algorithms. In Applications of Evolutionary Computation; Lecture Notes in Computer Science; Esparcia-Alcázar, A.I., Ed.; Springer: Berlin/Heidelberg, Germany, 2013; Volume 7835, pp. 142–151. [Google Scholar] [CrossRef]
- Patrício, J.T.; Silva, F.; Lopes, R.A.; Amaro, N.; Martins, J. Combining Time-Series Forecasting and Genetic Algorithm Based Optimization to Explore Energy Flexibility at Building-Level. In Proceedings of the 2024 IEEE International Conference on Engineering, Technology, and Innovation (ICE/ITMC), Funchal, Portugal, 24–28 June 2024; IEEE: Funchal, Portugal, 2024; pp. 1–6. [Google Scholar] [CrossRef]
- Urrutia, L.Z.; Schumann, M.; Febres, J. Optimization of electric demand response based on users’ preferences. Energy 2025, 324, 135893. [Google Scholar] [CrossRef]
- COMMUNITAS. Available online: https://communitas-project.eu/ (accessed on 12 November 2025).
- Berg, B.; Kunwar, N.; Guillante, P.; Vanage, S.; Mahmud, R.; Cetin, K.; Ardakani, A.J.; McCalley, J.; Wang, Y. Occupant-driven end use load models for demand response and flexibility service participation of residential grid-interactive buildings. J. Build. Eng. 2024, 96, 110406. [Google Scholar] [CrossRef]
- U.S. Census Bureau. Housing and Urban Development and Census Bureau Expand Access to Detailed Information on Nation’s Housing. Available online: https://www.census.gov/newsroom/archives/2013-pr/cb13-04.html (accessed on 12 November 2025).
- Instituto Nacional de Estatística and Direção-Geral de Energia e Geologia. Inquérito ao Consumo de Energia no Sector Doméstico. 2020. Available online: https://www.dgeg.gov.pt/media/jvfgkejh/dgeg-aou-icesd-2020.pdf (accessed on 16 November 2025).
- Stratton, H.; Chen, Y.; Dunham, C.; Burke, T.; Yang, H.-C.; Ganeshalingam, M. Dishwashers in the Residential Sector: A Survey of Product Characteristics, Usage, and Consumer Preferences. Berkeley Lab; 2021. Available online: https://eta-publications.lbl.gov/sites/default/files/osg_lbnl_report_dishwashers_final_4.pdf (accessed on 16 November 2025).
- Lopes, R.A.; Silva, F.; Menezes-Barros, R.; Amaro, N.; de Carvalho, A.G.; Martins, J. Exploring energy flexibility from smart electrical water heaters to improve electrification benefits in residential buildings: Findings from real-world operation. Energy 2025, 316, 134381. [Google Scholar] [CrossRef]
- Sevlian, R.; Rajagopal, R. A scaling law for short term load forecasting on varying levels of aggregation. Int. J. Electr. Power Energy Syst. 2018, 98, 350–361. [Google Scholar] [CrossRef]
- Zippenfenig, P. Open-Meteo.com Weather API, version 1.4.0; Zenodo: Geneva, Switzerland, 2024. [CrossRef]
- Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
- Gers, F.A.; Schmidhuber, J.; Cummins, F. Learning to forget: Continual prediction with LSTM. In Proceedings of the 1999 Ninth International Conference on Artificial Neural Networks ICANN 99. (Conf. Publ. No. 470), Edinburgh, UK, 7–10 September 1999; Volume 2, pp. 850–855. [Google Scholar] [CrossRef]
- Yu, Y.; Si, X.; Hu, C.; Zhang, J. A Review of Recurrent Neural Networks: LSTM Cells and Network Architectures. Neural Comput. 2019, 31, 1235–1270. [Google Scholar] [CrossRef]
- Guo, X.; Gao, Y.; Li, Y.; Zheng, D.; Shan, D. Short-term household load forecasting based on Long- and Short-term Time-series network. Energy Rep. 2021, 7, 58–64. [Google Scholar] [CrossRef]
- Liu, C.-H.; Gu, J.-C.; Yang, M.-T. A Simplified LSTM Neural Networks for One Day-Ahead Solar Power Forecasting. IEEE Access 2021, 9, 17174–17195. [Google Scholar] [CrossRef]
- Holland, J.H. Adaptation in Natural and Artificial Systems: An Introductory Analysis with Applications to Biology, Control, and Artificial Intelligence; The MIT Press: Cambridge, MA, USA, 1992. [Google Scholar] [CrossRef]
- Norman, D.A. The Design of Everyday Things; First Basic Paperback, [Nachdr.]; Basic Books: New York, NY, USA, 2008. [Google Scholar]
- Tewes, T.J.; Harcq, L.; Bockmühl, D.P. Use of Automatic Dishwashers and Their Programs in Europe with a Special Focus on Energy Consumption. Clean Technol. 2023, 5, 1067–1079. [Google Scholar] [CrossRef]
- Washing Machines—European Commission. Available online: https://energy-efficient-products.ec.europa.eu/product-list/washing-machines_en (accessed on 12 November 2025).
- Richardson, I.; Thomson, M.; Infield, D.; Clifford, C. Domestic electricity use: A high-resolution energy demand model. Energy Build. 2010, 42, 1878–1887. [Google Scholar] [CrossRef]
















| Type of Load | User Dependence | Description | Examples |
|---|---|---|---|
| Non-Flexible | - | Loads whose operation period and consumption power cannot be altered | Microwave, oven, hair dryer |
| Flexible | Fully Dependent | To operate, these loads require pre-operational tasks on the part of the user, both for operation and scheduling | Washing machine, dishwasher, tumble dryer |
| Non-Dependent | These loads do not require any intervention on the part of the user for their operation, apart from occasional maintenance actions | Pool filtration pumps, water heaters, irrigation systems |
| Optimal Hyperparameters | Grid Search Intervals | |||
|---|---|---|---|---|
| Consumption | Generation | |||
| LSTM | Units | 192 | 128 | [96, 128, 160, 192, 224, 256] |
| Activation function | tanh | tanh | - | |
| Number of layers | 2 | 1 | [1, 2] | |
| Dropout | Rate | 0.3 | 0.3 | [0.1, 0.3] |
| Time Distributed Dense | Hidden neurons | 128 | 128 | [96, 128, 160, 192, 224, 256] |
| Activation function | ReLU | ReLU | - | |
| Output | Neurons | 96 | 96 | [96] |
| - | Look back | 3 | 1 | [1, 2, 3, 4, 5, 6, 7] |
| Training parameters | Epochs | 100 | 150 | [50, 100, 150, 200] |
| Batch size | 256 | 256 | [64, 128, 256] | |
| Optimizer | Adam | Adam | - | |
| Learning rate | 0.0005 | 0.005 | [0.0005, 0.005, 0.05] | |
| Metric | Formula |
|---|---|
| Mean Absolute Error (MAE) | |
| Root Mean Square Error (RMSE) | |
| Normalized MAE (nMAE) | |
| Normalized RMSE (nRMSE) |
| Exogenous Features | |
|---|---|
| Consumption | , , , , , |
| Generation | , global_tilted_irradiance, cloud_cover, , , , |
| Consumption | Generation | |||
|---|---|---|---|---|
| Model | nMAE (%) | nRMSE (%) | nMAE (%) | nRMSE (%) |
| Naïve daily | 9.57 | 15.9 | 7.01 | 15.3 |
| Prophet | 8.44 | 13.92 | 5.39 | 9.38 |
| LSTM | 7.97 | 13.79 | 4.88 | 10.26 |
| CNN-LSTM | 8.12 | 14.45 | 5.32 | 11.09 |
| Consumption | Generation | |||
|---|---|---|---|---|
| Model | nMAE (%) | nRMSE (%) | nMAE (%) | nRMSE (%) |
| LSTM | 6.9 | 12.99 | 5.35 | 10.39 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Tabanêz Patrício, J.; Januário Silva, F.; Amaral Lopes, R.; Amaro, N.; Martins, J. A Genetic Algorithm-Based Home Energy Management Framework for Optimizing User-Dependent Flexible Loads. Energies 2026, 19, 80. https://doi.org/10.3390/en19010080
Tabanêz Patrício J, Januário Silva F, Amaral Lopes R, Amaro N, Martins J. A Genetic Algorithm-Based Home Energy Management Framework for Optimizing User-Dependent Flexible Loads. Energies. 2026; 19(1):80. https://doi.org/10.3390/en19010080
Chicago/Turabian StyleTabanêz Patrício, João, Francisco Januário Silva, Rui Amaral Lopes, Nuno Amaro, and João Martins. 2026. "A Genetic Algorithm-Based Home Energy Management Framework for Optimizing User-Dependent Flexible Loads" Energies 19, no. 1: 80. https://doi.org/10.3390/en19010080
APA StyleTabanêz Patrício, J., Januário Silva, F., Amaral Lopes, R., Amaro, N., & Martins, J. (2026). A Genetic Algorithm-Based Home Energy Management Framework for Optimizing User-Dependent Flexible Loads. Energies, 19(1), 80. https://doi.org/10.3390/en19010080

