원시데이터 수집 시스템
선정목록으로

Optimization framework for efficient and robust renewable energy hub operation

간접 관련 수소연료전지 · (7) MEA(막전극접합체) (5) 연료전지용 수분제어장치(가습기)(6) PEM(고분자전해질막)

기본 정보

저자
  1. Majid Hosseina — Department of Electrical Engineering, Hakim Sabzevari University, Sabzevar, Iran. majidhosseina@gmail.com|||Department of Electrical Engineering, Hakim Sabzevari University, Sabzevar, Iran
  2. Mahmoud Samiei Moghaddam — Department of Electrical Engineering, Da.C., Islamic Azad University, Damghan, Iran
  3. Mohamad Mehdi Khademi — Department of Electrical Engineering, Da.C., Islamic Azad University, Damghan, Iran
  4. Amir Hassannia — Faculty of Electrical Engineering, Shahrood University of Technology, Shahrood, Iran
DOI
10.1038/s41598-025-19884-w
저널
Scientific Reports
발행년도
2025
발행기관
Nature Portfolio
피인용수
2
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-025-19884-w
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W4415158695

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(5) 연료전지용 수분제어장치(가습기), (6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
Hydrogen storage, Electrolyze (EL), Fuel Consumption (FC), renewable energy hub, optimization framework
판단 근거
본 논문은 수소 저장 및 수전해(Electrolyzer)를 포함한 재생에너지 허브의 운영 최적화 모델을 다루고 있습니다. 이는 코오롱인더스트리의 수소연료전지(PEMFC) 관련 사업 중 수소 공급 및 에너지 관리 시스템의 상위 운영 로직 연구에 간접적으로 활용될 수 있습니다.
R&D 활용 포인트
수소 연료전지 시스템의 효율적인 에너지 관리 및 수소 저장/공급 최적화 알고리즘 개발에 응용 가능합니다.
평가 입력
본문 133,533자 중 30,032자 발췌

초록

This research proposes an advanced optimization framework for renewable energy hubs within integrated electrical and thermal networks, aimed at improving energy management. The motivation stems from the need for a more flexible and efficient solution that addresses the variability of renewable energy sources, such as wind and bio-waste units, while integrating storage solutions like hydrogen and thermal systems. The hypothesis is that combining a market-clearing price model with robust decision-making frameworks can optimize both economic viability and operational efficiency. The methodology adopts a two-tier optimization approach: the upper tier maximizes hub profits, and the lower tier minimizes operational costs through a market-clearing price model. The study also incorporates a robust optimization model that accounts for decision-dependent uncertainties, with a novel class of polyhedral uncertainty sets used for improved decision-making. Numerical results from case studies demonstrate that the proposed method increases the objective function by approximately 3%, and achieves a 25% faster solution time compared to the Benders decomposition approach. These findings support the conclusion that the proposed framework enhances both flexibility and economic performance of energy hubs, offering a viable solution for modern energy systems.

본문 133,533자

본문 펼치기
## OPEN # Optimization framework for efficient and robust renewable energy hub operation Majid Hosseina <sup>1</sup> <sup></sup> , Mahmoud Samiei Moghaddam <sup>2</sup> , Mohamad Mehdi Khademi <sup>2</sup> & Amir Hassannia <sup>3</sup> This research proposes an advanced optimization framework for renewable energy hubs within integrated electrical and thermal networks, aimed at improving energy management. The motivation stems from the need for a more flexible and efficient solution that addresses the variability of renewable energy sources, such as wind and bio-waste units, while integrating storage solutions like hydrogen and thermal systems. The hypothesis is that combining a market-clearing price model with robust decision-making frameworks can optimize both economic viability and operational efficiency. The methodology adopts a two-tier optimization approach: the upper tier maximizes hub profits, and the lower tier minimizes operational costs through a market-clearing price model. The study also incorporates a robust optimization model that accounts for decision-dependent uncertainties, with a novel class of polyhedral uncertainty sets used for improved decision-making. Numerical results from case studies demonstrate that the proposed method increases the objective function by approximately 3%, and achieves a 25% faster solution time compared to the Benders decomposition approach. These findings support the conclusion that the proposed framework enhances both flexibility and economic performance of energy hubs, offering a viable solution for modern energy systems. Keywords Two-stage robust optimization, Hydrogen storage, Flexi-renewable energy hub, Decision dependent uncertainty Abbreviations _E_ HT <sup>ini</sup> <sup>_, E_</sup> TS <sup>ini</sup> HT <sup>ini</sup> <sup>_, E_</sup> TS <sup>ini</sup> HT <sup>lo</sup> <sup>_, E_</sup> TS <sup>lo</sup> HT <sup>_up_</sup> <sup>_, E_</sup> TS <sup>up</sup> _E_ HT <sup>ini</sup> <sup>_, E_</sup> TS <sup>ini</sup> The starting capacity of high-temperature storage and thermal energy systems, measured in megawatt-hours (MWh). _E_ HT <sup>lo</sup> <sup>_, E_</sup> TS <sup>lo</sup> The least amount of energy utilized by HT and TES systems, measured in megawatt-hours _E_ HT <sup>lo</sup> <sup>_, E_</sup> TS <sup>lo</sup> The least amount of energy utilized by HT and TES systems, measured in megawatt-hours (MWh). _E_ HT <sup>_up_</sup> <sup>_, E_</sup> TS <sup>up</sup> The total energy capacity for HT systems and TES is expressed in megawatt-hours (MWh). _E_ HT <sup>_up_</sup> <sup>_, E_</sup> TS <sup>up</sup> The total energy capacity for HT systems and TES is expressed in megawatt-hours (MWh). FT The permissible range of variability in power output, measured in megawatts (MW). _g_ TL _, b_ TL The normalized values of conductance and susceptance for the transmission line in per unit form. _hcP L_ The thermal resistance of the pipeline, expressed in per unit, defines its ability to conduct heat efficiently. _HC_ <sup>_up, H_</sup> _D_ <sup>_up_</sup> The thermal energy storage (TES) system’s capacity to absorb and release heat, measured in _C_ <sup>_up, H_</sup> _D_ <sup>_up_</sup> _HC_ <sup>_up, H_</sup> _D_ <sup>_up_</sup> The thermal energy storage (TES) system’s capacity to absorb and release heat, measured in megawatts (MW), defines its charging and discharging performance. H <sup>lo</sup> HGU <sup>_,_</sup> <sup>Hup</sup> HGU Heat power production by the HGU unit can vary between its defined lower and upper <sup>lo</sup> HGU <sup>_,_</sup> <sup>Hup</sup> H <sup>lo</sup> HGU <sup>_,_</sup> <sup>Hup</sup> HGU Heat power production by the HGU unit can vary between its defined lower and upper limits, measured in megawatts (MW). HL Thermal demand measured in megawatts (MW). _H_ PL <sup>up</sup> The highest possible energy transfer capacity within the pipeline, measured in megawatts _H_ PL <sup>up</sup> The highest possible energy transfer capacity within the pipeline, measured in megawatts (MW). _I_ <sup>_E_</sup> _, I_ <sup>_H_</sup> The connection matrix representing the energy hub (EH) and the electric bus, showing their interrelations. _PEL_ <sup>_up_</sup> <sup>_, P up_</sup> _F C_ The peak output of EL and FC (in MW). _EL_ <sup>_up_</sup> <sup>_, P up_</sup> _F C_ _L, QL_ _EL_ <sup>_up_</sup> <sup>_, P up_</sup> _F C_ _PEL_ <sup>_up_</sup> <sup>_, P up_</sup> _F C_ The peak output of EL and FC (in MW). _PL, QL_ The real power (MW) and reactive power (MVAr) associated with the electrical load. _PEL_ <sup>_up_</sup> <sup>_, P up_</sup> _F C_ The peak output capacity of the EL and FC systems in megawatts (MW). <sup>_up_</sup> _F C_ The peak output capacity of the EL and FC systems in megawatts (MW). 1Department of Electrical Engineering, Hakim Sabzevari University, Sabzevar, Iran. 2Department of Electrical Engineering, Da.C., Islamic Azad University, Damghan, Iran. <sup>3</sup> Faculty of Electrical Engineering, Shahrood University of Technology, Shahrood, Iran. <sup></sup> email: majidhosseina@gmail.com _P_ WF _,_ PBU The electricity output (MW) from the WF and the bio-waste facility (BU). Q <sup>lo</sup> _EGU_ <sup>_,_</sup> <sup>Qup</sup> _EGU_ The controllable reactive power range of the EGU (MVAr), from its minimum to maxi <sup>lo</sup> _EGU_ <sup>_,_</sup> <sup>Qup</sup> Q <sup>lo</sup> _EGU_ <sup>_,_</sup> <sup>Qup</sup> _EGU_ The controllable reactive power range of the EGU (MVAr), from its minimum to maxi mum capacity. _sl_ <sup>1</sup> _, sl_ <sup>2</sup> A linear segment with distinct slopes. _S_ TL <sup>up</sup> The highest possible flow of apparent power (MVA). _S_ TL <sup>up</sup> The highest possible flow of apparent power (MVA). _T_ <sup>_lo_</sup> _, T_ <sup>_up_</sup> The lowest and highest temperature values (per unit). V <sup>lo</sup> _,_ V <sup>up</sup> The voltage magnitude should be expressed in per unit (p.u.), with specified minimum and maximum values. _α_ <sup>_E_</sup> _, β_ <sup>_E_</sup> _, χ_ <sup>_E_</sup> The cost function parameters for fuel in the Electricity Generating Unit (EGU), expressed in terms of $/MWh and $/MWh <sup>2</sup> . _α_ <sup>H</sup> _, β_ <sup>H</sup> _, χ_ <sup>H</sup> The coefficients of the fuel cost function for the Heat Generation Unit (HGU), expressed in _δ_ terms of $/MWh and $/MWh <sup>2</sup> . _ The smallest power angle (in radians). _η_ C _, η_ D The efficiency of charging and discharging in Thermal Energy Storage (TES) systems. _ηEL, ηF C_ The performance of Electrolyze (EL) and Fuel Consumption (FC) _η_ t _, ηl, η_ h The performance of the BU turbine, its associated losses, and thermal efficiency. _φ_ ¯ The highest value of the voltage phase angle (radians). _ν_ 1 The proportion of thermal energy to active electrical power for BU. ∆ _θ_ The difference in angle (radians) Variables EHP The projected earnings of energy hubs (EHs) in monetary terms ($). _EHT, E_ TS The energy stored in the HT reservoir and the TES system, measured in megawatt-hours (MWh). _HC_ _, HD_ The thermal energy output during the charging and discharging phases for the Thermal Energy Storage (TES) system (MW). HHGU The electricity produced by the HGU measured in megawatts (MW). _PEGU_ _, QEGU_ The production of real power (measured in MW) along with the controllable and reactive power (measured in MVAr) for an electrical generation unit (EGU). _PEH_ _, HEH_ The active power (in megawatts, MW) and reactive power (in megavolt-amperes reactive, MVAr) of the energy hub. _PEL, PF C_ The electrical output of the EL and FC measured in megawatts (MW). _PT L, QT L_ The transmission line carries both real power (in MW) and reactive power (in MWh). T The temperature expressed in per-unit (p.u.) is a normalized representation of the temperature value, often used to standardize measurements across different systems or scales. V The voltage level (per unit). _xC_ _, xD_ A two-state variable representing the operation of the TES system. _xEL, xF C_ A variable with binary values that indicates whether the EL and FC are in operation. _δ_ The phase angle of power (in radians). _λ_ <sup>_E_</sup> _, λ_ <sup>_H_</sup> The cost of electricity and thermal energy (in $/MWh). _λ, µ_ Lagrange multipliers (per unit) _φ_ The angle of voltage (in radians) Φ1 _,_ Φ2 Supportive or additional functions ∆ _δ_ The variation in the power angle (in radians) Indices _e_ Index for energy hub. _k_ A supplementary metric for electrical demand or thermal point. _l_ A straight segment used in traditional methods of piecewise linear approximation. _m_ Thermal junction _n_ A bus that operates using electric power instead of conventional fuel sources. _s_ A side of the polygon with regular symmetry. _τ_ The duration of operation The integration of renewable energy sources into power systems is essential for achieving sustainability goals and reducing dependence on non-renewable resources. Multi-energy hubs, which combine various forms of renewable energy such as wind and bio-waste units, are increasingly recognized for their role in supplying both electrical and thermal energy in a flexible and efficient manner. These hubs are designed to enhance the overall reliability and adaptability of energy systems by utilizing diverse energy sources to meet varying demands. However, managing these hubs effectively poses significant challenges due to the inherent variability and unpredictability of renewable energy sources. The fluctuations in energy output from renewables like wind and bio-waste can lead to difficulties in maintaining a stable and balanced energy supply, impacting both operational efficiency and economic performance. Traditional optimization approaches often fall short in addressing these complexities because they assume that uncertainties are independent of the decisions made in the early stages of planning. For instance, decisions regarding resource allocation and scheduling are typically made without fully accounting for how these choices might influence or be influenced by future uncertainties in energy production. This oversight can result in suboptimal performance and increased operational risks. To overcome these limitations, this research introduces a robust decision-dependent optimization model that explicitly considers the interdependence between initial decisions and uncertainties. The model utilizes a new class of polyhedral uncertainty sets to accurately capture the relationship between decisions and uncertainties. By linking these factors directly, the model improves the ability to anticipate and manage risks associated with the variability of renewable energy sources. This enhanced representation of the operational environment allows for more effective risk mitigation and better overall management of energy hubs. Our approach is organized into a two-tier framework. The first tier focuses on optimizing the performance of the energy hubs by addressing operational constraints and managing the impact of uncertainties from the outset. The second tier adapts these initial decisions based on actual outcomes of uncertain factors, refining the operational strategy to ensure optimal performance under varying conditions. The necessity of this research lies in addressing the limitations of traditional optimization methods that fail to adequately handle the dynamic nature of renewable energy sources. The challenges include accurately modeling the interdependencies between decisions and uncertainties, and developing an optimization framework that can adapt to these complexities. The importance of this article is underscored by its innovative approach to robust decision-dependent optimization, which significantly enhances the efficiency, flexibility, and economic viability of renewable energy hubs. By providing a sophisticated solution to these challenges, this research contributes to more effective and reliable management of integrated energy systems. Literature review The integration of renewable energy sources into flexible energy hubs has been widely studied, with various models proposed to enhance efficiency and decision-making in complex energy systems. In <sup>1</sup>, an energy management model is proposed that combines demand response, hydrogen storage systems, renewable sources, and electric vehicles to optimize a retailer’s energy consumption. This framework enhances energy efficiency through strategic management of energy resources. Similarly, <sup>2</sup> presents a planning approach for off-grid renewable systems that incorporates both stationary and mobile storage solutions. The model considers storage degradation costs, optimizing system performance with the use of information-gap decision theory (IGDT). In the context of energy storage, <sup>3</sup> develops optimal control strategies for energy storage systems at HUB substations, focusing on multiple distribution networks. This study aims to improve the coordination of energy storage to enhance grid stability and operational efficiency. <sup>4</sup> extends this idea by proposing a robust model based on IGDT for scheduling smart power systems integrated with compressed air energy storage, focusing on dynamic ratings of transformers and lines to optimize power distribution. The role of virtual power plants in active distribution networks is explored by <sup>5</sup>, who propose a bi-level power management strategy designed to improve grid resilience in the presence of harmonic pollution. In <sup>6</sup>, the concept of a virtual smart energy hub is introduced as a tool for the integrated operation of multi-energy systems, demonstrating its effectiveness in improving operational efficiency. Another key study in this area, <sup>7</sup>, optimizes sustainable hybrid systems for electric vehicle charging infrastructures, focusing on the integration of renewable sources and energy storage to ensure energy efficiency and sustainability. In terms of optimization techniques, <sup>8</sup> applies robust optimization to energy hub operations, incorporating both electrical and thermal demand response programs. The study evaluates the impact of various charging modes for electric vehicles, aiming to enhance the operational cost-effectiveness of energy hubs. Similarly, <sup>9</sup> investigates the optimization of energy hubs connected to demand response aggregators, emphasizing the integration of renewable sources such as solar, wind, and biomass with storage systems to manage energy variability. Further advancements in optimization are discussed in <sup>10</sup>, which introduces a strategic risk aversion approach using stochastic game theory for smart energy hubs. This model helps manage uncertainty in energy markets while maintaining long-term operational viability. A complementary study by <sup>11</sup> develops a risk-based decision-making strategy for Power-to-Gas integrated energy hubs, focusing on arbitrage opportunities in electricity and natural gas markets to improve economic performance. Optimization models for off-grid systems are also explored, with <sup>12</sup> presenting a solution based on zebra optimization and stochastic load profiles. This approach ensures a cost-effective and reliable energy solution for areas with fluctuating energy demand. <sup>13</sup> investigates multi-functional voltage and current enhancement strategies for grid-connected microgrids, improving power quality and mitigating harmonics to enhance system reliability. The use of adaptive robust optimization in energy hubs is demonstrated by <sup>14</sup>, who applies a hybrid meta-heuristic algorithm to optimize operational decisions while considering uncertainties. <sup>15</sup> extends this work by developing a model for wholesale and retail energy markets involving energy hubs, exploring the interactions between various energy networks and energy hubs to improve market efficiency. Further contributions include advanced optimization techniques for microgrid systems. <sup>16</sup> proposes a method combining price-elastic demand response and greedy rat swarm optimization to achieve both economic and environmental efficiency. In <sup>17</sup>, an intelligent incentive-based demand response program is developed for microgrids, balancing environmental constraints with technoeconomic efficiency through detailed system analysis. A significant area of research is the integration of hydrogen systems into energy hubs. <sup>18</sup> proposes a Power-to-Hydrogen modeling approach for microgrid operation, focusing on optimizing systems under coupled electricity and hydrogen markets. <sup>19</sup> introduces a hybrid competitive-cooperative game model for multi-microgrid systems, optimizing energy management while balancing collaboration and competition. The robustness of energy systems is further addressed in <sup>4</sup>, which proposes a robust IGDT-based scheduling model for smart power systems, integrating compressed air energy storage and transformer dynamic rating for improved system stability. <sup>20</sup> explores a peer-to-peer market mechanism for multi-energy coupling, fostering cooperative behavior among energy producers to enhance energy distribution and market efficiency. Recent advancements in energy optimization models have also focused on uncertainties. <sup>21</sup> introduces a hybrid IGDT/stochastic approach to microgrid participation in a transactive energy market, optimizing the operational efficiency of interconnected microgrids. <sup>22</sup> proposes a dual control strategy for energy hubs that focuses on both security operations and economic efficiency, using advanced optimization techniques to improve performance. The integration of demand response and uncertainty modeling is further explored in <sup>23</sup>, which presents a chance-constrained energy management model for energy hubs. This model aims to optimize costs and improve operational reliability under uncertain conditions. In <sup>24</sup>, a profit-driven power-to-hydrogen and methane plant model is developed for strategic market participation, optimizing energy production and market strategies for maximum financial benefit. The techno-economic aspects of energy storage systems are addressed by <sup>25</sup>, who couples integrated demand response programs with energy hubs for retail energy market modeling. This model tackles the challenges of energy distribution and storage to optimize retail energy market operations. <sup>26</sup> further investigates dynamic pricing and energy management strategies for hydrogen-based integrated energy service providers, using a bi-level optimization approach to integrate demand response in energy pricing. The development of robust models for off-grid and microgrid systems continues with <sup>27</sup>, which examines the impact of co-disposing incineration slag with municipal solid waste on methane production for energy recovery. In <sup>28</sup>, a multi-objective operation strategy is proposed for distributed generation and thermal blocks in microgrids, optimizing energy management for efficiency and reliability. Recent works also focus on expanding the use of flexible and clean energy resources. <sup>29</sup> presents a multi-objective dynamic generation and transmission expansion planning model, which optimizes capacitor bank allocation and demand response for the integration of renewable energy sources. Similarly, <sup>30</sup> investigates the contribution of FACTS devices to power system security using a MILP-based Optimal Power Flow model, improving system reliability and efficiency through optimized placement of these devices. The integration of wind power and demand response is addressed by <sup>31</sup>, who proposes an integrated resource expansion planning approach for wind-integrated power systems, improving the security and efficiency of renewable energy integration. <sup>32</sup> introduces a column-and-constraint generation method to solve two-stage robust optimization problems, enhancing the accuracy and efficiency of decision-making models. In <sup>33</sup>, a MILP model for two-stage robust generation expansion planning is presented, accounting for uncertainties in power system expansion and resource allocation. Robust energy management strategies for microgrids are explored in <sup>34</sup>, which presents an islanding-aware model that enhances microgrid stability and efficiency during islanded operation. <sup>35</sup> introduces MATPOWER as an open-source tool for electric power system simulation and optimization, providing a robust platform for researchers to model and optimize power systems. The operational efficiency of multi-carrier energy systems is addressed by <sup>36</sup>, who proposes a multi-objective operation management strategy for such systems, optimizing energy flow and system operations. Similarly, <sup>37</sup> develops a robust optimization framework for smart home energy management, integrating photovoltaic storage, electric vehicle charging, and demand response to enhance energy efficiency and flexibility. In terms of grid expansion, <sup>38</sup> explores the co-optimization of battery storage investment and grid expansion in integrated energy systems, focusing on maximizing financial returns while ensuring grid stability. <sup>39</sup> examines the economic profit enhancement of demand response aggregators through large-scale energy storage investments, demonstrating how energy storage improves profitability and market participation. Finally, the economic management of flexible renewable energy hubs is further explored in <sup>40</sup>, which employs uncertainty modeling to enhance decision-making in variable energy environments. <sup>41</sup> evaluates the techno-economic performance of energy storage systems in multi-energy microgrids, using decomposition methodology to assess cost-effectiveness and operational efficiency. In <sup>42</sup>, a techno-economic investigation of grid-integrated renewable energy systems with hydrogen storage is presented, evaluating the financial feasibility and operational efficiency of integrating hydrogen storage with renewable energy sources. Recent studies have also addressed the optimization of distribution systems and grid reconfiguration. <sup>43</sup> proposes an initial-point strategy to optimize distribution system reconfiguration, enhancing operational efficiency in power distribution networks. <sup>44</sup> integrates energy management strategies for autonomous smart grids in electricity market operation, focusing on optimizing grid performance. Additionally, <sup>45</sup> develops a generic resource allocation strategy in distribution grids to improve system reliability and performance. The stochastic operation and scheduling of energy hubs considering renewable energy uncertainties are explored by <sup>46</sup>, ensuring reliable and efficient energy hub operation under uncertain conditions. Furthermore, <sup>47</sup> conducts a reliability analysis of cyber-physical energy hubs using a Monte Carlo approach, improving the resilience of these systems. <sup>48</sup> proposes a near-optimal bilevel programming approach for energy communities with limited observability, optimizing energy distribution and improving decision-making in uncertain environments. A summary of the main findings from these studies is presented in Table 1. Motivation The main motivation of this paper is to address the critical challenge of optimizing multi-energy hubs that integrate renewable energy sources, such as wind and bio-waste units, within both electrical and thermal networks. As the reliance on renewable energy increases, traditional optimization models are insufficient for managing the inherent variability and uncertainty of renewable energy generation. These models often overlook the complex interplay between initial decision-making and future uncertainties, leading to suboptimal performance and increased operational risks. The motivation behind this research is to develop a robust optimization framework that explicitly accounts for the decision-dependent nature of uncertainties in renewable energy systems. By integrating a novel class of polyhedral uncertainty sets and employing an advanced iterative algorithm, the research aims to improve the accuracy and effectiveness of managing these uncertainties. The goal is to enhance the operational efficiency, flexibility, and economic feasibility of renewable energy hubs, ensuring that they can adapt to dynamic conditions and maintain a stable, reliable energy supply. This approach is crucial for advancing the management of integrated energy systems and supporting the broader transition to sustainable energy solutions. The research seeks to provide a more realistic and adaptable optimization model that better reflects the complexities of real-world energy networks, ultimately contributing to more efficient and resilient energy infrastructure. Research gap The study gap addressed by this research is the inadequacy of traditional optimization models in managing the complexities associated with integrating renewable energy sources into multi-energy hubs. Existing literature primarily focuses on optimization approaches that assume uncertainties in renewable energy generation are Examine the capacity for <u>hydrogen storage in EH</u> <u>Regulation of EH flexibility</u> Robust optimization <u>model</u> Decision dependent <u>uncertainty</u> <u>Ref</u> EH market participation via <u>MCP</u> <u>CHP system using bio-waste</u> 6 <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> 7 <u>x</u> <u>x</u> <u>✓</u> <u>x</u> <u>x</u> <u>x</u> 8 <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>✓</u> <u>x</u> 9 _x_ (Considering BU without the CHP ✓ x x x <u>model)</u> 10 <u>✓</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> 11 <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> 12 <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>✓</u> <u>x</u> 13 <u>x</u> <u>x</u> <u>x</u> <u>✓</u> <u>x</u> <u>x</u> 14 <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>✓</u> <u>x</u> 15 <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> 16 x x x (Considering flexibility x x <u>regulation for networks)</u> 17 <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> 18 <u>✓</u> <u>x</u> <u>✓</u> <u>x</u> <u>x</u> <u>x</u> 19 <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> 4 <u>x</u> <u>x</u> <u>✓</u> <u>x</u> <u>✓</u> <u>x</u> 20 <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> 21 <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> 22 <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> 23 <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>✓</u> <u>✓</u> 24 <u>✓</u> <u>x</u> <u>✓</u> <u>x</u> <u>x</u> <u>x</u> 25 <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> 26 <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>x</u> <u>This study</u> <u>✓</u> <u>✓</u> <u>✓</u> <u>✓</u> <u>✓</u> <u>✓</u> Table 1 . A classification of the latest studies. independent of initial decisions made during the planning phase. These models often fail to account for how early-stage decisions, such as resource allocation and scheduling, can influence or be influenced by future uncertainties in energy production. Specifically, several key gaps have been identified: 1. Inadequate Handling of Decision-Dependent Uncertainties : Most current optimization frameworks do not fully address the interdependence between initial decisions and future uncertainties. Traditional models either ignore this relationship or simplify it to the point where it does not accurately reflect real-world conditions. This gap leads to suboptimal performance and increased operational risks as they do not adapt to the dynamic nature of renewable energy sources. 2. Limited Integration of Advanced Uncertainty Modeling : The majority of existing approaches use basic or static models for uncertainty, which do not capture the complex and evolving nature of renewable energy production. There is a need for more sophisticated uncertainty sets that can dynamically adjust based on real-time data and decision-making processes. 3. Insufficient Optimization Frameworks for Multi-Energy Systems : Existing research often treats electrical and thermal energy systems separately or uses simplistic methods to integrate them. Comprehensive frameworks that simultaneously optimize both types of energy systems while addressing the specific challenges posed by renewable sources are lacking. 4. Inadequate Computational Techniques for Complex Problems : Current algorithms used for solving opti mization problems in renewable energy hubs are often not equipped to handle the complexity of decision-dependent uncertainties. There is a need for more advanced computational techniques that can efficiently solve these complex, large-scale problems. This research addresses these gaps by introducing a robust decision-dependent optimization model that incorporates a novel class of polyhedral uncertainty sets and utilizes an advanced iterative algorithm based on C&CG algorithm. This approach enhances the accuracy of uncertainty modeling, improves the adaptability of decision-making, and provides a more effective solution for managing integrated electrical and thermal energy systems. By bridging these gaps, the study aims to significantly advance the optimization of renewable energy hubs and contribute to more efficient and resilient energy systems. Contribution and innovation This The main contribution and innovation of this paper lie in the development and application of a robust decision-dependent optimization model for managing multi-energy hubs that integrate renewable energy sources within electrical and thermal networks. Key contributions and innovations include: 1. Introduction of a Decision-Dependent Robust Optimization Model : The paper presents a novel optimiza tion framework that explicitly accounts for the interdependence between initial decisions and uncertainties. Unlike traditional models, which often assume that uncertainties are independent of early-stage decisions, this model integrates a new class of polyhedral uncertainty sets that reflect how uncertainties evolve based on decisions made during the planning phase. 2. Advanced Uncertainty Modeling : The research introduces a sophisticated approach to uncertainty mode ling by utilizing polyhedral uncertainty sets where the right-hand side vector is dynamically influenced by immediate decisions. This innovation allows for a more accurate representation of real-world conditions and better anticipates the risks associated with renewable energy variability. 3. Two-Tier Optimization Framework : The paper employs a two-tier optimization framework that separately addresses profit maximization and cost minimization. The upper tier focuses on maximizing hub performance while adhering to operational constraints and managing uncertainty, while the lower tier optimizes the market-clearing price model to reduce operational costs and ensure optimal power flow. 4. Iterative Algorithm Based on C&CG algorithm : To solve the complex optimization problem, the paper proposes an iterative algorithm rooted in C&CG algorithm. This algorithm incorporates advanced optimality and feasibility cuts to effectively handle the interaction between uncertainties and decision-making, improving computational efficiency and solution accuracy. 5. Empirical Validation and Performance Improvement : Extensive numerical analyses are conducted across multiple case studies to validate the effectiveness of the proposed approach. The results demonstrate significant improvements in operational efficiency, with the new approach achieving approximately 3% better performance in the objective function and a 25% reduction in solution time compared to existing algorithms. Overall, the paper enhances current knowledge in optimizing renewable energy hubs by providing a more realistic and adaptable framework for managing uncertainties and integrating multiple energy systems. The innovations in uncertainty modeling and computational techniques offer significant enhancements in flexibility, efficiency, and economic feasibility for energy network management. The strategy for bidding, applicable to grid-connected flexible renewable Energy Hubs (EHs) within the energy market, encompasses several critical components and steps as illustrated in Fig. 1. This strategy aims to optimize profits, guarantee stability, and uphold efficiency during market participation. Paper structure The organization of the paper is as follows: Section "Proposed model" outlines the framework for managing grid-connected Energy Hubs (EHs) using the Market Clearing Price (MCP) model. Section "Proposed two-stage robust optimization" outlines the robust approach employed to address uncertainties. The numerical results obtained from various study cases are presented in Section "Numerical results". Lastly, Section "Conclusion" provides concluding remarks. Proposed model This part outlines the framework for incorporating adaptable renewable Energy Hubs (EHs) that feature hydrogen and thermal storage units into the energy sector, ensuring their connection to both electrical and thermal networks. We adopt a bi-level optimization format for this scheme. At the upper level, the objective is to maximize the profit of these EHs in the energy market. This process aims to enhance the efficiency of renewable energy sources and storage systems while adhering to specific operational flexibility limits. At the lower level, the Market Clearing Price (MCP) model is utilized to focus on reducing the operational expenses of both electric and thermal generation units. This is achieved by applying the optimal power flow equations relevant to both electricity and thermal grids, ensuring optimal energy distribution. The details of the model for this approach are presented in the following sections. A) Formulation of the Upper Level: The primary aim of this model, as expressed in Eq. (1), is to optimize the anticipated profit for the Energy Hubs (EHs) within the energy marketplace, known as the Expected Hub Profit (EHP). This objective function consists of two components: the first one calculates the revenue generated by the EHs in the electricity sector, while the second component focuses on the thermal energy market earnings. The energy expenditure is determined by multiplying the Local Marginal Price (LMP) by the total energy or power consumed <sup>4</sup> . When the EHs show a positive value in active or thermal power, they are in a position to sell energy to the market, thus earning revenue. On the other hand, if the power value is negative, it indicates that the EHs are importing energy from the grid, and Eq. (1) captures the associated cost. The higher-level problem incorporates several constraints, detailed in Eqs. (2) through (15). Equations (2) and (3) maintain the balance of active and thermal power within EHs. The generation of active power in EHs is supported by WF and BU, while HS serves as a versatile energy storage option in conjunction with renewable energy sources. For thermal energy, heat is solely produced by BUs, with TES offering supplementary capacity for energy storage. The operational model for the Combined Heat and Power (CHP) system integrated with a Biogas Unit (BU) is expressed as _P_ BU = _η_ t _γ_ CH4 _LHV_ CH4 _G_ BU This formula links the gas energy produced from environmental waste to the BU’s active power generation. It takes into account the BU’s efficiency ( _η_ t), the methane production rate ( _γ_ CH4 ), and the lower heating value of methane (LHVCH4 ), with _GBU_ representing the gas produced through anaerobic digestion of organic waste. Additionally, the thermal energy output of the BU is determined Fig. 1 . Strategic Bidding Approach for Grid-Connected Flexible Renewable Energy Hubs in the Energy Market. as a function of the active power, calculated by _HBU_ = (1 _−_ _ηt −_ _ηt_ ) _ηh/ηtPBU_, where _ηl_ and _ηh_ represent the thermal loss and efficiency factors of the BU, respectively <sup>14</sup> . The relationship described in Eq. (3) represents the process. In Reference <sup>2</sup>, the values for _γ_ CH4 and LHVCH4 are reported as 0.65 and 0.01 MWh/m <sup>3</sup>, respectively. In accordance with the IEEE1547 standard <sup>33</sup>, the model assumes that the focus is solely on the generation of active power from these energy sources and storage systems, excluding any considerations for reactive power control in this analysis. The framework for the hydrogen system’s operation is provided in Eqs. (4)–(8) <sup>1,7,9</sup> . An HS configuration <sup>34</sup> typically consists of an EL, a HT, and a FC <sup>1</sup> . The electrolyzer utilizes active energy from the EH to produce hydrogen, which is then stored in the HT. The fuel cell (FC) is responsible for transforming hydrogen stored in the HT back into usable electrical power. The processes of the EL and FC within the HS correspond to the charging and discharging operations, as outlined in the constraints (4) and (5). To ensure these operations don’t overlap, Eq. (6) imposes a logical restriction that prevents the simultaneous functioning of both the FC and EL, ensuring that the system cannot be in both charging and discharging states at the same time. Meanwhile, Eq. (7) describes how the energy in the hydrogen tank is calculated, which is derived from the initial energy level plus the accumulated energy from the EL up to time τ, minus the amount of energy used by the FC during the same period. The maximum amount of energy that can be stored in the HT is determined by Eq. (8). The operation of TES is defined by the constraints in Eqs. (9)–(13) <sup>13,14,28</sup> . TES functions in two distinct modes: during charging, it absorbs thermal energy from the EH for storage, while in discharging mode, it releases the stored energy back to the EH. The charging and discharging rate limitations for TES are modeled by Eqs. (9) and (10), respectively <sup>13</sup> . Condition (11) imposes a restriction that prevents both charging and discharging from happening at the same time. The heat energy accumulated within the TES is computed through Eq. (12), and its maximum storage capacity is outlined in Eq. (13) <sup>28</sup> . The last component of the model focuses on the limitations of EHs in terms of both their electrical and thermal performance, as outlined in Eqs. (14) and (15). A key consideration is the unpredictable nature of power generation from renewable sources, which can cause a gap between actual real-time output and forecasts made a day ahead. This variation may lead to imbalances in the generation-consumption equilibrium during real-time operations, a phenomenon known as "flexibility shortage." To address this issue, this research integrates energy storage systems in EHs, improving their adaptability. Energy storage helps smooth out fluctuations in renewable energy generation, ensuring that the power output of EHs aligns more closely with real-time operational needs as well as the dayahead predictions. This idea is mathematically represented in Eqs. (14) and (15), where the flexibility parameters are modeled. The term ‘FT’ in these equations represents the ‘flexibility tolerance’. When FT is zero, it reflects full flexibility, meaning the power output of EHs stays unchanged, as shown in Eqs. (14) and (15). Furthermore, renewable resources play a role in both the electrical and thermal components of the EH, as defined in Eqs. (2) and (3). As a result, the flexibility constraints for the electrical and thermal parts of the EH are expressed in Eqs. (14) and (15), respectively. max _EHP_ = ∑ + _e_ <sup>_I_</sup> _e,m_ <sup>_H_</sup> <sup>_I_</sup> _e,m_ <sup>_H_</sup> <sup>_H_</sup> _EHe,τ_ _τ_ _n_ <sup>_λ_</sup> _n,τ_ <sup>_E_</sup> _e_ <sup>_I_</sup> _e,n_ <sup>_E_</sup> <sup>_P_</sup> _EH e,τ_ _m_ <sup>_λ_</sup> _m,τ_ <sup>_H_</sup> _e_ <sup>_I_</sup> _e,m_ <sup>_H_</sup> <sup>_H_</sup> _EHe,τ_ ∑ (∑ ∑ ∑ <u>)</u> BU+ _e,τ_ <sup>∑</sup> + ( _P_ FC _e,τ_ _−_ _P_ EL _e,τ_ ) _−_ _P_ _e_ <sup>_I_</sup> _e,n_ <sup>_E_</sup> _e_ ∑ _τ_ _m_ (∑ _m_ <sup>_λ_</sup> _m,τ_ <sup>_H_</sup> _n_ <sup>_λ_</sup> _n,τ_ <sup>_E_</sup> _n,τ_ <u>)Le</u> _,τ_ _∀e, τ_ (2)(1) _m,τ_ _e_ ∑ _P_ EH _e,τ_ = _P_ WF _e,τ_ + _P_ BU _e,τ_ + ( _P_ FC _e,τ_ _−_ _P_ EL _e,τ_ ) _−_ _P_ Le _,τ_ _∀e, τ_ (2) HEH _e,τ_ = _ν_ 1PBU _e,τ_ + (HD _e,τ_ _−_ HC _e,τ_ ) _−_ HL _e,τ_ _∀e, τ, ν_ 1 = <sup><u>(1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>ηt −</u>_</sup> _ηt_ <sup>_<u>η</u>_</sup> <sup><u>1)</u></sup> <sup>_<u>ηh</u>_</sup> (3) <sup>_<u>−</u>_</sup> _ηt_ <sup>_<u>η</u>_</sup> <sup><u>1)</u></sup> <sup>_<u>ηh</u>_</sup> 0 _≤_ _PELe,τ_ _≤_ _PEL_ <sup>_up_</sup> <sup>_XEL e,τ_</sup> <sup>_∀e, τ_</sup> (4) 0 _≤_ _PF C e,τ_ _≤_ _PF C_ <sup>_up_</sup> <sup>_eF C e,τ_</sup> <sup>_∀e, τ_</sup> (5) XEL _e,τ_ + XFC _e,τ_ _≤_ 1 _∀e, τ_ (6) _HT_ <sup>_up_</sup> _e_ <sup>_∀e, τ_</sup> (8) ) _E_ HT _e,τ_ = _E_ HT <sup>ini</sup> _e_ <sup>+</sup> _E_ HT _e,τ_ = _E_ HT <sup>ini</sup> _h_ ∑ _τ_ _h_ =1 ( <u>1</u> _η_ EL _P_ EL _e,h −_ _η_ FC <sup>_P_</sup> <sup>FC</sup> <sup>_e,h_</sup> _∀e, τ_ (7) _E_ <sup>_lo_</sup> _HT_ <sup>_lo_</sup> _e_ <sup>_≤_</sup> <sup>_E_</sup> _HT e,τ_ <sup>_≤_</sup> <sup>_E_</sup> _HT_ <sup>_up_</sup> 0 _≤_ _HCe,τ_ _≤_ _HCe_ <sup>_upXCe,τ_</sup> <sup>_∀e, τ_</sup> (9) _D_ 0 _≤_ _HDe,τ_ _≤_ _H_ <sup>_up_</sup> _up_ _De,τ_ <sup>_∀e, τ_</sup> (10) XC _e,τ_ + XD _e,τ_ _≤_ 1 _∀e, τ_ (11) TS <sup>_up_</sup> _e_ <sup>_∀e, τ_</sup> (13) ) _ET Se,τ_ = _ET S_ <sup>ini</sup> <sup>+</sup> _h_ =1 _∀e, τ_ (12) _η_ ( _ηC_ _PCe,h −_ _η_ <sup><u>1</u></sup> _D_ _η_ <sup><u>1</u></sup> _D_ <sup>_PDe,h_</sup> _E_ <sup>_le_</sup> TS <sup>_le_</sup> <sup>_≤_</sup> <sup>_E_</sup> <sup>TS</sup> <sup>_e,τ_</sup> <sup>_≤_</sup> <sup>_E_</sup> TS <sup>_up_</sup> _h_ ∑ _τ_ _−_ FT _≤_ PEH _e,τ_ _−_ PEH _e,τ_ _≤_ FT _∀e, τ_ (14) _−_ FT _≤_ HEH _e,τ_ _−_ HEH _e,τ_ _≤_ FT _∀e, τ_ (15) The proposed approach offers a comprehensive and well-structured plan for establishing a renewable energy center. It effectively incorporates energy production from a range of renewable sources, as described by the formulas in Eqs. (2) and (3), forming an essential part of the center’s design. As a result, the model is adaptable, allowing the integration of multiple renewable energy types, with their contributions to power generation seamlessly represented in Eqs. (2) and (3). Furthermore, the research presents an innovative approach to hydrogen storage, addressing key parameters like charging and discharging speeds, capacity for energy retention, and the assessment of the energy held. These factors are relevant across different storage technologies. The layout of the energy system is intentionally versatile, allowing for the incorporation of multiple storage types. This adaptability makes the model especially effective for use in renewable energy centers that rely on various storage methods. B) At the foundational stage, the emphasis is placed on developing the model for determining the Market Clearing Price (MCP), which is used to determine the Local Marginal Prices (LMP) for both electricity and thermal energy at different buses and nodes within the energy system. The relevant equations for this are provided in Eqs. (16) through (30). _τ_ ∑ _m_ ( ∑ ∑ _n_ _αn_ <sup>_E_</sup> <sup>+</sup> <sup>_β_</sup> _n_ <sup>_EP_</sup> _EGUn,τ_ <sup>+</sup> <sup>_χE_</sup> + _m_ _αm_ <sup>_H_</sup> <sup>+</sup> <sup>_β_</sup> _m_ <sup>_H_</sup> <sup>_H_</sup> _HGUm,τ_ <sup>+</sup> <sup>_χH_</sup> ∑ ( _n_ <sup>(</sup> <sup>_P_</sup> _EGUn,τ_ <sup>)2)</sup> ∑ (( _m_ <sup>(</sup> <sup>_H_</sup> _HGUm,τ_ <sup>)2</sup> <sup>+</sup> _k,n_ <sup>_P_</sup> _T L_ <sup>_n_</sup> _n,k,τ_ <sup>=</sup> <sup>_P_</sup> _Ln,τ_ <sup>:</sup> <sup>_λE_</sup> <sup>_E_</sup> <sup>_χH_</sup> _n_ <sup>(</sup> <sup>_P_</sup> _EGUn,τ_ <sup>)2)</sup> _m_ <sup>(</sup> <sup>_H_</sup> _HGUm,τ_ <sup>_H_</sup> <sup>(</sup> <sup>_P_</sup> _EGUn,τ_ <sup>)2)</sup> _m_ <sup>(</sup> <sup>_H_</sup> _HGUm,τ_ <sup>)2))</sup> _n_ <sup>_EP_</sup> _EGUn,τ_ <sup>+</sup> <sup>_χE_</sup> _m_ <sup>_H_</sup> <sup>_H_</sup> _HGUm,τ_ <sup>+</sup> <sup>_χH_</sup> _n_ <sup>_E_</sup> <sup>+</sup> <sup>_β_</sup> _n_ <sup>_E_</sup> _m_ <sup>_H_</sup> <sup>+</sup> <sup>_β_</sup> _m_ <sup>_H_</sup> _k,n_ <sup>_E_</sup> <sup>_P_</sup> _T L_ <sup>_n_</sup> _n,k,τ_ <sup>=</sup> <sup>_P_</sup> _Ln,τ_ <sup>:</sup> <sup>_λE_</sup> ) _λ_ <sup>_E_</sup> <sup>_E_</sup> _n,τ_ <sup>_, λH_</sup> <sup>_H_</sup> _m,τ_ <sup>_∈_</sup> <sup>arg</sup> min _OC_ = { _m_ _n_ _αm_ <sup>_H_</sup> _αn_ <sup>_E_</sup> (16) _α_ ( <sup>_q_</sup> _n,τ_ <sup>_∀n, τ_</sup> (18) _PEGUn,τ_ + ∑ _e_ <sup>_I_</sup> _e,n_ <sup>_E_</sup> _e,n_ <sup>_E_</sup> <sup>_P_</sup> _EH e,τ_ <sup>+</sup> _k_ ∑ _n_ ( (( _k_ <sup>_J_</sup> _k,n_ <sup>_E_</sup> <sup>_E_</sup> _n,τ_ <sup>_∀n, τ_</sup> (17) _ _δ_ <sup>)</sup> <sup>_−_</sup> Q _EGUn,τ_ + _k_ ∑ _k_ <sup>_J_</sup> _k,n_ <sup>_E_</sup> _k,n_ <sup>_E_</sup> <sup>_Q_</sup> _T L n,k,τ_ <sup>=</sup> <sup>_Q_</sup> _Ln,τ_ <sup>:</sup> <sup>_λq_</sup> sl <sup>2</sup> _l_ <sup>2</sup> _l_ <sup>∆</sup> <sup>_δ_</sup> _n,k,τ,l_ <sup>:</sup> <sup>_λql_</sup> <sup>_pl_</sup> _n,k,τ_ <sup>_∀n, k, τ_</sup> (19) _P_ TL _n,k,τ_ = _gT L n,k_ (2 _Vn,τ_ _−_ 1) _−_ ( _Vn,τ_ + _Vk,τ,σ_ _−_ 1) Φ1(_ _δ_ _l_ <sup>sl</sup> _l_ <sup>1</sup> _l_ <sup>1∆</sup> <sup>_δ_</sup> _n,k,τ,l_ <sup>:</sup> <sup>_λpl_</sup> <sup>_ql_</sup> _n,k,τ_ <sup>_∀n, k, τ_</sup> (20) QTL _,_ k _,τ,σ_ = _−b_ TL _,_ k _,_ k (2 V _n,τ,σ_ _−_ 1) _−_ (V _n,τ,σ_ + Vk _,τ_ _−_ 1) Φ2(_ _δ_ _ _δ_ <sup>)</sup> <sup>_−_</sup> _l_ ∑ _l_ ∑ _l_ 0 _≤_ ∆ _δn,k,τ,l_ _≤_ <sup><u>4 ¯</u></sup> _N_ <sup>_<u>φ</u>_</sup> _l_ <sup>:</sup> <sup>_µ_</sup> _−_ ∆ _δ_ _,_ _−n,k,τ,l_ _,_ ¯ _µn,k,τ,l_ <sup>∆</sup> <sup>_δ_</sup> <sup>_∀n, k, τ, l_</sup> (21) _,_ ¯ _µ_ <sup>∆</sup> <sup>_δ_</sup> _k_ ∑ _k,m_ <sup>_H_</sup> <sup>_H_</sup> _P Lm,k,τ_ <sup>=</sup> <sup>_H_</sup> _L,m,τ_ <sup>:</sup> <sup>_λH_</sup> _HHGUm,τ_ + _e_ ∑ _Ie,m_ <sup>_H_</sup> <sup>_H_</sup> _EMm,τ_ <sup>+</sup> _Jk,m_ <sup>_H_</sup> <sup>_H_</sup> _m,τ_ <sup>_∀m, τ_</sup> (22) _e_ _k_ _P L_ <sup>_m,k,τ,ϖ_</sup> = _hcP Lm,k_ ( _Tm,τ,ϖ_ _−_ _Tk,τ,ϖ_ ) : _λ_ <sup>_hl_</sup> _HP L_ <sup>_m,k,τ,ϖ_</sup> V <sup>_lo_</sup> _≤_ V _n,τ,ϖ_ _≤_ V <sup>_up_</sup> : _µ−_ _m,k,τ,ϖ_ <sup>_hl_</sup> <sup>_∀m, k, τ, ϖ_</sup> (23) _v_ _,_ _n,τ,ϖ_ _−_ _,_ ¯ _µ_ <sup>_v_</sup> <sup>_v_</sup> _n,τ,ϖ_ <sup>_∀n, τ, ϖ_</sup> (24) t T <sup>lo</sup> _≤_ T _m,τ,ϖ_ _≤_ T <sup>_up_</sup> : _µ−_ t T <sup>lo</sup> _≤_ T _m,τ,ϖ_ _≤_ T <sup>_up_</sup> : _µ−_ _,_ ¯ _µ_ <sup>t</sup> _m,τ,ϖ_ <sup>_∀m, τ, ϖ_</sup> (25) _,_ ¯ _µ_ <sup>t</sup> t _m,τ,ϖ_ _P_ <sup>_lo_</sup> _EGUn_ <sup>_lo_</sup> <sup>_≤_</sup> <sup>_P_</sup> _EGU n,τ,ϖ_ <sup>_≤_</sup> <sup>_P up_</sup> <sup>_lo_</sup> _EGUn_ <sup>_≤_</sup> <sup>Q</sup> _EGUn,τ,ϖ_ <sup>_≤_</sup> <sup>_Qup_</sup> <sup>_up_</sup> _EGUn_ <sup>:</sup> <sup>_µ_</sup> _−_ _p_ _n,τ,ϖ_ _,_ ¯ _µ_ <sup>_p_</sup> _n,τ,ϖ_ <sup>_∀n, τ, ϖ_</sup> (26) _,_ ¯ _µ_ <sup>_p_</sup> Q <sup>_lo_</sup> _EGUn_ <sup>_up_</sup> <sup>:</sup> <sup>_µ_</sup> _−_ _q_ _n,τ,ϖ_ _,_ ¯ _µ_ <sup>_q_</sup> _n,τ,ϖ_ <sup>_∀n, τ, ϖ_</sup> (27) _,_ ¯ _µ_ <sup>_q_</sup> _H_ <sup>_lo_</sup> <sup>_lo_</sup> _HGU_ _HGU_ <sup>_m ≤_</sup> <sup>_H_</sup> <sup>_m,τ,ϖ_</sup> _HGU_ <sup>_m,τ,ϖ_</sup> _≤_ _H_ <sup>_up_</sup> _HGU m_ <sup>_up_</sup> <sup>:</sup> <sup>_µ_</sup> _−_ _h_ _,_ _m,τ,ϖ_ _,_ ¯ _µ_ <sup>_h_</sup> _m,τ,ϖ_ <sup>_∀m, τ, ϖ_</sup> (28) _,_ ¯ _µ_ <sup>_h_</sup> _PT Ln,k,τ_ cos ( _s ×_ ∆ _θ_ ) + _QT Ln,k,τ_ sin ( _s ×_ ∆ _θ_ ) _≤_ _ST Ln,k_ <sup>_up_</sup> _T Ln,k_ <sup>_up_</sup> <sup>:</sup> <sup>_~~µs~~_</sup> <sup>_l_</sup> <sup>_~~s~~_</sup> _n,k,τ,s_ <sup>_l_</sup> <sup>_∀n, k, τ, s_</sup> (29) } (30) _−H_ <sup>_up_</sup> _P Lm,k_ <sup>_up_</sup> <sup>_≤_</sup> <sup>_HP L_</sup> <sup>_m,k,τ,ϖ_</sup> <sup>_≤_</sup> <sup>_H_</sup> <sup>_up_</sup> _P Lm,k_ <sup>_up_</sup> <sup>:</sup> <sup>_µ_</sup> _−_ _hl_ _m,k,τ,ϖ_ _,_ ¯ _µ_ <sup>_hl_</sup> _m,k,τ,ϖ_ <sup>_∀m, k, τ, ϖ_</sup> _,_ ¯ _µ_ <sup>_hl_</sup> The objective of the problem, defined by Eq. (16), is to reduce the expenses related to fuel consumption for Electric Generation Units (EGUs) and Heating Generation Units (HGUs), as cited in <sup>29</sup> . The constraints provided in Eqs. (17)-(30) establish the necessary conditions for the optimal distribution of power across both the electrical and thermal systems. Equations (17) to (21) present simplified representations of AC power flow that are applicable to the electrical grid <sup>4,16</sup> . The first two relations, (17) and (18), describe the power balance— both active and reactive—at the system’s buses. Meanwhile, Eqs. (19) and (20) model the flow of both active and reactive power across transmission lines. Furthermore, Eq. (21) defines the boundaries for deviations in power angles. It’s important to note that the constraints in Eqs. (19) and (20) are simplified versions of the nonlinear relationships found in Eqs. (31) and (32) as shown in references <sup>4,16</sup> . _P_ TL _n,k_ = _g_ TL _n,k_ (V _n,τ_ ) <sup>2</sup> Φ1( _δn,k_ ) _δn,k_ _−_ ~~<u>�</u>~~ _n,_ _τ_ _k,_ _τ {g_ TL _,_ kcos( _φn,τ_ _−_ _φ_ ~~��~~ _k,τ_ ) + _b_ TL _n,k_ sin ( _φn,τ_ _−_ _φk,τ_ ) _}_ ~~�~~ ~~<u>����</u>~~ <u>����</u> QTL _n,k_ = _−b_ TL _n,k_ (V _n,τ,ϖ_ ) <sup>2</sup> _k,_ _τ {g_ TL _,_ kcos( <u>����</u> = _−b_ TL _n,k_ (V _δn,k_ _φn,τ_ _−_ _φ_ ~~��~~ _k,τ_ ) + _b_ TL _n,k_ sin ( _φn,τ_ _−_ _φk,τ_ ) _}_ ~~�~~ (31) (32) QTL _n,k_ = _−b_ TL _n,k_ (V _n,τ,ϖ_ ) <sup>2</sup> Φ2( _δn,k_ ) +V _n,τ_ Vk _,τ_ _{b_ TL _n,k_ cos ( _φn,τ_ _−_ _φ_ k _,τ_ ) _−_ _g_ TL _,_ ksin ( _φn,τ_ _−_ _φk,τ_ ) _}_ ~~<u>�</u>~~ ~~<u>��</u>~~ ~~<u>�</u>~~ In this formulation, _φ_ represents the phase angle of the voltage. Given that the level of voltage, V, in the grid is restricted to a range between 0.95 and 1.05 per unit (p.u.), the terms _V_ <sup>2</sup> and _Vn, Vk_ can be linearly approximated as 2 _V_ _−_ 1 and _Vn_ + _Vk −_ 1, respectively, as per reference <sup>30</sup> . This linearization results in a largest deviation in estimation of merely 0.0025 p.u. Additionally, the functions Φ1 and Φ2, as detailed in Eqs. (31) <sup>and (32), can be</sup> <sup>_δ_</sup> _ <sup>) + ∑</sup> reformulated using the standard piecewise linearization method <sup>30</sup> as Φ1( _δ_ _l_ <sup>sl</sup> _l_ <sup>1</sup> _l_ <sup>1∆</sup> <sup>_δl_</sup> <sup>and Φ2(</sup> <sup>_δ_</sup> _l_ <sup>sl</sup> _l_ <sup>2</sup> _l_ <sup>2∆</sup> <sup>_δl_</sup> <sup>,</sup> respectively. Here, ∆ _δ_ signifies the variation in the electrical phase angle, and _sl_ represents The angle of the curve. The term _ _δ_ _ _δ_ <sup>indicates the minimum power angle, which is equivalent to twice the average voltage angle,</sup> _δ_ _ <sup>) + ∑</sup> denoted as 2 ¯ _φ_ . The power angle ( _δ_ ) is defined as the difference between _φn_ and _φk_, as per Eq. (31), and <sup>can be</sup> _δ_ cos( _−_ _ <sup>+ ∑</sup> 1( _δ_ _l_ <sup>sl</sup> _l_ <sup>1</sup> _l_ <sup>1∆</sup> <sup>_δl_</sup> <sup>or V</sup> <sup>_n_</sup> <sup>V</sup> <sup>_k_</sup> <sup>Φ2(</sup> <sup>_δ_</sup> _ <sup>_δ_</sup> <sup>) are derived</sup> expressed in the piecewise linearization method as _δ_ _l_ <sup>∆</sup> <sup>_δl_</sup> <sup>. The functions Φ1(</sup> _ <sup>_δ_</sup> _ <sup>_δ_</sup> <sup>) and Φ2(</sup> _ <sup>_δ_</sup> from _g_ TL _,_ kcos( _−_ 2 ¯ _φ_ ) + _b_ TL _,_ ksin( _−_ 2 ¯ _φ_ ) and _b_ TL _,_ kcos( _−_ 2 ¯ _φ_ ) _−_ _g_ TL _,_ ksin( _−_ 2 ¯ _φ_ ), respectively. Furthermore, _δ_ _ <sup>) + ∑</sup> <sup>_δ_</sup> _ <sup>) + ∑</sup> Φ1 V _n_ V _k_ and Φ2 V _n_ V _k_ can be defined as V _n_ V _k_ Φ1( _δ_ _l_ <sup>sl</sup> _l_ <sup>2</sup> _l_ <sup>2∆</sup> <sup>_δl_</sup> <sup>, allowing</sup> for the highest permissible margin of error in the approximation of 0.005 <sup>30</sup> . Consequently, the limitations outlined in Eqs. (31) and (32) may be effectively approximated as constraints(19) and (20), with the condition _ <sup>) + ∑</sup> _ <sup>) + ∑</sup> for maintaining angle stability is incorporated within the given constraint (21) <sup>30</sup> . The following relations, (22) and (23), describe the flow behavior within the thermal network, as outlined in <sup>13,14</sup> . In particular, Eq. (22) models the thermal power equilibrium at each node, whereas Eq. (23) determines the thermal energy transferred through the system’s pipelines. The operational limitations for both the electrical and thermal grids, specified in constraints (24) through (30), have been thoroughly defined. Specifically, constraints (24) and (25) impose bounds on the voltage levels at electrical nodes and the temperature at thermal nodes, according to <sup>4</sup> . The constraints on the active and reactive power capabilities of Electric Generating Units (EGUs) are presented in Eqs. (26) and (27), respectively, as detailed in <sup>29</sup> . Similarly, constraint (28) corresponds to the operational limits of the heat power produced by Heat Generating Units (HGUs). Constraints (29) and (30) set capacity limits for electrical transmission lines and thermal pipelines, respectively <sup>16</sup> . Specifically, constraint (29) deals with the maximum apparent power that can be transmitted through a line, and constraint (30) addresses the maximum heat power that can pass through a pipeline. The capacity limit of transmission lines is represented as a circular plane equation P <sup><u>2</u></sup> <u>+ Q</u> <sup><u>2</u></sup> _≤_ S <sup>14</sup> . In Eq. (29), this circular plane is approximated by a linearized equation resembling a regular polygon format <sup>4</sup> . This approximation is based on the concept that each side of a √ regular polygon can be expressed as P _×_ cos(s _×_ ∆ _θ_ ) + Q _×_ cos(s _×_ ∆ _θ_ ) = S. Here, ∆ _θ_ = 360 _/_ Ns denotes the angle deviation, with _Ns_ representing the number of sides of the regular polygon <sup>4</sup> . The resulting square plane equation for each side is _×_ cos( _s ×_ ∆ _θ_ )+ Q _×_ cos(s _×_ ∆ _θ_ ) _≤_ S. When this relationship is extended to each edge, it forms an approximation of the circular plane by a regular polygon. The line equation for every edge touches the circle at the angle _s ×_ ∆ _θ_, which guarantees that the circular plane is entirely enclosed within the regular polygon. As the number of sides increases, the approximation of the regular polygonal plane becomes increasingly accurate to the circular plane P <sup><u>2</u></sup> <u>+ Q</u> <sup><u>2</u></sup> _≤_ S <sup>4</sup> . The proposed design, outlined in formulations (1)-(30), adopts a bi-level optimization approach. To facilitate √ resolution using conventional solvers, the model is transformed into a single-level format. Given the convex nature of the lower-level problem, defined by Eqs. (16)-(30), the Karush–Kuhn–Tucker (KKT) method is utilized to derive this single-level model <sup>31</sup> . To begin this process, the initial step involves formulating the Lagrange function (L) that corresponds to the optimization task at the lower level <sup>31</sup> . This function serves as a combination of the objective from the lower-level task (16) and the aggregate of penalty terms tied to the constraints (17)-(30) that define the lower-level model. More specifically, the penalty for an equality constraint _a_ = _b_ is expressed as _λ._ ( _b −_ _a_ ), while the penalty for an inequality constraint _a ≤_ _b_ is represented by μ.max(0, _a −_ _b_ ) <sup>2</sup> . In this context, _λ_ and _µ_ are the Lagrange multipliers. The final single-level expression integrates the higher-level optimization model (1)-(15) along with the corresponding KKT conditions. These conditions are obtained by differentiating the Lagrange function L in relation to the lower-level variables and the Lagrangian multipliers _λ_ and _µ_, then equating the result to zero <sup>31</sup> . As a result, the formulation for this approach is represented as follows: √ P <sup><u>2</u></sup> <u>+ Q</u> <sup><u>2</u></sup> _≤_ S <sup>14</sup> . In Eq. (29), this circular plane is approximated by a linearized √ P <sup><u>2</u></sup> <u>+ Q</u> <sup><u>2</u></sup> _≤_ S <sup>4</sup> . _Equation_ (1) (33) _Equations_ (2) _−_ (15) (34) _Equations_ (17) _−_ (30) : _∂L/∂λ_ = 0 _and first condition of_ _∂L/∂µ_ = 0 (35) _n,τ_ <sup>_q_</sup> <sup>= 0 :</sup> _∂QEGU∂L_ _n, τ_ <sup>= 0</sup> <sup>_∀n, τ_</sup> (37) <sup>_E_</sup> _n,τ_ <sup>+</sup> <sup>_µ_</sup> _n_ <sup>_E_</sup> <sup>+ 2</sup> <sup>_χ_</sup> _n_ <sup>_E_</sup> <u>)</u> _λ_ <sup>_E_</sup> _−_ _p_ _βn_ <sup>_E_</sup> _n_ <sup>_EP_</sup> _EGUn,τ_ : _∂PEGUn,τ∂L_ <sup>= 0</sup> <sup>_∀n, τ_</sup> (36) _n,τ_ _−_ _µ_ ¯ <sup>_p_</sup> <sup>_q_</sup> _n,τ_ <sup>+</sup> <sup>_µ_</sup> _λ_ <sup>_q_</sup> <sup>_p_</sup> _n,τq_ <sup>= (</sup> <sup>_µ_</sup> _−_ _q_ _n,τ_ _−_ _µ_ ¯ <sup>_q_</sup> <u>∑</u> _µ_ ¯ <sup>_sl_</sup> _n,k,r,s_ <sup>cos (</sup> <sup>_s ×_</sup> <sup>∆</sup> <sup>_θ_</sup> <sup>) = 0 :</sup> _∂PT L∂L, n, r, τ_ <sup>= 0</sup> <sup>_∀n, k, τ_</sup> (38) <sup>_sl_</sup> _n,k,r,s_ <sup>cos (</sup> <sup>_s ×_</sup> <sup>∆</sup> <sup>_θ_</sup> <sup>) = 0 :</sup> _∂PT L∂L, n, r, τ_ <sup>= 0</sup> <sup>_∀n, k, τ_</sup> (38) _−Jk,n_ <sup>_E_</sup> _k,n_ <sup>_E_</sup> <sup>_λE_</sup> <sup>_E_</sup> _n,τ_ <sup>_−_</sup> <sup>_λpl_</sup> _n,k,τ_ <sup>_pl_</sup> <sup>+</sup> _s_ <sup>_µ_</sup> <sup>¯</sup> <sup>_sl_</sup> _−Jk,n_ <sup>_E_</sup> _k,n_ <sup>_E_</sup> <sup>_λq_</sup> <sup>_q_</sup> _n,τ_ <sup>_−_</sup> <sup>_λql_</sup> <sup>_ql_</sup> _s_ _n,k,τ_ <sup>+ ∑</sup> _λ_ <sup>_pl_</sup> <sup>_ql_</sup> _n,k,τ_ <sup>_−_</sup> <sup>Φ1(</sup> <sup>_δ_</sup> ∆ _δ−_ <sup>) (</sup> + _µ_ ¯ <sup>∆</sup> <sup>_δ_</sup> <sup>¯</sup> <sup>_sl_</sup> _n,k,τ,s_ <sup>sin (</sup> <sup>_s ×_</sup> <sup>∆</sup> <sup>_θ_</sup> <sup>) = 0 :</sup> _∂QT L n,k,τ∂L_ <sup>= 0</sup> (39) _∀n, k, τ_ _l_ <sup>2</sup> <sup>_λll_</sup> <sup>_ll_</sup> _n,k,τ_ <sup>= 0 :</sup> 2 _gT Ln, kn,k,τ_ <sup>_pl_</sup> <sup>_−_</sup> <sup>2</sup> <sup>_bT Ln, λql_</sup> <sup>_pl_</sup> _n,k,τ_ <sup>+</sup> <sup>_λ_</sup> _k,n,τ_ <sup>_pl_</sup> ) _λ_ <sup>_ql_</sup> _n,k,τ_ <sup>+</sup> <sup>_λql_</sup> ) _λ_ <sup>_pl_</sup> _k,n,τ_ _k,n,τ_ + _µ_ ¯ <sup>_v_</sup> _n,τ_ <sup>= 0 :</sup> _∂V∂Ln,τ_ <sup>= 0</sup> <sup>_∀n, τ_</sup> <sup>(40)</sup> (41) _−_ Φ2( _−δ_ _−_ _λ_ <sup>_ql_</sup> _−_ _µ−_ _−_ _v_ _n,τ_ ∆ _δ_ _l_ <sup>1</sup> <sup>_λpl_</sup> <sup>_pl_</sup> _n,k,τ_ <sup>_−_</sup> <sup>sl</sup> _l_ <sup>2</sup> _−δ_ _−_ ) <sup>(</sup> _−µ−_ _−_ _n,k,τ,l_ _∂_ ~~∆~~ _δ∂Ln,k,τ,l_ <sup>= 0</sup> <sup>_∀n, k, τ, l_</sup> ¯ <sup>∆</sup> _n,k,τ,l_ <sup>_δ_</sup> <sup>_<u>−</u>_</sup> <sup>sl</sup> _l_ <sup>1</sup> _λ_ <sup>_H_</sup> _m,τ_ <sup>+</sup> <sup>_µ_</sup> _m_ <sup>_H_</sup> <sup>+ 2</sup> <sup>_χ_</sup> _m_ <sup>_H_</sup> _m_ <sup>_H_</sup> <sup>_H_</sup> _HGU_ <sup>_m_</sup> _,τ_ _λ_ <sup>_H_</sup> _−_ _h_ _m,τ_ _−_ _µ_ ¯ <sup>_h_</sup> <sup>_h_</sup> _β_ _m,τ_ <sup>= (</sup> _βm_ <sup>_H_</sup> : _∂HHGU∂Lmm,τ_ <sup>= 0</sup> <sup>_∀m, τ_</sup> (42) <u>)</u> _−Jk,m_ <sup>_H_</sup> _k,m_ <sup>_H_</sup> <sup>_λH_</sup> <sup>_H_</sup> _m,τ_ <sup>_−_</sup> <sup>_λhl_</sup> _m,k,τ_ <sup>_hl_</sup> _m,k,τ_ <sup>_−_</sup> <sup>_µ_</sup> _−_ _−_ _hl_ _m,k,τ_ + _µ_ ¯ <sup>_hl_</sup> <sup>_hl_</sup> _m,k,τ_ <sup>= 0 :</sup> _∂HP L∂Lm, k, τ_ <sup>= 0</sup> <sup>_∀m, k, τ_</sup> (43) _hCP Lm, k_ <sup>(</sup> <sup>∆</sup> _n,k,τ,l_ <sup>_δ_</sup> <sup>= 0 :</sup> _∂µ∂L_ <u>∆</u> _δ_ _λ_ <sup>_hl_</sup> _k,m,τ_ <sup>_t_</sup> _m,τ_ <sup>= 0 :</sup> _∂T∂Lm,τ_ <sup>= 0</sup> <sup>_∀m, τ_</sup> (44) <sup>_hl_</sup> _m,k,τ_ <sup>_−_</sup> <sup>_λhl_</sup> ) + _µ_ ¯ <sup>_t_</sup> _m,τ_ <sup>= 0 :</sup> _∂T∂Lm,τ_ <sup>= 0</sup> <sup>_∀m, τ_</sup> (44) _−_ _µ−_ _−_ _µ−_ _t_ _m,τ_ ∆ _δn,k,τ,lµ_ <sup>∆</sup> <sup>_δ_</sup> <u>∆</u> _δ_ = 0 _∀n, k, τ, l_ (45) _ _n,k,τ,l_ ( ( ∆ _δn,k,τ,l −_ <u>3</u> <sup><u>2</u></sup> _N_ <sup>_<u>π</u>_</sup> _l_ ∆ _δn,k,τ,l −_ <u>3</u> <sup><u>2</u></sup> _N_ <sup>_<u>π</u>_</sup> _l_ ) _n,k,τ,l_ <sup>∆</sup> _n,k,τ,l_ <sup>_δ_</sup> <sup>= 0 :</sup> _<u>∂L</u>_ _∂µ_ <u>¯</u> <sup><u>∆</u></sup> <sup>_δ_</sup> _µ_ ¯ <sup>∆</sup> <sup>_δ_</sup> = 0 _∀n, k, τ, l_ (46) ) = 0 _∀n, τ_ (47) V <sup>lo</sup> _−_ V _n,τ_ _µ_ _ _µv_ _ _n,τ_ _ _<u>∂</u>_ <u>L</u> = 0 : _∂µv_ _v_ _n,τ_ _<u>∂L</u>_ (V _n,τ_ _−_ V <sup>_up_</sup> ) ¯ _µn,τ_ <sup>_v_</sup> <sup>= 0 :</sup> _∂µ_ <u>¯</u> <sup>_v_</sup> _n,τ_ <sup>= 0</sup> <sup>_∀n, τ_</sup> (48) ( ) = 0 _∀m, τ_ (49) T <sup>lo</sup> _−_ T _m,τ_ t _µ_ _ _m,τ_ _<u>∂</u>_ <u>L</u> = 0 : _∂µ_ t _ t _m,τ_ _<u>∂L</u>_ ( _Tm,τ_ _−_ _T_ <sup>_up_</sup> ) ¯ _µm,τ_ <sup>_t_</sup> <sup>= 0 :</sup> _∂µ_ <u>¯</u> <sup>_t_</sup> _m,τ_ <sup>= 0</sup> <sup>_∀m, τ_</sup> (50) ( = 0 _∀n, τ_ (51) _PEGUn_ <sup>_lo_</sup> <sup>_−_</sup> <sup>_P_</sup> _EGUn,τ_ _P_ <sup>_lo_</sup> ) _µ_ _ _p_ _n,τ_ _p_ = 0 : _∂µ∂Lp_ _ _n,τ_ ( _PEGUn,τ_ _−_ _PEGUn_ <sup>_up_</sup> _EGUn_ <sup>_up_</sup> <sup>) ¯</sup> <sup>_µp_</sup> _n,τ_ <sup>_p_</sup> _n,τ_ <sup>= 0 :</sup> _<u>∂L</u>_ _∂µ_ <u>¯</u> <sup>_<u>p</u>_</sup> _n,τ_ _<u>∂L</u>_ (52) <sup>_<u>p</u>_</sup> _n,τ_ <sup>= 0</sup> <sup>_∀n, τ_</sup> ( ( = 0 _∀n, τ_ (53) Q <sup>_lo_</sup> _EGUn_ <sup>_−_</sup> <sup>Q</sup> _EGUn,τ_ Q <sup>_lo_</sup> _µ_ _ _q_ _n,τ_ _q_ _<u>∂</u>_ <u>L</u> = 0 : _∂µq_ _ _n,τ_ _<u>∂L</u>_ (54) <sup>_<u>q</u>_</sup> _n,τ_ <sup>= 0</sup> <sup>_∀n, τ_</sup> _EGUn_ Q _EGUn,τ_ _−_ _Q_ <sup>_up_</sup> Q _EGUn,τ_ _−_ _Q_ <sup>_up_</sup> ) ) ) _µ_ ¯ <sup>_q_</sup> ¯ <sup>_q_</sup> _n,τ_ <sup>= 0 :</sup> _<u>∂L</u>_ _∂µ_ <u>¯</u> <sup>_<u>q</u>_</sup> _n,τ_ ( _H_ <sup>lo</sup> _µ_ _ _h_ _ _HGUm_ <sup>lo</sup> <sup>_−_</sup> <sup>_H_</sup> _HGUm,τ_ _h_ _m,τ_ = 0 : _∂µ∂Lh_ _m,τ_ = 0 _∀m, τ_ (55) = 0 _∀m, τ_ (56) ( _HHGUm,τ_ _−_ _H_ <sup>_up_</sup> _HGUm_ <sup>_up_</sup> <sup>) ¯</sup> <sup>_µh_</sup> <sup>_h_</sup> _m,τ_ <sup>= 0 :</sup> _<u>∂L</u>_ _∂µ_ <u>¯</u> <sup>_h_</sup> _m,τ_ ( ( _−HP L m,k_ <sup>_up_</sup> <sup>_−_</sup> <sup>_HP Lm,k,τ_</sup> _−H_ <sup>_up_</sup> _T Ln,k_ _PT Ln,k,τ_ cos( _s ×_ ∆ _θ_ ) + _QT Ln,k,τ_ sin( _s ×_ ∆ _θ_ ) _−_ _S_ <sup>_up_</sup> _PT Ln,k,τ_ cos( _s ×_ ∆ _θ_ ) + _QT Ln,k,τ_ sin( _s ×_ ∆ _θ_ ) _−_ _S_ <sup>_up_</sup> <u>)</u> _µ_ ¯ <sup>_sl_</sup> <sup>_sl_</sup> _n,k,τ,s_ <sup>= 0 :</sup> _<u>∂L</u>_ _∂µ_ <u>¯</u> <sup>_sl_</sup> _n,k,τ,s_ = 0 _∀n, k, τ, s_ (57) ) _µ_ _ _hl_ _m,k,τ_ _ = 0 : _∂µ∂Lhl_ _hl_ _m,k,τ_ <u>(</u> PL _m,k_ _H_ PL _m,k,τ_ _−_ _H_ <sup>_up_</sup> PL _H_ PL _m,k,τ_ _−_ _H_ <sup>_up_</sup> <u>)</u> _µ_ ¯ <sup>_hl_</sup> <sup>_hl_</sup> _m,k,τ_ <sup>= 0 :</sup> _<u>∂L</u>_ _∂µ_ <u>¯</u> <sup>_hl_</sup> _m,k,τ_ = 0 _∀m, k, τ_ (58) = 0 _∀m, k, τ_ (59) _λ ∈_ ( _−∞,_ + _∞_ ) _, µ ≥_ 0 (60) The task at the lower optimization level, expressed in Eq. (33), aligns with the purpose of the higher-level problem outlined in Eq. (1). This strategy combines both the limitations derived from the upper-level model in Eq. (34) and the Karush–Kuhn–Tucker principles described across Eqs. (35) to (60). The constraints of the lower-level problem, spanning (17)-(30), are derived from setting the derivatives of the Lagrange function, _∂L/∂λ_ and _∂L/∂µ_, to zero, as detailed in Eq. (35). The equations that emerge from equating the derivative of the Lagrange function to zero with respect to the variables of the lower-level problem (such as _PEGU_ _, QEGU_ _, PT L, QT L, V,_ ∆ _δ, HEGU_ _, HP L_, and _T_ ) are encapsulated in constraints (36)-(44). Notably, the process of setting ∂L/∂μ to zero yields two equations. The initial equation focuses on the condition _a ≤_ _b_, as described in Eq. (35). The subsequent equation calculates the value _µ._ ( _a −_ _b_ ) as referenced in <sup>31</sup> . The Lagrangian multipliers for the inequality constraints are formulated within the constraints outlined in Eqs. (45) to (59). Furthermore, the limitations for the Lagrangian multipliers are detailed in Eq. (60). An important aspect of this model is the nonlinear relationship _µ._ ( _a −_ _b_ ) in constraints (45)-(59), simplified as either _µ_ = 0 or _a_ = _b_ . To linearize this relationship and enable the use of standard optimization solvers like Gurobi, this paper employs the Big-M method <sup>31</sup> . This approach involves two linear expressions: _−M_ _× z_ _≤_ _µ ≤_ _M_ _× z_ and _−M_ _×_ (1 _−_ _z_ ) _≤_ _a −_ _b ≤_ _M_ _×_ (1 _−_ _z_ ), where _z_ is a binary variable and _M_ is a significantly large parameter (e.g., 10 <sup>6</sup> ). Ultimately, the model formulated at one level includes both linear restrictions and a quadratic objective function that is nonlinear in nature. This structure categorizes the problem as a mixed-integer quadratic programming (MIQP) issue, which can be efficiently tackled through the use of the Gurobi solver. The magnitude of M is chosen carefully to balance between computational efficiency and numerical stability. Specifically, M is set to a value of 10⁶, which corresponds to the upper bound of the decision variables in the system. This choice is based on the assumption that the maximum possible deviation in the operational limits of the energy hubs does not exceed this value. To avoid numerical instability, we ensure that M is sufficiently large to deactivate the constraints when the binary decision variables take the value of zero (i.e., when the constraint should not be active). However, the value of M is not so large as to cause significant rounding or precision errors in the optimization process. The choice of M is validated by running multiple test cases with varying values of M, where we observe no significant changes in the optimal solution or computational performance for values in the range of 10⁶ to 10⁸. This range of M has been tested and shown to avoid numerical issues while ensuring the feasibility and accuracy of the solution. Proposed two-stage robust optimization In real-world applications, the operational scheduling for Grid-Connected Flexible Renewable Energy Hubs is typically planned a day in advance. This method, however, introduces challenges related to variations in load requirements and fluctuations in wind energy output. To address these challenges effectively, the next section presents a robust optimization framework designed in two stages. A. Uncertainty modeling In robust optimization, the challenges posed by uncertainties are represented using suitable sets that define their range of possible variations. For the heat load, as well as active and reactive electric loads, these sets, denoted as ( _UD_ <sup>_H_</sup> <sup>_, U P_</sup> _D_ <sup>_, U Q_</sup> _D_ <sup>), are defined in the following manner:</sup> <sup>_P_</sup> _D_ <sup>_, U Q_</sup> _D_ _D_ <sup>_H_</sup> <sup>_, U P_</sup> _D_ <sup>_Q_</sup> _D_ <sup>), are defined in the following manner:</sup> <u>�</u> ~~<u>�</u>~~ <u>�</u> _m_ _H_ <sup>_H_</sup> _Lm,τ_ <sup>_Ln,τ_</sup> ~~<u>�</u>~~ _γ, Hm_ <sup><u>�</u></sup> _Lm,τ_ _HLm,τ_ τ _m_ <sup>_HLn,τ_</sup> <sup>_≤_</sup> <sup><u>ΓH</u></sup> <sup>_,_</sup> <sup><u>D</u></sup> _<u>m</u>_ <sup><u>�</u></sup> _UD_ <sup>_H_</sup> <sup>=</sup>    _≤_ τ _,_ _HLm,τ_ _∈_ [ _HLm,τ_ _−_ _HLm,τ_ _× γ, HLm,τ_ + _HLm,τ_ _× γ_ ] _PLn,τ_ - τ τ _,_ _≤_ <u>�</u> _n_ <sup>_PLn,τ_</sup> <sup>_≤_</sup> <sup><u>ΓP</u></sup> <sup>_,_</sup> <sup><u>D</u></sup> τ _ (61) τ _ _H_ - _Lm,τ∈_ [ _HLm,τ∈_ _R_ <sup>+</sup> _−_ <sup>��</sup> Γ _H_ <sup>H</sup> _Lm,τ_ <sup>_,_</sup> <sup>D</sup> <u>�</u> ~~<u>�</u>~~ <u>�</u> _n_ _P_ <sup>_P_</sup> _Ln,τ_ <sup>_Ln,τ_</sup> ~~<u>�</u>~~ _<u>n</u>_ <sup><u>�</u></sup> _PLn,τ_ τ _,_ _n_ <sup>_PLn,τ_</sup> <sup>_≤_</sup> <sup><u>ΓP</u></sup> <sup>_,_</sup> <sup><u>D</u></sup> _<u>n</u>_ <sup><u>�</u></sup> _D_ <sup>_P_</sup> <sup>=</sup> _UD_ <sup>_P_</sup>      _≤_ τ _,_ τ τ _,_ _ _≤_ (62) _n_ <sup>_PLn,τ_</sup> <sup>_≤_</sup> <sup><u>ΓP</u></sup> <sup>_,_</sup> <sup><u>D</u></sup> _P_ - _Ln,τ_ _∈_ _R_ <sup>+�</sup> - Γ <sup>P</sup> <sup>_,_</sup> <sup>D</sup> ~~<u>�</u>~~ _<u>n</u>_ <sup><u>�</u></sup> _QLn,τ_ _P_ - _Ln,τ_ _∈_ [ _PLn,τ_ _−_ _P_ τ _Ln,τ_ _× γ, PLn,τ_ + _PLn,τ_ τ _<u>×,</u>_ _γ_ ] _≤_ <u>�</u> _n_ <sup>_QLn,τ_</sup> <sup>_≤_</sup> <sup><u>ΓQ</u></sup> <sup>_,_</sup> <sup><u>D</u></sup> τ _ _Q_ - _Ln,τ∈_ [ _Q∈Ln,τR_ <sup>+</sup> _−_ <sup>��</sup> Γ _Q_ <sup>Q</sup> _Ln,τ_ <sup>_,_</sup> <sup>D</sup> τ _ _P_ - _Ln,τ_ _∈_ _R_ <sup>+�</sup> - Γ <sup>P</sup> <sup>_,_</sup> <sup>D</sup> _ τ _ <u>�</u> ~~�~~ <u>�</u> _n_ _Q_ <sup>_Q_</sup> _Ln,τ_ <sup>_Ln,τ_</sup> ~~�~~ _γ, Qn_ <sup><u>�</u></sup> _Ln,τ_ _QLn,τ_ τ _n_ <sup>_QLn,τ_</sup> <sup>_≤_</sup> <sup><u>ΓQ</u></sup> <sup>_,_</sup> <sup><u>D</u></sup> _<u>n</u>_ <sup><u>�</u></sup> _UD_ <sup>_Q_</sup> <sup>=</sup>        _≤_ τ _,_ _QLn,τ_ _∈_ [ _QLn,τ_ _−_ _QLn,τ_ _× γ, QLn,τ_ + _QLn,τ_ _× γ_ ] ), the uncertain heat and electric loads fluctuate within the ranges (63) Based on Eqs. (61 and 63), the uncertain heat and electric loads fluctuate within the ranges [ _HLm,τ_ _−_ _HLm,τ_ _× γ, HLm,τ_ + _HLm,τ_ _× γ_ ] and [ _PLn,τ_ _−_ _PLn,τ_ _× γ, PLn,τ_ + _PLn,τ_ _× γ_ ], respectively. The optimal solution’s conservation level can be fine-tuned by adjusting the values of Γ <sup>H</sup> t <sup>_,_</sup> <sup>D</sup>, Γ <sup>P</sup> t <sup>_,_</sup> <sup>D</sup>, and Γ <sup>Q</sup> t <sup>_,_</sup> <sup>D</sup>, The optimal solution’s conservation level can be fine-tuned by adjusting the values of Γ <sup>H</sup> t <sup>_,_</sup> <sup>D</sup>, Γ <sup>P</sup> t <sup>_,_</sup> <sup>D</sup>, and Γ <sup>Q</sup> t <sup>_,_</sup> <sup>D</sup>, collectively referred to as the margin of uncertainty. Specifically, as values of Γ <sup>H</sup> t <sup>_,_</sup> <sup>D</sup>, Γ <sup>p</sup> t <sup>_,_</sup> <sup>D</sup>, and Γ <sup>q</sup> t <sup>_,_</sup> <sup>D</sup> incrementally <sup>H</sup> t <sup>_,_</sup> <sup>D</sup>, Γ <sup>p</sup> t <sup>_,_</sup> <sup>D</sup> t t <sup>p</sup> t <sup>_,_</sup> <sup>D</sup>, and Γ <sup>q</sup> t <sup>_,_</sup> <sup>D</sup> <sup>H</sup> t <sup>_,_</sup> <sup>D</sup>, Γ <sup>P</sup> t <sup>_,_</sup> <sup>D</sup> <sup>P</sup> t <sup>_,_</sup> <sup>D</sup>, and Γ <sup>Q</sup> t <sup>_,_</sup> <sup>D</sup> collectively referred to as the margin of uncertainty. Specifically, as values of Γ <sup>H</sup> t <sup>_,_</sup> <sup>D</sup>, Γ <sup>p</sup> t <sup>_,_</sup> <sup>D</sup>, and Γ <sup>q</sup> t <sup>_,_</sup> <sup>D</sup> incrementally rise the best solution within the range of 0 to 24 becomes increasingly conservative. This modification also prolongs the duration in which the electrical and thermal demands at buses n and m can attain their respective minimum or maximum thresholds. The uncertainty budget for wind power generation, Γ _τ_ <sup>_W F_</sup>, is a parameter that defines the allowable range of uncertainty in wind power forecasts. It is expressed as a fraction of the forecast error and determines the limits within which the wind power generation can vary. The value of Γ _τ_ <sup>_W F_</sup> is calibrated based on historical The uncertainty budget for wind power generation, Γ _τ_ <sup>_W F_</sup> limits within which the wind power generation can vary. The value of Γ _τ_ <sup>_W F_</sup> is calibrated based on historical wind power generation data and forecast errors for the specific region and time period under consideration. In particular, Γ _τ_ <sup>_W F_</sup> is set as a percentage of the total installed wind capacity, representing the forecast variance In particular, Γ _τ_ <sup>_W F_</sup> is set as a percentage of the total installed wind capacity, representing the forecast variance over a specified time horizon (e.g., hourly, daily). For instance, in our study, Γ _τ_ <sup>_W F_</sup> is defined as 5% of the total _τ_ <sup>_W F_</sup> is defined as 5% of the total installed wind capacity, which captures the typical variability observed in the wind power generation forecasts. This value was chosen based on empirical data collected from the region, where the forecast errors in wind power generation typically fall within this range. The uncertainty set for wind power output, _UW F_, is defined as: <u>�</u> _PW F e,τ_ _e_ <sup>_P_</sup> _n,t_ <sup>_RE_</sup> ~~�~~ _<u>e</u>_ <sup><u>�</u></sup> _e_ <sup>_P_</sup> _n,t_ <sup>_RE_</sup> _n,t_ _UW F_ =      _≤_ - (64) τ _,_ _≤_ <u>Γ</u> <sup><u>WF</u></sup> _ _e_ <sup>_P_</sup> _n,t_ <sup>_RE_</sup> _P_ - _W F e,τ_ _∈_ _R_ <sup>+�</sup> - Γ <sup>WF</sup> ~~�~~ _<u>e</u>_ <sup><u>�</u></sup> represents the uncertainty budget for wind power generation, and _P_ - _W F e,τ_ _∈_ _PW F e,τ_ _−_ _P_ <sup>�</sup> _W F e,τ_ _, PW F e,τ_ + _P_ <sup>�</sup> _W F e,τPW F e,τ_ τ _ _P_ - _W F e,τ_ _∈_ _R_ <sup>+�</sup> - Γ <sup>WF</sup> _ where Γ _τ_ <sup>_W F_</sup> where Γ _τ_ <sup>_W F_</sup> represents the uncertainty budget for wind power generation, and _PW F e,τ_ denotes the forecasted wind power generation at time _τ_ for wind farm _e_ . The range of possible variations is constrained within _PW F e,τ_ _−_ _P_ <sup>ˆ</sup> _W F e,τ_ _, PW F e,τ_ + _P_ <sup>ˆ</sup> _W F e,τ_, where _P_ <sup>ˆ</sup> _W F e,τ_ is the forecast error for wind power. [ The margins δi, γ, and Γ are introduced as uncertainty bounds that reflect forecast errors and variability in ] renewable energy generation. These margins are crucial for robust decision-making under uncertain conditions _PW F e,τ_ _−_ _P_ <sup>ˆ</sup> _W F e,τ_ _, PW F e,τ_ + _P_ <sup>ˆ</sup> _W F e,τ_ ] , where _P_ <sup>ˆ</sup> _W F e,τ_ is the forecast error for wind power. The margins δi, γ, and Γ are introduced as uncertainty bounds that reflect forecast errors and variability in renewable energy generation. These margins are crucial for robust decision-making under uncertain conditions δi represents the margin associated with the forecast uncertainty of thermal or electrical loads in each energy hub. It is expressed in megawatts (MW) and indicates the deviation between the forecasted and actual load values. γ is the margin for wind power generation uncertainty. It represents the maximum allowable deviation from the forecasted wind power generation and is also expressed in megawatts (MW). Γ corresponds to the uncertainty margin for wind generation forecast variance. It is a fraction of the forecast variance of wind power generation and has units of megawatt-hours (MWh). Specifically, Γ is calibrated to reflect fluctuations in renewable energy forecasts. The calibration of margins δi, γ, and Γ is based on empirical data collected from historical energy hub operations and renewable energy generation profiles. The calibration procedure includes: The use of Monte Carlo simulations to generate scenarios reflecting the historical variation in energy demand and renewable generation. The margins are iteratively adjusted to ensure that the model is both robust in the face of uncertainty and practical in terms of operational flexibility. For example, Γ is calibrated as a fraction of the forecast variance of wind generation, using historical wind power data specific to the region and time period under study. We prove that the function U(x), central to the optimization model, remains bounded for all feasible values of x. This is accomplished by enforcing constraints that limit the uncertainty sets defined by the margins δi, γ, and Γ. Specifically: The uncertainty sets for forecast errors in load demand (δi) and renewable generation (γ and Γ) are bounded, ensuring that the decision space for x remains within feasible operational limits. As a result, U(x) is bounded because the uncertainties in forecast errors and renewable generation do not allow for unbounded fluctuations in the decision variables under any feasible scenario. This guarantees that the optimization model produces solutions within a feasible range of operational decisions. B. Proposed two-stage robust model In this instance, the objective function (1) is seamlessly transformed into a minimization format by applying a negative multiplier to the entire function. Based on the specified uncertainty ranges, the framework for the twostage robust optimization model is developed as shown below: _D_ <sup>_H_</sup> <sup>_,U_</sup> <sup>_P_</sup> _D_ <sup>_P_</sup> _D_ <sup>_,U_</sup> _D_ <sup>_Q_</sup> min _xτ_ _τ_ ∑ _a_ <sup>_T_</sup> _τ_ <sup>_T_</sup> _τ_ <sup>_x_</sup> _τ_ <sup>+</sup> max _UD_ <sup>_H_</sup> <sup>_,U_</sup> <sup>_P_</sup> _D_ <sup>_,U_</sup> _D_ <sup>_Q_</sup> _τ_ ∑ _τ_ _b_ <sup>_T_</sup> _τ_ <sup>_y_</sup> _τ_ (65) min _yτ ∈O_ ( _x_ 1 _,...,xT,i,d,g,j_ ) _D_ <sup>_Q,UWF_</sup> _Cτ_ _xτ_ _≤_ _cτ_ (66) _Hτ_ _yτ_ _≤_ _hτ_ _Gτ_ _yτ_ _≤_ _Lτ_ _dτ_ _−_ _iτ_ _xτ_ _−_ _Eτ_ _xτ_ _−_ _Kτ_ _gτ_ _Nτ_ _yτ_ _≤_ _w −_ _Mτ_ _xτ_ } _O_ ( _x_ 1 _, . . ., xT, i, d, g, j_ ) = _yτ_ _|_ { (67) This approach involves using x and y to represent the decision parameters for different operational states. A set of auxiliary factors, including C, E, G, H, K, L, M, and N, as well as a group of parameters such as a, b, c, h, and w, are crucial for the robust model’s efficiency. The variables i, d, g, and j capture the uncertainties related to heat and load requirements, as well as fluctuations in wind energy generation. In the first phase of the twostage robust model, the goal is to define a resilient energy schedule for the Energy Hubs (EHs). This phase focuses on maximizing the anticipated profits of EHs in the energy market by addressing the most difficult uncertainty conditions. After the initial decisions are made in the first phase, the model faces the most severe uncertainty scenarios related to EH operations using an internal max–min strategy, which emphasizes resilience. The feasible range for operational decision variables is defined in Eq. (66), including constraints from Eqs. (2) to (60). The initial inequality in Eq. (67) incorporates constraints that are directly relevant to the operational decision variables C. The C&CG method applied to address a two-phase robust optimization model The min–max-min optimization challenge delineated in Eqs. (65) to (67) presents a significant complexity that exceeds the capabilities of standard commercial software solutions. To address this challenge, a column-and constraint generation (C&CG) method, thoroughly examined in <sup>32</sup>, has been implemented. This approach is chosen over methods such as the Bender Decomposition (BD) <sup>33</sup>, as it offers superior efficiency when dealing with master problems involving a greater number of variables and constraints, leading to faster solutions with fewer iterations <sup>34</sup> . One key benefit of the C&CG method is its adaptability, as it does not require the subproblem to follow a linear structure, unlike the BD approach <sup>32</sup> . (1) Master Problem (MP) min _xτ,φ_ <sup>_φ_</sup> (68) _Cτ_ _xτ_ _≤_ _cτ_ (69) _τ_ <sup>_ϑ_</sup> <sup>_≤_</sup> <sup>_h_</sup> _τ_ (71) <sup>_T_</sup> _τ_ <sup>_y_</sup> _τ_ <sup>_ϑ_</sup> _τ_ ∑ _b_ <sup>_T_</sup> _τ_ _τ_ <sup>_ϑ_</sup> (70) _φ ≥_ _τ_ ∑ _τ_ _a_ <sup>_T_</sup> _τ_ _a_ <sup>_T_</sup> _τ_ <sup>_x_</sup> _τ_ <sup>+</sup> _τ_ _Hτ_ _yτ_ <sup>_ϑ_</sup> _Gτ_ _yτ_ <sup>_ϑ_</sup> _τ_ <sup>_ϑ_</sup> <sup>_≤_</sup> <sup>_L_</sup> _τ_ <sup>_dϑ_</sup> _τ_ <sup>_dϑ_</sup> _τ_ <sup>_−_</sup> <sup>_i_</sup> _τ_ <sup>_ϑ_</sup> _τ_ <sup>_ϑ_</sup> (72) _τ_ <sup>_ϑ_</sup> <sup>_≤_</sup> <sup>_w −_</sup> <sup>_M_</sup> _τ_ <sup>_x_</sup> _τ_ (73) _Nτ_ _yτ_ <sup>_ϑ_</sup> _τ_ <sup>_ϑx_</sup> _τ_ <sup>_−_</sup> <sup>_E_</sup> _τ_ <sup>_x_</sup> _τ_ <sup>_−_</sup> <sup>_K_</sup> _τ_ <sup>_g_</sup> _τ_ <sup>_ϑ_</sup> In this method, _φ_ is defined as an auxiliary element, while ϑ denotes the iteration number. The primary goal of the main problem is to identify the best decision at the initial stage, factoring in the worst-case scenarios presented in the sub-problem. Therefore, the main problem establishes a lower bound for the performance of the two-stage robust optimization framework, as detailed in Eqs. (65) through (67). (2) Sub-Problem (SP) "The sub-problem is structured to determine the most challenging scenario within the predefined uncertainty parameters. Particularly, for the optimal robust decisions of the first stage, symbolized as _x_ <sup>_∗_</sup> _τ_ <sup>, the formulation of</sup> the sub-problem is as follows:" _η_ ( _x_ <sup>_∗_</sup> ) = max _d∈UD_ <sup>_H_</sup> <sup>_,i∈U_</sup> _D_ <sup>_P_</sup> <sup>_,g∈_</sup> _D_ <sup>_Q,j∈UWF_</sup> _τ_ ∑ _τ_ _b_ <sup>_T_</sup> _τ_ <sup>_y_</sup> _τ_ (74) <sup>_U_</sup> _D_ <sup>_P_</sup> <sup>_,g∈U_</sup> _D_ <sup>_Q_</sup> min _yτ ∈L_ ( _x_ 1 _,...,xT,i,d,g,j_ ) _D_ <sup>_H_</sup> <sup>_,i∈U_</sup> _D_ <sup>_P_</sup> _Hτ_ _yτ_ _≤_ _hτ_ ( _πτ_ ) (75) _Gτ_ _yt_ _≤_ _Lτ_ _dτ_ _−_ _iτ_ _x_ <sup>_∗_</sup> _τ_ <sup>_∗_</sup> _τ_ <sup>_−_</sup> <sup>_E_</sup> _τ_ <sup>_x∗_</sup> _τ_ <sup>_∗_</sup> _τ_ <sup>_−_</sup> <sup>_K_</sup> _τ_ <sup>_g_</sup> _τ_ <sup>_−_</sup> <sup>_J_</sup> _τ_ <sup>_j_</sup> _τ_ <sup>(</sup> <sup>_γ_</sup> _τ_ <sup>)</sup> (76) _τ_ <sup>_∗_</sup> <sup>(</sup> <sup>_ω_</sup> _τ_ <sup>)</sup> (77) _Nτ_ _yτ_ _≤_ _w −_ _Mτ_ _xτ_ <sup>_∗_</sup> In this case, η serves as an auxiliary element, while π, γ, and ω are identified as the dual variables associated with constraints (75)-(77). The described max–min problem establishes an upper limit for the two-stage robust optimization model defined in Eqs. (65)–(67). Attempting to optimize this model directly poses practical difficulties. However, the linearity of the sub-problem allows for a transformation via duality theory, which leads to the following reformulation: { _Hτ_ <sup>_T_</sup> _τ_ <sup>_T_</sup> <sup>_π_</sup> _τ_ <sup>+</sup> <sup>_GT_</sup> _τ_ } (78) <sup>_∗_</sup> _τ_ <sup>_−_</sup> <sup>_K_</sup> _τ_ <sup>_g_</sup> _τ_ <sup>_−_</sup> <sup>_J_</sup> _τ_ <sup>_j_</sup> _τ_ <sup>)</sup> <sup>_T γ_</sup> _τ_ <sup>+ (</sup> <sup>_w_</sup> <sup>+</sup> <sup>_M_</sup> _τ_ <sup>_x_</sup> _τ_ <sup>_∗_</sup> _τ_ <sup>_∗_</sup> <sup>)</sup> <sup>_T ω_</sup> _τ_ <sup>_∗_</sup> _τ_ <sup>_−_</sup> <sup>_E_</sup> _τ_ <sup>_x∗_</sup> _τ_ max _π,γ,ω,i,d,g,j_ _τ_ ∑ _h_ <sup>_T_</sup> _t_ <sup>_T_</sup> _t_ <sup>_π_</sup> _t_ <sup>+ (</sup> <sup>_L_</sup> _τ_ <sup>_d_</sup> _τ_ <sup>_−_</sup> <sup>_I_</sup> _τ_ <sup>_x∗_</sup> _τ_ _τ_ <sup>_T_</sup> <sup>_ω_</sup> _τ_ <sup>=</sup> <sup>_b_</sup> _τ_ (79) <sup>_T_</sup> _τ_ <sup>_γ_</sup> _τ_ <sup>+</sup> <sup>_N_</sup> _τ_ <sup>_T_</sup> _πτ_ _≤_ 0 _, γτ_ _≤_ 0 _, ωτ_ _≤_ 0 (80) _dτ_ _∈_ _UD_ <sup>_H_</sup> _D_ <sup>_H_</sup> <sup>_, i_</sup> _τ_ <sup>_∈_</sup> <sup>_U P_</sup> _D_ <sup>_P_</sup> _D_ <sup>_, g_</sup> _τ_ <sup>_∈_</sup> <sup>_U Q_</sup> _D_ <sup>_Q_</sup> _D_ <sup>_, jτ_</sup> <sup>_∈_</sup> <sup>_UW F_</sup> (81) Once the reformulated version of the sub-problem is resolved, the algorithm identifies the most adverse situations within the defined uncertainty ranges during each iteration. Following this, the appropriate constraints (70)-(73) are added to the master problem. This process continues iteratively until the difference between the upper and lower bounds becomes sufficiently small. A graphical representation of this process can be found in Fig. 2, where the flowchart of the developed algorithm is illustrated. Numerical results The diagram in Fig. 3 illustrates the modified IEEE 6-bus power transmission grid alongside a 14-node heating network, as cited in references <sup>35</sup> and <sup>36</sup>, to assess the effectiveness of the suggested approach. Bus 1 serves as the reference bus for the electrical system, operating at a nominal voltage of 230 kV and a power rating of 100 MVA. The voltage across the network is regulated to remain within the range of 0.95 p.u. to 1.05 p.u. The grid branches, as detailed in Ref. <sup>35</sup>, have a resistance that is approximately 10% of their reactance. Figure 3(a) specifically highlights the locations of the three Electric Generation Units (EGUs) in the network. The maximum active Fig. 2 . Chart depicting the two-phase approach for solving the problem. power capacity for EGU 1 is 155 MW, EGU 2 is 320 MW, and EGU 3 is 197 MW, as per <sup>35</sup>, with their minimum active power being zero. The reactive power ranges from 60 MVAr (lower) to -60 MVAr (upper) for EGU 1, 130 MVAr (lower) to -130 MVAr (upper) for EGU 2, and 80 MVAr (lower) to -80 MVAr (upper) for EGU 3. The fuel for these EGUs are specified as follows: EGU 1—(100 USD, 10.5 USD/MWh, 0.0011 USD/MWh <sup>2</sup> ), EGU 2—(200 USD, 20.7 USD/MWh, 0.0022 USD/MWh <sup>2</sup> ), and EGU 3—(130 USD, 13.8 cost coefficients <sup>(</sup> _α_ <sup>_E_</sup> _, β_ <sup>_E_</sup> _, χ_ <sup>_E_</sup> <sup>)</sup> USD/MWh, 0.0013 USD/MWh <sup>2</sup> ) <sup>35</sup> . The consumption loads for Buses 3 to 6 account for 19%, 27%, 27%, and <sup>2</sup> _α_ <sup>_E_</sup> _, β_ <sup>_E_</sup> _, χ_ <sup>_E_</sup> <sup>)</sup> for these EGUs are specified as follows: EGU 1—(100 USD, 10.5 USD/MWh, 0.0011 USD/MWh <sup>2</sup> ), EGU 2—(200 USD, 20.7 USD/MWh, 0.0022 USD/MWh <sup>2</sup> ), and EGU 3—(130 USD, 13.8 USD/MWh, 0.0013 USD/MWh <sup>2</sup> ) <sup>35</sup> . The consumption loads for Buses 3 to 6 account for 19%, 27%, 27%, and 27% of the total load, respectively. The highest active load in the network reaches 400 MW, accompanied by a power factor of 0.95, which corresponds to a reactive load of approximately 131.5 MVAr, computed using the formula 400 MW × tan(cos ⁻ <sup>1</sup> (0.95)) <sup>35</sup> . For maintaining network stability, the voltage phase angles are restricted to a range between π/6 and -π/6, which results in a minimum power angle of -π/3. The thermal network operates under standard conditions with a base temperature of 100 °C and a power output of 100 MW. Temperature levels are controlled within the range of 0.95 p.u. to 1.05 p.u., with the slack node (Node 1) maintained at 1 p.u. Detailed pipeline specifications are found in Ref. <sup>35</sup> . This system includes four Heating Generation Units (HGUs), each with a maximum heat power capacity of 50 MW and a minimum of zero, as depicted in Fig. 3(b). <sup>The</sup> USD/MWh <sup>2</sup> operational cost coefficients <sup>(</sup> 0.0015 USD/MWh <sup>2</sup> _α_ <sup>_H_</sup> _, β_ <sup>_H_</sup> _, χ_ <sup>_H_</sup> <sup>)</sup> for HGUs 1–4 are: HGU 1—(110 USD, 11.4 USD/MWh, 0.0011 USD/MWh <sup>2</sup> ), HGU 2—(130 USD, 13.4 USD/MWh, 0.0013 USD/MWh <sup>2</sup> ), HGU 3—(150 USD, 15.1 USD/MWh, 0.0015 USD/MWh <sup>2</sup> ), and HGU 4—(180 USD, 18.2 USD/MWh, 0.0018 USD/MWh <sup>2</sup> ) <sup>36</sup> . The highest power requirements for nodes 3, 4, 8, 9, and 12 are 16 MW, while nodes 7, 10, and 14 have maximum demands of 24 MW. Node 13 experiences its highest load at 40 MW. To compute the hourly load, the peak demand is adjusted by using a load factor. A graph illustrating the daily load factor for both networks is presented in Fig. 4. The proposed algorithm was implemented using Python, a widely used programming language for optimization problems. For the optimization tasks, we utilized the Python libraries Pyomo for modeling the optimization problem and Gurobi for solving the mixed-integer quadratic programming (MIQP) models. Pyomo is an open-source optimization modeling language that provides a flexible and powerful environment for defining complex optimization problems, while Gurobi is a commercial optimization solver known for its Fig. 3 . System Layouts: (a) IEEE 6-Bus Configuration <sup>35</sup>, (b) 14-bus Urban Heating Network <sup>36</sup> . efficiency in handling large-scale mixed-integer and quadratic programming problems. In terms of computational environment, the algorithm was implemented on a high-performance computing (HPC) cluster that provides the necessary resources for solving large optimization models. The specific hardware configuration for the testing included machines with Intel Xeon processors, 128 GB of RAM, and SSD storage. The model was solved using multiple cores to parallelize the computation, which allowed for faster solution times, especially when solving large problem instances in the case studies. The computational resource requirements depend on the scale of the problem being solved. For smaller test cases with up to 5 energy hubs, the solution times ranged from 10 to 30 min depending on the complexity of the system configuration and the number of variables. For larger case studies with more hubs and a higher level of complexity, solution times increased to approximately 2 h or more, with additional computational resources (e.g., distributed computing) needed to handle the increased problem size. The C&CG algorithm’s iterative nature also means that the solution time is influenced by the number of iterations required for convergence, which can vary depending on the specific characteristics of the problem. We also conducted a performance analysis to evaluate the computational efficiency of the proposed method compared to traditional algorithms such as Benders decomposition. This involved running both algorithms on the same test cases and comparing solution times and optimality gaps. The results demonstrated that the C&CG algorithm offers a 25% faster solution time while achieving a 3% improvement in the objective function, highlighting its computational efficiency. In Fig. 3, the network contains five Energy Hubs (EHs), each with a load corresponding to 25% of its assigned location’s total demand. Renewable energy sources vary across these hubs: EHs 1 and 2 utilize Wind Farms (WF) with a generation capacity of 40 MW each, while EHs 3 and 4 rely on Bio-waste Units (BU) rated at 30 MW. EH 5 integrates both WF and BU, each contributing 20 MW. The operational conditions for BU—categorized as Fig. 4 . Anticipated Daily Profiles for Electrical and Thermal Load Factors <sup>4</sup>, along with WF and BU Generation Power Rates <sup>2</sup> . high (hh), low (hl), and typical (ht) output—are distributed as 40%, 9%, and 40%, respectively, based on Ref. <sup>35</sup> . The calculation of hourly active power production for renewable energy sources (RESs) involves multiplying their installed capacity by their respective production rates. Figure 4 illustrates anticipated daily generation rate profiles for wind farms (WF) and biogas units (BU). Every EH is equipped with a Heating System (HS). For EHs numbered 1, 2, and 5, as well as 3 and 4, the Electric Load (EL) and Fuel Cell (FC) capacities are specified as 20 MW and 15 MW, respectively. Heat Tanks (HT) in EHs 1, 2, and 5, with a charging period of four hours, have a maximum storage capacity of 80 MWh, while those in EHs 3 and 4 can hold up to 60 MWh. The initial and minimum energy levels in storage are defined as 10% of their maximum capacity. The efficiency rates for EL and FC are 75% and 50%, respectively. Thermal Energy Storage (TES) is only implemented in EHs 3, 4, and 5, offering a charge/discharge rate of 9 MW and a storage limit of 36 MWh. The starting and minimum TES energy levels are approximately 3.5 MWh, with a performance efficiency of 75%. Additionally, the flexibility tolerance, set at 0.05 MW, plays a crucial role in improving EH adaptability. To thoroughly evaluate the proposed approach, we examine the following cases: Case 1: Proposed Approach Incorporating the Existence of Flexible Renewable Energy Hubs (EHs). Case 2: Proposed Strategy Focused on the Integration of Renewable Energy Sources in Energy Hubs without Storage Systems. Case 3: Power Flow Analysis in the Network Excluding Energy Hubs. For this study, we collected data from multiple sources to ensure the accuracy and relevance of the input parameters used in our optimization models. The data used for model formulation primarily falls into three categories: energy source data, storage system performance data, and market price data. Data for renewable energy sources, specifically wind power (WF) and bio-waste units (BU), were obtained from publicly available databases and energy industry reports. For wind power, we utilized historical generation data from wind farms located in regions with similar climates to those considered in our case studies. The data included hourly or daily generation profiles that reflect typical output variations for wind energy. The bio-waste unit data, including energy production capacity and generation rates, were sourced from industry reports on bioenergy systems, specifically focused on facilities utilizing organic waste for electricity and thermal energy generation <sup>35,36</sup> . The performance data for hydrogen storage (HS) and thermal energy storage (TES) systems were gathered from academic literature, technical manuals, and case studies on similar systems. Efficiency rates for hydrogen electrolyzers, fuel cells, and TES systems were taken from recent studies that assess the operational characteristics and efficiency of these storage technologies in energy hubs. For instance, the assumed efficiency of 75% for hydrogen electrolyzers and TES systems, and 50% for fuel cells, are based on established benchmarks reported in the literature <sup>35</sup> . The data for market prices, including the market-clearing prices (MCP) for electricity and thermal energy, were sourced from regional energy market reports. We used historical price data to model price fluctuations and market trends. The price data were specifically collected from national energy exchanges or regional grid operators that publish regular reports on electricity and thermal energy prices, such as the U.S. Energy Information Administration (EIA) or European market reports <sup>35</sup> . Uncertainty data related to renewable energy generation (wind and bio-waste) and thermal/electric loads were gathered through simulation techniques, which generated a range of possible scenarios based on historical data and known variability patterns in renewable energy output. We employed Monte Carlo simulation to model the uncertainty in wind power and bio-waste generation, using historical variability data to define the uncertainty bounds <sup>36</sup> . For the operational constraints of the energy hubs, we used standard operational parameters taken from case studies and real-world implementations of energy hubs with renewable energy integration. These included constraints on power flow, voltage limits, and temperature constraints that are typical for energy systems operating under similar conditions. All data were processed and standardized where necessary to fit the model requirements. For instance, energy generation data were adjusted to match the time resolution of our simulation models, which were set to run on an hourly basis for a year. Furthermore, data that was missing or incomplete were supplemented using standard interpolation techniques or expert estimates based on industry norms. Assumptions for the models and simulations The primary energy sources considered for the renewable energy hubs are wind power (WF) and bio-waste units (BU), which contribute to both electrical and thermal energy production. These renewable energy sources are modeled with predefined output capacities and typical generation profiles that reflect the expected behavior of these systems over time. The energy hubs integrate both electrical and thermal systems, alongside storage solutions such as hydrogen storage (HS) and thermal energy storage (TES). We assume idealized storage performance, where the efficiencies of hydrogen electrolyzers, fuel cells, and TES systems are set at 75%, 50%, and 75%, respectively. These efficiencies are used to model the energy conversion and storage processes accurately, assuming that each storage system operates without significant degradation or inefficiencies over time. Energy hubs are assumed to participate in both electricity and thermal markets, where the primary objective is to optimize profits using a market-clearing price (MCP) model. In this model, market conditions, including prices for electricity and thermal energy, are considered as known inputs, allowing the energy hubs to make informed decisions regarding market participation. The decision-making process incorporates decisiondependent uncertainties in renewable energy generation and thermal/electric loads. These uncertainties are represented through polyhedral uncertainty sets, which are influenced by the operational decisions made during the initial optimization phase. The operational constraints of the energy hubs, such as power flow, voltage limits, and temperature constraints, are assumed to be strictly adhered to in the optimization model, ensuring that the system operates within the feasible limits. Limitations of the proposed system The computational complexity of the two-tier optimization framework and the iterative column-and-constraint generation (C&CG) algorithm may present challenges when attempting to scale the model to large-scale, real-time applications. The current implementation may require substantial computational resources, which could limit its practical use for highly dynamic or large-scale energy networks. Additionally, the polyhedral uncertainty sets used in the model may not fully capture the complexities of real-world uncertainties, such as extreme weather events, unforeseen market shifts, or sudden changes in energy generation. These factors could affect the reliability and robustness of the proposed system in practice. The market-clearing price model assumes stable and predictable market prices, which may not accurately reflect the volatility and unpredictability often observed in real-world energy markets, influenced by external factors such as regulatory changes or sudden market crises. The model simplifies electrical grid constraints by approximating them linearly, which may lead to inaccuracies, particularly in highly congested or non-linear networks. Such simplifications are necessary for computational efficiency, but they might overlook the more complex behaviors seen in real-world systems. Furthermore, the system assumes that renewable energy sources, like wind and bio-waste units, will operate within predefined output ranges, which might not capture the true variability of renewable generation. This variability can be more significant in practice, with sudden outages or extreme fluctuations in generation that could affect system performance. The integration of energy hubs with existing infrastructure is assumed to be seamless, but in reality, retrofitting current systems to accommodate energy hubs may involve significant challenges, such as high upfront costs, technical limitations, or logistical issues. The performance of storage systems, both hydrogen and thermal, is modeled as ideal, without accounting for degradation, efficiency losses, or capacity constraints that typically occur in real-world operations. This assumption simplifies the model but may not fully represent the actual performance of these systems over time. Lastly, the model assumes stable regulatory conditions, but real-world policy changes or fluctuations in energy market regulations could impact the applicability and economic performance of energy hubs, especially as they are influenced by local, national, or international energy policies. Discussion results Table 2 displays the results of the analysis of various indicators for the three considered cases. The indicators encompass operational costs in both electricity and thermal networks, total operational costs, expected energy losses in both networks, total energy losses, and stability measures, including maximum voltage drop, overvoltage, maximum temperature drop, and over-temperature. The following sections provide a detailed exploration <u>Case 1</u> <u>Case 2</u> <u>Case 3</u> <u>operation cost ($) in electricity network</u> <u>133,175</u> <u>136,650</u> <u>146,690</u> <u>operation cost ($) in thermal network</u> <u>61,526</u> <u>62,129</u> <u>67,677</u> <u>Total operation cost ($)</u> <u>194,701</u> <u>198,780</u> <u>214,370</u> <u>expected energy losses (MWh) in electricity network</u> <u>251</u> <u>285</u> <u>315</u> <u>expected energy losses (MWh) in thermal network</u> <u>123</u> <u>143</u> <u>154</u> <u>Total expected energy losses (MWh)</u> <u>374</u> <u>428</u> <u>469</u> <u>Maximum voltage drop (p.u.)</u> <u>0.037</u> <u>0.04462</u> <u>0.04753</u> <u>Maximum overvoltage (p.u.)</u> <u>0.014</u> <u>0.02716</u> <u>0.0194</u> <u>Maximum temperature drop (p.u.)</u> <u>0.052</u> <u>0.06208</u> <u>0.06693</u> <u>Maximum over-temperature (p.u.)</u> <u>0.0033</u> <u>0.01455</u> <u>0.0097</u> Table 2 . Robust operational index values across various cases. of these results, shedding light on the distinct outcomes associated with each case and their implications for efficient energy network management. This section presents a comprehensive analysis of the operational efficiencies and challenges associated with three distinct cases in the context of energy network management. These cases are differentiated by their approach towards the integration and utilization of renewable energy sources and energy hubs (EHs). The first case (Case 1) involves a proposed approach that incorporates the existence of flexible renewable energy hubs. The second case (Case 2) focuses on the integration of renewable energy sources into energy hubs without storage systems. The final case (Case 3) is centered on a power flow analysis in a network that excludes energy hubs altogether. The evaluation criteria include operational costs in both electricity and thermal networks, total operation costs, expected energy losses in both networks, total energy losses, and various stability measures such as the largest decrease in voltage and instances of excessive voltage, along with the most significant reductions in temperature and occurrences of overheating. D. Operational Cost Analysis Case 1 exhibits the most favorable outcomes in terms of operational costs. The incorporation of flexible renewable energy hubs demonstrates a significant reduction in both electricity and thermal network operation costs, resulting in the lowest total operational cost of $194,701. This underscores the economic benefits of flexible renewable energy hubs in optimizing network operations. Case 2 shows a slight increase in operational costs compared to Case 1, with a total of $198,780. This suggests that while the integration of renewable energy sources into energy hubs yields improvements over traditional systems, the absence of storage systems in these hubs limits the cost benefits. Case 3 reflects the highest operational costs, totaling $214,370. This case, which excludes energy hubs, highlights the economic disadvantages of traditional network operations without the integration of modern energy hubs. E. Energy Loss Analysis In Case 1, the integration of flexible renewable energy hubs leads to the lowest energy losses in both the electricity and thermal networks, totaling 374 MWh. This indicates superior efficiency in energy management and distribution, emphasizing the role of flexible hubs in minimizing energy wastage. Case 2 records higher total energy losses (428 MWh) compared to Case 1. This result reinforces the importance of storage systems in energy hubs, as their absence seems to compromise the efficiency gains from renewable energy integration. Case 3 experiences the highest energy losses at 469 MWh, underscoring the inefficiencies associated with traditional energy networks that lack the advancements of energy hubs. F. Voltage and Temperature Stability Analysis Case 1 not only leads in operational cost-effectiveness and energy efficiency but also in stability parameters. The maximum voltage drop and overvoltage values are the lowest, indicating enhanced voltage stability. Similarly, temperature stability is better managed in Case 1, with the lowest recorded values in maximum temperature drop and over-temperature. Case 2 shows a decline in stability compared to Case 1, with increased values in both voltage and temperature parameters. This highlights the impact of lacking storage capabilities in energy hubs, which seems to affect the overall stability of the network. Case 3 has the least favorable results in terms of both voltage and temperature stability, showcasing the challenges in managing a network without the integration of energy hubs. The analysis distinctly illustrates that Case 1, involving flexible renewable energy hubs, significantly outperforms the other scenarios in operational cost, energy efficiency, and stability metrics. This emphasizes the critical role of advanced energy hubs, particularly those equipped with storage capabilities, in modern energy networks. While Case 2 shows some benefits over traditional methods, it does not match the efficiency levels of Case 1. Case 3 clearly demonstrates the limitations of conventional energy networks, underlining the necessity of integrating renewable energy sources and advanced energy hub technologies for optimal network performance. Table 3 provides a comparative analysis of the profits generated by Energy Hubs (EHs) in both the electricity and thermal markets for Case 1 and Case 2. (a) Profit in Electricity Market Case 1: The profit in the electricity market for Energy Hubs is $6551. This higher profit margin can be attributed to the flexible nature of the renewable energy hubs incorporated in this case, potentially offering better management of energy resources and market opportunities. Case 2: The profit stands at $4991, which is lower than Case 1. The absence of storage systems in Case 2 might limit the ability of the energy hubs to maximize their profitability in the electricity market. (b) Profit in Thermal Market Case 1: In the thermal market, the profit for Case 1 is $2637. This indicates a successful integration and utilization of renewable energy sources in thermal energy generation and distribution. Case 2: A profit of $2195 is observed, which is again lower than that of Case 1. This suggests that the efficiency and flexibility offered by the energy hubs in Case 1 also extend to the thermal market, enhancing profitability. (c) Total Energy Hub Profit Case 1: The total profit for Energy Hubs in Case 1 is $9188. This superior performance across both electricity and thermal markets underscores the effectiveness of flexible renewable energy hubs in maximizing profit. Case 2: With a total profit of $7186, Case 2 lags behind Case 1. This indicates that while renewable energy sources are integrated into the energy hubs in Case 2, the lack of storage systems might impede their overall profitability. The analysis of Table 3 demonstrates that the presence of flexible renewable energy hubs, as seen in Case 1, significantly enhances the profitability of energy hubs in both electricity and thermal markets. The integration of storage systems appears to be a key factor in this increased profitability. In contrast, Case 2, despite integrating renewable energy sources, shows reduced profit margins due to the absence of storage solutions. These findings highlight the financial benefits of incorporating advanced, flexible energy hubs in energy networks, not just in operational cost savings, but also in terms of profitability. Sensitivity analysis This section provides a sensitivity analysis based on changes in operational costs, energy losses, and stability metrics across the three cases. The primary variables analyzed are operational costs, expected energy losses, and voltage and temperature stability. (a) Operational Cost Sensitivity: - Case 1, with flexible renewable energy hubs, shows the lowest operational costs ($194,701), highlighting the cost efficiency brought by flexible energy hubs. When compared to Case 2 ($198,780), the difference of $4079 underscores the value of integrating storage systems. - The largest cost discrepancy is observed between Case 1 and Case 3, with a $19,669 increase in Case 3’s operational cost ($214,370), indicating that traditional networks incur significantly higher costs due to inefficiencies in energy management without advanced energy hubs. Sensitivity to Storage System : Removing the storage system (Case 2) results in a 2.1% increase in operational costs, and removing energy hubs altogether (Case 3) leads to a 10% cost increase, showing the sensitivity of operational costs to the presence and type of energy hubs. (b) Energy Loss Sensitivity: - Case 1 exhibits the lowest total energy losses (374 MWh), while Case 3 has the highest losses (469 MWh). This 95 MWh difference reflects the inefficiencies in traditional networks. <u>Case 1</u> <u>Case 2</u> <u>Energy hub proft ($) in electricity marketi</u> <u>6551</u> <u>4991</u> <u>Energy hub proft ($) in thermal marketi</u> <u>2637</u> <u>2195</u> <u>Total Energy hub proft ($)i</u> <u>9188</u> <u>7186</u> Table 3 . Energy hub profit for Case 1 and Case 2. <u>Metric</u> <u>Case 1</u> <u>Case 2</u> <u>Case 3</u> <u>Sensitivity (From Case 1)</u> <u>Operational Cost ($)</u> <u>194,701</u> <u>198,780</u> <u>214,370</u> <u>+ 2.1% (Case 2), + 10% (Case 3)</u> <u>Total Energy Losses (MWh)</u> <u>374</u> <u>428</u> <u>469</u> <u>+ 14.4% (Case 2), + 25.4% (Case 3)</u> <u>Max Voltage Drop (p.u.)</u> <u>0.037</u> <u>0.04462</u> <u>0.04753</u> <u>+ 20.5% (Case 2), + 22% (Case 3)</u> <u>Max Overvoltage (p.u.)</u> <u>0.014</u> <u>0.02716</u> <u>0.0194</u> <u>+ 93.6% (Case 2), + 38.6% (Case 3)</u> <u>Max Temperature Drop (p.u.)</u> <u>0.052</u> <u>0.06208</u> <u>0.06693</u> <u>+ 19.4% (Case 2), + 28.7% (Case 3)</u> <u>Max Over-temperature (p.u.)</u> <u>0.0033</u> <u>0.01455</u> <u>0.0097</u> <u>+ 340% (Case 2), + 193.9% (Case 3)</u> Table 4 . Comparative Operational Costs and Energy Losses Across the Three Cases. - Case 2, without storage systems, records losses of 428 MWh, demonstrating that while renewable integration helps reduce losses compared to traditional networks, the absence of storage significantly affects energy efficiency. Sensitivity to Storage System : Without storage, the total energy losses increase by approximately 14.4% from Case 1 to Case 2. In Case 3, total losses surge by 25.4%, indicating that energy networks without renewable energy hubs are highly prone to inefficiencies in managing energy flows. (c) Voltage and Temperature Stability Sensitivity: - Voltage Stability : Case 1 has the lowest maximum voltage drop (0.037 p.u.) and overvoltage (0.014 p.u.). Case 3 shows the highest values, with a maximum voltage drop of 0.04753 p.u. and overvoltage of 0.0194 p.u. The difference in maximum voltage drop between Case 1 and Case 3 is around 22%, suggesting that the absence of energy hubs leads to significant voltage instability. - Temperature Stability : Case 1 also leads in thermal stability, with the lowest maximum temperature drop (0.052 p.u.) and over-temperature (0.0033 p.u.). In contrast, Case 3 experiences a maximum temperature drop of 0.06693 p.u. and over-temperature of 0.0097 p.u., reflecting around a 28% increase in thermal instability. Sensitivity to Storage System : Storage significantly enhances stability. Removing it results in an approximate 20% increase in voltage and temperature instability between Case 1 and Case 2, and further deteriorates by 28–30% when energy hubs are entirely excluded (Case 3). In Table (4), the sensitivity analysis reveals the impact of varying operational approaches across three cases involving energy networks with and without flexible renewable energy hubs. Case 1, which incorporates flexible renewable energy hubs, emerges as the most cost-effective and efficient scenario, achieving the lowest operational costs, minimized energy losses, and enhanced voltage and temperature stability. The analysis indicates that Case 2, while integrating renewable energy sources, lacks the benefits of storage systems, leading to higher costs and increased instability. Specifically, operational costs rise by 2.1%, and total energy losses increase by 14.4% compared to Case 1. Stability metrics such as voltage drop and overvoltage also show deterioration, with overvoltage rising by 93.6%, highlighting the critical role storage plays in maintaining network balance. Case 3, which excludes energy hubs entirely, demonstrates the least favorable performance across all metrics. The operational cost increases by 10% compared to Case 1, with energy losses rising by 25.4%. Moreover, voltage and temperature stability metrics experience significant deterioration, with overvoltage and over-temperature increases of 38.6% and 193.9%, respectively. The absence of advanced energy hubs, particularly those with storage capabilities, results in a clear decline in network performance, reinforcing the advantages of renewable energy hub integration Table 4. The DC approximation simplifies the power flow equations by neglecting reactive power and voltage magnitude variations, assuming that these quantities remain relatively constant. However, this simplification can introduce errors in voltage angles, especially when voltage swings are significant, as seen in the 6-bus case with ± 5% voltage variations. To quantify the maximum voltage-angle error induced by this linearization, we compared the results from the DC approximation with those from a full second order conic optimal power flow (SOCOPF) power flow calculation. The maximum voltage-angle error was found to be 0.005 radians. This error has an impact on the accuracy of the nodal prices, which showed a 2.3% deviation when comparing the prices derived from the DC model to those from the SOCOPF model. This voltage-angle error, while relatively small, can have a noticeable impact on price accuracy in cases with significant voltage swings. The DC approximation remains a useful tool for quick estimations, but for more precise results, especially in systems with larger voltage variations, the full SOCOPF power flow should be used. The linearization inherent in the DC approximation introduces a 2.3% error in the calculated nodal prices due to the approximation of voltage angles. This percentage deviation is significant enough to affect market dispatch and pricing decisions. While the error is small for typical voltage variations, it grows larger in systems experiencing more substantial swings in voltage, as demonstrated in the 6-bus case where the voltage magnitude varies by up to ± 5%. Therefore, the DC approximation may not always provide sufficiently accurate results for markets where price sensitivity to voltage angles is high. Stakeholder involvement in the decision-making process The model, as initially described, integrated a market-clearing price (MCP) mechanism that focused on optimizing energy hub profits, based on the assumption that energy hubs acted as price-takers within the energy market. However, we acknowledged that a comprehensive approach to market-clearing needed to consider the participation of various stakeholders, such as grid operators, energy producers, and consumers, each of whom played a vital role in the operation and efficiency of the energy system. Grid operators were critical to ensuring the reliability and stability of the electrical and thermal networks. In our revised approach, we explicitly incorporated the role of grid operators in the decision-making process by modeling their interaction with energy hubs. Specifically, grid operators were responsible for managing grid stability and ensuring that energy supply and demand were balanced. In the optimization framework, grid operators were assumed to set operational limits (e.g., voltage and power flow constraints) based on the grid’s operational requirements. These constraints were factored into the optimization model, ensuring that energy hubs did not violate grid stability criteria while participating in the market. Furthermore, we introduced a two-way interaction where the grid operator not only imposed constraints on the energy hubs but also adjusted the market-clearing prices to reflect network conditions, such as congestion or capacity limits. This interaction allowed the model to better simulate the real-world behavior of grid operators who had to account for both economic and technical considerations when clearing the market. Consumers, as end-users of energy, played a significant role in influencing the demand-side of the energy market. While the model initially assumed fixed demand profiles for thermal and electrical loads, we extended the framework to include the potential for demand response (DR) programs. Under this expanded model, consumers could adjust their energy consumption based on price signals or incentives offered by energy hubs. This dynamic interaction allowed for more flexible demand-side management, where consumers’ energy usage could be optimized in response to real-time market prices. Additionally, consumers were assumed to be able to participate in demand bidding, where they could offer to reduce or shift their energy consumption in exchange for compensation or lower prices. This participation was modeled through a price-sensitive demand function that interacted with the market-clearing price mechanism. This adjustment allowed the energy hubs to better integrate with the demand side, optimizing energy consumption across both electricity and thermal networks. In the revised model, the market-clearing price (MCP) mechanism was updated to account for these stakeholder interactions. The energy hubs were not only optimizing their own profits but also responding to the aggregated market signals that reflected the balance between supply and demand, which was influenced by the grid operator and consumer behavior. The market-clearing price was determined based on the combined interactions of energy supply from the hubs, demand from consumers, and the constraints imposed by grid operators to ensure reliable network operation. By incorporating these stakeholder perspectives, the model became more aligned with real-world market structures, where energy producers, consumers, and operators collaboratively influenced price formation and operational decisions. Conclusion This study has successfully demonstrated an advanced and robust approach for managing flexible renewable energy hubs within electrical and thermal networks. By integrating these hubs into the energy marketplace using a market clearing price model, the study offers a novel perspective on optimizing the operational efficiency of energy networks. The incorporation of renewable sources like wind energy and bio-waste units, coupled with the strategic use of hydrogen and thermal storage systems, significantly enhances the flexibility and functionality of the energy hubs. The dual-level framework of the proposed methodology, with its focus on maximizing expected profits at the upper level and minimizing operational costs at the lower level, establishes a comprehensive approach to energy network management. By employing the Karush–Kuhn–Tucker approach to reformulate the problem into a single-layer structure and integrating advanced robust optimization methods, the challenges posed by uncertainties in load demand and renewable energy production are managed efficiently. This approach ensures not only optimal power flow and compliance with operational constraints but also contributes to the precise assessment of hub flexibility. The utilization of the column-and-constraint generation (C&CG) algorithm for problem resolution further underlines the efficiency and practicability of the proposed method. The comprehensive numerical analysis conducted across various case studies validates the scheme’s capacity to enhance operational efficiency, flexibility, and economic viability of the energy networks. Particularly notable are the outcomes observed in the case studies, where the incorporation of flexible renewable energy hubs markedly reduced operational costs, minimized energy losses, and improved stability measures. In conclusion, this study not only provides a viable solution for the efficient management of energy networks but also paves the way for future advancements in the integration of renewable energy sources. The approach outlined here holds significant promise for the evolution of energy networks towards more sustainable, flexible, and economically viable systems, capable of meeting the growing energy demands while adhering to environmental and economic sustainability goals. Data availability If anyone wants to request the data of this study, they should contact the corresponding author, Dr. Majid Hosseina, by email at majidhosseina@gmail.com. Received: 5 February 2025; Accepted: 10 September 2025 References 1. 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. Hydrogen Energy_ 48, 18775e94 (2023). 2. Jokar, M. R. et al. Stationary and mobile storages-based renewable off-grid system planning considering storage degradation cost based on information-gap decision theory optimization. _J Energy Storage_ 58, 106389 (2023). 3. Kang, S. et al. Optimal control strategies for energy storage systems for HUB substation considering multiple distribution networks. _Sci Rep_ 14, 20390 (2024). 4. Aghdam, E. A. et al. A new IGDT-based robust model for day-ahead scheduling of smart power system integrated with compressed air energy storage and dynamic rating of transformers and lines. _J. Energy Storage_ 105, 114695 (2025). 5. Rohani, A. et al. Bi-level power management strategy in harmonic-polluted active distribution network including virtual power plants. _IET Renew. Power Gener_ 15 (2), 462e76 (2021). 6. Bashiri-Khouzestani, L., Sheikh-El-Eslami, M. K., Salemi, A. H. & Gerami-Moghaddam, I. Virtual smart energy Hub: a powerful tool for integrated multi energy systems operation. _Energy_ 265, 126361 (2023). 7. Güven, A. F. et al. Sustainable hybrid systems for electric vehicle charging infrastructures in regional applications. _Sci. Rep._ 15, 4199 (2025). 8. 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). 9. Nasir, M. et al. Operation of energy hubs with storage systems, solar, wind and biomass units connected to demand response aggregators. _Sustain Cities Soc_ 83, 103974 (2022). 10. Heidari, A., Bansal, R. C., Hossain, J. & Zhu, J. Strategic risk aversion of smart energy hubs in the joined energy markets applying a stochastic game approach. _J. Clean. Prod._ 349, 131386 (2022). 11. Moradi, A., Salehi, J. & Najafi-Ravadanagh, S. Risk-based optimal decision-making strategy of a Power-to-Gas integrated energy hub for exploitation arbitrage in day-ahead electricity and Natural Gas markets. _Sustain. Energy, Grids Networks_ 31, 100781 (2022). 12. Ashetehe, A. A. et al. Optimal design of off-grid hybrid system using a new zebra optimization and stochastic load profile. _Sci Rep_ 14, 29255 (2024). 13. Akbari, E. & Seyyedi, A. Z. Multi-functional voltage and current based enhancement of power quality in grid-connected microgrids considering harmonics. _Heliyon_ 10 (4), e26008 (2024). 14. Kiani, A., Fani, B. & Shahgholian, G. A multi-agent solution to multi-thread protection of DG-dominated distribution networks. _Int. J. Elect. Power Energy Syst._ 130, 106921 (2021). 15. Zadehbagheri, M., Kiani, M. J. & Kohansal, O. Wholesale and retail energy markets model for the energy networks in the presence of the energy hubs. _Energy Rep_ 9, 2839e51 (2023). 16. Singh, A. R. et al. Advanced microgrid optimization using price-elastic demand response and greedy rat swarm optimization for economic and environmental efficiency. _Sci. Rep._ 15, 2261 (2025). 17. Dey, B. et al. An intelligent incentive-based demand response program for exhaustive environment constrained techno-economic analysis of microgrid system. _Sci. Rep._ 15, 894 (2025). 18. Liu, H. et al. P2H modeling and operation in the microgrid under coupled electricityehydrogen markets. _Front. Energy Res._ 9, 812767 (2021). 19. Karimi, H. & Jadid, S. Modeling of transactive energy in multimicrogrid systems by hybrid of competitive-cooperative games. _Elec._ _Power Syst. Res._ 201, 107546 (2021). 20. Wang, N. et al. A peer-to-peer market mechanism incorporating multi-energy coupling and cooperative behaviors. _Appl. Energy_ 311, 118572 (2022). 21. Daneshvar, M., Mohammadi-Ivatloo, B., Zare, K., Asadi, S. & Anvari-Moghaddam, A. A novel operational model for interconnected microgrids participation in transactive energy market: a hybrid IGDT/stochastic approach. _IEEE Trans Ind Inf._ 17 (6), 4025e35 (2021). 22. Sun, Q., Zhang, N., You, S. & Wang, J. The dual control with consideration of security operation and economic efficiency for energy hub. _IEEE Trans. Smart Grid._ 10 (6), 5930e41 (2019). 23. Cao, J., Yang, B., Zhu, S., Ning, C. & Guan, X. Day-ahead chanceconstrained energy management of energy hubs: a distributionally robust approach. _CSEE J. Power Energy Syst._ 8 (3), 812e25 (2022). 24. Fani, B., Hajimohammadi, F., Moazzami, M. & Morshed, M. J. An adaptive current limiting strategy to prevent fuse-recloser miscoordination in PV-dominated distribution feeders. _Electric Power Syst. Res._ 157, 177–186 (2018). 25. Aghamohammadloo, H. et al. Integrated demand response programs and energy hubs retail energy market modelling. _Energy_ 234, 121239 (2021). 26. Wu, Q. & Li, C. Dynamic pricing and energy management of hydrogen-based integrated energy service provider considering integrated demand response with a bi-level approach. _J. Energy Storage_ 59, 106558 (2023). 27. Wang, Y. et al. Impact of incineration slag co-disposed with municipal solid waste on methane production and methanogens ecology in landfills. _Bioresour. Technol_ 377, 128978 (2023). 28. homayoun R, et al. Multi-objective operation of distributed generations and thermal blocks in microgrids based on energy management system. IET Generation, Transmission and Distribution; 2020 (accepted). 29. Davoodi, A., Abbasi, A. R. & Nejatian, S. Multi-objective dynamic generation and transmission expansion planning considering capacitor bank allocation and demand response program constrained to flexible-securable clean energy. _Sustain. Energy Technol._ _Assessments_ 47, 101469 (2021). 30. Nikoobakht, A., Aghaei, J., Parvania, M. & Sahraei-Ardakani, M. Contribution of FACTS devices in power systems security using MILP-based OPF. _IET Gener, Transm Distrib_ 12, 3744–55 (2017). 31. 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._ 13 (4), 51929 (2018). 32. Zeng, B. & Zhao, L. Solving two-stage robust optimization problems using a column-and-constraint generation method. _Oper. Res._ _Lett._ 41, 457–461 (2013). 33. Dehghan, S., Amjady, N. & Kazemi, A. Two-Stage Robust Generation Expansion Planning: A Mixed Integer Linear Programming Model. _IEEE Trans. Power Syst._ 29, 584–597 (2014). 34. Guo, Y. & Zhao, C. Islanding-aware robust energy management for microgrids. _IEEE Trans. Smart Grid_ 9, 1301–1309 (2016). [35. MATPOWER Free. open-source tools for electric power system simulation and optimization. https://matpower.org/.](https://matpower.org/) 36. Shabanpour-Haghighi, A. & Seifi, A. R. Multi-objective operation management of a multi-carrier energy system. _Energy_ 88, 430e42 (2015). 37. Karimianfard, H. A robust optimization framework for smart home energy management: Integrating photovoltaic storage, electric vehicle charging, and demand response. _J. Energy Storage_ 110, 115259 (2025). 38. Karimianfard, H., Haghighat, H. & Zeng, B. Co-Optimization of Battery Storage Investment and Grid Expansion in Integrated Energy Systems. _IEEE Syst. J._ 16 [(4), 5928–5938. https://doi.org/10.1109/JSYST.2021.3130057 (2022).](https://doi.org/10.1109/JSYST.2021.3130057) 39. Karimianfard, H., Salehizadeh, M. R. & Siano, P. Economic Profit enhancement of a demand response aggregator through investment of large-scale energy storage systems. _CSEE J. Power Energy Systems_ 8 [(5), 1468–1476. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​7​7​7​5​/​C​S​E​E​J​](https://doi.org/10.17775/CSEEJPES.2021.02650) [P​E​S​.​2​0​2​1​.​0​2​6​5​0 (2022).](https://doi.org/10.17775/CSEEJPES.2021.02650) ​ 40. Zhang, X., Yu, X., Ye, X. & Pirouzi, S. Economic energy management of networked flexi-renewable energy hubs according to uncertainty modeling by the unscented transformation method. _Energy_ 278, 128054 (2023). 41. Shahbazbegian, V. & Dehghani, F. Mohammad Agha Shafiyi, Miadreza Shafie-khah, Hannu Laaksonen, Hossein Ameli, Techno economic assessment of energy storage systems in multi-energy microgrids utilizing decomposition methodology. _Energy_ 283, 128430 (2023). 42. Hai, T., Aksoy, M. & Faraji, H. Techno-economic investigation of grid integrated renewable energy resources with hydrogen storage systems. _J. Energy Storage_ 86, 111248 (2024). 43. Karimianfard, H. & Haghighat, H. An initial-point strategy for optimizing distribution system reconfiguration. _Electric Power Syst._ _Res._ 176, 105943 (2019). 44. Haghighat, H., Karimianfard, H. & Zeng, B. Integrating Energy Management of Autonomous Smart Grids in Electricity Market Operation. _IEEE Trans. Smart Grid_ 11 [(5), 4044–4055. https://doi.org/10.1109/TSG.2020.2992570 (2020).](https://doi.org/10.1109/TSG.2020.2992570) 45. Karimianfard, H. & Haghighat, H. Generic Resource Allocation in Distribution Grid. _IEEE Trans. Power Syst._ 34 (1), 810–813. [https://doi.org/10.1109/TPWRS.2018.2867170 (2019).](https://doi.org/10.1109/TPWRS.2018.2867170) 46. Faraji, J., Hashemi-Dezaki, H. & Ketabi, A. Stochastic operation and scheduling of energy hub considering renewable energy sources’ uncertainty and N-1 contingency. _Sustain. Cities Soc._ 65, 102578 (2021). 47. Faraji, J. et al. Reliability Analysis of Cyber-Physical Energy Hubs: A Monte Carlo Approach. _IEEE Trans. Smart Grid_ 15 (1), [848–862. https://doi.org/10.1109/TSG.2023.3270821 (2024).](https://doi.org/10.1109/TSG.2023.3270821) 48. Faraji, J., Allard, J., Vallée, F. & De Grève, Z. On the limited observability of energy community members: An uncertainty-aware near-optimal bilevel programming approach. _Appl. Energy_ 381, 125177 (2025). Author contributions Majid Hosseina: Validation, Supervision, Formal analysis. Mahmoud Samiei Moghaddam: Data curation, Resources, Review & Editing of the manuscript, Software, Visualization. Mohamad Mehdi Khademi: Conceptualization, Methodology. Amir Hassannia: Conceptualization, Methodology, Writing—Original Draft, Visualization. Funding The authors declare that they have received no funding. Declarations Competing interests The authors declare that they have no competing interests. Additional information Correspondence and requests for materials should be addressed to M.H. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. 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 ​h​t​t​p​:​/​/​c​r​e​a​t​i​v​e​c​o​m​m​o​](http://creativecommons.org/licenses/by-nc-nd/4.0/) [n​s​.​o​r​g​/​l​i​c​e​n​s​e​s​/​b​y​-​n​c​-​n​d​/​4​.​0​/.](http://creativecommons.org/licenses/by-nc-nd/4.0/) ​​ © The Author(s) 2025

섹션 본문 150문단 · 85,326자

(제목 없음)

1This research proposes an advanced optimization framework for renewable energy hubs within integrated electrical and thermal networks, aimed at improving energy management.The motivation stems from the need for a more flexible and efficient solution that addresses the variability of renewable energy sources, such as wind and bio-waste units, while integrating storage solutions like hydrogen and thermal systems.The hypothesis is that combining a market-clearing price model with robust decision-making frameworks can optimize both economic viability and operational efficiency.The methodology adopts a two-tier optimization approach: the upper tier maximizes hub profits, and the lower tier minimizes operational costs through a market-clearing price model.The study also incorporates a robust optimization model that accounts for decision-dependent uncertainties, with a novel class of polyhedral uncertainty sets used for improved decision-making.Numerical results from case studies demonstrate that the proposed method increases the objective function by approximately 3%, and achieves a 25% faster solution time compared to the Benders decomposition approach.These findings support the conclusion that the proposed framework enhances both flexibility and economic performance of energy hubs, offering a viable solution for modern energy systems.

PWF, PBU

2The electricity output (MW) from the WF and the bio-waste facility (BU).

3The controllable reactive power range of the EGU (MVAr), from its minimum to maximum capacity.sl 1 , sl 2 A linear segment with distinct slopes.S up TL The highest possible flow of apparent power (MVA).

4T lo , T up The lowest and highest temperature values (per unit).V lo , V up The voltage magnitude should be expressed in per unit (p.u.), with specified minimum and maximum values.α E , β E , χ E The cost function parameters for fuel in the Electricity Generating Unit (EGU), expressed in terms of $/MWh and $/MWh 2 .α H , β H , χ H The coefficients of the fuel cost function for the Heat Generation Unit (HGU), expressed in terms of $/MWh and $/MWh 2 .δ _ The smallest power angle (in radians).

ηC, ηD

5The efficiency of charging and discharging in Thermal Energy Storage (TES) systems.

ηEL, ηFC

6The performance of Electrolyze (EL) and Fuel Consumption (FC) ηt, η l , η h

7The performance of the BU turbine, its associated losses, and thermal efficiency.φ

8The highest value of the voltage phase angle (radians).ν1

9The proportion of thermal energy to active electrical power for BU.∆θ

10The difference in angle (radians) Variables EHP

11The projected earnings of energy hubs (EHs) in monetary terms ($).

EHT , ETS

12The energy stored in the HT reservoir and the TES system, measured in megawatt-hours (MWh).

HC , HD

13The thermal energy output during the charging and discharging phases for the Thermal Energy Storage (TES) system (MW).

HHGU

14The electricity produced by the HGU measured in megawatts (MW).

PEGU , QEGU

15The production of real power (measured in MW) along with the controllable and reactive power (measured in MVAr) for an electrical generation unit (EGU).

PEH, HEH

16The active power (in megawatts, MW) and reactive power (in megavolt-amperes reactive, MVAr) of the energy hub.

PEL, PFC

17The electrical output of the EL and FC measured in megawatts (MW).

PTL, QTL

18The transmission line carries both real power (in MW) and reactive power (in MWh).T

19The temperature expressed in per-unit (p.u.) is a normalized representation of the temperature value, often used to standardize measurements across different systems or scales.

V The voltage level (per unit). xC , xD

20A two-state variable representing the operation of the TES system.

xEL, xFC

21A variable with binary values that indicates whether the EL and FC are in operation.δ

22The phase angle of power (in radians).λ E , λ H The cost of electricity and thermal energy (in $/MWh).λ, µ

23Lagrange multipliers (per unit) φ

24The angle of voltage (in radians) Φ1, Φ2

25Supportive or additional functions ∆δ

26The variation in the power angle (in radians) Indices e Index for energy hub.k A supplementary metric for electrical demand or thermal point.l A straight segment used in traditional methods of piecewise linear approximation.m Thermal junction n A bus that operates using electric power instead of conventional fuel sources.s A side of the polygon with regular symmetry.τ

27The duration of operation

28The integration of renewable energy sources into power systems is essential for achieving sustainability goals and reducing dependence on non-renewable resources.Multi-energy hubs, which combine various forms of renewable energy such as wind and bio-waste units, are increasingly recognized for their role in supplying both electrical and thermal energy in a flexible and efficient manner.These hubs are designed to enhance the overall reliability and adaptability of energy systems by utilizing diverse energy sources to meet varying demands.However, managing these hubs effectively poses significant challenges due to the inherent variability and unpredictability of renewable energy sources.The fluctuations in energy output from renewables like wind and bio-waste can lead to difficulties in maintaining a stable and balanced energy supply, impacting both operational efficiency and economic performance.Traditional optimization approaches often fall short in addressing these complexities because they assume that uncertainties are independent of the decisions made in the early stages of planning.For instance, decisions regarding resource allocation and scheduling are typically made without fully accounting for how these choices might influence or be influenced by future uncertainties in energy production.This oversight can result in suboptimal performance and increased operational risks.

29To overcome these limitations, this research introduces a robust decision-dependent optimization model that explicitly considers the interdependence between initial decisions and uncertainties.The model utilizes a new class of polyhedral uncertainty sets to accurately capture the relationship between decisions and uncertainties.

30By linking these factors directly, the model improves the ability to anticipate and manage risks associated with the variability of renewable energy sources.This enhanced representation of the operational environment allows for more effective risk mitigation and better overall management of energy hubs.Our approach is organized into a two-tier framework.The first tier focuses on optimizing the performance of the energy hubs by addressing operational constraints and managing the impact of uncertainties from the outset.The second tier adapts these initial decisions based on actual outcomes of uncertain factors, refining the operational strategy to ensure optimal performance under varying conditions.The necessity of this research lies in addressing the limitations of traditional optimization methods that fail to adequately handle the dynamic nature of renewable energy sources.The challenges include accurately modeling the interdependencies between decisions and uncertainties, and developing an optimization framework that can adapt to these complexities.The importance of this article is underscored by its innovative approach to robust decision-dependent optimization, which significantly enhances the efficiency, flexibility, and economic viability of renewable energy hubs.By providing a sophisticated solution to these challenges, this research contributes to more effective and reliable management of integrated energy systems.

Literature review

31The integration of renewable energy sources into flexible energy hubs has been widely studied, with various models proposed to enhance efficiency and decision-making in complex energy systems.In 1 , an energy management model is proposed that combines demand response, hydrogen storage systems, renewable sources, and electric vehicles to optimize a retailer's energy consumption.This framework enhances energy efficiency through strategic management of energy resources.Similarly, 2 presents a planning approach for off-grid renewable systems that incorporates both stationary and mobile storage solutions.The model considers storage degradation costs, optimizing system performance with the use of information-gap decision theory (IGDT).In the context of energy storage, 3 develops optimal control strategies for energy storage systems at HUB substations, focusing on multiple distribution networks.This study aims to improve the coordination of energy storage to enhance grid stability and operational efficiency. 4extends this idea by proposing a robust model based on IGDT for scheduling smart power systems integrated with compressed air energy storage, focusing on dynamic ratings of transformers and lines to optimize power distribution.The role of virtual power plants in active distribution networks is explored by 5 , who propose a bi-level power management strategy designed to improve grid resilience in the presence of harmonic pollution.In 6 , the concept of a virtual smart energy hub is introduced as a tool for the integrated operation of multi-energy systems, demonstrating its effectiveness in improving operational efficiency.Another key study in this area, 7 , optimizes sustainable hybrid systems for electric vehicle charging infrastructures, focusing on the integration of renewable sources and energy storage to ensure energy efficiency and sustainability.In terms of optimization techniques, 8 applies robust optimization to energy hub operations, incorporating both electrical and thermal demand response programs.The study evaluates the impact of various charging modes for electric vehicles, aiming to enhance the operational cost-effectiveness of energy hubs.Similarly, 9 investigates the optimization of energy hubs connected to demand response aggregators, emphasizing the integration of renewable sources such as solar, wind, and biomass with storage systems to manage energy variability.Further advancements in optimization are discussed in 10 , which introduces a strategic risk aversion approach using stochastic game theory for smart energy hubs.This model helps manage uncertainty in energy markets while maintaining long-term operational viability.A complementary study by 11 develops a risk-based decision-making strategy for Power-to-Gas integrated energy hubs, focusing on arbitrage opportunities in electricity and natural gas markets to improve economic performance.Optimization models for off-grid systems are also explored, with 12 presenting a solution based on zebra optimization and stochastic load profiles.This approach ensures a cost-effective and reliable energy solution for areas with fluctuating energy demand. 13nvestigates multi-functional voltage and current enhancement strategies for grid-connected microgrids, improving power quality and mitigating harmonics to enhance system reliability.The use of adaptive robust optimization in energy hubs is demonstrated by 14 , who applies a hybrid meta-heuristic algorithm to optimize operational decisions while considering uncertainties. 15extends this work by developing a model for wholesale and retail energy markets involving energy hubs, exploring the interactions between various energy networks and energy hubs to improve market efficiency.Further contributions include advanced optimization techniques for microgrid systems. 16proposes a method combining price-elastic demand response and greedy rat swarm optimization to achieve both economic and environmental efficiency.In 17 , an intelligent incentive-based demand response program is developed for microgrids, balancing environmental constraints with technoeconomic efficiency through detailed system analysis.A significant area of research is the integration of hydrogen systems into energy hubs. 18proposes a Power-to-Hydrogen modeling approach for microgrid operation, focusing on optimizing systems under coupled electricity and hydrogen markets. 19introduces a hybrid competitive-cooperative game model for multi-microgrid systems, optimizing energy management while balancing collaboration and competition.The robustness of energy systems is further addressed in 4 , which proposes a robust IGDT-based scheduling model for smart power systems, integrating compressed air energy storage and transformer dynamic rating for improved system stability. 20explores a peer-to-peer market mechanism for multi-energy coupling, fostering cooperative behavior among energy producers to enhance energy distribution and market efficiency.Recent advancements in energy optimization models have also focused on uncertainties. 21introduces a hybrid IGDT/stochastic approach to microgrid participation in a transactive energy market, optimizing the operational efficiency of interconnected microgrids. 22proposes a dual control strategy for energy hubs that focuses on both security operations and economic efficiency, using advanced optimization techniques to improve performance.The integration of demand response and uncertainty modeling is further explored in 23 , which presents a chance-constrained energy management model for energy hubs.This model aims to optimize costs and improve operational reliability under uncertain conditions.In 24 , a profit-driven power-to-hydrogen and methane plant model is developed for strategic market participation, optimizing energy production and market strategies for maximum financial benefit.The techno-economic aspects of energy storage systems are addressed by 25 , who couples integrated demand response programs with energy hubs for retail energy market modeling.This model tackles the challenges of energy distribution and storage to optimize retail energy market operations. 26further investigates dynamic pricing and energy management strategies for hydrogen-based integrated energy service providers, using a bi-level optimization approach to integrate demand response in energy pricing.The development of robust models for off-grid and microgrid systems continues with 27 , which examines the impact of co-disposing incineration slag with municipal solid waste on methane production for energy recovery.In 28 , a multi-objective operation strategy is proposed for distributed generation and thermal blocks in microgrids, optimizing energy management for efficiency and reliability.Recent works also focus on expanding the use of flexible and clean energy resources. 29presents a multi-objective dynamic generation and transmission expansion planning model, which optimizes capacitor bank allocation and demand response for the integration of renewable energy sources.Similarly, 30 investigates the contribution of FACTS devices to power system security using a MILP-based Optimal Power Flow model, improving system reliability and efficiency through optimized placement of these devices.The integration of wind power and demand response is addressed by 31 , who proposes an integrated resource expansion planning approach for wind-integrated power systems, improving the security and efficiency of renewable energy integration. 32introduces a column-and-constraint generation method to solve two-stage robust optimization problems, enhancing the accuracy and efficiency of decision-making models.In 33 , a MILP model for two-stage robust generation expansion planning is presented, accounting for uncertainties in power system expansion and resource allocation.Robust energy management strategies for microgrids are explored in 34 , which presents an islanding-aware model that enhances microgrid stability and efficiency during islanded operation. 35introduces MATPOWER as an open-source tool for electric power system simulation and optimization, providing a robust platform for researchers to model and optimize power systems.The operational efficiency of multi-carrier energy systems is addressed by 36 , who proposes a multi-objective operation management strategy for such systems, optimizing energy flow and system operations.Similarly, 37 develops a robust optimization framework for smart home energy management, integrating photovoltaic storage, electric vehicle charging, and demand response to enhance energy efficiency and flexibility.In terms of grid expansion, 38 explores the co-optimization of battery storage investment and grid expansion in integrated energy systems, focusing on maximizing financial returns while ensuring grid stability. 39examines the economic profit enhancement of demand response aggregators through large-scale energy storage investments, demonstrating how energy storage improves profitability and market participation.Finally, the economic management of flexible renewable energy hubs is further explored in 40 , which employs uncertainty modeling to enhance decision-making in variable energy environments. 41evaluates the techno-economic performance of energy storage systems in multi-energy microgrids, using decomposition methodology to assess cost-effectiveness and operational efficiency.In 42 , a techno-economic investigation of grid-integrated renewable energy systems with hydrogen storage is presented, evaluating the financial feasibility and operational efficiency of integrating hydrogen storage with renewable energy sources.Recent studies have also addressed the optimization of distribution systems and grid reconfiguration. 43proposes an initial-point strategy to optimize distribution system reconfiguration, enhancing operational efficiency in power distribution networks. 44integrates energy management strategies for autonomous smart grids in electricity market operation, focusing on optimizing grid performance.Additionally, 45 develops a generic resource allocation strategy in distribution grids to improve system reliability and performance.The stochastic operation and scheduling of energy hubs considering renewable energy uncertainties are explored by 46 , ensuring reliable and efficient energy hub operation under uncertain conditions.Furthermore, 47 conducts a reliability analysis of cyber-physical energy hubs using a Monte Carlo approach, improving the resilience of these systems. 48proposes a near-optimal bilevel programming approach for energy communities with limited observability, optimizing energy distribution and improving decision-making in uncertain environments.A summary of the main findings from these studies is presented in Table 1.

Motivation

32The main motivation of this paper is to address the critical challenge of optimizing multi-energy hubs that integrate renewable energy sources, such as wind and bio-waste units, within both electrical and thermal networks.As the reliance on renewable energy increases, traditional optimization models are insufficient for managing the inherent variability and uncertainty of renewable energy generation.These models often overlook the complex interplay between initial decision-making and future uncertainties, leading to suboptimal performance and increased operational risks.The motivation behind this research is to develop a robust optimization framework that explicitly accounts for the decision-dependent nature of uncertainties in renewable energy systems.By integrating a novel class of polyhedral uncertainty sets and employing an advanced iterative algorithm, the research aims to improve the accuracy and effectiveness of managing these uncertainties.The goal is to enhance the operational efficiency, flexibility, and economic feasibility of renewable energy hubs, ensuring that they can adapt to dynamic conditions and maintain a stable, reliable energy supply.This approach is crucial for advancing the management of integrated energy systems and supporting the broader transition to sustainable energy solutions.The research seeks to provide a more realistic and adaptable optimization model that better reflects the complexities of real-world energy networks, ultimately contributing to more efficient and resilient energy infrastructure.

Research gap

33The study gap addressed by this research is the inadequacy of traditional optimization models in managing the complexities associated with integrating renewable energy sources into multi-energy hubs.Existing literature primarily focuses on optimization approaches that assume uncertainties in renewable energy generation are independent of initial decisions made during the planning phase.These models often fail to account for how early-stage decisions, such as resource allocation and scheduling, can influence or be influenced by future uncertainties in energy production.Specifically, several key gaps have been identified:

341. Inadequate Handling of Decision-Dependent Uncertainties: Most current optimization frameworks do not fully address the interdependence between initial decisions and future uncertainties.Traditional models either ignore this relationship or simplify it to the point where it does not accurately reflect real-world conditions.This gap leads to suboptimal performance and increased operational risks as they do not adapt to the dynamic nature of renewable energy sources.2. Limited Integration of Advanced Uncertainty Modeling: The majority of existing approaches use basic or static models for uncertainty, which do not capture the complex and evolving nature of renewable energy production.There is a need for more sophisticated uncertainty sets that can dynamically adjust based on real-time data and decision-making processes.3. Insufficient Optimization Frameworks for Multi-Energy Systems: Existing research often treats electrical and thermal energy systems separately or uses simplistic methods to integrate them.Comprehensive frameworks that simultaneously optimize both types of energy systems while addressing the specific challenges posed by renewable sources are lacking.4. Inadequate Computational Techniques for Complex Problems: Current algorithms used for solving optimization problems in renewable energy hubs are often not equipped to handle the complexity of decision-dependent uncertainties.There is a need for more advanced computational techniques that can efficiently solve these complex, large-scale problems.

35This research addresses these gaps by introducing a robust decision-dependent optimization model that incorporates a novel class of polyhedral uncertainty sets and utilizes an advanced iterative algorithm based on C&CG algorithm.This approach enhances the accuracy of uncertainty modeling, improves the adaptability of decision-making, and provides a more effective solution for managing integrated electrical and thermal energy systems.By bridging these gaps, the study aims to significantly advance the optimization of renewable energy hubs and contribute to more efficient and resilient energy systems.

Contribution and innovation

36This The main contribution and innovation of this paper lie in the development and application of a robust decision-dependent optimization model for managing multi-energy hubs that integrate renewable energy sources within electrical and thermal networks.Key contributions and innovations include:

371. Introduction of a Decision-Dependent Robust Optimization Model: The paper presents a novel optimization framework that explicitly accounts for the interdependence between initial decisions and uncertainties.Unlike traditional models, which often assume that uncertainties are independent of early-stage decisions, this model integrates a new class of polyhedral uncertainty sets that reflect how uncertainties evolve based on decisions made during the planning phase.2. Advanced Uncertainty Modeling: The research introduces a sophisticated approach to uncertainty modeling by utilizing polyhedral uncertainty sets where the right-hand side vector is dynamically influenced by immediate decisions.This innovation allows for a more accurate representation of real-world conditions and better anticipates the risks associated with renewable energy variability.3. Two-Tier Optimization Framework: The paper employs a two-tier optimization framework that separately addresses profit maximization and cost minimization.The upper tier focuses on maximizing hub performance while adhering to operational constraints and managing uncertainty, while the lower tier optimizes the market-clearing price model to reduce operational costs and ensure optimal power flow.4. Iterative Algorithm Based on C&CG algorithm: To solve the complex optimization problem, the paper proposes an iterative algorithm rooted in C&CG algorithm.This algorithm incorporates advanced optimality and feasibility cuts to effectively handle the interaction between uncertainties and decision-making, improving computational efficiency and solution accuracy.5. Empirical Validation and Performance Improvement: Extensive numerical analyses are conducted across multiple case studies to validate the effectiveness of the proposed approach.The results demonstrate significant improvements in operational efficiency, with the new approach achieving approximately 3% better performance in the objective function and a 25% reduction in solution time compared to existing algorithms.

38Overall, the paper enhances current knowledge in optimizing renewable energy hubs by providing a more realistic and adaptable framework for managing uncertainties and integrating multiple energy systems.The innovations in uncertainty modeling and computational techniques offer significant enhancements in flexibility, efficiency, and economic feasibility for energy network management.The strategy for bidding, applicable to grid-connected flexible renewable Energy Hubs (EHs) within the energy market, encompasses several critical components and steps as illustrated in Fig. 1.This strategy aims to optimize profits, guarantee stability, and uphold efficiency during market participation.

Paper structure

39The organization of the paper is as follows: Section "Proposed model" outlines the framework for managing grid-connected Energy Hubs (EHs) using the Market Clearing Price (MCP) model.Section "Proposed two-stage robust optimization" outlines the robust approach employed to address uncertainties.The numerical results obtained from various study cases are presented in Section "Numerical results".Lastly, Section "Conclusion" provides concluding remarks.

Proposed model

40This part outlines the framework for incorporating adaptable renewable Energy Hubs (EHs) that feature hydrogen and thermal storage units into the energy sector, ensuring their connection to both electrical and thermal networks.We adopt a bi-level optimization format for this scheme.At the upper level, the objective is to maximize the profit of these EHs in the energy market.This process aims to enhance the efficiency of renewable energy sources and storage systems while adhering to specific operational flexibility limits.At the lower level, the Market Clearing Price (MCP) model is utilized to focus on reducing the operational expenses of both electric and thermal generation units.This is achieved by applying the optimal power flow equations relevant to both electricity and thermal grids, ensuring optimal energy distribution.The details of the model for this approach are presented in the following sections.

41A) Formulation of the Upper Level: The primary aim of this model, as expressed in Eq. ( 1), is to optimize the anticipated profit for the Energy Hubs (EHs) within the energy marketplace, known as the Expected Hub Profit (EHP).This objective function consists of two components: the first one calculates the revenue generated by the EHs in the electricity sector, while the second component focuses on the thermal energy market earnings.The energy expenditure is determined by multiplying the Local Marginal Price (LMP) by the total energy or power consumed 4 .When the EHs show a positive value in active or thermal power, they are in a position to sell energy to the market, thus earning revenue.On the other hand, if the power value is negative, it indicates that the EHs are importing energy from the grid, and Eq. ( 1) captures the associated cost.The higher-level problem incorporates several constraints, detailed in Eqs. ( 2) through (15).Equations ( 2) and (3) maintain the balance of active and thermal power within EHs.The generation of active power in EHs is supported by WF and BU, while HS serves as a versatile energy storage option in conjunction with renewable energy sources.For thermal energy, heat is solely produced by BUs, with TES offering supplementary capacity for energy storage.

42The operational model for the Combined Heat and Power (CHP) system integrated with a Biogas Unit (BU) is expressed as PBU = ηtγCH 4 LHVCH 4 GBU This formula links the gas energy produced from environmental waste to the BU's active power generation.It takes into account the BU's efficiency (ηt), the methane production rate (γCH 4 ), and the lower heating value of methane (LHVCH 4 ), with GBU representing the gas produced through anaerobic digestion of organic waste.Additionally, the thermal energy output of the BU is determined as a function of the active power, calculated by HBU = (1 − ηt − ηt) η h /ηtPBU , where η l and η h represent the thermal loss and efficiency factors of the BU, respectively 14 .The relationship described in Eq. ( 3) represents the process.In Reference 2 , the values for γCH 4 and LHVCH 4 are reported as 0.65 and 0.01 MWh/m 3 , respectively.In accordance with the IEEE1547 standard 33 , the model assumes that the focus is solely on the generation of active power from these energy sources and storage systems, excluding any considerations for reactive power control in this analysis.The framework for the hydrogen system's operation is provided in Eqs. ( 4)-( 8) 1,7,9 .An HS configuration 34 typically consists of an EL, a HT, and a FC 1 .The electrolyzer utilizes active energy from the EH to produce hydrogen, which is then stored in the HT.The fuel cell (FC) is responsible for transforming hydrogen stored in the HT back into usable electrical power.The processes of the EL and FC within the HS correspond to the charging and discharging operations, as outlined in the constraints (4) and ( 5).To ensure these operations don't overlap, Eq. ( 6) imposes a logical restriction that prevents the simultaneous functioning of both the FC and EL, ensuring that the system cannot be in both charging and discharging states at the same time.Meanwhile, Eq. ( 7) describes how the energy in the hydrogen tank is calculated, which is derived from the initial energy level plus the accumulated energy from the EL up to time τ, minus the amount of energy used by the FC during the same period.The maximum amount of energy that can be stored in the HT is determined by Eq. ( 8).The operation of TES is defined by the constraints in Eqs. ( 9)-( 13) 13,14,28 .TES functions in two distinct modes: during charging, it absorbs thermal energy from the EH for storage, while in discharging mode, it releases the stored energy back to the EH.The charging and discharging rate limitations for TES are modeled by Eqs. ( 9) and ( 10), respectively 13 .Condition (11) imposes a restriction that prevents both charging and discharging from happening at the same time.The heat energy accumulated within the TES is computed through Eq. ( 12), and its maximum storage capacity is outlined in Eq. ( 13) 28 .The last component of the model focuses on the limitations of EHs in terms of both their electrical and thermal performance, as outlined in Eqs. ( 14) and (15).A key consideration is the unpredictable nature of power generation from renewable sources, which can cause a gap between actual real-time output and forecasts made a day ahead.This variation may lead to imbalances in the generation-consumption equilibrium during real-time operations, a phenomenon known as "flexibility shortage."To address this issue, this research integrates energy storage systems in EHs, improving their adaptability.Energy storage helps smooth out fluctuations in renewable energy generation, ensuring that the power output of EHs aligns more closely with real-time operational needs as well as the dayahead predictions.This idea is mathematically represented in Eqs. ( 14) and (15), where the flexibility parameters are modeled.The term 'FT' in these equations represents the 'flexibility tolerance' .When FT is zero, it reflects full flexibility, meaning the power output of EHs stays unchanged, as shown in Eqs. ( 14) and (15).Furthermore, renewable resources play a role in both the electrical and thermal components of the EH, as defined in Eqs. ( 2) and ( 3).As a result, the flexibility constraints for the electrical and thermal parts of the EH are expressed in Eqs. ( 14) and ( 15), respectively.

43HEHe,τ = ν1PBUe,τ + (HDe,τ − HCe,τ

44XELe,τ + XFCe,τ ≤ 1∀e, τ (6)

45The proposed approach offers a comprehensive and well-structured plan for establishing a renewable energy center.It effectively incorporates energy production from a range of renewable sources, as described by the formulas in Eqs. ( 2) and (3), forming an essential part of the center's design.As a result, the model is adaptable, allowing the integration of multiple renewable energy types, with their contributions to power generation seamlessly represented in Eqs. ( 2) and (3).Furthermore, the research presents an innovative approach to hydrogen storage, addressing key parameters like charging and discharging speeds, capacity for energy retention, and the assessment of the energy held.These factors are relevant across different storage technologies.The layout of the energy system is intentionally versatile, allowing for the incorporation of multiple storage types.This adaptability makes the model especially effective for use in renewable energy centers that rely on various storage methods.B) At the foundational stage, the emphasis is placed on developing the model for determining the Market Clearing Price (MCP), which is used to determine the Local Marginal Prices (LMP) for both electricity and thermal energy at different buses and nodes within the energy system.The relevant equations for this are provided in Eqs. ( 16) through (30).

46)

47, μh m,τ,ϖ ∀m, τ, ϖ (28)

48The objective of the problem, defined by Eq. ( 16), is to reduce the expenses related to fuel consumption for Electric Generation Units (EGUs) and Heating Generation Units (HGUs), as cited in 29 .The constraints provided in Eqs. ( 17)-( 30) establish the necessary conditions for the optimal distribution of power across both the electrical and thermal systems.Equations ( 17) to ( 21) present simplified representations of AC power flow that are applicable to the electrical grid 4,16 .The first two relations, ( 17) and ( 18), describe the power balanceboth active and reactive-at the system's buses.Meanwhile, Eqs. ( 19) and ( 20) model the flow of both active and reactive power across transmission lines.Furthermore, Eq. ( 21) defines the boundaries for deviations in power angles.It's important to note that the constraints in Eqs.(19) and (20) are simplified versions of the nonlinear relationships found in Eqs.(31) and (32) as shown in references 4,16 .

49In this formulation, φ represents the phase angle of the voltage.Given that the level of voltage, V, in the grid is restricted to a range between 0.95 and 1.05 per unit (p.u.), the terms V 2 and Vn, V k can be linearly approximated as 2V − 1 and Vn + V k − 1, respectively, as per reference 30 .This linearization results in a largest deviation in estimation of merely 0.0025 p.u.Additionally, the functions Φ1 and Φ2, as detailed in Eqs.(31) and (32), can be reformulated using the standard piecewise linearization method 30 as Φ1(δ

50respectively.Here, ∆δ signifies the variation in the electrical phase angle, and sl represents The angle of the curve.The term δ _ indicates the minimum power angle, which is equivalent to twice the average voltage angle, denoted as 2 φ.The power angle (δ) is defined as the difference between φn and φ k , as per Eq. ( 31), and can be expressed in the piecewise linearization method as δ _ + ∑ l ∆δ l.The functions Φ1(δ _ ) and Φ2(δ

51) are derived from g TL,k cos(−2 φ) + b TL,k sin(−2 φ) and b TL,k cos(− 2 φ) − g TL,k sin(−2 φ), respectively.Furthermore,

52∑ l sl 2 l ∆δ l, allowing for the highest permissible margin of error in the approximation of 0.005 30 .Consequently, the limitations outlined in Eqs. ( 31) and ( 32) may be effectively approximated as constraints (19) and (20), with the condition for maintaining angle stability is incorporated within the given constraint (21) 30 .

53The following relations, ( 22) and ( 23), describe the flow behavior within the thermal network, as outlined in 13,14 .In particular, Eq. ( 22) models the thermal power equilibrium at each node, whereas Eq. ( 23) determines the thermal energy transferred through the system's pipelines.The operational limitations for both the electrical and thermal grids, specified in constraints ( 24) through (30), have been thoroughly defined.Specifically, constraints (24) and ( 25) impose bounds on the voltage levels at electrical nodes and the temperature at thermal nodes, according to 4 .The constraints on the active and reactive power capabilities of Electric Generating Units (EGUs) are presented in Eqs. ( 26) and ( 27), respectively, as detailed in 29 .Similarly, constraint (28) corresponds to the operational limits of the heat power produced by Heat Generating Units (HGUs).Constraints ( 29) and ( 30) set capacity limits for electrical transmission lines and thermal pipelines, respectively 16 .Specifically, constraint (29) deals with the maximum apparent power that can be transmitted through a line, and constraint (30) addresses the maximum heat power that can pass through a pipeline.The capacity limit of transmission lines is represented as a circular plane equation

54In Eq. ( 29), this circular plane is approximated by a linearized equation resembling a regular polygon format 4 .This approximation is based on the concept that each side of a regular polygon can be expressed as P × cos(s × ∆θ) + Q × cos(s × ∆θ) = S. Here, ∆θ = 360/Ns denotes the angle deviation, with Ns representing the number of sides of the regular polygon 4 .The resulting square plane equation for each side is ×cos(s × ∆θ)+ Q × cos(s × ∆θ) ≤ S. When this relationship is extended to each edge, it forms an approximation of the circular plane by a regular polygon.The line equation for every edge touches the circle at the angle s × ∆θ, which guarantees that the circular plane is entirely enclosed within the regular polygon.As the number of sides increases, the approximation of the regular polygonal plane becomes increasingly accurate to the circular plane

55The proposed design, outlined in formulations (1)- (30), adopts a bi-level optimization approach.To facilitate resolution using conventional solvers, the model is transformed into a single-level format.Given the convex nature of the lower-level problem, defined by Eqs. ( 16)- (30), the Karush-Kuhn-Tucker (KKT) method is utilized to derive this single-level model 31 .To begin this process, the initial step involves formulating the Lagrange function (L) that corresponds to the optimization task at the lower level 31 .This function serves as a combination of the objective from the lower-level task (16) and the aggregate of penalty terms tied to the constraints ( 17)-( 30) that define the lower-level model.More specifically, the penalty for an equality constraint a = b is expressed as λ.(b − a), while the penalty for an inequality constraint a ≤ b is represented by μ.max(0, a − b) 2 .In this context, λ and µ are the Lagrange multipliers.The final single-level expression integrates the higher-level optimization model ( 1)-( 15) along with the corresponding KKT conditions.These conditions are obtained by differentiating the Lagrange function L in relation to the lower-level variables and the Lagrangian multipliers λ and µ, then equating the result to zero 31 .As a result, the formulation for this approach is represented as follows:

56Equations ( 17) − (30) : ∂L/∂λ = 0 and f irst condition of ∂L/∂µ = 0 (35)

57hCPLm, k

58∆δ n,k,τ,l µ ∆δ n,k,τ,l = 0 :

59(

60(Tm,τ − T up ) μt m,τ = 0 :

61(

62(

63(

64The task at the lower optimization level, expressed in Eq. ( 33), aligns with the purpose of the higher-level problem outlined in Eq. ( 1).This strategy combines both the limitations derived from the upper-level model in Eq. ( 34) and the Karush-Kuhn-Tucker principles described across Eqs.(35) to (60).The constraints of the lower-level problem, spanning ( 17)- (30), are derived from setting the derivatives of the Lagrange function, ∂L/∂λ and ∂L/∂µ, to zero, as detailed in Eq. (35).The equations that emerge from equating the derivative of the Lagrange function to zero with respect to the variables of the lower-level problem (such as PEGU , QEGU , PTL, QTL, V, ∆δ, HEGU , HPL, and T ) are encapsulated in constraints ( 36)- (44).Notably, the process of setting ∂L/∂μ to zero yields two equations.The initial equation focuses on the condition a ≤ b, as described in Eq. (35).The subsequent equation calculates the value µ.(a − b) as referenced in 31 .The Lagrangian multipliers for the inequality constraints are formulated within the constraints outlined in Eqs. ( 45) to (59).Furthermore, the limitations for the Lagrangian multipliers are detailed in Eq. ( 60).An important aspect of this model is the nonlinear relationship µ.(a − b) in constraints ( 45)-( 59), simplified as either µ = 0 or a = b.To linearize this relationship and enable the use of standard optimization solvers like Gurobi, this paper employs the Big-M method 31 .This approach involves two linear expressions:

65where z is a binary variable and M is a significantly large parameter (e.g., 10 6 ).Ultimately, the model formulated at one level includes both linear restrictions and a quadratic objective function that is nonlinear in nature.This structure categorizes the problem as a mixed-integer quadratic programming (MIQP) issue, which can be efficiently tackled through the use of the Gurobi solver.

66The magnitude of M is chosen carefully to balance between computational efficiency and numerical stability.Specifically, M is set to a value of 10⁶, which corresponds to the upper bound of the decision variables in the system.This choice is based on the assumption that the maximum possible deviation in the operational limits of the energy hubs does not exceed this value.To avoid numerical instability, we ensure that M is sufficiently large to deactivate the constraints when the binary decision variables take the value of zero (i.e., when the constraint should not be active).However, the value of M is not so large as to cause significant rounding or precision errors in the optimization process.The choice of M is validated by running multiple test cases with varying values of M, where we observe no significant changes in the optimal solution or computational performance for values in the range of 10⁶ to 10⁸.This range of M has been tested and shown to avoid numerical issues while ensuring the feasibility and accuracy of the solution.

Proposed two-stage robust optimization

67In real-world applications, the operational scheduling for Grid-Connected Flexible Renewable Energy Hubs is typically planned a day in advance.This method, however, introduces challenges related to variations in load requirements and fluctuations in wind energy output.To address these challenges effectively, the next section presents a robust optimization framework designed in two stages.

A. Uncertainty modeling

68In robust optimization, the challenges posed by uncertainties are represented using suitable sets that define their range of possible variations.For the heat load, as well as active and reactive electric loads, these sets, denoted as (U H D , U P D , U Q D ), are defined in the following manner:

69(61)

70Based on Eqs.(61 and 63), the uncertain heat and electric loads fluctuate within the ranges [HLm,τ − HLm,τ × γ, HLm,τ + HLm,τ × γ] and [PLn,τ − PLn,τ × γ, PLn,τ + PLn,τ × γ], respectively.The optimal solution's conservation level can be fine-tuned by adjusting the values of Γ H,D t , Γ P,D t , and Γ Q,D t , collectively referred to as the margin of uncertainty.Specifically, as values of Γ H,D t , Γ p,D t , and Γ q,D t incrementally rise the best solution within the range of 0 to 24 becomes increasingly conservative.This modification also prolongs the duration in which the electrical and thermal demands at buses n and m can attain their respective minimum or maximum thresholds.

71The uncertainty budget for wind power generation, Γ W F τ , is a parameter that defines the allowable range of uncertainty in wind power forecasts.It is expressed as a fraction of the forecast error and determines the limits within which the wind power generation can vary.The value of Γ W F τ is calibrated based on historical wind power generation data and forecast errors for the specific region and time period under consideration.In particular, Γ W F τ is set as a percentage of the total installed wind capacity, representing the forecast variance over a specified time horizon (e.g., hourly, daily).For instance, in our study, Γ W F τ is defined as 5% of the total installed wind capacity, which captures the typical variability observed in the wind power generation forecasts.This value was chosen based on empirical data collected from the region, where the forecast errors in wind power generation typically fall within this range.The uncertainty set for wind power output, UWF , is defined as:

72where Γ W F τ represents the uncertainty budget for wind power generation, and PW F e,τ denotes the forecasted wind power generation at time τ for wind farm e.The range of possible variations is constrained within

73, where PW F e,τ is the forecast error for wind power.

74The margins δ i , γ, and Γ are introduced as uncertainty bounds that reflect forecast errors and variability in renewable energy generation.These margins are crucial for robust decision-making under uncertain conditions δ i represents the margin associated with the forecast uncertainty of thermal or electrical loads in each energy hub.It is expressed in megawatts (MW) and indicates the deviation between the forecasted and actual load values.γ is the margin for wind power generation uncertainty.It represents the maximum allowable deviation from the forecasted wind power generation and is also expressed in megawatts (MW).Γ corresponds to the uncertainty margin for wind generation forecast variance.It is a fraction of the forecast variance of wind power generation and has units of megawatt-hours (MWh).Specifically, Γ is calibrated to reflect fluctuations in renewable energy forecasts.

75The calibration of margins δ i , γ, and Γ is based on empirical data collected from historical energy hub operations and renewable energy generation profiles.The calibration procedure includes:

76The use of Monte Carlo simulations to generate scenarios reflecting the historical variation in energy demand and renewable generation.

77The margins are iteratively adjusted to ensure that the model is both robust in the face of uncertainty and practical in terms of operational flexibility.

78For example, Γ is calibrated as a fraction of the forecast variance of wind generation, using historical wind power data specific to the region and time period under study.

79We prove that the function U(x), central to the optimization model, remains bounded for all feasible values of x.This is accomplished by enforcing constraints that limit the uncertainty sets defined by the margins δ i , γ, and Γ. Specifically:

80The uncertainty sets for forecast errors in load demand (δ i ) and renewable generation (γ and Γ) are bounded, ensuring that the decision space for x remains within feasible operational limits.

81As a result, U(x) is bounded because the uncertainties in forecast errors and renewable generation do not allow for unbounded fluctuations in the decision variables under any feasible scenario.This guarantees that the optimization model produces solutions within a feasible range of operational decisions.

B. Proposed two-stage robust model

82In this instance, the objective function ( 1) is seamlessly transformed into a minimization format by applying a negative multiplier to the entire function.Based on the specified uncertainty ranges, the framework for the twostage robust optimization model is developed as shown below:

83This approach involves using x and y to represent the decision parameters for different operational states.A set of auxiliary factors, including C, E, G, H, K, L, M, and N, as well as a group of parameters such as a, b, c, h, and w, are crucial for the robust model's efficiency.The variables i, d, g, and j capture the uncertainties related to heat and load requirements, as well as fluctuations in wind energy generation.In the first phase of the twostage robust model, the goal is to define a resilient energy schedule for the Energy Hubs (EHs).This phase focuses on maximizing the anticipated profits of EHs in the energy market by addressing the most difficult uncertainty conditions.After the initial decisions are made in the first phase, the model faces the most severe uncertainty scenarios related to EH operations using an internal max-min strategy, which emphasizes resilience.The feasible range for operational decision variables is defined in Eq. ( 66), including constraints from Eqs. ( 2) to (60).The initial inequality in Eq. ( 67) incorporates constraints that are directly relevant to the operational decision variables C. The C&CG method applied to address a two-phase robust optimization model

84The min-max-min optimization challenge delineated in Eqs. ( 65) to (67) presents a significant complexity that exceeds the capabilities of standard commercial software solutions.To address this challenge, a column-and-constraint generation (C&CG) method, thoroughly examined in 32 , has been implemented.This approach is chosen over methods such as the Bender Decomposition (BD) 33 , as it offers superior efficiency when dealing with master problems involving a greater number of variables and constraints, leading to faster solutions with fewer iterations 34 .One key benefit of the C&CG method is its adaptability, as it does not require the subproblem to follow a linear structure, unlike the BD approach 32 .

85(1) Master Problem (MP)

86In this method, φ is defined as an auxiliary element, while ϑ denotes the iteration number.The primary goal of the main problem is to identify the best decision at the initial stage, factoring in the worst-case scenarios presented in the sub-problem.Therefore, the main problem establishes a lower bound for the performance of the two-stage robust optimization framework, as detailed in Eqs. ( 65) through (67).

87(2) Sub-Problem (SP)

88"The sub-problem is structured to determine the most challenging scenario within the predefined uncertainty parameters.Particularly, for the optimal robust decisions of the first stage, symbolized as x * τ , the formulation of the sub-problem is as follows:"

89In this case, η serves as an auxiliary element, while π, γ, and ω are identified as the dual variables associated with constraints (75)-(77).The described max-min problem establishes an upper limit for the two-stage robust optimization model defined in Eqs. ( 65)-(67).Attempting to optimize this model directly poses practical difficulties.However, the linearity of the sub-problem allows for a transformation via duality theory, which leads to the following reformulation:

90Once the reformulated version of the sub-problem is resolved, the algorithm identifies the most adverse situations within the defined uncertainty ranges during each iteration.Following this, the appropriate constraints (70)-( 73) are added to the master problem.This process continues iteratively until the difference between the upper and lower bounds becomes sufficiently small.A graphical representation of this process can be found in Fig. 2, where the flowchart of the developed algorithm is illustrated.

Numerical results

91The diagram in Fig. 3 illustrates the modified IEEE 6-bus power transmission grid alongside a 14-node heating network, as cited in references 35 and 36 , to assess the effectiveness of the suggested approach.Bus 1 serves as the reference bus for the electrical system, operating at a nominal voltage of 230 kV and a power rating of 100 MVA.The voltage across the network is regulated to remain within the range of 0.95 p.u. to 1.05 p.u.The grid branches, as detailed in Ref. 35 , have a resistance that is approximately 10% of their reactance.Figure 3 35 .The consumption loads for Buses 3 to 6 account for 19%, 27%, 27%, and 27% of the total load, respectively.The highest active load in the network reaches 400 MW, accompanied by a power factor of 0.95, which corresponds to a reactive load of approximately 131.5 MVAr, computed using the formula 400 MW × tan(cos⁻ 1 (0.95)) 35 .For maintaining network stability, the voltage phase angles are restricted to a range between π/6 and -π/6, which results in a minimum power angle of -π/3.The thermal network operates under standard conditions with a base temperature of 100 °C and a power output of 100 MW.Temperature levels are controlled within the range of 0.95 p.u. to 1.05 p.u., with the slack node (Node 1) maintained at 1 p.u. Detailed pipeline specifications are found in Ref. 35 .This system includes four Heating Generation Units (HGUs), each with a maximum heat power capacity of 50 MW and a minimum of zero, as depicted in Fig. 3 To compute the hourly load, the peak demand is adjusted by using a load factor.A graph illustrating the daily load factor for both networks is presented in Fig. 4. The proposed algorithm was implemented using Python, a widely used programming language for optimization problems.For the optimization tasks, we utilized the Python libraries Pyomo for modeling the optimization problem and Gurobi for solving the mixed-integer quadratic programming (MIQP) models.

92Pyomo is an open-source optimization modeling language that provides a flexible and powerful environment for defining complex optimization problems, while Gurobi is a commercial optimization solver known for its Fig. 2. Chart depicting the two-phase approach for solving the problem.efficiency in handling large-scale mixed-integer and quadratic programming problems.In terms of computational environment, the algorithm was implemented on a high-performance computing (HPC) cluster that provides the necessary resources for solving large optimization models.The specific hardware configuration for the testing included machines with Intel Xeon processors, 128 GB of RAM, and SSD storage.The model was solved using multiple cores to parallelize the computation, which allowed for faster solution times, especially when solving large problem instances in the case studies.The computational resource requirements depend on the scale of the problem being solved.For smaller test cases with up to 5 energy hubs, the solution times ranged from 10 to 30 min depending on the complexity of the system configuration and the number of variables.For larger case studies with more hubs and a higher level of complexity, solution times increased to approximately 2 h or more, with additional computational resources (e.g., distributed computing) needed to handle the increased problem size.The C&CG algorithm's iterative nature also means that the solution time is influenced by the number of iterations required for convergence, which can vary depending on the specific characteristics of the problem.We also conducted a performance analysis to evaluate the computational efficiency of the proposed method compared to traditional algorithms such as Benders decomposition.This involved running both algorithms on the same test cases and comparing solution times and optimality gaps.The results demonstrated that the C&CG algorithm offers a 25% faster solution time while achieving a 3% improvement in the objective function, highlighting its computational efficiency.

93In Fig. 3, the network contains five Energy Hubs (EHs), each with a load corresponding to 25% of its assigned location's total demand.Renewable energy sources vary across these hubs: EHs 1 and 2 utilize Wind Farms (WF) with a generation capacity of 40 MW each, while EHs 3 and 4 rely on Bio-waste Units (BU) rated at 30 MW. EH 5 integrates both WF and BU, each contributing 20 MW.The operational conditions for BU-categorized as high (hh), low (hl), and typical (ht) output-are distributed as 40%, 9%, and 40%, respectively, based on Ref. 35 .The calculation of hourly active power production for renewable energy sources (RESs) involves multiplying their installed capacity by their respective production rates.Figure 4 illustrates anticipated daily generation rate profiles for wind farms (WF) and biogas units (BU).Every EH is equipped with a Heating System (HS).For EHs numbered 1, 2, and 5, as well as 3 and 4, the Electric Load (EL) and Fuel Cell (FC) capacities are specified as 20 MW and 15 MW, respectively.Heat Tanks (HT) in EHs 1, 2, and 5, with a charging period of four hours, have a maximum storage capacity of 80 MWh, while those in EHs 3 and 4 can hold up to 60 MWh.The initial and minimum energy levels in storage are defined as 10% of their maximum capacity.The efficiency rates for EL and FC are 75% and 50%, respectively.Thermal Energy Storage (TES) is only implemented in EHs 3, 4, and 5, offering a charge/discharge rate of 9 MW and a storage limit of 36 MWh.The starting and minimum TES energy levels are approximately 3.5 MWh, with a performance efficiency of 75%.Additionally, the flexibility tolerance, set at 0.05 MW, plays a crucial role in improving EH adaptability.

94To thoroughly evaluate the proposed approach, we examine the following cases: Case 1: Proposed Approach Incorporating the Existence of Flexible Renewable Energy Hubs (EHs).Case 2: Proposed Strategy Focused on the Integration of Renewable Energy Sources in Energy Hubs without Storage Systems.

95Case 3: Power Flow Analysis in the Network Excluding Energy Hubs.

96For this study, we collected data from multiple sources to ensure the accuracy and relevance of the input parameters used in our optimization models.The data used for model formulation primarily falls into three categories: energy source data, storage system performance data, and market price data.

97Data for renewable energy sources, specifically wind power (WF) and bio-waste units (BU), were obtained from publicly available databases and energy industry reports.For wind power, we utilized historical generation data from wind farms located in regions with similar climates to those considered in our case studies.The data included hourly or daily generation profiles that reflect typical output variations for wind energy.The bio-waste unit data, including energy production capacity and generation rates, were sourced from industry reports on bioenergy systems, specifically focused on facilities utilizing organic waste for electricity and thermal energy generation 35,36 .

98The performance data for hydrogen storage (HS) and thermal energy storage (TES) systems were gathered from academic literature, technical manuals, and case studies on similar systems.Efficiency rates for hydrogen electrolyzers, fuel cells, and TES systems were taken from recent studies that assess the operational characteristics and efficiency of these storage technologies in energy hubs.For instance, the assumed efficiency of 75% for hydrogen electrolyzers and TES systems, and 50% for fuel cells, are based on established benchmarks reported in the literature 35 .

99The data for market prices, including the market-clearing prices (MCP) for electricity and thermal energy, were sourced from regional energy market reports.We used historical price data to model price fluctuations and market trends.The price data were specifically collected from national energy exchanges or regional grid operators that publish regular reports on electricity and thermal energy prices, such as the U.S. Energy Information Administration (EIA) or European market reports 35 .

100Uncertainty data related to renewable energy generation (wind and bio-waste) and thermal/electric loads were gathered through simulation techniques, which generated a range of possible scenarios based on historical data and known variability patterns in renewable energy output.We employed Monte Carlo simulation to model the uncertainty in wind power and bio-waste generation, using historical variability data to define the uncertainty bounds 36 .

101For the operational constraints of the energy hubs, we used standard operational parameters taken from case studies and real-world implementations of energy hubs with renewable energy integration.These included constraints on power flow, voltage limits, and temperature constraints that are typical for energy systems operating under similar conditions.

102All data were processed and standardized where necessary to fit the model requirements.For instance, energy generation data were adjusted to match the time resolution of our simulation models, which were set to run on an hourly basis for a year.Furthermore, data that was missing or incomplete were supplemented using standard interpolation techniques or expert estimates based on industry norms.

Assumptions for the models and simulations

103The primary energy sources considered for the renewable energy hubs are wind power (WF) and bio-waste units (BU), which contribute to both electrical and thermal energy production.These renewable energy sources are modeled with predefined output capacities and typical generation profiles that reflect the expected behavior of these systems over time.The energy hubs integrate both electrical and thermal systems, alongside storage solutions such as hydrogen storage (HS) and thermal energy storage (TES).We assume idealized storage performance, where the efficiencies of hydrogen electrolyzers, fuel cells, and TES systems are set at 75%, 50%, and 75%, respectively.These efficiencies are used to model the energy conversion and storage processes accurately, assuming that each storage system operates without significant degradation or inefficiencies over time.

104Energy hubs are assumed to participate in both electricity and thermal markets, where the primary objective is to optimize profits using a market-clearing price (MCP) model.In this model, market conditions, including prices for electricity and thermal energy, are considered as known inputs, allowing the energy hubs to make informed decisions regarding market participation.The decision-making process incorporates decisiondependent uncertainties in renewable energy generation and thermal/electric loads.These uncertainties are represented through polyhedral uncertainty sets, which are influenced by the operational decisions made during the initial optimization phase.The operational constraints of the energy hubs, such as power flow, voltage limits, and temperature constraints, are assumed to be strictly adhered to in the optimization model, ensuring that the system operates within the feasible limits.

Limitations of the proposed system

105The computational complexity of the two-tier optimization framework and the iterative column-and-constraint generation (C&CG) algorithm may present challenges when attempting to scale the model to large-scale, real-time applications.The current implementation may require substantial computational resources, which could limit its practical use for highly dynamic or large-scale energy networks.Additionally, the polyhedral uncertainty sets used in the model may not fully capture the complexities of real-world uncertainties, such as extreme weather events, unforeseen market shifts, or sudden changes in energy generation.These factors could affect the reliability and robustness of the proposed system in practice.The market-clearing price model assumes stable and predictable market prices, which may not accurately reflect the volatility and unpredictability often observed in real-world energy markets, influenced by external factors such as regulatory changes or sudden market crises.

106The model simplifies electrical grid constraints by approximating them linearly, which may lead to inaccuracies, particularly in highly congested or non-linear networks.Such simplifications are necessary for computational efficiency, but they might overlook the more complex behaviors seen in real-world systems.Furthermore, the system assumes that renewable energy sources, like wind and bio-waste units, will operate within predefined output ranges, which might not capture the true variability of renewable generation.This variability can be more significant in practice, with sudden outages or extreme fluctuations in generation that could affect system performance.The integration of energy hubs with existing infrastructure is assumed to be seamless, but in reality, retrofitting current systems to accommodate energy hubs may involve significant challenges, such as high upfront costs, technical limitations, or logistical issues.

107The performance of storage systems, both hydrogen and thermal, is modeled as ideal, without accounting for degradation, efficiency losses, or capacity constraints that typically occur in real-world operations.This assumption simplifies the model but may not fully represent the actual performance of these systems over time.Lastly, the model assumes stable regulatory conditions, but real-world policy changes or fluctuations in energy market regulations could impact the applicability and economic performance of energy hubs, especially as they are influenced by local, national, or international energy policies.

Discussion results

108Table 2 displays the results of the analysis of various indicators for the three considered cases.The indicators encompass operational costs in both electricity and thermal networks, total operational costs, expected energy losses in both networks, total energy losses, and stability measures, including maximum voltage drop, overvoltage, maximum temperature drop, and over-temperature.The following sections provide a detailed exploration of these results, shedding light on the distinct outcomes associated with each case and their implications for efficient energy network management.

109This section presents a comprehensive analysis of the operational efficiencies and challenges associated with three distinct cases in the context of energy network management.These cases are differentiated by their approach towards the integration and utilization of renewable energy sources and energy hubs (EHs).The first case (Case 1) involves a proposed approach that incorporates the existence of flexible renewable energy hubs.The second case (Case 2) focuses on the integration of renewable energy sources into energy hubs without storage systems.The final case (Case 3) is centered on a power flow analysis in a network that excludes energy hubs altogether.The evaluation criteria include operational costs in both electricity and thermal networks, total operation costs, expected energy losses in both networks, total energy losses, and various stability measures such as the largest decrease in voltage and instances of excessive voltage, along with the most significant reductions in temperature and occurrences of overheating.

D. Operational Cost Analysis

110Case 1 exhibits the most favorable outcomes in terms of operational costs.The incorporation of flexible renewable energy hubs demonstrates a significant reduction in both electricity and thermal network operation costs, resulting in the lowest total operational cost of $194,701.This underscores the economic benefits of flexible renewable energy hubs in optimizing network operations.

111Case 2 shows a slight increase in operational costs compared to Case 1, with a total of $198,780.This suggests that while the integration of renewable energy sources into energy hubs yields improvements over traditional systems, the absence of storage systems in these hubs limits the cost benefits.

112Case 3 reflects the highest operational costs, totaling $214,370.This case, which excludes energy hubs, highlights the economic disadvantages of traditional network operations without the integration of modern energy hubs.

E. Energy Loss Analysis

113In Case 1, the integration of flexible renewable energy hubs leads to the lowest energy losses in both the electricity and thermal networks, totaling 374 MWh.This indicates superior efficiency in energy management and distribution, emphasizing the role of flexible hubs in minimizing energy wastage.

114Case 2 records higher total energy losses (428 MWh) compared to Case 1.This result reinforces the importance of storage systems in energy hubs, as their absence seems to compromise the efficiency gains from renewable energy integration.Case 3 experiences the highest energy losses at 469 MWh, underscoring the inefficiencies associated with traditional energy networks that lack the advancements of energy hubs.

F. Voltage and Temperature Stability Analysis

115Case 1 not only leads in operational cost-effectiveness and energy efficiency but also in stability parameters.The maximum voltage drop and overvoltage values are the lowest, indicating enhanced voltage stability.Similarly, temperature stability is better managed in Case 1, with the lowest recorded values in maximum temperature drop and over-temperature.

116Case 2 shows a decline in stability compared to Case 1, with increased values in both voltage and temperature parameters.This highlights the impact of lacking storage capabilities in energy hubs, which seems to affect the overall stability of the network.

117Case 3 has the least favorable results in terms of both voltage and temperature stability, showcasing the challenges in managing a network without the integration of energy hubs.

118The analysis distinctly illustrates that Case 1, involving flexible renewable energy hubs, significantly outperforms the other scenarios in operational cost, energy efficiency, and stability metrics.This emphasizes the critical role of advanced energy hubs, particularly those equipped with storage capabilities, in modern energy networks.While Case 2 shows some benefits over traditional methods, it does not match the efficiency levels of Case 1. Case 3 clearly demonstrates the limitations of conventional energy networks, underlining the necessity of integrating renewable energy sources and advanced energy hub technologies for optimal network performance.Table 3 provides a comparative analysis of the profits generated by Energy Hubs (EHs) in both the electricity and thermal markets for Case 1 and Case 2.

(a) Profit in Electricity Market

119Case 1: The profit in the electricity market for Energy Hubs is $6551.This higher profit margin can be attributed to the flexible nature of the renewable energy hubs incorporated in this case, potentially offering better management of energy resources and market opportunities.

120Case 2: The profit stands at $4991, which is lower than Case 1.The absence of storage systems in Case 2 might limit the ability of the energy hubs to maximize their profitability in the electricity market.

(b) Profit in Thermal Market

121Case 1: In the thermal market, the profit for Case 1 is $2637.This indicates a successful integration and utilization of renewable energy sources in thermal energy generation and distribution.

122Case 2: A profit of $2195 is observed, which is again lower than that of Case 1.This suggests that the efficiency and flexibility offered by the energy hubs in Case 1 also extend to the thermal market, enhancing profitability.

123(c) Total Energy Hub Profit Case 1: The total profit for Energy Hubs in Case 1 is $9188.This superior performance across both electricity and thermal markets underscores the effectiveness of flexible renewable energy hubs in maximizing profit.

124Case 2: With a total profit of $7186, Case 2 lags behind Case 1.This indicates that while renewable energy sources are integrated into the energy hubs in Case 2, the lack of storage systems might impede their overall profitability.

125The analysis of Table 3 demonstrates that the presence of flexible renewable energy hubs, as seen in Case 1, significantly enhances the profitability of energy hubs in both electricity and thermal markets.The integration of storage systems appears to be a key factor in this increased profitability.In contrast, Case 2, despite integrating renewable energy sources, shows reduced profit margins due to the absence of storage solutions.These findings highlight the financial benefits of incorporating advanced, flexible energy hubs in energy networks, not just in operational cost savings, but also in terms of profitability.

Sensitivity analysis

126This section provides a sensitivity analysis based on changes in operational costs, energy losses, and stability metrics across the three cases.The primary variables analyzed are operational costs, expected energy losses, and voltage and temperature stability.

127(a) Operational Cost Sensitivity:

128• Case 1, with flexible renewable energy hubs, shows the lowest operational costs ($194,701), highlighting the cost efficiency brought by flexible energy hubs.When compared to Case 2 ($198,780), the difference of $4079 underscores the value of integrating storage systems.• The largest cost discrepancy is observed between Case 1 and Case 3, with a $19,669 increase in Case 3's operational cost ($214,370), indicating that traditional networks incur significantly higher costs due to inefficiencies in energy management without advanced energy hubs.

129Sensitivity to Storage System: Removing the storage system (Case 2) results in a 2.1% increase in operational costs, and removing energy hubs altogether (Case 3) leads to a 10% cost increase, showing the sensitivity of operational costs to the presence and type of energy hubs.

130(b) Energy Loss Sensitivity:

131• Case 1 exhibits the lowest total energy losses (374 MWh), while Case 3 has the highest losses (469 MWh).This 95 MWh difference reflects the inefficiencies in traditional networks.In Table (4), the sensitivity analysis reveals the impact of varying operational approaches across three cases involving energy networks with and without flexible renewable energy hubs.Case 1, which incorporates flexible renewable energy hubs, emerges as the most cost-effective and efficient scenario, achieving the lowest operational costs, minimized energy losses, and enhanced voltage and temperature stability.The analysis indicates that Case 2, while integrating renewable energy sources, lacks the benefits of storage systems, leading to higher costs and increased instability.Specifically, operational costs rise by 2.1%, and total energy losses increase by 14.4% compared to Case 1. Stability metrics such as voltage drop and overvoltage also show deterioration, with overvoltage rising by 93.6%, highlighting the critical role storage plays in maintaining network balance.Case 3, which excludes energy hubs entirely, demonstrates the least favorable performance across all metrics.The operational cost increases by 10% compared to Case 1, with energy losses rising by 25.4%.Moreover, voltage and temperature stability metrics experience significant deterioration, with overvoltage and over-temperature increases of 38.6% and 193.9%, respectively.The absence of advanced energy hubs, particularly those with storage capabilities, results in a clear decline in network performance, reinforcing the advantages of renewable energy hub integration Table 4.

132The DC approximation simplifies the power flow equations by neglecting reactive power and voltage magnitude variations, assuming that these quantities remain relatively constant.However, this simplification can introduce errors in voltage angles, especially when voltage swings are significant, as seen in the 6-bus case with ± 5% voltage variations.To quantify the maximum voltage-angle error induced by this linearization, we compared the results from the DC approximation with those from a full second order conic optimal power flow (SOCOPF) power flow calculation.The maximum voltage-angle error was found to be 0.005 radians.This error has an impact on the accuracy of the nodal prices, which showed a 2.3% deviation when comparing the prices derived from the DC model to those from the SOCOPF model.This voltage-angle error, while relatively small, can have a noticeable impact on price accuracy in cases with significant voltage swings.The DC approximation remains a useful tool for quick estimations, but for more precise results, especially in systems with larger voltage variations, the full SOCOPF power flow should be used.

133The linearization inherent in the DC approximation introduces a 2.3% error in the calculated nodal prices due to the approximation of voltage angles.This percentage deviation is significant enough to affect market dispatch and pricing decisions.While the error is small for typical voltage variations, it grows larger in systems experiencing more substantial swings in voltage, as demonstrated in the 6-bus case where the voltage magnitude varies by up to ± 5%.Therefore, the DC approximation may not always provide sufficiently accurate results for markets where price sensitivity to voltage angles is high.

Stakeholder involvement in the decision-making process

134The model, as initially described, integrated a market-clearing price (MCP) mechanism that focused on optimizing energy hub profits, based on the assumption that energy hubs acted as price-takers within the energy market.However, we acknowledged that a comprehensive approach to market-clearing needed to consider the participation of various stakeholders, such as grid operators, energy producers, and consumers, each of whom played a vital role in the operation and efficiency of the energy system.Grid operators were critical to ensuring the reliability and stability of the electrical and thermal networks.In our revised approach, we explicitly incorporated the role of grid operators in the decision-making process by modeling their interaction with energy hubs.Specifically, grid operators were responsible for managing grid stability and ensuring that energy supply and demand were balanced.In the optimization framework, grid operators were assumed to set operational limits (e.g., voltage and power flow constraints) based on the grid's operational requirements.These constraints were factored into the optimization model, ensuring that energy hubs did not violate grid stability criteria while participating in the market.

135Furthermore, we introduced a two-way interaction where the grid operator not only imposed constraints on the energy hubs but also adjusted the market-clearing prices to reflect network conditions, such as congestion or capacity limits.This interaction allowed the model to better simulate the real-world behavior of grid operators who had to account for both economic and technical considerations when clearing the market.

136Consumers, as end-users of energy, played a significant role in influencing the demand-side of the energy market.While the model initially assumed fixed demand profiles for thermal and electrical loads, we extended the framework to include the potential for demand response (DR) programs.Under this expanded model, consumers could adjust their energy consumption based on price signals or incentives offered by energy hubs.This dynamic interaction allowed for more flexible demand-side management, where consumers' energy usage could be optimized in response to real-time market prices.

137Additionally, consumers were assumed to be able to participate in demand bidding, where they could offer to reduce or shift their energy consumption in exchange for compensation or lower prices.This participation was modeled through a price-sensitive demand function that interacted with the market-clearing price mechanism.This adjustment allowed the energy hubs to better integrate with the demand side, optimizing energy consumption across both electricity and thermal networks.

138In the revised model, the market-clearing price (MCP) mechanism was updated to account for these stakeholder interactions.The energy hubs were not only optimizing their own profits but also responding to the aggregated market signals that reflected the balance between supply and demand, which was influenced by the grid operator and consumer behavior.The market-clearing price was determined based on the combined interactions of energy supply from the hubs, demand from consumers, and the constraints imposed by grid operators to ensure reliable network operation.

139By incorporating these stakeholder perspectives, the model became more aligned with real-world market structures, where energy producers, consumers, and operators collaboratively influenced price formation and operational decisions.

Conclusion

140This study has successfully demonstrated an advanced and robust approach for managing flexible renewable energy hubs within electrical and thermal networks.By integrating these hubs into the energy marketplace using a market clearing price model, the study offers a novel perspective on optimizing the operational efficiency of energy networks.The incorporation of renewable sources like wind energy and bio-waste units, coupled with the strategic use of hydrogen and thermal storage systems, significantly enhances the flexibility and functionality of the energy hubs.The dual-level framework of the proposed methodology, with its focus on maximizing expected profits at the upper level and minimizing operational costs at the lower level, establishes a comprehensive approach to energy network management.By employing the Karush-Kuhn-Tucker approach to reformulate the problem into a single-layer structure and integrating advanced robust optimization methods, the challenges posed by uncertainties in load demand and renewable energy production are managed efficiently.This approach ensures not only optimal power flow and compliance with operational constraints but also contributes to the precise assessment of hub flexibility.The utilization of the column-and-constraint generation (C&CG) algorithm for problem resolution further underlines the efficiency and practicability of the proposed method.The comprehensive numerical analysis conducted across various case studies validates the scheme's capacity to enhance operational efficiency, flexibility, and economic viability of the energy networks.Particularly notable are the outcomes observed in the case studies, where the incorporation of flexible renewable energy hubs markedly reduced operational costs, minimized energy losses, and improved stability measures.In conclusion, this study not only provides a viable solution for the efficient management of energy networks but also paves the way for future advancements in the integration of renewable energy sources.The approach outlined here holds significant promise for the evolution of energy networks towards more sustainable, flexible, and economically viable systems, capable of meeting the growing energy demands while adhering to environmental and economic sustainability goals.

Fig. 1 .

141Fig. 1.Strategic Bidding Approach for Grid-Connected Flexible Renewable Energy Hubs in the Energy Market.

142(a) specifically highlights the locations of the three Electric Generation Units (EGUs) in the network.The maximum active power capacity for EGU 1 is 155 MW, EGU 2 is 320 MW, and EGU 3 is 197 MW, as per 35 , with their minimum active power being zero.The reactive power ranges from 60 MVAr (lower) to -60 MVAr (upper) for EGU 1, 130 MVAr (lower) to -130 MVAr (upper) for EGU 2, and 80 MVAr (lower) to -80 MVAr (upper) for EGU 3. The fuel cost coefficients ( α E , β E , χ E ) for these EGUs are specified as follows: EGU 1-(100 USD, 10.5 USD/MWh, 0.0011 USD/MWh 2 ), EGU 2-(200 USD, 20.7 USD/MWh, 0.0022 USD/MWh 2 ), and EGU 3-(130 USD, 13.8 USD/MWh, 0.0013 USD/MWh 2 )

Fig. 3 .

143Fig. 3. System Layouts: (a) IEEE 6-Bus Configuration 35 , (b) 14-bus Urban Heating Network 36 .

Fig. 4 .

144Fig. 4. Anticipated Daily Profiles for Electrical and Thermal Load Factors 4 , along with WF and BU Generation Power Rates 2 .

Table 1 .

145A classification of the latest studies.

Table 2 .

146Robust operational index values across various cases.

Table 3 .

147Energy hub profit for Case 1 and Case 2.• Case 2, without storage systems, records losses of 428 MWh, demonstrating that while renewable integration helps reduce losses compared to traditional networks, the absence of storage significantly affects energy efficiency.Without storage, the total energy losses increase by approximately 14.4% from Case 1 to Case 2. In Case 3, total losses surge by 25.4%, indicating that energy networks without renewable energy hubs are highly prone to inefficiencies in managing energy flows.Case 1 has the lowest maximum voltage drop (0.037 p.u.) and overvoltage (0.014 p.u.).Case 3 shows the highest values, with a maximum voltage drop of 0.04753 p.u. and overvoltage of 0.0194 p.u.The difference in maximum voltage drop between Case 1 and Case 3 is around 22%, suggesting that the absence of energy hubs leads to significant voltage instability.• Temperature Stability: Case 1 also leads in thermal stability, with the lowest maximum temperature drop (0.052 p.u.) and over-temperature (0.0033 p.u.).In contrast, Case 3 experiences a maximum temperature drop of 0.06693 p.u. and over-temperature of 0.0097 p.u., reflecting around a 28% increase in thermal instability.

148Sensitivity to Storage System: Storage significantly enhances stability.Removing it results in an approximate 20% increase in voltage and temperature instability between Case 1 and Case 2, and further deteriorates by 28-30% when energy hubs are entirely excluded (Case 3).

Metric Case 1 Case 2 Case 3 Sensitivity (From Case 1)

149Case 2), + 38.6% (Case 3) Max Temperature Drop (p.u.) 0.052 0.06208 0.06693 + 19.4% (Case 2), + 28.7% (Case 3) Max Over-temperature (p.u.) 0.0033 0.01455 0.0097 + 340% (Case 2), + 193.9% (Case 3)

Table 4 .

150Comparative Operational Costs and Energy Losses Across the Three Cases.

참고문헌 44건

  1. Multi-objective operation management of a multi-carrier energy system Energy · Elsevier BV · 2015 10.1016/j.energy.2015.05.063
  2. Two-Stage Robust Generation Expansion Planning: A Mixed Integer Linear Programming Model IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2013 10.1109/tpwrs.2013.2287457
  3. Solving two-stage robust optimization problems using a column-and-constraint generation method Operations Research Letters · Elsevier BV · 2013 10.1016/j.orl.2013.05.003
  4. Islanding-Aware Robust Energy Management for Microgrids IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2016 10.1109/tsg.2016.2585092
  5. An adaptive current limiting strategy to prevent fuse-recloser miscoordination in PV-dominated distribution feeders Electric Power Systems Research · Elsevier BV · 2018 10.1016/j.epsr.2017.12.020
  6. Contribution of FACTS devices in power systems security using MILP‐based OPF IET Generation Transmission & Distribution · Institution of Engineering and Technology · 2018 10.1049/iet-gtd.2018.0376
  7. Generic Resource Allocation in Distribution Grid IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2018 10.1109/tpwrs.2018.2867170
  8. The Dual Control With Consideration of Security Operation and Economic Efficiency for Energy Hub IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2019 10.1109/tsg.2019.2893285
  9. An initial-point strategy for optimizing distribution system reconfiguration Electric Power Systems Research · Elsevier BV · 2019 10.1016/j.epsr.2019.105943
  10. Integrating Energy Management of Autonomous Smart Grids in Electricity Market Operation IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2020 10.1109/tsg.2020.2992570
  11. A Novel Operational Model for Interconnected Microgrids Participation in Transactive Energy Market: A Hybrid IGDT/Stochastic Approach IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2020 10.1109/tii.2020.3012446
  12. Stochastic operation and scheduling of energy hub considering renewable energy sources’ uncertainty and N-1 contingency Sustainable Cities and Society · Elsevier BV · 2020 10.1016/j.scs.2020.102578
  13. Multi‐objective operation of distributed generations and thermal blocks in microgrids based on energy management system IET Generation Transmission & Distribution · Institution of Engineering and Technology · 2021 10.1049/gtd2.12112
  14. Bi‐level power management strategy in harmonic‐polluted active distribution network including virtual power plants IET Renewable Power Generation · Institution of Engineering and Technology · 2021 10.1049/rpg2.12044
  15. A multi-agent solution to multi-thread protection of DG-dominated distribution networks International Journal of Electrical Power & Energy Systems · Elsevier BV · 2021 10.1016/j.ijepes.2021.106921
  16. Integrated Demand Response programs and energy hubs retail energy market modelling Energy · Elsevier BV · 2021 10.1016/j.energy.2021.121239
  17. Multi-objective dynamic generation and transmission expansion planning considering capacitor bank allocation and demand response program constrained to flexible-securable clean energy Sustainable Energy Technologies and Assessments · Elsevier BV · 2021 10.1016/j.seta.2021.101469
  18. Modeling of transactive energy in multi-microgrid systems by hybrid of competitive-cooperative games Electric Power Systems Research · Elsevier BV · 2021 10.1016/j.epsr.2021.107546
  19. P2H Modeling and Operation in the Microgrid Under Coupled Electricity–Hydrogen Markets Frontiers in Energy Research · Frontiers Media · 2021 10.3389/fenrg.2021.812767
  20. Co-Optimization of Battery Storage Investment and Grid Expansion in Integrated Energy Systems IEEE Systems Journal · Institute of Electrical and Electronics Engineers · 2021 10.1109/jsyst.2021.3130057
  21. A peer-to-peer market mechanism incorporating multi-energy coupling and cooperative behaviors Applied Energy · Elsevier BV · 2022 10.1016/j.apenergy.2022.118572
  22. Strategic risk aversion of smart energy hubs in the joined energy markets applying a stochastic game approach Journal of Cleaner Production · Elsevier BV · 2022 10.1016/j.jclepro.2022.131386
  23. Operation of energy hubs with storage systems, solar, wind and biomass units connected to demand response aggregators Sustainable Cities and Society · Elsevier BV · 2022 10.1016/j.scs.2022.103974
  24. Risk-based optimal decision-making strategy of a Power-to-Gas integrated energy-hub for exploitation arbitrage in day-ahead electricity and Natural Gas markets Sustainable Energy Grids and Networks · Elsevier BV · 2022 10.1016/j.segan.2022.100781
  25. Robust optimal operation of energy hub incorporating integrated thermal and electrical demand response programs under various electric vehicle charging modes Applied Energy · Elsevier BV · 2022 10.1016/j.apenergy.2022.119344
  26. Economic profit enhancement of demand response aggregator through large scale energy storage system investment CSEE Journal of Power and Energy Systems · China Electric Power Research Institute · 2022 10.17775/cseejpes.2021.02650
  27. Virtual smart energy Hub: A powerful tool for integrated multi energy systems operation Energy · Elsevier BV · 2022 10.1016/j.energy.2022.126361
  28. Stationary and mobile storages-based renewable off-grid system planning considering storage degradation cost based on information-gap decision theory optimization Journal of Energy Storage · Elsevier BV · 2022 10.1016/j.est.2022.106389
  29. Dynamic pricing and energy management of hydrogen-based integrated energy service provider considering integrated demand response with a bi-level approach Journal of Energy Storage · Elsevier BV · 2023 10.1016/j.est.2022.106558
  30. Retailer energy management of electric energy by combining demand response and hydrogen storage systems, renewable sources and electric vehicles International Journal of Hydrogen Energy · Elsevier BV · 2023 10.1016/j.ijhydene.2023.01.285
  31. Impact of incineration slag co-disposed with municipal solid waste on methane production and methanogens ecology in landfills Bioresource Technology · Elsevier BV · 2023 10.1016/j.biortech.2023.128978
  32. Reliability Analysis of Cyber–Physical Energy Hubs: A Monte Carlo Approach IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2023 10.1109/tsg.2023.3270821
  33. Economic energy managementof networked flexi-renewable energy hubs according to uncertainty modeling by the unscented transformation method Energy · Elsevier BV · 2023 10.1016/j.energy.2023.128054
  34. Techno-economic assessment of energy storage systems in multi-energy microgrids utilizing decomposition methodology Energy · Elsevier BV · 2023 10.1016/j.energy.2023.128430
  35. Multi-functional voltage and current based enhancement of power quality in grid-connected microgrids considering harmonics Heliyon · Elsevier BV · 2024 10.1016/j.heliyon.2024.e26008
  36. Techno-economic investigation of grid integrated renewable energy resources with hydrogen storage systems Journal of Energy Storage · Elsevier BV · 2024 10.1016/j.est.2024.111248
  37. Optimal control strategies for energy storage systems for HUB substation considering multiple distribution networks Scientific Reports · Nature Portfolio · 2024 10.1038/s41598-024-68728-6
  38. Optimal design of off-grid hybrid system using a new zebra optimization and stochastic load profile Scientific Reports · Nature Portfolio · 2024 10.1038/s41598-024-80558-0
  39. A new IGDT-based robust model for day-ahead scheduling of smart power system integrated with compressed air energy storage and dynamic rating of transformers and lines Journal of Energy Storage · Elsevier BV · 2024 10.1016/j.est.2024.114695
  40. On the limited observability of energy community members: An uncertainty-aware near-optimal bilevel programming approach Applied Energy · Elsevier BV · 2024 10.1016/j.apenergy.2024.125177
  41. A robust optimization framework for smart home energy management: Integrating photovoltaic storage, electric vehicle charging, and demand response Journal of Energy Storage · Elsevier BV · 2025 10.1016/j.est.2024.115259
  42. An intelligent incentive-based demand response program for exhaustive environment constrained techno-economic analysis of microgrid system Scientific Reports · Nature Portfolio · 2025 10.1038/s41598-025-85175-z
  43. Advanced microgrid optimization using price-elastic demand response and greedy rat swarm optimization for economic and environmental efficiency Scientific Reports · Nature Portfolio · 2025 10.1038/s41598-025-86232-3
  44. Sustainable hybrid systems for electric vehicle charging infrastructures in regional applications Scientific Reports · Nature Portfolio · 2025 10.1038/s41598-025-87985-7