Next Article in Journal
A Comprehensive Analysis of the Impact of an Increase in User Devices on the Long-Term Energy Efficiency of 5G Networks
Previous Article in Journal
Enhancing Smart City Energy Efficiency with Ground Source Heat Pump Systems and Integrated Energy Piles
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Stochastic Scheduling of Grid-Connected Smart Energy Hubs Participating in the Day-Ahead Energy, Reactive Power and Reserve Markets

by
Sina Parhoudeh
1,*,
Pablo Eguía López
1 and
Abdollah Kavousi Fard
2
1
Department of Electrical Engineering, Faculty of Engineering of Bilbao, University of the Basque Country (UPV/EHU), Plaza Ingeniero Torres Quevedo, 1, 48013 Bilbao, Spain
2
Department of Electrical and Electronics Engineering, Shiraz University of Technology, Shiraz 7155713876, Iran
*
Author to whom correspondence should be addressed.
Smart Cities 2024, 7(6), 3587-3615; https://doi.org/10.3390/smartcities7060139
Submission received: 19 August 2024 / Revised: 5 November 2024 / Accepted: 19 November 2024 / Published: 25 November 2024

Abstract

:

Highlights

What are the main findings?
  • The presented smart energy hub (EH) operation enhances the economic and flexibility status of EHs while improving energy network performance.
  • Utilization of the bi-level optimization is able to improve energy losses, voltage and temperature drops significantly.
What are the implications of the main findings?
  • The integration of energy hubs with flexible operation models enhances the economic and operational performance of energy networks, making them more resilient and efficient.
  • The proposed scheme can be a valuable tool for energy market participants, providing a strategic advantage in maximizing profits while maintaining optimal grid performance under uncertainty.

Abstract

An Energy Hub (EH) is able to manage several types of energy at the same time by aggregating resources, storage devices, and responsive loads. Therefore, it is expected that energy efficiency is high. Hence, the optimal operation for smart EHs in energy (gas, electrical, and thermal) networks is discussed in this study based on their contribution to reactive power, the energy market, and day-ahead reservations. This scheme is presented in a smart bi-level optimization. In the upper level, the equations of linearized optimal power flow are used to minimize energy losses in the presented energy networks. The lower level considers the maximization of profits of smart EHs in the mentioned markets; it is based on the EH operational model of resource, responsive load, and storage devices, as well as the formulation of the reserve and flexible constraints. This paper uses the “Karush–Kuhn–Tucker” method for single-level model extraction. An “unscented transformation technique” is then applied in order to model the uncertainties associated with energy price, renewable energy, load, and energy consumed in mobile storage. The participation of hubs in the mentioned markets to improve their economic status and the technical status of the networks, modeling of the flexibility of the hubs, and using the unscented transformation method to model uncertainties are the innovations of this article. Finally, the extracted numerical results indicate the proposed model’s potential to improve EHs’ economic and flexibility status and the energy network’s performance compared to their load flow studies. As a result, energy loss, voltage, and temperature drop as operation indices are improved by 14.5%, 48.2%, and 46.2% compared to the load flow studies, in the case of 100% EH flexibility and their optimal economic situation extraction.

1. Introduction

1.1. Motivation

An energy hub (EH) is an aggregator and coordinating framework for resources, storage, and responsive loads, along with demand response programs (DRPs), which are able to operate in both power transmission and energy storage modes [1]. An EH manages different energy sources, including thermal, electrical, and gas, simultaneously, so it has suitable ability to improve energy efficiency [1]. Furthermore, EHs are typically equipped with environmentally friendly elements, including renewable energy sources (RESs) and non-RESs, such as combined heat and power (CHP), which make them an appropriate solution for minimizing the environmental impacts associated with uncontrolled fossil fuel consumption [2]. However, this causes them not to have control over the resources in their produced energy, which will further reduce the flexibility of EHs [3]. For example, thanks to low operating costs and low emissions, RESs generally inject an active power equal to their maximum output active power into the EH in proportion to the weather conditions. As a result of uncertainty in active power, the operation results of day-ahead (DA) and real-time (RT) are not the same. Thus, RT operation might not achieve the balance between production and consumption for EHs with only RESs, which is considered low flexibility for an EH. [3]. Similar problems arise with CHP’s thermal power, as it is reliant on active power and cannot be controlled independently. This issue may result in a low level of flexibility in the thermal section [4]. Storage and responsive loads have been proposed as energy-controllable elements to improve EH flexibility [3,4]. On the other hand, an EH is able to transmit power and store energy. Therefore, it is predicted that by participating in the energy market and ancillary services, it can achieve optimal financial benefits for resources, storage, and responsive loads. However, these cases depend on the establishment of a smart energy management system for EHs, and according to this, the appropriate technical and economic capabilities for EHs and energy networks can be achieved [5].

1.2. Literature Review

The energy management of EHs in various energy networks has been the subject of various studies. Considering the uncertainty of thermal/electric loads and wind generation, [6] develops a robust framework for microgrid operation in the gas network. Using the constraint generation and column (CG&C) method, the proposed model is linearized and solved. Using a min–max objective function, the unit commitment cost is minimized in the master problem, while the dispatch cost of worst-case uncertainties is developed in the subproblem. In addition, the balance of degree of robustness and operational expenses is adjusted by means of polyhedral uncertainties, which are defined through uncertainty parameters. A stochastic framework based on natural gas, biomass, electricity, and thermal energy is presented in [7] for the optimal operation of a novel EH with multiple energy converters and electrical storage. Within systems of multiple energies, this scheme has the role of a bidding technique for smart elements. In [7], scenario-based stochastic optimization (SBSO) is utilized to model uncertainties in solar radiation, the market price of energy, and wind speed [7]. Based on wind power’s penetration, [8] presents a regional power grid and a structure for determining grid-connected EHs’ optimal operation. The optimization problem aims to address several primary challenges that have yet to be adequately addressed, such as the rate of emissions and amounts of renewable energy curtailed as well as total operating costs. Uncertainty in wind power is accurately modeled using a robust model based on information-gap decision theory (IGDT). In [9], the hub is utilized as a framework for coordination between the distributed generation (DG) and energy storage system (ESS) with respect to the energy management of EHs connected to energy networks. According to the proposed scheme, the total operating cost of the energy networks is minimized through a deterministic model with respect to the EH constraints. In order to model the uncertainty, an adaptive robust optimization method is applied using a hybrid metaheuristic algorithm based on the non-convexity and nonlinearity of the proposed problem. To model the aspects of planning and operation of the system, [10] develops an optimal EH including various RES types, considering storage systems of thermal energy and electricity. Additionally, by considering the stochastic nature of PV and wind, multi-energy systems’ optimal scheduling and planning are modeled. Aiming to minimize the total cost of EHs and based on Quantum Particle Swarm Optimization (QPSO), a robust technique is applied to solve this model. Taking into account RESs’ high penetration and aiming at the operation of renewable systems and private EH systems collaboratively, a decision-making structure based on privacy preserving is presented in [11]. Based on different entities’ private ownership, the presented scheme is solved by applying Benders’ decomposition algorithm (BDA) and is established according to a decentralized robust and stochastic bi-level method. The study’s main goals are to reduce renewable energy constraints and to reduce the entities’ operating expenses. A market optimization participation method in a virtual energy hub including industrial energy hubs and consumers is developed in [12]. Based on power grid operational limits, a two-stage robust stochastic optimization scheme is developed in [12] to compensate for operational risks of uncertainties and minimize the virtual energy hub operation expenses. To achieve this goal, transactive energy management and demand response programs are considered as enhanced ancillary services in the optimization problem. The industrial and technical operation of a combined scheme incorporating a photovoltaic system coupled with an electric vehicle parking lot and a storage system is presented in [13]. Moreover, a three-level cooperative control system is developed to schedule the economic operation and reactive and active power flows of the virtual energy hub. For electric power generation using thermal power, EH uses a new technology (organic Rankine cycle) and a flexible load (seawater desalination systems using reverse osmosis units) [14]. Furthermore, a battery interchange station and an electric vehicle parking lot are presented as a suitable means of interaction with electric vehicles. A fuel cell and hydrogen tank serve as a balance between hydrogen consumption and production, and electric power is utilized by the electrolyzer to supply the required hydrogen. IGDT and method-based scenario generation are utilized in uncertainty modeling. Based on day-ahead (DA) markets hub cooperation, [15] develops a unified approach to EHs’ energy management in various networks. During the process, aiming at DA market profit maximization based on hubs and linear network restrictions, unified energy management based on a linear objective function is considered. Ref. [16] proposes a novel flexibilization service for the distribution system exploiting the capabilities of renewable energy communities through the concept of Virtual Islanding operation. This new paradigm can ease the sustainable energy transition of distribution systems, making them keener to accommodate larger shares of renewable sources in the grid. The work in [17] analyzed common architectures and protocols commonly used to build smart energy communities, evaluating the attack surfaces and possible vulnerabilities. This work also discusses some solutions which can be employed to mitigate the risk, and highlights current gaps in the state of the art. Ref. [18] aims to propose a novel evolving framework for optimal energy flow (OEF) of an electricity, heat, and gas integrating system, taking into account flexible heat and electricity demand. To this end, a switching approach between input energy carriers has been introduced to combine the traditional demand response with demand-side energy supply management. Switching between the feeding energy carriers could change how power is supplied to the end users and thus would affect the total cost of the grid. Finally, Table 1 summarizes the literature.

1.3. Research Gaps

The following research gaps are identified in the grid-connected EH field, considering the research background and Table 1 discussed in the previous section:
  • EHs are typically operated on a cost-based model in most studies. However, EHs are able to transfer power and store energy [1]. Therefore, they are expected to be able to extract favorable financial benefits from energy and ancillary services markets (such as active and reactive power) for resources, responsive loads, and storage. In some research, EHs have been analyzed according to their operation model in proportion to the energy market; however, their participation in ancillary services has been less discussed [7,12,15].
  • Market participation and energy management of grid-connected smart EHs are types of operational issues. The operation step for this issue is generally under an hour [9,15]. Thus, to solve the problem, a short computational time is particularly important [15]. This is accomplished in cases of low-volume data and simple formulation of the problem. In addition, the aforementioned problem has a high number of uncertainty parameters, including loads, energy prices, EVs, and renewable power. In some research, such as [7,11,13,15], the SBSO method has been considered for modeling. As a result of these uncertainties, a large number of scenarios must be considered. Nevertheless, the volume of the problem data and the computational time increase. Some studies have used robust optimization for uncertainty modeling to solve this issue [6,8,9,10,14], which includes only one scenario. However, calculating some indices, such as flexibility, requires examining different states related to uncertainty parameters, like renewable power. This is not achieved through robust optimization. To overcome this research gap, using stochastic optimization based on methods with a minimum number of scenarios such as unscented transformation (UT) is necessary, which has been less discussed in the literature.
  • An EH is less flexible due to the presence of RESs and CHP [3,4]. To compensate, most research discusses flexible resource utilization, including responsive loads and storage [6,7,8,9,10,11,12,13,14,15]. However, the improvement of an EH’s flexibility depends on its optimal energy management by considering the number of flexible indices. This issue can be established only by considering a flexible model with respect to the grid-connected smart EH energy management issue, which has been discussed less in the literature, such as [16].

1.4. Contributions

Based on Figure 1, this paper addresses the first and third research gaps by examining grid-connected flexible EH operations participating in markets of energy, DA reservation, and reactive power. The energy hub is a means of aggregating and coordinating resources, storage devices, and responsive loads, which can be used to transfer and store different energies such as electricity, heat, and gas. Hence, it involves high efficiency. Thermal, gas, and electrical networks are also connected to the EH. In this scheme, the mentioned EHs are a coordinating system including RESs, CHP, boiler, thermal energy storage (TES), static electrical energy storage (EES) (battery), and mobile EES (electric vehicle (EV) aggregation), and demand response programs (DRP). As shown in Figure 1, EH operators are in bidirectional coordination with the operators of storage, resources, and responsive loads in the proposed energy management system (EMS). EH operators are also in bidirectional coordination to establish optimal operation in energy networks. A bi-level optimization approach is used in the following explanation of the proposed plan. The objective function of the upper level problem is to minimize energy losses in the networks mentioned. Additionally, the linearized optimal power flow for this network is also included. The objective function of the lower level problem is to maximize the EH profits in the aforementioned markets. It is also based on the operational formulation of the EH, including sources, storage, responsive loads, the reservation model, and the EH’s flexibility limitations. By using the Karush–Kuhn–Tucker (KKT) method, the proposed problem can be solved using conventional solvers. This scheme also includes the uncertainties of loads, renewable power, energy prices, and EH aggregation parameters. Thus, the UT technique is used in this article to address the second research gap. This method provides a smaller number of scenarios compared to other stochastic optimization methods [19]. Finally, the innovations in this scheme are as follows:
  • The operation of grid-connected EHs in energy networks, considering their simultaneous participation in reserve, reactive, and energy markets in order to improve the economic status of hubs and the operational status of the network simultaneously.
  • Providing flexible constraint formulation in the proposed scheme in order to access an EH with high flexibility with respect to the uncertainties of renewable resources.
  • Utilizing the UT technique to simultaneously carry out uncertainty modeling of the energy price, EV’ aggregation parameters, loads, and renewable power to reduce the volume of problem data and increase problem convergence rates under the goals of the operators.

1.5. Paper Organization

The following is a summary of the rest of the paper: the formulation of the proposed scheme in proportion to its methods of uncertainty modeling is provided in the Section 2. The extraction of a single-level model based on KKT for the proposed scheme is presented in the Section 3. Finally, Section 4 and Section 5 discuss the numerical results and conclusions, respectively.

2. Energy Network Operation Considering EHs Participating in the Markets

2.1. Proposed Scheme Formulation

This section discusses the energy management formulation for energy networks (gas, thermal, and electricity) considering the concurrent participation of hubs in reactive, reserve, and energy markets. It is considered as a bi-level optimization; the optimal operation of the mentioned networks with the aim of energy loss minimization is modeled in the upper level. With respect to the EH, the lower level refers to the operational model of storage, resources, and responsive loads in order to maximize profit. Accordingly, this problem can be expressed as follows.
(A)
Upper level problem
-
Objective function: The objective function in Equation (1) is equal to minimizing expected energy losses (EELs) in three networks: electrical (first part), thermal (second part), and gas (third part). Hence, the difference between the produced energy (by distribution substation and EH) and the consumed energy due to passive loads of the network is considered an energy loss in a network [4]. However, in modeling the problem, it is assumed that EHs are producers. In this case, if the gas, thermal, reactive, and active power have a positive (negative) value, then it will be a producer (consumer). In this equation, PES, HHS, and GGS are the active power of the electrical station, thermal power of the heat post, and gas power of the gas station, respectively. PED, HHD, and GGD are the active, thermal, and gas load, respectively. PEH, HEH, and GEH are the active, thermal, and gas power of the i-th EH in hour t and scenario w.
min E E L = e , t , w π w P e , t , w E S P e , t , w E D + i I e , i E P i , t , w E H + h , t , w π w H h , t , w H S H h , t , w H D + i I h , i H H i , t , w E H + g , t , w π w G g , t , w G S G g , t , w G D + i I g , i G G i , t , w E H
-
Model of energy networks: A linearized optimal power flow equation in an electrical, gas, or thermal network is the basis of Equations (2)–(21). Constraints (2)–(5) represent linearized equations of power flow in electrical networks, which describe the balance of active and reactive power in electrical buses [20,21,22,23,24] and active and reactive power flows in electrical distribution lines, respectively [5,25]. Thermal network power flow Equations (6) and (7) represent the balance of thermal power in the thermal node and also the thermal power flow through the thermal pipe, respectively [1,2]. Relations (8)–(12) also represent the linearized power flow constraints of the gas networks [2,3,4,5,6,7,8,9,10,11,12,13,14,15]. Constraint (8) refers to the balance of the gas power in gas nodes. Constraints (9)–(12) represent the linearized power flow model through the gas pipe [15]. Electrical, thermal, and gas network operation constraints are expressed in (13)–(15) [25,26], (16)–(18) [1,2], and (19)–(21) [14,15], respectively. These constraints for the electrical networks (thermal/gas) refer to the voltage deviation limitation (temperature/pressure) and apparent power (thermal/gas) flow through the line and substation, respectively.
P e , t , w E S + i I e , i E P i , t , w E H m J e , m E P e , m , t , w E L = P e , t , w E D e , t , w
Q e , t , w E S + i I e , i E Q i , t , w E H m J e , m E Q e , m , t , w E L = Q e , t , w E D e , t , w
P e , m , t , w E L = G e , m E L Δ V e , t , w Δ V m , t , w B e , m E L σ e , t , w σ m , t , w e , m , t , w
Q e , m , t , w E L = B e , m E L Δ V e , t , w Δ V m , t , w G e , m E L σ e , t , w σ m , t , w e , m , t , w
H h , t , w H S + i I h , i H H i , t , w E H m J h , m H H h , m , t , w H L = H h , t , w H D h , t , w
H h , m , t , w H L = ϑ h , m T h , t , w T m , t , w h , m , t , w
G g , t , w G S + i I g , i G G i , t , w E H m J g , m G G g , m , t , w G L = G g , t , w G D g , t , w
G g , m , t , w G L = ω g , m s i g n ξ g , t , w , ξ m , t , w φ g , m , t , w g , m , t , w
ξ g , t , w = ξ ¯ + k Δ ξ g , t , w , k g , t , w
φ g , m , t , w = k Δ φ g , m , t , w , k g , m , t , w
Δ φ g , m , t , w , k = l s k ξ l s k φ s i g n ξ g , t , w , ξ m , t , w Δ ξ g , t , w , k Δ ξ m , t , w , k g , m , t , w , k
V ¯ 1 Δ V e , t , w V ¯ 1 e , t , w
P e , m , t , w E L cos s × Δ θ + Q e , m , t , w E L sin s × Δ θ S ¯ e , m E L e , m , t , w , s
P e , t , w E S cos s × Δ θ + Q e , t , w E S sin s × Δ θ S ¯ e E S e = o , t , w , s
T ¯ T h , t , w T ¯ h , t , w
H ¯ h , m H L H h , m , t , w H L H ¯ h , m H L h , m , t , w
H ¯ h H S H h , t , w H S H ¯ h H S h = o , t , w
ξ ¯ ξ g , t , w ξ ¯ g , t , w
G ¯ g , m G L G g , m , t , w G L G ¯ g , m G L g , m , t , w
G ¯ g G S G g , t , w G S G ¯ g G S g = o , t , w
In fact, constraints (4) and (5) have a nonlinear format, respectively, as follows [25]:
P e , m , t , w E L = G e , m E L V e , t , w 2 V e , t , w V m , t , w G e , m E L cos σ e , t , w σ m , t , w + B e , m E L sin σ e , t , w σ m , t , w e , m , t , w
Q e , m , t , w E L = B e , m E L V e , t , w 2 + V e , t , w V m , t , w B e , m E L cos σ e , t , w σ m , t , w G e , m E L sin σ e , t , w σ m , t , w e , m , t , w
Based on the result of [25], the voltage angle deviation between the distribution line’s starting and ending buses is less than 6 degrees in the electrical distribution networks, and the voltage magnitude should also be maintained at more than 0.9 and less than 1.1 per unit [5]. Therefore, the expressions cos σ e , t , w σ m , t , w and cos σ e , t , w σ m , t , w are approximated to 1, respectively. The voltage magnitude (V) can also be considered as V = 1 + ΔV, in which the amount of voltage deviation is much less than 1 per unit. Now, under these conditions, and ignoring the small values of ΔV2, ΔVe, ΔVm, and ΔV × (σeσm), the linearized relations (4) and (5) are obtained for nonlinear constraints (53) and (54) [5,25].
In fact, Equation (9) has a nonlinear relation, as in Equation (24) [2]:
G g , m , t , w G L = ω g , m s i g n ξ g , t , w , ξ m , t , w ξ g , t , w , ξ m , t , w ξ g , t , w 2 ξ m , t , w 2 g , m , t , w
For its linearization, this relation was first written as (9), where φ as an auxiliary variable is calculated through relation (25):
φ g , m , t , w 2 = s i g n ξ g , t , w , ξ m , t , w ξ g , t , w 2 ξ m , t , w 2
In this article, the linear piece linearization method has been used to linearize this relation [2,15]. In this technique, based on the pressure deviation (Δξ) with a value much less than ξ, the pressure variable (ξ) is expressed as a relation (10). This is the case for φ in Equation (11). In this technique, the expressions ξ2 and φ2 are expressed as ξ 2 = ξ ¯ 2 + k l s k ξ Δ ξ k and φ 2 = k l s k φ Δ φ k , respectively, where lsξ and lsφ represent the linear piece slope for ξ and φ, respectively. Considering these cases, the linearized relation φ g , m , t , w 2 = s i g n ξ g , t , w , ξ m , t , w ξ g , t , w 2 ξ m , t , w 2 is expressed as (12) [2,15].
It has to be noted that the voltage constraint is expressed in operational problems as V ¯ V e , t , w V ¯ [26]. However, since the voltage deviation variable has been used in the proposed problem, constraint (13) replaces the voltage magnitude constraint [25]. The limitation of apparent power flow through a line or distribution substation (14)–(15), is modeled in coordinates PQ as a circular plane with the origin point at the center and radius S, i.e., P 2 + Q 2 S . This article approximates the circular plane as a regular polygonal plane [19]. In this plane, on each side of the equation (s) is linear, i.e., P cos s × Δ θ + Q sin s × Δ θ = S . Δθ represents the angle deviation and is equal to 360/nS. Then, nS represents the total number of sides in the new plane; therefore, s is selected from {1, 2, …, nS}. Finally, from each side, a square plane is extracted as P cos s × Δ θ + Q sin s × Δ θ S , and its repetition for the set {1, 2, …, nS} results in the extraction of a plane in regular polygon form [27].
(B)
Lower level problem
This section refers to the operational model of storage, responsive load, and resource in the EH, which considers market participation in reactive power, energy, and reserve.
-
Objective function: The objective function in relation (26) maximizes the expected profit of EHs in the energy market (the first line of the relation), reactive power market (the second line of the relation), and reserve power market (the third line of the relation). There are reserve and energy markets for three sections, including electricity, thermal, and gas. The positive sign (or negative sign) of power in each equation section represents the profit (or cost) in that section. In other words, relationship (26) simultaneously calculates the profit or cost of hubs in different markets. In this regard, the reserve and reactive power variables of hubs are positive. Therefore, the relationship (26) in the market of reactive power and reservation for hubs is profitable. In the energy market, if the active power of hubs is positive, that profit is obtained for the hubs in this market. But if the active power of hubs is negative, the hubs have a cost in the energy market. Therefore, if Profit had a positive value, then hubs have profits in all markets. Otherwise, they have a cost.
P E H , Q E H , G E H , H E H arg max Profit = i , t , w λ t , w E P i , t , w E H + λ t , w H H i , t , w E H + λ t , w G G i , t , w E H + i , t , w λ t , w E K Q Q i , t , w E H + i , t , w λ t , w E R E R i , t , w E H + λ t , w H R H R i , t , w E H + λ t , w G R G R i , t , w E H
-
Power balance model of EHs: Relations (27)–(30) represent the power balances of active power, reactive power, thermal, and gas in an EH. CHP, RESs, storage, and responsive loads can control EH active power based on (23). CHP, RESs, and EES play a role in reactive control. CHP, boiler, and responsive loads are used for reactive power control in an EH. In gas power control, the boiler and CHP play a role in gas energy consumption; however, the responsive load can act in production/consumption mode.
P i , t , w E H + E R i , t , w E H = P i , t , w C + P i , t , w R + P i , t , w D + P i , t , w D C H P i , t , w C H P i , t , w E D : γ i , t , w p i , t , w
Q i , t , w E H = Q i , t , w C + Q i , t , w R + Q i , t , w E Q i , t , w E D : γ i , t , w q i , t , w
H i , t , w E H + H R i , t , w E H = H i , t , w C + H i , t , w B + H i , t , w D + H i , t , w D C H H i , t , w C H H i , t , w H D : γ i , t , w h i , t , w
G i , t , w E H + G R i , t , w E H = G i , t , w D G i , t , w C G i , t , w B G i , t , w G D : γ i , t , w g i , t , w
-
CHP model: The CHP operational constraints are presented in (31)–(34) [4], which refer to thermal and gas power [28,29,30], and also the power constraints of active and reactive power in CHP, respectively.
H i , t , w C = P i , t , w C 1 η T η L η H η T : γ i , t , w h c i , t , w
G i , t , w C = 1 η T P i , t , w C : γ i , t , w g c i , t , w
P ¯ i C P i , t , w C P ¯ i C : μ ¯ i , t , w p c , μ ¯ i , t , w p c i , t , w
Q ¯ i C Q i , t , w C Q ¯ i C : μ ¯ i , t , w q c , μ ¯ i , t , w q c i , t , w
-
Boiler model: The boiler operation model is represented in (35)–(36) [15]. The input gas amount is calculated in (35), and the output thermal power limitation is expressed in (36).
G i , t , w B = 1 η B H i , t , w B : γ i , t , w g b i , t , w
H ¯ i B H i , t , w B H ¯ i B : μ ¯ i , t , w h b , μ ¯ i , t , w h b i , t , w
-
RES model: It should be noted that, generally, the amount of active power in an RES is a parameter [31,32,33,34,35]; however, its reactive power can be controlled by an electric power converter [25]. The active power of the RES is constant [36,37,38,39]. Hence, Equation (37) is taken into consideration for the RES, which refers to the RES’s reactive power constraints.
Q ¯ i R Q i , t , w R Q ¯ i R : μ ¯ i , t , w q r , μ ¯ i , t , w q r i , t , w
-
EES model: The operation model of EES is described in (38)–(41) [40], which refer to the limitations of the charge and discharge rates [41,42,43,44], stored energy, and reactive power, respectively. EES devices such as batteries and EVs are connected to the network by a DC/AC converter. These converters are able to control reactive power using IGBT switches [45,46]. Additionally, in other forms of EES, like compressed air energy storage (CAES), the synchronous generator is also capable of controlling reactive power. As another point, relations (38)–(41) can be used for the aggregation of EVs, with the difference that the parameters CREES, DREES, EI, E ¯ , E ¯ , Q ¯ E , and Q ¯ E depend on the number and the type of EVs [5,25]. Hence, the indexes of time (t) and scenario (w) are used for these parameters. The right-side unequal expression of constraint (40) is also converted to the equal expression because in the operation model of EVs, E ¯ represents the energy consumption of EVs during travel, which must be provided [5,25].
0 P i , t , w C H C R i E E S : μ ¯ i , t , w e c , μ ¯ i , t , w e c i , t , w
0 P i , t , w D C H D R i E E S : μ ¯ i , t , w e d , μ ¯ i , t , w e d i , t , w
E ¯ i E I i + t = 1 τ η C H P i , τ , w C H 1 η D C H P i , τ , w D C H E ¯ i : μ ¯ i , t , w e e s , μ ¯ i , t , w e e s i , t , w
Q ¯ i E Q i , t , w E Q ¯ i E : μ ¯ i , t , w q e , μ ¯ i , t , w q e i , t , w
-
TES model: The limitations of charge and discharge rate and stored energy in thermal energy storage (TES) are described in (42)–(44) as the operation model of TES [4].
0 H i , t , w C H C R i T E S : μ ¯ i , t , w t c , μ ¯ i , t , w t c i , t , w
0 H i , t , w D C H D R i T E S : μ ¯ i , t , w t d , μ ¯ i , t , w t d i , t , w
E ¯ i E I i + t = 1 τ η C H H i , τ , w C H 1 η D C H H i , τ , w D C H E ¯ i : μ ¯ i , t , w t e s , μ ¯ i , t , w t e s i , t , w
-
DRP model: The DRP formulation for electrical, thermal, and gas consumers is expressed in (45)–(46). This model is based on the price and incentive method [5]. Therefore, if the energy price is high (low), consumers will reduce (increase) their energy consumption, and all the reduced energy must be provided in cheap energy price hours [5]. Therefore, this leads to an increase in the profits of EHs based on Equation (1). Thus, constraint (45) indicates the power control range of active, thermal, and gas in DRP, while (46) ensures that the total decreased energy in expensive energy hours is supplied in cheap energy hours.
β i P i , t , w E D ( H i , t , w E D or G i , t , w E D ) P i , t , w D ( H i , t , w D or G i , t , w D ) β i P i , t , w E D ( H i , t , w E D or G i , t , w E D ) : μ ¯ i , t , w p d ( μ ¯ i , t , w h d or μ ¯ i , t , w g d ) , μ ¯ i , t , w p d ( μ ¯ i , t , w h d or μ ¯ i , t , w g d ) i , t , w
t P i , t , w D ( H i , t , w D or G i , t , w D ) = 0 : γ i , w p d ( γ i , w h d or γ i , w g d ) i , w
-
Reserve model of EHs: Constraint (47) can also be used to calculate the reserve amount of electrical, thermal, and gas power. It is noted that the difference between the consumed active power of the loads and the generated active power by storage, sources, and responsive loads is injected into the network as PEH or reserved in the EH as EREH. This is true for the thermal and gas sections in relations (29)–(30). There is always a positive value for reserve power, as stated in constraint (47) [47].
E R i , t , w E H , H R i , t , w E H , G R i , t , w E H 0 : μ ¯ i , t , w e r , μ ¯ i , t , w h r , μ ¯ i , t , w g r i , t , w
-
Flexibility model of EHs: Constraint (48) describes the flexibility of EHs in the thermal and electrical sections. In this constraint, 100% flexibility is achieved if ΔF tend to zero. According to the generated active power uncertainty of RESs, there will be different values for active power in different scenarios. Therefore, flexible sources, including responsive loads, non-renewable resources, and storage in the EH, are able to overcome the fluctuation of power produced by RESs through active power control. As a result, this enables EHs to achieve high flexibility through a certain amount of active power injection into each scenario [48]. Formulation (48) can be used to address this issue. CHP thermal power (relation 27) depends on the active power in the thermal section. Therefore, independent control is not applicable to it. In the case of CHP’s active power changes to compensate for RES active power, thermal power changes occur in the EH. CHP’s thermal power fluctuation can be compensated for by TES, responsive load, and boiler, which leads to the injection of a certain amount of thermal power into the network by the EH in different scenarios. This will result in the improved flexibility of the EH’s thermal section, and the mathematical model (48) can be used to access it. Finally, variables γ and μ represent Lagrangian multipliers.
Δ F P i , t , w E H P i , t , w = 1 E H ( or H i , t , w E H H i , t , w = 1 E H ) Δ F : μ ¯ i , t , w f e , μ ¯ i , t , w f e ( or μ ¯ i , t , w f h , μ ¯ i , t , w f h ) i , t , w

2.2. Uncertainty Modeling Based on UT

Uncertainty parameters include load (PED, QED, HHD, GGD), market prices (λE, λH, λG, λER, λHR, λGR), renewable power PR, and the aggregation parameters of EVs (CREES, DREES, EI, Q ¯ E , E ¯ , E ¯ , Q ¯ E ). In this article, uncertainties are modeled using stochastic programming.
In comparison with other methods, based on the shorter time of convergence and computation, UT is considered an efficient method [19]. Moreover, the model simplification is not based on mathematical assumptions, contrary to analytical methods. This method is included in this work for uncertainty modeling; furthermore, this method is suitable and reliable for coping with probability distribution function estimation and nonlinear transitions [16]. The input uncertain parameters (U) are developed through n = 18. Based on n =18, 2n + 1 scenarios (i.e., 37 scenarios) are generated. Consequently, based on the small scenario number, no scenario reduction strategy is required to reduce the time of computation. This approach’s formulation has been extensively presented in [19].
Suppose y = f(x) is a nonlinear stochastic problem with uncertainty including two uncertain variables, yRr (the vector of uncertain output with r elements) and xRn (the vector of uncertain input with the values of covariance and mean, σx and μx, respectively). The covariance of uncertain variables is expressed by non-symmetric matrix inputs, while the variance of uncertain parameters is given by symmetric matrix inputs. The covariance and mean parameters (σy and μy) are found by means of the UT technique [19]:
  • Step 1: 2n + 1 scenarios are taken from the uncertain entries:
x 0 = μ x
x ϖ = μ x + n 1 W 0 σ x ϖ = 1 , 2 , , n
x ϖ = μ x n 1 W 0 σ x ϖ = n + 1 , n + 2 , , 2 n
where W0 represents the mean value weight (μx).
  • Step 2: The scenario weight factor evaluation:
W 0 = W 0
W ϖ = 1 W 0 2 n ϖ = 1 , 2 , , n
W ϖ + n = 1 W 0 2 n ϖ + n = n + 1 , n + 2 , , 2 n
ϖ = 1 n W ϖ = 1
  • Step 3: Output parameter determination based on (56) and scenario 2n + 1 indicate the nonlinear function:
y ϖ = f ( x ϖ )
  • Step 4: Output parameter ν evaluation, including mean and covariance (μy and σy, respectively):
μ y = ϖ = 1 n W ϖ ν ϖ
σ y = ϖ = 1 n W ϖ ν ϖ μ y ν ϖ μ y T

3. The Extraction of a Single-Level Formulation

To solve formulations (1)–(21) and (26)–(48) as a bi-level problem using a conventional solver, a single-level model is extracted [49]. In this article, this purpose is achieved through the KKT method. In mathematical optimization, the KKT conditions are first derivative tests (sometimes called first-order necessary conditions) for a solution in nonlinear programming to be optimal, provided that some regularity conditions are satisfied. Allowing inequality constraints, the KKT approach to nonlinear programming generalizes the method of Lagrange multipliers, which allows only equality constraints. Similarly to the Lagrange approach, the constrained maximization (minimization) problem is rewritten as a Lagrange function whose optimal point is a global maximum or minimum over the domain of the choice variables and a global minimum (maximum) over the multipliers [49]. The KKT constraint is derived from the lower level problem in this method, while the upper level problem is equivalent to the single-level model [49]. To extract the KKT constraints, the sum of the objective function and the penalty function of the lower level constraints is first calculated as the Lagrange (L) function of the low-level problem [49]. The penalty functions for the equal (a = b) and unequal (ab) constraints are γ.(ba) and μ.max(0, ab), respectively. The variables γ ∈ (−∞, +∞) and μ ≥ 0 represent Lagrangian multipliers [50]. The KKT constraint is obtained by equalizing the Lagrange function’s derivative to the "lower-level variable and lagrangian multipliers" with zero [49]. As a result, the proposed scheme can be expressed as a single-level formulation as follows:
min E E L = e , t , w π w P e , t , w E S P e , t , w E D + i I e , i E P i , t , w E H + h , t , w π w H h , t , w H S H h , t , w H D + i I h , i H H i , t , w E H + g , t , w π w G g , t , w G S G g , t , w G D + i I g , i G G i , t , w E H
subject to the following:
Constraints (2)–(21)
Constraints (27)–(48): ∂L/∂γ = 0 and ∂L/∂μ = 0
μ.(ab) = 0: ∂L/∂μ = 0 for inequality constraints in the lower level model (26)–(48)
∂L/∂p = 0   p is all primal variables of the lower level model (26)–(48)
γ , + , μ 0 i , t , w
According to (59), the objective function of the single-level model of the proposed scheme is equal to the objective function of the upper level problem in relation (1). The upper level problem’s constraints are also used in this new problem, which is stated in constraint (60). Equations (61)–(64) include the KKT model of the lower level problem (26)–(48).
It is noteworthy that equalizing the Lagrange function’s derivative to Lagrangian multipliers with zero (i.e., L γ = 0 ) leads to the extraction of the equal constraint in the lower problem [49]. L μ = 0 (μ represents the Lagrangian multiplier for the unequal constraint) also leads to the extraction of the two types of equations (known as the first and second conditions of KKT). L μ = 0 leads to the unequal constraint extraction of the lower problem in the first condition of KKT. In the second condition of KKT, μ . ( a b ) = 0 is obtained from L μ = 0 [49]. The corresponding constraints to L γ = 0 and the first condition of KKT are stated in (61). Constraint (62) is obtained from the second condition of KKT. Relation (63) is also equal to the constraints of KKT, which have been obtained by equalizing the Lagrange function’s derivative to the lower level variable’s problem with zero. Finally, relation (64) refers to the Lagrangian multiplier limitation. In addition, μ . ( a b ) = 0 in constraint (63) is nonlinear. Then, using the BIG-M method [49], two constraints M ( 1 z ) a b M ( 1 z ) and M × z μ M × z are used for the mentioned nonlinear constraint. In these constraints, M is a large constant such as 106, and z is a binary variable.
The proposed scheme is an optimization model. This model includes an objective function [51,52,53,54,55]. In this function, the min or max value of a factor is obtained [56,57,58,59]. This problem is based on the different constraints [60,61,62]. Constraints contain equality and inequality formulations [63,64,65,66]. To apply the optimization model to the network, the system needs smart devices [67,68,69].

4. Numerical Results

4.1. Problem Data

This section applies the proposed optimization scheme to a test system in Figure 2 that comprises three networks: an IEEE 69-bus electrical distribution network [4], a gas system that includes four nodes [15], and a Naestved 42-node thermal network [70]. Thermal, gas, and electrical networks have a base power of 1 MW, 1 MW, and 1 MVA, respectively. Ten bar, 373.15 K, and 12.66 KV are the base pressure, temperature, and voltage of the system. Zero, 1, and 1 are the slack buses in thermal, gas, and electrical networks, respectively; 1.1 and 0.9 per unit are the upper and lower limits of these variables [71,72,73,74,75,76]. Refs [4,15,70] present the aforementioned network data, including peak load, lines, and substations. In the electrical network, the peak reactive and active loads are 2.694 MVAr and 3.791 MW, respectively, while in the thermal network, the thermal peak load is 6 MW [70]. In EHs, gas energy is assumed to be supplied by the gas network only for CHP systems and boilers; therefore, the value of the passive gas load is zero. According to the curve presented in [15], each network’s hourly load data are calculated by multiplying the load factor curves and peak load. Based on the various network energy prices presented in [15], for the hours 23:00–08:00, 08:00–17:00, and 17:00–23:00, the prices of energy in the electrical network are 17.60 USD/MWh, 33 USD/MWh, and 26.40 USD/MWh, respectively. The prices in the thermal network for the hours 16:00–04:00 and 04:00–16:00 are 15 USD/MWh and 22 USD/MWh, and in the gas network for the hours 05:00–22:00 and 22:00–05:00 are 18 USD/MWh and 12 USD/MWh, respectively. Each network has a reserve price that is the same as its energy price. KQ is also equivalent to 0.08, based on [25]. Figure 1 illustrates a system containing 8 EHs, and Table 2 reports its peak load, different network placements, and elements. Based on Table 2, RESs in EHs 1–6 consist of wind turbines (WTs) and photovoltaics (PV). RES peak active power for PV and WTs is 0.25 MW and 0.2 MW, respectively. As presented in [5], the daily profile of the active power generated by these sources can be calculated by multiplying the daily power generation curve by the active peak power [77,78,79,80,81]. Additionally, each of these sources can regulate its reactive power within the range of −0.1 MVAr to 0.1 MVAr. The DRP scheme is assumed to be available to 40% of EH consumers. EHs 1–6 consist of two types of static (battery type (B)) and mobile (aggregation of EVs) EES. In each of these EHs, 80 electric vehicles are assumed. By multiplying the daily penetration rate curve [5] by the total number of EVs, the number of EVs connected to the EH per hour can be calculated. The rate of discharge/charge, energy consumption, the capacity of charge, and other factors such as EV characteristics are reported in [5,25]. In the above-mentioned EHs, a 1.5 MWh battery with a 90% efficiency has been used. The initial and minimum storable energy of this battery are both 0.2 MW, and the rate of discharge and charge for this battery is 0.8 MW/h [15]. The battery charger can also adjust its reactive power within the range of −0.2 MVAr to 0.2 MVAr. There are similar specifications for TES, with the exception of its 80 percent charge and discharge efficiency. There is a capacity (maximum thermal power) of 0.4 MW and efficiency of 80% for boilers in EHs 5–8. The maximum (minimum) reactive, active, and thermal power of CHP in EHs, are 0.2 MVAr, 0.5 MW, and 0.3 MW (−0.2 MVAr, 0 MW, and 0 MW) respectively. The efficiency of thermal power, losses, and the turbine in CHP are 40%, 8%, and 40%, respectively [4]. Lastly, a 10% standard deviation is assumed for uncertainty parameters, and a 0.05 flexibility tolerance is designated in order to achieve flexible EHs.

4.2. Results

With the GAMS optimization software (version 45.7.0) [82], the proposed scheme was simulated based on the data in Section 4.1 [82]. GAMS version 15.2 is used in this paper, and the simulation was done on a Dell Laptop with RAM 12, Core i7-10850H, and Intel UHD Graphics. Thus, the following numerical results are reported for the various case studies.
(A)
Appropriate solution algorithm extraction
In Table 3, the convergence status of the proposed scheme in nonlinear programming (NLP) and linear programming (LP) based on uncertainty modeling using UT and SBSO for a flexibility tolerance of 0.05 per unit is presented. It has to be noted that the nonlinear model of relations (4), (5), (9), (13)–(14), and (90)–(126) has been used in the NLP model. Due to the convexity of the lower level problem, the KKT method is applicable. In SBSO [15], the roulette wheel mechanism (RWM) first generates a large number of scenarios (here 2000 scenarios). In each scenario, the value of the uncertainty parameters is determined based on the mean value and standard deviation. Then, the probability of the selected value is calculated for the uncertainty parameters in each scenario. To calculate the probability value of the energy price, load, renewable power of solar/wind, and EV parameters, the normal probability distribution function (PDF), Weibull/Beta, and Riley distributions are used [3,5,15]. Multiplying the probability of the uncertainty parameters is equal to the probability of each scenario. Therefore, the Kantorovich method (KM) [15] as a technique of scenario reduction selects a certain number of generated scenarios that are close to each other and applies them to the problem. In this section, KM applies 80 scenarios to the problem to access the optimal and safe solution. In the following, IPOPT, CONOPT, MINOS, and LGO solvers [82] are used to solve the proposed NLP problem. Based on Table 3, the optimal solution cannot be extracted by the LGO solver in UT, which requires 39 scenarios. In SBSO, where the number of scenarios has increased to 80, the LGO and MINOS solvers are not able to solve the problem. In addition, the answers obtained in IPOPT and CONOPT are different. IPOPT has the best solution among these two solvers because it has the lowest EEL and the highest profit. It also has low computational time (CT) and low convergence iteration (CI), especially in UT due to the lower number of scenarios. Therefore, considering these conditions, IPOPT has the best conditions for NLP in the proposed scheme. Then, CPLEX, OSL, and CBC solvers [82] are used to solve the proposed LP problem [82]. According to Table 3, it is evident that the optimal solution obtained by the three solvers mentioned is the same. Thus, EEL and profit are equal to 6.58 MWh and USD 3405.70, respectively. These solvers differ only in CT and CI values. The lowest (and highest) CI and CT were obtained in CPLEX (OSL). Therefore, in solving the proposed LP problem, it can be stated that CPLEX has the best conditions. It is noteworthy that the executive step is generally low [5] in operational problems, for example, around an hour. Therefore, the low computational time is important in solving the operation problem. In this article, this issue has been addressed by linearizing the proposed scheme and modeling the uncertainties with UT. So, in the nonlinear model and SBSO, the computational time is around 65.5 min; however, in the UT and linear model, it is around 2.2 min.
In the LP model (CPLEX solver), the problem variables computational error compared to the real model of NLP (IPOPT solver) has been evaluated for ΔF = 0.05 p.u. Based on this table, it is evident that the computational error for active and reactive power is 2.4%, and that it is around 0.9% for gas power. This value for voltage and pressure is around 0.45% and 0.1%, respectively. According to Section 2, LP and NLP models have the same optimal power flow equations for the thermal network, so its variables have no computational error. Finally, based on Table 3 and Table 4, the calculation error is low and can be removed; therefore, a unique optimal solution can be obtained by a linear model, while this issue is not available in a nonlinear model.
(B)
EH performance evaluation
For ΔF = 0.05 p.u., Figure 3 and Figure 4 display daily performance curves for EHs and their elements. The expectation daily curve for reactive, active, gas, and thermal power from storage devices, sources, and responsive loads is represented in Figure 3. According to Figure 3a, the RESs inject the maximum producible active power into the EHs in accordance with the weather conditions at all hours. According to [5], the generation rate for photovoltaic power is 1 at 12:00 and zero at 19:00–05:00. Moreover, based on Section 4.1, there are six photovoltaic plants, whose capacity is 0.2 p.u. Therefore, photovoltaic plants do not generate active power during 19:00–05:00, and at 12:00 the active power is equal to 1.2 p.u. This is also true for wind turbines. According to Section 4.1, since the price of electricity and heat is higher than the price of gas energy in all operating hours, based on Figure 3a, this has led to a high active power injection by CHP systems into the EHs. A maximum active power of 0.5 p.u. is generated by each CHP system according to Section 4.1. Therefore, they inject a maximum active power of 2 p.u into EHs. Batteries and DRP are in charge mode in off-peak and mid-peak hours (23:00–16:00), and they are discharged in peak electricity hours (16:00–23:00). In the case of EVs, they receive the required energy for traveling from the grid between 23:00 and 07:00, when the price of electrical energy is the cheapest, and during these hours they receive high active power from EHs based on Figure 3a. From 12:00 to 16:00, they are in charging mode, until electrical load peak hours when they inject their stored battery energy into the EHs. In the energy market, this operation of the different elements corresponds to maximizing the EHs’ profit. Due to RES uncertainty, they could lose flexibility at any hour due to their active power generation in all operating hours, based on Figure 3a. Therefore, according to Figure 3a, flexible sources such as EVs, batteries, DRP, and CHP systems are operational during all operation hours.
The expected daily curve of reactive power for CHP, batteries, EVs, and RESs is shown in Figure 3b. According to Equation (22), an incentive for providing reactive power services in the market of the proposed scheme has been considered; thus, these elements try to inject their maximum reactive power into EHs or electrical networks during all operating hours. For example, the maximum capacity of photovoltaic plants to control reactive power is equal to 0.1 p.u., and according to Section 4.1, there are six photovoltaic plants. Hence, they inject a total reactive power of 0.6 p.u. into EHs. The reactive power produced by EVs is proportional to their number and type. Since a number of different types of EVs are connected to the EHs at any time, their total reactive power changes with time. Figure 3c shows the expected daily thermal curves for CHPs, boilers, TESs, and DRPs. According to Equation (27), the CHP thermal power is its active power coefficient, and the value of CHP active power is constant in all operation hours based on Figure 3c. Therefore, Figure 3c depicts the CHP thermal power during all operation hours with a constant value. Regarding boiler operation, it is noteworthy that the thermal energy price during all simulation hours is higher than the gas energy price, according to Section 4.1. Therefore, in order to maximize profit, they inject their maximum thermal power into EHs. During the hours of cheap thermal energy (16:00–04:00), thermal DRPs and TES systems are in charging mode, while in other operation hours they are in discharge mode. In the market for thermal energy, this type of operation of the mentioned elements maximizes EH profit. In addition, the thermal power of CHP has a value at all hours; therefore, there is a possibility of the thermal share’s flexibility being reduced. To compensate for this, flexible sources such as thermal boilers, TES, and DRPs are always on. Finally, the expected daily gas power curve of CHP systems and boilers is presented in Figure 3d. Based on Equations (28) and (32), the gas power of the CHP and boiler is a factor of active and thermal power, respectively. Since the active and thermal power of the CHP and boiler are constant at all hours, their gas power is constant for all operating hours, according to Figure 4d.
The active, reactive, thermal, and gas power expected daily curve of EHs is represented in Figure 4. These expressions are calculable from Equations (23)–(26). Based on these equations, the difference between the generated power of resources, storage devices in discharge mode, and responsive load, as well as the power consumption of load, storage devices in charge mode, and responsive load, is equal to the total active and reserve power of EHs. This is also true for the thermal and gas sections. The EHs’ reactive power is equal to the difference between the generated power of resources and storage and the power consumption of passive loads. The active, reactive, thermal, and gas loads expected daily curve is presented in Figure 4. According to these curves and Figure 3, the active, reactive, thermal, and gas power expected daily curves of EHs are proportional to Figure 4a to Figure 4d, respectively. According to these figures, EHs are active power consumers during 23:00–07:00 because, according to Figure 3a, electric batteries, DRPs, and EVs work in charging mode at these hours. According to Figure 3a, they act as producers during other times because of the high level of active power generation related to storage, responsive loads, and resources. EHs generate reactive power at all hours. EHs are thermal energy consumers during 16:00–04:00 because thermal DRPs and TES systems receive power from the grid during these hours, according to Figure 3c. However, the responsive loads, sources, and storage are in a thermal power-generating mode at other hours, and then EHs are thermal energy generators during these hours. According to Section 4.1, the gas network and EHs do not have gas loads. Therefore, they do not have responsive load capability. Therefore, EHs are always in consumer mode at all hours since they only have consumers, which are the CHP and boiler.
Finally, Figure 4e represents the EHs’ thermal and electrical reserve power expected daily curve. Based on Figure 4e, EHs can have electric and thermal reserve power when they are in producer mode.
Table 5 reports EHs’ profit expectation in the markets of energy, reactive, and reserve power using different flexibility tolerances. This table indicates that profitability for EHs in the reserve and energy markets increases with increased flexibility tolerance. Because of these conditions, the importance of constraints (51) and (52) and flexibility constraints decreases in the proposed problem. Therefore, the performance of EHs and their elements will be in proportion to their profit maximization. For example, by reducing the importance of flexibility, electric batteries and DRPs can be turned off from 08:00 to 17:00 and 17:00 to 23:00 when the price of electricity is higher than the hours from 23:00 to 08:00. Therefore, they consume energy only during the cheapest hours of electricity (23:00–08:00). This will increase the profits of EHs. Table 5 indicates that there is no flexibility tolerance in EH profits in the reactive power market. Therefore, the flexibility in EHs does not affect the profitability of EHs in the reactive power market and only reduces the profitability of EHs in the reserve and energy markets.
(C)
Evaluation of the operation status of the energy networks
To evaluate the proposed scheme feasibility, two study cases have been reviewed here:
  • Power flow analysis
  • Proposed scheme
The results of this section are presented in Table 6. The operation indices compared are maximum pressure drop (MPD), maximum overtemperature (MOT), maximum overpressure (MOP), maximum temperature drop (MTD), maximum voltage drop (MVD), maximum overvoltage (MOV), and expected energy losses (EELs). For different flexibility tolerances, values of the operating indices are presented in Case II. According to Table 6, for 100% flexibility (ΔF = 0), the proposed scheme is able to reduce EELs in both thermal and electrical networks by around 28.7% and 29.1%, respectively, compared to case I. However, compared to case I, EEL has increased by around 1.12 MWh in the gas network. However, under these conditions, EEL in all energy networks has decreased by around 14.5% in the proposed scheme compared to case I. Compared to case I and for 100% flexibility, the proposed scheme, considering an EH’s optimal power management, is able to improve MVD and MTD by 49% and 46%, respectively. However, these conditions are associated with pressure drop, overvoltage, and temperature. Considering Table 6, they have a maximum value less than their allowable value, i.e., 0.1 p.u. (1.1−1 or 1−0.09). Finally, based on Table 6, it is evident that the operation index status improves with increasing ΔF. In other words, EHs are mostly responsible for the improvement of the energy network’s operation.

5. Conclusions

In the presence of smart energy hubs, the operation of thermal, gas, and electrical networks, considered in relation to their presence in the markets of energy, reserve, and day-ahead reactive power, was discussed in this paper. A scheme based on bi-level optimization was used to model the plan. In energy networks, the upper level outlines the minimization of energy loss based on the equations of linearized optimal power flow. Based on reserves, flexible EHs, and operational constraints, the lower level formulated the maximization of profit for EHs in the market. Therefore, a single-level model was extracted using the KKT method, and to model renewable power, energy price, mobile storage parameters, and load uncertainties, the UT method was applied. Based on the numerical results, a unique solution can be extracted by a linear model of solvers, while a nonlinear model cannot. As compared to other linear and nonlinear solvers, the CPLEX solver has a shorter computation time in the proposed linearized model. Furthermore, the UT method involves fewer scenarios than SBSO, which increases the convergence speed of problem-solving. Therefore, by extracting the optimal timing for the EHs’ power, it was clear that, in comparison to the load flow studies of the grid, the proposed plan was capable of improving the operation indices, including the maximum drop of temperature and voltage and energy losses, by 46%, 49%, and 14.5%, respectively, in the EHs’ flexible condition of 100%. This condition also leads to a pressure drop, overvoltage, and overheating under their allowable value, i.e., 0.1 p.u. Increasing flexibility in the proposed scheme decreases the improvement rate of operation indices and reduces the EHs’ profit in the markets of energy and reserve. Therefore, the advantages of this plan include modeling the flexibility of hubs, modeling uncertainties with UT, and the participation of hubs in the mentioned markets.

Author Contributions

Conceptualization, S.P., P.E.L. and A.K.F.; data curation, S.P.; formal analysis, S.P.; funding acquisition, P.E.L.; investigation, S.P.; methodology, S.P., P.E.L. and A.K.F.; project administration, S.P.; resources, S.P.; software, S.P.; supervision, P.E.L. and A.K.F.; validation, S.P., P.E.L. and A.K.F.; Visualization, S.P.; Writing—original draft, S.P.; Writing—review and editing, S.P., P.E.L. and A.K.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Basque Government (GISEL Research Group, IT1522-22).

Data Availability Statement

Data can be made available on request.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the de-sign of this study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Nomenclature

Variables
EEL
HDCH, HCH
Expected energy loss [MWh]
Discharge and charge modes of thermal power of thermal energy storage (TES) [p.u.]
GB, HB
GREH, EREH, HREH
Gas and thermal power of the boiler [p.u.]
Reserve power for gas, electricity, and thermal power [p.u.]
GD, PD, HDGas, active, and thermal power in a DRP
PDCH, PCHDischarge and charge active power of EES [p.u.]
GEH, HEH, QEH, PEHEH’s gas, thermal, reactive, and active power [p.u.]
GGL, HHL, QEL, PELPower flow of gas and thermal power through the distribution pipe, reactive and active power flow through the electricity distribution line [p.u.]
QE, QREES and RES reactive power [p.u.]
ProfitEHs’ total profit expectation in energy, reserve regulation, and reactive markets [USD]
GGS, HHS, QES, PESPower flow of gas, thermal, reactive, and active power through the distribution networks [p.u.]
TTemperature [p.u.]
σ, ΔV, VVoltage angle [Rad], voltage deviation [p.u.], and voltage magnitude [p.u.]
φ, ΔφAuxiliary variables [p.u.]
λ, μLagrangian multipliers
Δξ, ξPressure deviation [p.u.], gas pressure [p.u.]
Constants
GEL, BELElectrical distribution line conductance and susceptance [p.u.]
DREES, CREESEES discharge and charge rates [p.u.]
DRTES, CRTESTES discharge and charge rates [p.u.]
EI
E ¯ , E ¯
ESS initial energy [p.u.]
Maximum and minimum stored energy of an ESS [p.u.]
G ¯ G L , G ¯ G S Maximum passing gas power flow through the gas substation and pipeline [p.u.]
H ¯ B , H ¯ B Maximum and minimum thermal power of the boiler [p.u.]
H ¯ C , H ¯ C Maximum and minimum CHP thermal power [p.u.]
H ¯ H L , H ¯ H S Maximum passing thermal power flow through the thermal pipeline and substation [p.u.]
JG, JH, JE

IG, IH, IE
Incidence matrix of pipeline and gas node, pipeline and thermal node, line and electrical bus
Incidence matrix of EH and gas node, thermal node, and electrical bus
KQReactive power price to energy price ratio
lsξ, lsσThe slope of a linear piece for the variables ξ, σ
nSTotal number of sides of a regular polygon plane
P ¯ C , P ¯ C CHP maximum and minimum active power [p.u.]
GGD, HHD, QED, PEDGas, thermal, reactive, and active demand [p.u.]
PRRES active power generated [p.u.]
Q ¯ C , Q ¯ C CHP maximum and minimum reactive power [p.u.]
Q ¯ E , Q ¯ E EES maximum and minimum reactive power [p.u.]
Q ¯ R , Q ¯ R RES maximum and minimum reactive power [p.u.]
S ¯ E L , S ¯ E S Apparent maximum power flow through the electrical substation and distribution line [p.u.]
β
sign(a, b)
Rate of DRP consumer participation
Sign function: for a ≥ b has the value 1; otherwise, it is equal to −1.
χ ¯ , χ ¯ Maximum and minimum pressure magnitudes (temperature or voltage) [p.u.]
ηBEfficiency of the boiler
ηDCH, ηCHESS discharge and charge efficiency
ηH, ηL, ηTCHP thermal, losses, and turbine efficiency
λGR, λHR, λER

λG, λH, λE
Reserve price in the markets of gas, thermal, and electrical reserve regulation [USD/MWh]
Gas, thermal, and electrical energy prices in the market [USD/MWh]
ω
π
Constant of the gas pipeline [p.u.]
Probability of the scenario’s occurrence
ΔFTolerance of flexibility [p.u.]
ΔθAngle deviation, Δθ = 360/nS
ϑ
nS
Constant thermal pipeline [p.u.]
Total number of sides in the new plane
Sub-indexes
g, h, eGas and thermal node, electrical bus
iEnergy hub
kLinear piece in the conventional linear piece linearization method
mNode’s [bus] corresponding sub-index
sSide on a regular polygon plane
tHours of operation
w
o
Scenarios
Slack (node) bus
Acronym
BDABenders’ decomposition algorithm
CAESCompressed air energy storage
CG&CConstraint generation and column
CHPCombined heat and power
CIConvergence iteration
CTComputational time
DADay-ahead
DGDistributed generation
DRPDemand–response program
EELExpected energy loss
EESElectrical energy storage
EHEnergy hub
EMSEnergy management system
ESSEnergy storage system
EVElectric vehicle
IGDTInformation-gap decision theory
KMKantorovich method
KKTKarush–Kuhn–Tucker
LPLinear programming
MOPMaximum overpressure
MOTMaximum overtemperature
MOVMaximum overvoltage
MPDMaximum pressure drop
MTDMaximum temperature drop
MVDMaximum voltage drop
NLPNonlinear programming
OEFOptimal energy flow
QPSOQuantum particle swarm optimization
SBSOScenario-based stochastic optimization
RESRenewable energy source
RTReal time
RWMRoulette wheel mechanism
TESThermal energy storage
UTUnscented transformation

References

  1. Afrashi, K.; Bahmani-Firouzi, B.; Nafar, M. Multicarrier Energy System Management as Mixed Integer Linear Programming. Iran. J. Sci. Technol. Trans. Electr. Eng. 2021, 45, 619–631. [Google Scholar] [CrossRef]
  2. Zafarani, H.; Taher, S.A.; Shahidehpour, M. Robust Operation of a Multicarrier Energy System Considering EVs and CHP Units. Energy 2020, 192, 116703. [Google Scholar] [CrossRef]
  3. Azarhooshang, A.; Sedighizadeh, D.; Sedighizadeh, M. Two-Stage Stochastic Operation Considering Day-Ahead and Real-Time Scheduling of Microgrids with High Renewable Energy Sources and Electric Vehicles Based on Multi-Layer Energy Management System. Electr. Power Syst. Res. 2021, 201, 107527. [Google Scholar] [CrossRef]
  4. Homayoun, M.; Joorabian, M. Multi-objective operation of distributed generations and thermal blocks in microgrids based on energy management system. IET Gen. Transm. Distrib. 2021, 15, 867–877. [Google Scholar] [CrossRef]
  5. Asl, S.A.F.; Bagherzadeh, L.; Pirouzi, S.; Norouzi, M.; Lehtonen, M. A New Two-Layer Model for Energy Management in the Smart Distribution Network Containing Flexi-Renewable Virtual Power Plant. Electr. Power Syst. Res. 2021, 194, 107085. [Google Scholar] [CrossRef]
  6. Shams, M.H.; Shahabi, M.; MansourLakouraj, M.; Shafie-khah, M.; Catalão, J.P.S. Adjustable Robust Optimization Approach for Two-Stage Operation of Energy Hub-Based Microgrids. Energy 2021, 222, 119894. [Google Scholar] [CrossRef]
  7. Tavakoli, A.; Karimi, A.; Shafie-khah, M. Optimal Probabilistic Operation of Energy Hub with Various Energy Converters and Electrical Storage Based on Electricity, Heat, Natural Gas, and Biomass by Proposing Innovative Uncertainty Modeling Methods. J. Energy Storage 2022, 51, 104344. [Google Scholar] [CrossRef]
  8. Zare Oskouei, M.; Mohammadi-Ivatloo, B.; Abapour, M.; Shafiee, M.; Anvari-Moghaddam, A. Techno-Economic and Environmental Assessment of the Coordinated Operation of Regional Grid-Connected Energy Hubs Considering High Penetration of Wind Power. J. Clean. Prod. 2021, 280, 124275. [Google Scholar] [CrossRef]
  9. AkbaiZadeh, M.; Niknam, T.; Kavousi-Fard, A. Adaptive Robust Optimization for the Energy Management of the Grid-Connected Energy Hubs Based on Hybrid Meta-Heuristic Algorithm. Energy 2021, 235, 121171. [Google Scholar] [CrossRef]
  10. Shahrabi, E.; Hakimi, S.M.; Hasankhani, A.; Derakhshan, G.; Abdi, B. Developing Optimal Energy Management of Energy Hub in the Presence of Stochastic Renewable Energy Resources. Sustain. Energy Grids Netw. 2021, 26, 100428. [Google Scholar] [CrossRef]
  11. Oskouei, M.Z.; Mohammadi-Ivatloo, B.; Abapour, M.; Shafiee, M.; Anvari-Moghaddam, A. Privacy-Preserving Mechanism for Collaborative Operation of High-Renewable Power Systems and Industrial Energy Hubs. Appl. Energy 2021, 283, 116338. [Google Scholar] [CrossRef]
  12. Oskouei, M.Z.; Mohammadi-Ivatloo, B.; Abapour, M.; Shafiee, M.; Anvari-Moghaddam, A. Strategic Operation of a Virtual Energy Hub with the Provision of Advanced Ancillary Services in Industrial Parks. IEEE Trans. Sustain. Energy 2021, 12, 2062–2073. [Google Scholar] [CrossRef]
  13. Zahedmanesh, A.; Muttaqi, K.M.; Sutanto, D. A Cooperative Energy Management in a Virtual Energy Hub of an Electric Transportation System Powered by PV Generation and Energy Storage. IEEE Trans. Transp. Electrif. 2021, 7, 1123–1133. [Google Scholar] [CrossRef]
  14. Kafaei, M.; Sedighizadeh, D.; Sedighizadeh, M.; Fini, A.S. An IGDT/Scenario Based Stochastic Model for an Energy Hub Considering Hydrogen Energy and Electric Vehicles: A Case Study of Qeshm Island, Iran. Int. J. Electr. Power Energy Syst. 2022, 135, 107477. [Google Scholar] [CrossRef]
  15. Dini, A.; Pirouzi, S.; Norouzi, M.; Lehtonen, M. Grid-Connected Energy Hubs in the Coordinated Multi-Energy Management Based on Day-Ahead Market Framework. Energy 2019, 188, 116055. [Google Scholar] [CrossRef]
  16. Bonfiglio, A.; Bruno, S.; Martino, M.; Minetti, M.; Procopio, R.; Velini, A. Renewable Energy Communities Virtual Islanding: A Novel Service for Smart Distribution Networks. In Proceedings of the 2024 IEEE/IAS 60th Industrial and Commercial Power Systems Technical Conference (I&CPS), Las Vegas, NV, USA, 19–23 May 2024; pp. 1–8. [Google Scholar] [CrossRef]
  17. Gaggero, G.B.; Piserà, D.; Girdinio, P.; Silvestro, F.; Marchese, M. Novel Cybersecurity Issues in Smart Energy Communities. In Proceedings of the 2023 1st International Conference on Advanced Innovations in Smart Cities (ICAISC), Jeddah, Saudi Arabia, 23–25 January 2023; pp. 1–6. [Google Scholar] [CrossRef]
  18. Chen, T.; Gan, L.; Iqbal, S.; Jasiński, M.; El-Meligy, M.A.; Sharaf, M.; Ali, S.G. A Novel Evolving Framework for Energy Management in Combined Heat and Electricity Systems with Demand Response Programs. Sustainability 2023, 15, 10481. [Google Scholar] [CrossRef]
  19. Jamshidi, F.; Ghiasi, M.; Mehrandezh, M.; Wang, Z.; Paranjape, R. Optimizing Energy Consumption in Agricultural Greenhouses: A Smart Energy Management Approach. Smart Cities 2024, 7, 859–879. [Google Scholar] [CrossRef]
  20. Jiang, W.; Wang, X.; Huang, H.; Zhang, D.; Ghadimi, N. Optimal economic scheduling of microgrids considering renewable energy sources based on energy hub model using demand response and improved water wave optimization algorithm. J. Energy Storage 2022, 55, 105311. [Google Scholar] [CrossRef]
  21. Chen, L.; Huang, H.; Tang, P.; Yao, D.; Yang, H.; Ghadimi, N. Optimal modeling of combined cooling, heating, and power systems using developed African Vulture Optimization: A case study in watersport complex. Energy Sources Part A Recovery Util. Environ. Eff. 2022, 44, 4296–4317. [Google Scholar] [CrossRef]
  22. Yuan, Z.; Wang, W.; Wang, H.; Ghadimi, N. Probabilistic decomposition-based security constrained transmission expansion planning incorporating distributed series reactor. IET Gener. Transm. Distrib. 2020, 14, 3478–3487. [Google Scholar] [CrossRef]
  23. Eslami, M.; Moghadam, H.A.; Zayandehroodi, H.; Ghadimi, N. A New Formulation to Reduce the Number of Variables and Constraints to Expedite SCUC in Bulky Power Systems. Proc. Natl. Acad. Sci. India Sect. A Phys. Sci. 2019, 89, 311–321. [Google Scholar] [CrossRef]
  24. Li, M.; Yang, M.; Yu, Y.; Lee, W.-J. A Wind Speed Correction Method Based on Modified Hidden Markov Model for Enhancing Wind Power Forecast. IEEE Trans. Ind. Appl. 2022, 58, 656–666. [Google Scholar] [CrossRef]
  25. Kiani, H.; Hesami, K.; Azarhooshang, A.; Pirouzi, S.; Safaee, S. Adaptive robust operation of the active distribution network including renewable and flexible sources. Sustain. Energy Grids Netw. 2021, 26, 100476. [Google Scholar] [CrossRef]
  26. Parhoudeh, S.; Eguía López, P.; Kavousi Fard, A. Stochastic Coordinated Management of Electrical-Gas-Thermal Networks in Flexible Energy Hubs Considering Day-Ahead Energy and Ancillary Markets. Sustainability 2023, 15, 10744. [Google Scholar] [CrossRef]
  27. Ansari, M.R.; Pirouzi, S.; Kazemi, M.; Naderipour, A.; Benbouzid, M. Renewable Generation and Transmission Expansion Planning Coordination with Energy Storage System: A Flexibility Point of View. Appl. Sci. 2021, 11, 3303. [Google Scholar] [CrossRef]
  28. Li, S.; Fang, X.; Liao, J.; Ghadamyari, M.; Khayatnezhad, M.; Ghadimi, N. Evaluating the efficiency of CCHP systems in Xinjiang Uygur Autonomous Region: An optimal strategy based on improved mother optimization algorithm. Case Stud. Therm. Eng. 2024, 54, 104005. [Google Scholar] [CrossRef]
  29. Mehrpooya, M.; Ghadimi, N.; Marefati, M.; Ghorbanian, S.A. Numerical investigation of a new combined energy system includes parabolic dish solar collector, Stirling engine and thermoelectric device. Int. J. Energy Res. 2021, 45, 16436–16455. [Google Scholar] [CrossRef]
  30. Cao, Y.; Wang, Q.; Du, J.; Nojavan, S.; Jermsittiparsert, K.; Ghadimi, N. Optimal operation of CCHP and renewable generation-based energy hub considering environmental perspective: An epsilon constraint and fuzzy methods. Sustain. Energy Grids Netw. 2019, 20, 100274. [Google Scholar] [CrossRef]
  31. Ghadimi, N.; Sedaghat, M.; Azar, K.K.; Arandian, B.; Fathi, G.; Ghadamyari, M. An innovative technique for optimization and sensitivity analysis of a PV/DG/BESS based on converged Henry gas solubility optimizer: A case study. IET Gener. Transm. Distrib. 2023, 17, 4735–4749. [Google Scholar] [CrossRef]
  32. Chang, L.; Wu, Z.; Ghadimi, N. A new biomass-based hybrid energy system integrated with a flue gas condensation process and energy storage option: An effort to mitigate environmental hazards. Process Saf. Environ. Prot. 2023, 177, 959–975. [Google Scholar] [CrossRef]
  33. Bo, G.; Cheng, P.; Kong, D.; Wang, X.; Li, C.; Gao, M.; Ghadimi, N. Optimum structure of a combined wind/photovoltaic/fuel cell-based on amended Dragon Fly optimization algorithm: A case study. Energy Sources Part A Recovery Util. Environ. Eff. 2022, 44, 7109–7131. [Google Scholar] [CrossRef]
  34. Mir, M.; Shafieezadeh, M.; Heidari, M.A.; Ghadimi, N. Application of hybrid forecast engine based intelligent algorithm and feature selection for wind signal prediction. Evol. Syst. 2020, 11, 559–573. [Google Scholar] [CrossRef]
  35. Meng, Q.; Liu, T.; Su, C.; Niu, H.; Hou, Z. A single-phase transformer-less grid-tied inverter based on switched capacitor for PV application. J. Control Autom. Electr. Syst. 2020, 31, 257–270. [Google Scholar] [CrossRef]
  36. Abedinia, O.; Bagheri, M.; Naderi, M.S.; Ghadimi, N. A new combinatory approach for wind power forecasting. IEEE Syst. J. 2020, 14, 4614–4625. [Google Scholar] [CrossRef]
  37. Leng, H.; Li, X.; Zhu, J.; Tang, H.; Zhang, Z.; Ghadimi, N. A new wind power prediction method based on ridgelet transforms, hybrid feature selection and closed-loop forecasting. Adv. Eng. Inform. 2018, 36, 20–30. [Google Scholar] [CrossRef]
  38. Abedinia, O.; Zareinejad, M.; Doranehgard, M.H.; Fathi, G.; Ghadimi, N. Optimal offering and bidding strategies of renewable energy based large consumer using a novel hybrid robust-stochastic approach. J. Clean. Prod. 2019, 215, 878–889. [Google Scholar] [CrossRef]
  39. Khodaei, H.; Hajiali, M.; Darvishan, A.; Sepehr, M.; Ghadimi, N. Fuzzy-based heat and power hub models for cost-emission operation of an industrial consumer using compromise programming. Appl. Therm. Eng. 2018, 137, 395–405. [Google Scholar] [CrossRef]
  40. Battula, A.R.; Vuddanti, S.; Salkuti, S.R. A Day Ahead Demand Schedule Strategy for Optimal Operation of Microgrid with Uncertainty. Smart Cities 2023, 6, 491–509. [Google Scholar] [CrossRef]
  41. Zhu, L.; Zhang, F.; Zhang, Q.; Chen, Y.; Khayatnezhad, M.; Ghadimi, N. Multi-criteria evaluation and optimization of a novel thermodynamic cycle based on a wind farm, Kalina cycle and storage system: An effort to improve efficiency and sustainability. Sustain. Cities Soc. 2023, 96, 104718. [Google Scholar] [CrossRef]
  42. Dehghani, M.; Ghiasi, M.; Niknam, T.; Kavousi-Fard, A.; Shasadeghi, M.; Ghadimi, N.; Taghizadeh-Hesary, F. Blockchain-based securing of data exchange in a power transmission system considering congestion management and social welfare. Sustainability 2020, 13, 90. [Google Scholar] [CrossRef]
  43. Liu, J.; Chen, C.; Liu, Z.; Jermsittiparsert, K.; Ghadimi, N. An IGDT-based risk-involved optimal bidding strategy for hydrogen storage-based intelligent parking lot of electric vehicles. J. Energy Storage 2020, 27, 101057. [Google Scholar] [CrossRef]
  44. Cai, W.; Mohammaditab, R.; Fathi, G.; Wakil, K.; Ebadi, A.G.; Ghadimi, N. Optimal bidding and offering strategies of compressed air energy storage: A hybrid robust-stochastic approach. Renew. Energy 2019, 143, 1–8. [Google Scholar] [CrossRef]
  45. Ye, H.; Jin, G.; Fei, W.; Ghadimi, N. High step-up interleaved dc/dc converter with high efficiency. Energy Sources Part A Recovery Util. Environ. Eff. 2020, 46, 4886–4905. [Google Scholar] [CrossRef]
  46. Eltamaly, A.M. Optimal Dispatch Strategy for Electric Vehicles in V2G Applications. Smart Cities 2023, 6, 3161–3191. [Google Scholar] [CrossRef]
  47. Castillo-Calzadilla, T.; Oroya-Villalta, J.; Borges, C.E. Energy Management System for a Residential Positive Energy District Based on Fuzzy Logic Approach. Smart Cities 2024, 7, 1802–1835. [Google Scholar] [CrossRef]
  48. EURELECTRIC Publication: Flexibility and Aggregation—Requirements for Their Interaction in the Market. Available online: https://www.iene.eu/eurelectric-publication-flexibility-and-aggregation-requirements-for-their-interaction-in-the-market-p296.html (accessed on 10 July 2024).
  49. Hamidpour, H.; Aghaei, J.; Dehghan, S.; Pirouzi, S.; Niknam, T. Integrated Resource Expansion Planning of Wind Integrated Power Systems Considering Demand Response Programmes. IET Renew. Power Gener. 2019, 13, 519–529. [Google Scholar] [CrossRef]
  50. Najy, W.K.A.; Zeineldin, H.H.; Woon, W.L. Optimal Protection Coordination for Microgrids with Grid-Connected and Islanded Capability. IEEE Trans. Ind. Electron. 2013, 60, 1668–1677. [Google Scholar] [CrossRef]
  51. Mohammadi, M.; Talebpour, F.; Safaee, E.; Ghadimi, N.; Abedinia, O. Small-scale building load forecast based on hybrid forecast engine. Neural Process. Lett. 2018, 48, 329–351. [Google Scholar] [CrossRef]
  52. Hamian, M.; Darvishan, A.; Hosseinzadeh, M.; Lariche, M.J.; Ghadimi, N.; Nouri, A. A framework to expedite joint energy-reserve payment cost minimization using a custom-designed method based on mixed integer genetic algorithm. Eng. Appl. Artif. Intell. 2018, 72, 203–212. [Google Scholar] [CrossRef]
  53. Yu, D.; Ghadimi, N. Reliability constraint stochastic UC by considering the correlation of random variables with Copula theory. IET Renew. Power Gener. 2019, 13, 2587–2593. [Google Scholar] [CrossRef]
  54. Saeedi, M.; Moradi, M.; Hosseini, M.; Emamifar, A.; Ghadimi, N. Robust optimization based optimal chiller loading under cooling demand uncertainty. Appl. Therm. Eng. 2019, 148, 1081–1091. [Google Scholar] [CrossRef]
  55. Karamnejadi Azar, K.; Kakouee, A.; Mollajafari, M.; Majdi, A.; Ghadimi, N.; Ghadamyari, M. Developed design of battle royale optimizer for the optimum identification of solid oxide fuel cell. Sustainability 2022, 14, 9882. [Google Scholar] [CrossRef]
  56. Mahdinia, S.; Rezaie, M.; Elveny, M.; Ghadimi, N.; Razmjooy, N. Optimization of PEMFC model parameters using meta-heuristics. Sustainability 2021, 13, 12771. [Google Scholar] [CrossRef]
  57. Zhang, J.; Khayatnezhad, M.; Ghadimi, N. Optimal model evaluation of the proton-exchange membrane fuel cells based on deep learning and modified African Vulture Optimization Algorithm. Energy Sour. Part A Recovery Util. Environ. Eff. 2022, 44, 287–305. [Google Scholar] [CrossRef]
  58. Yuan, K.; Ma, Y.; Zhang, H.; Razmjooy, N.; Ghadimi, N. Optimal parameters estimation of the proton exchange membrane fuel cell stacks using a combined owl search algorithm. Energy Sour. Part A Recovery Util. Environ. Eff. 2023, 45, 11712–11732. [Google Scholar] [CrossRef]
  59. Guo, X.; Ghadimi, N. Optimal design of the proton-exchange membrane fuel cell connected to the network utilizing an improved version of the metaheuristic algorithm. Sustainability 2023, 15, 13877. [Google Scholar] [CrossRef]
  60. Akbary, P.; Ghiasi, M.; Pourkheranjani, M.R.R.; Alipour, H. Extracting appropriate nodal marginal prices for all types of committed reserve. Comput. Econ. 2019, 53, 1–26. [Google Scholar] [CrossRef]
  61. Rezaie, M.; Karamnejadi Azar, K.; Kardan Sani, A.; Akbari, E.; Ghadimi, N.; Razmjooy, N.; Ghadamyari, M. Model parameters estimation of the proton exchange membrane fuel cell by a Modified Golden Jackal Optimization. Sustain. Energy Technol. Assess. 2022, 53, 102657. [Google Scholar] [CrossRef]
  62. Guo, H.; Gu, W.; Khayatnezhad, M.; Ghadimi, N. Parameter extraction of the SOFC mathematical model based on fractional order version of dragonfly algorithm. Int. J. Hydrogen Energy 2022, 47, 24059–24068. [Google Scholar] [CrossRef]
  63. Duan, F.; Song, F.; Chen, S.; Khayatnezhad, M.; Ghadimi, N. Model parameters identification of the PEMFCs using an improved design of Crow Search Algorithm. Int. J. Hydrogen Energy 2022, 47, 33839–33849. [Google Scholar] [CrossRef]
  64. Han, E.; Ghadimi, N. Model identification of proton-exchange membrane fuel cells based on a hybrid convolutional neural network and extreme learning machine optimized by improved honey badger algorithm. Sustain. Energy Technol. Assess. 2022, 52, 102005. [Google Scholar] [CrossRef]
  65. Zhang, L.; Zhang, J.; Gao, W.; Bai, F.; Li, N.; Ghadimi, N. A deep learning outline aimed at prompt skin cancer detection utilizing gated recurrent unit networks and improved orca predation algorithm. Biomed. Signal Process. Control 2024, 90, 105858. [Google Scholar] [CrossRef]
  66. Liu, H.; Ghadimi, N. Hybrid convolutional neural network and Flexible Dwarf Mongoose Optimization Algorithm for strong kidney stone diagnosis. Biomed. Signal Process. Control 2024, 91, 106024. [Google Scholar] [CrossRef]
  67. Han, M.; Zhao, S.; Yin, H.; Hu, G.; Ghadimi, N. Timely detection of skin cancer: An AI-based approach on the basis of the integration of Echo State Network and adapted Seasons Optimization Algorithm. Biomed. Signal Process. Control 2024, 94, 106324. [Google Scholar] [CrossRef]
  68. Gong, Z.; Li, L.; Ghadimi, N. SOFC stack modeling: A hybrid RBF-ANN and flexible Al-Biruni Earth radius optimization approach. Int. J. Low-Carbon Technol. 2024, 19, 1337–1350. [Google Scholar] [CrossRef]
  69. Ghiasi, M.; Niknam, T.; Wang, Z.; Mehrandezh, M.; Dehghani, M.; Ghadimi, N. A comprehensive review of cyber-attacks and defense mechanisms for improving security in smart grid energy systems: Past, present and future. Electr. Power Syst. Res. 2023, 215, 108975. [Google Scholar] [CrossRef]
  70. Gabrielaitienė, I.; Bøhm, B.; Sundén, B. Dynamic Temperature Simulation in District Heating Systems in Denmark Regarding Pronounced Transient Behaviour. J. Civil Eng. Manag. 2011, 17, 79–87. [Google Scholar] [CrossRef]
  71. Parhoudeh, S.; Baziar, A.; Mazareie, A.; Kavousi-Fard, A. A Novel Stochastic Framework Based on Fuzzy Cloud Theory for Modeling Uncertainty in the Micro-Grids. Int. J. Electr. Power Energy Syst. 2016, 80, 73–80. [Google Scholar] [CrossRef]
  72. Aghaei, J.; Bozorgavari, S.A.; Pirouzi, S.; Farahmand, H. Flexibility planning of distributed battery energy storage systems in smart distribution networks. Iran. J. Sci. Technol. Trans. Electr. Eng. 2020, 44, 1105–1121. [Google Scholar] [CrossRef]
  73. Norouzi, M.; Aghaei, J.; Pirouzi, S.; Niknam, T.; Lehtonen, M. Flexible operation of grid-connected microgrid using ES. IET Gener. Transm. Distrib. 2020, 14, 254–264. [Google Scholar] [CrossRef]
  74. Pirouzi, S.; Latify, M.A.; Yousefi, G.R. Investigation on reactive power support capability of PEVs in distribution network operation. In Proceedings of the 2015 23rd Iranian Conference on Electrical Engineering, Tehran, Iran, 10–14 May 2015; pp. 1591–1596. [Google Scholar] [CrossRef]
  75. Pirouzi, S.; Aghaei, J.; Shafie-khah, M.; Osório, G.J.; Catalão, J.P.S. Evaluating the security of electrical energy distribution networks in the presence of electric vehicles. In Proceedings of the 2017 IEEE Manchester PowerTech, Manchester, UK, 18–22 June 2017; pp. 1–6. [Google Scholar] [CrossRef]
  76. Pirouzi, S.; Aghaei, J.; Niknam, T.; Farahmand, H.; Korpås, M. Exploring prospective benefits of electric vehicles for optimal energy conditioning in distribution networks. Energy 2018, 157, 679–689. [Google Scholar] [CrossRef]
  77. Dini, A.; Azarhooshang, A.; Pirouzi, S.; Norouzi, M.; Lehtonen, M. Security-Constrained generation and transmission expansion planning based on optimal bidding in the energy and reserve markets. Electr. Power Syst. Res. 2021, 193, 107017. [Google Scholar] [CrossRef]
  78. Pirouzi, S.; Aghaei, J.; Niknam, T.; Farahmand, H.; Korpås, M. Proactive operation of electric vehicles in harmonic polluted smart distribution networks. IET Gener. Transm. Distrib. 2018, 12, 967–975. [Google Scholar] [CrossRef]
  79. Dini, A.; Pirouzi, S.; Norouzi, M.; Lehtonen, M. Hybrid stochastic/robust scheduling of the grid-connected microgrid based on the linear coordinated power management strategy. Sustain. Energy Grids Netw. 2020, 24, 100400. [Google Scholar] [CrossRef]
  80. Pirouzi, S.; Aghaei, J. Mathematical modeling of electric vehicles contributions in voltage security of smart distribution networks. Simulation 2019, 95, 429–439. [Google Scholar] [CrossRef]
  81. Norouzi, M.; Aghaei, J.; Pirouzi, S.; Niknam, T.; Fotuhi-Firuzabad, M.; Shafie-khah, M. Hybrid stochastic/robust flexible and reliable scheduling of secure networked microgrids with electric springs and electric vehicles. Appl. Energy 2021, 300, 117395. [Google Scholar] [CrossRef]
  82. GAMS—Generalized Algebraic Modeling Systems. Available online: https://www.gams.com/ (accessed on 10 July 2024).
Figure 1. The framework of the proposed scheme.
Figure 1. The framework of the proposed scheme.
Smartcities 07 00139 g001
Figure 2. Studied test networks: (a) IEEE 69-bus network [4], (b) 42-node thermal network [70], (c) 4-node gas network [15].
Figure 2. Studied test networks: (a) IEEE 69-bus network [4], (b) 42-node thermal network [70], (c) 4-node gas network [15].
Smartcities 07 00139 g002aSmartcities 07 00139 g002b
Figure 3. (a) Active power, (b) reactive power, (c) thermal power, (d) gas power expected daily curve of sources, storage, and DRPs in ΔF = 0.05 p.u.
Figure 3. (a) Active power, (b) reactive power, (c) thermal power, (d) gas power expected daily curve of sources, storage, and DRPs in ΔF = 0.05 p.u.
Smartcities 07 00139 g003
Figure 4. Expected daily curve of (a) active power, (b) reactive power, (c) thermal power, (d) gas power, (e) reserve power of EHs in ΔF = 0.05 p.u.
Figure 4. Expected daily curve of (a) active power, (b) reactive power, (c) thermal power, (d) gas power, (e) reserve power of EHs in ΔF = 0.05 p.u.
Smartcities 07 00139 g004aSmartcities 07 00139 g004b
Table 1. Recent research work taxonomy.
Table 1. Recent research work taxonomy.
Ref.Market ModelUncertainty ModelingFlexibility Model
EnergyReactive PowerReserve Regulation
[6]NoNoNoRobust optimizationNo
[7]YesNoNoSBSO No
[8]NoNoNoIGDTNo
[9]NoNoNoRobust optimizationNo
[10]NoNoNoRobust optimizationNo
[11]NoNoNoRobust stochastic optimizationNo
[12]YesNoNoRobust stochastic optimizationNo
[13]NoNoNoSBSONo
[14]NoNoNoIGDTNo
[15]YesNoNoSBSONo
[16]NoNoNo-Yes
[17]NoNoNo-No
[18]NoNoNo-No
PMYesYesYesUnscented transformation (UT) methodYes
PM: Proposed model.
Table 2. EH data.
Table 2. EH data.
EHLocation (e, h, g)Source ESSDRPPED (MW)QED (MVAr)HHD (MW)GGD (MW)
16, -, -PV, WTB, EVsElectrical 0.60.300
213, -, -PV, WTB, EVsElectrical 0.40.200
323, -, - PV, WTB, EVsElectrical 0.60.300
426, -, -PV, WTB, EVsElectrical 0.40.200
517, 5, 2CHP, boiler, PV, WTTES, B, EVsElectrical and thermal 0.80.40.40
631, 11, 4CHP, boiler, PV, WTTES, B, EVsElectrical and thermal 0.80.40.40
721, 2, 3CHP, boilerTESThermal 0.40.20.30
810, 8, 3CHP, boilerTESThermal 0.40.20.30
Table 3. Proposed scheme convergence status based on the various solvers in ΔF = 0.05 p.u.
Table 3. Proposed scheme convergence status based on the various solvers in ΔF = 0.05 p.u.
ModelSolverUT Method (39 Scenarios)SBSO-Based KWM and KM (80 Scenarios)
EEL (MWh)Profit (USD)CICT (min)EEL (MWh)Profit (USD)CICT (min)
NLPIPOPT6.733253.40146947.36.733253.60189465.5
CONOPT6.913089.50172254.86.923089.90234775.2
MINOS7.172845.80204665.5Infeasible
LGOInfeasible Infeasible
LPCPLEX6.583405.70462.26.583405.90633.1
OSL6.583405.70823.66.583405.901055.2
CBC6.583405.70652.96.583405.90874.4
Table 4. Computational error of various variables in the LP model compared to the NLP model in ΔF = 0.05 p.u.
Table 4. Computational error of various variables in the LP model compared to the NLP model in ΔF = 0.05 p.u.
ModelLPNLPCalculation Error (%)
SolverCPLEXIPOPT
PES in electrical peak load hour (p.u.)2.182.232.24
QES in electrical peak load hour (p.u.)1.601.642.44
HHS in thermal peak load hour (p.u.)3.873.870
Maximum value of GGS (p.u.)12.3412.450.88
Mean value of V (p.u.)0.9620.9580.42
Mean value of σ (rad)−0.01406861−0.0140.49
Mean value of T (p.u.)0.9470.9470
Mean value of ξ (p.u.)0.9640.9630.10
Table 5. The expected profit of EHs in different proposed markets for different amounts of flexibility tolerance.
Table 5. The expected profit of EHs in different proposed markets for different amounts of flexibility tolerance.
DA MarketFlexibility Tolerance (p.u.)
00.050.100.150.200.250.300.350.40
Energy2095.42180.62224.12245.92259.82268.92273.42275.12275.1
Reactive power154.3154.3154.3154.3154.3154.3154.3154.3154.3
Reserve 1503.21526.71538.31548.91553.71555.91557.11557.81557.8
Total3752.93861.63916.73949.13967.83979.13984.83987.23987.2
Table 6. The operation indices status for various study cases and different flexibility tolerance.
Table 6. The operation indices status for various study cases and different flexibility tolerance.
IndexCase ICase II
ΔF = 0ΔF = 0.05 p.u.ΔF = 0.1 p.u.
EEL (MWh)Electrical network3.282.342.322.29
Thermal network4.473.173.153.12
Gas network01.121.111.10
Total7.756.636.586.51
MVD (p.u.)0.0920.0470.0460.044
MTD (p.u.)0.1070.0580.0570.055
MPD (p.u.)00.0390.0380.038
MOV (p.u.)00.0120.0120.013
MOT (p.u.)00.0150.0160.017
MOP (p.u.)0000
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Parhoudeh, S.; Eguía López, P.; Kavousi Fard, A. Stochastic Scheduling of Grid-Connected Smart Energy Hubs Participating in the Day-Ahead Energy, Reactive Power and Reserve Markets. Smart Cities 2024, 7, 3587-3615. https://doi.org/10.3390/smartcities7060139

AMA Style

Parhoudeh S, Eguía López P, Kavousi Fard A. Stochastic Scheduling of Grid-Connected Smart Energy Hubs Participating in the Day-Ahead Energy, Reactive Power and Reserve Markets. Smart Cities. 2024; 7(6):3587-3615. https://doi.org/10.3390/smartcities7060139

Chicago/Turabian Style

Parhoudeh, Sina, Pablo Eguía López, and Abdollah Kavousi Fard. 2024. "Stochastic Scheduling of Grid-Connected Smart Energy Hubs Participating in the Day-Ahead Energy, Reactive Power and Reserve Markets" Smart Cities 7, no. 6: 3587-3615. https://doi.org/10.3390/smartcities7060139

APA Style

Parhoudeh, S., Eguía López, P., & Kavousi Fard, A. (2024). Stochastic Scheduling of Grid-Connected Smart Energy Hubs Participating in the Day-Ahead Energy, Reactive Power and Reserve Markets. Smart Cities, 7(6), 3587-3615. https://doi.org/10.3390/smartcities7060139

Article Metrics

Back to TopTop