Energy management in residential buildings using energy hub approach

  • 5 Accesses


Building-owned micro energy hubs (EHs) usually focus on optimal energy consumption cost and emission, whereas, macro energy hubs (MEHs) mainly concentrate on utility's interest termed as network load deviation. Therefore, a bi-level MEH control capable of simultaneously attaining bilateral stakes is required. However, in real life energy distribution systems, MEH structure operates under uncertainties such as unpredictable solar photovoltaic (PV) irradiance and unplanned electric and natural gas (NG) network outages. Such uncertain conditions may affect the MEH's performance (energy cost, emission and network load deviation) and resilience (capability of recovering quickly from disturbances) undesirably. Objective of this paper is to attain an optimal compromise between the performance and the resilience of a bi-level residential MEH, under uncertain conditions. In first step, risk neutral bi-level MEH is proposed to optimally reduce the network load deviation, while obeying the customer specified comfort, emission and cost constraints. However, this strategy disregards the risk introduced by the uncertainties. In second step, risk averse strategy is devised by incorporating conditional value at risk (CVaR) in the objective function, for improvement in resilience. Proposed linear bi-level risk averse MEH is mapped in conventional flower pollination algorithm (FPA). Resilience of the MEH is measured in terms of energy stored in the plug-in hybrid electric vehicle (PHEV) and thermal energy storage (TES). Third step concentrates on the development of an efficient solution technique for energy management system to obtain better solution. For this, an improved version of FPA, termed as 2-cored FPA is proposed and employed to solve the model. Proposed technique has a filtration layer (termed as core-1) that consists of random walk, local pollination and global pollination to obtain improved pollinators. Subsequently, these pollinators are injected into conventional FPA layer (termed as core-2) to obtain better solution. Comparison of results demonstrates that under risk averse approach with two cores, the energy retaining capability of the PHEV and the TES increases by 31.66% and 57.66%, respectively.

This is a preview of subscription content, log in to check access.

Access options

Buy single article

Instant unlimited access to the full article PDF.

US$ 39.95

Price includes VAT for USA


  1. Al-Rousan A, Zyadin A (2014). A technical experiment on biogas production from small-scale dairy farm. Journal of Sustainable Bioenergy Systems, 4: 10–18.

  2. Asensio M, Munoz-Delgado G, Contreras J (2017). Bi-level approach to distribution network and renewable energy expansion planning considering demand response. IEEE Transactions on Power Systems, 32: 4298–4309.

  3. Blasco X, Reynoso-Meza G, Sánchez-Pérez EA, Sánchez-Pérez JV (2019). Computing optimal distances to Pareto sets of multi-objective optimization problems in asymmetric normed lattices. Acta Applicandae Mathematicae, 159: 75–93.

  4. Bond T, Templeton MR (2011). History and future of domestic biogas plants in the developing world. Energy for Sustainable Development, 15: 347–354.

  5. Bozchalui MC, Hashmi SA, Hassen H, Canizares CA, Bhattacharya K (2012). Optimal operation of residential energy hubs in smart grids. IEEE Transactions on Smart Grid, 3: 1755–1766.

  6. Brahman F, Honarmand M, Jadid S (2015). Optimal electrical and thermal energy management of a residential energy hub, integrating demand response and energy storage system. Energy and Buildings, 90: 65–75.

  7. Cuevas E, Gálvez J, Hinojosa S, Avalos O, Zaldívar D, Pérez-Cisneros M (2014). A comparison of evolutionary computation techniques for IIR model identification. Journal of Applied Mathematics, 2014: 1–9.

  8. Dolatabadi A, Mohammadi-Ivatloo B (2017). Stochastic risk-constrained scheduling of smart energy hub in the presence of wind power and demand response. Applied Thermal Engineering, 123: 40–49.

  9. Dolatabadi A, Mohammadi-Ivatloo B, Abapour M, Tohidi S (2017). Optimal stochastic design of wind integrated energy hub. IEEE Transactions on Industrial Informatics, 13: 2379–2388.

  10. Drobež R, Pintarič ZN, Pahor B, Kravanja Z (2009). MINLP synthesis of processes for the production of biogas from organic and animal waste. Chemical and Biochemical Engineering Quarterly, 23: 445–459.

  11. Durrett R (2016). Continuous time Markov chains. In: Durrett R (ed), Essentials of Stochastic Processes. Cham, Switzerland: Springer International Publishing, pp. 147–200.

  12. Fateh H, Safari A, Bahramara S (2019). A bi-level optimization approach for optimal operation of distribution networks with retailers and micro-grids. Journal of Operation and Automation in Power Engineering,

  13. Ferro G, Laureri F, Minciardi R, Robba M (2017). Optimal integration of interconnected buildings in a smart grid: A Bi-level approach. In: Proceedings of 19th International Conference on Computer Modelling & Simulation (UKSim), Cambridge, UK.

  14. Han M, Hong K-J, Cho S-G (2018). Weighted Latin hypercube sampling to estimate clearance-to-stop for probabilistic design of seismically isolated structures in nuclear power plants. Journal of the Earthquake Engineering Society of Korea, 22: 63–75.

  15. Hemmati R, Saboori H, Saboori S (2016). Stochastic risk-averse coordinated scheduling of grid integrated energy storage units in transmission constrained wind-thermal systems within a conditional value-at-risk framework. Energy, 113: 762–775.

  16. Jeter M (1986). Mathematical Programming: An Introduction to Optimization. New York: Routledge.

  17. Li H, Zang C, Zeng P, Yu H, Li Z, Ni F (2016). Optimal home energy management integrating random PV and appliances based on stochastic programming. In: Proceedings of Chinese Control and Decision Conference (CCDC), Yinchuan, China.

  18. Nabil E (2016). A modified flower pollination algorithm for global optimization. Expert Systems with Applications, 57: 192–203.

  19. Nigdeli SM, Bekdaş G, Yang X-S (2016). Application of the flower pollination algorithm in structural engineering. In: Yang X-S, Bekdaş G, Nigdeli SM (eds), Metaheuristics and Optimization in Civil Engineering. Cham, Switzerland: Springer International Publishing, pp. 25–42.

  20. Perera ATD, Nik VM, Mauree D, Scartezzini JL (2017). Electrical hubs: An effective way to integrate non-dispatchable renewable energy sources with minimum impact to the grid. Applied Energy, 190: 232–248.

  21. Pfau W (2016). The Advantages of Monte Carlo Simulations.

  22. Rastegar M, Fotuhi-Firuzabad M, Zareipour H, Moeini-Aghtaieh M (2017). A probabilistic energy management scheme for renewable-based residential energy hubs. IEEE Transactions on Smart Grid, 8:2217–2227.

  23. Raza A, Malik TN (2018). Biogas supported bi-level macro energy hub management system for residential customers. Journal of Renewable and Sustainable Energy, 10: 025501.

  24. Rodrigues D, Yang X-S, de Souza AN, Papa JP (2014). Binary flower pollination algorithm and its application to feature selection. In: Yang X-S (ed), Recent Advances in Swarm Intelligence and Evolutionary Computation. Cham, Switzerland: Springer International Publishing, pp. 85–100.

  25. Rodríguez N, Gupta A, Zabala PL, Cabrera-Guerrero G (2018). Optimization algorithms combining (meta)heuristics and mathematical programming and its application in engineering. Mathematical Problems in Engineering, 2018: 3967457.

  26. Sadati SMB, Moshtagh J, Shafie-Khah M, Rastgou A, Catalao JPS (2019). Operational scheduling of a smart distribution system considering electric vehicles parking lot: A bi-level approach. International Journal of Electrical Power & Energy Systems, 105: 159–178.

  27. Sarvani A, Venugopal B, Devarakonda N (2018). A refined K-means technique to find the frequent item sets. In: Gurumoorthy S, Rao BN, Gao X-Z (eds), Cognitive Science and Artificial Intelligence. Singapore: Springer Singapore, pp. 45–53.

  28. Shafie-Khah M, Siano P (2018). A stochastic home energy management system considering satisfaction cost and response fatigue. IEEE Transactions on Industrial Informatics, 14: 629–638.

  29. Shen J, Jiang C, Liu Y, Wang X (2016). A microgrid energy management system and risk management under an electricity market environment. IEEE Access, 4: 2349–2356.

  30. Shi N, Luo Y (2017). Bi-level programming approach for the optimal allocation of energy storage systems in distribution networks. Applied Sciences, 7: 398.

  31. Soares J, Fotouhi Ghazvini MA, Borges N, Vale Z (2017). A stochastic model for energy resources management considering demand response in smart grids. Electric Power Systems Research, 143: 599–610.

  32. Tasdighi M, Ghasemi H, Rahimi-Kian A (2014). Residential microgrid scheduling based on smart meters data and temperature dependent thermal load modeling. IEEE Transactions on Smart Grid, 5: 349–357.

  33. Tavakoli M, Shokridehaki F, Funsho Akorede M, Marzband M, Vechiu I, Pouresmaeil E (2018). CVaR-based energy management scheme for optimal resilience and operational cost in commercial building microgrids. International Journal of Electrical Power & Energy Systems, 100: 1–9.

  34. Vahid-Pakdel MJ, Nojavan S, Mohammadi-Ivatloo B, Zare K (2017). Stochastic optimization of energy hub operation with consideration of thermal energy market and demand response. Energy Conversion and Management, 145: 117–128.

  35. Watson ES (2015). Applications of incomplete gamma functions to the incomplete normal distribution. Open Journal of Applied & Theoretical Mathematics, 1(1): 1–6.

  36. Zhang H, Zhao D, Gu C, Li F (2015). Bilevel economic operation of distribution networks with microgrid integration. Journal of Renewable and Sustainable Energy, 7(2): 023120.

  37. Zhang X, Shahidehpour M, Alabdulwahab A, Abusorrah A (2016). Hourly electricity demand response in the stochastic day-ahead scheduling of coordinated electricity and natural gas networks. IEEE Transactions on Power Systems, 31: 592–601.

Download references


Research is carried under supervision of Prof. Dr. Tahir Nadeem Malik for microgrid based green energy project.

Author information

Correspondence to Aamir Raza.

Rights and permissions

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Raza, A., Malik, T.N., Khan, M.F.N. et al. Energy management in residential buildings using energy hub approach. Build. Simul. (2020) doi:10.1007/s12273-019-0590-9

Download citation


  • energy hub
  • micro hub control
  • macro hub control
  • risk neutral
  • risk averse
  • two-cored energy management