4.1. Problem Data
The proposed scheme in this section is presented based on the multi-energy system in
Figure 1, which has an IEEE 33-bus electrical distribution network [
59], Madumvej 15-node thermal network [
60], and a 4-node gas network [
6]. The base power for electrical, thermal, and gas networks is 1 MVA, 1 MW, and 1 MW, respectively. The base voltage, temperature, and pressure are 12.66 kV, 373.15 K, and 10 bar, respectively. Slack bus in electrical, heating, and gas networks is 1, 0, and 1, respectively. The lower and upper limits of these parameters are 0.9 and 1.1 per unit. The data of the mentioned networks, including lines, substations, and load values, are reported in [
6,
59,
60]. The active and reactive peak load of the electrical network are 3.715 MW and 2.3 MVAr, respectively, and the peak thermal load for the thermal network is equal to 3 MW [
59,
60]. The gas network is assumed to provide the required gas energy only for boilers and CHPs in EHs; therefore, the passive gas load value is considered as zero. Hourly load data in each network are obtained by multiplying the peak load with a load coefficient curve [
61,
62,
63,
64,
65,
66,
67,
68,
69,
70], where this curve has been presented in [
6]. The energy price for different networks has been taken from [
11], where the electricity price for the periods 1:00–7:00, 8:00–16:00 and 23:00–24:00, and 17:00–22:00 is equal to 17.6
$/MWh, 26.4
$/MWh, and 33
$/MWh, respectively. It has a value of 15
$/MWh for hours 5:00–15:00 and 22
$/MWh for other hours in the thermal network. It also has a value of 18
$/MWh for hours 5:00–22:00 and 12
$/MWh for other hours in the gas networks. The reserve price in each network is equal to the energy price in that network. Based on [
24],
KQ is equal to 0.08. The system in
Figure 1 has eight EHs. EH location in the different networks, peak load, and the elements in each EH are reported in
Table 2. According to this table, RES in EHs 1–6 are photovoltaic plants (PV) and wind turbines (WT). The RES peak active power is equal to 0.2 MW and 0.25MW, respectively. The active power generation daily profile of these sources is obtained by multiplying the active peak power by a daily curve of their generated power rate taken from [
3]. Each of these sources is also able to control their reactive power between −0.1 MVAr and 0.1 MVAr. Regarding DRP, it is assumed that the consumers in EH participate in the DRP scheme at a rate of 40%. EHs 1–6 have two types of EES, static and mobile. The static EES is a battery (B), and the mobile type is related to the aggregation of EVs. In each of these aforementioned EHs, it is assumed that there are 80 electric vehicles. The number of connected EVs to the EH per hour is equal to the multiplication of the total number of EVs in the EH and a daily curve of their penetration rate [
3]. The curve has been taken from [
3], and EVs characteristics such as charge/discharge rate, charge capacity, consumption energy, and other items are reported in [
3,
16]. A battery with a capacity of 1.5 MWh with 90% charging and discharging efficiency has been used in the mentioned EHs. Its charge and discharge rate is equal to 0.8 MW, and the initial and minimum stored energy is 0.2 MW and 0.2 MW, respectively [
6]. The battery charger can control reactive power between −0.2 MVAr and 0.2 MVAr. There are similar specifications for TES, except that its charge and discharge efficiency is 80%. In EHs 5–8, a boiler with a capacity (maximum thermal power) of 0.2 MW with an efficiency of 80% has been used. In each of these EHs, the CHP has a maximum (minimum) active, reactive, and thermal power equal to 0.5 MW, 0.2 MVAr, and 0.3 MW (0 MW, 0.2 MVAr, and 0 MW), respectively. Electricity, loss, and thermal efficiency in CHP are 40%, 8%, and 40%, respectively [
2]. Finally, the standard deviation of uncertainty parameters is assumed to be equal to 10%, and the flexibility tolerance (Δ
F) for achieving flexible EHs is equal to 0.05 per unit.
4.2. Results
The proposed model was simulated in accordance with the data reported in the previous section in the GAMS optimization software environment [
71]. The numerical results obtained from different cases are reported below.
- (A)
The convergence evaluation of the proposed problem-solving
In this section, the convergence result of the proposed problem using Evolutionary Algorithms (EA) such as Genetic Algorithm (GA) [
72], Teaching–Learning Based Optimization (TLBO) [
73], Grey Wolf Optimization (GWO) [
74], Crew Search Algorithm (CSA) [
75], and classical algorithms [
71] such as CONOPT, IPOPT, LGO, MINOS, and OQNLP is reported. It is noteworthy that, to solve the Evolutionary Algorithm problem, the proposed model has been simulated in the MATLAB software environment. However, it is coded in accordance with the mathematical solver in GAMS software. In solving the problem with EA, problem decision variables such as
PC,
QC,
HB,
QR,
PCH,
PDCH,
HCH,
HDCH,
PD,
HD,
GD, and
QE are defined by EA according to (22), (24)–(27), (29), and (30). Therefore, the value of dependent variables, including
PEH,
QEH,
HEH,
GEH,
EREH,
HREH,
GREH,
HC,
GC,, and
GB are calculated using (16)–(21) and (23), and the value of dependent variables
PES,
QES,
HHS,
GGS,
PEL,
QEL,
HHL,
GGL,
V,
T,
σ,and
ξ, are calculated using (2)–(9). The backward–forward load flow method for radial-network and Newton–Raphson method for ring-network is used to solve the constraints (2)–(9). The dependent variables
ρ and
μ are then calculated using (54) and (57). In the following, the fitness function value is evaluated. The fitness function is equal to the sum of the main objective function, (1), and the sum of the penalty function of constraints (10)–(14),
HC limitation in (22), (28), and (31)–(33). In other words, the penalty function methods [
13] have been used to estimate the mentioned constraints. The penalty function for the limitation of
a ≤
b and constraint of
a =
b are expressed as
δ·max(0,
a − b) and
α·(
b − a), respectively, where
δ ≥
0 and
α ∈ (−∞, +∞) represent the Lagrangian multipliers [
11], the values of which are determined by the EA as a decision variable. The solution process continues to the point of convergence. In EA, it is generally assumed that the convergence point is reached after the maximum number of iterations,
Imax. The population size and
Imax have been considered to be equal to 80 and 4000, respectively. Other regulation parameters of these algorithms have been selected based on [
22]. Finally, to evaluate statistical indexes in problem-solving, the problem is solved 30 times by each EA and classical mathematical algorithm. Therefore, the standard deviation of the final response is calculated.
The proposed problem convergence results with EAs and classical mathematic algorithms are reported in
Table 3. Based on this table, it is clear that among the classical mathematical algorithms, LGO and OQNLP were not able to obtain the optimal and feasible solution for the proposed method. Among the other classical mathematical algorithms, the lowest EEL and the highest profit of EHs have been obtained by IPOPT. Thus, this algorithm has the lowest convergence iteration and computational time compared to CONOPT and MINOS; in other words, its convergence speed is high. Among EAs, CSA has been able to obtain the lowest EELs and the highest EHs profit with high convergence rates. By comparing EAs and classical mathematical algorithms, it can be seen that the final response standard deviation of the problem is non-zero by EAs, while it is zero for mathematical algorithms. It means that for each problem-solving iteration, a single optimal solution is obtained for a classical mathematical algorithm; however, this is not the case in EAs. In terms of this issue, it can be expressed that the CSA has the more desired condition compared to other EAs, thanks to the lower standard deviation of its response. Finally, it should be noted that the proposed problem, (52)–(58), is non-convex non-linear (due to power flow equations). Thus, the solvers obtain an optimal local solution, being the best solver for the algorithm that obtains the most optimal solution. Therefore, among EAs and classical mathematical algorithms, only IPOPT has such conditions. In addition to these conditions, it also has the highest convergence speed and zero response standard deviation. It is noted that the operation problem generally has a time step of less than an hour; thus, the low computational time is of particular importance. This is also the case with IPOPT due to its high convergence speed.
- (B)
Evaluation of EH performance
In
Figure 2 and
Figure 3, the expected daily curve of EHs’ active, reactive, thermal, and gas power and its elements have been depicted for a flexibility tolerance of 0.05 per unit. According to
Figure 2a, the daily curve of RESs’ generation power rate in [
3], and the data in
Section 1,
Section 2,
Section 3 and
Section 4, it is clear that RESs, such as PVs and WTs, inject their maximum active power into EHs. For example, based on [
3], the PV generation power rate at hour 12:00 is equal to 1. Its generation active power peak is also equal to 0.2 per unit per EH. Because 6 hubs include PV, then PVs inject reactive power of 1.2 per unit into EHs at 12:00. CHPs also inject their maximum active power generation into EHs, which means 2 per unit (4 hubs including CHP × 0.5 per unit CHP active power capacity). According to
Section 1,
Section 2,
Section 3 and
Section 4, the thermal energy price is higher than the gas energy price in all operation hours, and the electricity price is higher than the gas price except for 5:00–7:00. Therefore, to achieve more profit for EHs based on (15), the maximum active power is necessary to be injected into the EHs by CHP. In addition, the batteries and electrical DRPs operate in charge or consumption mode in off-peak hours (1:00–7:00) and mid-peak hours (8:00–16:00 and 23:00–24:00). However, they operate in discharge mode and inject power into the EH in peak hours (17:00–22:00) when the electricity price is the highest. This issue increases the EHs’ profit in the electrical energy market. EVs receive high energy from EHs in off-peak hours, which corresponds to low electric energy prices. In other words, EVs receive their necessary energy from EHs for travel in the next few days. They also perform charging operations from 12:00 to 16:00 until they inject their stored energy at this time into the EHs at peak hours (17:00–22:00). This performance results in EHs’ profit improvement. It is noteworthy that, according to
Figure 2a, in all operation hours, RESs inject active power. Therefore, it is necessary to observe the flexibility limitations in all operation hours. Hence, the electrical flexibility sources (i.e., EESs, DRPs, and CHPs) must be turned on at all simulation hours to control active power. Finally, the EHs’ injected active power is calculated through relation (16), which has a time curve, as shown in
Figure 2a. According to this figure, due to the charging operation of EESs and DRPs, EHs operate as electrical energy consumers in the period 1:00–7:00. However, in the other periods, they operate as an electrical energy generator in DA energy markets. The expected daily curve of EHs’ reactive power and its elements are presented in
Figure 2b. According to this figure, CHPs, RESs, and battery chargers inject constant reactive power to EHs during all operation hours, which, according to the data in
Section 1,
Section 2,
Section 3 and
Section 4, is equal to the maximum reactive power of the mentioned elements. However, since the number of EVs at different hours are different based on their penetration rate curve in [
3], then the daily curve of EVs’ reactive power injection into EHs is as shown in
Figure 2b. Thus, EVs inject high reactive power into EHs at 1:00–6:00 and 17:00–00:00, because a large number of EVs are connected to the EHs during these hours. However, their reactive power injection is low in other hours due to the low number of EVs in EHs. EHs’ reactive power can be calculated through Equation (17), which has a curve as shown in
Figure 2b. According to this figure, EHs behave as generators of reactive power during all operating hours. Therefore, high income can be achieved for them in the DA reactive power market. According to
Figure 3a, CHPs and boilers always inject constant thermal power into the EHs, which is equal to the maximum thermal power, according to
Section 1,
Section 2,
Section 3 and
Section 4. This performance is because the thermal energy price is higher than the gas price at all simulation hours, which causes the increase in EHs’ profit in the energy market. TESs and thermal DRPs operate in the charger and energy consumption mode at periods of cheap thermal energy (1:00–4:00 and 16:00–24:00), while in the thermal peak-hour (5:00–15:00), they operate in the mode of thermal energy generation or discharge, corresponding to an expensive thermal energy price. This issue results in EHs’ profit improving in the energy market based on (15). Finally, according to
Figure 3a, EHs behave as thermal energy demand at 1:00–4:00 and 16:00–24:00, and they are energy producers at other times. Furthermore, boilers, TESs, and electrical DRPs are required to be turned on at all hours to maintain the EHs’ flexibility in the thermal section because CHPs inject thermal power into EHs at all hours. In addition, the expected daily curve of EHs’ gas power is depicted in
Figure 3b. CHPs and boilers are gas energy consumers. According to
Figure 2a and
Figure 3a, the daily curve of CHPs’ active power and boiler thermal power are flat; therefore, the gas power daily curve of these sources is flat based on Equations (21) and (23) and
Figure 3b. Finally, the daily curve of EHs’ gas power is flat, so they behave as gas energy consumers.
The expected daily curve of EHs’ reserve power in electrical and thermal networks is depicted in
Figure 4, for Δ
F = 0.05 p.u. According to this figure, and in comparison with
Figure 2a and
Figure 3a, it is clear that EHs can participate with part of the active power generated by sources, storage devices, and responsive loads into the reserve regulation market at hours that EHs behave as generators. However, during hours 1:00–7:00, electrical energy generators can only supply part of the load of EHs and EES. Therefore, EHs are energy consumers and are not able to participate in the reserve regulation. This occurs in the thermal network for hours 1:00–4:00 and 16:00–24:00. It is noted that since no gas power generation has been considered in
Section 1,
Section 2,
Section 3 and
Section 4, therefore, EHs cannot participate in the gas reserve regulation. Finally, the EHs’ profit curve in DA energy, reactive power, and reserve regulation markets as a function of tolerance flexibility (Δ
F) has been depicted in
Figure 5. Based on this figure, it is clear that by increasing Δ
F, the EHs’ profit increases in the energy and reserve market; however, their profit in the reactive power market is constant. By increasing Δ
F, the importance of the flexibility limitation in the proposed problem decreases. Therefore, ESSs and DRPs try to operate in discharge mode for fewer hours. For example, EVs, batteries, and electrical DRPs try to be turned off in mid-peak hours (8:00–16:00 and 23:00–00:00), which have a higher electrical energy price than off-peak hours. In other words, they only operate in the charge mode during the hours of low electricity prices. This increases the profits of EHs in the energy markets. ESSs and DRPs’ energy consumption reduction in some hours also causes an increase in the reactive power generation capacity of EHs. They can then inject more reserve power into the reserve regulation market. Therefore, EHs’ profit in the reserve regulation market increases with increasing Δ
F. Finally, this type of resource performance of flexibility increases the EHs’ profit in all mentioned markets by increasing Δ
F, as shown in
Figure 5d. This effect is sensible until a flexibility tolerance of 0.4 is reached. After this, there is a saturation effect and EHs’ profit is constant.
- (C)
Assessing energy networks’ operation status
In this section, the following case studies have been analyzed to evaluate the feasibility of the proposed model in the operation of energy networks.
Cases:
Power flow analysis;
Proposed scheme includes only EHs 1–6 that are contained only RESs;
Case 2 adding electrical DRP;
Case 3 adding EESs;
Case 4 adding CHP;
Case 5 adding thermal DRP;
Case 6 adding a boiler;
Case 7 adding TES;
Proposed scheme includes EHs 1–8 considering all sources, storages, and DRPs.
The results of this analysis are reported in
Table 4 and
Table 5 for different values of flexibility tolerance (Δ
F). The expected energy losses in electrical, gas, and thermal energy networks for case studies 1–9 are presented in
Table 4. Due to the release problem from the limitation of the flexibility (Δ
F = ∞), based on
Table 4, it is clear that the total EEL in mentioned networks in the load flow study (case 1) is equal to 7.48 MWh (4.42 + 3.06 + 0). However, in the presence of RES (case 2), DRPs (case 3), and EESs (case 4), the total EEL decreases. This is because in these case studies, EHs 1–6 inject active and reactive power into the consumption areas of the energy network compared to the first case. This reduces the power consumption demand of the mentioned networks from the upstream network and, consequently, reduces energy losses in the electricity network and the total EEL compared to the first case. In case 4, where RESs, electrical DRPs, and EESs have been located in EHs 1–6, the total EEL decreased to 6.13 MWh (3.07 + 3.06 + 0) compared to case 1. In case 5, by adding CHP to EHs 1–6, the losses in the electricity and thermal networks decrease, while the energy losses increase in the gas network, due to the addition of energy consumer (CHP), compared to case 4. However, the total EEL in this case study (5.84) is lower compared to case 4. With the addition of DRP in case 6, the energy losses in thermal networks decrease, compared to case 5. With the addition of a boiler in case 7, compared to case 6, the losses in thermal networks reduce, but they increase in the gas network because the boiler is a thermal energy generator and gas energy consumer. In case 8, with the addition of TES into case 7, only the energy losses in thermal networks reduce compared to case 7. Finally, considering the optimal power management of EHs 1–8, the proposed optimization scheme has been able to decrease the total EEL to 28.5%, compared to case 1. Furthermore, considering the flexibility limitation, in (33), the first, second, and fifth cases are not able to achieve a feasible solution because there is no source of flexibility in the first and second cases, and, regarding the fifth case, there is no flexible thermal source besides CHP. However, in other case studies, energy losses in electrical and thermal networks increase with decreasing Δ
F. According to
Figure 2a and
Figure 3a, it is clear that in the case of flexibility in EHs, ESSs and DRPs are required to operate in charge mode at hours of medium energy price, which increases losses in the mentioned networks. However, in situations where EHs’ flexibility is not considered, ESSs and DRPs operate only in charge mode at hours of low energy price.
In
Table 5, the maximum voltage drop (MVD), maximum temperature drop (MTD), maximum pressure drop (MPD), maximum overvoltage (MOV), maximum overpressure (MOP), and maximum overtemperature (MOT) have been reported for various case studies. According to this table, RESs, DRPs, and EESs are only effective in reducing MVD; however, CHP reduces MVD and MTD. As shown in
Figure 2a,b and
Figure 3a, CHP injects active, reactive, and thermal power into the electrical and thermal networks. Thus, this issue has caused overvoltage and overheating in the mentioned networks; nevertheless, according to
Table 5, their value is less than the allowable value, i.e., 0.1 (1.1 − 1) per unit. CHP is also a gas consumer; therefore, in this situation, MPD increases compared to cases 1–4. In addition, thermal DRP, boilers, and TES cause MTD reduction. Besides this issue, the boiler causes an increase in MOT and MPD, but their values are lower than their maximum allowable value, i.e., 0.1 per unit. Finally, the proposed scheme for case 9, compared to the first case, was able to improve or decrease MVD and MTD by approximately 39% and 27.8%, respectively. However, these conditions are obtained by increasing MOV, MOT, and MPD by 0.04, 0.06, and 0.047 per unit, respectively. However, these values are below their maximum limits. It is noted that EHs’ flexibility improvement in cases 3–4 and 6–8 corresponds to increases in MVD and MTD and decreases in MOV and MOT because in these conditions, the energy consumption hours of ESSs and DRPs increase compared to the case Δ
F = ∞, according to
Figure 2a and
Figure 3a.