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

Adaptive robust self‐scheduling for a wind‐based GenCo equipped with power‐to‐gas system and gas turbine to participate in electricity and natural gas markets

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

기본 정보

저자
  1. Mojtaba Fereydani — Department of Electrical and Computer Engineering, Isfahan University of Technology, Isfahan, Iran
  2. Mohammad Amin Latify — Department of Electrical and Computer Engineering, Isfahan University of Technology, Isfahan, Iran
DOI
10.1049/gtd2.13311
저널
IET Generation Transmission & Distribution
발행년도
2024
발행기관
Institution of Engineering and Technology
피인용수
0
라이선스
cc-by-nc
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1049/gtd2.13311
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W4403962753

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(5) 연료전지용 수분제어장치(가습기)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
power-to-gas (PtG), wind-based GenCo, gas turbine, adaptive robust optimization, energy storage
판단 근거
본 논문은 풍력 발전의 변동성을 관리하기 위해 PtG(Power-to-Gas) 시스템과 가스 터빈을 결합한 발전 사업자의 최적 스케줄링 모델을 다룹니다. 이는 코오롱인더스트리의 수소연료전지(PEMFC) 관련 사업 중 PtG 기술의 에너지 전환 및 시스템 운영 원리와 연관될 수 있습니다.
R&D 활용 포인트
PtG 시스템을 통한 에너지 저장 및 전환 공정의 최적화 모델링 기법을 수소 연료전지 시스템의 에너지 관리 시스템(EMS) 설계에 응용할 수 있습니다.
평가 입력
본문 141,542자 중 30,032자 발췌

초록

Abstract Integrating renewable energy, particularly wind generation, into power systems brings significant uncertainty and intermittency, challenging generation companies (GenCos) to maintain economic operations. This paper proposes a strategy for a wind‐based GenCo equipped with a gas turbine and a power‐to‐gas (PtG) system to balance wind variability. The gas turbine offsets power shortfalls by consuming natural gas, while the PtG system absorbs excess wind energy, converting it to natural gas and injecting it into the natural gas network as a form of storage. The GenCo operates in day‐ahead electricity and natural gas markets and the real‐time electricity market, addressing uncertainties from wind output, energy prices, and natural gas access. A tri‐level adaptive robust optimization model is introduced for the GenCo’s short‐term operational scheduling. At the first level, decisions related to the GenCo's participation in the day‐ahead electricity and natural gas markets are made. The second level deals with determining the worst‐case realization of the uncertainties, constrained by the budget of uncertainty and the limited range of variations of uncertain variables. The third level sets the operational strategy on the actual day, considering power and gas balance, as well as constraints for the wind farm, gas turbine, and PtG unit. A column & constraint generation (C&CG) algorithm is used to solve the model. Numerical results demonstrate the model’s effectiveness in various case studies, showing that the GenCo can manage wind uncertainties, benefit from arbitrage opportunities in electricity and gas markets, and improve economic outcomes. This approach supports the broader integration of renewable energy into power systems.

본문 141,542자

본문 펼치기
DOI: 10.1049/gtd2.13311 ORIGINAL RESEARCH # Adaptive robust self-scheduling for a wind-based GenCo equipped with power-to-gas system and gas turbine to participate in electricity and natural gas markets Mojtaba Fereydani Mohammad Amin Latify Department of Electrical and Computer Engineering, Isfahan University of Technology, Isfahan, Iran Correspondence Mohammad Amin Latify, Department of Electrical and Computer Engineering, Isfahan University of Technology, Isfahan 84156-83111, Iran. [Email: latify@iut.ac.ir](mailto:latify@iut.ac.ir) 1 INTRODUCTION 1.1 Motivation and context Abstract Integrating renewable energy, particularly wind generation, into power systems brings significant uncertainty and intermittency, challenging generation companies (GenCos) to maintain economic operations. This paper proposes a strategy for a wind-based GenCo equipped with a gas turbine and a power-to-gas (PtG) system to balance wind variability. The gas turbine offsets power shortfalls by consuming natural gas, while the PtG system absorbs excess wind energy, converting it to natural gas and injecting it into the natural gas network as a form of storage. The GenCo operates in day-ahead electricity and natural gas markets and the real-time electricity market, addressing uncertainties from wind output, energy prices, and natural gas access. A tri-level adaptive robust optimization model is introduced for the GenCo’s short-term operational scheduling. At the first level, decisions related to the GenCo’s participation in the day-ahead electricity and natural gas markets are made. The second level deals with determining the worst-case realization of the uncertainties, constrained by the budget of uncertainty and the limited range of variations of uncertain variables. The third level sets the operational strategy on the actual day, considering power and gas balance, as well as constraints for the wind farm, gas turbine, and PtG unit. A column & constraint generation (C&CG) algorithm is used to solve the model. Numerical results demonstrate the model’s effectiveness in various case studies, showing that the GenCo can manage wind uncertainties, benefit from arbitrage opportunities in electricity and gas markets, and improve economic outcomes. This approach supports the broader integration of renewable energy into power systems. benefits far outweigh the disadvantages [5]. Consequently, measures need to be taken to mitigate these drawbacks and address the challenges posed by renewable resources to harness their advantages fully. The increasing integration of renewable resources into power systems has brought advantages and disadvantages [1, 2]. Advantages include the cleanliness, cost-effectiveness (due to the absence of primary energy-related expenses), and inexhaustibility of these electrical energy resources [3]. On the downside, challenges such as heightened uncertainty in the generation sector [4], reduced reliability [5], and diminished network operation flexibility [6, 7] can be noted. Despite these drawbacks, energy policymakers worldwide have recognized that the The uncertainty and intermittency associated with renewable energy-based electrical generation, particularly wind-based units, pose significant obstacles for generation companies (GenCos). This, in turn, hampers the widespread adoption of these resources in power systems. A wind-based GenCo intending to participate in the day-ahead electricity market must accurately forecast the electrical energy generation from its wind-based units several hours in advance. The regulations governing different electricity markets around the world stipulate that any [This is an open access article under the terms of the Creative Commons Attribution-NonCommercial License, which permits use, distribution and reproduction in any medium, provided](http://creativecommons.org/licenses/by-nc/4.0/) the original work is properly cited and is not used for commercial purposes. © 2024 The Author(s). _IET Generation, Transmission & Distribution_ published by John Wiley & Sons Ltd on behalf of The Institution of Engineering and Technology. _IET G_ _T_ _Di t_ _ib_ 2024 18 3669 3695 il li lib /i d 3669 deviations in the energy supplied by GenCos to the power system, compared to the amount offered to the market, must be reconciled in the real-time market or intraday markets (if held). Furthermore, in certain electricity markets, fines are imposed for these deviations [8]. Consequently, GenCos are compelled to minimize such discrepancies. This paper concentrates on managing the generation uncertainty and intermittency of windbased generation units belonging to a GenCo in designing optimal offers to the markets. 1.2 Literature review To address the above-mentioned challenges in designing optimal offers to the markets, numerous studies have been conducted to equip GenCos with methods and approaches for managing the uncertainty and intermittency of wind-based electrical energy generation units. Ref. [9] presents an adaptive robust optimization-based model for the GenCo, owning a wind-based generation unit and compressed air energy storage to participate in the day-ahead electrical energy market. In [10], a portfolio composed of a traditional power plant, a wind-based generation unit, a storage system, and several flexible loads is modelled to participate in the electricity market. In the study, to deal with the uncertainty of wind-based unit, the adaptive robust model is used. To deal with the uncertainty of the electrical energy price in the day-ahead and real-time markets, a scenario-based model is used. Ref. [11], similar to [10], plans for a portfolio composed of a traditional power plant, a wind-based generation unit, a storage system, and several flexible loads to participate in the day-ahead and real-time markets as well as participate in the reserve market. Ref. [12] introduces a rolling day-ahead self-scheduling framework for a wind farm paired with a large-scale compressed air energy storage (CAES) system, aiming to optimize the self-scheduling horizon. It is found that selecting the optimal self-scheduling horizon enhances the profit of the combined system, with a more significant increment observed as the CAES’s energy storage capacity increases. Ref. [13] presents a robust optimization-based model for the participation of a GenCo owning a wind-based generation unit and an energy storage unit in the day-ahead electricity market. Ref. [14] presents a robust model for energy and reserve markets scheduling in the presence of traditional generation units, energy storage units, and wind-based generation units with uncertainty, by the system operator. In [15], similar to [10, 11], operational planning is done for a portfolio, including a wind-based generation unit, energy storage, and several loads that together form a virtual power plant. Refs. [16, 17] present a model for a windbased GenCo to participate in the electrical energy market as a price-maker player. Ref. [18] provides the GenCo owning a combination of a wind-based generation unit and a storage unit that is separately located in two separate buses with a strategy for participation in the day-ahead electricity market. Ref. [19] introduces an optimal model for the daily operation of a multienergy virtual power plant, integrating various energy sources such as electricity, heat, and natural gas, including small-scale distributed generators, renewable energy resources, and smart grid technologies. The virtual power plant scheduling model aims to maximize profit and minimize carbon dioxide emissions, utilizing the _ε_ -constraint method for problem-solving and selecting the best Pareto point with a fuzzy satisfying approach. In [20], an optimal bidding strategy for a virtual power plant operating within a medium-term time horizon is proposed, addressing DG uncertainties and failures and formulated as a risk-constrained two-stage stochastic problem. Utilizing neural networks and scenario generation methods, the virtual power plant effectively compensates for losses caused by DG uncertainties and failures through arbitrage opportunities in pool and futures markets. Ref. [21] presents a model for optimal offering in the day-ahead electricity market by a combination of a windbased generation unit and a hydro storage unit. The operational strategies of these two units are studied in different combinations. In [22], a model for combining a wind-based generation unit and a pumped-storage (PS) unit to participate in the dayahead and intra-hour electrical energy markets is presented. Ref. [23] presents a model for the operational planning of a GenCo, which includes a wind-based generation unit and a PS unit, along with a bilateral contract, to participate in the electricity market. Ref. [24] considers a PS unit to compensate for the deviations in the wind-based generation unit from the offered values in the day-ahead electricity market. Ref. [25] deals with the simulation of a GenCo, including a wind-based generation unit and a thermal power plant that has a bilateral contract with an electric vehicle battery replacement station and optimizes its decisionmaking process for participation in the electricity markets. In [26], an energy management system is introduced to facilitate the coordinated operation of direct air capture and power-to-gas (PtG) systems. The primary objective of this system is to maximize the efficient utilization of offshore wind production while concurrently minimizing carbon dioxide emissions. In [27], the focus is on conducting a performance analysis of PtG technology for decarbonization within European energy systems. The analysis takes into account the anticipated future carbon prices and specifically examines the methanation process within PtG. Another batch of literature focuses on managing renewable uncertainties and intermittencies from the system operators’ point of view which is reviewed as follows. Ref. [28] discusses a bi-level optimization strategy for decentralized coordination of multi-energy communities in competitive electricity and gas markets. It introduces a robust technique to address operational uncertainties and uses an adaptive alternating direction method of multipliers (ADMM) algorithm for settling the electricity and natural gas markets. It effectively coordinates multi-energy communities and utilizes renewable-based assets to reduce CO2 footprint and improve network profiles and market clearing prices. Ref. [29] presents an energy hub management model for residential, commercial, and industrial hubs, incorporating demand response programs (DRPs) and considering AC optimal power flow constraints. Coordinated operation reduces costs, power losses, and emissions, with DRPs mitigating operating costs. Ref. [30] presents a decentralized framework for managing electricity, heat, and hydrogen markets in multi-energy microgrids integrated with smart prosumers. It utilizes a deep learning-based forecaster, risk-averse decision theory, and a new demand response mechanism to reduce clearing prices and optimize market management. Ref. [31] presents a four-layer optimization model for distribution system operators to manage network congestion caused by the rise in distributed renewable generation and active prosumers. The model involves an iterative bidding process, decentralized coordination, and the use of an adaptive algorithm to efficiently handle congestion. Ref. [32] presents a three-stage hierarchical model to enhance the resilience of DC microgrids. It involves proactive actions, generation scheduling, and repair crew allocation to minimize energy not served. The simulation results show a decrease in energy not served and an increase in the resilience index by sharing information among microgrids. In [33] a review of demand response and integrated demand response programs for local energy systems is conducted. The impact of these programs on flexibility is thoroughly investigated across residential, commercial, and industrial hubs with renewable energy sources and storage systems. In [34] a two-stage optimization framework is introduced to manage competitive energy and ancillary service markets at the interface of the transmission system and distribution system, considering economic, technical, and security factors. Spinning reserve is supplied by conventional thermal units, while regulation capacity is provided by various sources. Simulation results show a 10% reduction in system costs and technical performance enhancement. This approach addresses challenges posed by renewable generators and electric vehicles in modern electricity grids. Ref. [35] introduces a new way to design the demand response program by using time-varying tariffs based on flexibility requirements. It models the coordination between transmission system operator and distribution system operator as a bi-level nonlinear programming (NLP) problem, then transforms it into a single-level LP problem to make it computationally manageable. A two-stage interval-based algorithm improves economic, technical, and security aspects. Ref. [36] introduces a three-layer risk-averse game theoretic-based strategy to coordinate smart buildings and electric vehicle fleets with microgrids scheduling. It includes a demand response program for smart buildings, decentralized scheduling for smart buildings and electric vehicle fleets, and day-ahead scheduling for microgrids and distribution system using a cooperative game theory. The strategy aims to improve voltage characteristics, reduce power losses, and lower total daily costs. Ref. [37] explores the cooperative planning of interconnected electricity and gas networks to achieve sustainable operation and meet the needs of all stakeholders. It proposes a risk-constrained multiobjective programming approach to optimize joint scheduling and considers uncertainties and flexible loads. 1.3 Research gaps In the literature surveyed, the common approach to address the uncertainty and intermittency of wind-based generation units for the wind-based GenCos involves utilizing the generationside equipment that is storage system, or a fossil fuel-based generation unit. To do this from the system operators’ point of view (which is out of the scope of this paper), in addition to generation-side equipment, the demand-side tool, that is demand response programs (active consumers equipped with energy hubs) is utilized too. However, certain crucial considerations associated with the use of storage system and fossil fuel-based generation unit for the wind-based GenCos are overlooked in the mentioned studies. One important factor is the limited energy storage capacity of a storage system, which plays a pivotal role in assessing its performance [12]. While a smaller capacity results in lower investment costs, it also constrains the GenCo’s ability to mitigate uncertainties and engage in profitable arbitrage. Conversely, a larger capacity can alleviate performance limitations but comes with a higher investment cost. Another crucial consideration pertains to the use of fossil fuel-based generation units, where the uncertainty in the available fuel quantity and its price has a substantial impact on the GenCo’s performance. These two considerations, addressing limited storage system capacity and accounting for uncertainties in fuel availability and pricing, are the issues that the model proposed in this paper aims to resolve. 1.4 Approach and contributions This paper presents a model for managing the uncertainties and intermittencies of a wind-based GenCo in the day-ahead operational planning to maximize the profit of the GenCo from participating in the market. The combination of a PtG unit and a gas turbine is used simultaneously to manage uncertainties and intermittencies: - PtG is a technology by which electrical energy is converted into chemical energy in hydrogen or methane using an electrolyser. The produced methane gas can be injected into the natural gas network or used in various activities such as chemical industries, transportation, and heating systems [38]. Therefore, PtG can be used to store excess energy produced by wind-based generation units in the form of chemical energy [38]. - Gas turbines have a high ability to start up quickly when needed. Therefore, the gas turbine can be used to compensate for the probable shortage in wind-based generation units. Figure 1 illustrates the proposed scheme to provide the GenCo with the advantages of the simultaneous utilization of the PtG unit and the gas turbine. The GenCo buys and/or sells electrical energy and natural gas in both the electrical energy and natural gas markets, according to its needs, at different hours. In case of deviation of the amount of (electrical or natural gas) energy delivered to the network at the time of operation with the amount declared at the time of running the market, the GenCo has responsibilities according to the market mechanism. Therefore, to maximize profits, the technical constraints of operation as well as requirements of the GenCo’s participation in the electricity and natural gas markets should be considered. FIGURE 1 The GenCo scheme. In the proposed model, the day-ahead and the real-time electricity markets are considered and are settled on an hourly basis. The natural gas market is held daily. The GenCo is assumed to be price-taker. In addition to wind-based generations, the sources of uncertainty that the GenCo faces are the price of electricity in day-ahead and real-time markets, the price of natural gas, and the availability of natural gas. Generally, each pipeline is shared among different customers. This paper, assumes that another natural gas customer with a consumption pattern similar to a residential area uses the pipeline capacity jointly with the GenCo. It should be noted that according to the regulations enforced in most countries, residential customers have a higher priority in supplying natural gas compared to other customers [8]. This will cause the share of natural gas pipeline capacity allocated to the GenCo to be affected by the natural gas consumption pattern of the residential customers which should be taken into consideration when modelling a decision-making framework for the GenCo. Robust modelling is employed to deal with uncertainties. The GenCo’s short-term operational self-scheduling for optimal participation in the electricity and natural gas markets is formulated as a tri-level adaptive robust optimization problem. The first level focuses on determining the GenCo’s decisions for participating in the day-ahead electricity and gas markets. The objective is to optimize market participation strategies. In the second level, the worst-case realization of uncertainties is identified. Constraints such as the uncertainty budget and limited variation ranges of uncertain variables are considered. The goal is to robustly address uncertainties in the decision-making process. The third level is dedicated to determining the GenCo’s operational strategy. This involves making decisions related to the PtG unit and the gas turbine, as well as decisions regarding participation in the real-time electricity market. The decisions at this level are made while considering constraints such as electrical energy and natural gas balance, along with operational constraints for the wind farm, gas turbine, and PtG unit. To solve the proposed tri-level problem, firstly, the secondand third-level problems are considered as temporary bi-level TABLE 1 Summary of the literature review. Electricity market Electricity price uncertainty Natural gas system Uncertainty managing technologies Dayahead Realtime Dayahead Realtime Market Price uncertainty Availability uncertainty Electricity storage Gas turbine PtG Ref. Wind uncertainty [9] ✓ ✓ ✓ ✓ [10] ✓ ✓ ✓ ✓ ✓ ✓ [11] ✓ ✓ ✓ ✓ ✓ ✓ [12] ✓ ✓ ✓ ✓ [13] ✓ ✓ ✓ ✓ [14] ✓ ✓ ✓ [15] ✓ ✓ ✓ ✓ ✓ ✓ [16] ✓ ✓ ✓ ✓ [17] ✓ ✓ ✓ ✓ [18] ✓ ✓ ✓ ✓ [19] ✓ ✓ [20] ✓ ✓ [21] ✓ ✓ ✓ ✓ [22] ✓ ✓ ✓ ✓ ✓ ✓ [23] ✓ ✓ ✓ ✓ [24] ✓ ✓ ✓ ✓ ✓ [25] ✓ ✓ ✓ ✓ [26] ✓ ✓ ✓ [27] ✓ This paper ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ problem that can be recast as a single-level optimization problem using the duality theory [39]. Therefore, the original tri-level problem is transformed into a bi-level problem. This bilevel problem can be solved using the column and constraint generation (C&CG) method [39]. The effectiveness of the proposed model is systematically assessed across various operational conditions. The model offers the flexibility to explore and evaluate the impact of diverse parameters on the profit of the GenCo acting as the owner of the wind farm, PtG unit, and gas turbine. Detailed investigations and evaluations of these parameters are thoroughly presented in the numerical results section. The proposed operation and offering scheme for a windbased GenCo bridges the research gaps mentioned in Sections 1.1–1.3 by coordinated operation and offering of windbased generation units, PtG unit and gas turbine. The proposed scheme enables the GenCo to access the natural gas network concurrently through the PtG unit and the gas turbine. This approach effectively transforms the natural gas network into an expansive storage resource without the performance limitations associated with conventional storage systems’ limited energy storage capacity. Moreover, the proposed model takes into account uncertainties related to wind generation, and natural gas access and its price for fuelling the gas turbine. This aspect addresses a critical consideration often omitted in existing stud ies in which gas turbine is utilized for managing uncertainties and intermittencies of wind-based generation units. In Table 1, a comparison is made between the approach proposed in this paper and those proposed in the articles that study managing the uncertainties and intermittencies of wind-based GenCos, reviewed in Sections 1.1–1.2. Therefore, the novelties of the proposed model, in comparison with existing studies, can be summarized as follows: - Integrated use of PtG unit and gas turbine for enhanced storage and flexibility: The proposed model uniquely enables a wind-based GenCo to leverage both a PtG unit and a gas turbine. This dual approach transforms the natural gas network into an extensive storage system, effectively addressing the limitations of conventional energy storage solutions. This capability allows the GenCo to manage wind generation variability and intermittency more efficiently, providing a nearly unlimited storage resource. - Comprehensive handling of market and resource uncertainties: The model incorporates critical uncertainties related to natural gas access, price, and pipeline capacity—factors often overlooked in existing studies in which wind-based generation and electricity market price are usually considered as uncertain parameters. By considering these uncertainties, the model offers a more realistic and robust representation of the operational challenges faced by GenCos. The adaptive robust optimization approach ensures that the GenCo can make effective scheduling decisions under varying and unpredictable market conditions, thereby enhancing operational reliability and economic performance. - Arbitrage opportunities and market participation: Through simultaneous participation in electricity and natural gas markets, the model provides the GenCo with significant arbitrage opportunities. This strategic advantage allows the GenCo to maximize profits by capitalizing on price differences between markets and across different times. This novel capability not only helps in mitigating the impact of wind generation intermittency but also substantially improves the GenCo’s profitability compared to traditional models. 1.5 Paper organization The structure of the paper is as follows. First, the GenCo’s selfscheduling model is expressed as a deterministic model. Then, the considered uncertainties and their modelling procedure are introduced. Next, the robust counterpart of the deterministic self-scheduling model and its solution methodology is introduced. Then, after presenting the data, the numerical results are provided. Finally, the concluding remarks and some suggestions for future works are presented. 2 OPTIMIZATION MODEL In this section, first, the deterministic model of the GenCo’s self-scheduling is presented. Then, the deterministic model is developed into an adaptive robust model. 2.1 Deterministic model The deterministic model of the GenCo’s self-scheduling to participate in electricity and natural gas markets is expressed as follows: The objective function of the GenCo by which its profit is maximized is defined in (1). The first term models the revenue of the GenCo in the day-ahead electricity market. The second term presents the revenue of selling excess wind farm generation (compared to the nominal/forecasted output) to the real-time electricity market. The third term presents the cost of buying the shortage of wind farm generation (compared to the nominal/forecasted output) from the real-time electricity market. In the real-time market, the amount of electric energy sold by the GenCo is expressed by _p_ <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> . The price of electrical energy sold in the real-time market is calculated by multiplying a factor less than one by the electric energy price of the day-ahead market (i.e. _K_ <sup>−</sup> ≤ 1) based on the model introduced in [40, 41]. The GenCo’s purchase amount from the real-time market is 0 ≤ _p_ <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> ≤ _p_ <sup>_GT_</sup> <sup>,max</sup> ∀ _t_ ∈ _�T_ (4) _p_ <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> ∀ _t_ ∈Ω _T_ (5) <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> = ? × _p_ <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> ∀ _t_ ∈Ω _T_ (6) ) 0 ≤ _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ≤̄ _p_ <sup>_W_</sup> _t_ ⋅ 0 ≤ _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ≤̄ _p_ <sup>_W_</sup> _t_ ( 1 − _Ut_ <sup>+</sup> ( _t_ <sup>+</sup> ∀ _t_ ∈ _�T_ (7) <sup>_W_</sup> _t_ ⋅ _Ut_ <sup>+</sup> _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> ≤ _p_ <sup>_W_</sup> <sup>,max</sup> ⋅ _Ut_ <sup>+</sup> _p_ <sup>_W_</sup> _t_ _t_ <sup>+</sup> ≤ _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _p_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _t_ _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> + <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> = <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> ∀ _t_ ∈Ω _T_ (8) _p_ <sup>_RT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> _t_ <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ≥ 0, <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> ≥ 0 ∀ _t_ ∈Ω _T_ (9) <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> = − <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> - _pt_ <sup>_RT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> <sup>_W_</sup> _t_ . <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> ∀ _t_ ∈Ω _T_ (10) ) - <sup>_pGT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> _t_ <sup>_RT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> - <sup>_pW_</sup> _t_ ( _Ut_ <sup>+</sup> _t_ - <sup>_pGT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>_pGT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> = − <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ) _p_ <sup>_RT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _t_ <sup>_W_</sup> _t_ . <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ∀ _t_ ∈Ω _T_ (11) <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> - <sup>_pW_</sup> _t_ ( 1 − _Ut_ <sup>+</sup> _P_ <sup>_PIP_</sup> ≥̄ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>_ng_</sup> _t_ ∀ _t_ ∈ _�T_ (12) ̄ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> + _p_ <sup>_ng_</sup> _t_ ∑ _t_ _p_ <sup>_ng_</sup> _t_ <sup>≤</sup> <sup>_png_</sup> ∀ _t_ ∈Ω _T_ (13) _p_ <sup>_GT_</sup> <sup>,</sup> <sup>_ng_</sup> _t_ <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> - <sup>_pPtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> <sup>_pPtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> = <sup>_png_</sup> _t_ <sup>_ng_</sup> _t_ ∀ _t_ ∈Ω _T_ (14) ( ( _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ⎫ ⎪ ⎪ ⎬ ⎪ ⎪⎭ _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> ( _t_ ) _t_ ) _t_ ) _K_ <sup>−</sup> ×̄ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> _K_ <sup>+</sup> ×̄? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ∑ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ( + ? × _p_ <sup>_PtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> <sup>_PtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> × ? <sup>_C_</sup> <sup>)</sup> (1) _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> Max ⎧ ⎪ ⎪ ⎨ ⎪ ⎪⎩ ⎧ ⎫ ∑ ⎪ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> + _K_ <sup>−</sup> ×̄ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> - _K_ <sup>+</sup> ×̄? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ⎪ ⎨ ( ⎬ _t_ - ? × _p_ <sup>_PtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> × ? <sup>_C_</sup> <sup>)</sup> ⎪⎩ ⎪⎭ ( - ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> × _p_ <sup>_ng_</sup> <sup>)</sup> _t_ ⎧ ⎪ ⎨ ⎪⎩ ( ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> × _p_ <sup>_ng_</sup> <sup>)</sup> s.t., 0 ≤ _p_ <sup>_PtG_</sup> _t_ <sup>,</sup> <sup>_e_</sup> ≤ _p_ <sup>_PtG_</sup> <sup>,max</sup> ∀ _t_ ∈ _�T_ (2) ? × _p_ <sup>_PtG_</sup> _t_ <sup>,</sup> <sup>_e_</sup> = _p_ <sup>_PtG_</sup> <sup>,</sup> <sup>_ng_</sup> ∀ _t_ ∈Ω _T_ (3) presented by _p_ <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> . The price of electric energy purchased from the real-time market is calculated by multiplying a factor greater than one by the electric energy price of the day-ahead market (i.e. _K_ <sup>+</sup> ≥ 1). The fourth term in (1) is related to the cost of carbon consumed by the PtG unit in the methanation process. The fifth term models the cost of participation (selling/buying) in the daily natural gas market. Constraint (2) presents the feasible PtG unit operation range for methanation. Constraint (3) expresses the ratio and efficiency of converting electricity to methane gas by the PtG unit. The constraints (2) and (3) state the PtG unit consumes electrical energy ( <sup>_pPtG_</sup> _t_ <sup>,</sup> <sup>_e_</sup> in MWh) to produce methane gas energy ( <sup>_pPtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> in MWh). Constraint (4) shows the feasible gas turbine operation range. In (5), the natural gas-to-electricity conversion by the gas turbine is stated. Constraints (6) and (7) determine the amount of shortage and excess of the amount offered in the day-ahead market compared to the nominal output of the wind farm, respectively. Using binary auxiliary variable _Ut_ <sup>+</sup> guaran tees that only one of two auxiliary variables <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> and <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> takes value. Constraint (8) shows that the amount offered in the day-ahead electricity market should be equal to one of the two auxiliary variables <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> and <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> (it should be noted that the two auxiliary variables <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> and <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> help determine the amount that should be offered in the day-ahead electricity market, whereas, <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> and <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> determine the amounts gen erated by the wind farm in real-time). In (9), the non-negativity of the two variables <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> and <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> is enforced. Constraints (10) and (11) enforce the electrical energy balance in case of excess and shortage of wind farm generation (compared to the nominal/forecasted output), respectively. Constraint (12) shows the pipeline capacity sharing between the GenCo and the residential customers. It states that the summation of hourly natural gas consumption of the GenCo (as a decision variable) and of the city residential consumers ( _P_ ̄ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> as a known parameter) are capped by the shared pipeline capacity ( _P_ <sup>_PIP_</sup> ). Constraint (13) enforces that the sum of the hourly exchanges between the GenCo and the pipeline must be less than the amount purchased from the daily natural gas market. Constraint (14) enforces the hourly balance of natural gas exchanges by the GenCo. In this regard, the hourly difference between the natural gas consumption by gas turbine and natural gas production by PtG unit is balanced by the amount of natural gas exchanged with the pipeline. We consider that the gas turbines and PtG units are fast enough such that there is no need to consider the inter-hour constraints of production change. 2.2 Non-deterministic (adaptive robust) model In this section, we first model the uncertainties considered in the model, and then we express the robust problem and its solution method. 2.2.1 Uncertainties model In the proposed model, the uncertainties are related to the wind farm generation, electricity and natural gas prices, and the amount of gas consumption by the residential customers that share the gas pipeline with the GenCo. Modelling these 2.2.2 Adaptive robust model The adaptive robust model for self-scheduling is presented as a tri-level optimization model. The first level is to maximize profit by participating in the day-ahead electricity and natural gas markets and determine the auxiliary binary variables. The second level is related to determining the worst-case realization of variables with uncertainties. The third level is related to profit maximization by participating in the real-time electricity market by determining the variables related to the operation of equipment and the GenCo’s participation in the market. The described model can be expressed as follows which is the adaptive robust counterpart of the deterministic model (1)–(14): uncertainties through bounded intervals within a polyhedral uncertainty set is as follows: ̄ <sup>_W_</sup> _t_ +̂ _Pt_ _P_ <sup>_W_</sup> _t_ −̂ _Pt_ _P_ <sup>_W_</sup> _t_ _Wt_ ≤ <sup>_pW_</sup> _t_ <sup>_W_</sup> _t_ ≤̄ _P_ <sup>_W_</sup> _t_ _W_ _t_ ∀ _t_ ∈Ω _T_ (15) _DA_, _e_ _t_ ∀ _t_ ∈Ω _T_ (16) _DA_, _e_ _t_ ≤ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ≤̄ ? _t_ _tDA_, _e_ ≤ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> _DA_, _e_ _t_ +̂ ? _t_ ? _DA_, _e_ _t_ −̂ ? ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> −̂ ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> ≤ ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> ≤̄ ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> +̂ ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> (17) _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> −̂ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ̂ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ≤ _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> ≤̄ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ̄ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> +̂ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ̂ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ∀ _t_ ∈ _�T_ _t_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> and <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ∑ _t_ _<u>t</u>_ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> + [||||| ? _<u>t</u>_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> _<u>t</u>_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> −̄ ? _<u>t</u>_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−̄</sup> <sup>_P_</sup> _<u>t</u>_ _Pt_ <sup>_W_</sup> ||||| ||||| _t_ ||||| _p_ <sup>_w_</sup> _<u>t</u>_ <sup>̄</sup> _p_ <sup>_w_</sup> _<u>t</u>_ <sup>−̄</sup> <sup>_P_</sup> _<u>t</u>_ <sup>_W_</sup> <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> and <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> + ̄ _<u>t</u>_ ] |||||| + (18) ≤ Γ (19) ||||| <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> and <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> |||||| _p_ <sup>CITY</sup> _<u>t</u>_ <sup>,</sup> <sup>_ng_</sup> <sup>CITY</sup> _<u>t</u>_ <sup>,</sup> <sup>_ng_</sup> −̄ _Pt_ <sup>CITY,</sup> <sup>_ng_</sup> _Pt_ <sup>CITY,</sup> <sup>_ng_</sup> ||||| <u>?</u> <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <u>−̄ ?</u> <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> and <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> and <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> Constraint (15) shows the variation range of the nondeterministic wind farm generation _p_ <sup>_W_</sup> _t_ around the nominal _W_ (forecasted) valuē _Pt_ <sup>_W_</sup> which is controlled bŷ _Pt_ <sup>.</sup> <sup>Constraints</sup> (16)–(18) similarly represent the variation range of the nondeterministic day-ahead electricity price, daily natural gas market price, and the hourly natural gas consumption by residential customers. Constraint (19) models the budget of uncertainty by which the deviation of non-deterministic variables _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup>, (forecasted) valuē _Pt_ <sup>_W_</sup> ̄ _t_ <sup>_W_</sup> which is controlled bŷ _P_ <sup>_W_</sup> _t_ around the nominal by which the deviation of non-deterministic variables _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup>, _p_ <sup>_W_</sup> _t_ <sup>, ?</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup>, and ? _DA_, _ng_ from their nominal values are controlled by the budget parameter Γ,. Since in (19) the terms are normalized and take a value in range {0,1}, the maximum value that can be considered for Γ, is equal to the number of nondeterministic variables of the problem. According to (19), by determining the value of Γ, the size of the polyhedral decision space of the non-deterministic variables can be controlled. When Γ, is equal to zero, the uncertain variables cannot deviate from their nominal value (in other words, the polyhedral decision space is composed of only one point), which leads to a deterministic self-scheduling problem. For Γ, greater than zero, a robust version is created. By choosing the greater ranges of variation as well as the larger uncertainty budget, a more robust self-scheduling problem is obtained. <sup>_W_</sup> _t_ <sup>, ?</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ( _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> ( _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ⎫ ⎪ ⎪ ⎬ ⎪ ⎪⎭ _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> ( _t_ ) <sup>_PtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> × ? <sup>_c_</sup> <sup>)</sup> _t_ ) _t_ ) _K_ <sup>−</sup> × ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> _K_ <sup>+</sup> × ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ∑ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ( + _Max_ Θ <sup>_L_</sup> <sup>1</sup> _Max_ Θ <sup>_L_</sup> <sup>1</sup> <sup>_Min_</sup> Θ <sup>_L_</sup> <sup>2</sup> <sup>_Min_</sup> Θ <sup>_L_</sup> <sup>2</sup> <sup>_Max_</sup> Θ <sup>_L_</sup> <sup>3</sup> Θ <sup>_L_</sup> <sup>3</sup> ⎧ ⎫ ∑ ⎪ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> + _K_ <sup>−</sup> × ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> - _K_ <sup>+</sup> × ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ⎪ ⎨ ( ⎬ _t_ - ? × <sup>_pPtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> × ? <sup>_c_</sup> <sup>)</sup> ⎪⎩ ⎪⎭ ( - ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> × <sup>_png_</sup> <sup>)</sup> ( ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> × <sup>_png_</sup> <sup>)</sup> ? × <sup>_pPtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> ⎧ ⎪ ⎨ ⎪⎩ ⎧ ⎪ ⎪ ⎨ ⎪ ⎪⎩ _t_ _DA_, _e_ ? _t_ s.t. _Pt_ + ||||| + _DA_, _e_ _<u>t</u>_ |||||| |||||| <sup>̄</sup> _<u>t</u>_ [|||||| <u>?</u> _<u>t</u>_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> −̄ ? _<u>t</u>_ <u>?</u> _<u>t</u>_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> |||||| _p_ <sup>_w_</sup> _<u>t</u>_ <sup>̄</sup> <sup>_w_</sup> _<u>t</u>_ <sup>−̄</sup> <sup>_<u>PW</u>_</sup> _<u>t</u>_ _W_ _t_ ∀ _t_ ∈Ω _T_ (21) ∑ _t_ ) 0 ≤ <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ≤̄ _p_ <sup>_W_</sup> _t_ ⋅ 0 ≤ <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ≤̄ _p_ <sup>_W_</sup> _t_ ( 1 − _Ut_ <sup>+</sup> + |||||| _p_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> _<u>t</u>_ <sup>_CITY_</sup> _<u>t</u>_ <sup>,</sup> <sup>_ng_</sup> −̄ _P_ <sup>_CITY_</sup> _<u>t</u>_ <sup>,</sup> <sup>_ng_</sup> ||||| ] |||||| ] ̄ _<u>t</u>_ ||||| (20) ≤ <sup>?</sup>, (38) <u>?</u> <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <u>−̄ ?</u> _DA_, _ng_ _DA_, _ng_ ? _t_ <sup>+</sup> ∀ _t_ ∈ _�T_ (22) <sup>_W_</sup> _t_ ⋅ _Ut_ <sup>+</sup> _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> ≤ _p_ <sup>_W_</sup> <sup>,max</sup> ⋅ _Ut_ <sup>+</sup> _p_ <sup>_W_</sup> _t_ _t_ <sup>+</sup> ≤ _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _CITY_, _ng_ _Pt_ _p_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _t_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> + <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> = <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> ∀ _t_ ∈Ω _T_ (23) The variables related to the GenCo in the day-ahead electricity and natural gas markets and auxiliary binary variables determined in the first level of the model are presented by Θ <sup>_L_</sup> <sup>1</sup> = { <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup>, <sup>_pDA_</sup> <sup>,</sup> <sup>_ng_</sup>, <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup>, <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup>, _Ut_ <sup>+}.</sup> _p_ <sup>_RT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> _p_ <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ≥ 0, <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> ≥ 0 ∀ _t_ ∈Ω _T_ (24) <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup>, <sup>_pDA_</sup> <sup>,</sup> <sup>_ng_</sup>, <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup>, <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup>, _Ut_ <sup>+</sup> - <sup>_pGT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> = − <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> - _pt_ <sup>_RT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> <sup>_W_</sup> _t_ . <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> ∀ _t_ ∈Ω _T_ (25) ) _t_ <sup>_RT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> - <sup>_pW_</sup> _t_ ( _Ut_ <sup>+</sup> _t_ ) + _p_ <sup>_PtG_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>_PtG_</sup> _t_ <sup>,</sup> <sup>_e_</sup> = − _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> _p_ <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _t_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ∀ _t_ ∈ _�T_ (26) <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> - _p_ <sup>_W_</sup> _t_ ( 1 − _Ut_ <sup>+</sup> ( Θ <sup>_L_</sup> <sup>1</sup> = { <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup>, <sup>_pDA_</sup> <sup>,</sup> <sup>_ng_</sup>, <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup>, <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup>, _Ut_ <sup>+}.</sup> The set of constraints presented in (34) to (38) is related to the second level of the model, which determines the uncertain variables, Θ <sup>_L_</sup> <sup>2</sup> = { <sup>_pW_</sup> _t_ <sup>, ?</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup>, ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup>, <sup>_pCITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> }. These constraints variables, Θ <sup>_L_</sup> <sup>2</sup> = { <sup>_pW_</sup> _t_ <sup>, ?</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup>, ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup>, <sup>_pCITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> }. These constraints are similar to (15)–(19). The set of constraints (21)–(33) are related to the third level of the model, which determines the set of variables related to the GenCo’s participation in the real-time market as well as the operational variables Θ <sup>_L_</sup> <sup>3</sup> = { <sup>_pPtG_</sup> _t_ <sup>,</sup> <sup>_e_</sup>, <sup>_pPtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup>, <sup>_pGT_</sup> _t_ <sup>,</sup> <sup>_e_</sup>, <sup>_W_</sup> _t_ <sup>, ?</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup>, ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup>, <sup>_pCITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> 0 ≤ _p_ <sup>_PtG_</sup> _t_ <sup>,</sup> <sup>_e_</sup> ≤ _p_ <sup>_PtG_</sup> <sup>,max</sup> ∀ _t_ ∈ _�T_ (27) ? × <sup>_pPtG_</sup> _t_ <sup>,</sup> <sup>_e_</sup> = <sup>_pPtG_</sup> <sup>,</sup> <sup>_ng_</sup> ∀ _t_ ∈Ω _T_ (28) 0 ≤ _p_ <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> ≤ _p_ <sup>_GT_</sup> <sup>,max</sup> ∀ _t_ ∈ _�T_ (29) as well as the operational variables Θ <sup>_L_</sup> <sup>3</sup> = { <sup>_pPtG_</sup> _t_ <sup>,</sup> <sup>_e_</sup>, <sup>_pPtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup>, <sup>_pGT_</sup> _t_ <sup>,</sup> <sup>_e_</sup>, _p_ <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_ng_</sup>, <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup>, <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup>, <sup>_png_</sup> _t_ <sup>}.</sup> <sup>These</sup> <sup>constraints</sup> <sup>are</sup> <sup>similar</sup> <sup>to</sup> <sup>the</sup> constraints presented in (2)–(14). <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_ng_</sup>, <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup>, <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> <sup>_RT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup>, <sup>_png_</sup> _t_ <sup>}</sup> <sup>_PtG_</sup> _t_ <sup>,</sup> <sup>_e_</sup>, <sup>_pPtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> <sup>_PtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup>, <sup>_pGT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> _p_ <sup>_GT_</sup> <sup>,</sup> <sup>_ng_</sup> _t_ <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> ∀ _t_ ∈Ω _T_ (30) <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> = ? × <sup>_pGT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> _P_ <sup>_PIP_</sup> ≥̄ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>_ng_</sup> _t_ ∀ _t_ ∈ _�T_ (31) ̄ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> + _p_ <sup>_ng_</sup> _t_ ∑ _t_ _p_ <sup>_ng_</sup> _t_ <sup>≤</sup> <sup>_png_</sup> (32) _p_ <sup>_GT_</sup> <sup>,</sup> <sup>_ng_</sup> _t_ <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> - <sup>_pPtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> <sup>_PtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> = <sup>_png_</sup> _t_ <sup>_ng_</sup> _t_ ∀ _t_ ∈Ω _T_ (33) s.t. ̄ <sup>_W_</sup> _t_ +̂ _Pt_ _P_ <sup>_W_</sup> _t_ −̂ _Pt_ _P_ <sup>_W_</sup> _t_ _Wt_ ≤ <sup>_pW_</sup> _t_ <sup>_W_</sup> _t_ ≤̄ _P_ <sup>_W_</sup> _t_ _W_ _t_ ∀ _t_ ∈Ω _T_ (34) _DA_, _e_ _t_ +̂ ? _t_ _DA_, _e_ _t_ ∀ _t_ ∈Ω _T_ (35) ? _DA_, _e_ _t_ −̂ ? _t_ _DA_, _e_ _t_ ≤ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ≤̄ ? _tDA_, _e_ ≤ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> _DA_, _ng_ +̂ ? _DA_, _ng_ (36) 3 SOLUTION METHODOLOGY The model in (20)–(38) is a tri-level optimization model that cannot be easily solved. To solve this problem, we first convert the tri-level problem into a bi-level problem consisting of an upper-level problem and a lower-level problem. The lowerlevel problem consists of the second and third levels of the original model, which is converted into a single-level problem using duality theory. This bi-level model can be solved using the C&CG method [39, 42]. The general algorithm of C&CG is presented in the appendix [42]. To implement the presented C&CG algorithm, the following, upper-level and lower-level problems are presented. 3.1 The upper-level problem The upper-level problem, which includes the primary Benders cuts of the lower-level problem, is presented as (39)–(55). ? _DA_, _ng_ −̂ ? _DA_, _ng_ ≤ ? _DA_, _ng_ ≤̄ ? _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> −̂ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ̂ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ≤ _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> ≤̄ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ̄ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> +̂ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ̂ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ∀ _t_ ∈ _�T_ ? (39) (37) _Max_ Θ <sup>_L_</sup> <sup>1</sup>,Θ <sup>_L_</sup> _j_ <sup>3</sup> s.t. ? ≤ ∑ _t_ ⎧ ⎪ ⎨ ⎪⎩ _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>,</sup> <sup>_j_</sup> × _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> ( ⎫ ⎪ ⎬ ⎪⎭ ( _t_ <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup> _t_, _j_ × ? <sup>_c_</sup> <sup>)</sup> _t_, _j_ ) ) _K_ <sup>−</sup> × ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>,</sup> <sup>_j_</sup> ) ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>,</sup> <sup>_j_</sup> + ( _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>,</sup> <sup>_j_</sup> × _p_ <sup>_RT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ( _t_ _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>,</sup> <sup>_j_</sup> × _p_ <sup>_RT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _t_, _j_ _K_ <sup>+</sup> × ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>,</sup> <sup>_j_</sup> ? × _p_ <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup> (? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> × _p_ <sup>_ng_</sup> <sup>)</sup> _j_ ∈ _�J_ (40) Upon resolving the upper-level problem in each iteration, the binary and continuous variables of the upper-level problem are established and treated as fixed in the lower-level problem solution. Additionally, post-solving the upper-level problem in each iteration reveals a new upper bound for the original problem objective function. 3.2 The lower-level problem The lower-level problem, which itself is a bi-level problem, is as follows: ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> × _p_ <sup>_ng_</sup> <sup>)</sup> - <sup>_pPtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> ≤ 0 ∀ _t_ ∈Ω _T_, _j_ ∈Ω _J_ (41) _p_ <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> ≤ _P_ <sup>_PtG_</sup> <sup>,max</sup> ∀ _t_ ∈ _�T_, _j_ ∈ _�J_ (42) ( ⎫ ⎪ ⎪ ⎪ ⎬ ⎪ ⎪ ⎪⎭ _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>,</sup> <sup>_j_</sup> ( ) _t_ _t_, _j_ ) <sup>_pPtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> - <sup>_pPtG_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup> ? × <sup>_pPtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup> = 0 ∀ _t_ ∈Ω _T_, _j_ ∈Ω _J_ (43) _K_ <sup>−</sup> × ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ∑ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ) ⎫ ⎪ ⎪ ⎬ ⎪ ⎪⎭ + _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_RT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> ( _t_, _j_ ) _K_ <sup>+</sup> × ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ? × _p_ <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup> _p_ <sup>_GT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> ≥ 0 ∀ _t_ ∈Ω _T_, _j_ ∈Ω _J_ (44) _Min�_ <sup>_L_</sup> <sup>2</sup> <sup>_Max_</sup> _�_ <sup>_L_</sup> <sup>3</sup> _Min�_ <sup>_L_</sup> <sup>2</sup> ⎧ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪⎩ _t_ <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup> × ? <sup>_c_</sup> <sup>)</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_RT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ⎧ ⎪ ⎪ ⎨ ⎪ ⎪⎩ ( ? × <sup>_pGT_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup> <sup>_GT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> = 0 ∀ _t_ ∈Ω _T_, _j_ ∈Ω _J_ (45) <sup>_GT_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup> - <sup>_pGT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> ( ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> × _p_ <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> <sup>)</sup> _p_ <sup>_GT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> ≤ _P_ <sup>_GT_</sup> <sup>,max</sup> ∀ _t_ ∈ _�T_, _j_ ∈ _�J_ (46) (56) - <sup>_pRT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> _t_, _j_ <sup>_RT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ≤ 0, − <sup>_pRT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> <sup>_RT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> ≤ 0 ∀ _t_ ∈Ω _T_, _j_ ∈Ω _J_ (47) s.t. <sup>_GT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> = − _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> ) <sup>_RT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> - _p_ <sup>_W_</sup> _t_ <sup>,</sup> <sup>_j_</sup> . ( - _p_ <sup>_RT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> <sup>_W_</sup> _t_ <sup>,</sup> <sup>_j_</sup> . <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> ∀ _t_ ∈ _�T_, _j_ ∈ _�J_ (48) - _p_ <sup>_GT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> _t_ <sup>_PtG_</sup>, _j_ <sup>,min</sup> ≥ 0 ∀ _t_ ∈ _�T_ (57) _Ut_ <sup>+</sup> _t_ _p_ <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> _p_ <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> ≥ 0 ∶? _t_ <sup>_PtG_</sup>, _j_ <sup>,min</sup> _t_ <sup>_PtG_</sup>, _j_ <sup>,max</sup> ≥ 0 ∀ _t_ ∈ _�T_ (58) ) + <sup>_pPtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> = − <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> _p_ <sup>_RT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> - <sup>_pW_</sup> _t_ <sup>,</sup> <sup>_j_</sup> _p_ <sup>_RT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _t_ ( _t_ - _p_ <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> _p_ <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> ≥ - _P_ <sup>_PtG_</sup> <sup>,max</sup> ∶? _t_ <sup>_PtG_</sup>, _j_ <sup>,max</sup> ( 1 − _Ut_ <sup>+</sup> <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup> = 0 ∶ <sup>?</sup> _t_ <sup>_PtG_</sup>, _j_ _t_ <sup>_PtG_</sup>, _j_ <sup>∈</sup> <sup>_R_</sup> ∀ _t_ ∈Ω _T_ (59) ∀ _t_ ∈Ω _T_, _j_ ∈Ω _J_ (49) ? × <sup>_pPtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>_pPtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> - <sup>_pPtG_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup> _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> <sup>,min</sup> ≥ 0 ∀ _t_ ∈Ω _T_ (60) _p_ <sup>_ng_</sup> _t_, _j_ <sup>+</sup> <sup>_pCITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> _p_ <sup>_ng_</sup> _t_, _j_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> ≤ _P_ <sup>_PIP_</sup> ∀ _t_ ∈ _�T_, _j_ ∈ _�J_ (50) _p_ <sup>_GT_</sup> <sup>,</sup> <sup>_e_</sup> _p_ <sup>_GT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> ≥ 0 ∶? _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> <sup>,min</sup> ∑ _t_ <sup>_GT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> = 0 ∶? _t_ <sup>_GT_</sup>, _j_ _p_ <sup>_ng_</sup> _t_, _j_ <sup>−</sup> <sup>_png_</sup> <sup>≤</sup> <sup>0</sup> ∀ _t_ ∈Ω _T_, _j_ ∈Ω _J_ (51) <sup>_ng_</sup> _t_, _j_ <sup>−</sup> <sup>_png_</sup> <sup>≤</sup> <sup>0</sup> ∀ _t_ ∈Ω _T_, _j_ ∈Ω _J_ (51) ? × <sup>_pGT_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup> <sup>_GT_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup> - <sup>_pGT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> _t_ <sup>_GT_</sup>, _j_ <sup>∈</sup> <sup>_R_</sup> ∀ _t_ ∈Ω _T_ (61) _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> ≥ 0 ∀ _t_ ∈Ω _T_ (62) _p_ <sup>_GT_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>_GT_</sup> <sup>,</sup> <sup>_ng_</sup> - <sup>_pPtG_</sup> <sup>,</sup> <sup>_ng_</sup> _t_, _j_ _t_, _j_ <sup>_PtG_</sup> <sup>,</sup> <sup>_ng_</sup> - <sup>_png_</sup> _t_, _j_ _t_, <sup>_ng_</sup> _t_, _j_ <sup>= 0</sup> ∀ _t_ ∈Ω _T_, _j_ ∈Ω _J_ (52) - <sup>_pGT_</sup> <sup>,</sup> <sup>_e_</sup> _t_, _j_ <sup>_GT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> ≥ - _P_ <sup>_GT_</sup> <sup>,max</sup> ∶? _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> ∀ _t_ ∈Ω _T_, _j_ ∈Ω _J_ (53) ) <sup>_RT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> ≥ 0 ∶? _t_ <sup>min</sup>, _j_ <sup>−</sup> _t_ <sup>min</sup>, _j_ <sup>−</sup> ≥ 0, ? _t_ <sup>min</sup>, _j_ <sup>+</sup> _t_ <sup>min</sup>, _j_ <sup>+</sup> ≥ 0 ∀ _t_ ∈Ω _T_ 0 ≤ <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ≤ <sup>_pW_</sup> _t_ <sup>,</sup> <sup>_j_</sup> ⋅ 0 ≤ <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ≤ <sup>_pW_</sup> _t_ <sup>,</sup> <sup>_j_</sup> ( 1 − _Ut_ <sup>+</sup> (63) _p_ <sup>_RT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> <sup>_RT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ≥ 0, <sup>_pRT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _p_ <sup>_W_</sup> _t_ <sup>,</sup> <sup>_j_</sup> _t_ <sup>+</sup> ≤ _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _t_ <sup>+</sup> ∀ _t_ ∈ _�T_, _j_ ∈ _�J_ (54) <sup>_W_</sup> _t_ <sup>,</sup> <sup>_j_</sup> ⋅ _Ut_ <sup>+</sup> <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> ≤ _p_ <sup>_W_</sup> <sup>,max</sup> ⋅ _Ut_ <sup>+</sup> _p_ <sup>_RT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> _p_ <sup>_RT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> + <sup>_pGT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> ∶? _t_ <sup>max</sup>, _j_ <sup>−</sup> ∈ _R_ <sup>_GT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> = <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> - <sup>_pW_</sup> _t_ <sup>_W_</sup> _t_ . ) ( _Ut_ <sup>+</sup> _t_ _p_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _t_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> + <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> = <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> ∀ _t_ ∈Ω _T_, _j_ ∈Ω _J_ (55) ∀ _t_ ∈Ω _T_ (64) ∶? _t_ <sup>max</sup>, _j_ <sup>+</sup> ∈ _R_ ) <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> = <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−,</sup> <sup>_j_</sup> <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−,</sup> <sup>_j_</sup> - <sup>_pW_</sup> _t_ <sup>_W_</sup> _t_ . ( 1 − _Ut_ <sup>+</sup> The objective function outlined in (39) and (40) is designed to maximize the profit of the GenCo, while accounting for fixed uncertain variables in the worst-case scenario. Constraints (41)– (55) pertain to the primary cuts, generated by the lower-level problem solution in each iteration (denoted as _j_ ), which are subsequently transmitted to the upper-level problem. This set of constraints mirrors those of the deterministic problem outlined in (2)–(14). However, there is a key distinction—the adaptive robust model incorporates worst-case determined values (e.g. - <sup>_pRT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _t_, _j_ <sup>_pRT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> - <sup>_pPtG_</sup> <sup>,</sup> <sup>_e_</sup> _t_, _j_ _t_, _j_ ∀ _t_ ∈Ω _T_ (65) <sup>_ng_</sup> _t_, _j_ <sup>≥</sup> <sup>_pCITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> - _p_ <sup>_ng_</sup> _t_, _j_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> - _P_ <sup>_PIP_</sup> ∶? _t_ <sup>max</sup>, _j_ _t_ <sup>max</sup>, _j_ ≥ 0 ∀ _t_ ∈ _�T_ (66) ∑ _t_ <sup>_ng_</sup> _j_ <sup>,</sup> <sup>_t_</sup> ≥ 0 (67) _p_ <sup>_ng_</sup> _t_, _j_ <sup>_ng_</sup> _t_, _j_ <sup>≥</sup> <sup>−</sup> <sup>_png_</sup> <sup>,</sup> <sup>_j_</sup> <sup>∶?</sup> <sup>_ng_</sup> _j_ <sup>,</sup> <sup>_t_</sup> <sup>_PtG_</sup> <sup>,</sup> <sup>_ng_</sup> - <sup>_png_</sup> _t_, _j_ _t_, <sup>_png_</sup> _t_, _j_ <sup>= 0 ∶?</sup> _t_ <sup>_ng_</sup>, _j_ _t_ <sup>_ng_</sup>, _j_ <sup>∈</sup> <sup>_R_</sup> ∀ _t_ ∈Ω _T_ (68) _p_ <sup>_W_</sup> _t_ <sup>,</sup> <sup>_j_</sup> ̄ ̄ <sup>_W_</sup> _t_ <sup>).</sup> <sup>_W_</sup> _t_ <sup>,</sup> <sup>_j_</sup> ) rather than relying on predicted nominal values (e.g.̄ _P_ <sup>_W_</sup> _t_ _p_ <sup>_GT_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>_GT_</sup> <sup>,</sup> <sup>_ng_</sup> - <sup>_pPtG_</sup> <sup>,</sup> <sup>_ng_</sup> _t_, _j_ _t_, _j_ s.t. ) s.t. 0 ≤ <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−,</sup> <sup>_j_</sup> ≤ <sup>_pW_</sup> _t_ ⋅ ( +, _j_ 1 − _Ut_ <sup>_PtG_</sup> <sup>,max</sup> + ? × ? <sup>_PtG_</sup> _t_, _j_ _t_, _j_ <sup>_PtG_</sup> _t_, _j_ <sup>−</sup> <sup>?</sup> _t_ <sup>max</sup>, _j_ <sup>+</sup> _t_ <sup>max</sup>, _j_ <sup>+</sup> = 0 ∀ _t_ ∈ _�T_ (77) ∀ _t_ ∈Ω _T_ (69) ? <sup>_PtG_</sup> <sup>,min</sup> _t_, _j_ <sup>_PtG_</sup> <sup>,min</sup> - ? <sup>_PtG_</sup> <sup>,max</sup> _t_, _j_ _t_, _j_ <sup>_W_</sup> _t_ ⋅ _Ut_ <sup>+,</sup> <sup>_j_</sup> <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> ≤ _P_ <sup>_W_</sup> <sup>,max</sup> ⋅ _Ut_ <sup>+,</sup> <sup>_j_</sup> _t_ <sup>+,</sup> <sup>_j_</sup> ∀ _t_ ∈ _�T_ (70) _t_ <sup>_ng_</sup>, _j_ <sup>= ?</sup> <sup>× ?</sup> <sup>_c_</sup> ∀ _t_ ∈Ω _T_ (78) _p_ <sup>_W_</sup> _t_ _t_ <sup>+,</sup> <sup>_j_</sup> ≤ _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> - <sup>?</sup> _t_ <sup>_PtG_</sup>, _j_ _t_ <sup>_PtG_</sup>, _j_ <sup>−</sup> <sup>?</sup> _t_ <sup>_ng_</sup>, _j_ <sup>̄</sup> <sup>_W_</sup> _t_ +̂ _Pt_ ? <sup>_GT_</sup> <sup>,</sup> <sup>_e_</sup> - ? <sup>_GT_</sup> _t_, _j_ _t_, _j_ ? <sup>_GT_</sup> _t_, _j_ <sup>+ ?</sup> _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> <sup>,min</sup> _P_ <sup>_W_</sup> _t_ −̂ _P_ _Wt_ ≤ <sup>_pw_</sup> _t_ <sup>̄</sup> <sup>_w_</sup> _t_ <sup>≤̄</sup> <sup>_PW_</sup> _t_ _W_ ̂ _t_ ∀ _t_ ∈Ω _T_ (71) + ? <sup>max−</sup> _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> <sup>,min</sup> _t_, _j_ _t_ <sup>max</sup>, _j_ <sup>−</sup> = 0 ∀ _t_ ∈ _�T_ (79) −? <sup>_GT_</sup> <sup>,</sup> <sup>_e_</sup> _t_, _j_ _DA_, _e_ _t_ +̂ ? _t_ _DA_, _e_ _t_ ∀ _t_ ∈Ω _T_ (72) _DA_, _e_ _t_ −̂ ? _t_ _t_ <sup>_GT_</sup>, _j_ <sup>+ ?</sup> _t_ <sup>_ng_</sup>, _j_ _t_ <sup>_ng_</sup>, _j_ <sup>= 0</sup> ∀ _t_ ∈Ω _T_ (80) ? _t_ _DA_, _e_ _t_ ≤ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ≤̄ ? _t_ _tDA_, _e_ ≤ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ? × ? _t_ <sup>_GT_</sup>, _j_ _DA_, _ng_ −̂ ? _DA_, _ng_ +̂ ? _DA_, _ng_ (73) _t_ <sup>max</sup>, _j_ <sup>−</sup> = _K_ <sup>+</sup> × ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ∀ _t_ ∈ _�T_ (81) ? <sup>min−</sup> _t_, _j_ ? <sup>min−</sup> + ? <sup>max−</sup> _t_, _j_ _t_, _j_ ? _DA_, _ng_ ≤ ? _DA_, _ng_ ≤̄ ? _t_ <sup>max</sup>, _j_ <sup>+</sup> = − _K_ <sup>−</sup> × ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ∀ _t_ ∈ _�T_ (82) _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ̂ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> −̂ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ̂ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ≤ _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> ≤̄ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ̄ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> +̂ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ̂ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ∀ _t_ ∈ _�T_ ? <sup>min+</sup> _t_, _j_ <sup>min+</sup> - ? <sup>max+</sup> _t_, _j_ _t_, _j_ (74) - <sup>?</sup> _t_ <sup>max</sup>, _j_ _t_ <sup>max</sup>, _j_ <sup>−</sup> <sup>?</sup> <sup>_ng_</sup> _j_ <sup>,</sup> <sup>_t_</sup> _t_ <sup>_ng_</sup>, _j_ <sup>= 0</sup> ∀ _t_ ∈Ω _T_ (83) <sup>_ng_</sup> _j_ <sup>,</sup> <sup>_t_</sup> - <sup>?</sup> _t_ <sup>_ng_</sup>, _j_ _t_ ̄ _<u>t</u>_ 0 ≤ <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−,</sup> <sup>_j_</sup> ≤ <sup>_pW_</sup> _t_ ⋅ 0 ≤ <sup>_pDA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−,</sup> <sup>_j_</sup> ≤ <sup>_pW_</sup> _t_ ∀ _t_ ∈Ω _T_ (84) ||||| ||||| + ||||| <sup>_w_</sup> _<u>t</u>_ <sup>−̄</sup> <sup>_P_</sup> _<u>t</u>_ <sup>_W_</sup> ∑ _t_ + [||||| <u>?</u> <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <u>−̄ ?</u> <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> ||||| ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> ? _<u>t</u>_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> _<u>t</u>_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> −̄ ? _<u>t</u>_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ≤ _�_, (75) <sup>−̄</sup> <sup>_P_</sup> _<u>t</u>_ _Pt_ <sup>_W_</sup> + ) _<u>t</u>_ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> _p_ <sup>_w_</sup> _<u>t</u>_ <sup>̄</sup> _t_ ||||| |||||| _p_ <sup>_CITY_</sup> _<u>t</u>_ <sup>,</sup> <sup>_ng_</sup> <sup>_CITY_</sup> _<u>t</u>_ <sup>,</sup> <sup>_ng_</sup> −̄ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> _Pt_ <sup>CITY,</sup> <sup>_ng_</sup> ( +, _j_ 1 − _Ut_ ] ̄ |||||| _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> ≤ _P_ <sup>_W_</sup> <sup>,max</sup> ⋅ _Ut_ <sup>+,</sup> <sup>_j_</sup> _t_ <sup>+,</sup> <sup>_j_</sup> ∀ _t_ ∈ _�T_ (85) _t_ <sup>+,</sup> <sup>_j_</sup> ≤ _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> _p_ <sup>_W_</sup> _t_ _p_ <sup>_W_</sup> _t_ ⋅ _Ut_ <sup>+,</sup> <sup>_j_</sup> <sup>̄</sup> <sup>_W_</sup> _t_ +̂ _P_ ̂ _Wt_ ≤ <sup>_pw_</sup> _t_ <sup>̄</sup> <sup>_pw_</sup> _t_ <sup>≤̄</sup> <sup>_PW_</sup> _t_ _W_ ̂ _t_ ∀ _t_ ∈Ω _T_ (86) The lower-level problem includes the second and third levels of the original problem. The objective function (56) deals with the maximization of the GenCo’s profit using continuous variables _P_ <sup>_W_</sup> _t_ −̂ _P_ _P_ <sup>_W_</sup> _t_ _DA_, _ng_ −̂ ? _DA_, _e_ _t_ +̂ ? _t_ _DA_, _e_ _t_ ∀ _t_ ∈Ω _T_ (87) _DA_, _e_ ? _t_ −̂ ? ? _t_ _DA_, _e_ _t_ ≤ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ≤̄ ? _tDA_, _e_ ≤ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> _DA_, _ng_ +̂ ? _DA_, _ng_ (88) <sup>_PtG_</sup> _t_ <sup>,</sup> <sup>_e_</sup>, <sup>_pPtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> _DA_, _ng_ ≤ ? _DA_, _ng_ ≤̄ ? Θ <sup>_L_</sup> <sup>3</sup> = { <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_e_</sup>, <sup>_pGT_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup>, <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup>, <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup>, <sup>_png_</sup> _t_ _p_ <sup>_PtG_</sup> <sup>,</sup> <sup>_e_</sup> <sup>_PtG_</sup> _t_ <sup>,</sup> <sup>_ng_</sup>, <sup>_pGT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>_GT_</sup> _t_ <sup>,</sup> <sup>_ng_</sup>, <sup>_pRT_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _t_ } ? , ̂ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ≤ _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> ≤̄ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ̄ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> +̂ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ̂ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ∀ _t_ ∈ _�T_ while it minimizes profit using variables with uncertainty, _�_ <sup>_L_</sup> <sup>2</sup> = { _p_ <sup>_W_</sup> _t_ <sup>, ?</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup>, ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup>, _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> }. Constraints presented in _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> −̂ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup>, ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup>, _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> } _�_ <sup>_L_</sup> <sup>2</sup> = { _p_ <sup>_W_</sup> _t_ <sup>, ?</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup>, ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup>, _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> }. Constraints presented in (57)–(68) are related to the third level and (69)–(75) are related +, _j_ to the second level. In this problem, the binary variables _Ut_ (89) _DA_, _e_ ? _t_ |||||| |||||| + ] |||||| ̄ _<u>t</u>_ _DA_, _e_ _<u>t</u>_ + <sup>̄</sup> _<u>t</u>_ [|||||| |||||| <u>?</u> _<u>t</u>_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> −̄ ? _<u>t</u>_ <u>?</u> _<u>t</u>_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> _DA_, _ng_ ? +, _j_ to the second level. In this problem, the binary variables _Ut_ obtained from the upper-level problem are treated as fixed. In addition, ∑ _t_ + <u>?</u> <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <u>−̄ ?</u> ̄ _DA_, _ng_ |||||| |||||| _p_ <sup>_w_</sup> _<u>t</u>_ <sup>̄</sup> _p_ <sup>_w_</sup> _<u>t</u>_ <sup>−̄</sup> <sup>_<u>PW</u>_</sup> _<u>t</u>_ |||||| _p_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> _<u>t</u>_ _p_ <sup>_CITY_</sup> _<u>t</u>_ <sup>,</sup> <sup>_ng_</sup> −̄ _P_ <sup>_CITY_</sup> _<u>t</u>_ <sup>,</sup> <sup>_ng_</sup> _CITY_, _ng_ _Pt_ _P_ _W_ _t_ { <sup>_PtG_</sup> <sup>,min</sup>, <sup>?</sup> <sup>_PtG_</sup> <sup>,max</sup> _t_, _j_ _t_, _j_ _t_ <sup>_PtG_</sup>, _j_ <sup>,max</sup>, <sup>?</sup> _t_ <sup>_PtG_</sup>, _j_ _t_ <sup>_PtG_</sup>, _j_ <sup>, ?</sup> _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> <sup>,min</sup> <sup>_GT_</sup> _t_, _j_ <sup>, ?</sup> _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> } _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> <sup>,min</sup>, ? _t_ <sup>_GT_</sup>, _j_ ? <sup>_PtG_</sup> <sup>,min</sup> _t_, _j_ Θ <sup>_D_</sup> = ? <sup>_PtG_</sup> <sup>,min</sup> ? _t_ <sup>_PtG_</sup>, _j_ <sup>,min</sup>, <sup>?</sup> _t_ <sup>_PtG_</sup>, _j_ <sup>,max</sup>, <sup>?</sup> _t_ <sup>_PtG_</sup>, _j_ <sup>, ?</sup> _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> <sup>,min</sup>, ? _t_ <sup>_GT_</sup>, _j_ <sup>, ?</sup> _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup>, ? _t_ <sup>min</sup>, _j_ <sup>+</sup>, ? _t_ <sup>min</sup>, _j_ <sup>−</sup>, ? _t_ <sup>max</sup>, _j_ <sup>−</sup>, ? _t_ <sup>max</sup>, _j_ <sup>+</sup>, <sup>?</sup> _t_ <sup>max</sup>, _j_ <sup>, ?</sup> <sup>_ng_</sup> _j_ <sup>,</sup> <sup>_t_</sup>, <sup>?</sup> _t_ <sup>_ng_</sup>, _j_ <sup>min +</sup>, ? <sup>min −</sup> _t_, _j_ _t_, _j_ <sup>min −</sup>, ? <sup>max −</sup> _t_, _j_ _t_, _j_ ≤ Γ (90) _t_, _j_ _t_ <sup>max</sup>, _j_ <sup>, ?</sup> <sup>_ng_</sup> _j_ <sup>,</sup> <sup>_t_</sup> <sup>max −</sup>, ? <sup>max +</sup> _t_, _j_ _t_, _j_ _t_ <sup>max</sup>, _j_ <sup>+</sup>, <sup>?</sup> _t_ <sup>max</sup>, _j_ <sup>_ng_</sup> _j_ <sup>,</sup> <sup>_t_</sup>, <sup>?</sup> _t_ <sup>_ng_</sup>, _j_ _t_ <sup>_PtG_</sup>, _j_ <sup>,max</sup> ≥ 0, ? _t_ <sup>_PtG_</sup>, _j_ _t_ <sup>_PtG_</sup>, _j_ <sup>∈</sup> <sup>_R_</sup> <sup>, ?</sup> _t_ <sup>_GT_</sup>, _j_ _t_ <sup>_GT_</sup>, _j_ <sup>∈</sup> <sup>_R_</sup> <sup>, ?</sup> _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> ∈ _R_ is the set of dual variables of the third-level constraints. This problem cannot be solved directly; thus, it should be expressed in an integrated form. For this purpose, the internal maximization problem can be converted into a minimization problem using the duality theory [39]. As a result, we will have a single-level minimization problem as follows: _t_ <sup>_PtG_</sup>, _j_ <sup>,min</sup> ≥ 0, ? _t_ <sup>_PtG_</sup>, _j_ <sup>,max</sup> ? _t_ <sup>min</sup>, _j_ <sup>+</sup> ≥ 0 ∀ _t_ ∈ _�T_ (92) ∀ _t_ ∈ _�T_ (91) ? <sup>_GT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>,min</sup> _t_, _j_ _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> <sup>,min</sup> ≥ 0, ? _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> <sup>,max</sup> _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> <sup>,max</sup> ≥ 0, ? _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> <sup>,max</sup> _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> <sup>,max</sup> ≥ 0, ? _t_ <sup>min</sup>, _j_ <sup>−</sup> _t_ <sup>min</sup>, _j_ <sup>−</sup> ≥ 0, ( _t_ <sup>_PtG_</sup>, _j_ <sup>,max</sup> (× _P_ <sup>_PTG_</sup> <sup>,max)</sup> ( ⎫ ⎪ ⎪ ⎪ ⎪ ⎬ ⎪ ⎪ ⎪ ⎪⎭ ( ? <sup>_GT_</sup> <sup>,</sup> <sup>_e_</sup> _t_, _j_ ? <sup>_PtG_</sup> <sup>,max</sup> _t_, _j_ _t_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> - _p_ <sup>_PIP_</sup> <sup>))</sup> _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> × _P_ <sup>_GT_</sup> <sup>,max)</sup> ) <sup>)</sup> ) <sup>)</sup> ( _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>,</sup> <sup>_j_</sup> _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−,</sup> <sup>_j_</sup> - _p_ <sup>_W_</sup> _t_ ( ( ( ( ( <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> - _p_ <sup>_W_</sup> _t_ _p_ <sup>_W_</sup> _t_ <sup>.</sup> <sup>_W_</sup> _t_ <sup>.</sup> _Ut_ <sup>+</sup> ) _t_ ⎤ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥⎦ (76) + ? <sup>max −</sup> _t_, _j_ + ? <sup>max+</sup> _t_, _j_ <sup>max −</sup> × _t_, _j_ <sup>max+</sup> × _t_, _j_ ∑ ⎡ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢⎣ ⎡⎢ ⎡⎢− ? _t_ <sup>_PtG_</sup>, _j_ <sup>,max</sup> (× _P_ <sup>_PTG_</sup> <sup>,max)</sup> - (? _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> ) <sup>_e_</sup> <sup>)</sup> × _P_ <sup>_GT_</sup> <sup>,max)</sup> ⎤⎥⎤⎥ ⎢⎢⎢⎢(? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>,</sup> <sup>_j_</sup> ) - ⎢⎢⎢⎢++ ? ?( _tt_ <sup>maxmax</sup>,, _j j_ <sup>−+</sup> ×× (( _pp_ <sup>_DA_</sup> _t_ <sup>_DA_</sup> _t_ <sup>,,</sup> <sup>_ee_</sup> <sup>−+,,</sup> <sup>_j j_</sup> −− _pp_ <sup>_W_</sup> _t_ <sup>_W_</sup> _t_ <sup>..</sup> (1 _U_ - _t_ <sup>+</sup> _Ut_ <sup>+</sup> ) <sup>)</sup> ⎥⎥⎥⎥⎥⎥⎥⎥ ⎢⎣ ⎢⎣+ ? _t_ <sup>max</sup>, _j_ <sup>×</sup> _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> - _p_ <sup>_PIP_</sup> <sup>))</sup> ⎥⎦⎥⎦ ( ( + ? <sup>_ng_</sup> _j_ <sup>,</sup> <sup>_t_</sup> × _p_ <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> <sup>)</sup> - ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> × _p_ <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> <sup>)</sup> ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> _t_ 1 − _Ut_ <sup>+</sup> _Min_ _�_ <sup>_L_</sup> <sup>2</sup>, _�_ <sup>_D_</sup> ⎧ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪⎩ _t_ ( _t_ ? _t_ <sup>max</sup>, _j_ _t_ <sup>max</sup>, _j_ <sup>×</sup> + ? <sup>_ng_</sup> <sup>,</sup> <sup>_t_</sup> _j_ <sup>_ng_</sup> _j_ <sup>,</sup> <sup>_t_</sup> × _p_ <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> <sup>)</sup> _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−,</sup> <sup>_j_</sup> _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> ⎡ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢⎣ ( (? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> × _p_ <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> <sup>)</sup> _t_ <sup>_ng_</sup>, _j_ <sup>∈</sup> <sup>_R_</sup> _t_ <sup>max</sup>, _j_ <sup>−</sup> ∈ _R_, ? _t_ <sup>max</sup>, _j_ <sup>+</sup> _t_ <sup>max</sup>, _j_ ≥ 0, <sup>?</sup> <sup>_ng_</sup> _j_ <sup>,</sup> <sup>_t_</sup> ? <sup>max −</sup> _t_, _j_ _t_ <sup>max</sup>, _j_ <sup>+</sup> ∈ _R_, <sup>?</sup> _t_ <sup>max</sup>, _j_ <sup>_ng_</sup> _j_ <sup>,</sup> <sup>_t_</sup> ≥ 0, <sup>?</sup> _t_ <sup>_ng_</sup>, _j_ ∀ _t_ ∈Ω _T_ (93) The objective function (76) consists of two parts: the part related to the second level of the original problem including (? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>,</sup> <sup>_j_</sup> ) and (? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> × _p_ <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> ), and the part to associ (? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>,</sup> <sup>_j_</sup> ) and (? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> × _p_ <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> ), and the part to associ ated with the dual problem of the third level of the original problem including the remaining parts of the objective function. Constraints presented in (77) and (78) (as constraints of the dual problem) respectively correspond to <sup>_pPtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> and <sup>_pPtG_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup>, _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>,</sup> <sup>_j_</sup> To exactly linearize, we first replace the values of <sup>_pW_</sup> _t_ <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> and <sup>_pPtG_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup>, gas markets transactions carried out by the GenCo, the uncertain electricity and natural gas price variables can deviate from the nominal values in both positive and negative directions. The uncertain variable corresponding to natural gas consumption by the residential area can deviate from its nominal value in both positive and negative directions, as the GenCo has the possibility of gas extraction from the pipeline and gas injection into it. To exactly linearize, we first replace the values of <sup>_pW_</sup> _t_ and _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> in the terms <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> in the terms <sup>_PtG_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup>, ( <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−,</sup> <sup>_j_</sup> - <sup>_pW_</sup> _t_ ) <sup>))</sup> constraints (79) and (80) respectively correspond to <sup>_pGT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>_W_</sup> _t_ . ( ( ( _p_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> _t_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> - <sup>_pW_</sup> _t_ _Ut_ <sup>+</sup> _t_ ? <sup>max −</sup> _t_, _j_ <sup>max −</sup> × _t_, _j_ , _p_ <sup>_GT_</sup> <sup>,</sup> <sup>_ng_</sup>, <sup>_GT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> and ( <sup>_GT_</sup> _t_, _j_ <sup>,</sup> <sup>_ng_</sup>, and also, constraints presented in (81) and (82) corre ( ( ? <sup>max +</sup> × _t_, _j_ ) <sup>))</sup> , and <sup>_W_</sup> _t_ . _p_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−,</sup> <sup>_j_</sup> ( 1 − _Ut_ <sup>+</sup> spond to <sup>_pRT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> <sup>_RT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> and <sup>_pRT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> <sup>_pRT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> . Finally, (83) corresponds to <sup>_png_</sup> _t_, spond to <sup>_pRT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>−</sup> and <sup>_pRT_</sup> _t_, _j_ <sup>,</sup> <sup>_e_</sup> <sup>+</sup> . Finally, (83) corresponds to <sup>_png_</sup> _t_, _j_ <sup>.</sup> Constraints (84)–(90) are the constraints of the second level of the original problem and show the uncertain variables feasibility set. In (91)–(93), the variation ranges of the dual variables are stated. The problem obtained at this stage has non-linear parts in the objective function (76) and (90), which challenges the solution procedure. In the following, we describe the method that is followed to linearize them. The non-linearity in the objective function are created by multiplying the variables, that is, <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> - _p_ <sup>_PIP_</sup> <sup>))</sup> ? _t_ <sup>max</sup>, _j_ <sup>×</sup> _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> - _p_ <sup>_PIP_</sup> <sup>))</sup> of the objective function (76), with those obtained from (96) and (97), respectively. In the following, we describe this procedure for the first term as an example. The same procedure can be followed to linearize the other terms. _t_ <sup>max</sup>, _j_ <sup>−</sup> × ( _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> For the term (? _t_ <sup>max</sup>, _j_ <sup>−</sup> <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> - _p_ <sup>_W_</sup> _t_ <sup>_W_</sup> _t_ <sup>.(</sup> <sup>_U_</sup> _t_ <sup>+</sup> _t_ <sup>+))),</sup> <sup>we</sup> <sup>get</sup> <sup>the</sup> <sup>_pW_</sup> _t_ with (̄ _P_ <sup>_W_</sup> _t_ _Wt_ × ? _t_ <sup>_W_</sup> <sup>):</sup> _Wt_ × ? _t_ <sup>_W_</sup> following expression by replacing <sup>_pW_</sup> _t_ ̄ <sup>_W_</sup> _t_ −̂ _P_ (98) ? <sup>max−</sup> × _t_, _j_ ( ) <sup>)</sup> _Pt_ <sup>_W_</sup> −̂ _Pt_ <sup>_W_</sup> ( _Pt_ <sup>_W_</sup> <sup>_W_</sup> _t_ <sup>.</sup> ( _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> ) <sup>)</sup> , ? <sup>max−</sup> × _t_, _j_ _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> ̂ _t_ <sup>_W_</sup> × ? _t_ <sup>_W_</sup> _t_ ) _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> - _p_ <sup>_W_</sup> _t_ ( _t_ _Ut_ <sup>+</sup> _t_ _Ut_ <sup>+</sup> . , and <sup>_W_</sup> _t_ <sup>.</sup> ? <sup>max+</sup> × _t_, _j_ ( ( ( ( _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−,</sup> <sup>_j_</sup> ) <sup>)</sup> _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−,</sup> <sup>_j_</sup> - _p_ <sup>_W_</sup> _t_ ( By multiplying the terms presented in parentheses by ? _t_ <sup>max</sup>, _j_ <sup>−</sup>, we get the following expression: 1 − _Ut_ <sup>+</sup> ? <sup>max−</sup> _t_, _j_ ? _t_ <sup>max</sup>, _j_ <sup>×</sup> _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> - _p_ <sup>_PIP_</sup> <sup>))</sup> _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> - _p_ <sup>_PIP_</sup> <sup>))</sup> . ( ( _t_ <sup>max</sup>, _j_ <sup>−</sup> × _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> . ( _t_ <sup>_W_</sup> −̂ _Pt_ <sup>_W_</sup> ) ) <sup>)</sup> _t_ ̂ _t_ <sup>_W_</sup> × ? _t_ <sup>_W_</sup> _t_ ) _Ut_ <sup>+</sup> _t_ ( _Pt_ <sup>_W_</sup> ? <sup>max−</sup> _t_, _j_ <sup>max−</sup> × _t_, _j_ To linearize, the following approach is adopted. Since the worst-case realization of the uncertain variables is placed in the corners of the polyhedral set of uncertainties, we need to search only these corners to find the optimal solution [9]. For this purpose, we define the uncertain variables with the help of some auxiliary binary variables in the following form: ( (99) Next, we separate the parameters and variables that are multiplied by ? _t_ <sup>max</sup>, _j_ <sup>−</sup> to get the following expression: _p_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> −̄ _P_ <sup>_W_</sup> _t_ ) <sup>))</sup> ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> - ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ̄ <sup>_W_</sup> _t_ . ( ( _Ut_ <sup>+</sup> _t_ ( ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> =̄ ? ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> _DA_, _e_ _t_ +̂ ? _DA_, _e_ _t_ × _t_ ) ∀ _t_ ∈Ω _T_ (94) ? <sup>max −</sup> _t_, _j_ <sup>max −</sup> × _t_, _j_ ( _W_ _t_ × (100) ? <sup>max −</sup> _t_, _j_ _t_ <sup>max</sup>, _j_ <sup>−</sup> × ? _t_ <sup>_W_</sup> ( ) <sup>)</sup> ( _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>+</sup> - ? _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>−</sup> + _t_ ) _P_ _Ut_ <sup>+</sup> _t_ _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> =̄ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ̄ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> +̂ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ̂ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> × ( _t_ ) . ? _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>+</sup> ∀ _t_ ∈ _�T_ (95) (96) ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>+</sup> - ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>−)</sup> _DA_, _ng_ +̂ ? ( ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> =̄ ? _DA_, _ng_ × As can be seen, in this expression, the non-linear term includes the product of a binary variable and a continuous variable. This can be linearized without approximation by defining an auxiliary variable and using the Big M method as follows. ? <sup>max−,</sup> <sup>_W_</sup> _t_, _j_ <sup>max−,</sup> <sup>_W_</sup> = ? <sup>max−</sup> _t_, _j_ _t_, _j_ <sup>_W_</sup> _t_ =̄ _P_ <sup>_W_</sup> _t_ _W_ _t_ × ? _t_ <sup>_W_</sup> ∀ _t_ ∈Ω _T_ (97) _Wt_ × ? _t_ <sup>_W_</sup> _p_ <sup>_W_</sup> _t_ ̄ <sup>_W_</sup> _t_ −̂ _P_ _t_ <sup>max</sup>, _j_ <sup>−</sup> × ? _t_ <sup>_W_</sup> _t_ <sup>_W_</sup> (101) According to (94) to (97), each uncertain variable can adopt its expected nominal value or deviate from its nominal value in a positive or negative direction. Also, the worst-case realization of the wind farm generation occurs in the deviation to the negative side [9]. Therefore, for this variable, only the negative deviation is considered. According to the electricity and natural _t_ <sup>_W_</sup> ≤ ? _t_ <sup>max</sup>, _j_ <sup>−,</sup> <sup>_W_</sup> _t_ <sup>_W_</sup> (102) - _M_ × ? _t_ <sup>_W_</sup> _t_ <sup>max</sup>, _j_ <sup>−,</sup> <sup>_W_</sup> ≤ _M_ × ? _t_ <sup>_W_</sup> ≤ ? <sup>max −,</sup> <sup>_W_</sup> _t_, _j_ <sup>max −,</sup> <sup>_W_</sup> ≤ ? <sup>max −</sup> _t_, _j_ _t_, _j_ ) _t_, _j_ ? _t_ <sup>max</sup>, _j_ <sup>−</sup> - _M_ × ? <sup>max −</sup> _t_, _j_ ( 1 − ? _t_ <sup>_W_</sup> (103) ( ) + _M_ × 1 − ? _t_ <sup>_W_</sup> Consequently, (100) becomes as follows: ( ̄ _t_ <sup>_W_</sup> . ) <sup>))</sup> ? <sup>max−</sup> _t_, _j_ ( ( <sup>max−</sup> × _t_, _j_ _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> −̄ _Pt_ <sup>_W_</sup> _Ut_ <sup>+</sup> _t_ ( ( (104) _Ut_ <sup>+</sup> _t_ ) <sup>)</sup> ) . ( ? <sup>max−,</sup> <sup>_W_</sup> _t_, _j_ ? <sup>max−,</sup> <sup>_W_</sup> _t_, _j_ + _Pt_ <sup>_W_</sup> × TABLE 2 The parameters of the PtG unit and the gas turbine [38]. ? (%) ? (%) _p_ <sup>_PtG_</sup> <sup>,</sup> <sup>max</sup> (MWh) ? (%) _p_ <sup>_GT_</sup> <sup>,</sup> <sup>max</sup> (MWh) 80 20 100 30 100 unit has a power consumption capacity of 100 MW, which uses PEM electrolysis technology. The gas turbine also has a capacity of 100 MW. The parameters related to the PtG unit and gas turbine are stated in Table 2. Similarly, the other non-linear terms can be written in linear form. Finally, the exactly linearized version of the objective function (76) can be written as follows: ( _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> × _P_ <sup>_GT_</sup> <sup>,max)</sup> _t_ <sup>_PtG_</sup>, _j_ <sup>,max</sup> × _P_ <sup>_PTG_</sup> <sup>,max)</sup> ( ⎫ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎬ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪⎭ ( ) <sup>))</sup> ? <sup>_GT_</sup> <sup>,</sup> <sup>_e_</sup> _t_, _j_ ( ( ( ( ( ( ? <sup>_PtG_</sup> <sup>,max</sup> _t_, _j_ ? _t_ <sup>max</sup>, _j_ _t_ <sup>max</sup>, _j_ <sup>×</sup> ̄ _t_ <sup>_W_</sup> . ? <sup>max−</sup> _t_, _j_ <sup>max−</sup> × _t_, _j_ _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> ( _Ut_ <sup>+</sup> _t_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> −̄ _Pt_ <sup>_W_</sup> ( ̄ )) ? <sup>max−,</sup> <sup>_W_</sup> _t_, _j_ _t_, _j_ ( _Ut_ <sup>+</sup> _t_ ) ( × ⎤⎤ ⎥⎥ ⎥⎥ ⎥⎥ ⎥⎥ ⎥⎥ ⎥⎥ ⎥⎥ ⎥⎥ ⎥⎥ ⎥⎥ ⎥⎥ ⎥⎥ ⎥⎦⎥⎦ _Pt_ <sup>_W_</sup> _t_ <sup>_W_</sup> . ( _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>,</sup> <sup>_j_</sup> ) <sup>))</sup> ) _t_ (105) _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−,</sup> <sup>_j_</sup> <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>−,</sup> <sup>_j_</sup> −̄ _Pt_ <sup>_W_</sup> ) ( 1 − _Ut_ <sup>+</sup> ⎡ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢⎣ ̂ + + + + + ? <sup>max+</sup> _t_, _j_ <sup>max+</sup> × _t_, _j_ ∑ ⎡ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢⎣ ⎡ ⎡ ⎤⎤ ⎢ ⎢− (? _t_ <sup>_PtG_</sup>, _j_ <sup>,max</sup> ×( _P_ <sup>_PTG_</sup> <sup>,max)</sup> - ?( _t_ <sup>_GT_</sup>, _j_ <sup>,</sup> <sup>_e_</sup> ×) <sup>))</sup> _P_ <sup>_GT_</sup> <sup>,max)</sup> ⎥⎥ ⎢ ⎢ ⎥⎥ ⎢ ⎢+ ? _t_ <sup>max</sup>, _j_ <sup>−</sup> × _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>+,</sup> <sup>_j_</sup> −̄ _Pt_ <sup>_W_</sup> . _Ut_ <sup>+</sup> ⎥⎥ ( ( )) ⎢ ⎢ ( ) ⎥⎥ ⎢⎢( ) ⎢⎢+ ( _Pt_ <sup>_W_</sup> . _Ut_ <sup>+</sup> ( × ? _t_ <sup>max</sup>, _j_ <sup>−,</sup> <sup>_W_</sup> ( ) <sup>))</sup> ⎥⎥⎥⎥ ⎢⎢ ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> × _p_ <sup>_DA_</sup> _t_ <sup>,</sup> <sup>_e_</sup> <sup>,</sup> <sup>_j_</sup> - ⎢⎢+ (? _t_ <sup>max</sup>, _j_ <sup>+</sup> ( × _p_ <sup>_DA_</sup> _t_ ) <sup>,</sup> <sup>_e_</sup> <sup>−,</sup> <sup>_j_</sup> (−̄ _Pt_ <sup>_W_</sup> . 1)) − _Ut_ <sup>+</sup> ⎥⎥⎥⎥ ⎢⎢ ⎢⎢+ ( _Pt_ <sup>_W_</sup> . 1 −( _Ut_ <sup>+</sup> × ? _t_ <sup>max</sup>, _j_ <sup>+,</sup> <sup>_W_</sup> ⎥⎥⎥⎥ ⎢ ⎢+ ? _t_ <sup>max</sup>, _j_ <sup>×</sup> _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> - _p_ <sup>_PIP_</sup> <sup>))</sup> ⎥⎥ ⎢ ⎢ ( ) ⎥⎥ ⎢⎣ ⎢⎣+̂ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> × ? _t_ <sup>max</sup>, _j_ <sup>+</sup> - ? _t_ <sup>max</sup>, _j_ <sup>−</sup> ⎥⎦⎥⎦ ( ( + ? <sup>_ng_</sup> _j_ <sup>,</sup> <sup>_t_</sup> × _p_ <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> <sup>)</sup> - ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> × _p_ <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> <sup>)</sup> ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ̄ _t_ <sup>_W_</sup> . _Min_ _�_ <sup>_L_</sup> <sup>2</sup>, _�_ <sup>_D_</sup> ⎧ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪⎩ _t_ ̄ ( )) ? <sup>max+,</sup> <sup>_W_</sup> _t_, _j_ _t_, _j_ ( 1 − _Ut_ <sup>+</sup> ( _Pt_ <sup>_W_</sup> _t_ <sup>_W_</sup> . _t_ _t_, _j_ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> - _p_ <sup>_PIP_</sup> <sup>))</sup> × _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> ( _t_ <sup>max+</sup> - ? <sup>max−</sup> _t_, _j_ _t_, _j_ _t_, _j_ ) ? <sup>max+</sup> _t_, _j_ +̂ _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>_ng_</sup> _j_ <sup>,</sup> <sup>_t_</sup> × _p_ <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> <sup>)</sup> ̂ _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> × ? <sup>_ng_</sup> <sup>,</sup> <sup>_t_</sup> _j_ ( ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> × _p_ <sup>_ng_</sup> <sup>,</sup> <sup>_j_</sup> <sup>)</sup> To linearize (90) associated with the absolute value expressions, we use the auxiliary binary variables defined above. The following constraints are the exact linear expression of (90): The data of electricity prices in the day-ahead market, as illustrated in Figure 2 and Table 3, has been gathered as the average prices across various hours throughout February and July. This _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> - ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> _CITY_, _ng_ + _t_ - ? ⎞ ⎟ ⎟ ⎟⎠ ⎤ ⎥ ⎥ ⎥⎦ ⎧ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪⎩ _Wt_ × ? _<u>t</u>_ <sup>_W_</sup> _Wt_ × ? _<u>t</u>_ <sup>_W_</sup> ⎛ ⎜ ⎜ ⎜⎝ _CITY_, _ng_ _Pt_ ( ( ( ⎫ ⎪ ⎪ ⎪ ⎬ ⎪ ⎪ ⎪⎭ ( ) ⎞ ⎟ ⎟ ⎟⎠ _t_ ) + _DA_, _e_ _t_ × ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> ) + _CITY_, _ng_ _t_ × _CITY_, _ng_ _t_ ? ∑ ⎡⎛ ⎢⎜ ⎢⎜ ⎢⎣⎜⎝ ⎡⎛ ⎢⎜ ⎢⎜ ⎢⎣⎜⎝ ? ? _P_ _<u>P</u>_ _W_ _Pt_ ≤ Γ (106) _t_ ( _DA_, _ng_ × _DA_, _e_ ? _t_ ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>+</sup> - ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>−)</sup> ) + _DA_, _ng_ ? ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> + ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> ≤ 1 ∀ _t_ ∈Ω _T_ (107) _CITY_, _ng_ + _t_ + ? _t_ TABLE 3 The day-ahead electricity market price data ($/MWh) [43]. H 1 2 3 4 5 6 7 8 Feb. 14.7 13.7 13.29 13.8 15.1 17.7 28.6 25 <u>Jul.</u> <u>18.8</u> <u>17.4</u> <u>16.5</u> <u>15.8</u> <u>15.7</u> <u>16.5</u> <u>17.5</u> <u>18</u> H 9 10 11 12 13 14 15 16 Feb. 23.4 22.9 21.9 21.1 20.5 20.2 19.9 19.8 <u>Jul.</u> <u>19.6</u> <u>21.6</u> <u>25.1</u> <u>29.7</u> <u>35.6</u> <u>44.5</u> <u>57.2</u> <u>74.9</u> H 17 18 19 20 21 22 23 24 Feb. 19.9 23.4 32.9 23.7 21.6 19.9 17.9 16.2 Jul. 81.5 50.1 35.8 31.1 28.6 26.1 22.9 20.6 ? _CITY_, _ng_ _t_ ≤ 1 ∀ _t_ ∈Ω _T_ (108) ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>+</sup> + ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>−</sup> ≤ 1 (109) 4 NUMERICAL RESULTS 4.1 Data The wind farm studied in this research has a capacity of 200 MW and is similar to the one installed in Texas, USA [9]. The PtG FIGURE 2 The day-ahead electricity market price data [43]. FIGURE 3 The wind farm generation data [9]. TABLE 4 The nominal price of natural gas in February and July [44]. February July TABLE 5 The wind farm generation data (MWh) [9]. H 1 2 3 4 5 6 7 8 Base data 167.3 165.2 135.8 169.2 152 162.9 104.3 47.3 Data 1 187.5 195.4 137.8 199.4 165.9 168.2 123.7 55.2 <u>Data 2</u> <u>174</u> <u>143.7</u> <u>119.5</u> <u>184.4</u> <u>159.1</u> <u>187.3</u> <u>110.6</u> <u>41.7</u> H 9 10 11 12 13 14 15 16 Base data 81.9 136.3 160.4 84.3 31.9 38.6 49.7 58.3 Data 1 96.95 136.6 162.1 84.4 32.3 41.9 54.8 64.1 <u>Data 2</u> <u>77.9</u> <u>136.3</u> <u>174.8</u> <u>74.2</u> <u>31.3</u> <u>36.3</u> <u>47.7</u> <u>50.7</u> H 17 18 19 20 21 22 23 24 Base data 66 80.6 83.4 44.8 5 2.6 0 72.5 Data 1 77.7 95.8 91.6 48.4 6.9 2.7 0 74.1 Data 2 56.8 74.9 94.2 42.9 6.4 2.6 0 70.3 and another with a slightly increased (nearly constant) mean and increased variance (Data 2). The statistical characteristics of these data sets are presented in Table 6. ? _DA_, _ng_ ($/MWh) 9.44 8.59 collection spans the years 2015 to 2020 and is specific to the Texas, USA region [43]. The natural gas price data, presented in Table 4, has been compiled as the average prices for February and July over the years 2015 to 2020. This data specifically reflects the Texas, USA region [44]. By selecting the abovementioned data, the relative correlation between the electricity price and the natural gas price data is preserved. The wind farm generation data presented in Figure 3 and Table 5 as base data, also belongs to Texas, USA, and is obtained from [9]. To examine the impact of wind farm generation data as a sensitivity analysis of numerical results, the mean and variance of the base data are altered, creating two additional data sets: one with an increased mean and increased variance (Data 1), FIGURE 4 The natural gas consumption pattern in the city for 1 day (hourly consumption ratio to total daily consumption) [45]. TABLE 6 Statistical specifications of wind farm generation data. Average Variance Coefficient of variation Base data 87.6 3035.1 0.63 Data 1 95.9 3667.7 0.63 Data 2 83.4 3443.5 0.67 TABLE 7 The natural gas consumption pattern in the city for 1 day (hourly consumption ratio to total daily consumption in %) [45]. H 1 2 3 4 5 6 7 8 Feb. 3.35 3.15 3 3.19 3.24 3.36 3.99 4.73 <u>Jul.</u> <u>3.15</u> <u>3.05</u> <u>2.90</u> <u>3.1</u> <u>3.14</u> <u>3.26</u> <u>3.9</u> <u>4.43</u> H 9 10 11 12 13 14 15 16 Feb. 5.81 5.94 5.65 5.22 4.74 4.61 4.53 4.48 <u>Jul.</u> <u>4.01</u> <u>3.76</u> <u>3.84</u> <u>5</u> <u>4.65</u> <u>4.51</u> <u>4.1</u> <u>4.21</u> H 17 18 19 20 21 22 23 24 Feb. 4.53 4.23 4.11 3.86 3.74 3.74 3.65 3.15 Jul. 4.73 5.91 6.14 6.52 5.42 3.94 3.35 3.05 It is important to note that we examine both July and February data to demonstrate the performance of the proposed model across two distinct datasets. However, it is crucial to clarify that our analysis does not conclude the model’s annual profitability. The determination of yearly profitability involves addressing planning issues beyond the scope of this paper. In Figure 4 and Table 7, The natural gas consumption for the city, depicted as a percentage of the total daily consumption, is illustrated at various hours for February and July [45]. All case studies are implemented in GAMS and simulated by using the CPLEX solver [46] on a laptop equipped with an Intel(R) Core(TM) i5 CPU clocking at 2.3 GHz and 8 GB of RAM. The average time to reach the optimal solution is less than one minute in all the cases. TABLE 8 The profit of the GenCo by February data in case study 1. The GenCo’s profit ($) ? Case A Case B Case C 0 40,616 40,617 40,617 12 37,101 33,847 27,552 24 34,808 29,715 20,496 36 33,447 28,964 16,143 48 33,296 27,869 15,602 73 33,296 27,869 15,602 4.2 Case studies This paper considers several case studies as follows to evaluate the effectiveness of the proposed model. 4.2.1 Case Study 1: Overall evaluation of the proposed model The GenCo coordinately operates all the equipment, PtG unit, gas turbine, and wind farm considering different variation ranges of the nominal value for uncertain variables, including 10% (Case A), 20% (Case B), and 40% (Case C). The wind farm generations are considered the base data set. The uncertainty budget can take a value between 0 and 73. Obviously, an uncertainty budget of 0 means a deterministic model. As the uncertainty budget increases, the robustness of the solutions increases. Tables 8 and 9 show the profit of the GenCo using the data of February and July in this case study. According to the results shown in Tables 8 and 9, when the uncertainty budget is equal to 0 and the model is simulated in the deterministic mode, the uncertain variables cannot deviate from their nominal value. The different values for the variation range of the uncertain variables do not affect the final result. Therefore, the row related to _Γ_ = 0 in Case A, Case B, and Case C shows the same TABLE 9 The profit of the GenCo by July data in case study 1. The utility GenCo’s profit ($) ? Case A Case B Case C 0 65,993 65,993 65,993 12 58,035 51,964 39,926 24 54,465 45,587 29,470 36 51,977 41,214 22,867 48 50,834 39,423 20,886 73 50,769 39,409 20,655 profit. On the other hand, for all cases, the robust profit of the GenCo decreases with the increase of the uncertainty budget. The reason is that the solutions become more robust to uncertainties, which leads to more profit reduction. Comparing the results obtained from February and July data shows that: - The GenCo’s income in July surpasses that of February due to the comparatively higher electricity prices and lower natural gas prices during July. Consequently, the GenCo experiences increased revenue in both the electricity and natural gas markets. - According to the February data, variations in the uncertainty budget beyond 48 do not have a discernible impact on profit. Consequently, profits in these cases closely resemble those obtained with an uncertainty budget of 73. However, such a pattern is not observed in simulations based on the July data. The discrepancy can be attributed to the average levels of electricity and natural gas prices, as well as the influence of pipeline capacity on GenCo’s decision-making. In simulations utilizing July data, the GenCo’s decisions are more significantly affected by pipeline capacity. Consequently, as the uncertainty budget increases, the operating conditions worsen, leading to a more pronounced impact on profits. - In the simulation conducted with July data, there is a notable increase in the utilization of the gas turbine compared to February. The greater diversity in electricity price data during July provides the GenCo with the opportunity to engage in arbitrage and enhance profits by effectively utilizing both the gas turbine and the Power-to-Gas (PtG) unit in the electricity and natural gas markets. This efficient use of the gas turbine is evident in the simulation, showcasing the GenCo’s strategic decision-making to optimize overall performance. Another difference observed in the simulation results from July compared to those from February is the relatively extensive participation in the natural gas market by the GenCo. In July, in addition to the high average electricity price in the day-ahead electricity market, prices vary more widely across different hours compared to February. This phenomenon essentially allows the GenCo to arbitrage between different hours in the electricity market in July. Specifically, during hours when day-ahead electricity prices are below the average (for example, from 1 AM to 10 AM), the GenCo offers the minimum output capacity of its wind farm under the worst uncertainty realization to the market. Whenever production exceeds the offered amount, the excess production is converted into natural gas by the PtG unit and is delivered to the natural gas pipeline. Subsequently, during hours when day-ahead electricity prices are above the average (for example, from 1 PM to 7 PM), the GenCo suggests an amount higher than the forecasted output of the wind farm in the day-ahead electricity market and compensates for the production shortfall using the gas turbine. In practice, the GenCo shifts electrical energy across various hours using the capacity of the natural gas network, thereby moving wind generation from hours with lower electricity prices to those with higher prices. In hours that utilizing the PtG unit and the gas turbine are not economically justified, the GenCo offsets deviations from its production through the real-time market. As an example, the detailed electricity trade of the GenCo in “Case C” considering the uncertainty budget of 12 is presented in Figure. 5. In this example, the gas market purchase amount is 788.38 MWh. 4.2.2 Case Study 2: Evaluating the impact of limited access to pipeline capacity In this section, we assess the GenCo’s profit in Case B under two scenarios. The first scenario replicates the simulation conducted in Case Study 1 using July data. In the second scenario, the occupation of pipeline capacity by residential customers’ consumption is disregarded. Figure 6 illustrates the GenCo’s profit for both situations. The wind farm generations are considered to be as the base data set. In the context of July data, as detailed in the preceding section, the average electricity price exceeds that of natural gas. This price differential is termed the spark spread (SS), and a higher SS indicates a more profitable utilization of the gas turbine. Consequently, with the substantial SS value in July, optimal utilization of the gas turbine is expected. However, during peak hours of natural gas consumption by residential consumers, the GenCo faces limitations on the available capacity of the natural gas pipeline. This constraint hampers the maximum utilization of the gas turbine, significantly impacting its profitability. Therefore, the uncertainty surrounding available pipeline capacity has a noteworthy influence on the GenCo’s profit. In the scenario where this effect is overlooked, the GenCo’s profit appears more optimistic, as the constraints on gas turbine utilization are not considered. It underscores the importance of accounting for pipeline capacity availability uncertainty to provide a more accurate assessment of the GenCo’s profitability. Figure 7 illustrates the profits of the GenCo in two scenarios: one with limited access to natural gas pipeline capacity and the other without such limitations. It is determined that the impact of the PtG unit and the gas turbine on the GenCo’s profit is minimal, especially in February when, due to electricity and natural gas prices, extensive use of these equipment (particularly the gas turbine) does not occur. The lack of utilization of the gas turbine indicates that there is no need for natural gas consumption, which in turn means there is no requirement for access to natural gas pipeline capacity. Consequently, only in the case FIGURE 5 Detailed electricity trade of the GenCo in “Case C” considering the uncertainty budget of 12. FIGURE 6 The profit of the GenCo in the two situations of Case B by July data considered in Case Study 2. where the budget for uncertainty is equal to 0, the limitation on access to the natural gas pipeline capacity has a slight impact on the GenCo’s profit. 4.2.3 Case Study 3: Evaluating the impact of different wind farm generation data In this section, we examine the operation of the GenCo in Case B of February using various wind farm generation data sets shown in Table 5. This sensitivity analysis evaluates the effectiveness of the proposed model under conditions where the wind farm generation data have different statistical charac teristics. To this end, the simulation for “Case B” considering uncertainty budgets of 0 and 36 using wind farm generation Data 1 and Data 2 is conducted, and the results are compared with the Base Data. In Figure 8, the profit of the GenCo is depicted using various wind farm generation data. Given that the mean of Data 1 is higher than the other two data sets, it is reasonable to expect that the profit from operations in scenarios where Data 1 is used is greater than in the other two cases. Figure 9 shows the impact of different wind farm generation data on the utilization of the PtG unit. The use of the PtG unit in case with an uncertainty budget of 0 is not economically justified; therefore, this graph is only plotted for an uncertainty FIGURE 7 The amount of profit reduction for the GenCo due to unrestricted access to natural gas pipeline capacity for “Case B” under various uncertainty budgets in February. FIGURE 8 The GenCo’s profit in Case B considering the uncertainty budgets of 0 and 36 with various wind farm generation data in February. budget of 36. With the increase in average wind farm generation in Data 1, during various hours when electricity prices are lower, and the actual wind generation exceeds the forecasted amount, the GenCo prefers to utilize the PtG unit instead of supplying surplus generation in the real-time market. Figure 10 illustrates the effect of wind farm generation data on the use of the gas turbine. In general, in February, due to the low electricity prices in the day-ahead market and inadequate SS levels, the use of the gas turbine is not economically justified. Figure 11 illustrates the GenCo’s profit in Case B of July using various wind farm generation data sets. Similar to the results from February, it is logically expected that the profit, if Data 1 is utilized, exceeds that of the other two data sets, espe cially since the average of Data 1 is higher than the others. This expectation is confirmed by the simulation results shown in the figure. Figure 12 displays the impact of different wind farm generation data on the usage of the PtG unit. The utilization of the PtG unit in cases with an uncertainty budget of 0 is not economically justified; therefore, the graph is only represented for the uncertainty budget of 36. Due to the increase in the average wind fam generation with Data 1, the worst-case uncertainties realization are determined not by the deviation of electricity prices from their nominal values but instead by the impact of wind generation. This leads to the SS being influential in prompting the GenCo to utilize the PtG unit within a shorter timeframe. FIGURE 9 The number of hours that the PtG unit is utilized in Case B considering the uncertainty budgets of 0 and 36 with various wind farm generation data in February. FIGURE 10 The number of hours that the gas turbine is utilized in Case B considering the uncertainty budgets of 0 and 36 with various wind farm generation data in February. FIGURE 11 The GenCo’s profit in Case B considering the uncertainty budgets of 0 and 36 with various wind farm generation data in July. FIGURE 12 The number of hours that the PtG unit is utilized in Case B considering the uncertainty budgets of 0 and 36 with various wind farm generation data in July. FIGURE 13 The number of hours that the gas turbine is utilized in Case B considering the uncertainty budgets of 0 and 36 with various wind farm generation data in July. Consequently, when the Base data for wind generation is used, a greater utilization of the PtG unit is achieved. Figure 13 further illustrates the effect of wind generation data on the utilization of the gas turbine. In July, electricity and gas prices are such that, generally, during the hours of 1 PM to 7 PM, the SS effectively encourages the GenCo to use the gas turbine. As indicated in the graph, with greater variability in wind generation data, the need for the gas turbine also rises. 4.2.4 Case Study 4: Evaluating the impact of joint consideration of the gas turbine and PtG unit In this section, we analyse the combined and individual impacts of incorporating the gas turbine and PtG unit. To assess this, we compare the profits of GenCo’s self-scheduling in three scenarios: (a) without the gas turbine and PtG unit, (b) with the gas turbine and without the PtG unit, and (c) without the gas turbine and with the PtG unit. These scenarios are then contrasted with the complete model. The evaluation is conducted based on the assumptions of Case B in Case Study 1, considering different uncertainty budgets and utilizing data from both February and July. Figure 14 illustrates the GenCo’s profit loss in the three specified scenarios compared to Case B in Case Study 1 for February data. Notably, when the uncertainty budget is set at 0, the PtG unit has minimal utilization, and the gas turbine has a negligible impact on GenCo’s profit. This aligns with expectations, given that in deterministic mode, GenCo self-schedules without accounting for uncertainties, and deviations from the offered FIGURE 14 The profit loss of the GenCo in the three assumed situations in Case Study 4 by February data. FIGURE 15 The profit loss of the GenCo in the three assumed situations in Case Study 4 by July data. generation do not occur. Moreover, the SS between electricity and natural gas prices does not incentivize the GenCo to employ the gas turbine and PtG unit. As the uncertainty budget increases, the influence of the gas turbine and PtG unit becomes more pronounced. The need to compensate for deviations in generation, particularly from uncertain variables like wind farm generation, prompts the GenCo to leverage the gas turbine and PtG unit. Consequently, the profit loss in the absence of these units rises until the uncertainty budget reaches 36. Beyond this point, further increases in the uncertainty budget have a limited impact on profit loss, as the capacity of the gas turbine and PtG unit becomes insufficient to fully offset higher uncertainty. In Figure 15 the GenCo’s profit loss in the specified three scenarios is compared with Case B studied in Case Study 1, using July data. With a budget of uncertainty set at 0 in July data, the GenCo, influenced by the higher average electricity prices in the day-ahead market and lower natural gas prices (compared to February data), is inclined to maximize profits through increased utilization of the gas turbine. Clearly, the impact of the gas turbine on GenCo’s profit is significantly higher than that of the PtG unit. In the absence of the gas turbine, the GenCo effectively loses its arbitrage opportunity, impacting its ability to trade electrical energy across different hours. This trading process involves converting electricity into natural gas using the PtG unit in one trading hour and then converting the natural gas back into electricity using the gas turbine in another trading hour. Without the gas turbine, the PtG unit loses its practical value. As the uncertainty budget increases and the feasible variation range of uncertain variables expands, the GenCo adopts more conservative decision-making, leading to reduced utilization of gas turbines. The decline in gas turbine utilization is attributed to the broader possible deviation range of electricity and FIGURE 16 The number of hours gas turbine and PtG unit are utilized at different natural gas prices considering the February data in Case B with the budget of uncertainty 0. FIGURE 17 The number of hours gas turbine and PtG unit are utilized at different natural gas prices considering the February data in Case B with the budget of uncertainty 36. natural gas prices from their nominal values, which poses a risk of diminishing GenCo’s profits. 4.2.5 Case Study 5: The natural gas price sensitivity analysis In this section, we conduct a sensitivity analysis to explore the GenCo’s responsiveness to natural gas prices and understand their impact on decision-making in both the electricity and natural gas markets. Using Case B from Case Study 1, we examine various scenarios and compare the outcomes with the results from previous subsections. To show the effect of natural gas prices on the utilization of the gas turbine and PtG unit, various natural gas prices are examined in simulations to identify the natural gas price threshold at which the gas turbine and PtG unit are extensively utilized. Figures 16 and 17 depict the number of hours the gas turbine and PtG unit are utilized at different natural gas prices, considering the February data. As natural gas prices decrease, resulting in a more positive SS, the gas turbine’s utilization increases significantly, contributing to enhanced GenCo profits (as illustrated in Figures 18 and 19). Conversely, as natural gas prices rise and SS becomes less favourable, the gas turbine’s utilization decreases due to its diminished economic viability. Notably, when SS reaches −8.3, the PtG unit becomes economical and starts being utilized. This utilization trend intensifies with further increases in natural gas prices, considering the cost of carbon consumed in the PtG process. Similar patterns for July data are presented in Figures 20–23. When SS exceeds zero, the gas turbine’s utilization becomes economically justified for GenCo’s profitability, particularly as natural gas prices decrease. The key difference between the results from February and July data is the threshold at which FIGURE 18 The GenCo’s profit at different natural gas prices considering the February data in Case B with the budget of uncertainty 0. FIGURE 19 The GenCo’s profit at different natural gas prices considering the February data in Case B with the budget of uncertainty 36. FIGURE 20 The number of hours gas turbine and PtG unit are utilized at different natural gas prices considering the July data in Case B with the budget of uncertainty 0. FIGURE 21 The number of hours gas turbine and PtG unit are utilized at different natural gas prices considering the July data in Case B with the budget of uncertainty 36. FIGURE 22 The GenCo’s profit at different natural gas prices considering the July data in Case B with the budget of uncertainty 0. FIGURE 23 The GenCo’s profit at different natural gas prices considering the July data in Case B with the budget of uncertainty 36. the GenCo shifts from using the gas turbine to relying more on the PtG unit for increased profitability. This shift is expected, given the higher electricity prices observed at different hours in July compared to February. 5 CONCLUSION This paper introduces a self-scheduling model based on adaptive robust optimization to address uncertainties in wind farm generation for a Generation Company (GenCo). The model incorporates the simultaneous utilization of a gas turbine and a power-to-gas (PtG) converter unit for participation in dayahead and real-time electricity markets, as well as the natural gas day-ahead market. The optimization model, formulated as a tri-level model, is effectively solved using the column and constraint generation (C&CG) method. Notably, the proposed model presents the natural gas network as a substantial storage system to empower the GenCo to effectively deal with the uncertainties. The numerical results demonstrate the GenCo’s ability to engage in arbitrage between electricity and gas markets or across different hours in the electricity market by efficiently deploying the gas turbine and PtG unit to maximize profits while compensating for uncertainties. The findings also underscore that, as the level of uncertainty in parameters—particularly the prices of electricity and natural gas—increases, the utilization of the gas turbine and PtG unit becomes more pronounced, ensuring effective coverage of uncertainties. The statistical characteristics of nominal electricity prices in the day-ahead market and nominal wind power generation significantly impact the utilization of PtG units and gas units. In areas where electricity prices in the day-ahead market exhibit greater variability, PtG and gas units are used extensively. Furthermore, the study highlights the significant impact of considering the uncertain available capacity of the natural gas pipeline. This inclusion enhances the accuracy of modelling the GenCo’s performance, particularly in scenarios characterized by high natural gas prices and/or elevated uncertainty in natural gas consumption by non-electric customers, which may occupy pipeline capacity with higher supply priority. To improve and further develop the model presented in this paper, future work could consider incorporating reserve markets in operational planning. Additionally, it would be beneficial to discuss the selection of optimal capacities for the gas turbine and PtG unit to mitigate the uncertainty and intermittency associated with the wind farm generation. NOMENCLATURE Indices _t_ Index for hours _j_ index for iterations Sets _ΩT_ Set of operation intervals Θ <sup>_L_</sup> <sup>1</sup> Set of variables of the first-level problem Θ <sup>_L_</sup> <sup>2</sup> Set of variables of the second-level problem Θ <sup>_L_</sup> <sup>3</sup> Set of variables of the third-level problem Θ <sup>_D_</sup> Set of variables of the dual problem Parameters _K_ <sup>+</sup> A parameter greater than 1 to determine the ratio of the purchasing price of electric energy from the real-time market to the day-ahead market price. _K_ <sup>−</sup> A parameter less than 1 to determine the ratio of the selling price of electric energy from the real-time market to the day-ahead market price _Pt_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> Nominal value of city natural gas energy _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> Nominal value of city natural gas energy consumption at hour _t_ (MWh) ̄ _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> Variation range of̄ _P_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> Variation range of̄ _P_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> at hour _t_ (MWh) _p_ <sup>_GT_</sup> <sup>,max</sup> Maximum electrical energy generation by gas turbine per hour (MWh) _P_ <sup>_PIP_</sup> Maximum natural gas energy that can be transferred by the pipeline per hour (MWh) _p_ <sup>_PtG_</sup> <sup>,max</sup> Maximum electric energy input to PtG unit per hour (MWh) _P_ <sup>_W_</sup> _t_ Nominal value of wind energy generation at <sup>_W_</sup> _t_ Nominal value of wind energy generation at hour _t_ (MWh) _PWt_ Variation range of̄ _P_ <sup>_W_</sup> _t_ at hour _t_ (MWh) _p_ <sup>_W_</sup> <sup>,max</sup> Maximum electrical energy generation by wind farm per hour (MWh) ? Carbon usage factor in methane gas production process by PtG unit (MWh/ton) Γ Budget of uncertainty ? <sup>_C_</sup> Carbon dioxide (CO2) price ($/ton) _P_ _W_ Variation range of̄ _P_ <sup>_W_</sup> _t_ _t_ _DA_, _e_ Nominal value of electric energy price in the _t_ day-ahead market at hour _t_ ($/MWh) ? _t_ ? _DA_, _e_ Variation range of̄ ? _t_ _DA_, _e_ _t_ at hour _t_ ($/MWh) ? ? _DA_, _ng_ Nominal value of natural gas energy price in the day-ahead market ($/MWh) _ng_ Variation range of̄ ? _DA_, _ng_ ($/MWh) ? Conversion factor of electrical power to methane gas by PtG unit (%) _DA_, _ng_ Variation range of̄ ? Variables _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> _p_ <sup>_CITY_</sup> _t_ <sup>,</sup> <sup>_ng_</sup> Worst case realization of city natural gas energy consumption at hour _t_ (MWh) _p_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> Electrical energy offer in the day-ahead mar _t_ ket at hour _t_ (MWh) _p_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> Auxiliary variable for offering more than _t_ the nominal value in the electrical energy day-ahead market at hour _t_ (MWh) _p_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> Auxiliary variable for offering less than the <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> Auxiliary variable for offering less than the _t_ nominal value in the electrical energy dayahead market at hour _t_ (MWh) _p_ <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> Natural gas energy offer in the day-ahead market (MWh) _p_ <sup>_GT_</sup> <sup>,</sup> <sup>_e_</sup> _p_ <sup>_GT_</sup> <sup>,</sup> <sup>_e_</sup> Electrical energy produced by the gas turbine _t_ at hour _t_ (MWh) _p_ <sup>_GT_</sup> <sup>,</sup> <sup>_ng_</sup> Natural gas energy consumed by the gas _t_ <sup>_GT_</sup> <sup>,</sup> <sup>_ng_</sup> Natural gas energy consumed by the gas _t_ turbine at hour _t_ (MWh) _p_ <sup>_ng_</sup> _t_ Natural gas energy transferred by the pipeline at hour _t_ (MWh) _p_ <sup>_PtG_</sup> <sup>,</sup> <sup>_e_</sup> Electrical energy consumed by the PtG unit _p_ <sup>_PtG_</sup> <sup>,</sup> <sup>_e_</sup> Electrical energy consumed by the PtG unit _t_ for the production of methane gas at hour _t_ (MWh) _p_ <sup>_PtG_</sup> <sup>,</sup> <sup>_ng_</sup> Methane gas energy produced by the PtG _p_ <sup>_PtG_</sup> <sup>,</sup> <sup>_ng_</sup> Methane gas energy produced by the PtG _t_ unit at hour _t_ (MWh) _p_ <sup>_RT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup> Electrical energy sold in the real-time market _t_ at hour _t_ (MWh) _p_ <sup>_RT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> Electric energy purchased in the real-time <sup>_RT_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup> Electric energy purchased in the real-time _t_ market at hour _t_ (MWh) _p_ <sup>_W_</sup> Worst case realization of electrical energy _t_ _p_ <sup>_W_</sup> Worst case realization of electrical energy _t_ generated by the wind farm at hour _t_ (MWh) _Ut_ <sup>+</sup> Binary variable to determine the situation of 2. Khani, H., Farag, H.E.Z.: Optimal day-ahead scheduling of power-to-gas energy storage and gas load management in wholesale electricity and gas markets. IEEE Trans. Sustainable Energy 9, 940–951 (2018) 3. Wang, C., et al.: Impact of power-to-gas cost characteristics on power-gasheating integrated system scheduling. IEEE Access 7, 17654–17662 (2019) 4. Fang, J., et al.: Dynamic optimal energy flow in the integrated natural gas and electrical power systems. IEEE Trans. Sustainable Energy 9, 188–198 (2017) 5. Lewandowska-Bernat, A., Desideri, U.: Opportunities of power-to-gas technology in different energy systems architectures. Appl. Energy 228, 57–67 (2018) 6. Ma, J., et al.: Power-to-gas based subsurface energy storage: A review. Renewable Sustainable Energy Rev. 97, 478–496 (2018) 7. Xing, X., Lin, J., Song, Y., Zhou, Y., Mu, S., Hu, Q.: Modeling and operation of the power-to-gas system for renewables integration: a review. CSEE J. Power Energy Syst. 4, 168–178, (2018) 8. Zhang, R., Jiang, T., Li, F., Li, G., Chen, H., Li, X.: Coordinated bidding strategy of wind farms and power-to-gas facilities using a cooperative game approach. IEEE Trans. Sustainable Energy 11, 2545–2555 (2020) 9. Attarha, A., Amjady, N., Dehghan, S., Vatani, B.: Adaptive robust selfscheduling for a wind producer with compressed air energy storage. IEEE Trans. Sustainable Energy 9, 1659–1671 (2018) 10. Baringo, A., Baringo, L.: A stochastic adaptive robust optimization approach for the offering strategy of a virtual power plant. IEEE Trans. Power Syst. 32, 3492–3504 (2017) 11. Baringo, A., Baringo, L., Arroyo, J.M.: Day-ahead self-scheduling of a virtual power plant in energy and reserve electricity markets under uncertainty. IEEE Trans. Power Syst. 34, 1881–1894 (2019) 12. Li, Z., Yang, P., Guo, Y., Lu, G.: Medium-term multi-stage distributionally robust scheduling of hydro–wind–solar complementary systems in electricity markets considering multiple time-scale uncertainties. Appl. Energy 347, 121371 (2023) 13. Thatte, A.A., Xie, L., Viassolo, D.E., Singh, S.: Risk measure based robust bidding strategy for arbitrage using a wind farm and energy storage. IEEE Trans. Smart Grid 4, 2191–2199 (2013) 14. Cobos, N.G., Arroyo, J.M., Alguacil, N., Wang, J.: Robust energy and reserve scheduling considering bulk energy storage units and wind uncertainty. IEEE Trans. Power Syst. 33, 5206–5216 (2018) 15. Rahimiyan, M., Baringo, L.: Strategic bidding for a virtual power plant in the day-ahead and real-time markets: A price-taker robust optimization approach. IEEE Trans. Power Syst. 31, 2676–2687 (2016) 16. Baringo, L., Conejo, A.J.: Strategic offering for a wind power producer. IEEE Trans. Power Syst. 28, 4645–4654 (2013) 17. Dai, T., Qiao, W.: Optimal bidding strategy of a strategic wind power producer in the short-term market. IEEE Trans. Sustainable Energy 6, 707–719 (2015) 18. Ding, H., Pinson, P., Hu, Z., Song, Y.: Integrated bidding and operating strategies for wind-storage systems. IEEE Trans. Sustainable Energy 7, 163–172 (2016) 19. Rüdisüli, M., et al.: Potential of renewable surplus electricity for powerto-gas and geo-methanation in Switzerland. Int. J. Hydrogen Energy 48, 14527–14542 (2023) 20. Li, Xin, et al.: Operation optimization for integrated energy system based on hybrid CSP-CHP considering power-to-gas technology and carbon capture system. J. Cleaner Prod. 391, 136119 (2023) 21. Sánchez de la Nieta, A.A., Contreras, J., Muñoz, J.I.: Optimal coordinated wind-hydro bidding strategies in day-ahead markets. IEEE Trans. Power Syst. 28, 798–809 (2013) 22. Khodayar, M.E., Shahidehpour, M.: Stochastic price-based coordination of intrahour wind energy and storage in a generation company. IEEE Trans. Sustainable Energy 4, 554–562 (2013) 23. de la Nieta, A.A.S., Contreras, J., Catalão, J.P.S.: Optimal single wind hydropump storage bidding in day-ahead markets including bilateral contracts. IEEE Trans. Sustainable Energy 7, 1284–1294 (2016) 24. Garcia-Gonzalez, J., de la Muela, R.M.R., Santos, L.M., Gonzalez, A.M.: Stochastic joint optimization of wind generation and pumped-storage units in an electricity market. IEEE Trans. Power Syst. 23, 460–468 (2008) _Ut_ <sup>+</sup> Binary variable to determine the situation of shortage or excess of the offer in the electrical energy day-ahead market compared to the electrical energy generation by the wind farm at hour _t_ ? Auxiliary continuous variable ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup>, ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup>, Auxiliary binary variables _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>+</sup>, ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup>, <sup>+</sup>, ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> <sup>−</sup>, ? _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>+</sup>, ? _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>−</sup>, Auxiliary binary variables ? _t_ <sup>_CITY_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>−</sup>, ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>+</sup>, ? _t_ <sup>_W_</sup> <sup>,</sup> <sup>+</sup>, ? _t_ <sup>_W_</sup> <sup>,</sup> ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> <sup>−</sup> ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> ? _t_ <sup>_DA_</sup> <sup>,</sup> <sup>_e_</sup> Worst case realization of electrical energy day-ahead market price at hour _t_ ($/MWh) ? <sup>_DA_</sup> <sup>,</sup> <sup>_ng_</sup> Worst-case realization of natural gas energy day-ahead market price ($/MWh) AUTHOR CONTRIBUTIONS Mojtaba Fereydani : Conceptualization; data curation; investigation; methodology; resources; software; validation; visualization; writing—original draft. Mohammad Amin Latify : Conceptualization; investigation; methodology; supervision; validation; writing—original draft; writing—review and editing. CONFLICT OF INTEREST STATEMENT The authors declare no conflicts of interest. DATA AVAILABILITY STATEMENT The data that support the findings of this study are available from the corresponding author upon reasonable request. ORCID _MohammadAmin Latify_ [https://orcid.org/0000-0001-7745-](https://orcid.org/0000-0001-7745-8683) [8683](https://orcid.org/0000-0001-7745-8683) REFERENCES 1. Clegg, S., Mancarella, P.: Integrated modeling and assessment of the operational impact of power-to-gas (P2G) on electrical and gas transmission networks. IEEE Trans. Sustainable Energy 6, 1234–1244 (2015) 25. Gong, N., Luo, X., Ma, H., Wang, Q., Wang, K.: Optimal stochastic scheduling of thermal-wind GENCOs trading in the day-ahead market including bilateral contracts with BSS. IET Gener. Transm. Distrib. 12, 3330–3338 (2018) 26. Shehzad, M.F., Ishaq, H., Crawford, C.: Offshore wind energy prospects for power-to-direct air capture and power-to-gas. Int. J. Hydrogen Energy 48, 39216–39224 (2023) 27. Yilmaz, H.Ü., Kimbrough, S.O., van Dinther, C., Keles, D.: Power-togas: Decarbonization of the European electricity system with synthetic methane. Appl. Energy 323, 119538 (2022) 28. Meng, Y., Mansouri, S.A., Jordehi, A.R., Tostado-Véliz, M.: Ecoenvironmental scheduling of multi-energy communities in local electricity and natural gas markets considering carbon taxes: a decentralized bi-level strategy. J. Cleaner Prod. 440, 140902 (2024) 29. Mansouri, S.A., Javadi, M.S., Ahmarinejad, A., Nematbakhsh, E., Zare, A., Catalão, J.P.S.: A coordinated energy management framework for industrial, residential and commercial energy hubs considering demand response programs. Sustainable Energy Technol. Assess. 47, 101376 (2021) 30. Mansouri, S.A., Jordehi, A.R., Marzband, M., Tostado-Véliz, M., Jurado, F., Aguado, J.A.: An IoT-enabled hierarchical decentralized framework for multi-energy microgrids market management in the presence of smart prosumers using a deep learning-based forecaster. Appl. Energy 333, 120560 (2023) 31. Nie, X., Mansouri, S.A., Jordehi, A.R., Tostado-Véliz, M., Alharthi, Y.Z.: Emerging renewable-based electricity grids under high penetration of cleaner prosumers: unraveling the flexibility issues using a four-layer decentralized mechanism. J. Cleaner Prod. 443, 141107 (2024) 32. Mansouri, S.A., Nematbakhsh, E., Ahmarinejad, A., Jordehi, A.R., Javadi, M.S., Marzband, M.: A hierarchical scheduling framework for resilience enhancement of decentralized renewable-based microgrids considering proactive actions and mobile units. Renewable Sustainable Energy Rev. 168, 112854 (2022) 33. Mansouri, S.A., Ahmarinejad, A., Javadi, M.S., Esmaeel Nezhad, A., Shafie-Khah, M., Catalão, J.P.S.: Demand response role for enhancing the flexibility of local energy systems. In: Graditi G., Di Somma, M. (eds.) Distributed Energy Resources in Local Integrated Energy Systems, pp. 279–313. Elsevier, Amsterdam (2021) 34. Nie, X.P., Mansouri, S.A., Jordehi, A.R., Tostado-Véliz, M.: A two-stage optimal mechanism for managing energy and ancillary services markets in renewable-based transmission and distribution networks by participating electric vehicle and demand response aggregators. Int. J. Electr. Power Energy Syst. 158, 109917 (2024) 35. Mansouri, S.A., Nematbakhsh, E., Jordehi, A.R., Marzband, M., TostadoVéliz, M., Jurado, F.: An interval-based nested optimization framework for deriving flexibility from smart buildings and electric vehicle fleets in the TSO-DSO coordination. Appl. Energy 341, 121062 (2023) 36. Mansouri, S.A., Paredes, Á., González, J.M., Aguado, J.A.: A three-layer game theoretic-based strategy for optimal scheduling of microgrids by leveraging a dynamic demand response program designer to unlock the potential of smart buildings and electric vehicle fleets. Appl. Energy 347, 121440 (2023) 37. Tabar, V.S., Jirdehi, M.A., Jordehi, A.R.: A robust multi-objective joint scheduling of integrated electricity and gas grids considering high penetration of wind and solar units and flexible loads towards achieving a sustainable operation. Int. J. Hydrogen Energy 48(12), 4613–4630 (2023) 38. Gotz, M., et al.: Renewable power-to-gas: A technological and economic review. Renewable Energy 85, 1371–1390 (2015) 39. Zeng, B., Zhao, L.: Solving two-stage robust optimization problems using a column-and-constraint generation method. Oper. Res. Lett. 41, 457–461 (2013) 40. Morales, J.M., Conejo, A.J., Pérez-Ruiz, J.: Short-term trading for a wind power producer. IEEE Trans. Power Syst. 25, 554–564 (2010) 41. Amjady, N., Rashidi, A.A., Zareipour, H.: Stochastic security-constrained joint market clearing for energy and reserves auctions considering uncertainties of wind power producers and unreliable equipment. Int. Trans. Electr. Energy Syst. 23, 451–472 (2013) 42. Wu, X.: Improving electric grid security: Defense planning and security constrained ACOPF via robust optimization. Dissertation, Ohio State University (2018) 43. [ERCOT. http://ercot.com/mktinfo/prices. Accessed May 2021](http://ercot.com/mktinfo/prices) 44. [Energy Information Administration. http://www.eia.gov/. Accessed May](http://www.eia.gov/) 2021 45. Correa-Posada, C.M., Sánchez-Martín, P.: Integrated power and natural gas model for energy adequacy in short-term operation. IEEE Trans. Power Syst. 30, 3347–3355 (2015) 46. General Algebraic Modeling System (GAMS). CPLEX 12 Solver Descrip[tion. http://www.gams.com. Accessed May 2021](http://www.gams.com) How to cite this article: Fereydani, M., Latify, M.A.: Adaptive robust self-scheduling for a wind-based GenCo equipped with power-to-gas system and gas turbine to participate in electricity and natural gas markets. IET Gener. Transm. Distrib. 18, 3669–3695 [(2024). https://doi.org/10.1049/gtd2.13311](https://doi.org/10.1049/gtd2.13311) APPENDIX In this appendix, we introduce the C&CG algorithm, which is used to solve the proposed adaptive robust self-scheduling model [42]. The formulation presented in (A.1) is a tri-level min-max-min problem with a common objective function _f_ <sup>_P_</sup> ( _x_, _y_, _z_ ), where the variables _x_, _y_, and _z_ belong to the first, second, and third levels of the problem, respectively. The superscripts “ _P_ ” and “ _D_ ” refer to the original problem and dual problem formulations, respectively. This formulation is almost similar to the adaptive robust optimization model proposed in Section 2.2.2. s.t _h_ <sup>_D_</sup> <sup>(</sup> _x_, _y_, ?, ? <sup>)</sup> = 0 _g_ <sup>_D_</sup> ( _x_, _y_, ?, ?) ≤ 0 ?, ?∈Δ s.t. _y_ ∈ _Y_ s.t. _x_ ∈ _X_ min _x_ max _y_ min _z_ _f_ <sup>_P_</sup> <sup>(</sup> _x_, _y_, _z_ ) s.t. _h_ <sup>_P_</sup> <sup>(</sup> ) ) _h_ <sup>_P_</sup> <sup>(</sup> _x_, _y_, _z_ = 0 (?) _g_ <sup>_P_</sup> <sup>(</sup> _x_, _y_, _z_ ) ≤ 0 (?) _z_ ∈ _Z_ _x_, _y_, _z_ _x_, _y_, _z_ (A.1) s.t. _y_ ∈ _Y_ _s_ . _t_ . _x_ ∈ _X_ Due to the convexity of the third-level problem, the corresponding dual problem can be found. By substituting this dual problem in (A.1) we have: min _x_ max _y_ max?,? _f_ <sup>_D_</sup> ( _x_, _y_, ?, ?) (A.2) The second and third levels of the problem can be conceptualized as a max-max problem. The formulated problem (A.2) can then be restructured into a single-level problem (A.3). Consequently, the initial min-max-min problem is transformed into a min-max problem, that can be solved through a master problem and a sub-problem using an iterative procedure until a specific convergence criterion is reached. This min-max problem is as follows: min _x_ max _y_, _u_, _b_ _f_ <sup>_D_</sup> ( _x_, _y_, ?, ?) s.t. _h_ <sup>_D_</sup> <sup>(</sup> _x_, _y_, ?, ? <sup>)</sup> = 0 _g_ <sup>_D_</sup> ( _x_, _y_, ?, ?) ≤ 0 ?, ?∈Δ _y_ ∈ _Y_ s.t. _x_ ∈ _X_ s.t. (A.3) The corresponding master problem of (A.3) is presented in (A.5). This is a relaxed version of (A.3) or (A.1); since _y_ is considered fixed. Therefore, the solution to the master problem presented in (A.5) finds a lower bound for the optimal solution of (A.1) or (A.3). Notably, the subscript “ _j_ ” is used as the counter of the solution procedure iterations. In each iteration a copy of the third level of the original problem (A.1) is added to the master problem. In this version, the variables of the second level of the original problem (i.e. _y_ <sup>∗</sup> _j_ <sup>),</sup> <sup>appear</sup> <sup>as</sup> <sup>constants</sup> <sup>in</sup> <sup>the</sup> <sup>formula-</sup> tion. As the iterations progress, more copies are included which results in more accuracy of the master problem in modelling the original problem (A.1). In this procedure, the lower bound found by solving the master problem is continuously increased by iterations. min _x_, _y_ _j_ ? The corresponding sub-problem is presented in (A.4) which is a single-level maximization problem, where the upper-level problem variables, that is _x_, are considered fixed to a given value. The problem presented in (A.4) is a constrained version of (A.3). Therefore, the optimal solution of (A.4) finds an upper bound for the optimal solution of (A.1) or (A.3). max _y_,?,? _f_ <sup>_D_</sup> ( _x_ <sup>∗</sup>, _y_, ?, ?) ? ≥ _f_ <sup>_D_</sup> _j_ ( _x_, _y_ <sup>∗</sup> _j_ <sup>∗</sup> _j_ <sup>,</sup> <sup>_z j_</sup> ) ( _j_ ∀ _j_ ∈ _J_ ) ) _h_ <sup>_D_</sup> _j_ _h_ <sup>_D_</sup> _j_ _g_ <sup>_D_</sup> _j_ _x_, _y_ <sup>∗</sup> _j_ <sup>,</sup> ( <sup>∗</sup> _j_ <sup>,</sup> <sup>_z j_</sup> <sup>∗</sup> _j_ <sup>,</sup> <sup>_z j_</sup> = 0 ∀ _j_ ∈ _J_ ≤ 0 ∀ _j_ ∈ _J_ (A.5) _g_ <sup>_D_</sup> _x_, _y_ <sup>∗</sup> _j_ s.t. _h_ <sup>_D_</sup> <sup>(</sup> _x_ <sup>∗</sup>, _y_, ?, ? <sup>)</sup> = 0 _g_ <sup>_D_</sup> ( _x_ <sup>∗</sup>, _y_, ?, ?) ≤ 0 ?, ?∈Δ _y_ ∈ _Y_ (A.4) _z j_ ∈ _Z_ _x_ ∈ _X_ ∀ _j_ ∈ _J_ As the solution procedure progresses, the lower bound and the upper bound get closer to each other. The solution procedure stops when the lower and upper bounds are close enough.

섹션 본문

섹션 본문이 없습니다.

참고문헌 42건

  1. Integrated Modeling and Assessment of the Operational Impact of Power-to-Gas (P2G) on Electrical and Gas Transmission Networks IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2015 10.1109/tste.2015.2424885
  2. Renewable Power-to-Gas: A technological and economic review Renewable Energy · Elsevier BV · 2015 10.1016/j.renene.2015.07.066
  3. Optimal Bidding Strategy of a Strategic Wind Power Producer in the Short-Term Market IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2015 10.1109/tste.2015.2406322
  4. Integrated Power and Natural Gas Model for Energy Adequacy in Short-Term Operation IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2014 10.1109/tpwrs.2014.2372013
  5. Risk Measure Based Robust Bidding Strategy for Arbitrage Using a Wind Farm and Energy Storage IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2013 10.1109/tsg.2013.2271283
  6. Stochastic Price-Based Coordination of Intrahour Wind Energy and Storage in a Generation Company IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2013 10.1109/tste.2012.2228284
  7. Strategic Offering for a Wind Power Producer IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2013 10.1109/tpwrs.2013.2273276
  8. 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
  9. Stochastic security-constrained joint market clearing for energy and reserves auctions considering uncertainties of wind power producers and unreliable equipment International Transactions on Electrical Energy Systems · Wiley · 2012 10.1002/etep.670
  10. Short-Term Trading for a Wind Power Producer IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2010 10.1109/tpwrs.2009.2036810
  11. Stochastic Joint Optimization of Wind Generation and Pumped-Storage Units in an Electricity Market IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2008 10.1109/tpwrs.2008.919430
  12. Optimal coordinated wind-hydro bidding strategies in day-ahead markets IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2012 10.1109/tpwrs.2012.2225852
  13. Integrated Bidding and Operating Strategies for Wind-Storage Systems IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2015 10.1109/tste.2015.2472576
  14. Optimal Single Wind Hydro-Pump Storage Bidding in Day-Ahead Markets Including Bilateral Contracts IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2016 10.1109/tste.2016.2544704
  15. Strategic Bidding for a Virtual Power Plant in the Day-Ahead and Real-Time Markets: A Price-Taker Robust Optimization Approach IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2015 10.1109/tpwrs.2015.2483781
  16. A Stochastic Adaptive Robust Optimization Approach for the Offering Strategy of a Virtual Power Plant IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2016 10.1109/tpwrs.2016.2633546
  17. Dynamic Optimal Energy Flow in the Integrated Natural Gas and Electrical Power Systems IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2017 10.1109/tste.2017.2717600
  18. Optimal Day-Ahead Scheduling of Power-to-Gas Energy Storage and Gas Load Management in Wholesale Electricity and Gas Markets IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2017 10.1109/tste.2017.2767064
  19. Robust Energy and Reserve Scheduling Considering Bulk Energy Storage Units and Wind Uncertainty IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2018 10.1109/tpwrs.2018.2792140
  20. Adaptive Robust Self-Scheduling for a Wind Producer With Compressed Air Energy Storage IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2018 10.1109/tste.2018.2806444
  21. Optimal stochastic scheduling of thermal‐wind GENCOs trading in the day‐ahead market including bilateral contracts with BSS IET Generation Transmission & Distribution · Institution of Engineering and Technology · 2018 10.1049/iet-gtd.2018.0060
  22. Opportunities of power-to-gas technology in different energy systems architectures Applied Energy · Elsevier BV · 2018 10.1016/j.apenergy.2018.06.001
  23. Modeling and operation of the power-to-gas system for renewables integration: a review CSEE Journal of Power and Energy Systems · China Electric Power Research Institute · 2018 10.17775/cseejpes.2018.00260
  24. Power-to-gas based subsurface energy storage: A review Renewable and Sustainable Energy Reviews · Elsevier BV · 2018 10.1016/j.rser.2018.08.056
  25. Day-Ahead Self-Scheduling of a Virtual Power Plant in Energy and Reserve Electricity Markets Under Uncertainty IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2018 10.1109/tpwrs.2018.2883753
  26. Impact of Power-to-Gas Cost Characteristics on Power-Gas-Heating Integrated System Scheduling IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2894866
  27. Coordinated Bidding Strategy of Wind Farms and Power-to-Gas Facilities Using a Cooperative Game Approach IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2020 10.1109/tste.2020.2965521
  28. Demand response role for enhancing the flexibility of local energy systems Elsevier eBooks · Elsevier BV · 2021 10.1016/b978-0-12-823899-8.00011-x
  29. A coordinated energy management framework for industrial, residential and commercial energy hubs considering demand response programs Sustainable Energy Technologies and Assessments · Elsevier BV · 2021 10.1016/j.seta.2021.101376
  30. Power-to-gas: Decarbonization of the European electricity system with synthetic methane Applied Energy · Elsevier BV · 2022 10.1016/j.apenergy.2022.119538
  31. A hierarchical scheduling framework for resilience enhancement of decentralized renewable-based microgrids considering proactive actions and mobile units Renewable and Sustainable Energy Reviews · Elsevier BV · 2022 10.1016/j.rser.2022.112854
  32. A robust multi-objective joint scheduling of integrated electricity and gas grids considering high penetration of wind and solar units and flexible loads towards achieving a sustainable operation International Journal of Hydrogen Energy · Elsevier BV · 2022 10.1016/j.ijhydene.2022.11.028
  33. An IoT-enabled hierarchical decentralized framework for multi-energy microgrids market management in the presence of smart prosumers using a deep learning-based forecaster Applied Energy · Elsevier BV · 2023 10.1016/j.apenergy.2022.120560
  34. Operation optimization for integrated energy system based on hybrid CSP-CHP considering power-to-gas technology and carbon capture system Journal of Cleaner Production · Elsevier BV · 2023 10.1016/j.jclepro.2023.136119
  35. Potential of renewable surplus electricity for power-to-gas and geo-methanation in Switzerland International Journal of Hydrogen Energy · Elsevier BV · 2023 10.1016/j.ijhydene.2022.12.290
  36. An interval-based nested optimization framework for deriving flexibility from smart buildings and electric vehicle fleets in the TSO-DSO coordination Applied Energy · Elsevier BV · 2023 10.1016/j.apenergy.2023.121062
  37. Medium-term multi-stage distributionally robust scheduling of hydro–wind–solar complementary systems in electricity markets considering multiple time-scale uncertainties Applied Energy · Elsevier BV · 2023 10.1016/j.apenergy.2023.121371
  38. A three-layer game theoretic-based strategy for optimal scheduling of microgrids by leveraging a dynamic demand response program designer to unlock the potential of smart buildings and electric vehicle fleets Applied Energy · Elsevier BV · 2023 10.1016/j.apenergy.2023.121440
  39. Offshore wind energy prospects for power-to-direct air capture and power-to-gas International Journal of Hydrogen Energy · Elsevier BV · 2023 10.1016/j.ijhydene.2023.06.164
  40. Eco-environmental scheduling of multi-energy communities in local electricity and natural gas markets considering carbon taxes: A decentralized bi-level strategy Journal of Cleaner Production · Elsevier BV · 2024 10.1016/j.jclepro.2024.140902
  41. Emerging renewable-based electricity grids under high penetration of cleaner prosumers: Unraveling the flexibility issues using a four-layer decentralized mechanism Journal of Cleaner Production · Elsevier BV · 2024 10.1016/j.jclepro.2024.141107
  42. A two-stage optimal mechanism for managing energy and ancillary services markets in renewable-based transmission and distribution networks by participating electric vehicle and demand response aggregators International Journal of Electrical Power & Energy Systems · Elsevier BV · 2024 10.1016/j.ijepes.2024.109917