Abstract
This research presents optimum operation strategies for multi-energy systems as combined cooling, heat, and power systems with the approach of electricity supply priority regime. A grid with energy hub structure including electrical, thermal, and cooling hubs is explored. Accordingly, an energy hub structure integrated with storages and renewable resources is designed. The mathematical model of the operation system for the presented triple generation micro-grid is considered for energy flow to the energy grid. Considering the limitations of the storage system and the performance of the equipment as well as electricity and gas line, a dynamic optimum operation model is prepared on the basis of mixed integer linear programming and is solved in general algebraic modeling system optimization software so as to minimize energy supply costs. For the model verification, different scenarios are developed in a residential building for a typical summer day so that the renewable resources and storages are fed into the system gradually. According to the findings, as each element is included in the micro-energy grid, its operational parameters, viz. the cost of electricity, gas, and pollutant emissions, are improved remarkably. Scenario I includes a combined cooling, heat, and power system, Scenario II is supplemented with renewable solar and wind energy, and Scenario III includes electrical, heat, and cold storages in addition to renewable sources and combined cooling, heat, and power system. Results reveal a decrease in total productivity cost by 12.2% in Scenario II versus Scenario I and 10.9% in Scenario III versus Scenario II.
Keywords
Introduction
Recently, an avid interest has been provoked about energy security and environmental conservation throughout the world, mainly in the face of depleting fossil fuel reserves and environmental pollution. At present, most conventional energy infrastructures, like natural gas and electrical networks, are programmed and exploited separately and in isolation. This impairs the efficiency markedly and incurs high operating costs. Di Somma et al. formulate a stochastic mixed integer linear programming (MILP) problem to find the optimal bidding strategies in the day-ahead market in order to maximize the expected profit. The numerical results show that the method is efficient in finding the bidding curves in the day-ahead market. 1 Similarly, Duić and Rosen 2 discuss the optimization of energy structures through integrating renewable resources in order to help to improve energy productivity and develop energy systems. As the micro-grids and smart technologies develop, more use is made of the renewable energies that make the grids cleaner, more efficient, and more reliable. However, consumers may feel the need for the heating, cooling, and gas fuel in addition to electrical requirements, too. Traditional energy systems supply these different energy forms separately, which is a source of poor efficiency and costly operation. Recently, relying upon gas consumption, combined heat and power (CHP) resources have been developed as a highly efficient technology with a rapid pace. Combined cooling, heat, and power (CCHP) systems (including heat exchangers, boilers, and cooling equipment), when integrated into the networks, reduce the emission of carbon and other pollutants and, at the same time, help to supply very highly efficient and cost-effective thermal, cooling, and electrical loads. 3 The efficiency of these systems is generally reported to range from 60 to 80%. This excellent efficiency is by itself a motive to grasp the opportunity to employ them in order to enhance the productivity and enable environmental and economic benefits. 4 CHPs are a link between electrical and gas systems, tying diverse energy carriers to one another. With the integration of electrical, natural gas, and other systems, power systems have been replaced with new integrated systems, and various new forms of energy systems like multi-energy systems have been introduced. 5 Mancarella 6 implemented this concept within smart multi-energy systems. To have a look at the development of energy system, an energy network has been lately introduced in that a highly efficient power network is integrated with renewable resources. The mechanism of energy distribution by this network is analogous to how data are distributed in a computer system. The development of integrated energy systems is an approach to developing power grids. These integrated energy systems are composed of at least two sub-systems, i.e. electricity, cooling, heating, natural gas, etc. Thus, different forms of energy are coupled and are in exchange with one another, so the whole energy system is analyzed for the coordination of different energy carriers, higher efficiency, and cost saving. 7
Recently, the concept hub or ring has been suggested and received extensive feedbacks. 8 An energy hub is a unit where diverse energy carriers can be converted and stored. This system typically uses electricity and natural gas as its inputs, and its outputs are various services like the delivery of electricity, heat, and/or cooling. 9 Extensive research has focused on energy hub including modeling, optimization of energy structures, and optimization of multiple energy carrier systems. The concept of energy hub as the interface in multi-carrier energy systems has motivated researchers to concentrate on multi-carrier energy systems with the purpose of achieving more efficient performance. 10 Similarly, Bahrami and Safe 11 present a structure for the optimization of systems and modeling composed of multiple carriers and formulate a nonlinear programming model for optimizing energy flow based on energy hub concept. Rastegar and Fotuhi-Firuzabad 12 design a residential energy hub model for a house and explore the operation mode of the system. Bozchalui et al. 13 explore the optimization models of residential energy hubs. It should be noted that the load curves for each hub system are the consumers’ preferences and demanded welfare which influence the estimation of demand and load of hub system. Rastegar et al. 14 present another residential hub system for a smart house including hybrid vehicles and CHP. El-Zonkoly et al. propose a two-layer modified firefly based on an optimization algorithm to specify the optimum CHP sizes in an energy hub. Their proposed algorithm was, then, applied to a hospital. 15 Wang et al. discuss an interval optimization algorithm based on an energy hub in a micro-grid. They indicate that the proposed method is functional for the application of economic and renewable energy dispatch of the micro-grid. 16 But, the cited literature has merely focused on residential and small hub systems. Consequently, these models lack the resilience required for the perfect simulation of a real system.
Ippolito et al. 17 presented a new device for the control of and connection to a supply utility grid of combined renewable energy sources based generators and electric storage systems. Fu et al. demonstrate that the operating nature of micro-grids drastically differs from conventional distribution systems for several reasons, including energy storage (ES), renewable sources, high penetration of distributed generations, and power electronics-based components. The micro-grid architecture and components, various control techniques, and protection design for micro-grid systems are also discussed in detail. 18 Emodi et al. 19 argue that at the demand side, consumers may incline to consume electricity more when prices are lower and temperatures are higher in summer and this poses a huge potential to reduce peak loads in summer. Vatankhah Barenji et al. 20 discuss an off-grid hybrid energy generation system to minimize the cost of energy generation. Graditi et al. present an optimal power dispatch problem on a 24 h basis for distribution systems with distributed energy resources that also includes directly controlled shiftable loads. In this paper, a new formulation of shiftable loads is employed. 21
ES is becoming a key element of achieving the goals of energy sustainability including energy and cost savings. 22 Eshraghi et al. implemented a demand response program with both time-of-use (TOU) and real-time-price pricing policies on an energy micro-grid including renewable resources and ESs. They report about 28% lower operational costs and pollutant emission. 23 Poullikkas reviews different types of batteries used for large-scale electricity storages. In particular, he presents the current operational large-scale battery ES systems around the world with their applications. 24 Graditi et al. present a study to evaluate the economic viability of using a battery ES system for load shifting applications at a consumer level, where TOU electricity tariffs are applied. 25 Marzband et al. 26 study the concept of home micro-grids. They adopt the game theory and formulate different players with competing objectives. El-Zonkoly 27 discusses that the proposed algorithm is to minimize the overall operational cost including consumed electrical/gas energy cost, generated energy cost, energy loss cost, and cost of unserved energy. Warren 28 demonstrates that demand-side policy plays an increasingly influential role as a complement to low carbon emission on the supply side in the revolution to a more environmentally sustainable energy system. Chen et al. discuss an optimization method proposed for a CCHP in a smart grid. It can be used for electricity on an hourly demand. 29 On the other hand, micro-grid has an important role in energy generation in residential buildings; for example, the micro-energy grid (MEG) system is used in 30–40% of the buildings in Europe and the UK. 30 The main advantage of an MEG versus other energy grids lies in the fact that they are generally composed of various forms of energy, as well as cooling, heating, and electric power. In fact, an MEG is a development notion of energy grids. 31
To summarize, the following shortcomings can be identified in the existing literature with respect to energy hubs in a MEG:
The lack of the application of ES devices for optimum operation of the CCHP systems as in literature.10,14,15,19,21,26,28,29 The lack of the application of an MEG modeling approach with the help of the energy hub model as in literature.1,3,4,7,9,13,16,18–20,22,24–26,28–39,47 The lack of the application of renewable resources for optimum operation of the CCHP micro-grid as in literature.3–5,8,9,11,22,28,29,32,33 The lack of the modeling of energy system with the help of MILP method to accomplish an optimum answer with global optimum type as in literature.2,3,5,7–12,14–22,24–33,35,37
A look at the shortcomings and gaps in past studies (as reviewed above) and the analysis of the results prove the significance of the present research. The study seeks to evaluate the impact of adding (applying) ESs to an MEG in the presence of renewable resources. To give more resilience to the operation of the existing MEG, the structure of an electrical energy, heating, and cooling hub is implemented with electrical, heating, and cooling storages and wind and solar renewable resources. This will result in a higher efficiency of energy production and lower pollutant emission and operational costs in spite of all constraints of an energy grid. The problem is solved by the MILP method. Even when the problem is solved iteratively, one single answer is yielded by this method—a globally optimal answer that is generated rapidly with high responsiveness in real time.
The major contributions of this paper can be summarized as follows:
The application of three types of storage devices, including electrical, heating, and cooling, which is a real energy conversion model based on time series that improves the efficiency of the MEG. The application of a multiple energy hub model in designing the studied micro-grid that enhances the operational flexibility of the MEG. The application of renewable resources along with the ESs that increases electricity sale to the grid and reduces electricity purchase from the grid. The application of MILP method that yields a globally optimal definitive, single answer with high speed in the form of real time.
System description and assumptions
Assumptions
The present research mainly considers electricity supply priority regime. Also, the electricity selling prices from/to the grid are assumed to be equal. The existing resources are supposed to have certainty in delivering the power, and discussion on uncertainty and contingency issues are ignored. Also, the simulated model was evaluated by energy demand in a typical summer day for a residential building located in the north of Tehran as a case study.
System description
Architecture of an energy hub integrated with CCHP and a multi-energy hub
A review of the literature reveals that CCHP systems do not typically include renewable resources and storages simultaneously. However, to improve the flexibility and reliability, the present study designs an energy hub system that includes storages, renewable resources, and CCHP, and to illustrate the inherent structure of the energy hub, a model is presented that is composed of an electricity hub, a heat hub, and a cooling hub, reflecting the exchange and power balance. As is depicted in Figure 1, the architecture of the presented energy hub system is designed on the basis of CCHP and other carriers are composed of five sections.

The architecture of a micro-grid with small hub systems and CCHP. PV: photovoltaic; WT: wind turbine.
Energy resources including natural gas, photovoltaic (PV), wind turbine (WT), and electricity supplied from the grid by a transformer.
Energy conversion including gas turbine, boiler, electric chiller, heat exchanger, etc.
Energy accumulator/distributor in which electricity, cooling, and heat are accumulated and then, it is aggregated and distributed by electric, cooling, and thermal hubs, and the power balance is preserved at all moments.
ESs including electric, cooling, and heat storages.
Energy delivery including power, gas, and heat distribution networks.
The proposed energy hub (Figure 1) clearly depicts the relationships between the components and displays energy flow processes separately.
Methodology
Energy hub system modeling
Energy hub is composed of multiple energy exchangers and ESs. The model of ESs is formulated in the time series in terms of power transfer. Electricity tariff expressed in kW h is shown for different hours in Figure 3. The tariff of natural gas is 0.35 USD/unit and the penalty for CO2 emission is 0.031 USD/kg.
Conversion model of natural gas
A portion of the procured natural gas is flown into the gas turbine for the cogeneration of electricity and heat and the remaining is burned in the gas boiler for heat generation
In the model converting natural gas to electricity, Pge is burned by the gas turbine to generate electricity, Pgt. (see Appendix) It can be observed in Figure 1 that
In the natural gas to heat conversion model, the natural gas, Pgh, is converted to heat by the gas boiler, while Pge can produce heat and electricity concurrently in the gas turbine. (see Appendix) Then
The total output power of CCHP can be related to the input power by equation (5)
Conversion model of electrical energy
In electrical energy equation between the hub and power grid using a transformer, the energy hub uses a transformer to exchange the electricity with the power grid. When there is an electricity shortage, the hub will purchase it from the power grid, but when there is an electricity surplus in the hub, it can sell it to the power grid (see Appendix).
In electricity to cooling conversion model, the electrical chiller consumes electricity to supply its cooling load. The model of this instrument is well illustrated below
Energy conversion model of ESs
ESs are crucial parts of an MEG and are capable of recognizing energy transfer at different time intervals.
33
Storages store the surplus or cheap energy and deliver it to the grid when there is an energy shortage or it is expensive. Inasmuch hybrid vehicles play the role of load and power input source for the energy hub, then this device can be regarded as a battery. This description has been applied in the operational optimization of the residential areas.
40
The ESs include not only electrical storages like batteries but also heat storages and cooling storages like ice storage tanks. The discharging and charging process is the same for all storages and all of them have a set of capacity limitations and technical constraints.
34
Accordingly, the following overall dynamic model describes the electrical, thermal, and cooling storages as a real model of energy transfer in time series
The subscript x shows the energy type, which can be electrical, thermal, or cooling. Equation (8) describes energy variations in ES over the period Δt before and after charging and discharging. Also,
Equations (9) and (10) imply that the discharge and charge rates will not exceed the maximum possible rate. The binary variable
Optimum operation model
This section describes the optimum model of operation on the basis of the hub model described in the last section. This is a real model for optimum distribution or operation in the MEG.
Objective function
The optimum operation objective of an MEG is to minimize the daily operation costs that include the cost of gas purchase (Mpg), the cost of electricity purchase (Mpe), and the cost of carbon emission (Mce)
In electricity purchase cost, Mpe is calculated by
In gas purchase cost, Mpg, as expressed in equation (15), the purchased gas is divided into two parts:
Constraints and limitations
The constraints pertaining to the objective function include the energy balance constraint in small hub systems, the electricity technical constraints, heat and cooling storages, the constraints on the performance of all instruments of the hub, and the constraints on the grid between hub and gas line network and electricity. These are described below.
The electrical power balance in the electrical hub is obtained from
Thermal heat balance in the heating hub is calculated by
Cooling energy balance in the cooling hub is obtained from
It is considered as another constraint that all instruments should operate within their upper and lower limits. The mathematical model of optimum operation described above is an MILP problem. To avoid the simultaneous occurrence of the discharging and charging procedure in ES devices, binary variables (0–1) are included. The optimum distribution model is resolved with a C + Simplex (Cplex) solver in the general algebraic modeling system (GAMS) software, which is popular in solving mixed integer linear problems.
Model validation
Since there is a lack of an experimental set, it was impossible to validate the model by comparing simulation output with the behavior of a real system. In addition, given the models in the reviewed literature, no precise system was found that was simulated and properly confirmed. Thus, a combination of appropriate techniques was used for validation and verification (V&V). Validation aims to confirm that the conceptual model can be a real system. On the other hand, verification aims to confirm that it can be ensured that the computer program can be run correctly and the simulation by the program can be considered as expected. The V&V process has widely been used for simulation models in literature.41–45 The present study used some practical techniques such as model verification and assessment and its performance evaluation.35,45 The simulation output was examined by considering the following points:
It should be ensured that the primary assumption of the conceptual model and the equation used in the model are scientifically accepted and valid. It should be checked whether the model logic is correct. This is performed by following different specific behaviors during simulation. The present operational study uses the diagrams of electricity/heat/cool generation by each element for a 24 h interval in order for better and more tangible observation of the verification process. The experiment should show that similar relationships of the model occur in the real world. Sensitivity analysis (parameter variable) reveals the impacts of the variation of input and interval value on the behavior of the model and the output values. In this study, a model has been designed to validate the optimization model by optimizing for three scenarios, each with input variables differing from the other scenarios.
This section first presents the results of V&V for the energy flow model (system level) and the component level (sub-model level). Then, the optimization algorithm is validated by observing the model behavior for the proposed scenarios. For systematic V&V, the followings should be considered:
Component model (sub-model) ○ if the model output for each component (sub-model) is according to the theory (conceptual model) as expected. Energy flow model (system level) ○ if power, heating, and cooling are in equilibrium at each time step. ○ if the operation of each individual component has been defined as per the operational strategy. ○ if the system operation has been defined as per the operational strategy. Optimization algorithm ○ if the optimization algorithm response is sensitive and valid to the systematic variations of the input variables.
Scenario description
For V&V purpose, a test case was defined and the simulation output behavior was examined for a typical day quantitatively and qualitatively. The case study is on the data for energy demand of a residential building in the north of Tehran. As such, to find out the impacts of renewable energy resources and the storages on the optimal operation of an MEG, three case studies were designed as presented in Table 1. The ✗ sign shows that the hub model depicted in Figure 1 does not include the equipment or demand response program, but the ✓ sign shows that the hub in the studied state uses the equipment of demand response program.
Scenarios of micro-grid operation.
CCHP: combined cooling, heat, and power; ES: energy storage; PV: photovoltaic; TOU: time of use; WT: wind turbine.
A V&V technique for optimization algorithms is sensitivity analysis. The model should supply valid and reasonable solutions when it encounters systematic variation of input variables, and the variations should be in the direction that is expected from a real system. Three optimization designs have been defined to test the optimization algorithm. The specifications of the three optimization scenarios and the reference system are presented in Table 1. The results of operation cost saving in each scenario versus its previous scenario, which is reasonable and expected, are consistent with the results of optimization by the software simulation. This implies the validity of the modeling and simulation method and the model designed in the present study.
More precisely, the hub stated in Scenario I includes none of the storages and renewable resources and uses just a single CCHP system. The studied hub of Scenario II is equipped with CCHP and renewable resources (wind and solar energy as shown in Figure 2) but has no storages. Finally, Scenario III uses not only CCHP, PV, and WT simultaneously but also the electric, heat and cooling storages. As can be observed in Table 1, Tables 2 and 3 display the parameters of storage devices and instruments, respectively. Scenarios I–III apply TOU pricing plan whose values can be found in Figure 3.

Output electric power of PV and WT. PV: photovoltaic; WT: wind turbine.

Furthermore, Figure 4 displays the demand for electric, heat and cooling loads for the MEG in a residential building on a typical summer day in the north of Tehran so as to express the consumers’ behavior for the simulation. 23 As well, it is supposed that the loads, outputs of instruments, and gas and electricity tariffs are fixed in each time interval.

Electric, heat, and cooling loads profile of a residential building on a typical summer day in the north of Tehran for model verification. 23
Results of simulation
After performing the simulations for the three scenarios, the results can be drawn separately. In each individual scenario, the amounts of electric, heat and cooling powers were recorded.
Scenario I
The output electrical power of transformer whose values are presented in Table 4 is fed into the MEG. As was mentioned, the electricity in Scenario I is generated only by the CCHP unit and power grid and is supplied to the MEG.
The decision variables of Scenarios I, II, and III.
As is evident in Table 4, due to the higher price of electricity at hours 08:00 to 22:00, the operator orders the CCHP unit to assume the main responsibility for the supply of electricity. The fifth column of Table 4 presents the output electrical power of this unit. The load unsupplied by this unit is purchased from the power grid.
The output thermal power of the gas boiler is displayed in the eighth column of Table 4. As expected, given the high efficiency of the boiler in heat supply and its lower costs, this equipment is in priority for the supply of thermal load. Therefore, the gas boiler first supplies the thermal load and then if required, the load shortage is supplied from the waste heat energy of the CCHP unit. Since the CCHP unit operates at 08:00 to 22:00, it can deliver thermal power during these hours.
Now, it is dealt how cooling power of the MEG is supplied. This is performed by the compression chiller. The input electrical power of this chiller for the supply of cooling load is presented in the 11th column of Table 4. The compression chillers are known as one of the best equipment in the cold industry due to their relatively high efficiency. The use of Scenario I will entail an operational cost of $21,996.210. The cost of electricity purchase in this scenario is $4838.04, the cost of gas purchase is $16,575.632, and the cost of carbon emission penalty is $581.538.
Scenario II
This scenario utilizes renewable energy generation resources effectively and dynamically in addition to the use of the CCHP unit. Since our objective is to operate the MEG, the investment costs are not considered. So, these resources can be considered free resources on the horizon of the system operation. Here again, the representation trend of the powers is followed. The output power of the power transformer that flows into the MEG is presented in the third column of Table 4.
As the figures in the third column of Table 4 shows, the power sale is significantly higher in this scenario than Scenario I. This by itself suggests the great benefits of the use of renewable resources. The output electrical power of the CCHP is shown in the sixth column of Table 4. To avoid the high costs due to higher prices of electricity in certain hours, the CCHP unit is taken into use to do its main responsibility, i.e. electricity generation, in order to reduce the MEG operational costs. The output thermal power of the gas boiler is presented in the ninth column of Table 4. The excellent efficiency of this equipment in heat generation makes it the main unit of thermal power generation. The cooling load is supplied by a powerful, highly efficient compression chiller. To represent the trend of cooling load supply, the input electrical power to the compression chiller is presented in the 12th column of Table 4.
A look at the trend of supplying the electrical, thermal, and cooling loads and the comparison of the results reveal the favorable impact of the use of renewable energy resources (WT, solar cells, etc.) on the operation of the MEG. The cost of electricity purchase is $2222.440, the cost of gas purchase is $16,576.632, and the cost of carbon emission penalty is $494.246. The application of Scenario II will incur an operational cost of $19,293.317.
Scenario III
In this section, the electrical, thermal, and cooling storages are included in the MEG to improve the operational costs by optimum charging and discharging. The output electrical power of the power transformer is shown in the fourth column of Table 4. The improved chance of electricity sale is evident in the figures of this column.
The other electrical power supplier of the MEG is the CCHP unit whose electrical power delivery is presented in the seventh column of Table 4. Due to higher costs of electricity at hours 08:00–22:00, the gas turbine unit is ordered to generate as much as possible in order to minimize the operational costs. The unsupplied surplus load at these hours is purchased from the grid. The figures pertaining to the supply of thermal load by the invaluable gas boiler unit are shown in the 10th column of Table 4. This unit has the main responsibility for the heat supply due to its excellent efficiency. The unmet surplus thermal power is supplied by the CCHP unit when it is operating. The 13th column of Table 4 presents the input electrical power of the compression chiller. These figures show that the cooling load is optimally supplied by the compression chiller. This chiller is capable of supplying cooling power with a certain coefficient of performance because of its high efficiency.
It is better to present the modes of storages as well as their charging and discharging status (electrical, thermal, and cooling storages) and to examine them individually. This begins with the electrical storage and shows its energy at each hour as well as its charging and discharging status. The discharged and charged electrical power and the electrical energy existing in the electrical storage are depicted in Figure 5 so as to clarify how the operator of the MEG operates the storages.

The energy stored in the electrical storage and the discharged and charged power at each hour including Ees (kW h), Pes,d (kW), and Pes,c (kW).
It is evident that the electrical storage is charged at hours when there is surplus electricity or the electricity is cheap, but it delivers its electricity to the MEG at hours when the electricity is expensive so as to both minimize the costs and improve the system efficiency remarkably.
The charged and discharged thermal power of the thermal storage, as well as the amount of stored energy and the storage mode, are illustrated in Figure 6 which demonstrates its usefulness to the grid operation.

The energy stored in thermal storage and the discharged and charged power at each hour including Ehs (kW h), Phs,d (kW), and Phs,c (kW).
Figure 6 displays that at peak hours, the heat is discharged to the MEG. Here, this storage stores the heat energy at hours when the generated heat exceeds the load supply level according to the thermal load profile. Then, it discharges this heat into the grid when the MEG fails to meet the load power demand.
The abovementioned trend is repeated for the cooling storage. Figure 7 shows the discharged and charged cooling power and the cooling energy stored in the cooling storage.

The energy stored in the cooling storage and the amount of discharged and charged power at each hour including Ecs (kW h), Pcs,d (kW), and Pcs,c (kW).
If Scenario III is exploited, the operational cost will be $17,184.632. In this scenario, not only no cost is paid to the purchase of electricity from the public grid but it also entails an income of $554.812 for the sale of electricity to the public grid. The cost of gas purchase is $17,268.124 and carbon emission penalty is $471.320 in this scenario. This scenario uses thermal, cooling, and electrical ESs, but maintenance and personnel costs are ignored. These costs are recommended to be addressed in future research.
Discussion
The integrated representation of input electrical power of the MEG under Scenarios I, II, and III in Figure 8 reveals that the amount of electricity purchased from the grid is decreased and the amount of electricity sold to the grid is increased remarkably when the renewable resources are added to the combined system of electricity, heat, and cooling generation in Scenario II as compared to Scenario I and when the ES system is added in Scenario III as compared to Scenario II. This enables reducing the total operational cost of the MEG.

Input electrical power of the MEG during the day under three studied scenarios, Pin (kW).
According to Figure 9, gas turbine is capable of generating more electricity in Scenario III than in the other scenarios during day because power can be stored in and retrieved from electric storage system. The operational cost is improved remarkably by purchasing less electricity and selling more electricity to the power grid, specifically at hours when electricity cost is higher as per the tariffs shown in Figure 3.

Output electrical power of the gas turbine, during the day under three studied scenarios, Pgt (kW).
It is observed in Figure 10 that at hours 08:00–22:00, the gas boiler is operated in none of the scenarios due to the supply of heat load by the gas turbine, which results in saving of fuel consumption. Also, the application of the thermal storage in Scenario III enabled lower use of the gas boiler as compared to Scenarios I and II.

Output thermal power of the gas boiler, during the day under three studied scenarios, Hgh (kW).
According to Figure 11 that shows the input electrical power of the compression chiller, the input electrical power does not differ between Scenarios I and II, but it is much lower in Scenario III than Scenario II at 12:00 and 19:00 due to the use of the cooling storage system. It is known that the electricity price is maximum at these hours (Figure 3). It is evident in Figure 7 that the power discharging rate of the cooling storage maximizes at these hours, i.e. 12:00 and 19:00, implying that the operator uses the cooling storage at these hours to supply the cooling load due to the high price of the electricity and its high operational costs so as to operate the electrical chiller to a lesser extent and to reduce electricity consumption at peak hours. Therefore, the gas boiler is not operated when the heat load is supplied by the CCHP system, which results in saving of fuel consumption. Also, the application of the thermal storage enables less use of the gas boiler as compared to its nonuse.

Input electrical power of the compression chiller in a typical day under three studied scenarios, Pec (kW).
Therefore, the input electrical power of the compression chiller is reduced due to the exploitation of the cooling storage system.
A look at the combined results of the simulation of the MEG under three different scenarios demonstrates the improvement in gas and electricity costs and carbon emission cost and the reduction of operational cost of the whole system in the three scenarios (Table 5).
Costs of operation ($).
Conclusion
The present paper defined an energy hub-based MEG. All hub sub-systems were described and their individual effects were studied on the MEG. Furthermore, an optimum operation model was defined and implemented for the MEG with the objective of minimizing the daily costs, for which three scenarios were defined. Scenario I was related to the operation of a simple MEG with different energy carriers. It was implemented to minimize the operational cost and to maximize system efficiency. Scenario II addressed the introduction of renewable resources to the MEG presented in Scenario I. The results showed the decrease in costs and pollution emission at 2702.893 units and the increase in system efficiency as compared to Scenario I. In Scenario III, ESs were applied including electrical, thermal, and cooling storages. The charging and discharging of these storages at suitable times allowed reducing the operational cost by 2108.685 units and increasing system efficiency versus Scenario II. These were its major contributions. The application of a thermal, cooling, and electrical storage unit, PV, and wind modules during the operational period made the system more economical because of avoiding electricity and fuel purchase. For the system with the lowest operational cost (Scenario III), a cost of emission saving of 18.9% was obtained while total cost saving of 21.8% was accomplished in Scenario III as compared to Scenario I during the lifetime of the project. When compared to Scenario I as the reference scenario, in Scenario III although the cost of gas purchase was increased by 4.1%, the cost of electricity purchase from the grid was not only cut completely but also the system had an income of 554.812 units from the sale of electricity to the public grid.
The analysis of these three scenarios clearly shows the positive impact of each element, ESs and renewable energy resources added to the combined system of electricity, heat and cooling generation on the system operation. The results show that application of such systems in a residential building can be very attractive from an economic, energy, and environmental perspective. The performance of the polygeneration system is the highest in Scenario III and the lowest in Scenario I. This model can be generalized to all days of the year and all building types including larger and more complex systems. Future studies can focus on the planning for the collaboration of combined electricity and heat generation units with a demand response program in the presence of virtual power plant structure, the use of different combined micro-grids of electricity, heat, and cooling considering the transmission constraints, the execution of other control strategies of power in disperse production units, or on the dynamic investigation of the MEG. Also, future works can address the inclusion of further constraints to the operation of the system such as the inclusion of maintenance and personnel costs to operate the micro-grid equipment, the investigation of different ESs and various power plants such as solar plant, and the investigation of this subject matter for longer time intervals, e.g. one year, and more diverse climatic conditions.
Footnotes
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors received no financial support for the research, authorship, and/or publication of this article.
