Abstract
This paper presents a two-layer energy management method designed for the operation of hubs within electrical and thermal smart grids. These energy hubs actively participate in both day-ahead and real time energy markets. Two-layer approach involves coordination at two distinct levels. In the first layer, the focus is on managing sources and storage equipment in collaboration with the hub operator. In the second layer, attention shifts to the interaction between the hub operator and the grid operator. The framework follows a two-stage formulation, where the first stage addresses the day-ahead operation model and the second stage pertains to real-time scheduling. In the first stage, a bi-level optimization strategy is employed. The upper level seeks to minimize the energy cost of smart grids while adhering to optimal power flow constraints, whereas the lower level aims to maximize hubs’ profit in the day-ahead energy market subject to the operational constraints of sources and storage systems represented in an energy hub model. The second stage mirrors this problem structure but uses a smaller time step and adopts the flexibility cost minimization as objective for the upper level. To simplify the bi-level optimization problem into a single-objective model, the Karush–Kuhn–Tucker (KKT) method is applied. Uncertainties of load, price of market, and renewable energy generation are modeled using the unscented transformation technique. Problem-solving is undertaken using a hybrid optimization solver that combines artificial bee colony and honey-bee mating optimization methods. Simulation results highlight the effectiveness of this approach, demonstrating its capability to enhance both economic and technical performance. Specifically, hubs achieve significant profitability and operational flexibility, leading to an 18% improvement in economic performance and a 18-27% enhancement in operational efficiency compared to traditional power flow studies.
Similar content being viewed by others
Introduction
Motivation and background
To mitigate emissions, transitioning from fossil fuels to renewable energy sources (RESs) is essential. A contemporary approach involves leveraging renewable resources, combined heat and power (CHP) units, and energy storage systems (ESSs) to tackle this challenge1. In the foreseeable future, power systems, particularly distribution systems, are expected to incorporate a growing number of these technologies. However, the complex nature of modern distribution system operations calls for innovative solutions. The smart distribution network concept suggests integrating generation units and active loads through microgrids (MGs), virtual power plants (VPPs), and energy hubs (EHs) for improved management2. Given the interdependence of energy sources, it is more effective to control them collectively rather than in isolation3. Consequently, deploying a comprehensive EH framework can help synchronize renewable and non-renewable sources with active loads to enhance efficiency compared to managing each source independently3. When connected to energy networks, EHs can significantly enhance the networks’ performance4. By improving the coordination and control of energy sources and active loads, EHs also have the potential to boost market profitability. Achieving the optimal technical and economic conditions for energy networks and centers hinges on implementing an optimal energy management system5. This system relies on two-way communication between energy sources, storage facilities, and the energy hub operator5. To avoid exceeding technical limits within energy networks, it is imperative for the hub operator to maintain consistent two-way communication with the network operator.
A substantial body of research has been dedicated to the domain of energy management in EHs. For instance, the optimal power flow model outlined in6 highlights the interconnected nature of electric and thermal energy within EH systems. The primary focus of this model is to minimize the total operational costs, which include resource utilization, carbon emissions, demand response programs (DRPs), and system maintenance. This study employs an adjustable robust optimization method to handle the uncertainties inherent in renewable energy outputs and DRPs. By leveraging duality theory principles, this optimization problem is reformulated as a mixed-integer linear programming (MILP) task, which is efficiently resolved using a commercial solver. Similarly, the research in7 proposes a scheduling framework for EHs that incorporates a tri-generative advanced adiabatic compressed air energy storage (AA-CAES) system. The approach applies a safe deep reinforcement learning (DRL) method, combining primal–dual optimization and imitation learning, to ensure both operational safety and efficiency. The process begins with the modeling and linearization of the AA-CAES system under off-design conditions, achieved through a MILP approach. Subsequently, the study presents a comprehensive safe DRL methodology, including both training and testing stages, supported by a specific case study evaluation. In8, the focus shifts to energy management strategies in grid-connected flexible EHs. This framework integrates electrical and thermal networks, where renewable energy sources and storage systems operate under the coordination of a central hub. The objective is to minimize operating costs by considering an optimal power flow model alongside the mathematical representation of flexible EHs. To address uncertainties in demand levels, energy costs, and renewable power availability, the researchers implement an unscented transformation (UT) technique. This reduces computational complexity while improving solution accuracy and computation speed, effectively capturing system flexibility and addressing uncertainty factors. Further exploration is presented in9, which examines the management of electrical and thermal networks in renewable EHs with a focus on network flexibility regulation through flexible pricing services. These hubs encompass renewable energy sources, bio-waste units (BUs), storage devices, and responsive loads. BUs simultaneously generate electrical and thermal energy. The study seeks to balance network energy costs with revenue derived from hub flexibility by minimizing cost discrepancies. Lastly, reference10 targets the management of electricity, gas, and heating networks in flexible EHs within the day-ahead (DA) energy market using a market clearing price (MCP) model. The proposed bi-level optimization framework includes a higher-level problem that maximizes EH profits while accounting for operational constraints involving power sources, storage, and responsive loads. Meanwhile, the lower-level problem calculates energy prices and evaluates how EH performance impacts both technical and economic factors tied to MCP modeling.
The involvement of grid-connected EH in DA and real-time (RT) energy markets is elaborated in Ref.11. The proposed optimization framework comprises two distinct stages. The first stage addresses EH participation in the hourly DA energy market through a two-layer energy management system, structured as a bilevel optimization problem. The second stage focuses on reducing profitability discrepancies between the DA and 5-min RT energy markets, ensuring enhanced operational alignment and financial returns. In Ref.12, a stochastic scheduling methodology for multi-energy hub systems is introduced, aimed at simultaneously optimizing the performance of energy hubs and distribution networks. This framework integrates RESs, inherently uncertain parameters, DRPs, and emissions considerations to promote efficient and sustainable system operation. Ref.13 presents a scenario-based approach to optimize EH operations under the uncertainty of wind turbine (WT) and photovoltaic (PV) system outputs. The methodology is applied in environmental health contexts across various frameworks. A k-means clustering algorithm is employed to reduce computational complexity while maintaining adequate accuracy. To solve the stochastic optimization problem, a genetic algorithm (GA) is utilized, enabling effective decision-making under uncertainty. The work in Ref.14 explores the potential of harnessing excess heat from Power-to-X technologies within future energy hubs, addressing challenges such as decarbonizing the gas sector and minimizing renewable energy curtailments. Similarly, Ref.15 adopts a power-to-gas hub model in response to these challenges. To tackle uncertainties related to RESs and electricity market prices, Ref.16 employs a robust optimization framework. Monte Carlo simulations (MCS) are applied to compare the charging loads of electric vehicles (EVs) under coordinated versus uncoordinated charging modes. Additionally, this robust optimization approach extends to evaluating hybrid electrical, thermal, and cooling energy storage systems, offering comprehensive insights into their dynamic integration within future energy hub operations. In17, the energy management approach is expressed for the multi-energy rural microgrids including renewable units, aiming to satisfy the rural electricity, heat, gas networks, and irrigation demands economically. Ref.18 presents the distributed hybrid-triggered dynamic-consensus-observer-based secondary control tailored for average voltage restoration and load current sharing in general multi-bus DC microgrids over directed networks.
Table 1 is a compilation of many research articles pertaining to the subject matter being investigated.
Research gaps and contributions
Based on the previous subsection and as it is observed in Table 1, the energy management of EHs should be focused more than before because there are the following gaps:
-
The literature mostly underlines a unified model for energy management, generation units, and active demand of EHs6,7,8,9,10,11,12,13,14,15,16. Operators of networks receive the data from power sources and loads and send commands to them. As a result, the operators manage the energy of the energy networks even though the data received by operators significantly rise and operation becomes slow. To tackle this challenge, operators of EHs need to collaborate with generation units and active demand. Moreover, operators of EHs and networks need to work together and reduce the amount of data to accelerate the operation11.
-
In less research, such as9,10,11, the economic model of EHs has been investigated with their presence in the energy or ancillary services market. However, it should be noted that since hubs contain power sources, storage devices, and responsive loads, hubs are expected to play an effective role in energy generation and storage, thus earning financial benefits from energy and ancillary services markets. In9,10, the DA market model is considered. Yet, as RESs have uncertainty, this makes the results of DA and RT operations different. Accordingly, the balance of generation and consumption may not be established in RT operation. This condition is proportional to the lack of flexibility. To compensate for this issue, it is necessary for flexible sources such as storage devices and responsive loads to address RES power fluctuations in RT operation compared to DA operation. Therefore, there is a need to present the RT operation model, which has been included in few researches such as11.
-
BUs are a category of RESs capable of generating electrical energy by utilizing environmental waste as a resource. Also, if this source is equipped with CHP technology, it can operate simultaneously in the generation of electrical and thermal energy. However, in most studies such as6,7,10,11,12,13,14,15,16, the presence of WT and PV renewable resources in EHs has been used, and in fewer researches such as8,9, the importance of using CHP-based BU in hubs has been investigated. In addition, in most researches, batteries are generally utilized as storage devices. Although this element has high efficiency and power density, its installation cost is high and it has a low useful life. Also, access to their high capacity is limited. To compensate for this issue, hydrogen storage and compressed air can be used in the hub. The cost of these elements is lower than that of batteries, their useful life is longer, and access to high capacity is possible for them. These elements are also efficient. Nonetheless, the presence of these elements has been presented in less research such as7.
-
There are various mathematical and evolutionary algorithms to solve problem of energy hub operation. But, in most studies, such as6,8,12,13,14,15,16, non-hybrid evolutionary algorithms (NHEAs) and mathematical solvers suitable for modeling the problem have been used to solve the proposed scheme. These algorithms generally have a high dispersion in the final response obtained, which reduces the reliability of the optimal solution. In addition, some research has obtained a linear approximation model for the proposed design and then obtained the optimal solution from the solutions suitable for this model. However, in this process, a significant computational error occurs for some parameters. For example, based on19, the use of linear approximation has caused energy losses in the electrical network to be calculated as zero. Also, some studies such as7 do not provide a more realistic operation model of energy networks including EHs. For instance, in some studies, only the EH model is seen, but the performance of the hub also depends on the technical parameters of the network, such as the voltage and the allowable capacity of the distribution lines. Therefore, they are more of a linear model. With increased processes for updating decision variables, it is assumed that the optimal solution obtained will have approximately unique response conditions. This is available if the Hybrid evolutionary algorithm (HEA) is used in the proposed scheme.
-
The operation of the different energy networks with EHs is specified by a high number of different uncertainties such as load and energy prices in different networks, renewable power, and energy demand of mobile storage devices. Therefore, the adoption of non-parametric methods in stochastic modeling such as scenario-based stochastic optimization (SBSO) used in some studies such as7,12,13,14,15 requires the extraction of a large number of scenarios. This makes solving the problem time-consuming. However, due to the imperative of minimizing the mathematical time needed for problem-solving tasks, using SBSO is not a good solution for modeling uncertainties. To compensate for this and provide appropriate modeling of uncertain quantities, some studies such as6,11,16 have suggested the use of robust optimization. This case includes only a single scenario called the “worst-case scenario”. Although the use of this method reduces the computational time of problem-solving, the status of several scenarios must be investigated to calculate some indicators. For example, to calculate the flexibility indices, various scenarios resulting from the uncertainty of active power generation by RESs should be taken into account8. Therefore, parametric methods like the unscented transformation (UT) method will be used in stochastic modeling because such approaches necessitate the least number of scenarios8.
This study explores the optimal integration of EHs to address previously identified limitations. As illustrated in Fig. 1, these EHs are interconnected with both electricity and heating smart grids. They incorporate RESs, such as WT and CHP-BU, alongside flexible storage solutions including hydrogen storage (HS), thermal energy storage (TES), and compressed-air energy storage (CAES). Within this framework, EHs function as bilateral coordinators, managing the interaction between TES, CHP-BU, HS, CAES, and WT. To bridge the initial research gap, a two-layer energy management system (EMS) has been implemented. This EMS governs the operation of energy networks integrated with EHs. The first layer focuses on the cooperation between generation units and active loads with the EH operator. Meanwhile, the second layer handles coordination between the EH operator and energy network operators. A two-stage optimization approach underpins this framework: the first stage addresses the DA operation of networks in the presence of hubs, while the second stage involves RT operation. Each stage nests a bilevel optimization process. During the first stage, the upper-level optimization prioritizes minimizing energy procurement costs from upstream networks, while also factoring in the optimal power flow constraints of both electrical and thermal networks. The lower-level optimization includes EH participation in energy markets, aiming to maximize hub profits in both electrical and thermal markets. This process takes into account the operational models of RESs and storage systems configured within hubs. The second stage optimization mirrors the structure of the first, but with a distinct objective, i.e. minimizing flexibility costs, in the upper-level problem. Notably, time granularity differs between stages: the first stage operates on an hourly basis, while the second adopts a 5-min resolution. Addressing uncertainties tied to renewable generation, demand load, and energy pricing represents another critical enhancement. These are modeled using the UT technique. A single-level model is derived by applying the Karush–Kuhn–Tucker (KKT) method, enabling computational efficiency. The optimization problem is then solved by integrating honey-bee mating optimization (HBMO) with an artificial bee colony (ABC) algorithm. Ultimately, this research introduces various contributions and objectives that pave the way for more robust and efficient energy management in networks with integrated EH systems. In other words, contributions and objectives are:
-
Presenting a two-stage optimization model for modeling the participation of EHs in the DA and RT energy markets to minimize the flexibility cost.
-
Considering two-layer energy management to coordinate resources and storage systems with the hub operator and to coordinate the hub operator with the operators of different networks to reduce the processing speed by the network operator through reducing the volume of data delivered to this operator,
-
Considering the capabilities of hydrogen and compressed air storage, as well as CHP-based BU in the energy hub.
-
Achieving a reliable optimal solution with low calculation time and error in the energy management of grid-connected hubs using the combined algorithm of HBMO and ABS, and
-
Using stochastic optimization based on the UT method to model uncertainties of load, renewable sources, and energy prices to reach the optimal solution in low computing time and accurate modeling of flexibility (imbalance between DA and RT operations).
“Incorporation of grid-connected EHs in energy markets” section describes the mathematical formula of the scheme, “Solution procedure” section presents solving method of the problem, “Findings and discussion” section reports the results, and “Conclusion” section summarizes the conclusions.
Incorporation of grid-connected EHs in energy markets
Hour-basis DA operation of energy networks with EHs (First stage)
The formulation of the problem is as follows:
Subject to:
Subject to:
Upper-level formulation (second layer of EMS)
The hour-basis DA operation of the energy networks with EHs is described here. Equations (1)-(13) states the problem and includes an objective function so that the minimum energy cost is reached8. Optimal power flow (OPF) equations are presented in Eqs. (2) through (13)4,8,9, while power flow equations are presented in Eqs. (2) through (7). Equations (2)-(5), which also provide the active and reactive power balance of network buses and objects passing across lines, describe the electricity network power flow20,21,22,23. Equations (6)–(7) give the heating network power flow8. Equations (8)–(13) are the operation constraints of the energy networks8,9, representing the limitation on bus voltage magnitude, apparent power of distribution lines and substations24,25,26,27, node temperature, and thermal power of heating pipelines and stations.
Lower layer (first layer of EMS)
The goal function, Eq. (14), maximizes the EHs profit in electricity and heat energy markets. EH’s profit is equal to the total of its revenues in the aforementioned markets. Energy price and power are multiplied to determine revenue in each market28. When power has a positive value, Eq. (14) gives EH’s revenue; while for its negative value, Eq. (14) gives EH’s cost. The demand and supply balances for active and heating power are denoted by Eqs. (15)-(16). In these two equations, WT and BU are considered as electrical energy producers29,30,31,32,33, and hydrogen and compressed air storages were utilized as energy storage. BU is equipped with CHP technology9, so in the thermal sector, only BU produces thermal energy. The power of RESs is a parameter34,35,36,37. Also, TES has employed used as an energy store. Equations (17)–(26) provide the operational model of the ESSs and RESs in EHs. By being equipped with CHP, BU is able to produce electrical and thermal energy at the same time. This is presented in Eq. (17), which refers to the amount of thermal power produced by BU based on its active power8. In addition, it should be noted that in the Eqs. (15) and (16), the active power generation by WT and BUs were included as parameters, the amount of which is determined based on weather data. The functioning of EESs including HS and CAES are described in Eqs. (18)–(23)7,38. HS has fuel cell (FC), electrolyzer (EL), and hydrogen tank (HT)38. The electrolyzer is active in the HS charging mode and converts the electrical energy into hydrogen39. Then hydrogen is stored in HT. In HS discharge mode, FC is active and it receives hydrogen from HT and converts it into electrical energy38. HS performance model can be seen in Eqs. (18)-(20). The capacity limits of EL and FC are given in constraints (18) and (19), respectively, and the limit on the energy stored in HT is proportional to constraint (20)39. In CAES, a motor stores electrical energy in the form of compressed air in a compressed air tank (CAT) in the CAES charging operation mode. In the discharge mode, CAES also receives a compressed air generator from the CAT and converts it into electrical energy. Following this, the performance model of CAES is in the form of Eqs. (21)–(23)7. In Eqs. (21) and (22), the motor and generator capacity limits are included, respectively. In constraint (23), the limitation of energy stored in CAT is considered7. The TES performance model is presented in Eqs. (24)–(26)1. Its mathematical model is the same as EES, with the difference that thermal power is used in Eqs. (24)–(26). Constraints (24) and (25) state the charge and discharge rate limit40,41,42,43, respectively, then the thermal energy stored in TES is limited based on (26)44. Finally, variables ϑ and μ represent Lagrange multipliers for equality and inequality equations, respectively.
5-min RT scheduling of EHs in the energy networks (second stage)
Unexpected outcomes in terms of active power may be found when weather conditions affect the output power production of power sources. As a consequence, the supply and demand balance may no longer be maintained for RT operation, indicating inadequate system flexibility9,11. As a solution, the research underlines the utilization of flexibility sources, such as ESSs1. Equations (27) minimize the unbalance profit of EHs in DA and RT markets45. This equation presents the flexibility cost. A bi-level optimization framework frames the issue. The upper level objective function is provided in Eq. (27), and its constraints include the OPF restrictions on the energy networks are shown in (2)–(13). This statement is expressed in (28). Equations (29)–(30) are used in the lower-level model to determine EH’s profit in the RT market. The model provided by Eqs. (14)–(15) is analogous to the problem as described in these equations. Finally, it should be noted that minimization of the unbalance between RT and DA operations or flexibility cost based on Eq. (27) can achieve 100% flexible EHs in energy networks so that if F3 is zero, it means that flexibility sources including storage systems in EH resolve the oscillation of RES active/heat power in RT operation compared to DA operation. Therefore, in both modes of operation, EHs will always have the same power. This equates to 100% EH adaptability across various networks. As a result, the EHs are more flexible the lower the F3 value. On the other hand, it is anticipated that by decreasing F3, the outcomes of the RT and DA procedures for EH would be comparable.
Subject to:
Subject to:
The frequency of phenomena is determined using prediction data. The pace of the aforementioned occurrences, and eventually the production of renewable energy, does not have a deterministic value and is associated by uncertainty since the forecast of a datum is accompanied by an error. This leads to different day-ahead and real-time operations of a system with renewable resources. Therefore, generation and consumption balance may not be established in real time operation. These conditions are corresponding to the flexibility lack of the system. Therefore, numerous studies, including45, advise using storage devices or demand response strategies in addition to renewable sources. A CHP-based BU is part of an energy hub. The thermal power in a BU is a coefficient of the active power of the BU based on Eq. (17). This also leads to a decrease in the flexibility of the energy hub in the thermal sector. Thermal storage is used with BU to address this problem. These substances have the capacity to regulate their thermal power. They will thus be able to increase the thermal part of the energy hub’s flexibility. It should be noted that this issue will be comprehensible by providing an adequate formulation that considers the system’s adaptability. Equation (27) was used in this instance. If the value of F3 is zero, this equation predicts that real-time and day-ahead operations will provide results that are quite comparable. This issue corresponds to the conditions of high flexibility in the proposed system.
Uncertainty modeling
Uncertainty parameters of the problems (1)-(3) include energy price, ζE, ζH, ξE, and ξH, load, PC, QC, and HC; renewable power, PWT and PBU. These uncertainties are modeled in this study in a stochastic framework using the UT method. This method needs fewer executions than Monte Carlo Simulation (MCS) and analytic methods, helping to reduce execution time. Additionally, this approach to modeling uncertainty does not need any assumptions. The UT approach also has the benefit of being able to handle nonlinear transitions8,9 and accurately estimate the probability distribution function (PDF) while simplifying the coding procedure. The stochastic uncertainty parameters are likewise modeled using this way. Parameter n is the dimension of the vector of input uncertainty parameters (U). In this study, n = 9 is assumed. So, there are 2n + 1 = 19 scenarios, with n = 9. There is no necessity to decrease the number of scenarios in this methodology due to the limited number of scenarios. Further information regarding this methodology can be found in the publication referenced8,9.
The execution step in these issues is minimal. Therefore, the real-time market execution stage in the suggested strategy takes roughly 5 min. As a result, it is essential to find a quick computational solution. The magnitude of the issue is one aspect that influences how long it takes to compute. This problem causes the problem’s volume to grow, which may require a lengthy calculation and fall short of the operator’s objectives. The worst-case scenario is the sole possible outcome for this approach. Since this technique has a scenario and produces a robust solution16, it is anticipated that it will take less time to solve the issue than stochastic optimization. However, it should be emphasized that the flexibility of the issue is also taken into account in the suggested approach based on Eq. (27). Analyzing various scenarios of renewable energy production is required to determine the precise condition of flexibility. As a result, robust optimization cannot appropriately assess the flexibility issue. This work applies the UT approach to account for the aforementioned circumstances. The stochastic optimization process used here has the fewest possible situations. As a result, it is anticipated to have a short computation time, and using this approach, the level of flexibility may be thoroughly examined.
Solution procedure
Single-level formulation
A bi-level formulation has been adopted to structure the problems (1)-(26) and (27)-(30). In conventional methods, a single-level model used to found an optimal solution46. The current study incorporates the KKT method to realize this46. The lower level must contain the lower level confined by the KKT technique in order to offer the single-objective modeling of the issue23. In KKT model, The Lagrangian function (L) of the lower level, which is determined in Eqs. (14)-(15) or (29)-(30), equals the sum of its objective function and penalty functions47,48,49,50,51. The penalty functions for constraints a ≤ b and a = b are given by μ.max(0, a—b) and ϑ.(b—a), respectively46.
Constraints found by the KKT method are obtained by taking the derivative of the Lagrangian function with respect to its variables (P and H in model (14)-(26) or (29)-(30), μ, and ϑ) equal to zero46. Equations (31)-(62) shows the single-level formula of the problem described by (1)-(26). The upper level is expressed using Eqs. (31)-(32). Constraints (33)-(41) is obtained by taking the derivative of the Lagrange function with respect to the primal variable of the lower level (PH, HH, PGe, PMo, PEL, PFC, HCH, HDCH) equal to zero. The equation \(\frac{\partial L}{{\partial \vartheta }} = 0\) is used to form constraint (42), where it includes the equality constraints in the lower-level problem such as (15)-(17). The result of \(\frac{\partial L}{{\partial \mu }} = 0\) (μ is the Lagrange multiplier of an inequality constraint, i.e., a ≤ b) is subject to two conditions, where constraint (43) is found concerning its first condition. Constraint (43) contains inequality limits (18)-(26). \(\mu .\left( {a - b} \right) = 0\) is achieved according to the second condition. Equations (44)-(61) present the second condition of \(\frac{\partial L}{{\partial \mu }} = 0\). Finally, Eq. (62) gives the boundary on Lagrange multipliers46.
Subject to:
Eventually, based on “5-min RT scheduling of EHs in the energy networks (second stage)” section , the single-level model of the 5-min RT operation problem for the proposed scheme is described as follows:
Subject to:
Solution method based on HEA
This paper uses a combined HBMO52 and ABC53 algorithm and finds an optimal reliable solution. When more steps are required for updating decision variables in evolutionary algorithms54, finding an optimal solution55,56,57,58,59 with a small standard deviation will be more likely, noting that two updating stages are used for decision variables, i.e. HMBO phase and ABC process. Decision and dependent variables are two types of variables used for the problem60. The decision variables61,62,63 include PGe, PMo, PEL, PFC,, HDCH and HCH, and other parameters are dependent variables64,65,66. To solve the problem, the hybrid HBMO + ABC algorithm specifies N (size of the population) random values for decision variables based on (18)-(19), (21)-(22), (24)-(25). Dependent variables that include PS, QS, HS, PL, QL, HL, V, ϕ, T, PH, HH, HBU, μ and ϑ are found by constraints (2)-(7), (33)-(42), and (44)-(62). To provide a solution to the constraints, the present study employs the Newton–Raphson method. Using these variables, the fitness function (FF) is found. The fitness function (66) is calculated by adding the objective function of the main problem (31) and the penalty function (PeF) of constraints (8)-(13), (20), (23) and (26)67,68 associated with the operational constraints on energy networks (1i)-(1r), and ESSs energy limits. The penalty function for the constraint a ≤ b will be α.max (0, a − b), where α ≥ 0 shows the Lagrangian multipliers. α is assumed as decision variables. The penalty function at the optimal point is expected to be zero, meaning that the aforementioned constraints are met. Convergence conditions are assumed to be available after a known maximum number of iterations (itermax). Eventually, the suggested solution method based on HBMO + ABC is described in Algorithm 1. Finally, to implement the proposed design for energy networks, a smart platform needs to be installed in these networks. This platform incudes smart algorithms and telecommunication devices69,70,71,72,73.
Findings and discussion
Case study
In general, the proposed design model in the second section can be applied to various data from energy networks, renewable resources, and various storage devices. The system has a 9-bus electrical network and a 7-node thermal grid, as shown in Fig. 28. One MVA and one MW serve as the base power for the electricity and heating networks, correspondingly. In addition to data on the energy networks8, also includes information on distribution lines and conduits. Peak electricity and heat demand data are provided in8. The load level during other hours is determined by multiplying load factor by peak load74,75,76,77,78. Figure 39 depicts the daily load factor curve for electricity and thermal networks. Bus 1 in the electrical network is a reference bus where the voltage amplitude is equal to 1 p.u. and the voltage angle is zero. Also, Node 1 in the thermal network is considered as a reference node, and the temperature in this node is 1 p.u. The limit of the temperature and voltage amplitude is in the range of [0.9, 1] p.u.79,80,81,82,83. Electricity price during (1:00–7:00), (8:00–16:00, and 23:00–00:00) and (17:00–22:00) is 17.6, 26.4 $/MWh and 33 $/MWh. The price of heat between 1:00 and 4:00 and between 14:00 and 00:00 (5:00–15:00) is 22 (30) $/MWh9.
The test system with EHs, (a) electrical network, (b) thermal grid8.
Daily curve of load factor and active power produced by RESs9.
A system with 7 EHs is shown in Fig. 2. Only electrical equipment, such as WT, HS, and CAES, is present in EHs 1–3 and 5. CHP-based BU, CAES, and TES are located in other hubs. In hydrogen storage, HT has a capacity of 2.5 MW, and the amount of initial energy and the minimum energy that can be stored in it is 10% of the capacity of HT. This storage has EL and FC with a capacity of 1 MW, and their efficiency is 78% and 62%, respectively38. In CAES, there is a 1 MW motor and generator, whose efficiency is set at 81%7. The maximum energy that can be stored in CAT, the initial energy, and the minimum energy that can be stored in it are 2.5 MWh, 0.25 MWh, and 0.25 MWh, respectively. In TES, the charging and discharging rate is 1 MW. The charging and discharging efficiency is assumed to be 80%, and its capacity is 2.5 MWh. Its initial and minimum energy is 10% of TES capacity1. The turbine, thermal, and loss efficiency in CHP-based BU is 40%, 40%, and 8% respectively1,9. The capacity of WT and BU is 0.5 MW and 0.5 MW, respectively. Figure 2 shows the EH installation locations inside the energy networks. The power generation rate times the size of the RESs can be used to calculate the RESs hourly active power generation84,85,86,87,88. The amount of power generation for BU and WT for a day is shown in Fig. 39.
Results
The problem was implemented in MATLAB software and the following results were found for different cases.
HEA convergence behavior
Different solvers are employed here, including differential evolution (DE)89, sine cosine algorithm (SCA)90, ABC, HBMO, and the HBMO + ABC algorithm so that the suggested management system is validated52,53,89,90. To find statistical indices like the standard StD of the objective function (1), each algorithm is executed twenty times. Table 2 lists the results. In the final convergence iteration (4000th iteration), the hybrid HBMO + ABC algorithm provides the optimal solution (lowest F1 and F3 and maximum F2). According to Table 2, this algorithm converges rapidly and reaches the convergence point in 113.2 s on the 732nd iteration. However, the same parameters for other solvers required more than one thousand iterations and 125 s, respectively. The HBMO + ABC algorithm has a StD of 0.95%, as is the least amount amongst those of DE, SCA, ABC, and HBMO solvers. Correspondingly, a negligible dispersion is obtained in the response of the hybrid algorithm and it provides a roughly unique response. As per the findings, the hybrid HBMO + ABC algorithm quickly convergences, and needs fewer iterations, shorter processing time, and fewer unique response conditions, which corresponds to the fourth novelty in section I.D. To elucidate, from the perspective of network operators who are seeking optimal planning of power sources and ESSs, the utilization of HEA is a novelty because HEA ensures that a precise and efficient solution will be obtained, as outlined in Table 2.
The problem under study is non-convex and conventional solvers find a local optimum solution for it. The hybrid HBMO + ABC algorithm achieves the optimal point compared to DE, SCA, ABC, and HBMO. As a result, it finds a suboptimal point. Furthermore, the suggested algorithm has a lower StD than its counterparts. As a result, it is better than the other solvers in coming up with original solutions. The distinct procedures used to update the variables used in decision-making, as well as the consideration of different arrangements and the merging of other algorithms, as indicated by the conditions mentioned, can be credited for the superiority of the HBMO + ABC algorithm over NHEAs for the problem under investigation.
In Table 2, the results are presented for two types of uncertainty modeling; in one case, the UT method is used, and in the other, the SBSO method is examined for different scenarios. In the SBSO method, MCS first produces a large number of scenarios. In each scenario, the amount of uncertainty is determined based on their mean and standard deviation values. Then, the normal probability function is used to calculate the probability of the selected uncertainty values. The probability of each generated scenario (σ0) is equal to the product of the probability of uncertainties in this scenario. Then Kantorovich method is selected as a scenario reduction technique, which applies those scenarios to the problem that have the least distance to each other. The details of this method are presented in91. Finally, the probability of each new scenario is equal to σ0 value of this scenario divided by the sum of σ0 for the selected scenarios. In this section, MCS produces 2000 scenarios. In Table 2, the results of the HBMO + ABC solver are presented for different number of scenarios obtained from the Kantorovich method. As can be seen, if the number of scenarios is low, the obtained solution is much more different than the results of UT, but in the case of high number of scenarios for SBSO, the obtained solution has a slight difference with the results of UT. In other words, the UT method has been able to obtain the reliable optimal solution with a low number of scenarios, but this is obtained for SBSO with a high number of scenarios. Following that, the computing time in UT is much lower than SBSO, which indicates the ability of the latest innovation in section I.D
Two-layer EMS potential in the energy networks with EHs
In this part, the potential and ability of three EMS models is presented on the energy networks that contain EHs.
-
Uncoordinated model (UM) of generating units and storage systems in the two-layer EMS: In this method, operators separately control the generation units and ESSs. Thus, the problem described in “Incorporation of grid-connected EHs in energy markets” section is solved independently for each element of the EHs. Broadly speaking, to check the potential of the CHP-based BU, Eqs. (1)–(26) incorporate the model of CHP-based BU only and excludes the models of the rest of the equipment80.
-
Coordinated model (CM) of ESSs and generation units in a two-layer EMS: In this method, an EH is utilized to coordinate storage systems and generating units. Operators of EHs, who manage power sources and ESSs, collaborate with operators of the energy networks so that the second layer of the EMS is realized. The mathematical description is analogous to that of the problem described in “Incorporation of grid-connected EHs in energy markets” section.
-
Coordinated model (CM) of generating units and ESSs in a single-layer EMS: In this situation, it is assumed that energy network operators coordinate the EHs’ equipment with one another. The modeling of this case in the DA operation consists of an objective function (1) and constraints of the problem given in Eqs. (2)–(13) and (15)–(26). Correspondingly, the objective function (14) is not included in the problem (1)–(26), and the rest of the equations structure a single-stage modeling. The same situation is considered in the description given by Eqs. (27)–(30).
Table 3 and Fig. 4 contain the results obtained. In the DA and RT energy markets, the CM method obtains profit of $402.31 and $404.09 for EHs, respectively. In the uncoordinated model, the unbalance function given by Eq. (27) between these markets is $27.18 (367.76 – 340.58), whereas in the coordinated model, it is reduced to $11.78. The difference between EHs’ profit in coordinated and uncoordinated models for DA and RT energy markets is $61.73 (402.31 – 340.58) and %46.33 (414.09 – 367.76). Comparing the CM approach with single- and two-layer EMS illustrates that profits of generation units and ESSs in the EH are not very different. Table 3 shows that this is negligible compared to the profit achieved in the markets. Nonetheless, the time spent to solve the problem for the single-layer EMS is approximately 62% ((183.1–113.2)/113.2) greater than that in the two-stage EMS. Also, in comparison to the single-layer EMS, the two-layer EMS can provide a model of the objectives of EHs within the objective function of the lower layer. Thus, according to Table 3 and the above discussion, the CM scheme for generation units and storage related to the two-layer EMS is better than other EMS models from economic and computational time aspects. When the two-layer EMS is implemented, EHs may benefit economically from a range of load levels (LLs), as shown in Fig. 4. Additionally, the amplitude of the imbalance function (27) within the aforementioned markets increases in proportion to the augmentation of the LL.
EHs operation
According to Fig. 5, which depicts the daily power curve for the market-integrated EHs, the CAESs and HSs are in the charging mode when the EHs create negative active power between 1:00 and 8:00. The cost of electricity is cheap at this season, resulting in increased profits for EHs. Electricity sources and ESSs inject electricity energy into the electrical network from 9:00 to 0:00 since power is positive during this period, providing more advantage. Due to the high cost of energy during the hours of 17:00–00:00, RESs inject power into the electrical grid. In the all hours, EHs inject heat power into the heating network (Fig. 5b). Due to the low price of heat power during 1:00–4:00 and 16:00–0.00, the TES is in charging mode. It injects heat power into the heating network together with the BU between the hours of 8:00 and 15:00 and 23:00 and 0:00 in order to increase profits for EHs.
Figure 6 depicts the daily profit curve for EHs. The profitability is determined by the pricing of active and heat power. According to Fig. 5, the EHs experience a loss in the markets from 1:00 to 8:00 due to the low levels of active power and heat power. On the other hand, profit exhibits a positive trend during different periods. Additionally, there is a greater disparity between the DA and RT operations specifically between the hours of 12:00 and 15:00 in terms of active power and profit generated by EHs. The lack of power control in RESs leads to inaccuracies in predicting power output, resulting in an imbalance. As is seen in Fig. 3, RESs contribute a significant amount of power to the energy EHs. Consequently, the disparity between DA and RT operations is expected to be more pronounced during these specific hours compared to other periods. Additionally, Figs. 5b demonstrate that the distance between the scheduling of DA and RT remains constant throughout the entire operation period for the heat power of EHs.
The energy networks operation
The values of the operation indices for electricity and heat networks are shown in Fig. 7. Two case studies—the power flow study (Case I) and the proposed design (Case II)—use various LL values for the two-layer EMS. Case I makes the assumption that there are no energy hubs linked to energy networks. But in Case II, the networks are linked to energy hubs, and their energy management is based on the definitions given in "Incorporation of grid-connected EHs in energy markets" and "Solution procedure" sections. Equation (1)'s predicted energy cost for the energy networks is shown in Fig. 7, together with the predicted energy loss (the discrepancy between the predicted energy supply and demand), maximum voltage drop (MVD), maximum temperature drop (MTD), maximum overvoltage (MOV), and maximum over-temperature (MOT) with regard to RT operation. As per Fig. 7a, the suggested scheme reduces the operation cost of the energy networks by roughly 18.3% ((4150—3390)/4150) during the increased load with LL = 130% compared to that in Case I. Also, the expected energy loss, MVD, and MTD values are reduced by about 20%, 27%, and 18% compared to Case I, as shown in Figs. 7b–c. The realization of these circumstances, as shown in Fig. 7d, however, requires a nearly 0.006 and 0.008 p.u. increase in MOV and MOT. These parameters are below their 0.1 p.u. (1.1—1) acceptable threshold. Due to a decrease in the energy demand of passive loads, these indices for a lower LL are more advantageous than in the scenario when LL = 130%. In other words, it should be noted that in Case II, with the increase in load level, the amount of energy consumed by passive loads increases; therefore, the amount of cost, energy loss, MVD, and MTD rises. Nevertheless, the amount of MOV and MOT decreases.
Conclusion
This paper introduces a two-layer energy management framework for electrical and thermal smart grids integrated with storage-based renewable energy hubs. These hubs actively participate in both the day-ahead and real-time energy markets. The proposed scheme is structured as a two-stage optimization model. In the first stage, a bievel formulation is implemented. The upper level focuses on minimizing the energy costs of the networks while adhering to optimal power flow constraints. The lower level aims to maximize the profits of energy hubs in the day-ahead market by factoring in the operational dynamics of energy sources and storage systems. The second stage addresses a similar optimization problem; however, in this stage, the objective function for the upper level shifts to minimizing the flexibility costs. To simplify this nested structure, the KKT method is applied to derive a single-level model. Additionally, the UT method is employed to account for uncertainties in load demand, renewable power generation, and energy prices. For solving the model, a hybrid algorithm combining ABC and HBMO is deployed. Numerical results demonstrate that this hybrid solver outperforms non-hybrid algorithms by achieving more optimal solutions in shorter computational times with fewer convergence iterations. Moreover, this algorithm had a lower standard deviation, which was around 0.95%. This means that the mentioned algorithm almost has a unique solution. UT method compared to SBSO required a much lower number of scenarios, which resulted in reducing the calculation time. There are greater advantages when managing generating units and active demand together, or by employing an EH, than when managing both markets independently. It is shown that compared to the single-stage EMS model, the two-stage EMS design is more computationally efficient. The suggested solution efficiently reduces the flexibility cost. The suggested design demonstrates improvements in energy cost, energy loss, MVD, and MTD of 18%, 20%, 27%, and 18% above the results of power flow studies by taking into account the permitted limits for overvoltage, and over-temperature. This proposal was successful in securing very flexible circumstances for the suggested plan. In addition to gaining financial advantages from the energy market for sources and storage devices in the form of energy hubs, the suggested strategy also managed energy hubs to create a suitable technological and economic environment for energy networks.
The proposed plan does not consider the presence of electric vehicles. However, these vehicles provide their energy through connection to the power system. Therefore, they are new loads in the power system. This issue is considered as future work in the proposed plan. Demand side management also has significant potential in improving the economic and technical conditions of energy networks. The proposed plan is considered as future work by considering demand response. In the proposed plan, only the operational status of energy hubs in the energy market and various networks has been examined. However, hubs come with various resource and storage planning costs. In other words, there is a need to consider the costs of construction, maintenance, and operation of the hub in the proposed plan. This issue was considered as future work.
Data availability
Data availabilityAll data generated or analyzed during this study are included in this published article, Section 4.1. Also, the datasets used and/or analyzed during the current study available from the corresponding author on reasonable request.
Abbreviations
- b, Γ B :
-
Indication and set of electrical buses
- m, Γ T :
-
Indication and set of heat nodes
- h, Γ H :
-
Indication and set of energy hub (EH)
- l :
-
Auxiliary indication of buses and nodes
- o :
-
Reference bus (node)
- τ , Γ OH :
-
Indication and set of operation time with step of 1-h
- ω , Γ S :
-
Indication and set of thermal nodes
- \(\tau^{\prime},\Gamma_{{OH^{\prime}}}\) :
-
Indication and set of operation time with step of 5-min
- A E , A H :
-
Incidence matrices of EH and electrical bus, and thermal node and EH
- B E , B H :
-
Incidence matrices of line and bus in electrical grid, and heat line and node
- b L , g L :
-
Suscepatance and conductance of electrical line in per-unit (p.u.)
- \(\underline{E}_{{}}^{CAT} ,\overline{E}^{CAT}\) :
-
Lower and upper energy of compressed air tank (CAT) in p.u.
- \(\underline{E}_{{}}^{HT} ,\overline{E}^{HT}\) :
-
Lower and upper energy of hydrogen tank (HT) in p.u.
- E HT(0), E T(0), E CAT(0):
-
The initial energy of hydrogen storage (HS), thermal energy storage (TES), and compressed air energy storage (CAES), in p.u.
- \(\underline{E}_{{}}^{T} ,\overline{E}^{T}\) :
-
Lower and upper energy stored in TES (p.u.)
- \(\overline{H}^{L} ,\overline{H}^{S}\) :
-
The maximum heat power of pipelines and stations in heat grid (p.u.)
- P BU , P WT :
-
Active power of bio-waste unit (BU) and wind turbine (WT) in p.u.
- P C , Q C , H C :
-
Active, reactive, and heat loads (p.u.)
- \(\overline{S}_{{}}^{L} ,\overline{S}_{{}}^{S}\) :
-
The maximum apparent power of the electrical substation and line (p.u.)
- \(\underline{T} ,\overline{T}\) :
-
Lower and upper value of temperature (p.u.)
- \(\underline{V} ,\overline{V}\) :
-
Lower and upper value of voltage magnitude (p.u.)
- χ DCH , χ CH :
-
Discharge and charge rates of TES (p.u.)
- χ EL , χ FC :
-
Capacity of electrolyzer (EL) and fuel cell (FC) in HS (p.u.)
- χ Ge , χ Mo :
-
Capacity of generator and motor in CAES (p.u.)
- η DCH, η CH :
-
Discharging and charging efficiencies of TES
- η FC , η EL :
-
Efficiency of FC and EL in HS
- η Ge , η Mo :
-
Generator and motor efficiency in CAES
- η t , η l , η h :
-
Turbine, loss, and heat efficiencies in the combined heat and power (CHP)-based BU
- σ :
-
Probability of scenario
- \(\varpi\) :
-
Thermal constant of pipeline (p.u.)
- ξ E , ξ H :
-
Price of electricity, and heat energy purchased from the upstream network ($/MWh)
- ζ E , ζ H :
-
Energy prices in day-ahead electricity, and heating energy markets for EHs ($/MWh)
- \(\zeta^{\prime E} ,\zeta^{\prime H}\) :
-
Energy prices in real-time electricity, and heating energy markets for EHs ($/MWh)
- F 1 :
-
The overall cost of energy in electricity and heating networks ($)
- F 2 :
-
EHs profit in the DA energy market ($)
- F 3 :
-
The function of unbalance for DA and RT energy markets (flexibility cost) in $
- F 4 :
-
EHs profit in the RT energy market ($)
- H BU :
-
Heat power of the CHP-based BU (p.u.)
- H DCH , H CH :
-
Heat charging and discharging power of TES (p.u.)
- P FC , P EL :
-
Active power of FC and EL in HS (p.u.)
- P Ge , P Mo :
-
Active power of generator and motor in CAES (p.u.)
- P H , H H :
-
Active, and heat power of EHs (p.u.) in day-ahead scheduling
- \(P^{\prime E} ,H^{\prime H}\) :
-
Active, and heat power of EHs (p.u.) in real-time scheduling
- P L , Q L , H L :
-
Active and reactive power of electrical distribution line, and heat power of distribution pipeline (p.u.)
- P S , Q S , H S :
-
Active and reactive power of electrical distribution substation, and heat power of heating station (p.u.)
- T :
-
The temperature of a heat node (p.u.)
- V, ϕ :
-
Voltage magnitude (p.u.), and voltage angle (rad)
- ϑ , μ :
-
Lagrange multipliers
References
Homayoun, R. et al. Multi-objective operation of distributed generations and thermal blocks in microgrids based on energy management system. IET Gen. Trans. Dist. 15(9), 1451–1462 (2021).
Selvam, M. M., Gnanadass, R. & Padhy, N. P. Initiatives and technical challenges in smart distribution grid. Renew. Sustain. Energy Rev. 58, 911–917 (2016).
Javadi, M. S. et al. Optimal operation of energy hubs considering uncertainties and different time resolutions. IEEE Trans. Ind. Appl. 56(5), 5543–5552 (2020).
Shabanpour-Haghighi, A. & Seifi, A. R. Energy flow optimization in multicarrier systems. IEEE Trans. Ind. Inf. 11, 1067–1077 (2015).
Aman, S., Simmhan, Y. & Prasanna, V. K. Energy management systems: State of the art and emerging trends. IEEE Commun. Mag. 51(1), 114–119 (2013).
Lu, X., Li, H., Zhou, K. & Yang, S. Optimal load dispatch of energy hub considering uncertainties of renewable energy and demand response. Energy 262, 125564 (2023).
Daneshvar-Garmroodi, A., Nasiri, F. & Haghighat, F. Optimal dispatch of an energy hub with compressed air energy storage: A safe reinforcement learning approach. J. Energy Storage 57, 106147 (2023).
Zhang, X. W., Yu, X., Ye, X. & Pirouzi, S. Economic energy managementof networked flexi-renewable energy hubs according to uncertainty modeling by the unscented transformation method. Energy 278, 128054 (2023).
Akbari, E., Mousavi-Shabestari, S. F., Pirouzi, S. & Jadidoleslam, M. Network flexibility regulation by renewable energy hubs using flexibility pricing-based energy management. Renew. Energy 206, 295–308 (2023).
Farsani, A. T., Joorabin, M. & Mortazavi, S. S. Participation of energy hubs in the market clearing price-based energy market considering generation and consumption uncertainty modeling. IET Renew. Power Gen. 17(8), 2079–2100 (2023).
Nafehfeshan, M. J., Bahmani-Firouzi, B. & Nafar, M. Two-stage participation of grid-connected energy hubs in day-ahead and real-time energy markets based on robust modeling of uncertainties. Int. J. Energy Res. 2023, 1–17 (2023).
Thang, V. V., Ha, T., Li, Q. & Zhang, Y. Stochastic optimization in multi-energy hub system operation considering solar energy resource and demand response. Int. J. Electr. Power Energy Syst. 141, 108132 (2022).
Noorollahi, Y., Golshanfard, A. & Hashemi-Dezaki, H. A scenario-based approach for optimal operation of energy hub under different schemes and structures. Energy 251, 123740 (2022).
Koumparakis, C., Kountouris, I. & Bramstoft, R. Utilization of excess heat in future Power-to-X energy hubs through sector-coupling. Appl. Energy 377, 124098 (2025).
Rukavina, F., Šundrica, M., Karneluti, A. & Vašak, M. Joint optimal sizing and operation scheduling of a power-to-gas hub based on a linear program. Appl. Energy 379, 124849 (2025).
Aslani, M., Mashayekhi, M., Hashemi-Dezaki, H. & Ketabi, A. Robust optimal operation of energy hub incorporating integrated thermal and electrical demand response programs under various electric vehicle charging modes. Appl. Energy 321, 119344 (2022).
Li, W., Zou, Y., Yang, H., Fu, X. & Li, Z. Two stage stochastic Energy scheduling for multi energy rural microgrids with irrigation systems and biomass fermentation. IEEE Trans. Smart Grid. 16(2), 1075–1087 (2024).
Li, X. et al. Distributed hybrid-triggered observer-based secondary control of multi-bus DC microgrids over directed networks. IEEE Trans. Circuits Syst. I: Regular Pap. 72(5), 2467–2480 (2025).
Pirouzi, S. Network-constrained unit commitment-based virtual power plant model in the day-ahead market according to energy management strategy. IET Gener. Transm. Distrib. 19(1), 1–12 (2023).
Jiang, W. et al. 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 55, 105311 (2022).
D, M. et al. Blockchain-based securing of data exchange in a power transmission system considering congestion management and social welfare. Sustainability 13(1), 90 (2020).
Chen, L. et al. Optimal modeling of combined cooling, heating, and power systems using developed African vulture optimization: A case study in watersport complex. Energy Sourc., Part A: Recov., Util. Environ. Effects 44(2), 4296–4317 (2022).
Yuan, Z. et al. Probabilistic decomposition-based security constrained transmission expansion planning incorporating distributed series reactor. IET Gen., Trans. Distrib. 14(17), 3478–3487 (2020).
Yu, D. & Ghadimi, N. Reliability constraint stochastic UC by considering the correlation of random variables with Copula theory. IET Renew. Power Gener. 13(14), 2587–2593 (2019).
Eslami, M. et al. A new formulation to reduce the number of variables and constraints to expedite SCUC in bulky power systems. Proc. Natl. Acad. Sci., India Sect.: Phys. Sci. 89, 311–321 (2019).
Nejad, H. C. et al. Reliability based optimal allocation of distributed generations in transmission systems under demand response program. Electric Power Syst. Res. 176, 105952 (2019).
Ghiasi, M. et al. Enhancing power grid stability: Design and integration of a fast bus tripping system in protection relays. IEEE Trans. Consum. Electron. 71(1), 561–570 (2024).
Dini, A., Pirouzi, S., Norouzi, M. A. & Lehtonen, M. Grid-connected energy hubs in the coordinated multi-energy management based on day-ahead market framework. Energy 188, 116055 (2019).
Abedinia, O. et al. Optimal offering and bidding strategies of renewable energy based large consumer using a novel hybrid robust-stochastic approach. J. Clean. Prod. 215, 878–889 (2019).
Chang, Le., Zhixin, Wu. & 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. 177, 959–975 (2023).
Leng, H. et al. A new wind power prediction method based on ridgelet transforms, hybrid feature selection and closed-loop forecasting. Adv. Eng. Inf. 36, 20–30 (2018).
Mir, M. et al. Application of hybrid forecast engine based intelligent algorithm and feature selection for wind signal prediction. Evol. Syst. 11(4), 559–573 (2020).
Bo, G. et al. Optimum structure of a combined wind/photovoltaic/fuel cell-based on amended Dragon Fly optimization algorithm: a case study. Energy Sourc., Part A: Recov., Util., Environ. Effects 44(3), 7109–7131 (2022).
Zhu, L. et al. 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. 96, 104718 (2023).
Abedinia, O. et al. A new combinatory approach for wind power forecasting. IEEE Syst. J. 14(3), 4614–4625 (2020).
Mehrpooya, M. et al. Numerical investigation of a new combined energy system includes parabolic dish solar collector, Stirling engine and thermoelectric device. Int. J. Energy Res. 45(11), 16436–16455 (2021).
Meng, Q. et al. A single-phase transformer-less grid-tied inverter based on switched capacitor for PV application. J. Control, Autom. Electr. Syst. 31, 257–270 (2020).
Karami, M., Zadehbagheri, M., Kiani, M. J. & Nejatian, S. Retailer energy management of electric energy by combining demand response and hydrogen storage systems, renewable sources and electric vehicles. Int. J. Hydrog. Energy 48, 18775–18794 (2023).
Basem, A. Optimizing serpentine PEM fuel cell performance: AI-enhanced multi-objective analysis. Res. Eng. 25, 104411 (2025).
Cao, Y. et al. Optimal operation of CCHP and renewable generation-based energy hub considering environmental perspective: An epsilon constraint and fuzzy methods. Sustain. Energy, Grids Netw. 20, 100274 (2019).
Cai, W. et al. Optimal bidding and offering strategies of compressed air energy storage: A hybrid robust-stochastic approach. Renew. Energy 143, 1–8 (2019).
Liu, J. et al. An IGDT-based risk-involved optimal bidding strategy for hydrogen storage-based intelligent parking lot of electric vehicles. J. Energy Storage 27, 101057 (2020).
Ghadimi, N. et al. 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., Trans. Distrib. 17(21), 4735–4749 (2023).
Eladeb, A. et al. Eco-reliable operation based on clean environmental condition for the grid-connected renewable energy hubs with heat pump and hydrogen, thermal and compressed air storage systems. Sci. Rep. 15(1), 464 (2025).
Azarhooshang, A. R., 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. Electric Power Syst. Res. 201, 107527 (2021).
Hamidpour, H. R. et al. Integrated resource expansion planning of wind integrated power systems considering demand response programmes. IET Renew. Power Gener. 13(4), 519–529 (2019).
Li, S. et al. Evaluating the efficiency of CCHP systems in Xinjiang Uygur Autonomous Region: An optimal strategy based on improved mother optimization algorithm. Case Stud. Therm. Eng. 54, 104005 (2024).
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 15(18), 13877 (2023).
Guo, H. et al. Parameter extraction of the SOFC mathematical model based on fractional order version of dragonfly algorithm. Int. J. Hydrog. Energy 47(57), 24059–24068 (2022).
Mahdinia, S. et al. Optimization of PEMFC model parameters using meta-heuristics. Sustainability 13(22), 12771 (2021).
Karamnejadi Azar, K. et al. Developed design of battle royale optimizer for the optimum identification of solid oxide fuel cell. Sustainability 14(16), 9882 (2022).
Haddad, O. B., Afshar, A. & Mariño, M. A. Honey-bees mating optimization (HBMO) algorithm: A new heuristic approach for water resources optimization. Water Resour. Manag. 20, 661–680 (2006).
Karaboga, D. & Basturk, B. On the performance of artificial bee colony (ABC) algorithm. Appl. Soft Comput. 8, 687–697 (2008).
Hai, T. et al. Optimizing ternary hybrid nanofluids using neural networks, gene expression programming, and multi-objective particle swarm optimization: a computational intelligence strategy. Sci. Rep. 15(1), 1986 (2025).
Saeedi, M. et al. Robust optimization based optimal chiller loading under cooling demand uncertainty. Appl. Therm. Eng. 148, 1081–1091 (2019).
Akbary, P. et al. Extracting appropriate nodal marginal prices for all types of committed reserve. Comput. Econ. 53, 1–26 (2019).
Hamian, M. et al. 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. 72, 203–212 (2018).
Khodaei, H. et al. Fuzzy-based heat and power hub models for cost-emission operation of an industrial consumer using compromise programming. Appl. Therm. Eng. 137, 395–405 (2018).
Mohammadi, M. et al. Small-scale building load forecast based on hybrid forecast engine. Neural Process. Lett. 48, 329–351 (2018).
Duan, F. et al. An information gap decision theory and improved gradient-based optimizer for robust optimization of renewable energy systems in distribution network. Sci. Rep. 15(1), 346 (2025).
Rezaie, M. et al. Model parameters estimation of the proton exchange membrane fuel cell by a modified golden jackal optimization. Sustain. Energy Technol. Assess. 53, 102657 (2022).
Ye, H. et al. High step-up interleaved dc/dc converter with high efficiency. Energy Sources, Part A: Recov., Util., Environ.Effects 46(1), 1–20 (2024).
Duan, F. et al. Model parameters identification of the PEMFCs using an improved design of crow search algorithm. Int. J. Hydrog. Energy 47(79), 33839–33849 (2022).
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 Sources, Part A: Recov., Util., Environ.Effects 44(1), 287–305 (2022).
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. 52, 102005 (2022).
Yuan, K. et al. Optimal parameters estimation of the proton exchange membrane fuel cell stacks using a combined owl search algorithm. Energy Sources, Part A: Recov., Util., Environ., Effects 45(4), 11712–11732 (2023).
Li, Y. et al. Synergizing neural networks with multi-objective thermal exchange optimization and PROMETHEE decision-making to improve pcm-based photovoltaic thermal systems. Case Stud. Therm. Eng. 6, 105851 (2025).
AkbariZadeh, M. R., 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 235, 121171 (2021).
Zhang, L. et al. A deep learning outline aimed at prompt skin cancer detection utilizing gated recurrent unit networks and improved orca predation algorithm. Biomed. Signal Process. Control 90, 105858 (2024).
Liu, H. & Ghadimi, N. Hybrid convolutional neural network and flexible dwarf mongoose optimization algorithm for strong kidney stone diagnosis. Biomed. Signal Process. Control 91, 106024 (2024).
Han, M. et al. 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 94, 106324 (2024).
Gong, Z., Li, Lu. & Ghadimi, N. SOFC stack modeling: a hybrid RBF-ANN and flexible Al-Biruni Earth radius optimization approach. Int. J. Low-Carbon Technol. 19, 1337–1350 (2024).
Ghiasi, M. et al. A comprehensive review of cyber-attacks and defense mechanisms for improving security in smart grid energy systems: Past, present and future. Electric Power Syst. Res. 215, 108975 (2023).
Akbari, E. et al. High voltage direct current system-based generation and transmission expansion planning considering reactive power management of AC and DC stations. Sci. Rep. 15(1), 15537 (2025).
Navesi, R. B. et al. Reliable operation of reconfigurable smart distribution network with real-time pricing-based demand response. Electric Power Syst. Res. 241, 111341 (2025).
Emdadi, K. & Pirouzi, S. Benders decomposition-based power network expansion planning according to eco-sizing of high-voltage direct-current system, power transmission cables and renewable/non-renewable generation units. IET Renew. Power Gener. 19(1), e70025 (2025).
Oboudi, M. H. et al. Reliability-constrained transmission expansion planning based on simultaneous forecasting method of loads and renewable generations. Electr. Eng. 107(1), 1141–1161 (2025).
Naghibi, A. F. et al. Stochastic economic sizing and placement of renewable integrated energy system with combined hydrogen and power technology in the active distribution network. Sci. Rep. 14(1), 28354 (2024).
Mohammadzadeh, M. et al. Application of mixture of experts in machine learning-based controlling of DC-DC power electronics converter. IEEE Access 10, 117157–117169 (2022).
Norouzi, M. et al. Risk-averse and flexi-intelligent scheduling of microgrids based on hybrid Boltzmann machines and cascade neural network forecasting. Appl. Energy 348, 121573 (2023).
Yao, M. et al. Stochastic economic operation of coupling unit of flexi-renewable virtual power plant and electric spring in the smart distribution network. IEEE Access 11, 75979–75992 (2023).
Norouzi, M. et al. Enhancing distribution network indices using electric spring under renewable generation permission. In 2019 International Conference on Smart Energy Systems and Technologies (SEST) 1–6 (IEEE, 2019).
Pirouzi, S., Zadehbagheri, M. & Behzadpoor, S. Optimal placement of distributed generation and distributed automation in the distribution grid based on operation, reliability, and economic objective of distribution system operator. Electr. Eng. 106, 1–14 (2024).
Zhang, J. et al. Eco-power management system with operation and voltage security objectives of distribution system operator considering networked virtual power plants with electric vehicles parking lot and price-based demand response. Comput. Electr. Eng. 121, 109895 (2025).
Zadehbagheri, M. et al. Resiliency-constrained placement and sizing of virtual power plants in the distribution network considering extreme weather events. Electr. Eng. 107, 1–17 (2024).
Wang, R. et al. Stochastic economic sizing of hydrogen storage-based renewable off-grid system with smart charge of electric vehicles according to combined hydrogen and power model. J. Energy Storage 108, 115171 (2025).
Akbari, E. et al. Multi-objective economic operation of smart distribution network with renewable-flexible virtual power plants considering voltage security index. Sci. Rep. 14(1), 19136 (2024).
Aghaei, J. et al. Flexibility planning of distributed battery energy storage systems in smart distribution networks. Iran. J. Sci. Technol., Trans. Electr. Eng. 44(3), 1105–1121 (2020).
Qiu, X., Xu, J. & Tan, K. C. A novel Differential Evolution (DE) algorithm for multi-objective optimization. in IEEE Congress on Evolutionary Computation (CEC) 2391–2396 (2014).
Mirjalili, S. A. SCA: A sine cosine algorithm for solving optimization problems. Knowl.-Based Syst. 96, 120–133 (2016).
Jamali, A. et al. Self-scheduling approach to coordinating wind power producers with energy storage and demand response. IEEE Trans. Sustain. Energy 11(3), 1210–1219 (2020).
Author information
Authors and Affiliations
Contributions
W.A.h: Conceptualization, Methodology, Software, Validation, Formal analysis, Investigation, Resources, Data Curation, Writing—Original Draft.Ali Basem: Conceptualization, Methodology, Software, Validation, Formal analysis, Investigation, Resources, Data Curation, Writing—Original Draft. N.S.S.S.: Investigation, Resources, Data Curation, Writing—Original Draft. K.M.: Investigation, Resources, Data Curation, Writing—Original Draft. Z.A.H.: Investigation, Resources, Data Curation, Writing—Original Draft. S.D.: Investigation, Resources, Data Curation, Writing—Original Draft. N.B.A.: Investigation, Resources, Data Curation, Writing—Original Draft. L.B.S.: Investigation, Resources, Data Curation, Writing—Original Draft. W.R.: Investigation, Resources, Data Curation, Writing—Original Draft. L.M.: Supervisor, Methodology, Software, Validation, Formal analysis, Data Curation, Writing—Original Draft.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Aich, W., Basem, A., Sawaran Singh, N. et al. Two-layer energy scheduling of electrical and thermal smart grids with energy hubs including renewable and storage units considering energy markets. Sci Rep 15, 25079 (2025). https://doi.org/10.1038/s41598-025-09960-6
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-025-09960-6