{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,1]],"date-time":"2026-05-01T23:04:55Z","timestamp":1777676695913,"version":"3.51.4"},"reference-count":55,"publisher":"MDPI AG","issue":"23","license":[{"start":{"date-parts":[[2022,11,30]],"date-time":"2022-11-30T00:00:00Z","timestamp":1669766400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"FEDER Funds through COMPETE program","award":["UIDP\/00760\/2020"],"award-info":[{"award-number":["UIDP\/00760\/2020"]}]},{"name":"FEDER Funds through COMPETE program","award":["UIDB\/00760\/2020"],"award-info":[{"award-number":["UIDB\/00760\/2020"]}]},{"name":"National Funds through FCT","award":["UIDP\/00760\/2020"],"award-info":[{"award-number":["UIDP\/00760\/2020"]}]},{"name":"National Funds through FCT","award":["UIDB\/00760\/2020"],"award-info":[{"award-number":["UIDB\/00760\/2020"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sustainability"],"abstract":"<jats:p>The modeling of smart grids using multi-agent systems is a common approach due to the ability to model complex and distributed systems using an agent-based solution. However, the use of a multi-agent system framework can limit the integration of new operation and management models, especially artificial intelligence algorithms. Therefore, this paper presents a study of available open-source multi-agent systems frameworks developed in Python, as it is a growing programming language and is largely used for data analytics and artificial intelligence models. As a consequence of the presented study, the authors proposed a novel open-source multi-agent system framework built for smart grid modeling, entitled Python-based framework for heterogeneous agent communities (PEAK). This framework enables the use of simulation environments but also allows real integration at pilot sites using a real-time clock. To demonstrate the capabilities of the PEAK framework, a novel agent ecosystem based on agent communities is shown and tested. This novel ecosystem, entitled Agent-based ecosystem for Smart Grid modeling (A4SG), takes full advantage of the PEAK framework and enables agent mobility, agent branching, and dynamic agent communities. An energy community of 20 prosumers, of which six have energy storage systems, that can share energy among them, using a peer-to-peer market, is used to test and validate the PEAK and A4SG solutions.<\/jats:p>","DOI":"10.3390\/su142315983","type":"journal-article","created":{"date-parts":[[2022,11,30]],"date-time":"2022-11-30T05:45:22Z","timestamp":1669787122000},"page":"15983","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":11,"title":["Smart Grid Ecosystem Modeling Using a Novel Framework for Heterogenous Agent Communities"],"prefix":"10.3390","volume":"14","author":[{"given":"Helder","family":"Pereira","sequence":"first","affiliation":[{"name":"Research Group on Intelligent Engineering and Computing for Advanced Innovation and Development (GECAD), Intelligent Systems Associated Laboratory (LASI), Polytechnic of Porto (P.PORTO), Rua Dr. Ant\u00f3nio Bernardino de Almeida 431, 4200-072 Porto, Portugal"}]},{"given":"Bruno","family":"Ribeiro","sequence":"additional","affiliation":[{"name":"Research Group on Intelligent Engineering and Computing for Advanced Innovation and Development (GECAD), Intelligent Systems Associated Laboratory (LASI), Polytechnic of Porto (P.PORTO), Rua Dr. Ant\u00f3nio Bernardino de Almeida 431, 4200-072 Porto, Portugal"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8597-3383","authenticated-orcid":false,"given":"Luis","family":"Gomes","sequence":"additional","affiliation":[{"name":"Research Group on Intelligent Engineering and Computing for Advanced Innovation and Development (GECAD), Intelligent Systems Associated Laboratory (LASI), Polytechnic of Porto (P.PORTO), Rua Dr. Ant\u00f3nio Bernardino de Almeida 431, 4200-072 Porto, Portugal"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4560-9544","authenticated-orcid":false,"given":"Zita","family":"Vale","sequence":"additional","affiliation":[{"name":"Research Group on Intelligent Engineering and Computing for Advanced Innovation and Development (GECAD), Intelligent Systems Associated Laboratory (LASI), Polytechnic of Porto (P.PORTO), Rua Dr. Ant\u00f3nio Bernardino de Almeida 431, 4200-072 Porto, Portugal"}]}],"member":"1968","published-online":{"date-parts":[[2022,11,30]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"1453","DOI":"10.1016\/j.rser.2017.05.208","article-title":"A Survey on Consumers Empowerment, Communication Technologies, and Renewable Generation Penetration within Smart Grid","volume":"81","author":"Shaukat","year":"2018","journal-title":"Renew. Sustain. Energy Rev."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"23","DOI":"10.1016\/j.enpol.2018.09.036","article-title":"Renewable Energy Source Integration into Power Networks, Research Trends and Policy Implications: A Bibliometric and Research Actors Survey Analysis","volume":"124","author":"Hache","year":"2019","journal-title":"Energy Policy"},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"2589","DOI":"10.1016\/j.renene.2019.08.092","article-title":"A Survey on Smart Grid Technologies and Applications","volume":"146","author":"Dileep","year":"2020","journal-title":"Renew. Energy"},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"464","DOI":"10.1109\/JIOT.2015.2512325","article-title":"A Comprehensive Review of Smart Energy Meters in Intelligent Energy Networks","volume":"3","author":"Sun","year":"2016","journal-title":"IEEE Int. Things J."},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Aliero, M.S., Asif, M., Ghani, I., Pasha, M.F., and Jeong, S.R. (2022). Systematic Review Analysis on Smart Building: Challenges and Opportunities. Sustainability, 14.","DOI":"10.3390\/su14053009"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"3819","DOI":"10.1007\/s12652-021-03329-z","article-title":"A Novel Application Architecture of Digital Twin in Smart Grid","volume":"13","author":"Jiang","year":"2021","journal-title":"J. Ambient. Intell. Hum. Comput."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"5899","DOI":"10.1049\/iet-gtd.2018.5309","article-title":"Market Framework for Local Energy Trading: A Review of Potential Designs and Market Clearing Approaches","volume":"12","author":"Khorasany","year":"2018","journal-title":"IET Gener. Transm. Distrib."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"96851","DOI":"10.1109\/ACCESS.2021.3094090","article-title":"An Overview of Demand Response: From Its Origins to the Smart Energy Community","volume":"9","author":"Honarmand","year":"2021","journal-title":"IEEE Access"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"19410","DOI":"10.1109\/ACCESS.2020.2968402","article-title":"Microgrid Transactive Energy: Review, Architectures, Distributed Ledger Technologies, and Market Analysis","volume":"8","author":"Zia","year":"2020","journal-title":"IEEE Access"},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Muhsen, H., Allahham, A., Al-halhouli, A., Al-mahmodi, M., Alkhraibat, A., and Hamdan, M. (2022). Business Model of Peer-to-Peer Energy Trading: A Review of Literature. Sustainability, 14.","DOI":"10.3390\/su14031616"},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Bracco, S., Rosales-Asensio, E., Gonz\u00e1lez-Mart\u00ednez, A., Rosen, M.A., and Badidi, E. (2022). Edge AI and Blockchain for Smart Sustainable Cities: Promise and Potential. Sustainability, 14.","DOI":"10.3390\/su14137609"},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Mohanty, A., Samantaray, S., Patra, S.S., Ahmad, M.A.I., and Barik, R.K. (2021, January 5\u20137). An Efficient Resource Management Scheme for Smart Grid Using GBO Algorithm. Proceedings of the 2021 International Conference on Emerging Smart Computing and Informatics, ESCI 2021, Pune, India.","DOI":"10.1109\/ESCI50559.2021.9396784"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Abbasi, R.A., Javaid, N., Ghuman, M.N.J., Khan, Z.A., and Ur Rehman, S. (2019). Amanullah Short Term Load Forecasting Using XGBoost. Workshops of the International Conference on Advanced Information Networking and Applications, Springer.","DOI":"10.1007\/978-3-030-15035-8_108"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"15918","DOI":"10.1016\/j.apenergy.2020.115918","article-title":"An Artificial Intelligence Framework for Bidding Optimization with Uncertainty in Multiple Frequency Reserve Markets","volume":"280","author":"Kempitiya","year":"2020","journal-title":"Appl. Energy"},{"key":"ref_15","first-page":"115","article-title":"Comprehensive Overview of Multi-Agent Systems for Controlling Smart Grids","volume":"8","author":"Mahela","year":"2022","journal-title":"CSEE J. Power Energy Syst."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"1599","DOI":"10.1109\/TSG.2017.2773573","article-title":"Clustering Load Profiles for Demand Response Applications","volume":"10","author":"Lin","year":"2019","journal-title":"IEEE Trans. Smart Grid"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"2195","DOI":"10.1109\/TSG.2019.2949263","article-title":"A Minimal Incentive-Based Demand Response Program with Self Reported Baseline Mechanism","volume":"11","author":"Muthirayan","year":"2020","journal-title":"IEEE Trans. Smart Grid"},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"533","DOI":"10.1007\/s12273-017-0425-5","article-title":"A Novel Cost-Optimizing Demand Response Control for a Heat Pump Heated Residential Building","volume":"11","author":"Arabzadeh","year":"2018","journal-title":"Build. Simul."},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Ribeiro, B., Pereira, H., Gomes, L., and Vale, Z. (2023). Python-Based Ecosystem for Agent Communities Simulation. International Workshop on Soft Computing Models in Industrial and Environmental Applications, Springer.","DOI":"10.1007\/978-3-031-18050-7_7"},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"28573","DOI":"10.1109\/ACCESS.2018.2831228","article-title":"Multi-Agent Systems: A Survey","volume":"6","author":"Dorri","year":"2018","journal-title":"IEEE Access"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"3897","DOI":"10.1007\/s10462-021-10097-x","article-title":"Consensus in Multi-Agent Systems: A Review","volume":"55","author":"Amirkhani","year":"2022","journal-title":"Artif. Intell. Rev."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"15","DOI":"10.1007\/s40866-018-0052-y","article-title":"Multi-Agent Systems for Resource Allocation and Scheduling in a Smart Grid","volume":"3","author":"Nair","year":"2018","journal-title":"Technol. Econ. Smart Grids Sustain. Energy"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"5212","DOI":"10.1109\/TSG.2021.3049222","article-title":"A Privacy-Preserving Homomorphic Scheme with Multiple Dimensions and Fault Tolerance for Metering Data Aggregation in Smart Grid","volume":"12","author":"Mohammadali","year":"2021","journal-title":"IEEE Trans. Smart Grid"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Alseyat, A., Ullah, M.H., and Park, J.D. (2021, January 11\u201313). Multi-Agent System-Based Plug-and-Play Energy Management System for DC Microgrids. Proceedings of the 2020 IEEE 9th Power India International Conference (PIICON), Tempe, AZ, USA.","DOI":"10.1109\/NAPS50074.2021.9449695"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Gonz\u00e1lez-Briones, A., De La Prieta, F., Mohamad, M., Omatu, S., and Corchado, J. (2018). Multi-Agent Systems Applications in Energy Optimization Problems: A State-of-the-Art Review. Energies, 11.","DOI":"10.3390\/en11081928"},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"118841","DOI":"10.1016\/j.apenergy.2022.118841","article-title":"Development and Implementation of Multi-Agent Systems for Demand Response Aggregators in an Industrial Context","volume":"314","author":"Woltmann","year":"2022","journal-title":"Appl. Energy"},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Kem, O., and Ksontini, F. (2020). A Multi-Agent Approach to Energy Optimisation for Demand-Response Ready Buildings. Artificial Intelligence Techniques for a Scalable Energy Transition: Advanced Methods, Digital Technologies, Decision Support Tools, and Applications, Springer.","DOI":"10.1007\/978-3-030-42726-9_4"},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Lee, J.-W., Kim, M.-K., and Kim, H.-J. (2021). A multi-agent based optimization model for microgrid operation with hybrid method using game theory strategy. Energies, 14.","DOI":"10.3390\/en14030603"},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"101114","DOI":"10.1016\/j.jup.2020.101114","article-title":"A Multi-Agent System Approach to Exploit Demand-Side Flexibility in an Energy Community","volume":"67","author":"Reis","year":"2020","journal-title":"Util. Policy"},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"661","DOI":"10.1177\/0309524X19862755","article-title":"Simulation Tools for a Smart Grid and Energy Management for Microgrid with Wind Power Using Multi-Agent System","volume":"44","author":"Azeroual","year":"2020","journal-title":"Wind Eng."},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"820","DOI":"10.1016\/j.apenergy.2016.10.056","article-title":"Multi-Agent Systems Applied for Energy Systems Integration: State-of-the-Art Applications and Trends in Microgrids","volume":"187","author":"Coelho","year":"2017","journal-title":"Appl. Energy"},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"124657","DOI":"10.1016\/j.energy.2022.124657","article-title":"Strategic Bidding in a Competitive Electricity Market: An Intelligent Method Using Multi-Agent Transfer Learning Based on Reinforcement Learning","volume":"256","author":"Wu","year":"2022","journal-title":"Energy"},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"472","DOI":"10.1016\/j.ijepes.2018.12.020","article-title":"A Multi-Agent Based Optimization of Residential and Industrial Demand Response Aggregators","volume":"107","author":"Golmohamadi","year":"2019","journal-title":"Int. J. Electr. Power Energy Syst."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"64169","DOI":"10.1109\/ACCESS.2020.2985254","article-title":"Multi-Agent Microgrid Management System for Single-Board Computers: A Case Study on Peer-to-Peer Energy Trading","volume":"8","author":"Gomes","year":"2020","journal-title":"IEEE Access"},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"106","DOI":"10.1016\/j.ijepes.2017.10.031","article-title":"Multi-Agent Based Coordinated Protection Systems for Distribution Feeder Fault Diagnosis and Reconfiguration","volume":"97","author":"Rahman","year":"2018","journal-title":"Int. J. Electr. Power Energy Syst."},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"4644","DOI":"10.1109\/TPWRS.2020.2990179","article-title":"A Data-Driven Multi-Agent Autonomous Voltage Control Framework Using Deep Reinforcement Learning","volume":"35","author":"Wang","year":"2020","journal-title":"IEEE Trans. Power Syst."},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"1027","DOI":"10.1016\/j.apenergy.2017.08.113","article-title":"Optimal Voltage Regulation for Distribution Networks with Multi-Microgrids","volume":"210","author":"Wang","year":"2018","journal-title":"Appl. Energy"},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"Thomson, R., Bisgin, H., Dancy, C., Hyder, A., and Hussain, M. (2020). Utilizing Python for Agent-Based Modeling: The Mesa Framework. Proceedings of the Social, Cultural, and Behavioral Modeling, Springer International Publishing.","DOI":"10.1007\/978-3-030-61255-9"},{"key":"ref_39","unstructured":"Wilensky, U. (1999). NetLogo, Northwestern University."},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"492320","DOI":"10.1155\/2014\/492320","article-title":"GridLAB-D: An Agent-Based Simulation Framework for Smart Grids","volume":"2014","author":"Chassin","year":"2014","journal-title":"J. Appl. Math."},{"key":"ref_41","unstructured":"Bellifemine, F., Poggi, A., and Rimassa, G. (1999). JADE\u2014A FIPA-Compliant Agent Framework, The Practical Application Company Ltd.. (In English)."},{"key":"ref_42","doi-asserted-by":"crossref","first-page":"182537","DOI":"10.1109\/ACCESS.2020.3027357","article-title":"SPADE 3: Supporting the New Generation of Multi-Agent Systems","volume":"8","author":"Palanca","year":"2020","journal-title":"IEEE Access"},{"key":"ref_43","doi-asserted-by":"crossref","unstructured":"Gutknecht, O., and Ferber, J. (2000). The MadKit Agent Platform Architecture. Workshop on Infrastructure for Scalable Multi-Agent Systems at the International Conference on Autonomous Agents, Springer.","DOI":"10.1145\/336595.337048"},{"key":"ref_44","unstructured":"Pretorius, A., Tessera, K., Smit, A.P., Formanek, C., Grimbly, S.J., Eloff, K., Danisa, S., Francis, L., Shock, J., and Kamper, H. (2021). Mava: A Research Framework for Distributed Multi-Agent Reinforcement Learning. arXiv."},{"key":"ref_45","unstructured":"Ludwig, B., Bang, Y., Prasad, A., Lulic, H., Gruber, M., and Kok, G. (2022, October 24). Met4FoF\/agentMET4FOF: v0.13.2 (v0.13.2). Zenodo. Available online: https:\/\/zenodo.org\/record\/5965562#.Y4bc1hVBxPY."},{"key":"ref_46","doi-asserted-by":"crossref","first-page":"1035","DOI":"10.21474\/IJAR01\/8090","article-title":"Comparative Study of Jade and Spade Multi Agent System","volume":"6","author":"Radhakrishnan","year":"2018","journal-title":"Int. J. Adv. Res."},{"key":"ref_47","doi-asserted-by":"crossref","unstructured":"Santos, G., Pinto, T., and Vale, Z. (2021). Ontologies to Enable Interoperability of Multi-Agent Electricity Markets Simulation and Decision Support. Electronics, 10.","DOI":"10.3390\/electronics10111270"},{"key":"ref_48","doi-asserted-by":"crossref","first-page":"43","DOI":"10.1186\/s42162-021-00155-7","article-title":"Web-Based Platform for the Management of Citizen Energy Communities and Their Members","volume":"4","author":"Pereira","year":"2021","journal-title":"Energy Inform."},{"key":"ref_49","doi-asserted-by":"crossref","first-page":"309","DOI":"10.1016\/j.ifacol.2022.07.054","article-title":"CECOS: A Centralized Management Platform Supported by Distributed Services to Represent and Manage Resources Aggregation Entities and Its End-Users in a Smart Grid Context","volume":"Volume 55","author":"Pereira","year":"2022","journal-title":"IFAC-PapersOnLine"},{"key":"ref_50","doi-asserted-by":"crossref","first-page":"170","DOI":"10.1007\/978-3-030-33792-6_11","article-title":"Coordination of Mobile Agents for Simultaneous Coverage","volume":"Volume 11873","author":"Mazdin","year":"2019","journal-title":"Proceedings of the PRIMA 2019: Principles and Practice of Multi-Agent Systems: 22nd International Conference"},{"key":"ref_51","unstructured":"Mitrovic, D., Ivanovic, M., Budimac, Z., and Vidakovic, M. (2011, January 11\u201313). An Overview of Agent Mobility in Heterogeneous Environments. Proceedings of the WASA, Chengdu, China."},{"key":"ref_52","doi-asserted-by":"crossref","first-page":"108590","DOI":"10.1016\/j.dib.2022.108590","article-title":"Dataset of an Energy Community\u2019s Consumption and Generation with Appliance Allocation for One Year","volume":"45","author":"Goncalves","year":"2022","journal-title":"Data Brief"},{"key":"ref_53","unstructured":"(2022, March 01). Working Group on Intelligent Data Mining and Analysis (IDMA) Open Data Sets. Available online: https:\/\/site.ieee.org\/pes-iss\/data-sets\/."},{"key":"ref_54","doi-asserted-by":"crossref","first-page":"117088","DOI":"10.1016\/j.apenergy.2021.117088","article-title":"An Iterative Uniform-Price Auction Mechanism for Peer-to-Peer Energy Trading in a Community Microgrid","volume":"298","author":"Xu","year":"2021","journal-title":"Appl. Energy"},{"key":"ref_55","doi-asserted-by":"crossref","first-page":"118400","DOI":"10.1016\/j.apenergy.2021.118400","article-title":"A Peer-to-Peer Energy Trading Market Embedded with Residential Shared Energy Storage Units","volume":"308","author":"Zheng","year":"2022","journal-title":"Appl. Energy"}],"container-title":["Sustainability"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2071-1050\/14\/23\/15983\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T01:30:16Z","timestamp":1760146216000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2071-1050\/14\/23\/15983"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,11,30]]},"references-count":55,"journal-issue":{"issue":"23","published-online":{"date-parts":[[2022,12]]}},"alternative-id":["su142315983"],"URL":"https:\/\/doi.org\/10.3390\/su142315983","relation":{},"ISSN":["2071-1050"],"issn-type":[{"value":"2071-1050","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,11,30]]}}}