Journal of Modeling and Simulation in Electrical and Electronics Engineering

Journal of Modeling and Simulation in Electrical and Electronics Engineering

A Two-Stage Optimization Approach for Energy Pricing and Management in Smart Homes

Document Type : Research Article

Authors
1 Faculty of Electrical and Computer Engineering, Semnan University, Semnan, Iran.
2 Faculty of Electrical Engineering, Shahid Beheshti University, Tehran, Iran.
Abstract
Currently, around 30% of global energy consumption is attributed to the residential sector, and this share is projected to grow considerably in the upcoming years. This rising demand has drawn researchers’ attention to optimizing energy management in smart homes. One of the most effective approaches is the development of smart homes, where internal components interact through a codified system to create a logical and compatible environment. The key innovation of this research is the introduction of a newly developed two-stage mixed-integer linear programming (MILP) framework that, unlike previous models, explicitly incorporates the uncertain nature of photovoltaic (PV) output and variations in real-time electricity prices. Unlike traditional deterministic approaches, the proposed model leverages stochastic and robust optimization techniques to handle instability in renewable energy generation and market prices, making energy scheduling more flexible and cost-effective. The proposed model is implemented in MATLAB using the CPLEX solver, enabling optimal energy scheduling in smart homes while accounting for various uncertainty scenarios. The outcomes of the simulations indicate that the proposed model significantly improves energy planning reliability and cost efficiency compared to traditional methods. Specifically, real-time pricing reduces electricity costs by 10.5% compared to day-ahead pricing.
Keywords
Subjects

[1]    S. Gherairi, “Design and implementation of an intelligent energy management system for smart home utilizing a multi-agent system,” Ain Shams Eng. J., vol. 14, no. 3, p. 101897, Apr. 2023.
[2]     B. Han, Y. Zahraoui, M. Mubin, S. Mekhilf, M. Seyedmahmoudian, and A. Stojcevski, “Home energy management systems: A review of the concept, architecture, and scheduling strategies,” IEEE Access, vol. 11, pp. 19999–20025, Feb. 2023.
[3]    S. Hussain, O. Alrumayh, and C. Lai, “Integrating device-level flexibility in home energy management systems for prosumers,” IEEE Access, vol. 13, pp.157126-157136, July 2025.
[4]    N. Bhardwaj and P. Joshi, “Adaptive energy management for MATTER-enabled smart homes,” IEEE Access, vol. 13, pp.113773-113786, July 2025.
[5]     M. Z. Fakhar, E. Yalcin, and A. Bilge, “IESR: Instant energy scheduling recommendations for cost saving in smart homes,” IEEE Access, vol. 10, pp. 52178–52195, May 2022.
[6]     M. Umair, M. A. Cheema, B. Afzal, and G. Shah, “Energy management of smart homes over fog-based IoT architecture,” Sustainable Comput. Inform. Syst., vol. 39, p. 100898, Sep. 2023.
[7]     F. Cerna and J. Contreras, “A MILP model to relieve the occurrence of new demand peaks by improving the load factor in smart homes,” Sustainable Cities Soc., vol. 71, no. 102969, Aug. 2021.
[8]     T. H. B. Huy, H. T. Dinh, D. N. Vo, and D. Kim, “Real-time energy scheduling for home energy management systems with an energy storage system and electric vehicle based on a supervised-learning-based strategy,” Energy Convers. Manag., vol. 292, p. 117340, Sep. 2023.
[9]    H. Youssef, S. Kamel, M. H. Hassan, E. M. Mohamed, and N. Belbachir, "Exploring LBWO and BWO Algorithms for Demand Side Optimization and Cost Efficiency: Innovative Approaches to Smart Home Energy Management," IEEE Access, vol. 12, pp.28831-28852, Feb. 2024.
[10]  S. Girish, A. A. Téllez, R. Harini, S. H. Prasath, and N. Krishnan, "Smart Home Scheduling Using Demand Response in the Presence of Different Electric Vehicles for Grid Import Cost Reduction," IEEE Access, vol. 13, pp.180291-180307, Oct. 2025.
[11] M. Ghasemigarpachi, M. Dehghani, M. Aly, and J. Rodriguez, "Multi-Objective Improved Differential Evolution Algorithm-Based Smart Home Energy Management System Considering Energy Storage System, Photovoltaic, and Electric Vehicle," IEEE Access, vol. 13, pp.89946-89966, May 2025.
[12]  H. Khajeh, H. Laaksonen, and M. G. Simoes, “A fuzzy logic control of a smart home with energy storage providing active and reactive power flexibility services,” Electro Power Syst. Res., vol. 216, p. 109067, Mar. 2023.
[13]  T. H. B. Huy, H. T. Dinh, and D. Kim, “Multi-objective framework for a home energy management system with the integration of solar energy and an electric vehicle using an augmented ε-constraint method and lexicographic optimization,” Sustainable Cities Soc., vol. 88, p. 104289, Jan. 2023.
[14]  S. H. Iram et al., “An innovative machine learning technique for the prediction of weather-based smart home energy consumption,” IEEE Access, vol. 11, pp. 76300–76320, Jun. 2023.
[15]  P. Pandiyan et al., “Technological advancements toward smart energy management in smart cities,” Energy Rep., vol. 10, pp. 648–677, Nov. 2023.
[16]  H. Rocha et al., “An artificial intelligence-based scheduling algorithm for demand-side energy management in smart homes,” Appl. Energy, vol. 282, no. 116145, Jan. 2021.
[17]  H. Kim, H. Choi, H. Kang, J. An, S. Yeom, and T. Hong, “A systematic review of the smart energy conservation system: From smart homes to sustainable smart cities,” Renew. Sustain. Energy Rev., vol. 140, no. 110755, Apr. 2021.
[18]  A. M. Rad and T. Barforoushi, “Optimal scheduling of resources and appliances in smart homes under uncertainties considering participation in spot and contractual markets,” Energy Rep., vol. 192, p. 116548, Feb. 2019.
[19] H. Merdanoğlu, E. Yakıcı, O. T. Doğan, S. Duran, and M. Karatas, “Finding optimal schedules in a home energy management system,” Electr. Power Syst. Res., vol. 182, no. 106229, May 2020.
[20]  M. Tostado and F. Jurado, “Optimal electrification of off-grid smart homes considering flexible demand and vehicle-to-home capabilities,” Appl. Energy, vol. 298, no. 117184, Sep. 2021.
[21]  U. Rehman, K. Yaqoob, and M. A. Khan, “Optimal power management framework for smart homes using electric vehicles and energy storage,” Int. J. Electr. Power Energy Syst., vol. 134, no. 107358, Jan. 2022.
[22]  Q. Lu, Z. Zhang, and S. Lu, “Home energy management in smart households: Optimal appliance scheduling model with photovoltaic energy storage system,” Energy Rep., vol. 6, pp. 2450–2462, Nov. 2020.
[23] J. Wang et al., “Optimal scheduling of gas and electricity consumption in a smart home with a hybrid gas boiler and electric heating system,” Energy, vol. 204, no. 117951, Aug. 2020.
[24]  M. M. Iqbal et al., “Optimal scheduling of grid transactive home demand responsive appliances using polar bear optimization algorithm,” IEEE Access, vol. 8, pp. 222285–222296, Dec. 2020.
[25]  K. Tanrioven et al., “A price-elastic approach for optimal scheduling of small-scale storage devices in smart houses with short-term and long-term constraints,” J. Mod. Power Syst. Clean Energy, pp. 1–8, Jan. 2020.
[26]  J. Zhu, “Optimal household appliances scheduling of multiple smart homes using an improved cooperative algorithm,” Energy, vol. 171, pp. 944–955, Mar. 2019.
[27]  A. Eseye et al., “Optimal energy trading for renewable energy integrated building microgrids containing electric vehicle and energy storage batteries,” IEEE Access, vol. 7, pp. 1092–106101, Aug. 2019.
[28]  X. Hou et al., “Smart home energy management optimization method considering energy storage and electric vehicle,” IEEE Access, vol. 7, pp. 144010–144020, Oct. 2019.
[29] J. Leitao et al., “A survey on home energy management,” IEEE Access, vol. 8, pp. 5699–5722, Jan. 2020.
[30]  A. Mateen et al., “Smart energy management system for minimizing electricity cost and peak to average ratio in residential areas with hybrid genetic flower pollination algorithm,” Alexandria Eng. J., vol. 77, pp. 593–611, Aug. 2023.
[31]  T. W. Cabral et al., “High-reliability load recognition in home energy management systems,” IEEE Access, vol. 11, pp. 31244–31261, Mar. 2023.
[32]  A. R. Jordehi, “Binary particle swarm optimization with quadratic transfer function: A new binary optimization algorithm for optimal scheduling of appliances in smart homes,” Appl. Soft Comput., vol. 78, pp. 465–480, May 2019.
[33]  L. Ferreira, T. Oliveira, and C. Neves, “Consumer’s intention to use and recommend smart home technologies: The role of environmental awareness,” Energy, vol. 263, p. 125814, Jan. 2023.
[34]  A. N. Khan et al., “An OCF-IoTivity enabled smart-home optimal indoor environment control system for energy and comfort optimization,” Internet Things, vol. 22, p. 100712, Jul. 2023.
[35]  Q. Ain, S. Iqbal, and H. Mukhtar, “Improving quality of experience using fuzzy controller for smart homes,” IEEE Access, vol. 10, pp. 11892–11908, Jul. 2021.
[36] R. F. Koutenaei, A. Nazari, and R. Keypour, “A Framework for Optimal Operation of Overcurrent Relays in Microgrids Using a Modified Tripping Formulation,” Journal of Modeling & Simulation in Electrical & Electronics Engineering (MSEEE), vol. 1, no. 3, pp. 9–15, Nov. 2021.
[37]    L. Mohammadian, A Peer-to-Peer Energy Trading Optimization for Peak Load Management in Energy Internet Systems. Journal of Modeling & Simulation in Electrical & Electronics Engineering (MSEEE), vol. 6, no. 1, pp. 1–11, March. 2026.

Articles in Press, Corrected Proof
Available Online from 08 September 2026

  • Receive Date 16 February 2026
  • Revise Date 28 April 2026
  • Accept Date 14 June 2026