M Mahad Malik, Abdullah Altamimi, Syed Ali Abbas Kazmi, Zafar A. Khan, M Waleed Ansari, Kamran Mujahid, Jiechao Gao
M Mahad Malik, Abdullah Altamimi, Syed Ali Abbas Kazmi, Zafar A. Khan, M Waleed Ansari, Kamran Mujahid, Jiechao Gao
This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000.
Digital Object Identifier 10.1109/ACCESS.2017.Doi Number
ABSTRACT Moving from smart homes to smart cities is a complex but essential task to consider. Setting up a
modern smart city has many problems, such as unstable power generation systems, a lack of integration of demand-
side loads, low profits, more pollution, and agents that cannot communicate quickly and smartly. Our model has
the following steps to deal with all of these problems. It performs consumption forecasting through GNN and the
Smart Hybrid model (LSTM + GNN) to get optimal forecasting results. The smart hybrid model outperformed the
LSTM model by 1.14% in MAPE. The LSTM and Smart Hybrid models have MAPE values of 0.0787 and 0.0776,
respectively. This infrastructure uses GNN, Smart Hybrid Model, MOPnP, MOPPnP, and knapsack algorithms to
maximize personal comfort, lower costs, profit the community through transaction agents, reduce unwanted peaks
by shifting loads, and use an intelligent and robust structure for agent communication. The integration of
renewables, optimum consumption forecasts, adjusting consumer comfort, decentralized energy market structure
and formulated algorithms have combined to reduce monthly electricity expenses by up to 94%. For the four trade
setups that were examined, the unrealized PnL rates were +116%, +78%, +71.631%, and +250%, in that order.
INDEX TERMS Energy forecasting, neural network, load forecasting, smart grids, energy balancing, multi-
microgrid, real time pricing, energy trading.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
energy management system operates sustainably. It looks at study [17] sought to lower prosumers' discomfort index (DI)
how metaheuristic (or optimizer) algorithms like the PSO from moving burdens to peak hours. Economically, LVDC
and HS algorithms are incorporated into the standalone SVM microgrid technology in neighborhood’s P2P electricity
model. The research model under discussion [5] proposes a marketplaces may provide cheap, locally generated energy
framework that uses SML and DL approaches to anticipate and improve energy efficiency [18].
electricity usage. The accuracy rates of the enhanced The proposed model for setting up a smart
methods, CNN-GRU-EWO and SVM-GWO, are 96.33% community moves forward with following:
and 90.67%, respectively. The CNN-GRU-EWO and SVM- Stage 1: A cutting-edge and unique study to leverage
GWO algorithms that have been recommended perform historical power consumption data to enhance
better than the State-Of-The-Art (SOTA) by 7% and 3%, load forecasting by utilizing Smart Hybrid
respectively. Models (LSTM and GNN) and Graph Neural
This research [6] proposes a one-hour-ahead demand Networks (GNN). The first stage is to increase
response algorithm for residential energy management the accuracy of load forecasts and energy
systems and an artificial neural network-based stable price balancing. It helps to model the generation,
forecast model to alleviate future pricing uncertainty. This lower the electricity consumption cost and
study [7] presents an effective home energy management emissions profile of a smart community.
system (HEMS) using solar (PV) and battery energy storage Stage 2: This stage provides a model containing (i) A smart
devices. A thorough predictive control approach based on a home where all devices are interconnected
mixed-integer quadratic programming model based on the through Python agent development, multi-
building energy management system is described in [8]. objective plug and play (MOPnP) (multi-
This study [9] suggests that sustainable energy objective plug and play), and MOPPnP (multi-
smart cities should create infrastructure and introduce a new objective prioritized plug and play). (ii) A smart
energy trading technique in distributed energy systems to thermostat (ST) for all power flexible devices
improve their advanced energy conservation systems. The like HVAC, AC, and refrigerators.
study [10] presents a multi-agent system-blockchain Stage 3: It offers a smart city infrastructure that evaluates
integration concept. In this paradigm, an artificial institution two setups of high-RES penetration and low-
ties abstract asset transaction ideas to system components. A RES penetration to look for different
blockchain-based smart system for DSM of residential consumption, generation, electricity cost and
constructions in a community increases power load Peaks to energy trading for each of them. To scale down
Average Ratios (PAR) [11]. Decentralized multi-agent the overall cost and adopt intelligent algorithm-
systems (MAS) implement the top layer of intelligent control based efficient procedures, the MMG structure
based on robust and secure communication [12]. is separated and integrated into smart city
Economic dispatch and MAS power balance structures for improved practical scenarios.
control are two of the coating's control systems. Blockchain MOPPnP and MOPPnP are employed with a
technology is a topic that many people who work in, control, specified target function to provide the best
or want to work in the energy sector are particularly possible outcome in terms of cost, efficiency,
interested in. The authors describe the multi-agent genetic user comfort, and a regulated influence on a
algorithm and discover improved optimization with an heavy-load thermostat, such as an HVAC
average operating efficiency of 23% and a decrease in total system.
energy consumption of 40% while analyzing the variety of Stage 4: A complete model for energy trading that helps in
power sources on all operating modes considered in [13]. efficient payback period planning, high ROI,
Additionally, the energy consumption of a swarm of Internet and profit-based structures for consumers and
of Things devices has been stabilized far more effectively by stakeholders involving smart city infrastructure.
the multi-agent system for monitoring and optimizing energy Four decentralized trading setups are
use. In the research [14], the authors review the role of considered.
blockchain in enabling IoT-based smart cities. Four aspects
are considered: (i) The development of blockchain systems. When a smart city setup is implemented, it enables robust
(ii) A critical assessment of the many intelligent apps. (iii). communication and a smart energy setup with increase in
Case studies of blockchain implementations in smart cities. efficiency, higher ROI, intelligent forecasting and a more
(iv).The essential conditions for integrating blockchain power-effective energy management solution, as shown in
technology with smart cities. Figure 1.
This study used a game-theory-based decentralized
trading system [15] to evaluate how DER ownership affects
P2P trading market participants' benefits. In [16], the authors
propose using Gaussian-based regularized particle swarm
optimization and fuzzy clustering to determine the best cost-
effective and dependable energy management system. The
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
emissions. IaCCSHC receives the load profile from each home signal, thermostat decisions and device power on/off are
and relays the signals to IrCC. made. Power flexible loads have various behaviors. They run
on a 24-hour basis under a variable power structure.
LTAh=∑! '( % % %
"#$ ∑)#$( ∑&#$ 𝐹𝐿 + ∑&#$ 𝑇𝐶𝐿 ∑&#$ PFlL (1)
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
0.3&
𝑃𝑆𝑆𝐶01-2 =∑/$+"(𝑆𝐶𝐶𝑔𝑒𝑛 − 𝑃𝐼𝑟𝐶𝐶) (22)
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
D𝟏℃ ;U-GG V '* WO .0& ?52V' For the most comfort in the winter, the two conditions in
D𝟐℃ ;U-GG V (* WO .0& ?52V' equation (30) must be met for the thermostats to be turned up
∑))D$ 𝑇𝐻𝐸𝑅𝑀P2Q = w (27)
to warm levels.
D𝟑℃ ;U-GG V (* WO .0& ?52VX
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
𝑔 = (𝑝, 𝑜)
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
the grid algorithm earlier is filled. GTA then 4. All appliances should only utilize the amount of
places a new sell order one level higher. electricity per hour, calculated in the
linked knapsack (t).
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
TABLE 4
ELECTRICITY FORECASTING TECHNIQUES AND PARAMETERS
Electricity Forecasting parameters
Technique Mean Mean Mean FIGURE 11. Load Profile Case 1
applied Squared Absolute Absolute
Error Error Percentage
Error
GNN 3946616017 52671.64105 0.078719119
Smart
Hybrid 4082942556 52378.62965 0.077603803
Model
FIGURE 12. Forecasted Load with GNN, SMH, High Comfort and MOPPnP
11
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
FIGURE 15. Energy Signals at LrCC with Trading setup 3 (Dot), Trading
setup 2 (Sol) and HVAC thermostats
FIGURE 16. Energy Signals at LrCC with Trading setup 3 (Dot), Trading
setup 2 (Sol) and HVAC thermostats
FIGURE 14. Energy Signals at LrCC with Trading setup 1 (ETH), Trading
setup 2 (APE) and HVAC thermostats
12
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
FIGURE 17. Monthly Billing (Case 1) FIGURE 20. Forecasted Load with GNN, SHM, High Comfort and MOPPnP
FIGURE 22. Energy Signals at LrCC with Trading setup 1 (ETH), Trading
FIGURE 19. Load Profile Case 2 (Before Vs Adjusted) setup 2 (APE) and HVAC thermostats
13
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
As shown in figure 21, these consumption signals All these decisions are taken at the IrCC level, and
are further processed and synchronized by load adjustment the signals are then passed on to the SCC level to make
using trading setups that include GTA of Ethereum, APE, different decisions based on the GTA of the SCC. Figure 25
Dot, and Sol. The HVAC agent takes the signals from GTA depicts the monthly bill reductions before they are forwarded
and IrCC to decide whether to operate within the minimum to SCC for further evaluation of buying and selling excess or
and maximum comfort ranges. In this case of lower RES deficit electricity energy.
integration, surplus power is less than in Case 1. As a result,
HVAC operates near the threshold rather than at more
personal comfort levels. Figure 22-23 explains how HVAC
makes decisions on points of GTA and power supply deficit.
FIGURE 23. Energy Signals at LrCC with Trading setup 3 (Dot), Trading
setup 2 (Sol) and HVAC thermostats
FIGURE 26. Grid Transaction Agent (GTA) (Transactions in Real-Time)
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
Figure 27 shows the total number of transactions they can invest in getting profits in the form of extra energy
done in 90 days from August to October 2022. Figure 28 units and the comfort they are aiming for. HVAC agents
shows the total profit percentage and asset value operate according to the proposed model based on ASHRAE
accumulated from applying these agents. Energy units can be standards, GTA, and surplus/deficit power signals. Two load
bought with these profits, and investors can enjoy these profiles and four cryptocurrency scenarios revealed the total
profits. Table 5 shows all the parameters and results achieved cost analysis, power utilization, cryptocurrency-based power
by running the simulations on all four trading setups. trading, load balancing, emission curtailment, and user
comfort. The involvement of cryptocurrencies has noticed an
increase in total assets of 116.264%, 78.18%, 71.63%, and
250.9%.
Acknowledgements
This work is indorsed by U.S.-Pakistan Center for Advanced
Studies in Energy, National University of Sciences and
Technology, Islamabad, Pakistan.
VI. REFERENCES
15
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
[8] M. Killian, M. Zauner, and M. Kozek, Systems,” e-Prime, p. 100006, Oct. 2021, doi:
“Comprehensive smart home energy management 10.1016/j.prime.2021.100006.
system using mixed-integer quadratic- [18] H. ben Abdeljawed and L. el Amraoui, “Prospects
programming,” Appl. Energy, vol. 222, pp. 662- for synergies between low-voltage DC microgrid
672, 2018. technology and peer-to-peer energy trading
doi.org/10.1016/j.apenergy.2018.03.179. markets,” Sustainable Production and
[9] H. Kim, H. Choi, H. Kang, J. An, S. Yeom, and T.
Consumption, vol. 28. Elsevier B.V., pp. 1286–
Hong, “A systematic review of the smart energy
1296, Oct. 01, 2021. doi:
conservation system: From smart homes to
10.1016/j.spc.2021.07.029.
sustainable smart cities,” Renewable and
[19] X. B. Jin et al., “Deep-learning forecasting method
Sustainable Energy Reviews, vol. 140. Elsevier Ltd,
for electric power load via attention-based encoder-
Apr. 01, 2021. doi: 10.1016/j.rser.2021.110755.
decoder with bayesian optimization,” Energies, vol.
[10] F. G. Papi, J. F. Hübner, and M. de Brito, “A
14, no. 6, p. 1596, 2021. doi.org:
Blockchain integration to support transactions of
10.3390/en14061596.
assets in multi-agent systems,” Eng Appl Artif
[20] Q. Yu and Z. Li, “Correlated load forecasting in
Intell, vol. 107, Jan. 2022, doi:
active distribution networks using Spatial-
10.1016/j.engappai.2021.104534.
Temporal Synchronous Graph Convolutional
[11] A. Kolahan, S. R. Maadi, Z. Teymouri, and C.
Networks,” IET Energy Syst. Integr., vol. 3, no. 3,
Schenone, “Blockchain-based solution for energy
pp. 355-366, 2021. doi: 10.1049/esi2.12028.
demand-side management of residential buildings,”
[21] L. Lu and B. Lyu, “Reducing energy consumption
Sustain Cities Soc, vol. 75, Dec. 2021, doi:
of Neural Architecture Search: An inference
10.1016/j.scs.2021.103316.
latency prediction framework,” Sustain. Cities Soc.,
[12] W. Xu, J. Li, M. Dehghani, and M.
vol. 67, p. 102747, 2021.
GhasemiGarpachi, “Blockchain-based secure
doi.org/10.1016/j.scs.2021.102747.
energy policy and management of renewable-based
[22] A. Al Mamun, M. Hoq, E. Hossain, and R.
smart microgrids,” Sustain Cities Soc, vol. 72, Sep.
Bayindir, “A hybrid deep learning model with
2021, doi: 10.1016/j.scs.2021.103010.
evolutionary algorithm for short-term load
[13] M. Raval, S. Bhardwaj, A. Aravelli, J. Dofe, and H.
forecasting,” in Proc. 8th Int. Conf. Renewable
Gohel, “Smart energy optimization for massive IoT
Energy Research and Applications (ICRERA), pp.
using artificial intelligence,” Internet of Things
886-891, Nov. 2019. doi:
(Netherlands), vol. 13, Mar. 2021, doi:
10.1109/ICRERA47325.2019.8996550
10.1016/j.iot.2020.100354.
[23] A. Ozcan, C. Catal, and A. Kasif, “Energy load
[14] U. Majeed, L. U. Khan, I. Yaqoob, S. M. A. Kazmi,
forecasting using a dual-stage attention-based
K. Salah, and C. S. Hong, “Blockchain for IoT-
recurrent neural network,” Sensors, vol. 21, no. 21,
based smart cities: Recent advances, requirements,
p. 7115, 2021. doi.org/10.3390/s21217115.
and future challenges,” Journal of Network and
[24] S. Kazmi, N. Javaid, M. J. Mughal, M. Akbar, S. H.
Computer Applications, vol. 181. Academic Press,
Ahmed, and N. Alrajeh, “Towards optimization of
May 01, 2021. doi: 10.1016/j.jnca.2021.103007.
metaheuristic algorithms for IoT enabled smart
[15] X. Luo, W. Shi, Y. Jiang, Y. Liu, and J. Xia,
homes targeting balanced demand and supply of
“Distributed peer-to-peer energy trading based on
energy,” IEEE Access, vol. 7, pp. 24267-24281,
game theory in a community microgrid considering
2017. doi: 10.1109/ACCESS.2017.2763624
ownership complexity of distributed energy
[25] K. Muralitharan, R. Sakthivel, and Y. Shi,
resources,” J Clean Prod, vol. 351, Jun. 2022, doi:
“Multiobjective optimization technique for demand
10.1016/j.jclepro.2022.131573.
side management with load balancing approach in
[16] H. J. Kim, M. K. Kim, and J. W. Lee, “A two-stage
smart grid,” Neurocomputing, vol. 177, pp. 110-
stochastic p-robust optimal energy trading
119, 2016. doi.org/10.1016/j.neucom.2015.11.015.
management in microgrid operation considering
[26] M. Tan, Y. Zhou, L. Wang, Y. Su, B. Duan, and R.
uncertainty with hybrid demand response,”
Wang, “Fair-efficient energy trading for microgrid
International Journal of Electrical Power and
cluster in an active distribution network,”
Energy Systems, vol. 124, Jan. 2021, doi:
Sustainable Energy, Grids and Networks, vol. 26,
10.1016/j.ijepes.2020.106422.
Jun. 2021, doi: 10.1016/j.segan.2021.100453.
[17] M. S. Javadi et al., “Conditional Value-at-Risk
[27] M. S. Aliero, K. N. Qureshi, M. F. Pasha, and G.
Model for Smart Home Energy Management
Jeon, “Smart Home Energy Management Systems
16
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
in Internet of Things networks for green cities [37] W. El-Baz, P. Tzscheutschler, and U. Wagner,
demands and services,” Environmental Technology “Integration of energy markets in microgrids: A
and Innovation, vol. 22. Elsevier B.V., May 01, double-sided auction with device-oriented bidding
2021. doi: 10.1016/j.eti.2021.101443. strategies,” Appl Energy, vol. 241, pp. 625–639,
[28] X. Qu, H. Hui, Y. Ding, and K. Luan, “Optimal May 2019, doi: 10.1016/j.apenergy.2019.02.049.
Control of Intelligent Electricity Consumption for [38] V. Vakiloroaya, B. Samali, A. Fakhar, and K.
Residential Customers Considering Demand Pishghadam, “A review of different strategies for
Response,” in Energy Procedia, 2018, vol. 145, pp. HVAC energy saving,” Energy Convers Manag,
510–515. doi: 10.1016/j.egypro.2018.04.074. vol. 77, pp. 738–754, 2014, doi:
[29] H. E. Keshta, A. A. Ali, E. M. Saied, and F. M. 10.1016/j.enconman.2013.10.023.
Bendary, “Real-time operation of multi-micro-grids [39] K. J. Lomas and R. Giridharan, “Thermal comfort
using a multi-agent system,” Energy, vol. 174, pp. standards, measured internal temperatures and
576–590, May 2019, doi: thermal resilience to climate change of free-running
10.1016/j.energy.2019.02.145. buildings: A case-study of hospital wards,” Build
[30] S. A. Mansouri, A. Ahmarinejad, E. Nematbakhsh, Environ, vol. 55, pp. 57–72, Sep. 2012, doi:
M. S. Javadi, A. R. Jordehi, and J. P. S. Catalão, 10.1016/j.buildenv.2011.12.006.
“Energy management in microgrids including smart [40] 40. ASHRAE, “Thermal environmental conditions
homes: A multi-objective approach,” Sustain Cities for human occupancy,” ANSI/ASHRAE Standard
Soc, vol. 69, Jun. 2021, doi: 55, pp. 1-5, 1992
10.1016/j.scs.2021.102852.
[31] M. S. Javadi et al., “Self-scheduling model for
Appendix A:
home energy management systems considering the
end-users discomfort index within price-based Algorithm for Level 1 / Consumer Layer:
demand response programs,” Sustain Cities Soc,
a. Home controller: Communicating home agents through PADE and their
vol. 68, May 2021, doi: 10.1016/j.scs.2021.102792. working
[32] V. F. Yu, T. H. A. Le, and J. N. D. Gupta, b. Kick start all agents
“Sustainable microgrid design with multiple c. Dummy message sending/receiving (response time = 0.1s)
d. Register devices w.r.t community type 1-n
demand areas and peer-to-peer energy trading
involving seasonal factors and uncertainties,” While n<N: // Total number of devices
Renewable and Sustainable Energy Reviews, vol. Initialization of agents:
Send the message
161, Jun. 2022, doi: 10.1016/j.rser.2022.112342. Receive the proposal message and information from agent n
[33] G. Vieira and J. Zhang, “Peer-to-peer energy n++
end
trading in a microgrid leveraged by smart
e. Total number of homes ( 1-h )
contracts,” Renewable and Sustainable Energy While h<H: // Total number of homes
Reviews, vol. 143, Jun. 2021, doi: 1. Send the message
2. Receive the proposal message and information from home h
10.1016/j.rser.2021.110900.
3. n++
[34] Y. C. Tsao and V. van Thanh, “Toward sustainable 4. end
microgrids with blockchain technology-based peer- time slots (t=1,24)
While t<=24:
to-peer energy trading mechanism: A fuzzy meta- 1. Send signals assigned hr
heuristic approach,” Renewable and Sustainable 2. Receive signals assigned hr
Energy Reviews, vol. 136, Feb. 2021, doi: f. Function Call (Controller): def Rich home, def middle home , def poor
home
10.1016/j.rser.2020.110452. Def rich home(): (PnP)
[35] Z. Wang, X. Yu, Y. Mu, H. Jia, Q. Jiang, and X. While Pgen > Pthreshold:
Plug in 1:
Wang, “Peer-to-Peer energy trading strategy for Inflexible loads
energy balance service provider (EBSP) Plug in 2:
considering market elasticity in community Best optimal HVAC performance (Ashire Standard)
Plug in 3:
microgrid,” Appl Energy, vol. 303, Dec. 2021, doi: Schedule Time Controllable Load (PPnP)
10.1016/j.apenergy.2021.117596. Priority Plug in (Device 1 (washing machine))
[36] S. Xu, Y. Zhao, Y. Li, and Y. Zhou, “An iterative Priority Plug in (Device 2 (iron))
Priority Plug in (Device 3 (dish washer))
uniform-price auction mechanism for peer-to-peer Else :
energy trading in a community microgrid,” Appl Plug in 1:
Inflexible loads
Energy, vol. 298, Sep. 2021, doi:
Plug in 2:
10.1016/j.apenergy.2021.117088. Lowest optimal HVAC performance (Ashire Standard)
17
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4
This article has been accepted for publication in IEEE Access. This is the author's version which has not been fully edited and
content may change prior to final publication. Citation information: DOI 10.1109/ACCESS.2024.3497752
M. M. Malik et al.: A full-fledged, multi-agent system representing the architecture of smart cities by balancing energy with optimal electricity
forecasting, integrating individual comfort, and extracting financial gains.
18
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4