Abstract
This study proposes an optimized model of a micro-energy network (MEN) that includes electricity and natural gas with integrated solar, wind, and energy storage systems (ESSs). The proposed model is based on energy hubs (EHs) and it aims to minimize operation costs and greenhouse emissions. The research is motivated by the increasing use of renewable energies and ESSs for secure energy supply while reducing operation costs and environment effects. A general algebraic modeling system (GAMS) is used to solve the optimal operation problem in the MEN. The results demonstrate that an optimal MEN formed by multiple EHs can provide appropriate and flexible responses to fluctuations in electricity prices and adjustments between time periods and seasons. It also yields significant reductions in operation costs and emissions. The proposed model can contribute to future research by providing a more efficient network model (as compared with the traditional electricity supply system) to scale down the environmental and economic impacts of electricity storage and supply systems on MEN operation.
EXHAUSTION of traditional energy resources and the problems posed by environmental pollution are two major issues that the modern world must address. In the past, different forms of energy such as electricity, heat, and cooling often existed as single stand-alone systems [
The energy hub (EH) is a concept that was introduced in [
The study in [
With the emergence and development of energy networks and EHs, renewable energy and energy storage technologies are two additional solutions that have been extensively studied. Traditional energy distribution through an electricity network has been shown to have greater energy efficiency and operation when these two solutions are applied [
Previous studies have shown that cooling, heat, and power systems for residential areas can be used as standard EH models [
Major contributions of this study are as follows.
1) This study analyzes the problems of optimizing operation costs in the micro-energy network (MEN) with EHs and integrating renewable energies in ESSs and distribution networks by applying mixed-integer nonlinear programming.
2) This study presents the way of achieving optimal operations of the MEN in four operation cases by considering various operation parameters and energy losses in both electricity and natural gas distribution networks.
3) This study assesses the impact of energy sources and energy storage equipment on MEN performance by measuring system energy consumption and emissions across four operation cases.
The EH can be considered as a grand network node that incorporates different forms of energy. The demands for electricity, heat, and cooling loads can be fulfilled by using conversion and storage devices. This study presents four operation cases to evaluate how energy sources and storage systems affect an MEN. The MEN assessed in this study is based on a 10 kV power distribution network with six load nodes. Solar, wind, and ESSs are considered in the case studies.
The remainder of this paper is organized as follows. The concept, structure, and mathematical descriptions of the EH model are described in Section II. Section III discusses energy balance and the MEN system structure in relation to electricity and natural gas networks. Section IV formulates the optimal operation problem for an MEN with the objective function of minimizing energy costs and reducing greenhouse emissions derived from the use of natural gas. Section V describes how we solve the optimal operation problem using general algebraic modeling system (GAMS). The MEN optimization problem is considered with four configurations that simultaneously meet the demands for cooling, heat, and power with six additional load nodes. Finally, Section VI presents the conclusion and discusses the future work.
The concept and structure of the EH were previously described in [

Fig. 1 Topology of EH.
An MEN extends the concept of a microgrid and can be considered as a small-scale regional power distribution network with an innovative topology and configuration. It is suitable for households in urban areas, which has some advantages. From a power-supply perspective, MEN can promote new and renewable energy applications, particularly solar applications (e.g., PV and solar thermal), wind energy combined with natural gas, electricity, and other forms of energy. In terms of energy-service supply, an MEN can reduce energy costs and emissions, and cut down on additional loads while simultaneously accommodating the diversity of loads. Regarding the energy network structure, the coordinated operation of electricity and natural gas networks can promote diversified and sustainable development of energy technologies. With these advantages, this study proposes an MEN model formed by multiple EHs to link electricity and natural gas networks, as shown in

Fig. 2 Structure of MEN model based on EHs.
A power distribution network can be expressed through the active power and reactive power basic nodes, which are given as:
(1) |
(2) |
where and are the voltages of the buses and j, respectively; nE is the number of buses in the electricity network; and are the active and reactive power generations, respectively; and are the active and reactive load demands, respectively; and are the conductance and susceptance between buses and j, respectively; and is the phase angle between buses and j.
Pipeline gas flow can be calculated from the pressure at both pipe ends and the pipe parameters given in [
(3) |
where and are the natural gas flow and gas pipe coefficient from bus i to bus j, respectively; pi and pj are the gas pressures at buses i and j, respectively; and is the direction of flow in the gas pipeline. Its specific values are determined by:
(4) |
Because of the decrease in gas pressure along with its transmission, it is necessary to allocate compressors to ensure sufficient gas pressure. Two types of compressors exist: gas-fired and electric. In this study, we assume all compressors are air compressors that consume natural gas. Natural gas flow can be described by:
(5) |
where is the constant of the compressor; and is the pressure drop from bus i to bus j.
Natural gas flow can be calculated based on the natural gas flow in the pipeline and gross heat value GHV of the natural gas as:
(6) |
where and are the capacities of natural gas and pressure pumps from bus i to bus j, respectively.
Then, the gas equilibrium equation can be written as:
(7) |
where is the capacity of natural gas flowing into bus i; is the natural gas capacity attained at bus i; and nG is the number of nodes in the natural gas network.
This study proposes a structured MEN model, as shown in

Fig. 3 Structured MEN model.
An MEN is formed based on a microgrid with a voltage of 10 kV that meets the demands for electricity, heat, and cooling of six additional loads. Natural gas and electricity networks are connected through EHs. Within the framework of the research model, applications from solar energy (can be exploited in the form of electricity through solar thermal and electricity via PV systems), WP, and electricity, heat, cooling storage systems are equipped in EHs. The proposed model demonstrates how to meet diverse energy needs of loads using electricity (from distribution systems, solar panels, and wind turbines) and heat (from an SHE network). EESs play the role of charging and discharging according to the optimal operation mode of the MEN.
The structure of each EH in the MEN greatly influences the optimal operation of the MEN. The structures of EHs must ensure the connection between the input energy elements (from the power distribution network, natural gas network, solar and WP) and the output energy elements including electricity, heat, and cooling.
A general EH structure consists of 12 devices, as shown in

Fig. 4 General EH model.
The MEN consists of six EHs corresponding to . The parameters in the energy equation of the EH at the
(8) |
(9) |
(10) |
Cooling demands are met simultaneously by two AC and ACh devices, which are supplied by the electricity and natural gas networks according to (10). Binary numbers (1,0) are used to indicate the availability of all devices in the six EHs. Based on the demand for energy consumption, the structures of all six EHs are listed in
1) Objective Function
The optimal operation of MEN is to minimize total energy payment cost EPC, which includes the cost of purchasing electricity and natural gas and the total cost of greenhouse emissions generated from MT and GB devices in a day (24 hours).
(11) |
where and are the total energy of electricity and natural gas purchased from an external system at time t, respectively (considering total power loss and total natural gas loss during the energy transmission); and are the emission factors of MT and GB, respectively; cem is the emission cost; represents the emissions of CO2, SO2, and NO2, respectively; and and are the purchased power of natural gas from the network for MT and GB at time t, respectively.
2) Constraints
1) Transmission network constraints
In Section III, we introduce a mathematical model of energy balance for natural gas and electricity network using (1)-(7). In addition to the constraints previously described, other constraints of the system include the limitations to active power, reactive power, and node voltages in the electricity network and limitations to pressure and compression ratios in the natural gas network, which are represented as:
(12) |
(13) |
(14) |
(15) |
(16) |
where superscripts max and min represent the maximum and minimum values of the corresponding variables, respectively; and is the compression ratio of the compressor.
2) Constraints of EHs
The constraints of energy balance for EH n is introduced by (8)-(10). Other constraints include (17), which represents constraints of the input power of electricity and natural gas in EH n (), and (18), which represents conversion limits for AC, MT, ACh, and EHe by state variables , ,, and , respectively, at time t of EH n.
(17) |
(18) |
3) ESS
The ESS in the MEN uses three types of storage devices, i.e., ES, TS, and CS, at EH n. Basically, the principles of their charging/discharging effects are the same. When every EH at time t is considered, the ESS is investigated through the charging/discharging process and the corresponding energy loss factor , where X represents ES, TS, or CS. Formulae (19) and (20) represent the energy stored and storage capacities of the storage devices, respectively.
(19) |
(20) |
(21) |
(22) |
(23) |
where and are the energy stored and energy loss of the storage devices, respectively.
The energy balance constraint in the calculation cycle hours is expressed as:
(24) |
4) Energy prices
Energy prices, including electricity and natural gas prices, are the determinants of the objective function in (4). Natural gas prices are constant [
Four operation cases for the MEN, as listed in
In all the cases, the demands for electricity, heat, and cooling of six additional loads are the same. In Case 1, because only one form of energy is used, electricity is required at the node n to convert power from heat to electricity and to cooling through EHe and AC. The structure of the EH n is shown in

Fig. 5 Structure of EH n when using only electricity.
Then, the input power of EH n is calculated by:
(25) |
The parameters and values for the MEN shown in
1) Demand for Electricity, Heat, and Cooling
As described in Section IV-A, the MEN is designed for use in residential urban areas where the demands for electricity, heat, and cooling energy are clearly distinguished. Load parameters, including the demands for electricity, heat, and cooling, are based on the studies in [

Fig. 6 Demands for electricity, heat, cooling energy in a day. (a) Electricity. (b) Heat. (c) Cooling.
2) Energy Price
Real-time energy prices are presented in

Fig. 7 Prices of electricity and natural gas.
3) Network Parameters
The parameters of the electricity and natural gas networks (the line type is YJV22-3*240) are presented in
To simplify computations, the output energies of PV, WP, and SHE are assumed to be the same due to the fact that wind and solar power generations are considered in all four operation cases, as shown in

Fig. 8 Output energy of PV, SHE, and WP in a day.
The programming language of GAMS (solver MINOS) [
Case 1 assumes that the MEN only operates with the structure as a microgrid. Based on (24), the additional load nodes are assumed to be equipped with EHs (the structure of which is shown in

Fig. 9 Input energy of electricity and natural gas networks in four cases. (a) Case 1. (b) Case 2. (c) Case 3. (d) Case 4.
The optimal operation of the MEN, including the microgrid and natural gas network (regardless of ESSs and renewable energies involved), is considered in Case 2. The input energy of the network is calculated as shown in
The MEN structure in Case 3 considers the addition of solar (PV generation and SHE) and WP sources. The input energy is illustrated in
Case 4 assesses the simultaneous impacts of solar, wind, and ESSs on the optimal performance of the MEN.

Fig. 10 Charging and discharging energies of ESS. (a) ES. (b) HS. (c) CS.
In addition, the location of EH 6 is the furthest from the source. Therefore, not only the ES but also the HS equipped at EH 6 operates only at a particular time.
Based on the previous calculation results, some primary analysis can be performed.
The combined use of many EHs to form the MEN structure (solar, wind, and ESS) responds appropriately and flexibly to the diversity of additional loads. The optimal calculation results show that the optimal model can respond properly to the changes in electricity costs and other energy prices. Simultaneously, the model allows for the adjustment of renewable energies over time and season.
Comparisons of four cases for the MEN clarify the role and impact of ESS, solar, and wind on the performance of the model in terms of reductions in total operation costs as shown in
Additional investment costs for natural gas networks, PV, SHE, and wind turbine equipment are quite high but can be offset by the operation cost savings of the MEN. The results demonstrate that the proposed MEN model can significantly contribute to future research of multi-energy systems that integrate renewable energies and ESSs.
Using the EH model in an MEN, this study proposes a methodology for the optimal operation and coordination between the electricity network and natural gas network that integrate solar, wind, and ESS. Each EH is considered as a node in the combined energy system to perform energy conversion.
This study analyzes the energy consumption of the whole system and emission amounts through four cases to assess the impacts of DERs and ESS on the performance of the MEN. Compared with the traditional thermal-power operation, the proposed model yields higher overall benefits and provides a theoretical basis for optimizing the operation of the systems with different forms of energy.
The cas study results show that the structures of the EHs used in the energy network have a significant effect on operation efficiency. Further research should be conducted on the optimal operation strategy for the different EHs and the optimization of the EH structures in the entire energy network. In addition, when investigating the effects of distributed energies, including solar, wind, and new energy storage devices, researchers should consider optimizing the locations and capacities of those devices for optimal network performance and efficiency improvement.
References
M. Geidl, G. Koeppel, P. Favre-Perrod et al., “Energy hubs for the future,” IEEE Power and Energy Magazine, vol. 5, no. 1, pp. 24-30, Jan. 2007. [Baidu Scholar]
T. Krause, G. Andersson, K. F. Hlich et al., “Multiple-energy carriers: modeling of production, delivery, and consumption,” Proceedings of the IEEE, vol. 99, no. 1, pp. 15-27, Jan. 2011. [Baidu Scholar]
X. Xu, H. Jia, D. Wang et al., “Hierarchical energy management system for multi-source multi-product microgrids,” Renewable Energy, vol. 78, pp. 621-630, Jun. 2015. [Baidu Scholar]
Y. Zha, T. Zhang, Z. Huang et al., “Analysis of Energy Internet key technologies,” Scientia Sinica Informationis, vol. 44, no. 6, pp. 702-713, Jun. 2014. [Baidu Scholar]
Q. Sun, R. Han, H. Zhang et al., “A multiagent-based consensus algorithm for distributed coordinated control of distributed generators in the Energy Internet,” IEEE Transactions on Smart Grid, vol. 6, no. 6, pp. 3006-3019, Nov. 2015. [Baidu Scholar]
Y. Ma, X. Wang, X. Zhou et al., “An overview of Energy Internet,” in Proceeding of IEEE 2016 Chinese Control and Decision Conference, Yinchuan, China, May 2016, pp. 6212-6215. [Baidu Scholar]
T. Ha, Y. Zhang, V. V. Thang et al., “Energy hub modeling to minimize residential energy costs considering solar energy and BESS,” Journal of Modern Power Systems and Clean Energy, vol. 5, no. 3, pp. 389-399, Apr. 2017. [Baidu Scholar]
T. T. Ha, Y. Zhang, J. Hao et al., “Optimal operation of energy hub with different structures for minimal energy usage cost,” in Proceedings of the 2017 IEEE International Conference on Power and Renewable Energy, Chengdu, China, May 2017, pp. 31-36. [Baidu Scholar]
M. Geidl and G. Andersson, “A modeling and optimization approach for multiple energy carrier power flow,” in Proceedings of IEEE Russia Power Tech, St. Petersburg, Russia, Jun. 2005, pp. 1-7. [Baidu Scholar]
M. Geidl. (2017, May). Integrated modeling and optimization of multi-carrier energy systems. [Online]. Available: https://www.research-collection.ethz.ch/bitstream/handle/20.500.11850/123494/eth-29506-02.pdf [Baidu Scholar]
M. Arnold, R. Negenborn, G. Andersson et al., “Distributed predictive control for energy hub coordination in coupled electricity and gas networks,” International Journal of Control Automation and Systems, vol. 42, pp. 235-273, Nov. 2010. [Baidu Scholar]
M. Moeini-Aghtaie, A. Abbaspour, M. Fotuhi-Firuzabad et al., “A decomposed solution to multiple-energy carriers optimal power flow,” IEEE Transactions on Power Systems, vol. 29, no. 2, pp. 707-716, Mar. 2014. [Baidu Scholar]
M. Geidl and G. Andersson, “Optimal power flow of multiple energy carriers,” IEEE Transactions on Power Systems, vol. 22, no. 1, pp. 145-155, Feb. 2007. [Baidu Scholar]
M. Moeini-Aghtaie, P. Dehghanian, M. Fotuhi-Firuzabad et al., “Multiagent genetic algorithm: an online probabilistic view on economic dispatch of energy hubs constrained by wind availability,” IEEE Transactions on Sustainable Energy, vol. 5, no. 2, pp. 699-708, Jan. 2013. [Baidu Scholar]
M. Moeini-Aghtaie, A. Abbaspour, M. Fotuhi-Firuzabad et al., “A decomposed solution to multiple-energy carriers optimal power flow,” IEEE Transactions on Power Systems, vol. 29, no. 2, pp. 707-716, Mar. 2014 [Baidu Scholar]
B. Lu and M. Shahidehpour, “Short-term scheduling of battery in a grid-connected PV/battery system,” IEEE Transactions on Power Systems, vol. 20 no. 2, pp. 1053-1061, May 2005. [Baidu Scholar]
M. Rastegar, M. Fotuhi-Firuzabad, and M. Lehtonen, “Home load management in a residential energy hub,” Electric Power Systems Research, vol. 119, pp. 322-328, Feb. 2015. [Baidu Scholar]
M. C. Bozchalui, S. A. Hashmi, H. Hassen et al., “Optimal operation of residential energy hubs in smart grid,” IEEE Transactions on Smart Grid, vol. 3, no. 4, pp. 1755-1766, Oct. 2012. [Baidu Scholar]
X. Shen, Y. Han, S. Zhu et al., “Comprehensive power-supply planning for active distribution system considering cooling, heating and power load balance,” Journal of Modern Power Systems and Clean Energy, vol. 3, no. 4, pp. 485-493, Nov. 2015. [Baidu Scholar]
M. Liu, Y. Shi, and F. Fang, “Combined cooling, heating and power systems,” Renewable and Sustainable Energy Reviews, vol. 35, pp. 1-22, Jul. 2014. [Baidu Scholar]
A. Maroufmashat, A. Elkamel, M. Fowler et al., “Modeling and optimization of a network of energy hubs to improve economic and emission considerations,” Energy, vol. 93, pp. 2546-2558, Dec. 2015. [Baidu Scholar]
Y. Li, Z. Li, F. Wen et al., “Privacy-preserving optimal dispatch for an integrated power distribution and natural gas system in networked energy hubs,” IEEE Transactions on Sustainable Energy, vol. 10, no. 4, pp. 2028-2038, Oct. 2019. [Baidu Scholar]
Y. Huang, W. Zhang, K. Yang et al., “An optimal scheduling method for multi-energy hub systems using game theory,” Energies, vol. 12, no. 12, pp. 2270-2290, Jun. 2019. [Baidu Scholar]
H. R. Gholinejad, A. Loni, J. Adabi et al., “A hierarchical energy management system for multiple home energy hubs in neighborhood grids,” Journal of Building Engineering, vol. 28, pp. 1-10, Mar. 2020. [Baidu Scholar]
M. Jadidbonab, B. Mohammadi-Ivatloo, M. Marzband et al., “Short-term self-scheduling of virtual energy hub plant within thermal energy market,” IEEE Transactions on Industrial Electronics, vol. 6, no. 4, pp. 3124-3136, Apr. 2021. [Baidu Scholar]
M. Nazari-Heris, M. A. Mirzaei, and B. Mohammadi-Ivatloo, “Economic-environmental effect of power to gas technology in coupled electricity and gas systems with price-responsive shiftable loads,” Journal of Cleaner Production, vol. 244, pp. 1-9, Jan. 2020. [Baidu Scholar]
M. Marzband, F. Azarinejadian, M. Savaghebi et al., “Smart transactive energy framework in grid-connected multiple home microgrids under independent and coalition operations,” Renewable Energy, vol. 126, pp. 95-106, Oct. 2018. [Baidu Scholar]
R. Das, Y. Wang, G. Putrus et al., “Multi-objective techno-economic-environmental optimization of electric vehicle for energy services,” Applied Energy, vol. 257, pp. 1-9, Oct. 2019. [Baidu Scholar]
M. A. Mirzaei, A. S. Yazdankhah, B. Mohammadi-Ivatloo et al., “Integration of emerging resources in IGDT-based robust scheduling of combined power and natural gas systems considering flexible ramping products,” Energy, vol. 189, pp. 1-8, Dec. 2019. [Baidu Scholar]
M. Mohammadi, Y. Noorollahi, B. Mohammadi-Ivatloo et al., “Energy hub: from a model to a concept – a review,” Renewable and Sustainable Energy Reviews, vol. 80, pp. 1512-1527, Dec. 2017. [Baidu Scholar]
S. Pazouki, M. R. Haghifam, and A. Moser, “Uncertainty modeling in optimal operation of energy hub in presence of wind, storage and demand response,” International Journal of Electrical Power & Energy Systems, vol. 61, pp. 335-345, Oct. 2014. [Baidu Scholar]
A. Parisio, C. D. Vecchio, and A. Vaccaro, “A robust optimization approach to energy hub management,” International Journal of Electrical Power & Energy Systems, vol. 42, no. 1, pp. 98-104, Nov. 2012. [Baidu Scholar]
A. Martinez-Mares and C. R. Fuerte-Esquivel, “A unified gas and power flow analysis in natural gas and electricity coupled networks,” IEEE Transactions on Power Systems, vol. 27, no. 4, pp. 2156-2166, Nov. 2012. [Baidu Scholar]
S. Mokhatab, W. A. Poe, and J. G. Speight, Handbook of Natural Gas Transmission and Processing. Burlington: Elsevier, 2012. [Baidu Scholar]
Maryland Public Service Commission. (2016, Oct.). Gas commodity fact sheet for Maryland Public Service Commission. [Online]. Available: http://www.psc.state.md.us/gas/ [Baidu Scholar]
T. T. Ha, Y. Zhang, J. Hao et al., “Energy hub’s structural and operational optimization for minimal energy usage costs in energy systems,” Energies, vol. 11, no. 4, p. 707, Mar. 2018. [Baidu Scholar]
Maryland Public Service Commission. (2016, Oct.). Home electricity price. [Online]. Available: http://www.opc.state.md.us/ConsumerCorner/Electricity.aspx [Baidu Scholar]
A. Brooke, D. Kendrick, and A. Meeraus, GAMS: a User’s Guide. Washington DC: AMS Development Corporation, 2003. [Baidu Scholar]