Industrial, commercial, and residential consumers are connected to energy networks, such as electricity, natural gas, and district heating or cooling [
1]. Therefore, integrating these networks with each other and using the merits of each will increase the efficiency and reliability of the system, as well as optimal performance [
2,
3]. In recent years, a general framework has been proposed that combines various energy carriers and performs conversion and storage in them in order to provide the required load on the consumer side; it is called an EH [
4,
5]. The input to an EH is various types of energy, and the output is another form of energy demanded by different local or remote end-users [
6]. An EH model can include CHP equipment, distributed generation, renewable energy sources, electrical and heating energy storage and boilers, and active loads. On the other hand, simultaneous and coordinated planning of all energy equipment at the point of consumption can improve network performance and system flexibility in cooperation with various types of electric, gas, and heating networks [
7,
8].
Various studies have been conducted in the field of EH. In [
9], the EH had various sources including cogeneration units, steam boilers, renewable resources, electric chillers, and absorption chillers, as well as electric, heating, and cooling energy storage devices in order to improve the flexibility of EHs. The results showed that, unlike the balance-based methods that do not guarantee the optimality of the response, in [
10], the operation of a multi-carrier local distribution system in the case of islands that were separated from the main grid due to faults or important incidents was achieved. This network consisted of three EHs, each of which, while planning to optimally meet their demand, could minimize operating costs by exchanging with other EHs. In [
11], a framework for the optimal operation of interconnected EHs to reduce costs, provide the energy needed by consumers, reduce greenhouse gas emissions, and strengthen the interaction of electricity and gas networks was presented using electricity to gas converters. In [
12], a decentralized energy management framework was developed based on the interaction that enables coordination between EHs. In this research, to improve the economic performance of the integrated EH system, a trading platform was created to facilitate the self-organized trade of the integrated EH system. In [
13], a two-level optimization framework was created to determine the optimal strategy of interaction between EHs and the distribution company, in which the total cost of operating the distribution network was minimized according to the limitations of the network at the upper level, and the total cost of each EH connected to the distribution network was minimized at the lower level. In [
14], it was also investigated that the grid-connected EH system is a key model for the optimal modeling of multi-carrier energy systems. However, the direct calculation of the operating mode of this model is very time-consuming and challenging due to its nonlinear and multidimensional functions. To solve the above problem in the proposed method of this research, methods were adopted to approximate one-dimensional and multi-dimensional linear singularities for linearizing the non-convex functions of natural gas transmission, generator costs, and compressor performance. In [
15], a new framework for the optimal management of EHs was presented. On this basis, each EH manages its production resources to plan the supply of demand to reduce the cost and emission of pollutants. In [
16], it was reported that residential and commercial buildings with different consumption patterns could be controlled together and the distributed generation (DG) resources available in each of these hubs could be used to cover the lack of capacity in another hub. In [
17], the linear approximation method was used to simplify the model of an interconnected system, including three EHs, to mitigate the computational costs. Moreover, a group of residential houses were exploited as an interconnected EH system with the aim of reducing the daily costs and in terms of the cost function of the battery life with the particle swarm optimization (PSO) method. The study in [
18] provided a two-level optimization model of optimal planning. An active distribution system that consisted of DGs and several EHs could supply its surplus electricity to the market and was used daily. In [
19], the planning of an integrated energy system with the participation of electricity, gas, and several smart EHs along with the consumer was presented using the hierarchical game method. In [
20], an optimal planning model based on reliability was presented in order to connect EHs employing multi-carrier energy infrastructures. In [
21], the planning of energy production in a smart energy network consisting of five examples of EHs to minimize the cost of energy supply and greenhouse gas emissions was investigated, and in [
22], a hierarchical energy management system for minimizing the cost and peak shaving of the upstream network was presented in the local network consisting of different residential EHs. In [
23], an EH optimization method was presented in the demand response energy market. The planning model for the performance of energy sources and energy storage by satisfying the constraints of the electricity and natural gas network considering the responsive load was presented using the water wave optimization (WWO) algorithm. In [
24], EH system planning using wind and photovoltaic sources with optimal interaction between different sources to supply different system loads was investigated using quantum particle swarm optimization (QPSO) to minimize the total system cost. In [
25], energy planning in a storage-based residential system was presented based on a multi-criteria optimization method with the participation of the demand side for minimizing production costs and maximizing the level of consumer satisfaction using the shuffled frog leaping algorithm (SFLA). In [
26], the optimization of the EH to minimize operating costs, carbon emission, and energy efficiency based on a multi-objective optimization model was presented using VlseKriterijumska Optimizacija I Kompromisno Resenje (VIKOR). In [
27], EH management was developed with the participation of electricity, gas, and heating networks with the aim of minimizing the cost of operation in the presence of energy and storage resources using an ant-lion optimizer and krill herd optimization (ALO-KHO) algorithm.
The review of the literature makes the necessity of an economic approach to the planning of interconnected EHs even more clear. In addition, economic analysis and evaluation based on the market model for interconnected EHs can be very effective in maximizing their profitability in the day-ahead electricity, gas, and heating markets, which have not been well addressed in previous studies. Furthermore, considering that optimal and coordinated planning of EH equipment improves network performance and system flexibility in cooperation with various types of electric, gas, and heating networks, the importance of using a powerful solver is felt. The key model for optimal modeling of multi-carrier EH systems is very time-consuming and challenging due to its nonlinear and multi-dimensional functions. To solve the problem mentioned in the literature, methods to approximate one-dimensional and multi-dimensional linear singularities to linearize the non-convex functions of natural gas transfer, generator cost, and compressor performance have been adopted, while using meta-heuristic algorithms, the linearization is not needed. The use of intelligent meta-heuristic algorithms based on iteration with high computing and optimization power can provide the conditions for achieving the maximum benefit of the EH by accurately determining the optimal capacity of EH equipment and, as a result, optimal and coordinated planning.
The present study investigates the optimal planning of the EH to achieve the maximum benefit of energy generation in the day-ahead market in partnership with EGHNs. In this study, the size of EH equipment, including photovoltaic and solar renewable energy sources, CHP, boilers, energy storage, and electric vehicles, is determined using a new and improved Fick’s law algorithm. According to NFL theory [
28], a meta-heuristic algorithm may work well in solving some optimization problems, but the same algorithm cannot achieve the optimal solution in solving other problems. On the other hand, improving the performance of meta-heuristic algorithms by using special techniques can prevent them from premature convergence and strengthen their ability to quickly reach the global optimal solution. For this reason, in this article, a new meta-heuristic algorithm is adopted to find a solution to the EH scheduling problem. The conventional FLA [
29] imitates Fick’s diffusion law. Traditional FLA has problems in the form of an imbalance between exploration and exploitation, as well as being caught in premature convergence. In this study, to improve the performance of the traditional FLA against these problems, Rosenbrock’s direct rotational (RDR) method [
30] is used. In this study, the performance of the suggested IFLA to solve the optimal and coordinated EH scheduling problem with the aim of profit maximization is compared with the conventional FLA, PSO, and MRFO methods. The changes in daily power and profit for different energies for electricity, heating, and gas markets, the impact of different load levels, and also the exit rate of equipment on energy profit are evaluated.