Due to recent developments in communications and the increasing penetration rate of distributed generation (DGs), new players in the energy market, known as prosumers, have emerged. Prosumers can both produce and consume power, offering benefits such as on-site power consumption, peak shaving, and postponing the power transmission network investment costs. This paper presents a two-stage day-ahead peer-to-peer pricing and power exchange model among local market participants, including the upstream grid, consumers, prosumers (equipped with rooftop solar panels), and electric vehicles. In the first stage, initial pricing is determined using the mid-market rate pricing method, taking into account each participant's declared demand and the forecasted solar production of prosumers. In the second stage, the random behavior of electric vehicles is modeled through scenario generation, and their dynamic behavior is incorporated into the pricing scheme. The proposed model aims to minimize two objectives: trading costs and electrical power losses due to the exchange of power among participants. This two-objective problem is reformulated as a single objective using the epsilon-constraint method. The resulting MINLP model is solved in GAMS using the DICOPT solver, and the best-compromised solution is identified through the Min-Max method. Simulation results indicate a 6.7% reduction in costs, with all participants benefiting economically. Additionally, on-site interactions led to a decrease in congestion on two lines connecting to the upstream grid by 5.02% and 6.66%, respectively.
D. H. Nguyen and T. Ishihara, “Distributed peer-to-peer energy trading for residential fuel cell combined heat and power systems,” Int. J. Electr. Power Energy Syst., vol. 125, p. 106533, 2021.
W. Amin, Q. Huang, K. Umer, Z. Zhang, M. Afzal, A. A. Khan, and S. A. Ahmed, “A motivational game-theoretic approach for peer-to-peer energy trading in islanded and grid-connected microgrid,” Int. J. Electr. Power Energy Syst., vol. 123, p. 106307, 2020.
M. Khorasany, A. Dorri, R. Razzaghi, and R. Jurdak, “Lightweight blockchain framework for location-aware peerto-peer energy trading,” Int. J. Electr. Power Energy Syst., vol. 127, p. 106610, 2021.
S. Iqbal, M. Nasir, M. F. Zia, K. Riaz, H. Sajjad, H. A. Khan, and I. Member, “A novel approach for system loss minimization in a peer-to-peer energy sharing community dc microgrid,” Int. J. Electr. Power Energy Syst., vol. 129, p. 106775, 2021.
W. Tushar, C. Yuen, T. K. Saha, T. Morstyn, A. C. Chapman, M. J. E. Alam, S. Hanif, and H. V. Poor, “Peer-to-peer energy systems for connected communities: A review of recent advances and emerging challenges,” Appl. Energy, vol. 282, p. 116131, 2021.
W. Tushar, T. K. Saha, C. Yuen, T. Morstyn, H. V. Poor, R. Bean, et al., “Grid influenced peer-to-peer energy trading,” IEEE Trans. Smart Grid, vol. 11, no. 2, pp. 1407–1418, 2019.
H. Salmani, A. Rezazadeh, and M. Sedighizadeh, “Robust stochastic blockchain model for peer-to-peer energy trading among charging stations of electric vehicles,” J. Oper. Autom. Power Eng., vol. 12, no. 1, pp. 54–68, 2024.
E. Valipour, R. Nourollahi, K. Taghizad-Tavana, S. Nojavan, and A. a. Alizadeh, “Risk assessment of industrial energy hubs and peer-to-peer heat and power transaction in the presence of electric vehicles,” Energies, vol. 15, no. 23, p. 8920, 2022.
J. An, M. Lee, S. Yeom, and T. Hong, “Determining the peer-to-peer electricity trading price and strategy for energy prosumers and consumers within a microgrid,” Appl. Energy, vol. 261, p. 114335, 2020.
P. W. Khan and Y.-C. Byun, “Blockchain-based peer-to-peer energy trading and charging payment system for electric vehicles,” Sustainability, vol. 13, no. 14, p. 7962, 2021.
A. Al-Sorour, M. Fazeli, M. Monfared, and A. A. Fahmy, “Investigation of electric vehicles contributions in an optimized peer-to-peer energy trading system,” IEEE Access, vol. 11, pp. 12489–12503, 2023.
J. Kang, R. Yu, X. Huang, S. Maharjan, Y. Zhang, and E. Hossain, “Enabling localized peer-to-peer electricity trading among plug-in hybrid electric vehicles using consortium blockchains,” IEEE Trans. Ind. Inf., vol. 13, no. 6, pp. 3154– 3164, 2017.
N. M. Manousakis, P. S. Karagiannopoulos, G. J. Tsekouras, and F. D. Kanellos, “Integration of renewable energy and electric vehicles in power systems: a review,” Processes, vol. 11, no. 5, p. 1544, 2023.
S. Cui, Y.-W. Wang, and J.-W. Xiao, “Peer-to-peer energy sharing among smart energy buildings by distributed transaction,” IEEE Trans. Smart Grid, vol. 10, no. 6, pp. 6491–6501, 2019.
M. R. Alam, M. St-Hilaire, and T. Kunz, “Peer-to-peer energy trading among smart homes,” Appl. Energy, vol. 238, pp. 1434–1443, 2019.
X. Wang, H. Jia, Z. Wang, X. Jin, Y. Deng, Y. Mu, and X. Yu, “A real time peer-to-peer energy trading for prosumers utilizing time-varying building virtual energy storage,” Int. J. Electr. Power Energy Syst., vol. 155, p. 109547, 2024.
D. Xu, B. Zhou, N. Liu, Q. Wu, N. Voropai, C. Li, and E. Barakhtenko, “Peer-to-peer multienergy and communication resource trading for interconnected microgrids,” IEEE Trans. Ind. Inf., vol. 17, no. 4, pp. 2522– 2533, 2020.
H. Liu, J. Li, S. Ge, X. He, F. Li, and C. Gu, “Distributed day-ahead peer-to-peer trading for multi-microgrid systems in active distribution networks,” IEEE Access, vol. 8, pp. 66961–66976, 2020.
A. Shrestha, R. Bishwokarma, A. Chapagain, S. Banjara, S. Aryal, B. Mali, R. Thapa, D. Bista, B. P. Hayes, A. Papadakis, et al., “Peer-to-peer energy trading in micro/mini-grids for local energy communities: A review and case study of nepal,” IEEE Access, vol. 7, pp. 131911–131928, 2019.
W. Tushar, T. K. Saha, C. Yuen, T. Morstyn, H. V. Poor, R. Bean, et al., “Grid influenced peer-to-peer energy trading,” IEEE Trans. Smart Grid, vol. 11, no. 2, pp. 1407–1418, 2019.
W. Tushar, T. K. Saha, C. Yuen, T. Morstyn, M. D. McCulloch, H. V. Poor, and K. L. Wood, “A motivational game-theoretic approach for peer-to-peer energy trading in the smart grid,” Appl. Energy, vol. 243, pp. 10–20, 2019.
A. Paudel, K. Chaudhari, C. Long, and H. B. Gooi, “Peer-to-peer energy trading in a prosumer-based community microgrid: A game-theoretic model,” IEEE Trans. Ind. Electron., vol. 66, no. 8, pp. 6087–6097, 2018.
[23] S. Ghaemi and A. Anvari-Moghaddam, “Local energy communities with strategic behavior of multi-energy players for peer-to-peer trading: A techno-economic assessment,” Sustainable Energy Grids Networks, vol. 34, p. 101059, 2023.
C. Zhang, Y. Yang, Y. Wang, J. Qiu, and J. Zhao, “Auction-based peer-to-peer energy trading considering echelon utilization of retired electric vehicle second-life batteries,” Appl. Energy, vol. 358, p. 122592, 2024.
C. Dang, J. Zhang, C.-P. Kwong, and L. Li, “Demand side load management for big industrial energy users under blockchain-based peer-to-peer electricity market,” IEEE Trans. Smart Grid, vol. 10, no. 6, pp. 6426–6435, 2019.
Y. Xia, Q. Xu, Y. Li, H. Fu, L. Shi, K. Lin, and F. Wu, “Peer-to-peer energy trading participating in ancillary service market as federated power plants,” Int. J. Electr. Power Energy Syst., vol. 157, p. 109859, 2024.
M. Kafaei, D. Sedighizadeh, M. Sedighizadeh, and A. S. Fini, “A two-stage igdt/tpem model for optimal operation of a smart building: A case study of gheshm island, iran,” Therm. Sci. Eng. Prog., vol. 24, p. 100955, 2021.
A. Lüth, J. M. Zepter, P. C. Del Granado, and R. Egging, “Local electricity market designs for peer-to-peer trading: The role of battery flexibility,” Appl. Energy, vol. 229, pp. 1233–1243, 2018.
D. L. Rodrigues, X. Ye, X. Xia, and B. Zhu, “Battery energy storage sizing optimisation for different ownership structures in a peer-to-peer energy sharing community,” Appl. Energy, vol. 262, p. 114498, 2020.
J. M. Zepter, A. Lüth, P. C. Del Granado, and R. Egging, “Prosumer integration in wholesale electricity markets: Synergies of peer-to-peer trade and residential storage,” Energy Build., vol. 184, pp. 163–176, 2019.
F. Alfaverh, M. Denai, and Y. Sun, “A dynamic peer-to-peer electricity market model for a community microgrid with price-based demand response,” IEEE Trans. Smart Grid, vol. 14, no. 5, pp. 3976–3991, 2023.
F. Mlika, W. Karoui, and L. B. Romdhane, “Blockchain solutions for trustworthy decentralization in social networks,” Comput. Net., p. 110336, 2024.
C.-T. Huang and I. J. Scott, “Peer-to-peer multi-period energy market with flexible scheduling on a scalable and cost-effective blockchain,” Appl. Energy, vol. 367, p. 123331, 2024.
Y. Mezquita, A. B. Gil-González, A. Martín del Rey, J. Prieto, and J. M. Corchado, “Towards a blockchain-based peer-to-peer energy marketplace,” Energies, vol. 15, no. 9, p. 3046, 2022.
R.-V. Tkachuk, D. Ilie, R. Robert, V. Kebande, and K. Tutschku, “Towards efficient privacy and trust in decentralized blockchain-based peer-to-peer renewable energy marketplace,” Sustainable Energy Grids Networks, vol. 35, p. 101146, 2023.
F. Condon, P. Franco, J. M. Martínez, A. M. Eltamaly, Y.-C. Kim, and M. A. Ahmed, “Energyauction: Iot-blockchain architecture for local peer-to-peer energy trading in a microgrid,” Sustainability, vol. 15, no. 17, p. 13203, 2023.
T. Zhang, H. Pota, C.-C. Chu, and R. Gadh, “Real-time renewable energy incentive system for electric vehicles using prioritization and cryptocurrency,” Appl. Energy, vol. 226, pp. 582–594, 2018.
E. van der Roest, J. G. Voeten, and D. G. Cirkel, “Increasing solar panel output with blue-green roofs in water-circular and nature inclusive urban development,” Build. Environ., vol. 244, p. 110704, 2023.
G. Molnár, L. F. Cabeza, S. Chatterjee, and D. Ürge-Vorsatz, “Modelling the building-related photovoltaic power production potential in the light of the eu’s solar rooftop initiative,” Appl. Energy, vol. 360, p. 122708, 2024.
K. Mongkoldhumrongkul, “Techno-economic analysis of photovoltaic rooftop system on car parking area in rayong, thailand,” Energy Rep., vol. 9, pp. 202–212, 2023.
A. Banibaqash, Z. Hunaiti, and M. Abbod, “Assessing the potential of qatari house roofs for solar panel installations: A feasibility survey,” in Sol., vol. 3, pp. 650–662, MDPI, 2023.
N. Monghasemi, A. Vadiee, K. Kyprianidis, and E. Jalilzadehazhari, “Rank-based assessment of gridconnected rooftop solar panel deployments considering scenarios for a postponed installation,” Energies, vol. 16, no. 21, p. 7335, 2023.
M. Sedighizadeh, S. S. Fazlhashemi, H. Javadi, and M. Taghvaei, “Multi-objective day-ahead energy management of a microgrid considering responsive loads and uncertainty of the electric vehicles,” J. Cleaner Prod., vol. 267, p. 121562, 2020.
M. Sedighizadeh, M. Esmaili, and N. Mohammadkhani, “Stochastic multi-objective energy management in residential microgrids with combined cooling, heating, and power units considering battery energy storage systems and plug-in hybrid electric vehicles,” J. Cleaner Prod., vol. 195, pp. 301–317, 2018.
M. Shadnam Zarbil and A. Vahedi, “Power quality of electric vehicle charging stations and optimal placement in the distribution network,” J. Oper. Autom. Power Eng., vol. 11, no. 3, pp. 193–202, 2023.
S. Malek, A. Khodabakhshian, and R. Hooshmand, “A new robust load frequency controller for electric vehicle aggregators,” J. Oper. Autom. Power Eng., vol. 11, no. 2, pp. 83–93, 2023.
S. Chupradit, G. Widjaja, S. Mahendra, M. Ali, M. Tashtoush, A. Surendar, M. Kadhim, A. Oudah, I. Fardeeva, and F. Firman, “Modeling and optimizing the charge of electric vehicles with genetic algorithm in the presence of renewable energy sources,” J. Oper. Autom. Power Eng., vol. 11, no. 1, pp. 33–38, 2023.
M. Kafaei, D. Sedighizadeh, M. Sedighizadeh, and A. S. Fini, “An igdt/scenario based stochastic model for an energy hub considering hydrogen energy and electric vehicles: A case study of qeshm island, iran,” Int. J. Electr. Power Energy Syst., vol. 135, p. 107477, 2022.
C. Long, J. Wu, C. Zhang, L. Thomas, M. Cheng, and N. Jenkins, “Peer-to-peer energy trading in a community microgrid,” in 2017 IEEE Power Energy Soc. Gener. Meet., pp. 1–5, IEEE, 2017.
Articles in Press, Corrected Proof Available Online from 26 April 2025
Kafaei, M. (2025). A Two-Stage Multi-Objective Optimal Day-Ahead Peer to Peer Energy Trade and Pricing Considering Electric Vehicles in Microgrid. Journal of Operation and Automation in Power Engineering, (), -. doi: 10.22098/joape.2024.14762.2130
MLA
Kafaei, M. . "A Two-Stage Multi-Objective Optimal Day-Ahead Peer to Peer Energy Trade and Pricing Considering Electric Vehicles in Microgrid", Journal of Operation and Automation in Power Engineering, , , 2025, -. doi: 10.22098/joape.2024.14762.2130
HARVARD
Kafaei, M. (2025). 'A Two-Stage Multi-Objective Optimal Day-Ahead Peer to Peer Energy Trade and Pricing Considering Electric Vehicles in Microgrid', Journal of Operation and Automation in Power Engineering, (), pp. -. doi: 10.22098/joape.2024.14762.2130
CHICAGO
M. Kafaei, "A Two-Stage Multi-Objective Optimal Day-Ahead Peer to Peer Energy Trade and Pricing Considering Electric Vehicles in Microgrid," Journal of Operation and Automation in Power Engineering, (2025): -, doi: 10.22098/joape.2024.14762.2130
VANCOUVER
Kafaei, M. A Two-Stage Multi-Objective Optimal Day-Ahead Peer to Peer Energy Trade and Pricing Considering Electric Vehicles in Microgrid. Journal of Operation and Automation in Power Engineering, 2025; (): -. doi: 10.22098/joape.2024.14762.2130