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

A conic model for electrolyzer scheduling

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Enrica Raheli — Technical University of Denmark, Kgs. Lyngby, Denmark
  2. Yannick Werner — Norwegian University of Science and Technology, Trondheim, Norway|||Technical University of Denmark, Kgs. Lyngby, Denmark
  3. Jalal Kazempour — Technical University of Denmark, Kgs. Lyngby, Denmark
DOI
10.1016/j.compchemeng.2023.108450
저널
Computers & Chemical Engineering
발행년도
2023
발행기관
Elsevier BV
피인용수
40
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.compchemeng.2023.108450
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W4387460997

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

The hydrogen production curve of the electrolyzer describes the nonlinear and nonconvex relationship between its power consumption and hydrogen production. An accurate representation of this curve is essential for the optimal scheduling of the electrolyzer. The current state-of-the-art approach is based on piecewise linear approximation, which requires binary variables and does not scale well for large-scale problems. To overcome this barrier, we propose two models, both built upon convex relaxations of the hydrogen production curve. The first one is a linear relaxation of the piecewise linear approximation, while the second one is a conic relaxation of a quadratic approximation. Both relaxations are exact under prevalent operating conditions. We prove this mathematically for the conic relaxation. Using a realistic case study, we show that the conic model, in comparison to the other models, provides a satisfactory trade-off between computational complexity and solution accuracy for large-scale problems.

본문 91,689자

본문 펼치기
## A Conic Model for Electrolyzer Scheduling Enrica Raheli <sup>a,</sup> <sup>_∗_</sup>, Yannick Werner <sup>a,b,</sup> <sup>_∗_</sup>, Jalal Kazempour <sup>a</sup> _aTechnical_ _University_ _of_ _Denmark,_ _Kgs._ _Lyngby,_ _Denmark_ _bNorwegian_ _University_ _of_ _Science_ _and_ _Technology,_ _Trondheim,_ _Norway_ Abstract The hydrogen production curve of the electrolyzer describes the nonlinear and nonconvex relationship between its power consumption and hydrogen production. An accurate representation of this curve is essential for the optimal scheduling of the electrolyzer. The current state-of-the-art approach is based on piecewise linear approximation, which requires binary variables and does not scale well for large-scale problems. To overcome this barrier, we propose two models, both built upon convex relaxations of the hydrogen production curve. The first one is a linear relaxation of the piecewise linear approximation, while the second one is a conic relaxation of a quadratic approximation. Both relaxations are exact under prevalent operating conditions. We prove this mathematically for the conic relaxation. Using a realistic case study, we show that the conic model, in comparison to the other models, provides a satisfactory trade-off between computational complexity and solution accuracy for large-scale problems. _Keywords:_ Hydrogen production curve, nonlinear efficiency, hybrid power plant, conic relaxation, exactness Nomenclature Indices and sets _t ∈T_ Set of time steps _t_ _n ∈N_ Set of subperiods _n_ _Hn_ _⊆T_ Set of time steps in subperiod _n_ _s ∈S_ Set of linearization segments _s_ Parameters _λt_ Day-ahead power price in time step _t_ [e/MWh] _χ_ Hydrogen price [e/kg] _As, Bs, Cs_ Polynomial coefficients for segment _s_ [kg _/_ (hMW <sup>2</sup> )] _,_ [kg _/_ (hMW)] _,_ [kg _/_ h] _Dn_ <sup>max</sup> Maximum hydrogen production in subperiod _n_ [kg] _K_ <sup>su</sup> Cold startup cost of the electrolyzer [e] _P_ <sup>min</sup> _<u>, P</u>_ <sup>max</sup> _, P_ <sup>sb</sup> Minimum, maximum, and standby power consumption of the electrolyzer [MW] _<u>P</u>_ _~~s~~_ _, P s_ Lower and upper bounds for power consumption of segment _s_ [MW] _Wt_ Day-ahead wind power production forecast in time step _t_ [MW] _Q_ 1 _, Q_ 0 Polynomial coefficients of the linear underestimator [kg _/_ (hMW)] _,_ [kg _/_ h] Variables _∗_ Corresponding authors. The first two co-authors contributed equally and are listed alphabetically. _Email_ _addresses:_ `enrah@dtu.dk` (Enrica Raheli), `yanwe@dtu.dk` (Yannick Werner), `jalal@dtu.dk` (Jalal Kazempour) _Preprint_ _submitted_ _to_ _Computers_ _&_ _Chemical_ _Engineering_ _September_ _14,_ _2023_ _ft_ _∈_ R <sup>+</sup> Power sold to the grid in time step _t_ [MW] _ht_ _∈_ R <sup>+</sup> Hydrogen production of the electrolyzer in time step _t_ [kg/h] _pt_ _∈_ R <sup>+</sup> Power consumption of the electrolyzer in time step _t_ [MW] _z_ - _s,t_ _∈{_ 0 _,_ 1 _}_ Binary variable defining the segment _s_ that the electrolyzer operates on in time step _t_ _p_ - _s,t_ _∈_ R <sup>+</sup> Power consumption of the electrolyzer in on state in segment _s_ and time step _t_ [MW] _p_ - _t_ _∈_ R <sup>+</sup> Power consumption of the electrolyzer in on state in time step _t_ [MW] _zt_ <sup>on</sup> <sup>_, z_</sup> _t_ <sup>off</sup> <sup>_, z_</sup> _t_ <sup>sb</sup> _∈{_ 0 _,_ 1 _}_ Binary variables defining on, off, and standby state of the electrolyzer in time step _t_ _zt_ <sup>su</sup> _∈{_ 0 _,_ 1 _}_ Binary variable defining a cold startup of the electrolyzer in time step _t_ _t_ <sup>on</sup> <sup>_, z_</sup> _t_ <sup>off</sup> _t_ <sup>off</sup> <sup>_, z_</sup> _t_ <sup>sb</sup> _t_ <sup>su</sup> _∈{_ 0 _,_ 1 _}_ Binary variable defining a cold startup of the electrolyzer in time step _t_ _Notes_ _on_ _the_ _nomenclature_ Variables (continuous and binary) are denoted by lower-case letters. In particular, binary variables are denoted by the letter _z_ . Parameters are denoted by upper-case letters, except hydrogen and electricity prices which are denoted by Greek letters. The set R <sup>+</sup> denotes the set of nonnegative real numbers. 1. Introduction _1.1._ _Background_ Renewable hydrogen produced via electrolysis is widely acknowledged as a key priority to achieve a clean energy transition. Several countries in Europe and globally have published national hydrogen strategies to support the large-scale development of electrolyzers (World Energy Council, 2021). For instance, the 2020 EU Hydrogen strategy sets an electrolyzer capacity target of 40 GW by 2030 (European Comission, 2020). Developing this technology on a large scale poses several challenges, including the scale-up of manufacturing processes, the improvement of system design and materials, the establishment of a supportive policy framework, and the definition of new business models (Badgett et al., 2021; Larscheid et al., 2018). Hybrid power plants consisting of renewable power sources (wind and/or solar) and electrolyzers create synergies based on cross-commodity arbitrage between electricity and hydrogen markets (Larscheid et al., 2018). The plant operator can dynamically control the system to take advantage of volatile electricity prices: selling electricity directly when power prices are high and producing and selling hydrogen when power prices are low (Matute et al., 2021). In this way, the cost of hydrogen production, which mainly depends on the cost of electricity (Nami et al., 2022), is reduced. This requires the development of optimal scheduling models aiming at maximizing the profit of the hybrid power plant. To accurately capture the operational space of the hybrid power plant, those models should be aware of the underlying physics of its components. This poses a challenge particularly for modeling the electrolyzer, for which the relationship between its power consumption and hydrogen production is nonlinear and nonconvex. We refer to this relationship as the _hydrogen_ _production_ _curve_, which does not have a known analytical expression. <sup>1</sup> As the technology is still in an early stage of development, manufacturers disclose very limited information on technical characteristics. From modeling perspective, two main questions arise: First, how to best approximate the hydrogen production curve under limited information availability? Second, how to deal with computational complexity of the nonlinear hydrogen production curve when optimizing dispatch strategies? 1In Ulleberg (2003), a widely adopted empirical equation is presented to describe the relationship between electrolyzer voltage and current density. This equation is noninvertible, making it impossible to derive an analytical expression for the hydrogen production as a function of the power consumption of the electrolyzer. For a comprehensive explanation of the methodology used in this paper to construct the hydrogen production curve, we direct the reader to Baumhof et al. (2023). 2 Efficiency curve Hydrogen production curve P <sup>min</sup> P <sup><u>, max</u></sup> P <sup>max</sup> Power [MW] Figure 1: Schematic efficiency (black) and hydrogen production (red) curves for an alkaline electrolyzer. _P_ <sup>min</sup> and _P_ <sup>max</sup> refer to the minimum and maximum operating range, respectively. _P_ <sup>_η,_</sup> <sup>max</sup> is the power consumption corresponding to the peak efficiency. This figure is plotted based on the methodology in Baumhof et al. (2023) applied to data from Ulleberg (2003) and S´anchez et al. (2018). _1.2._ _Electrolyzer_ _Hydrogen_ _Production_ _Modeling:_ _Status_ _Quo_ The dashed red curve in Figure 1 shows a schematic hydrogen production curve of an alkaline electrolyzer. To better illustrate the nonlinear physics of the electrolyzer, the black curve depicts the ratio of hydrogen production to power consumption, the so-called _efficiency_ _curve_ . The efficiency peaks at around 20-40% of the electrolyzer capacity (Lettenmeier, 2021), for which the corresponding power consumption of the electrolyzer is denoted as _P_ <sup>_η,_</sup> <sup>max</sup> . For power consumption levels higher than _P_ <sup>_η,_</sup> <sup>max</sup>, the efficiency declines almost linearly due to the effect of overpotentials in the polarization curve (S´anchez et al., 2020). For consumption levels below _P_ <sup>_η,_</sup> <sup>max</sup>, the efficiency drops rapidly due to increasing Faraday losses (Ulleberg, 2003). This nonlinearity needs to be incorporated into operational decision-making problems of the electrolyzer through the hydrogen production curve (red). For a more detailed analysis of the physics and technical modeling of the electrolyzer, the interested reader is referred to Ulleberg (2003), S´anchez et al. (2018), and Zheng et al. (2022b). Currently, there is no widely adopted approach for modeling the hydrogen production curve in a computationally tractable way. It is a common practice in the literature to introduce relatively strong simplifications for the hydrogen production curve. For instance, a constant efficiency is used in Matute et al. (2021) and Pavi´c et al. (2022). In Varela et al. (2021), a first and second-order polynomial approximation for the hydrogen production curve is proposed. Although the secondorder polynomial exhibits a smaller error, it has been eventually discarded due to its computational complexity. In Baumhof et al. (2023), it has been shown that a linear hydrogen production curve is not suitable when the electrolyzer frequently operates at partial load, i.e., in the range between _P_ <sup>min</sup> and _P_ <sup>max</sup> in Figure 1. Instead, they propose a piecewise linear hydrogen production curve based on an incremental method and assess the impact of neglecting a detailed electrolyzer model. However, additional binary variables, one for each linearization segment, need to be introduced, increasing the computational burden. Similar piecewise linearization approaches based on convex combination methods are used in Zheng et al. (2022a), Lin et al. (2021), and Kountouris et al. (2023). The reader is referred to Geißler et al. (2012) to learn more about different methods for the piecewise linear approximation. Convex relaxation techniques of nonlinear physics are often employed in the energy system literature. For instance, extensive research has been conducted on developing convex relaxations of the AC optimal power flow problem (Zohrizadeh et al., 2020) and for the optimal natural gas flow 3 _Wt_ _pt_ Electrolyzer _ht_ Hydrogen system demand Electrolyzer Hydrogen _zt_ <sup>on</sup> _t_ <sup>on</sup> <sup>_, z_</sup> _t_ <sup>sb</sup> system Windfarm _ft_ _t_ <sup>sb</sup> <sup>_, z_</sup> _t_ <sup>off</sup> _t_ <sup>off</sup> <sup>_, z_</sup> _t_ <sup>su</sup> _t_ Grid Figure 2: Schematic representation of a hybrid power plant including the decision variables of the corresponding optimization problem. The electrolyzer system includes the hydrogen compressor and other auxiliary components. problem (Borraz-S´anchez et al., 2016). To the best of our knowledge, convex relaxation techniques for modeling the nonlinear hydrogen production curve of electrolyzers have not been explored. _1.3._ _Contributions_ _and_ _Paper_ _Organization_ Existing approaches to modeling the nonlinear hydrogen production curve are either inaccurate, resulting in sub-optimal operational decisions, or do not computationally scale well for large optimization problems. Some examples of large-scale problems involving electrolyzers are the operation and planning of complex power-to-x systems with further downstream chemical processes; the trading problem in multiple markets for electricity, hydrogen, and ancillary services; the operation of individual stacks of large-scale electrolyzers; and the scheduling problem under uncertainty, e.g., when the electrolyzer is part of a renewable-based hybrid power plant. This paper takes a new perspective on modeling the hydrogen production curve based on convex relaxations, ensuring both accuracy and computational scalability for large-scale problems. Starting from the state-of-the-art piecewise linearization method, we derive a corresponding linear relaxation that does not require binary variables. As our main contribution, we propose a conic relaxation of a quadratic approximation of the hydrogen production curve, resulting in the socalled _conic_ _model_ . We mathematically define the sufficient conditions for the conic relaxation to be exact and the necessary and sufficient conditions for it to be inexact. We demonstrate those findings using an illustrative case study. The conic model can be readily applied to the largescale optimization problems mentioned above, among others. We numerically compare it to the state-of-the-art piecewise linearization method and its linear relaxation counterpart, and verify ex-post its well-performance in terms of solution quality, i.e., operational decisions, and reduced computational complexity. The remainder of this paper is organized as follows. Section 2 introduces the system setup and the optimal scheduling problem of the hybrid power plant. Section 3 provides an overview of the different approaches to model the nonlinear hydrogen production curve, including the proposed relaxations. In Section 4, we prove the exactness of the proposed conic relaxation. Section 5 compares the modeling approaches, and Section 6 concludes. 2. Scheduling Problem We consider a hybrid power plant as shown in Figure 2, consisting of a wind farm, an electrolyzer system, and a hydrogen demand. Hereafter, we refer to the electrolyzer as a system including all necessary auxiliary components, such as transformers, rectifiers, pumps, coolers, heaters, and compressors, in addition to the electrolyzer device. Following the current common practice, we assume that hydrogen is sold at a fixed price and that there is an upper limit on the hydrogen demand for a given time interval. The hydrogen demand could be constrained by storage availability or maximum capacity of downstream facilities, such as industry or chemical plants for further conversion into e-fuels. Here, for simplicity, we assume that the demand is constrained by a tube trailer with 4 a constant capacity and scheduled (e.g., daily) pickups. As we do not consider any constraints on the total hydrogen production directly, it is effectively restricted by the total hydrogen demand. We, therefore, use the terms total hydrogen production and demand interchangeably. For the sake of simplicity, we assume that there is no minimum level of hydrogen demand. Electricity generated by the wind farm can either be sold to the grid at a perfectly known price or used for hydrogen production through the electrolyzer. Since the primary focus of this paper is on the modeling of the hydrogen production curve for electrolyzer scheduling in general, ancillary services or other electricity markets are not considered. Participation in these markets can increase the profitability of the hybrid power plant (Zheng et al., 2023; Saretta et al., 2023). Without loss of generality and to avoid discussion about the carbon intensity of the hydrogen produced, we assume that the hybrid power plant never buys electricity from the grid. <sup>2</sup> In the following, we introduce a model for the optimal day-ahead scheduling problem of the given hybrid power plant. We illustrate the problem by showing the corresponding decision variables in Figure 2. The modeling of the hydrogen production curve and the proposed relaxations will be presented in Section 3. To ease notational clarity, we use upper-case and Greek symbols for parameters, and lower-case symbols for variables. Let _t_ _∈T_ denote the set of time steps, which is divided into _n_ _∈N_ subsets _Hn_ _⊆T_, such that _∪n∈N Hn_ = _T_ and _∩n∈N Hn_ = _∅_ . For example, _t_ _∈T_ could be 8760 hours of the year, whereas _Hn,_ _∀n_ _∈{_ 1 _,_ 2 _, ...,_ 365 _}_, indicates the set of 365 days. The operator of the hybrid power plant maximizes the total profit from selling power _ft_ to the grid at the day-ahead power price _λt_, and selling hydrogen _ht_ at a constant price _χ >_ 0. The only operational expense considered is the startup cost _K_ <sup>su</sup> indicated by the binary variable _zt_ <sup>su:</sup> max x _,_ y _,_ z _t∈T_ ( _ftλt_ + _htχ −_ _zt_ <sup>su</sup> <sup>_K_</sup> <sup>su)</sup> <sup>_,_</sup> (1) where x, y, and z denote the set of variables corresponding to the balance of the hybrid power plant, the hydrogen production curve, and the operational states of the electrolyzer, respectively. These three sets will be defined later. The power balance within the hybrid power plant is enforced by _Wt −_ _ft −_ _pt_ = 0 _,_ _∀_ _t ∈T,_ (2a) _ft_ _≥_ 0 _,_ _∀_ _t ∈T,_ (2b) where _Wt_ denotes the deterministic day-ahead forecast of the wind power production and _pt_ is the day-ahead schedule for the power consumption of the electrolyzer in time step _t_ . Constraint (2b) prohibits purchasing power from the grid. Without loss of generality, the curtailment of wind power production is not allowed, irrespective of the power price. In each subset of time steps _Hn_, e.g., over every day _n_ _∈N_, the total hydrogen production is limited by the hydrogen demand _Dn_ <sup>max</sup>, which, e.g., represents the capacity of an available tube trailer for hydrogen transportation: _t∈Hn_ _ht_ _≤_ _Dn_ <sup>max</sup> _,_ _∀_ _n ∈N_ _,_ (2c) _ht_ _≥_ 0 _,_ _∀_ _t ∈T ._ (2d) 2According to the “Renewable Fuels of Non-Biological Origin (RFNBO)” Delegated Act, published by the European Commission in 2023, there are some exceptions that allow the hydrogen production to be labeled green when buying electricity from the grid, e.g., when the price or carbon intensity of the electricity is low. These exceptions are not considered in this paper but the interested reader is referred to European Commission (2023) to learn more about the EU regulation. 5 Constraint (2d) ensures that the hydrogen production is nonnegative. The set of variables x is defined as x = _{ft, pt, ht}_ . We consider three operational states for the electrolyzer, namely on, standby, and off (Matute et al., 2021; Varela et al., 2021; Zheng et al., 2022b; Baumhof et al., 2023). In the on state, the electrolyzer is consuming power and producing hydrogen. Below a certain minimum power consumption, the electrolyzer has to be turned to standby or off. In standby, the electrolyzer does not produce hydrogen but consumes a small amount of power to keep the system running and be able to turn on immediately. On the contrary, in the off state, the electrolyzer does not consume any power but takes several minutes and a significant amount of electricity to be switched back to the on state. The transition from the off to on state is referred to as cold startup. Modeling these operational states and transitions in the scheduling problem requires binary variables. The three operational states, i.e., on, off, and standby, are indicated by binary variables _zt_ <sup>on</sup> <sup>_, z_</sup> _t_ <sup>off</sup> <sup>_, z_</sup> _t_ <sup>sb,</sup> respectively. They constrain the feasible power consumption of the electrolyzer as _t_ <sup>on</sup> <sup>_, z_</sup> _t_ <sup>off</sup> _t_ <sup>off</sup> <sup>_, z_</sup> _t_ <sup>sb</sup> _zt_ <sup>on</sup> _t_ <sup>on</sup> + _zt_ <sup>off</sup> _t_ <sup>off</sup> + _zt_ <sup>sb</sup> _t_ <sup>sb</sup> = 1 _,_ _∀_ _t ∈T,_ (3a) _t_ <sup>on</sup> + _P_ <sup>sb</sup> _zt_ <sup>sb</sup> _t_ <sup>on</sup> + _P_ <sup>sb</sup> _zt_ <sup>sb</sup> _pt_ _≤_ _P_ <sup>max</sup> _zt_ <sup>on</sup> _pt_ _≥_ _P_ <sup>min</sup> _zt_ <sup>on</sup> _t_ <sup>sb</sup> <sup>_,_</sup> _∀_ _t ∈T,_ (3b) _zt_ <sup>su</sup> _t_ <sup>su</sup> _≥_ _zt_ <sup>off</sup> _−_ _t_ <sup>off</sup> _−_ 1 <sup>+</sup> <sup>_z_</sup> _t_ <sup>on</sup> _t_ <sup>on</sup> + _zt_ <sup>sb</sup> _t_ <sup>sb</sup> <sup>_,_</sup> _∀_ _t ∈T,_ (3c) _t_ <sup>sb</sup> <sup>_−_</sup> <sup>1</sup> <sup>_,_</sup> _∀_ _t ∈T \_ 1 _,_ (3d) _zt_ <sup>su</sup> =1 <sup>= 0</sup> <sup>_,_</sup> (3e) _zt_ <sup>su</sup> =1 _zt_ <sup>on</sup> _t_ <sup>off</sup> <sup>_, z_</sup> _t_ <sup>sb</sup> _t_ <sup>su</sup> _∈{_ 0 _,_ 1 _},_ _∀_ _t ∈T ._ (3f) _t_ <sup>on</sup> <sup>_, z_</sup> _t_ <sup>off</sup> _t_ <sup>sb</sup> <sup>_, z_</sup> _t_ <sup>su</sup> Constraint (3a) ensures mutual exclusiveness of the operational states. The corresponding power consumption is constrained by (3b) and (3c) based on the standby, minimum, and maximum power consumption levels _P_ <sup>sb</sup> _, P_ <sup>min</sup> _,_ and _P_ <sup>max</sup>, respectively. Constraints (3d) and (3e) define a cold startup _zt_ <sup>su</sup> _∈{_ 0 _,_ 1 _}_ when the electrolyzer changes from off to on state. Lastly, the operational cold startup _zt_ <sup>su</sup> _∈{_ 0 _,_ 1 _}_ when the electrolyzer changes from off to on state. Lastly, the operational states and transitions are restricted to be binary by (3f). The set of variables z is defined as z = _{zt_ <sup>on</sup> <sup>_, z_</sup> _t_ <sup>sb</sup> <sup>_, z_</sup> _t_ <sup>off</sup> <sup>_, z_</sup> _t_ <sup>su</sup> <sup>_}_</sup> <sup>.</sup> _t_ <sup>on</sup> <sup>_, z_</sup> _t_ <sup>sb</sup> _t_ <sup>sb</sup> <sup>_, z_</sup> _t_ <sup>off</sup> _t_ <sup>off</sup> <sup>_, z_</sup> _t_ <sup>su</sup> z = _{zt_ <sup>on</sup> <sup>_, z_</sup> _t_ <sup>sb</sup> <sup>_, z_</sup> _t_ <sup>off</sup> <sup>_, z_</sup> _t_ <sup>su</sup> <sup>_}_</sup> <sup>.</sup> The hydrogen production curve (HYP), illustrated by the red curve in Figure 1, relates the power consumption to the hydrogen production of the electrolyzer in a general form of _g_ ( _ht, pt_ ) = 0 _,_ _∀_ _t ∈T ._ (4) In the following section, we present three different approximation and/or relaxation models for (4), including our proposed conic model. Each model ends up in a set of constraints that replaces (4), which is part of the optimal scheduling problem of the hybrid power plant (1)-(4). 3. Modeling the Hydrogen Production Curve There is currently limited information available on the technical characteristics of electrolyzers. Therefore, we compute a hydrogen production curve using the process explained in Baumhof et al. (2023), which is based on empirical relationships found by Ulleberg (2003) and S´anchez et al. (2018). We refer to it as the _experimental_ hydrogen production curve HYP-X, which does not have a closed-form analytical expression. Note that it is unnecessary to compute HYP-X if operational data on power consumption and hydrogen production is available, e.g., as in Kopp et al. (2017). The models introduced next can then directly be constructed from the operational data. The three <sup>3</sup> models that replace (4) are 3In Section OC.1 of the online companion (Raheli et al., 2023), we further present a fourth model, HYP-MISOC, which has multiple second-order cone constraints. 6 1. HYP-MIL: The current state-of-the-art piecewise linear approximation, 2. HYP-L: A corresponding linear relaxation, 3. HYP-SOC: A second-order cone relaxation of a quadratic approximation. These three models along with HYP-X are illustrated in Figure 3, together with their efficiency curves. The latter is only illustrated to highlight the differences between the approximations and relaxations of the hydrogen production curve but it is not used in the optimization problem. For Figure 3: Approximation (blue dashed) and relaxation (blue shaded) of the experimental nonconvex (black) hydrogen production and efficiency curves using two segments (except HYP-SOC). The experimental hydrogen production and efficiency curves are taken from Baumhof et al. (2023), based on Ulleberg (2003) and S´anchez et al. (2018). For an exemplary optimal power consumption _p_ <sup>_∗_</sup>, the actual amount of hydrogen produced according to the experimental curve is indicated by point H1. Points H2 and H3 denote solutions when the relaxation HYP-SOC is exact and inexact, respectively. Point H4 marks the only exact solution that has the same hydrogen production as point H3 but lower power consumption _p_ <sup>_∗∗_</sup> . illustration clarity, Figure 3 shows two segments only for HYP-MIL and HYP-L, which are indicated by two different dashed lines. In general, any finite number and position of segments can be chosen depending on the desired trade-off between accuracy and computational complexity. Model HYPSOC is a relaxation of a quadratic approximation of the experimental hydrogen production curve such that the corresponding efficiency reaches its maximum at the power consumption _P_ <sup>_η,_</sup> <sup>max</sup> . <sup>4</sup> A close-up on model HYP-SOC is shown in the inset plot on the right side of Figure 3. Let _p_ <sup>_∗_</sup> and _h_ <sup>_∗_</sup> denote the optimal power consumption and optimal hydrogen production of the electrolyzer, respectively. The actual hydrogen production corresponding to _p_ <sup>_∗_</sup>, according to the experimental hydrogen production curve HYP-X, is indicated by point H1. Model HYP-SOC may not be able to attain this point as it utilizes an approximation of the experimental curve, which is illustrated by the blue dashed line. The solution to HYP-SOC may therefore be located at point H2. We call the discrepancy between H1 and H2 _approximation_ _error_ . For models HYP-MIL and HYP-L, this error is always nonnegative and its magnitude can be controlled by the number of linearization segments. This is not the case for HYP-SOC, where the approximation error can be either positive or negative, and is limited by the shape of the quadratic approximation. Depending on the choice of the model for the hydrogen production curve, the magnitude of the approximation error is below 1 kg/h. 4We estimate the coefficients of the quadratic approximation by minimizing the sum of squared residuals while giving a relatively higher weight to the residual corresponding to _P_ <sup>_η,_</sup> <sup>max</sup> . We found this approximation to deliver better decisions in the scheduling model than just minimizing the sum of squared residuals. 7 In contrast to the nonconvex approximation HYP-MIL, models HYP-L and HYP-SOC further admit the point H3, located in the blue shaded area, when the relaxation of the hydrogen production curve is inexact. We refer to the discrepancy between H2 and H3 as _relaxation_ _gap_ . The theoretical magnitude of the relaxation gap is upper-bounded by the hydrogen production curve. When the electrolyzer operates at full capacity, this is around 17.55 kg/h. The actual magnitude of the gap depends on the exactness of the relaxation, which is further discussed in Section 4. Note that for model HYP-SOC, depending on the optimal power consumption _p_ <sup>_∗_</sup>, the approximation error and relaxation gap may offset each other. A solution point H4 with a zero relaxation gap can be recovered from point H3 by reducing the power consumption of the electrolyzer from _p_ <sup>_∗_</sup> to _p_ <sup>_∗∗_</sup> . Point H4 is the only exact solution that has the same hydrogen production as point H3. In the following, we present the mathematical formulations for all the models. _3.1._ HYP _-_ MIL The state-of-the-art approximation of the hydrogen production curve (Baumhof et al., 2023; Zheng et al., 2022a; Marocco et al., 2021) follows a piecewise linearization approach as _ht_ = �( _Bsp_ - _s,t_ + _Csz_ - _s,t_ ) _,_ _∀_ _t ∈T,_ (5a) _s∈S_ _<u>P</u>_ _~~s~~_ _z_ - _s,t_ _≤_ _p_ - _s,t_ _≤_ _P sz_ - _s,t,_ _∀_ _t ∈T,_ _∀_ _s ∈S,_ (5b) _zt_ <sup>on</sup> = _s∈S_ _z_ - _s,t,_ _∀_ _t ∈T,_ (5c) _pt_ = _P_ <sup>sb</sup> _zt_ <sup>sb</sup> <sup>+</sup> _s∈S_ _p_ - _s,t_ _∀_ _t ∈T,_ (5d) _z_ - _s,t_ _∈{_ 0 _,_ 1 _},_ _∀_ _t ∈T,_ _∀_ _s ∈S._ (5e) The hydrogen production on each linear segment _s_ is determined by (5a), where _Bs_ and _Cs_ denote the slope and intercept of the underlying segment, respectively. These coefficients have to be determined ex-ante by choosing fixed linearization points on the original nonlinear hydrogen production curve and performing a linear interpolation between them (see Figure 3). In addition, variable _p_ - _s,t_ is the power consumption corresponding to segment _s_ in time step _t_ . Binary variable _z_ - _s,t_ indicates whether the electrolyzer operates on segment _s_ in time step _t_ . Constraint (5b) enforces that the power consumption on each segment is between the lower and upper bounds _<u>P</u>_ _~~s~~_ and _P s_, respectively, if the segment is active. Constraint (5c) ensures that only one segment can be active when the electrolyzer is in on state. The power consumption of the electrolyzer is then defined by (5d) depending on the operational state. For _|S|_ = 1, model HYP-MIL represents a linear hydrogen production curve, which does not require binary variables, as done in Varela et al. (2021). The interested reader is referred to Baumhof et al. (2023) for a more detailed explanation of the approximation of the hydrogen production curve based on piecewise linearization and a discussion on the impact of the number of segments. _3.2._ HYP _-_ L The piecewise linearization of the hydrogen production curve (5a)–(5e) becomes computationally challenging with an increasing number of segments due to the required binary variables. A natural idea would then be to relax (5a), which allows the removal of associated binary variables. By this, (5a)–(5e) reduce to _ht_ _≤_ _Bsp_ - _t_ + _Cszt_ <sup>on</sup> <sup>_,_</sup> _∀_ _t ∈T,_ _∀_ _s ∈S,_ (6a) _P_ <sup>min</sup> _zt_ <sup>on</sup> _t_ <sup>on</sup> _≤_ _p_ - _t_ _≤_ _P_ <sup>max</sup> _zt_ <sup>on</sup> _t_ <sup>on</sup> <sup>_,_</sup> _∀_ _t ∈T,_ (6b) 8 _pt_ = _p_ - _t_ + _P_ <sup>sb</sup> _zt_ <sup>sb</sup> <sup>_,_</sup> _∀_ _t ∈T ._ (6c) The power consumption of the electrolyzer in on state is now given by _p_ - _t_ . Constraint (6a) is an intersection of hypographs of concave functions and are therefore convex (Boyd and Vandenberghe, 2004). The set of constraints (6a)–(6c) is equivalent to (5a)–(5d) when (6a) is binding at the optimal solution. In contrast to piecewise linearization, this formulation is computationally efficient even for a comparatively high number of segments. _3.3._ HYP _-_ SOC By looking into the experimental hydrogen production curve in Figure 1, one may hypothesize that it has a quadratic shape. This is further supported by a semi-linear power-to-hydrogen conversion efficiency for power consumption levels higher than _P_ <sup>_η,_</sup> <sup>max</sup> . Accordingly, we approximate the experimental hydrogen production curve HYP-X by a second-order polynomial: _ht_ = _Ap_ <sup>2</sup> _t_ <sup>+</sup> <sup>_Bpt_</sup> <sup>+</sup> <sup>_C,_</sup> _∀_ _t ∈T,_ (7) where _A_ _<_ 0, _B_ _>_ 0, and _C_ _<_ 0. As mentioned earlier, the second-order polynomial can be straightforwardly fitted to operational data of the electrolyzer, if available. This is a great advantage over models HYP-MIL and HYP-L, as it does not require choosing the number and the location of linearization points. Constraint (7) is a nonconvex quadratic equality constraint. With binary variables required for modeling the operational states of the electrolyzer, the resulting optimization model would be a mixed-integer nonlinear programming (MINLP) problem, which is generally hard to solve with existing off-the-shelf solvers, even to locally optimal solutions. In contrast to existing approaches in the literature, e.g., as in Varela et al. (2021), we propose using a relaxed version of (7), which can be amended to include the operational states of the electrolyzer as _ht_ _≤_ _Ap_ - <sup>2</sup> _t_ <sup>2</sup> _t_ <sup>+</sup> <sup>_Bp_</sup> <sup>�</sup> <sup>_t_</sup> <sup>+</sup> <sup>_Cz_</sup> _t_ <sup>on</sup> _t_ <sup>on</sup> <sup>_,_</sup> _∀_ _t ∈T,_ (8a) _P_ <sup>min</sup> _zt_ <sup>on</sup> _t_ <sup>on</sup> _≤_ _p_ - _t_ _≤_ _P_ <sup>max</sup> _zt_ <sup>on</sup> _t_ <sup>on</sup> <sup>_,_</sup> _∀_ _t ∈T,_ (8b) _pt_ = _p_ - _t_ + _P_ <sup>sb</sup> _zt_ <sup>sb</sup> <sup>_,_</sup> _∀_ _t ∈T ._ (8c) For every time step _t_ that the electrolyzer is on, i.e., _zt_ <sup>on</sup> = 1, (8a) enforces a convex quadratic inequality constraint for _A_ _<_ 0. This constraint can be reformulated into an efficiently solvable rotated second-order cone (SOC) constraint, as shown in Section OC.2 of the online companion (Raheli et al., 2023). In the following, we stick to the convex quadratic form as we find it to be more intuitive here. The set of constraints (8a)–(8c) is equivalent to (7) when (8a) is binding for every time step _t_ at the optimal solution. We then say that the relaxation is exact. If (8a) is nonbinding, i.e., there is a difference between the right and left-hand side of constraint (8a), then the relaxation gap is nonzero. This is illustrated by the discrepancy between points H2 and H3 in Figure 3. Accounting for binary variables needed to model the operational states of the electrolyzer, the resulting problem is a mixed-integer second-order cone programming (MISOCP) problem, which is efficiently solvable by existing off-the-shelf solvers like Gurobi, Mosek, and CPLEX, that directly support convex quadratic constraints. _3.4._ _Summary_ An overview of the three models is given in Table 2. Hereafter, we use terms HYP-MIL, HYPL, and HYP-SOC, not only to refer to the hydrogen production curve but also to the resulting scheduling problem of the hybrid power plant. 9 Table 2: Summary of constraints for the three different models. The objective function (1) is common to all models. <u>HYP</u> <u>-</u> <u>MIL</u> <u>HYP</u> <u>-</u> <u>L</u> <u>HYP</u> <u>-</u> <u>SOC</u> Hybrid Power balance: (2a) power Grid exchange: (2b) <u>plant</u> <u>Hydrogen</u> <u>demand:</u> <u>(2c)–</u> <u>(2d)</u> Mutual exclusiveness: (3a) Electrolyzer Power consumption limits: (3b)–(3c) states <u>Startup</u> <u>and</u> <u>state</u> <u>binaries:</u> <u>(3d)–(3e),</u> <u>(3f)</u> Hydrogen (5a)–(5e) (6a)–(6c) (8a)–(8c) <u>production</u> Model MILP MILP MISOCP <u>type</u> The objective function (1) is common to all three models. We group the constraints into three groups. The first group consists of all constraints related to the hybrid power plant as a system, which are all linear. The second group includes all constraints related to the operational states of the electrolyzer, requiring binary variables. The first and second groups are common to all three models. The third group depends on the model of the hydrogen production curve that replaces constraint (4), i.e., the state-of-the-art piecewise linear approximation (HYP-MIL), a linear relaxation counterpart (HYP-L), or the proposed conic relaxation (HYP-SOC). Due to the binary variables z for modeling the operational states, the resulting scheduling problem of the hybrid power plant becomes either a mixed-integer linear programming (MILP) or a MISOCP problem. When neglecting the operational states, models HYP-L and HYP-SOC reduce to a linear programming (LP) or a second-order cone programming (SOCP) problem, respectively. This is not the case for model HYP-MIL, which requires additional binary variables for the piecewise linearization of the hydrogen production curve. We define the set of variables related to the hydrogen production curve y as y <sup>L</sup> = y <sup>SOC</sup> = _{p_ - _t}_, and y <sup>MIL</sup> = _{p_ - _s,t,_ - _zs,t}_ for HYP-L, HYP-SOC, and HYP-MIL, respectively. 4. On the Exactness of the Conic Relaxation Models HYP-L and HYP-SOC are exact when inequality constraints (6a) and (8a), respectively, are binding at the optimal solution. In the following, we derive sufficient conditions for model HYPSOC to be exact as well as necessary and sufficient conditions for it to be inexact. Similar analytical results can be obtained for HYP-L. Focusing on HYP-SOC, if (8a) is nonbinding at optimum, i.e., the relaxation gap is nonzero, an intuitive interpretation is that a fraction of hydrogen produced is being wasted (i.e., the difference between points H2 and H3 in Figure 3) or that an unnecessarily high amount of power is being consumed (i.e., the difference between points H3 and H4 in Figure 3). In the following, we always assume that a solution to problem HYP-SOC exists, as _p_ = 0 _, f_ = _W_, and _z_ <sup>off</sup> = 1 is trivial. Recall we assume that the hydrogen price is positive, such that the objective function is strictly increasing in hydrogen production, as stated in Section 2. Now, we provide analytical results for the exactness of relaxation (8a). Theorem 1. _If_ _the_ _maximum_ _total_ _hydrogen_ _production_ _constraint_ (2c) _is_ _nonbinding_ _at_ _optimum,_ _then_ _the_ _relaxation_ (8a) _is_ _exact._ _Proof:_ See Appendix A.1. Intuitively, if the hydrogen price is positive, there is no incentive to waste hydrogen as long as it can be sold to the demand. The hydrogen production corresponds to point H2 in Figure 3. 10 This theorem applies to a wide range of relevant use cases wherein the total hydrogen production is unconstrained. This could be the case wherein hydrogen production facilities are located next to large hydrogen consumers or a direct connection to hydrogen pipeline infrastructure or large storage facilities exists. In some real-life applications, however, the maximum total hydrogen production is constrained, e.g., by the capacity of available tube trailers for hydrogen transportation. For that case, we derive another theorem providing a sufficient condition for exactness based on electricity prices being positive. Theorem 2. _Suppose_ _the_ _maximum_ _total_ _hydrogen_ _production_ (2c) _is_ _binding_ _at_ _optimum_ _for_ _sub-period_ _n._ _If_ _the_ _power_ _prices_ _are_ _positive_ _λt_ _>_ 0 _, ∀t ∈Hn,_ _then_ _the_ _relaxation_ (8a) _is_ _exact._ _Proof:_ See Appendix A.2. Intuitively, when the power price is positive, Theorem 2 implies that increasing the power consumption of the electrolyzer is unprofitable if additional hydrogen cannot be sold. To complete our analyses, we now focus on cases with nonpositive electricity prices, which constitute a highly profitable business case for an electrolyzer. When buying power from the grid and spilling wind is not allowed, there is a monetary incentive for the electrolyzer to maximize its consumption of local wind power production, even if the hydrogen demand is already satisfied. Theorem 3. _Let_ _Tn_ <sup>_−_</sup> _n_ <sup>_−_</sup> <sup>_⊆Hn_</sup> <sup>_be_</sup> <sup>_the_</sup> <sup>_subset_</sup> <sup>_of_</sup> <sup>_hours_</sup> <sup>_in_</sup> <sup>_sub-period_</sup> <sup>_n,_</sup> <sup>_such_</sup> <sup>_that_</sup> <sup>_λt_</sup> <sup>_≤_</sup> <sup>0</sup> <sup>_, ∀t_</sup> <sup>_∈T_</sup> _n_ <sup>_−_</sup> Theorem 3. _Let_ _Tn_ <sup>_−_</sup> <sup>_⊆Hn_</sup> <sup>_be_</sup> <sup>_the_</sup> <sup>_subset_</sup> <sup>_of_</sup> <sup>_hours_</sup> <sup>_in_</sup> <sup>_sub-period_</sup> <sup>_n,_</sup> <sup>_such_</sup> <sup>_that_</sup> <sup>_λt_</sup> <sup>_≤_</sup> <sup>0</sup> <sup>_, ∀t_</sup> <sup>_∈T_</sup> _n_ <sup>_−._</sup> <sup>_If_</sup> _the_ _total_ _hydrogen_ _production_ _in_ _those_ _hours_ _equals_ _the_ _maximum_ _demand,_ _i.e.,_ <sup>�</sup> _t∈Tn_ <sup>_−_</sup> <sup>_ht_</sup> <sup>=</sup> <sup>_D_</sup> _n_ <sup>max</sup> _,_ _n_ <sup>_−_</sup> <sup>_ht_</sup> <sup>=</sup> <sup>_D_</sup> _n_ <sup>max</sup> _the_ _total_ _hydrogen_ _production_ _in_ _those_ _hours_ _equals_ _the_ _maximum_ _demand,_ _i.e.,_ <sup>�</sup> _t∈Tn_ <sup>_−_</sup> <sup>_ht_</sup> <sup>=</sup> <sup>_D_</sup> _n_ <sup>max</sup> _,_ _such_ _that_ (2c) _is_ _binding_ _at_ _optimum_ _for_ _sub-period_ _n,_ _then_ _there_ _exists_ _at_ _least_ _one_ _time_ _step_ _t ∈Tn_ <sup>_−_</sup> <sup>_for_</sup> <sup>_which_</sup> <sup>_the_</sup> <sup>_relaxation_</sup> <sup>(8a)</sup> <sup>_is_</sup> <sup>_inexact._</sup> _t∈Tn_ <sup>_−_</sup> _n_ <sup>_−_</sup> <sup>_for_</sup> <sup>_which_</sup> <sup>_the_</sup> <sup>_relaxation_</sup> <sup>(8a)</sup> <sup>_is_</sup> <sup>_inexact._</sup> _Proof:_ See Appendix A.3. Intuitively, when power prices are negative, it is most profitable to increase the power consumption of the electrolyzer as much as possible. If the corresponding hydrogen production exceeds the maximum total demand level, it is wasted without additional cost. The wasted hydrogen production equals the difference between points H2 and H3 in Figure 3. Due to the opportunity cost related to the negative power prices, this is more profitable than reducing the power consumption to H4. While Theorem 3 states that relaxation (8a) is inexact when it is economically most profitable for the hybrid power plant, the necessary conditions are hardly met in practice. We demonstrate this based on a realistic case study in Section 5. Note that the theorems stated here, including Theorem 3, extend to the case where the electrolyzer is allowed to buy electricity from the grid and wind spillage is allowed. The necessary condition for inexactness of relaxation (8a) stated in Theorem 3 can be checked a priori. For each sub-period _n_, one can evaluate in advance if the total maximum possible hydrogen production during hours with nonpositive prices is greater than or equal to the maximum demand, i.e., _AP_ ~~2~~ _t_ <sup>+</sup> <sup>_BP t_</sup> <sup>+</sup> <sup>_C_</sup> <sup>_≥_</sup> <sup>_D_</sup> _n_ <sup>max</sup> _,_ _∀_ _n ∈N_ _,_ (9) _t∈Tn_ <sup>_−_</sup> where _P t_ = min _{Wt, P_ <sup>max</sup> _},_ _∀t_ _∈T_ . It follows from Theorem (3) that if condition (9) is not fulfilled, then the relaxation is exact. The converse is not necessarily true. If the relaxation (8a) is inexact, model HYP-SOC may obtain a solution like H3 in Figure 3. This might include a sub-optimal solution for the binary variables related to the operational states of the electrolyzer. In cases where it cannot be guaranteed a priori by using the heuristic in (9) that the relaxation gap will be zero, the feasible region should be tightened. One option is to enforce a linear underestimator (Taylor and Rapaport, 2021) to the chosen model of the hydrogen production curve. For model HYP-SOC, this can be done by adding the following constraint: _ht_ _≥_ _Q_ 1 _p_ - _t_ + _Q_ 0 _,_ _∀_ _t ∈T,_ (10) 11 20 15 10 5 0 0.2 0.4 0.6 0.8 1.0 Power [MW] 0.2 0.4 0.6 0.8 1.0 Power [MW] 20 19 18 17 Experimental Approximation Linear underestimator Relaxation Figure 4: Intersection of the feasible regions defined by the hydrogen production curve HYP-SOC and the corresponding linear underestimator for the hydrogen production (left) and efficiency (right). where coefficients _Q_ 0 and _Q_ 1 can be derived from a linear interpolation of the points corresponding to the minimum and maximum power consumption. The linear underestimator (10) substantially reduces the feasible region of model HYP-SOC, as shown in Figure (4). In the case considered here, the theoretical magnitude of the relaxation gap for a single time step is reduced from around 17.55 kg/h to 0.7 kg/h. A nonzero relaxation gap, e.g., point H3 in Figure (3), implies that the solution will be physically infeasible for the electrolyzer system in practice. In that case, a physically feasible solution should be restored a posteriori. For the hybrid power plant considered here, when using the linear underestimator (10), this can always be done by reducing the power consumption of the electrolyzer from _p_ <sup>_∗_</sup> at point H3 to _p_ <sup>_∗∗_</sup> at point H4, as shown in Figure (3). This might lead to sub-optimal solutions in more complex setups, e.g., when considering additional chemical downstream processes. In those cases, other techniques for recovering a feasible solution can be applied, e.g., the convexconcave procedure as done by Taylor et al. (2022) for biochemical processes or Wei et al. (2017) for AC optimal power flow. Other options are discussed by Venzke et al. (2020) in the context of AC optimal power flow. 5. Numerical Study We consider a hybrid power plant consisting of a 1-MW electrolyzer and a 2-MW wind farm. Hourly wind capacity factors for year 2019 are obtained from the Renewable.ninja web platform (Staffell and Pfenninger, 2016) for a wind farm located in Eastern Denmark. The day-ahead electricity prices in the same year for the corresponding bidding area (DK2) are taken from ENTSOe (2022). The electrolyzer has a minimum operating power of _P_ <sup>min</sup> = 0 _._ 15 MW and a standby power consumption of _P_ <sup>sb</sup> = 0 _._ 01 MW. We assume a cold-startup cost of _K_ <sup>su</sup> = e50, borrowed from Varela et al. (2021). Hydrogen is sold at a fixed price of _χ_ = e2 _._ 1/kg. Recall that electricity must not be purchased from the grid. The public repository (Raheli et al., 2023) contains the input data and code implementation in the Pyomo package (Hart et al., 2011; Bynum et al., 2021) for Python, where optimization models have been solved by the Gurobi solver (Gurobi Optimization, LLC, 2023). _5.1._ _Exactness_ _of_ _the_ _Proposed_ _Conic_ _Relaxation_ As discussed in Section 4, the exactness of the relaxation in HYP-SOC depends on the power prices and total hydrogen production. The latter is affected by the wind power availability. In the 12 remainder of the paper, we use the term operating conditions to indicate a combination of power prices, wind availability, and type of hydrogen demand (i.e., constrained or unconstrained). To validate our analytical results in Section 4, we consider four cases with different profiles of wind power availability and power prices: Case (a): Mostly negative hourly power prices and low wind power availability, Case (b): Solely positive hourly power prices and comparatively high wind power availability com pared to that in Case (a), Case (c): Some negative hourly power prices and comparatively high wind power availability as in Case (b), Case (d): Mostly negative hourly power prices as in Case (a) and comparatively high wind power availability as in Case (b). For each of the four cases, we build an illustrative case study for a time period of one day (24 hours). For that, we select different combinations of two realistic wind profiles (low and high wind) and three power price profiles (solely positive, some negative, and mainly negative prices). The data is visualized in the top row of Figure 5. Among the four illustrative days, the one representing Case (c) is the only one that combines wind and price profiles of the same day in 2019. Note that the two price profiles in Cases (c) and (d) correspond to the two days in 2019 with the highest number of hours with negative power prices. In total, the dataset for 2019 includes 95 hours with negative electricity prices, spread across 20 days. Days that belong to Case (d) were only observed twice in 2019. To create a situation where the maximum daily hydrogen production constraint (2c) becomes binding, we choose a rather low hydrogen demand of _D_ <sup>max</sup> = 252 _._ 7 kg for all cases. This value corresponds to the amount of hydrogen that is produced when the electrolyzer is operated in fullload operation 60% of the time. The optimal power consumption, hydrogen production, and the relaxation gap for Cases (a)-(d) are shown in the bottom row of Figure 5. Recall that by relaxation gap, we refer to the discrepancy between the right and left-hand sides of constraint (8a), which is illustrated by points H2 and H3 in Figure 3. Note that all results on the exactness of the relaxation of the hydrogen production curve presented in this subsection can be similarly obtained for model HYP-L. In Case (a), despite frequent negative power prices, there is not enough wind power available over the day such that the total hydrogen demand (2c) reaches the upper limit. The comparably higher wind power availability in Case (b) in combination with low but positive power prices results in a binding maximum total hydrogen demand. For both Cases (a) and (b), it follows immediately from Theorem 1 and Theorem 2, respectively, that the relaxation HYP-SOC is exact. The maximum total hydrogen production is binding in Case (c) too. It is, however, non-binding for the 12 hours with negative prices only. Hence, it does not fulfill the necessary condition for the inexactness of relaxation (8a) as stated in Theorem 3. Note that the operation during hours with negative prices is preferred even if operating in hours with positive prices is profitable. Case (d) has an even higher number of hours with negative prices (17 hours), such that the hydrogen demand becomes binding during the operation in those hours only. This satisfies the necessary and sufficient conditions stated in Theorem 3. As a consequence, relaxation (8a) is inexact at optimum, leading to a non-zero relaxation gap equal to the shaded area in Figure 5. <sup>5</sup> 5Note that for model HYP-SOC the solver reports a solution where all time steps have a non-zero feasibility gap. This is not necessarily always true, as multiple optimal solutions exist in this case. When solving the same case study with the linear relaxation HYP-L, the aggregated relaxation gap is fully allocated to the minimum possible number of time steps. 13 1 0.75 0.5 0.25 0 1 0.75 0.5 0.25 0 <u>1</u> <u>6</u> <u>12</u> <u>18</u> <u>24</u> Time [h] Case (d) + linear Case (a) Case (b) Case (c) Case (d) <u>underestimator</u> <u>1</u> <u>6</u> <u>12</u> <u>18</u> <u>24</u> Time [h] <u>1</u> <u>6</u> <u>12</u> <u>18</u> <u>24</u> Time [h] Electricity consumption Relaxation gap <u>1</u> <u>6</u> <u>12</u> <u>18</u> <u>24</u> Time [h] Hydrogen production - exact Hydrogen production - inexact <u>1</u> <u>6</u> <u>12</u> <u>18</u> <u>24</u> Time [h] 60 30 0 -30 -60 28 21 14 7 0 Wind capacity factor Electricity price Figure 5: Top row: Wind capacity factor (left axis) and day-ahead power price (right axis) profiles for four illustrative days. Bottom row: Optimal electrolyzer power consumption (blue) and hydrogen production (green) for model HYPSOC. The pink line shows the hydrogen production corresponding to a zero relaxation gap, which is illustrated by the shaded area (grey). When the relaxation (8a) is exact, i.e., the gap is zero, the green and pink lines coincide. The last column shows the result for Case (d) when adding the linear underestimator (10) to model HYP-SOC. Recall that Case (d) represents a rare combination of prolonged hours with negative power prices (17 hours), excessive wind availability (95% average wind capacity factor), and restrictive maximum hydrogen demand (60% of the total full-load production). For all other combinations of those three factors, which we define as prevalent operating conditions, the relaxation is exact. While negative power prices are rarely observed in electricity markets at the moment, they might occur more frequently in the future. Nonetheless, this will not compromise the applicability of the proposed relaxations in terms of exactness, as it additionally requires a constrained maximum production limit (Theorem 3). Recall that we assume a highly restrictive maximum demand limit set by tube trailers with fixed schedules to illustrate our mathematical findings on the exactness of the relaxations. For the future, we envision that electrolyzers will be placed close to pipeline infrastructure, large storage facilities, or industrial consumers, in which the maximum hydrogen demand can be considered unconstrained. In the last column of Figure 5, Case (d) is solved after adding the linear underestimator (10) to model HYP-SOC. Compared to Case (d), this reduces the number of hours with an inexact relaxation from 17 to 1 and the total relaxation gap from 43 kg to 0.7 kg of hydrogen. It can further be noticed that the electrolyzer is now operated in standby state instead of on state in hours 13 and 15. For HYP-SOC without linear underestimator, this was possible because the hydrogen production in on state is bounded below by zero, as can be seen in Figure 3. After adding the linear underestimator (10), the minimum hydrogen production in on state is 2.9 kg/h, as can be seen in Figure 4. Since the maximum hydrogen demand (2c) is binding, the minimum hydrogen production cannot be accommodated when including the linear underestimator. Consequently, the electrolyzer must be turned into standby or off state. This indicates that an inexact relaxation may lead to a sub-optimal solution for the binary variables related to the operational states of the electrolyzer, compared to solving the original MINLP including nonconvex constraint (7) directly. 14 _5.2._ _Comparison_ _of_ _the_ _Solution_ _Quality_ This section compares the models proposed in Section 3 in terms of profit, dispatch decisions, and hydrogen production. Based on the heuristic proposed in Equation (9), we found that for the year 2019, the proposed relaxations are exact for a maximum hydrogen demand above _D_ <sup>max</sup> = 296 _._ 3 kg, corresponding to the hydrogen produced when the electrolyzer runs in full-load operation 70 _._ 4% of the time. For the relaxations to be inexact for more than 2 days, an unrealistically low maximum hydrogen demand below 25% is necessary. This emphasizes that the proposed relaxations are exact under prevalent operating conditions. Therefore, we choose a maximum daily hydrogen demand corresponding to 90%, which ensures that the relaxations HYP-L and HYP-SOC are always exact. This implies that HYP-L results in the same dispatch decisions as HYP-MIL. Therefore, we do not explicitly report the results for model HYP-L. We use the term HYP-MIL _i_ for _i ∈{_ 1 _,_ 2 _,_ 10 _,_ 24 _}_ to refer to model HYP-MIL with _i_ linearization segments. Model HYP-MIL24, i.e., model HYP-MIL with 24 segments, is used as a benchmark in the following. A detailed explanation of how we choose the location of linearization points is given in Section OC.3 of the online companion (Raheli et al., 2023). The interested reader is further referred to Marocco et al. (2021) for a different choice of linearization points. We first compare the different models in terms of dispatch decisions for a selected day in 2019, where the hydrogen production is not limited by wind power availability. Figure 6(a) shows the wind profile, electricity prices, and optimal electrolyzer power consumption of HYP-MIL24, which is chosen as a benchmark. For each model formulation, the hourly relative difference of the optimal power consumption compared to the benchmark, denoted as _γt_, is defined as _<u>t</u>_ <sup>_∗_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>p</u>_</sup> _<u>t</u>_ <sup>_∗,_</sup> <sup>MIL24</sup> _,_ _∀_ _t ∈T,_ (11) _γt_ = <sup>_<u>p</u>_</sup> _<u>t</u>_ <sup>_∗_</sup> _<u>t</u>_ _pt_ <sup>_∗,_</sup> <sup>MIL24</sup> _t_ where _p_ <sup>_∗_</sup> _t_ where _p_ <sup>_∗_</sup> _t_ <sup>is</sup> <sup>the</sup> <sup>optimal</sup> <sup>power</sup> <sup>consumption</sup> <sup>of</sup> <sup>the</sup> <sup>electrolyzer</sup> <sup>in</sup> <sup>hour</sup> <sup>_t_</sup> <sup>obtained</sup> <sup>from</sup> <sup>the</sup> <sup>un-</sup> derlying model and _pt_ <sup>_∗,_</sup> <sup>MIL24</sup> is that of the benchmark. The relative difference _γt_ is shown for all models in Figure 6(b). For models HYP-MIL1 and HYP-MIL2, the relative difference is comparatively large in hours where the electrolyzer operates at partial loading. This is the case when the electricity price is in the range of 31 to 43 e/MWh (cf. Appendix in Baumhof et al. (2023)). The average daily difference, i.e., _γ_ ¯ = ( <sup>�</sup> _t_ <sup>_|γt|_</sup> <sup>)</sup> <sup>_/_</sup> <sup>24</sup> <sup>for</sup> <sup>HYP-MIL1</sup> <sup>and</sup> <sup>HYP-MIL2</sup> <sup>is</sup> <sup>36%</sup> <sup>and</sup> <sup>21%,</sup> average daily difference, i.e., _γ_ ¯ = ( <sup>�</sup> _t_ <sup>_|γt|_</sup> <sup>)</sup> <sup>_/_</sup> <sup>24</sup> <sup>for</sup> <sup>HYP-MIL1</sup> <sup>and</sup> <sup>HYP-MIL2</sup> <sup>is</sup> <sup>36%</sup> <sup>and</sup> <sup>21%,</sup> respectively. In comparison, HYP-SOC exhibits significantly better performance, with an average error of around 5%. To achieve a similar solution quality with HYP-MIL (and HYP-L), at least 10 segments are needed. <sup>6</sup> To validate the robustness of our findings presented in Figure 6, we solve the different models for the entire year 2019 and compare the profit and dispatch results. To fairly compare the different models in terms of hydrogen production, an ex-post analysis is performed to take the model-specific approximation errors into account. The ex-post analysis consists of solving the underlying optimization problem, fixing the optimal power consumption of the electrolyzer, and then calculating the corresponding hydrogen production based on HYP-X, indicated by point H1 in Figure 3. The reason for the ex-post analysis is that the model determines the choice of dispatch decisions (i.e., how much power should be sold to the grid and how much power should be consumed by the electrolyzer), while the actual hydrogen production depends on the electrolyzer physics and not on the approximated model that is adopted in the scheduling problem. The difference in the hydrogen production quantities and profits derived from the scheduling model and those from the ex-post analysis, therefore, serve as an indicator of the quality of the approximation of the 6Note that a different choice of linearization points, e.g., based on the method presented in Marocco et al. (2021), may slightly affect the number of segments needed to achieve a similar solution accuracy between HYP-SOC and HYP-MIL/HYP-L. 15 <u>(a): Dispatch HYP-MIL24 (benchmark)</u> Electricity consumption 50 45 2 1.5 1 0.5 0 HYP-MIL1 HYP-MIL2 HYP-MIL10 HYP-SOC 40 35 30 25 (b): Dispatch difference [%] 1 2 3 4 5 6 7 8 9 101112131415161718192021222324 Time [h] 75 50 25 0 25 50 75 100 Electricity price Wind production Figure 6: (a): Optimal electrolyzer power consumption for the HYP-MIL24 benchmark on an illustrative day. (b): Hourly relative difference _γt_ of the optimal electrolyzer power consumption compared to the benchmark. experimental hydrogen production curve HYP-X. Recall that we cannot solve the scheduling model including HYP-X directly, as it is not possible to derive a corresponding analytical function. If it was possible to solve scheduling model HYP-X directly, then the results of its ex-post analysis would be exactly the same as those derived from the optimization model. To replicate this idealized benchmark as best as possible, we choose the ex-post results of model HYP-MIL24 as a benchmark for our case studies. Note that we do not account for the hydrogen production corresponding to the approximation error in the scheduling problem, which could potentially make the maximum hydrogen production constraint (2c) binding. Table 3 presents the annual profit, electricity sales, and hydrogen production, as a difference compared to the HYP-MIL24 benchmark. While the total annual profit is similar for all models, the share of hydrogen production and power sales for HYP-MIL1 and HYP-MIL2 differ substantially compared to the HYP-MIL24 benchmark. Due to the inaccurate approximation of the hydrogen production curve, the number of hours when it is profitable to produce hydrogen is considerably reduced, leading to approximately 14% and 7% less hydrogen production, respectively. The corresponding monetary loss is partially compensated by an increase in wind energy sold to the grid. Model HYP-SOC shows higher accuracy in decision-making, with a difference in hydrogen production lower than 1% compared to the benchmark. Similarly to the one-day example, at least 10 segments are necessary to achieve the same results with HYP-MIL as with the conic model. _5.3._ _Comparison_ _of_ _the_ _Computational_ _Performance_ We now compare the different models in terms of their solution time, and then analyze how it scales with the problem size. To do so, we extend the deterministic day-ahead scheduling problem proposed in Table 2 to a two-stage stochastic problem and run it for a single day using different numbers of scenarios _ω_ _∈_ Ω. We assume perfect foresight for the electricity prices but uncertainty in wind power production. In the second stage, the electrolyzer adjusts its power consumption to minimize the real-time imbalance cost based on the scenario-specific wind power realization. Owed 16 10 <sup>3</sup> 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> HYP-MIL24 HYP-MIL10 HYP-MIL2 HYP-MIL1 HYP-SOC HYP-L24 HYP-L10 HYP-L2 HYP-L1 1 5 10 50 100 500 Number of scenarios Figure 7: Computational performance of the different models for an increasing number of scenarios. Each data point represents the average computational time obtained from 100 repetitions, except for 500 scenarios, where only 10 repetitions are used due to the increased computational time. to the fast dynamics of the electrolyzer, we further assume that it is able to change its operational states compared to the day-ahead schedule. The stochastic model formulation is reported in Section OC.4 of the online companion (Raheli et al., 2023). We use the same price profile as in the case study reported in Figure 6. For the wind power scenarios, the first 24 hours of the dataset provided in Pinson (2013) are used. The problem was solved using a High Performance Computing Cluster node with two AMD EPYC 7551 processors clocking at 2 GHz and using a maximum of 8 threads. As this section focuses on the computational performance only, we do not further elaborate on the quality of the solution for the stochastic model and look solely at in-sample results. Table 4 summarizes the number and type of variables and constraints in each of the hydrogen production curve models. Figure 7 shows the computational time for the different models in a range of 1–500 scenarios. All proposed models are solved within 5 seconds for up to 10 scenarios. By increasing the number of scenarios, the number of binary variables in the HYP-MIL model increases comparatively fast, as shown in Table 4. For 24 and 10 segments, the linear relaxation HYP-L is solved approximately 80% faster than the corresponding HYP-MIL, while achieving the same solution. For 100 scenarios, the HYP-SOC model is almost three times faster than HYP-L10 and almost two times faster than HYP-L2. Even for 500 scenarios, the HYP-SOC model shows a satisfactory computational performance compared to both HYP-MIL and HYP-L. This might be attributed to the avoidance of binary variables and the comparably lower number of constraints required to model the hydrogen production curve, even if the constraints are conic instead of linear. Table 3: Difference in the annual profit, hydrogen production, and power sales compared to the HYP-MIL24 benchmark. Note that results for HYP-L are not explicitly reported as they coincide with HYP-MIL for the considered case study. <u>Profit</u> <u>Hydrogen</u> <u>production</u> <u>Power</u> <u>sales</u> HYP-MIL24 - - HYP-MIL10 -0.003% -0.12% 0.05% HYP-MIL2 -0.26% -7.06% 3.66% HYP-MIL1 -0.63% -13.84% 6.52% <u>HYP-SOC</u> <u>-0.01%</u> <u>-0.89%</u> <u>0.48%</u> 17 In contrast to model HYP-SOC, HYP-MISOCP, which is presented in Section OC.1 of the online companion (Raheli et al., 2023), experiences an exponentially increasing computational time that makes it intractable for large applications. Note that the major part of the computational time is attributed to finding feasible integer solutions for the operational states of the electrolyzer. When fixing the binary variables to their optimal value, the computational time for model HYP-SOC including 500 scenarios reduces from 207.9 to 3.7 seconds. This highlights the applicability of the proposed relaxations for real-time rescheduling and the benefit of heuristics finding a set of near-optimal operational states. For 500 scenarios, the inclusion of linear underestimator (10) in model HYP-SOC reduces the computational time significantly ( _−_ 28%), even though it is always inactive at the optimal solution since the relaxation is exact in the considered case study. In order to generalize the benefits of adding a linear underestimator to other case studies and model HYP-L, further analyses should be conducted. As this paper focuses on comparing the different modeling approaches in conditions where the relaxations are exact, we leave this aspect for future research. 6. Conclusion An accurate representation of the nonlinear and nonconvex hydrogen production curve of the electrolyzer, which captures the relationship between power consumption and hydrogen production, is essential for its optimal scheduling. The current state-of-the-art modeling approach of the hydrogen production curve is based on piecewise linear approximation. This approach requires carefully selecting the number and the location of linearization points, which impacts the accuracy of dispatch decisions and the computational complexity. The accuracy increases with the number of linearization segments at the expense of adding one binary variable per segment. For our case study, we found out that using at least ten linearization segments yields sufficiently accurate dispatch decisions. To further highlight computational issues raised by the number of binary variables in the state-of-the-art piecewise linear approximation, we developed a two-stage stochastic program where renewable power production uncertainty is modeled via scenarios. We showed that by growing the number of scenarios and therefore the number of binary variables (indicating active segments for every scenario), the computational time increases significantly, imposing a serious barrier. This paper proposes two modeling approaches for the hydrogen production curve based on convex relaxations. The first one, HYP-L, is a linear relaxation of the state-of-the-art piecewise linear approximation HYP-MIL, which does not require binary variables. Although this leads to a significantly improved computational performance compared to HYP-MIL, it still requires choosing the number and location of linearization points. Additionally, the high number of segments needed to ensure the accuracy of the solution impacts the computational performance of large-scale problems. Those barriers are resolved by our second model, HYP-SOC, which is a conic relaxation of a quadratic approximation of the hydrogen production curve. The quadratic approximation can be directly fitted to operational data of the electrolyzer, making it especially suitable in cases with limited information availability on the underlying physics of the hydrogen production curve. Table 4: Number of variables and constraints for modeling the hydrogen production curve as a function of the number of segments _|S|_, time steps _|T |_, and scenarios _|_ Ω _|_ <u>#</u> <u>Variables</u> <u>#</u> <u>Constraints</u> <u>Binary</u> <u>Continuous</u> <u>LP/MILP</u> <u>SOC/MISOC</u> HYP-MIL _|S||T ||_ Ω _|_ _|S||T ||_ Ω _|_ (2 _|S|_ + 3) _|T ||_ Ω _|_ 0 HYP-L 0 _|T ||_ Ω _|_ ( _|S|_ + 3) _|T ||_ Ω _|_ 0 <u>HYP-SOC</u> <u>0</u> _<u>|T ||</u>_ <u>Ω</u> _<u>|</u>_ <u>3</u> _<u>|T ||</u>_ <u>Ω</u> _<u>|</u>_ _<u>|T ||</u>_ <u>Ω</u> _<u>|</u>_ 18 Based on a realistic case study, we showed that HYP-SOC provides a satisfactory trade-off between accuracy of decisions and computational performance for large-scale problems. Between the two proposed relaxations, HYP-SOC exhibits a slightly better computational performance than HYP-L for large-scale problems at the expense of moving from a (mixed-integer) linear to a second-order cone problem. We conclude that the linear relaxation provides an appropriate choice if the model type is to be kept linear, otherwise, we suggest using the conic model. We mathematically proved that the proposed conic relaxation is exact under prevalent operating conditions. Similar proofs can be derived for the linear relaxation. We further presented a heuristic to check the exactness of the conic relaxation a priori based on the wind power availability - this can be very useful in practice. An extreme case was presented to illustrate how a combination of prolonged negative electricity prices, high wind power availability, and a restrictive upper limit for hydrogen production may lead to an inexact solution. In that case, the feasible region of the problem should be tightened and an exact solution should be restored a posteriori. We were able to show that introducing a linear underestimator to the hydrogen production curve substantially reduces the feasible region. Furthermore, it ensures that an exact solution can always be restored by reducing the power consumption of the electrolyzer. Future research should investigate how the linear underestimator impacts the computational time in cases wherein the relaxation is inexact. As the production of green hydrogen in hours with negative electricity prices constitutes a particularly profitable business case for the electrolyzer, further research should address how an exact yet optimal solution can be restored when other assets or downstream processes are considered. When disregarding the operational states of the electrolyzer, the two proposed relaxations of the hydrogen production curve are convex. This is a valuable property in cases where global optimality guarantees and meaningful dual variables are desired, e.g., in a market-clearing problem. Future research should explore how the proposed modeling approaches can be integrated into market-oriented applications. Additionally, the conic relaxation and exactness findings may be applicable to other components with similar nonlinear physics, e.g., batteries with a semi-linear linear efficiency curve (Engelhardt et al., 2022). Finally, future work should focus on accurate modeling of the auxiliary assets and downstream processes, such as the compressor and methanol or ammonia production, which may introduce additional nonconvexities to the optimal scheduling problem of an electrolyzer. Appendix A. Mathematical Proofs Let ( ˙ x _,_ y ˙ _,_ ˙ z ) denote a feasible point to problem HYP-SOC. For the following proofs, we assume that the set of binary variables z associated with the operational states of the electrolyzer is fixed to z ˙ . In this case, HYP-SOC reduces to a convex problem. We use ( _p_ <sup>_∗_</sup> _, h_ <sup>_∗_</sup> _, f_ <sup>_∗_</sup> ) to denote an optimal solution to problem HYP-SOC for given z ˙ . _t_ <sup>_sb_</sup> <sup>+ ˙</sup> <sup>_z_</sup> _t_ <sup>_off_</sup> Lemma 1. _Suppose the electrolyzer is in standby or off state at time step t,_ _such that_ _z_ ˙ _t_ <sup>_sb_</sup> Lemma 1. _Suppose the electrolyzer is in standby or off state at time step t,_ _such that_ _z_ ˙ _t_ <sup>_sb_</sup> <sup>+ ˙</sup> <sup>_z_</sup> _t_ <sup>_off_</sup> = 1 _._ _Then,_ _the_ _relaxation_ (8a) _is_ _exact._ _Proof:_ It follows from mutual exclusiveness of the states (3a) that _z_ ˙ _t_ <sup>on</sup> = 0. Constraints (8a)– (8b) and (2d) ensure that that the hydrogen production _ht_ and associated power consumption _p_ ˜ _t_ are equal to zero. Relaxation (8a) is therefore exact when the electrolyzer is in standby or off state. Without loss of generality, we assume that there exists a time step _τ_ _∈T_, for which the electrolyzer is in on-state _z_ ˙ _τ_ <sup>on</sup> = 1. In this case, it follows from (8c) and (3a) that _pτ_ = _p_ ˜ _τ_ . In the following, we will prove the exactness of relaxation (8a) under certain assumptions. _Proof:_ It follows from mutual exclusiveness of the states (3a) that _z_ ˙ _t_ <sup>on</sup> Without loss of generality, we assume that there exists a time step _τ_ _∈T_, for which the electrolyzer is in on-state _z_ ˙ _τ_ <sup>on</sup> = 1. In this case, it follows from (8c) and (3a) that _pτ_ = _p_ ˜ _τ_ . In the 19 _Appendix_ _A.1._ _Proof_ _of_ _Theorem_ _1_ _τ_ <sup>_∗_</sup> <sup>)2 +</sup> <sup>_Bp∗_</sup> _τ_ Suppose that _τ_ _∈Hn_ and _h_ <sup>_∗_</sup> _τ_ <sup>_∗_</sup> _τ_ <sup>_< A_</sup> <sup>(</sup> <sup>_p_</sup> _τ_ <sup>_∗_</sup> <sup>_∗_</sup> _τ_ <sup>+</sup> <sup>_C_</sup> <sup>,</sup> <sup>i.e.,</sup> <sup>(8a)</sup> <sup>is</sup> <sup>inexact.</sup> <sup>We</sup> <sup>define</sup> _h_ ` _t_ = - _h_ <sup>_∗_</sup> _t_ _h_ <sup>_∗_</sup> _t_ <sup>_,_</sup> _t̸_ = _τ,_ _h_ <sup>_∗_</sup> _t_ <sup>+</sup> <sup>_ϵ,_</sup> _t_ = _τ,_ <sup>_∗_</sup> _t_ <sup>+</sup> <sup>_ϵ,_</sup> _t_ = _τ,_ <sup>_∗_</sup> _τ_ <sup>)2</sup> <sup>+</sup> <sup>_Bp∗_</sup> _τ_ where _ϵ_ is a small positive number, such that _h_ <sup>`</sup> _τ_ _≤_ _A_ ( _p_ <sup>_∗_</sup> _τ_ where _ϵ_ is a small positive number, such that _h_ <sup>`</sup> _τ_ _≤_ _A_ ( _p_ <sup>_∗_</sup> _τ_ <sup>)2</sup> <sup>+</sup> <sup>_Bp∗_</sup> _τ_ <sup>+</sup> <sup>_C_</sup> <sup>.</sup> <sup>Let the objective function (1)</sup> be denoted by _U_ . As the hydrogen price is positive _χ >_ 0, _U_ is always increasing in _ht_ for a given z ˙ . It follows directly that _U_ ( _h, f_ <sup>`</sup> <sup>_∗_</sup> ) _≥_ _U_ ( _h_ <sup>_∗_</sup> _, f_ <sup>_∗_</sup> ). As, by assumption, the total maximum hydrogen production is not constrained by the demand, such that (2c) is nonbinding at _h_ <sup>_∗_</sup>, it is possible to find _ϵ_ such that _h_ <sup>`</sup> is feasible. That contradicts the optimality of _h_ <sup>_∗_</sup> . Therefore, relaxation (8a) must be exact at optimum for a given z ˙ when the electrolyzer is in on-state. The exactness of relaxation (8a) for the case when the electrolyzer is in standby or off state follows from Lemma (1), which completes the proof. _Appendix_ _A.2._ _Proof_ _of_ _Theorem_ _2_ It follows directly from the power balance of the hybrid power plant (2a), that _f_ <sup>_∗_</sup> = _W_ _−_ _p_ <sup>_∗_</sup> . Suppose that in sub-period _n_, constraints (8a) are binding at optimum for all time steps, such that _h_ <sup>_∗_</sup> _t_ <sup>=</sup> <sup>_A_</sup> <sup>(</sup> <sup>_p∗_</sup> _t_ <sup>)2 +</sup> <sup>_Bp∗_</sup> _t_ <sup>+</sup> <sup>_C, ∀t ∈Hn_</sup> <sup>,</sup> <sup>and</sup> <sup>that</sup> <sup>_τ_</sup> <sup>_∈Hn_</sup> <sup>.</sup> <sup>We</sup> <sup>define</sup> <sup>_∗_</sup> _t_ <sup>)2 +</sup> <sup>_Bp∗_</sup> _t_ <sup>_∗_</sup> _t_ <sup>=</sup> <sup>_A_</sup> <sup>(</sup> <sup>_p∗_</sup> _t_ <sup>_∗_</sup> _t_ <sup>+</sup> <sup>_C, ∀t ∈Hn_</sup> <sup>,</sup> <sup>and</sup> <sup>that</sup> <sup>_τ_</sup> <sup>_∈Hn_</sup> <sup>.</sup> <sup>We</sup> <sup>define</sup> (´ _pt,_ _f_ <sup>´</sup> _t_ ) = �( _p_ <sup>_∗_</sup> _t_ ( _p_ <sup>_∗_</sup> _t_ <sup>_, f_</sup> _t_ <sup>_∗_</sup> <sup>)</sup> <sup>_,_</sup> _t̸_ = _τ,_ ( _p_ <sup>_∗_</sup> _t_ <sup>+</sup> <sup>_ϵ, f_</sup> _t_ <sup>_∗_</sup> <sup>_−_</sup> <sup>_ϵ_</sup> <sup>)</sup> <sup>_,_</sup> _t_ = _τ,_ <sup>_∗_</sup> _t_ <sup>_, f_</sup> _t_ <sup>_∗_</sup> <sup>_∗_</sup> _t_ <sup>+</sup> <sup>_ϵ, f_</sup> _t_ <sup>_∗_</sup> _t_ <sup>_∗_</sup> <sup>_−_</sup> <sup>_ϵ_</sup> <sup>)</sup> <sup>_,_</sup> _t_ = _τ,_ where _ϵ_ is a small positive number. Suppose (´ _p, h_ <sup>_∗_</sup> _,_ _f_ <sup>´</sup> ) denotes a feasible point to HYP-SOC, such that _f_ <sup>´</sup> = _W_ _−_ _p_ ´ and _f_ <sup>´</sup> _τ_ _<_ _fτ_ <sup>_∗_</sup> <sup>.</sup> <sup>Then</sup> <sup>_h_</sup> _τ_ <sup>_∗_</sup> <sup>_<_</sup> <sup>_A_</sup> <sup>(´</sup> <sup>_pτ_</sup> <sup>)2 +</sup> <sup>_Bp_</sup> <sup>´</sup> <sup>_τ_</sup> <sup>+</sup> <sup>_C_</sup> <sup>,</sup> <sup>i.e.,</sup> <sup>relaxation</sup> <sup>(8a)</sup> <sup>is</sup> <sup>inexact.</sup> <sup>As</sup> that _f_ <sup>´</sup> = _W_ _−_ _p_ ´ and _f_ <sup>´</sup> _τ_ _<_ _fτ_ <sup>_∗_</sup> <sup>.</sup> <sup>Then</sup> <sup>_h_</sup> _τ_ <sup>_∗_</sup> <sup>_<_</sup> <sup>_A_</sup> <sup>(´</sup> <sup>_pτ_</sup> <sup>)2 +</sup> <sup>_Bp_</sup> <sup>´</sup> <sup>_τ_</sup> <sup>+</sup> <sup>_C_</sup> <sup>,</sup> <sup>i.e.,</sup> <sup>relaxation</sup> <sup>(8a)</sup> <sup>is</sup> <sup>inexact.</sup> <sup>As</sup> the objective function _U_ is increasing in _f_ when _λ >_ 0, it follows that _U_ ( _h_ <sup>_∗_</sup> _,_ _f_ <sup>´</sup> ) _< U_ ( _h_ <sup>_∗_</sup> _, f_ <sup>_∗_</sup> ), which contradicts optimality of _f_ <sup>´</sup> . This proves the optimality of ( _p_ <sup>_∗_</sup> _, h_ <sup>_∗_</sup> _, f_ <sup>_∗_</sup> ) and the exactness of the relaxation (8a) for a given z ˙ . The exactness of relaxation (8a) for the case when the electrolyzer is in standby or off state follows from Lemma (1), which completes the proof. _Appendix_ _A.3._ _Proof_ _of_ _Theorem_ _3_ Suppose in sub-period _n_ the set of nonpositive power prices is nonempty _Tn_ <sup>_−_</sup> = _∅_, and the relaxation (8a) is binding at optimum for all time steps with nonpositive prices, such that _h_ <sup>_∗_</sup> _t_ <sup>=</sup> _A_ ( _p_ <sup>_∗_</sup> _t_ <sup>)2</sup> <sup>+</sup> <sup>_Bp∗_</sup> _t_ <sup>+</sup> <sup>_C, ∀t_</sup> <sup>_∈T_</sup> _n_ <sup>_−_</sup> <sup>.</sup> <sup>We</sup> <sup>define</sup> <sup>(´</sup> <sup>_pt,_</sup> <sup>_f_</sup> <sup>´</sup> <sup>_t_</sup> <sup>)</sup> <sup>as</sup> <sup>in</sup> <sup>the</sup> <sup>proof</sup> <sup>of</sup> <sup>Theorem</sup> <sup>2</sup> <sup>for</sup> <sup>_τ_</sup> <sup>_∈T_</sup> _n_ <sup>_−_</sup> <sup>,</sup> <sup>such</sup> that _h_ <sup>_∗_</sup> _τ_ <sup>_<_</sup> <sup>_A_</sup> <sup>(´</sup> <sup>_pτ_</sup> <sup>)2</sup> <sup>+</sup> <sup>_Bp_</sup> <sup>´</sup> <sup>_τ_</sup> <sup>+</sup> <sup>_C_</sup> <sup>,</sup> <sup>i.e.,</sup> <sup>constraint</sup> <sup>(8a)</sup> <sup>is</sup> <sup>nonbinding.</sup> <sup>As</sup> <sup>the</sup> <sup>objective</sup> <sup>function</sup> <sup>_U_</sup> <sup>is</sup> _τ_ <sup>_∗_</sup> <sup>.</sup> <sup>Then</sup> <sup>_h_</sup> _τ_ <sup>_∗_</sup> Suppose in sub-period _n_ the set of nonpositive power prices is nonempty _Tn_ <sup>_−_</sup> <sup>_∗_</sup> _t_ <sup>)2</sup> <sup>+</sup> <sup>_Bp∗_</sup> _t_ _n_ <sup>_−_</sup> <sup>.</sup> <sup>We</sup> <sup>define</sup> <sup>(´</sup> <sup>_pt,_</sup> <sup>_f_</sup> <sup>´</sup> <sup>_t_</sup> <sup>)</sup> <sup>as</sup> <sup>in</sup> <sup>the</sup> <sup>proof</sup> <sup>of</sup> <sup>Theorem</sup> <sup>2</sup> <sup>for</sup> <sup>_τ_</sup> <sup>_∈T_</sup> _n_ <sup>_−_</sup> <sup>_∗_</sup> _t_ <sup>+</sup> <sup>_C, ∀t_</sup> <sup>_∈T_</sup> _n_ <sup>_−_</sup> that _h_ <sup>_∗_</sup> _τ_ <sup>_<_</sup> <sup>_A_</sup> <sup>(´</sup> <sup>_pτ_</sup> <sup>)2</sup> <sup>+</sup> <sup>_Bp_</sup> <sup>´</sup> <sup>_τ_</sup> <sup>+</sup> <sup>_C_</sup> <sup>,</sup> <sup>i.e.,</sup> <sup>constraint</sup> <sup>(8a)</sup> <sup>is</sup> <sup>nonbinding.</sup> <sup>As</sup> <sup>the</sup> <sup>objective</sup> <sup>function</sup> <sup>_U_</sup> <sup>is</sup> decreasing in _f_ when _λ <_ 0, it follows that _U_ ( _f_ <sup>`</sup> ) _≥_ _U_ ( _f_ <sup>_∗_</sup> ), which contradicts the optimality of _f_ <sup>_∗_</sup> . We conclude that in sub-period _n_, for a given z ˙, there exists at least one time step _τ_ _∈Tn_ <sup>_−_</sup> <sup>,</sup> <sup>for</sup> which the optimal solution ( _p_ <sup>_∗_</sup> _, h_ <sup>_∗_</sup> _, f_ <sup>_∗_</sup> ) has a nonzero feasibility gap, i.e., relaxation HYP-SOC is inexact. Acknowledgement This work is supported in part by the Energy Cluster Denmark through the “Sustainable P2X Business Model” project. We are grateful to Alexandra L¨uth (Copenhagen Business School) for initial discussions on the conic relaxation of the hydrogen production curve and to Josh Taylor (New Jersey Institute of Technology) for suggesting the use of the linear underestimator. We would like to thank Jens Jakob Sørensen, Alexander Holm Kiilerich, Mathias Stolpe (all Ørsted), and Roar Hestbek Nicolaisen (Hybrid Greentech) for collaborations, thoughtful discussions, and constructive feedback. We thank Anubhav Ratha (Vestas) for discussions on the exactness proofs and providing feedback on the manuscript. Our final gratitude goes to two anonymous reviewers for providing critical feedback that helped us further improve our work. 20 References Badgett, A., Ruth, M., James, B., Pivovar, B., 2021. Methods identifying cost reduction potential for water electrol ysis systems. Curr. Opin. Chem. Eng. 33, 100714. doi: `[https://doi.org/10.1016/j.coche.2021.100714](http://dx.doi.org/https://doi.org/10.1016/j.coche.2021.100714)` . Baumhof, M.T., Raheli, E., Gloppen Johnsen, A., Kazempour, J., 2023. Optimization of hybrid power plants: When is a detailed electrolyzer model necessary?, in: Proc. IEEE PowerTech Conf., Belgrade, Serbia. pp. 1–10. doi: `[10.1109/PowerTech55446.2023.10202860](http://dx.doi.org/10.1109/PowerTech55446.2023.10202860)` . Borraz-S´anchez, C., Bent, R., Backhaus, S., Hijazi, H., Hentenryck, P.V., 2016. Convex relaxations for gas expansion planning. INFORMS J. Comput. 28, 645–656. doi: `[10.1287/ijoc.2016.0697](http://dx.doi.org/10.1287/ijoc.2016.0697)` . Boyd, S., Vandenberghe, L., 2004. Convex Optimization. Cambridge University Press. Bynum, M.L., Hackebeil, G.A., Hart, W.E., Laird, C.D., Nicholson, B.L., Siirola, J.D., Watson, J.P., Woodruff, D.L., 2021. Pyomo–optimization modeling in Python. volume 67. Third ed., Springer Science & Business Media. Engelhardt, J., Zepter, J.M., Gabderakhmanova, T., Marinelli, M., 2022. Efficiency characteristic of a high-power reconfigurable battery with series-connected topology, in: Proc. Int. Power Electronics Conf., Himeji, Japan. pp. 2370–2376. doi: `[10.23919/IPEC-Himeji2022-ECCE53331.2022.9807176](http://dx.doi.org/10.23919/IPEC-Himeji2022-ECCE53331.2022.9807176)` . ENTSO-e, 2022. Transparency platform, day-ahead prices. `[https://transparency.entsoe.eu/dashboard/show](https://transparency.entsoe.eu/dashboard/show)` (accessed 24 August 2023). European Comission, 2020. A hydrogen strategy for a climate-neutral Europe. `[https://energy.ec.europa.eu/](https://energy.ec.europa.eu/system/files/2020-07/hydrogen_strategy_0.pdf)` `[system/files/2020-07/hydrogen_strategy_0.pdf](https://energy.ec.europa.eu/system/files/2020-07/hydrogen_strategy_0.pdf)` (accessed 24 August 2023). European Commission, 2023. Delegated act on renewable fuels of non-biological origin. `[https://energy.ec.europa.](https://energy.ec.europa.eu/system/files/2023-02/C_2023_1087_1_EN_ACT_part1_v8.pdf)` `[eu/system/files/2023-02/C_2023_1087_1_EN_ACT_part1_v8.pdf](https://energy.ec.europa.eu/system/files/2023-02/C_2023_1087_1_EN_ACT_part1_v8.pdf)` (accessed 24 August 2023). Geißler, B., Martin, A., Morsi, A., Schewe, L., 2012. Using piecewise linear functions for solving MINLPs, in: Lee, J., Leyffer, S. (Eds.), Mixed Integer Nonlinear Programming, Springer New York. pp. 287–314. Gurobi Optimization, LLC, 2023. Gurobi Optimizer Reference Manual. `[https://www.gurobi.com](https://www.gurobi.com)` (accessed 24 August 2023). Hart, W.E., Watson, J.P., Woodruff, D.L., 2011. Pyomo: modeling and solving mathematical programs in Python. Math. Program. Comput. 3, 219–260. doi: `[https://doi.org/10.1007/s12532-011-0026-8](http://dx.doi.org/https://doi.org/10.1007/s12532-011-0026-8)` . Kopp, M., Coleman, D., Stiller, C., Scheffer, K., Aichinger, J., Scheppat, B., 2017. Energiepark Mainz: Technical and economic analysis of the worldwide largest power-to-gas plant with PEM electrolysis. Int. J. Hydrog. Energy 42, 13311–13320. doi: `[https://doi.org/10.1016/j.ijhydene.2016.12.145](http://dx.doi.org/https://doi.org/10.1016/j.ijhydene.2016.12.145)` . Kountouris, I., Langer, L., Bramstoft, R., M¨unster, M., Keles, D., 2023. Power-to-x in energy hubs: A Danish case study of renewable fuel production. Energy Policy 175, 113439. doi: `[https://doi.org/10.1016/j.enpol.2023.](http://dx.doi.org/https://doi.org/10.1016/j.enpol.2023.113439)` `[113439](http://dx.doi.org/https://doi.org/10.1016/j.enpol.2023.113439)` . Larscheid, P., L¨uck, L., Moser, A., 2018. Potential of new business models for grid integrated water electrolysis. Renew. Energy 125, 599–608. doi: `[https://doi.org/10.1016/j.renene.2018.02.074](http://dx.doi.org/https://doi.org/10.1016/j.renene.2018.02.074)` . Lettenmeier, P., 2021. Efficiency - electrolysis: Siemens white paper. `[https://assets.siemens-energy.com/](https://assets.siemens-energy.com/siemens/assets/api/uuid:a33a8c39-b694-4d91-a0b5-4d8c9464e96c/efficiency-white-paper.pdf)` `[siemens/assets/api/uuid:a33a8c39-b694-4d91-a0b5-4d8c9464e96c/efficiency-white-paper.pdf](https://assets.siemens-energy.com/siemens/assets/api/uuid:a33a8c39-b694-4d91-a0b5-4d8c9464e96c/efficiency-white-paper.pdf)` (accessed 24 August 2023). Lin, H., Wu, Q., Chen, X., Yang, X., Guo, X., Lv, J., Lu, T., Song, S., McElroy, M., 2021. Economic and technological feasibility of using power-to-hydrogen technology under higher wind penetration in China. Renew. Energy 173, 569–580. doi: `[https://doi.org/10.1016/j.renene.2021.04.015](http://dx.doi.org/https://doi.org/10.1016/j.renene.2021.04.015)` . Marocco, P., Ferrero, D., Martelli, E., Santarelli, M., Lanzini, A., 2021. An MILP approach for the optimal design of renewable battery-hydrogen energy systems for off-grid insular communities. Energy Convers. Manag. 245, 114564. doi: `[https://doi.org/10.1016/j.enconman.2021.114564](http://dx.doi.org/https://doi.org/10.1016/j.enconman.2021.114564)` . Matute, G., Yusta, J., Beyza, J., Correas, L., 2021. Multi-state techno-economic model for optimal dispatch of grid connected hydrogen electrolysis systems operating under dynamic conditions. Int. J. Hydrog. Energy 46, 1449–1460. doi: `[https://doi.org/10.1016/j.ijhydene.2020.10.019](http://dx.doi.org/https://doi.org/10.1016/j.ijhydene.2020.10.019)` . Nami, H., Rizvandi, O.B., Chatzichristodoulou, C., Hendriksen, P.V., Frandsen, H.L., 2022. Techno-economic analysis of current and emerging electrolysis technologies for green hydrogen production. Energy Convers. Manag. 269, 116162. doi: `[https://doi.org/10.1016/j.enconman.2022.116162](http://dx.doi.org/https://doi.org/10.1016/j.enconman.2022.116162)` . Pavi´c, I., Covi´c, <sup>ˇ</sup> N., Pandˇzi´c, H., 2022. PV-battery-hydrogen plant: Cutting green hydrogen costs through multi market positioning. Appl. Energy 328, 120103. doi: `[https://doi.org/10.1016/j.apenergy.2022.120103](http://dx.doi.org/https://doi.org/10.1016/j.apenergy.2022.120103)` . Pinson, P., 2013. Wind energy: Forecasting challenges for its operational management. Statistical Science 28, 564 585. doi: `[10.1214/13-STS445](http://dx.doi.org/10.1214/13-STS445)` . Raheli, E., Werner, Y., Kazempour, J., 2023. A conic model for electrolyzer scheduling - Online companion. `[https://github.com/ELMA-Github/conic_electrolyzer_paper](https://github.com/ELMA-Github/conic_electrolyzer_paper)` (accessed 24 August 2023). Saretta, M., Raheli, E., Kazempour, J., 2023. Electrolyzer scheduling for Nordic FCR services, in: Proc. IEEE SmartGridComm Conf., Glasgow, UK. pp. 1–6. `[arXiv:2306.10962](http://arxiv.org/abs/2306.10962)` . Staffell, I., Pfenninger, S., 2016. Using bias-corrected reanalysis to simulate current and future wind power output. Energy 114. doi: `[https://doi.org/10.1016/j.energy.2016.08.068](http://dx.doi.org/https://doi.org/10.1016/j.energy.2016.08.068)` . S´anchez, M., Amores, E., Abad, D., Rodr´ıguez, L., Clemente-Jul, C., 2020. Aspen Plus model of an alkaline 21 electrolysis system for hydrogen production. Int. J. Hydrog. Energy 45, 3916–3929. doi: `[https://doi.org/10.](http://dx.doi.org/https://doi.org/10.1016/j.ijhydene.2019.12.027)` `[1016/j.ijhydene.2019.12.027](http://dx.doi.org/https://doi.org/10.1016/j.ijhydene.2019.12.027)` . S´anchez, M., Amores, E., Rodr´ıguez, L., Clemente-Jul, C., 2018. Semi-empirical model and experimental validation for the performance evaluation of a 15 kW alkaline water electrolyzer. Int. J. Hydrog. Energy 43, 20332–20345. doi: `[10.1016/j.ijhydene.2018.09.029](http://dx.doi.org/10.1016/j.ijhydene.2018.09.029)` . Taylor, J.A., Rapaport, A., 2021. Second-order cone optimization of the gradostat. Comput. Chem. Eng. 151, 107347. doi: `[10.1016/j.compchemeng.2021.107347](http://dx.doi.org/10.1016/j.compchemeng.2021.107347)` . Taylor, J.A., Rapaport, A., Dochain, D., 2022. A sequential convex moving horizon estimator for bioprocesses. J. Process Control 116, 19–24. doi: `[10.1016/j.jprocont.2022.05.012](http://dx.doi.org/10.1016/j.jprocont.2022.05.012)` . Ulleberg, Ø., 2003. Modeling of advanced alkaline electrolyzers: A system simulation approach. Int. J. Hydrog. Energy 28, 21–33. doi: `[https://doi.org/10.1016/S0360-3199(02)00033-2](http://dx.doi.org/https://doi.org/10.1016/S0360-3199%0x2802%0x2900033-2)` . Varela, C., Mostafa, M., Zondervan, E., 2021. Modeling alkaline water electrolysis for power-to-x applications: A scheduling approach. Int. J. Hydrog. Energy 46, 9303–9313. doi: `[https://doi.org/10.1016/j.ijhydene.2020.](http://dx.doi.org/https://doi.org/10.1016/j.ijhydene.2020.12.111)` `[12.111](http://dx.doi.org/https://doi.org/10.1016/j.ijhydene.2020.12.111)` . Venzke, A., Chatzivasileiadis, S., Molzahn, D.K., 2020. Inexact convex relaxations for AC optimal power flow: Towards AC feasibility. Elect. Power Syst. Res. 187, 106480. doi: `[10.1016/j.epsr.2020.106480](http://dx.doi.org/10.1016/j.epsr.2020.106480)` . Wei, W., Wang, J., Li, N., Mei, S., 2017. Optimal power flow of radial networks and its variations: A sequential convex optimization approach. IEEE Trans. Smart Grid. 8, 2974–2987. doi: `[10.1109/tsg.2017.2684183](http://dx.doi.org/10.1109/tsg.2017.2684183)` . World Energy Council, 2021. Working paper: National hydrogen strategies. `[https://www.worldenergy.org/](https://www.worldenergy.org/assets/downloads/Working_Paper_-_National_Hydrogen_Strategies_-_September_2021.pdf)` `[assets/downloads/Working_Paper_-_National_Hydrogen_Strategies_-_September_2021.pdf](https://www.worldenergy.org/assets/downloads/Working_Paper_-_National_Hydrogen_Strategies_-_September_2021.pdf)` (accessed 24 August 2023). Zheng, Y., Huang, C., You, S., Zong, Y., 2023. Economic evaluation of a power-to-hydrogen system providing frequency regulation reserves: a case study of denmark. Int. J. Hydrog. Energy 48, 26046–26057. doi: `[https:](http://dx.doi.org/https://doi.org/10.1016/j.ijhydene.2023.03.253)` `[//doi.org/10.1016/j.ijhydene.2023.03.253](http://dx.doi.org/https://doi.org/10.1016/j.ijhydene.2023.03.253)` . Zheng, Y., You, S., Bindner, H.W., M¨unster, M., 2022a. Incorporating optimal operation strategies into investment planning for wind/electrolyser system. CSEE J. Power Energy Syst. 8, 347–359. doi: `[10.17775/CSEEJPES.2021.](http://dx.doi.org/10.17775/CSEEJPES.2021.04240)` `[04240](http://dx.doi.org/10.17775/CSEEJPES.2021.04240)` . Zheng, Y., You, S., Bindner, H.W., M¨unster, M., 2022b. Optimal day-ahead dispatch of an alkaline electrolyser system concerning thermal–electric properties and state-transitional dynamics. Appl. Energy 307, 118091. doi: `[10.](http://dx.doi.org/10.1016/j.apenergy.2021.118091)` `[1016/j.apenergy.2021.118091](http://dx.doi.org/10.1016/j.apenergy.2021.118091)` . Zohrizadeh, F., Josz, C., Jin, M., Madani, R., Lavaei, J., Sojoudi, S., 2020. A survey on conic relaxations of optimal power flow problem. Eur. J. Oper. Res. 287, 391–409. doi: `[https://doi.org/10.1016/j.ejor.2020.01.034](http://dx.doi.org/https://doi.org/10.1016/j.ejor.2020.01.034)` . 22

섹션 본문 69문단 · 44,487자

(제목 없음)

1The hydrogen production curve of the electrolyzer describes the non-linear and non-convex relationship between its power consumption and hydrogen production. An accurate representation of this curve is essential for the optimal scheduling of the electrolyzer. The current state-of-the-art approach is based on piece-wise linear approximation, which requires binary variables and does not scale well for large-scale problems. To overcome this barrier, we propose two models, both built upon convex relaxations of the hydrogen production curve. The first one is a linear relaxation of the piece-wise linear approximation, while the second one is a conic relaxation of a quadratic approximation. Both relaxations are exact under prevalent operating conditions. We prove this mathematically for the conic relaxation. Using a realistic case study, we show that the conic model, in comparison to the other models, provides a satisfactory trade-off between computational complexity and solution accuracy for large-scale problems.

A. Background

2Renewable hydrogen produced via electrolysis is widely acknowledged as a key priority to achieve a clean energy transition. Several countries in Europe and globally have published national hydrogen strategies to support the largescale development of electrolyzers [1]. For instance, the 2020 EU Hydrogen strategy sets an electrolyzer capacity target of 40 GW by 2030 [2]. Developing this technology on a large scale poses several challenges, including the scale-up of manufacturing processes, the improvement of system design and materials, the establishment of a supportive policy framework, and the definition of new business models [3], [4].

3Hybrid power plants consisting of renewable power sources (wind and/or solar) and electrolyzers create synergies based on cross-commodity arbitrage between electricity and hydrogen markets [4]. The plant operator can dynamically control the system to take advantage of volatile electricity prices: selling electricity directly when power prices are high and producing and selling hydrogen when power prices are low [5]. In this way, the cost of hydrogen production, which mainly depends on the cost of electricity [6], is reduced. This requires the development of optimal scheduling models aiming at maximizing the profit of the hybrid power plant.

4To accurately capture the operational space of the hybrid power plant, those models should be aware of the underlying Fig. 1. Schematic efficiency (black) and hydrogen production (red) curves for an alkaline electrolyzer. P min and P max refer to the minimum and maximum operating range, respectively. P η,max is the power consumption corresponding to the peak efficiency. This figure is plotted based on the methodology in [11] applied to data from [9] and [10].

5physics of its components. This poses a challenge particularly for modeling the electrolyzer, for which the relationship between its power consumption and hydrogen production is non-linear and non-convex. We refer to this relationship as the hydrogen production curve, which does not have a known analytical expression. As the technology is still in an early stage of development, manufacturers disclose very limited information on technical characteristics. From modeling perspective, two main questions arise: First, how to best approximate the hydrogen production curve under limited information availability? Second, how to deal with computational complexity of the non-linear hydrogen production curve when optimizing dispatch strategies?

B. Electrolyzer hydrogen production modeling: Status quo

6The dashed red curve in Figure 1 shows a schematic hydrogen production curve of an alkaline electrolyzer. To better illustrate the non-linear physics of the electrolyzer, the black curve depicts the ratio of hydrogen production to power consumption, the so-called efficiency curve. The efficiency peaks at around 20-40% of the electrolyzer capacity [7], for which the corresponding power consumption of the electrolyzer is denoted as P η,max . For power consumption levels higher than P η,max , the efficiency declines almost linearly due to the effect of overpotentials in the polarization curve [8]. For consumption levels below P η,max , the efficiency drops rapidly due to increasing Faraday losses [9]. This non-linearity needs to be incorporated into operational decision-making problems of the electrolyzer through the hydrogen production curve (red). For a more detailed analysis of the physics and technical modeling of the electrolyzer, the interested reader is referred to [9]- [11].

7Currently, there is no widely adopted approach for modeling the hydrogen production curve in a computationally tractable way. It is a common practice in the literature to introduce relatively strong simplifications for the hydrogen production curve. For instance, a constant efficiency is used in [5] and [12]. In [13], a first and second-order polynomial approximation for the hydrogen production curve is proposed. Although the second-order polynomial exhibits a smaller error, it has been eventually discarded due to its computational complexity. In [14], it has been shown that a linear hydrogen production curve is not suitable when the electrolyzer frequently operates at partial load, i.e., in the range between P min and P max in Figure 1. Instead, they propose a piecewise-linear hydrogen production curve and assess the impact of neglecting a detailed electrolyzer model. However, additional binary variables, one for each linearization segment, need to be introduced, increasing the computational burden.

C. Contributions and Paper Organization

8Existing approaches to modeling the non-linear hydrogen production curve are either inaccurate, resulting in sub-optimal operational decisions, or do not computationally scale well for large optimization problems. Some examples for largescale problems involving electrolyzers are the operation and planning of complex power-to-x systems with further downstream chemical processes; the trading problem in multiple markets for electricity, hydrogen, and ancillary services; the operation of individual stacks of large-scale electrolyzers; and the scheduling problem under uncertainty, e.g., when the electrolyzer is part of a renewable-based hybrid power plant.

9This paper takes a new perspective on modeling the hydrogen production curve based on convex relaxations, ensuring both accuracy and computational scalability for largescale problems. Starting from the state-of-the-art piece-wise linearization method, we derive a corresponding linear relaxation that does not require binary variables. As our main contribution, we propose a conic relaxation of a quadratic approximation of the hydrogen production curve, resulting in the so-called conic model. We mathematically prove that the conic relaxation is exact for prevalent operating conditions. This model can be readily applied to the large-scale optimization problems mentioned above, among others. We numerically compare the conic model to the state-of-theart piece-wise linearization method and its linear relaxation counterpart, and verify ex-post its well-performance in terms of solution quality, i.e., operational decisions, and reduced computational complexity.

10The remainder of this paper is organized as follows. Section II introduces the system setup and the optimal scheduling problem of the hybrid power plant. Section III provides an overview of the different approaches to model the non-linear hydrogen production curve, including the proposed relaxations. Those relaxations are exact under prevalent operating conditions, which we prove for the conic model in Section IV. Section V compares the modeling approaches, and Section VI concludes.

II. SCHEDULING PROBLEM

11We consider a hybrid power plant as shown in Figure 2, consisting of a wind farm, an electrolyzer system, and a hydrogen demand. Hereafter, we refer to the electrolyzer Fig. 2. Schematic representation of a hybrid power plant. The electrolyzer system includes the hydrogen compressor and other auxiliary components.

12as a system including all necessary auxiliary components, including transformers, rectifiers, pumps, coolers, heaters, and compressors, in addition to the electrolyzer device. Following the current common practice, we assume that hydrogen is sold at a fixed price and that there is an upper limit on the hydrogen demand for a given time interval, which, e.g., represents the capacity of a tube trailer. As we do not consider any constraints on the total hydrogen production directly, it is effectively restricted by the total hydrogen demand. We, therefore, use the terms total hydrogen production and demand interchangeably. For the sake of simplicity, we assume that there is no minimum level of hydrogen demand. Electricity generated by the wind farm can either be sold to the grid at a perfectly known price or used for hydrogen production through the electrolyzer. Without loss of generality and to avoid discussion about the carbon intensity of the hydrogen produced, we assume that the hybrid power plant never buys electricity from the grid. 1 In the following, we introduce a model for the optimal dayahead scheduling problem of the given hybrid power plant. The modeling of the hydrogen production curve and the proposed relaxations will be presented in Section III. To ease notational clarity, we use upper-case and Greek symbols for parameters, and lower-case symbols for variables. Let t ∈ T denote the set of time steps, which is divided into n ∈ N subsets H n ⊆ T , such that ∪ n∈N H n = T and ∩ n∈N H n = ∅. For example, t ∈ T could be 8760 hours of the year, whereas H n , ∀n ∈ {1, 2, ..., 365}, indicates the set of 365 days.

13The operator of the hybrid power plant maximizes the total profit from selling power f t to the grid at the day-ahead power price λ t , and selling hydrogen h t at a constant price χ > 0. The only operational expense considered is the startup cost K su indicated by the binary variable z su t :

14where x, y, and z denote the set of variables corresponding to the balance of the hybrid power plant, the hydrogen production curve, and to the operational states of the electrolyzer, respectively. These three sets will be defined later. The power balance within the hybrid power plant is enforced by

15where W t denotes the deterministic day-ahead forecast of the wind power production and p t is the day-ahead schedule for the power consumption of the electrolyzer at time t. Constraints (1c) prohibit purchasing power from the grid. In each subset of time steps H n , e.g., over every day n ∈ N , the total hydrogen production is limited by the hydrogen demand D max n , which, e.g., represents the capacity of an available tube trailer for hydrogen transportation:

16Constraints (1e) ensure that the hydrogen production is nonnegative. The set of variables x is defined as

17We consider three operational states for the electrolyzer, namely on, standby, and off [5], [11], [13], [14]. In the on state, the electrolyzer is consuming power and producing hydrogen. Below a certain minimum power consumption, the electrolyzer has to be turned to standby or off. In standby, the electrolyzer does not produce hydrogen but consumes a small amount of power to keep the system running and be able to turn on immediately. On the contrary, in the off state, the electrolyzer does not consume any power but takes several minutes and a significant amount of electricity to be switched back to the on state. Modeling these operational states and transitions in the scheduling problem requires binary variables. The three operational states, i.e., on, off, and standby, are indicated by binary variables z on t , z off t , z sb t , respectively. They constrain the feasible power consumption of the electrolyzer as

18Constraints (2a) ensure mutual exclusiveness of the operational states. The corresponding power consumption is constrained by (2b) and (2c) based on the standby, minimum, and maximum power consumption levels P sb , P min , and P max , respectively. Constraints (2d) and (2e) define a cold startup z su t ∈ {0, 1} when the electrolyzer changes from off to on state. Lastly, the operational states and transitions are restricted to be binary by (2f). The set of variables z is defined as z = {z on t , z sb t , z off t , z su t }. The hydrogen production curve (HYP), illustrated by the red curve in Figure 1, relates the power consumption to the hydrogen production of the electrolyzer in a general form of

19In the following section, we present three different approximation and/or relaxation models for (3), including our proposed conic model. Each model ends up in a set of constraints that replaces (3), which is part of the optimal scheduling problem of the hybrid power plant (1a)-(3).

III. MODELING THE HYDROGEN PRODUCTION CURVE

20There is currently limited information available on the technical characteristics of electrolyzers. Therefore, we compute a hydrogen production curve using the process explained in [14], which is based on empirical relationships found by [9] and [10]. We refer to it as the experimental hydrogen production curve HYP-X, which does not have a closed-form analytical expression. Note that it is unnecessary to compute HYP-X if operational data on power consumption and hydrogen production is available, e.g., as in [16]. The models introduced next can then directly be constructed from the operational data. The three 2 models that replace (3) are 1) HYP-MIL: The current state-of-the-art piece-wise linear approximation, 2) HYP-L: A corresponding linear relaxation, 3) HYP-SOC: A second-order cone relaxation of a quadratic approximation. These three models along with HYP-X are illustrated in Figure 3, together with their efficiency curves. For illustration clarity, Figure 3 shows two segments only for HYP-MIL and HYP-L. In general, any finite number and position of segments can be chosen depending on the desired tradeoff between accuracy and computational complexity. Model HYP-SOC is a relaxation of a quadratic approximation of the experimental hydrogen production curve such that the corresponding efficiency reaches its maximum at the power consumption P η,max . 3 A close-up on model HYP-SOC is shown in the inset plot on the right side of Figure 3. Let p * and h * denote the optimal power consumption and optimal hydrogen production of the electrolyzer, respectively. The actual hydrogen production corresponding to p * , according to the experimental hydrogen production curve HYP-X, is indicated by point H1. Model HYP-SOC may not be able to attain this point as it utilizes an approximation of the experimental curve, which is illustrated by the blue dashed line. The solution to HYP-SOC may therefore be located at h * = H2. We call the discrepancy between H1 and H2 approximation error. For models HYP-MIL and HYP-L, this error is always non-negative and its magnitude can be controlled by the number of linearization segments. This is not the case for HYP-SOC, where the approximation error can be either positive or negative, and is limited by the shape of the quadratic approximation.

21In contrast to the non-convex approximation HYP-MIL, models HYP-L and HYP-SOC further admit the point h * = H3, located in the blue shaded area, when the relaxation of the hydrogen production curve is inexact. We refer to the discrepancy between H2 and H3 as relaxation gap. The magnitude of the gap depends on the exactness of the relaxation, which is further discussed in Section IV. Note that for model HYP-SOC, depending on the optimal power consumption p * , the approximation error and relaxation gap may offset each other. Fig. 3. Approximation (blue dashed) and relaxation (blue shaded) of the experimental non-convex (black) hydrogen production and efficiency curves using two segments (except HYP-SOC). The experimental hydrogen production and efficiency curves are taken from [14], based on [9], [10]. For an example optimal power consumption p * , the actual amount of hydrogen produced according to the experimental curve is indicated by point H1. Points H2 and H3 denote solutions when the relaxation HYP-SOC is exact and inexact, respectively.

22In the following, we present the mathematical formulations for all the models.

A. HYP-MIL

23The state-of-the-art approximation of the hydrogen production curve [14], [18], [19] follows a piece-wise linearization approach as

24The hydrogen production on each linear segment s is determined by (4a), where B s and C s denote the slope and intercept of the underlying segment, respectively. These coefficients have to be determined ex-ante by choosing fixed linearization points on the original non-linear hydrogen production curve and performing a linear interpolation between them (see Figure 3). In addition, variable p s,t is the power consumption corresponding to segment s at time t. Binary variable z s,t indicates whether the electrolyzer operates on segment s at time t. Constraints (4b) enforce that the power consumption on each segment is between the lower and upper bounds P s and P s , respectively, if the segment is active. Constraints (4c) ensure that only one segment can be active when the electrolyzer is in on state. The power consumption of the electrolyzer is then defined by (4d) depending on the operational state.

25For |S| = 1, model HYP-MIL represents a linear hydrogen production curve, which does not require binary variables, as done in [13]. The interested reader is referred to [14] for a more detailed explanation of the approximation of the hydrogen production curve based on piece-wise linearization and a discussion on the impact of the number of segments.

B. HYP-L

26The piece-wise linearization of the hydrogen production curve (4a)-(4e) becomes computational challenging with an increasing number of segments due to the required binary variables. A natural idea would then be to relax (4a), which allows to remove the associated binary variables. By this, (4a)-(4e) reduce to

27The power consumption of the electrolyzer in on state is now given by p t . Constraints (5a) are an intersection of hypographs of concave functions and are therefore convex [20]. The set of constraints (5a)-(5c) is equivalent to (4a)-(4d) when (5a) is binding at the optimal solution. In contrast to the piece-wise linearization, this formulation is computationally efficient even for a comparatively high number of segments.

28C. HYP-SOC By looking into the experimental hydrogen production curve in Figure 1, one may hypothesize that it has a quadratic shape. This is further supported by a semi linear power-tohydrogen conversion efficiency for power consumption levels higher than P η,max . Accordingly, we approximate the experimental hydrogen production curve HYP-X by a second-order polynomial:

29where A < 0, B > 0, and C < 0. As mentioned earlier, the second-order polynomial can be straightforwardly fitted to operational data of the electrolyzer, if available. This is a great advantage over models HYP-MIL and HYP-L, as it does not require choosing the number and the location of linearization points. Constraint (6) is a non-convex quadratic equality constraint. With binary variables required for modeling the operational states of the electrolyzer, the resulting optimization model would be a mixed-integer non-linear programming (MINLP) problem, which is generally hard to solve with existing offthe-shelf solvers, even to locally optimal solutions. In contrast to existing approaches in the literature, e.g., as in [13], we propose using a relaxed version of (6), which can be amended to include the operational states of the electrolyzer as

30For every time step t that the electrolyzer is on, i.e., z on t = 1, (7a) enforces a convex quadratic inequality constraint for A < 0. This constraint can be reformulated into an efficiently solvable rotated second-order cone (SOC) constraint, as shown in the online companion [17]. In the following, we stick to the convex quadratic form as we find it to be more intuitive here. The set of constraints (7a)-(7c) is equivalent to (6) when (7a) is a binding constraint for every time t at the optimal solution. If it is not binding, i.e., there is a difference between the right and left-hand side of constraint (7a), then the relaxation gap is non-zero. This is illustrated by the discrepancy between points H2 and H3 in Figure 3.

31Accounting for binary variables needed to model the operational states of the electrolyzer, the resulting problem is a mixed-integer second-order cone programming (MISOCP) problem, which is efficiently solvable by existing off-the-shelf solvers like Gurobi, Mosek, and CPLEX, that directly support convex quadratic constraints.

D. Summary

32An overview of the three models is given in Table I. Hereafter, we use terms HYP-MIL, HYP-L, and HYP-SOC, not only to refer to the hydrogen production curve, but also to the resulting scheduling problem of the hybrid power plant.

33The objective function (1a) is common to all three models. We group the constraints into three groups. The first group consists of all constraints related to the hybrid power plant as a system, which are all linear. The second group includes all constraints related to the operational states of the electrolyzer, requiring binary variables. The first and second group are common to all three models. The third group depends on the model of the hydrogen production curve that replaces constraint (3), i.e., the state-of-the-art piece-wise linear approximation (HYP-MIL), a linear relaxation counterpart (HYP-L), or the proposed conic relaxation (HYP-SOC). Due to the binary variables z for modeling the operational states, the resulting scheduling problem of the hybrid power plant becomes either a mixed-integer linear programming (MILP) or a MISOCP problem. When neglecting the operational states, models HYP-L and HYP-SOC reduce to a linear programming (LP) or a second-order cone programming (SOCP) problem, respectively. This is not the case for model HYP-MIL, which requires additional binary variables for the piecewise linearization of the hydrogen production curve.

34We define the set of variables related to the hydrogen production curve y as y L = y SOC = { p t }, and y MIL =

IV. ON THE EXACTNESS OF THE CONIC RELAXATION

35Models HYP-L and HYP-SOC are exact when inequality constraints (5a) and (7a), respectively, are binding at the optimal solution. In the following, we derive sufficient conditions for model HYP-SOC to be exact as well as necessary and sufficient conditions for it to be inexact. Similar analytical results can be obtained for HYP-L. Focusing on HYP-SOC, if (7a) is not binding at optimum, i.e., the relaxation gap is nonzero, an intuitive interpretation is that a fraction of hydrogen produced is being wasted or that an unnecessarily high amount of power is being consumed. This fraction is depicted by the difference of points H2 and H3 in Figure 3.

36In the following, we always assume that a solution to problem HYP-SOC exists, as p = 0, f = W , and z off = 1 is trivial. Recall we assume that the hydrogen price is positive, as stated in Section II. Now, we provide analytical results for the exactness of relaxation (7a).

37Theorem 1: If the maximum total hydrogen production constraint (1d) is not binding at optimum, then the relaxation (7a) is exact.

38Proof: See Appendix A. This theorem applies to a wide range of relevant use cases wherein the total hydrogen production is unconstrained. This could be the case wherein hydrogen production facilities are located next to large hydrogen consumers or a direct connection to hydrogen pipeline infrastructure or large storage facilities exists. In some real-life applications, however, the maximum total hydrogen production is constrained, e.g., by the capacity of available tube trailers for hydrogen transportation. For that case, we derive another theorem providing a sufficient condition for exactness based on electricity prices being positive.

39Theorem 2: Suppose the maximum total hydrogen production (1d) is binding at optimum for sub-period n. If the power prices are positive λ t > 0, ∀t ∈ H n , then the relaxation (7a) is exact.

40Proof: See Appendix B. Intuitively, when the power price is positive, Theorem 2 implies that increasing the power consumption of the electrolyzer is unprofitable if additional hydrogen cannot be sold. To complete our analyses, we now focus on cases with nonpositive electricity prices, which constitute a highly profitable business case for an electrolyzer. When buying power from the grid and spilling wind is not allowed, there is a monetary incentive for the electrolyzer to maximize its consumption of local wind power production, even if the hydrogen demand is already satisfied.

41Theorem 3: Let T − n ⊆ H n be the subset of hours in subperiod n, such that λ t ≤ 0, ∀t ∈ T − n . If the total hydrogen production in those hours equals the maximum demand, i.e., t∈T − n h t = D max n , such that (1d) is binding at optimum for sub-period n, then there exists at least one time step t ∈ T − n for which the relaxation (7a) is inexact.

42Proof: See Appendix C. While Theorem 3 states that relaxation (7a) is inexact when it is economically most profitable for the hybrid power plant, the necessary conditions are hardly met in practice. We demonstrate this based on a realistic case study in Section V and argue that the relaxation (7a) is exact under prevalent operating conditions. Note that the theorems stated here, including Theorem 3, extend to the case where the electrolyzer is allowed to buy electricity from the grid and wind spillage is allowed.

43The necessary condition for inexactness of relaxation (7a) stated in Theorem 3 can be checked a priori. For each subperiod n, one can evaluate in advance if the total maximum possible hydrogen production during hours with non-positive prices is greater than or equal to the maximum demand, i.e.,

44where P t = min{W t , P max } ∀t ∈ T . It follows from Theorem (3) that if condition (8) is not fulfilled, then the relaxation is exact. The converse is not necessarily true. If the relaxation (7a) is inexact, model HYP-SOC may obtain a solution like H3 in Figure 3. In those cases, the corresponding relaxation error can be substantially reduced by including a linear underestimator to the hydrogen production curve. Additionally, an exact solution can be restored a posteriori as, e.g., shown in [21] in the context of AC optimal power flow. We leave this for future research.

45V. NUMERICAL STUDY We consider a hybrid power plant consisting of a 1-MW electrolzyer and a 2-MW wind farm. Hourly wind capacity factors for year 2019 are obtained from the Renewable.ninja web platform [22] for a wind farm located in Eastern Denmark. The day-ahead electricity prices in the same year for the corresponding bidding area (DK2) are taken from [23]. The electrolyzer has a minimum operating power of P min = 0.15 MW and a standby power consumption of P sb = 0.01 MW. We assume a cold-startup cost of K su = C50, borrowed from [13]. Hydrogen is sold at a fixed price of χ = C2.1/kg. The public repository [17] contains the input data and code implementation in the Pyomo package [24], [25] for Python, where optimization models have been solved by the Gurobi solver [26].

A. Exactness of the proposed conic relaxation

46As discussed in Section IV, the exactness of the relaxation in HYP-SOC depends on the power prices and total hydrogen production. The latter is affected by the wind power availability. To validate our analytical results in Section IV, we consider four different cases with different profiles of wind power availability and power prices:

47Case (a): Mostly negative hourly power prices and low wind power availability, Case (b): Solely positive hourly power prices and comparatively high wind power availability compared to that in Case (a), Case (c): Some negative hourly power prices and comparatively high wind power availability as in Case (b), Case (d): Mostly negative hourly power prices as in Case (a) and comparatively high wind power availability as in Case (b). For each of the four cases, we build an illustrative case study for a time period of one day (24 hours). For that, we select different combinations of two realistic wind profiles (low and high wind) [22] and three power price profiles (solely positive, some negative, and mainly negative prices) [23]. The data is visualized in the top row of Figure 4. Among the four illustrative days, the one representing Case (c) is the only one that combines wind and price profiles of the same day in 2019. Note that the two price profiles in Cases (c) and (d) correspond to the two days in 2019 with the highest number of hours with negative power prices.

48To create a situation where the maximum daily hydrogen production constraint (1d) becomes binding, we choose a rather low hydrogen demand of D max = 252.7 kg for all cases. This value corresponds to the amount of hydrogen that is produced when the electrolyzer is operated in full-load operation 60% of the time. The optimal power consumption, hydrogen production, and the relaxation gap for Cases (a)-(d) are shown in the bottom row of Figure 4. Recall that by relaxation gap, we refer to the discrepancy between right and left-hand side of constraint (7a), which is illustrated by points H2 and H3 in Figure 3. Note that all results on the exactness of the relaxation of the hydrogen production curve presented in this subsection can be similarly obtained for model HYP-L.

49In Case (a), despite frequent negative power prices, there is not enough wind power over the day available such that the total hydrogen demand (1d) reaches the upper limit. The comparably higher wind power availability in Case (b) in combination with low but positive power prices results in a binding maximum total hydrogen demand. For both Cases (a) and (b), it follows immediately from Theorem 1 and Theorem 2, respectively, that the relaxation HYP-SOC is exact.

50The maximum total hydrogen production is binding in Case (c) too. It is, however, non-binding for the 12 hours with negative prices only. Hence, it does not fulfill the necessary condition for the inexactness of relaxation (7a) as stated in Theorem 3. Note that the operation during hours with negative prices is preferred even if operating in hours with positive prices is profitable. Case (d) has an even higher number of hours with negative prices (17 hours), such that the hydrogen demand becomes binding during the operation in those hours only. This satisfies the necessary and sufficient conditions stated in Theorem 3. As a consequence, relaxation (7a) is The pink line shows the hydrogen production corresponding to a zero relaxation gap, which is illustrated by the shaded area (grey). When the relaxation (7a) is exact, i.e., the gap is zero, the green and pink lines coincide.

51inexact at optimum, leading to a non-zero relaxation gap equal to the shaded area in Figure 4. 4

B. Comparison of the solution quality

52This section compares the models proposed in Section III in terms of profit, dispatch decisions, and hydrogen production. The dataset for year 2019 includes 95 hours with negative electricity prices, spread across 20 days. Based on the heuristic proposed in Equation (8), we found that for the year 2019, the proposed relaxations are exact for a maximum hydrogen demand above D max = 296.3 kg, corresponding to the hydrogen produced when the electrolyzer runs in full-load operation 70.4% of the time. 5 Therefore, we choose a maximum daily hydrogen demand corresponding to 90%, which ensures that the relaxations HYP-L and HYP-SOC are always exact. This implies that HYP-L results in the same dispatch decisions as HYP-MIL. Therefore, we do not explicitly report the results for model HYP-L.

53We use the term HYP-MILi for i ∈ {1, 2, 10, 24} to refer to model HYP-MIL with i linearization segments. Model HYP-MIL24, i.e., model HYP-MIL with 24 segments, is used as a benchmark in the following. A detailed explanation on how we choose the location of linearization points is given in Section 3 of the online companion [17]. The interested reader is further referred to [19] for a different choice of linearization points.

54We first compare the different models in terms of dispatch decisions for a selected day of 2019, where the hydrogen production is not limited by wind power availability. Figure 5(a) shows the wind profile, electricity prices, and optimal electrolyzer power consumption of HYP-MIL24, which is chosen as a benchmark. For each model formulation, the 4 Note that for model HYP-SOC the solver reports a solution where all time steps have a non-zero feasibility gap. This is not necessarily always true, as multiple optimal solutions exist in this case. When solving the same case study with the linear relaxation HYP-L, the aggregated relaxation gap is fully allocated to the minimum possible number of time steps. 5 For the relaxations to be inexact for more than 2 days, an unrealistically low maximum hydrogen demand below 25% is necessary. This demonstrates that the relaxations are exact under prevalent operating conditions. hourly relative difference of the optimal power consumption compared to the benchmark, denoted as γ t , is defined as

55where p * t is the optimal power consumption of the electrolyzer in hour t obtained from the underlying model and p * ,MIL24 t is that of the benchmark. The relative difference γ t is shown for all models in Figure 5(b). For models HYP-MIL1 and HYP-MIL2, the relative difference is comparatively large in hours where the electrolyzer operates at partial loading. This is the case when the electricity price is in the range of 31 to 43 C/MWh (cf. Appendix in [14]). The average daily difference, i.e.,γ = ( t |γ t |)/24 for HYP-MIL1 and HYP-MIL2 is 36% and 21%, respectively. In comparison, HYP-SOC exhibits a significantly better performance, with an average error of around 5%. To achieve a similar solution quality with HYP-MIL (and HYP-L), at least 10 segments are needed.

56To validate the robustness of our findings presented in Figure 5, we solve the different models for the entire year 2019 and compare the profit and dispatch results. To fairly compare the different models in terms of hydrogen production, an ex-post analysis is performed to take the model-specific approximation errors into account. The ex-post analysis consists of solving the underlying optimization problem, fixing the optimal power consumption of the electrolzyer, and then calculating the corresponding hydrogen production based on HYP-X, indicated by point H1 in Figure 3. The reason of the ex-post analysis is that the model determines the choice of dispatch decisions (i.e., how much power should be sold to the grid and how much power should be consumed by the electrolyzer), while the actual hydrogen production depends on the electrolyzer physics and not on the approximated model that is adopted in the scheduling problem. Note that we do not account for the hydrogen production corresponding to the approximation error in the scheduling problem, which could potentially make the maximum hydrogen production constraint (1d) binding. Table II presents the annual profit, electricity sales, and hydrogen production, as a difference compared to the HYP-MIL24 benchmark. While the total annual profit is similar for all models, the share of hydrogen production and power sales for HYP-MIL1 and HYP-MIL2 differ substantially compared to the HYP-MIL24 benchmark. Due to the inaccurate approximation of the hydrogen production curve, the number of hours when it is profitable to produce hydrogen is considerably reduced, leading to approximately 14% and 7% less hydrogen production, respectively. The corresponding monetary loss is partially compensated by an increase in wind energy sold to the grid. The HYP-SOC shows a higher accuracy in decision making, with a difference in hydrogen production lower than 1% compared to the benchmark. Similarly to the one-day example, at least 10 segments are necessary to achieve the same results with HYP-MIL as with the conic model.

C. Comparison of the computational performance

57We now compare the different models in terms of their solution time, and then analyze how it scales with the problem size. To do so, we extend the deterministic day-ahead scheduling problem proposed in Table I to a two-stage stochastic problem and run it for a single day using different numbers of scenarios ω ∈ Ω. We assume perfect foresight for the electricity prices but uncertainty in wind power production. In the second stage, the electrolzyer adjusts its power consumption to minimize the real-time imbalance cost based on the scenario-specific wind power realization. Owed to the fast dynamics of the electrolyzer, we further assume that it is able to change its operational states compared to the day-ahead schedule. The stochastic model formulation is reported in the online companion [17]. We use the same price profile as in the case study reported in Figure 5. For the wind power scenarios, the first 24 hours of the dataset provided in [27] are used. The problem was solved using a High Performance Computing Cluster node with two AMD EPYC 7551 processors clocking at 2 GHz and using a maximum of 8 threads. As this section focuses on the computational performance only, we do not further elaborate on the quality of the solution for the stochastic model and look solely at in-sample results. Table III summarizes the number and type of variables and constraints in each of the hydrogen production curve models. Figure 6 shows the computational time for the different models in a range of 1-500 scenarios. All proposed models are solved within 5 seconds for up to 10 scenarios. By increasing the number of scenarios, the number of binary variables in the HYP-MIL model increases comparatively fast, as shown in Table III. For 24 and 10 segments, the linear relaxation HYP-L is solved approximately 80% faster than the corresponding HYP-MIL, while achieving the same solution. For 100 scenarios, the HYP-SOC model is almost three times faster than HYP-L10 and almost two times faster than HYP-L2. Even for 500 scenarios, the HYP-SOC model shows a satisfactory computational performance compared to both HYP-MIL and HYP-L. This might be attributed to the avoidance of binary variables and the comparably lower number of constraints required to model the hydrogen production curve, even if the constraints are conic instead of linear.

VI. CONCLUSION

58An accurate representation of the non-linear and non-convex hydrogen production curve of the electrolyzer, which captures the relationship between power consumption and hydrogen production, is essential for its optimal scheduling. The current state-of-the-art modeling approach of the hydrogen production curve is based on piece-wise linear approximation. This approach requires to carefully select the number and the location of linearization points, which impacts the accuracy of dispatch decisions and the computational complexity. The accuracy increases with the number of linearization segments at the expense of adding one binary variable per segment. For our case study, we found out that using at least ten linearization segments yields sufficiently accurate dispatch decisions. To further highlight computational issues raised by the number of binary variables in the state-of-the-art piece-wise linear approximation, we developed a two-stage stochastic program where renewable power production uncertainty is modeled via scenarios. We showed that by growing the number of scenarios and therefore the number of binary variables (indicating active segments for every scenario), the computational time increases significantly, imposing a serious barrier.

59This paper proposes two modeling approaches for the hydrogen production curve based on convex relaxations. The first one, HYP-L, is a linear relaxation of the state-of-the-art piece-wise linear approximation HYP-MIL, which does not require binary variables. Although this leads to a significantly improved computational performances compared to HYP-MIL, it still requires choosing the number and location of linearization points. Additionally, the high number of segments needed to ensure accuracy of the solution impacts the computational performance of large-scale problems.

60Those barriers are resolved by our second model, HYP-SOC, which is a conic relaxation of a quadratic approximation of the hydrogen production curve. The quadratic approximation can be directly fitted to operational data of the electrolyzer, making it especially suitable in cases with limited information availability on the underlying physics of the hydrogen production curve. Based on a realistic case study, we showed that HYP-SOC provides a satisfactory trade-off between accuracy of decisions and computational performance for large-scale problems. Between the two proposed relaxations, HYP-SOC exhibits a slightly better computational performance than HYP-L for large-scale problems at the expense of moving from a (mixed-integer) linear to a secondorder cone problem. We conclude that the linear relaxation provides an appropriate choice if the model type is to be kept linear, otherwise we suggest to use the conic model.

61We mathematically proved that the proposed conic relaxation is exact under prevalent operating conditions. Similar proofs can be derived for the linear relaxation. We further presented a heuristic to check the exactness of the conic relaxation a priori based on the wind power availability -this can be very useful in practice. An extreme case was presented to illustrate how a combination of prolonged negative electricity prices, high wind power availability, and a restrictive upper limit for hydrogen production may lead to an inexact solution. As the production of green hydrogen in hours with negative electricity prices may become an especially profitable business case in the future, further research should address how a potential non-zero relaxation gap can be reduced and a feasible yet optimal solution can be restored.

62When disregarding the operational states of the electrolyzer, the two proposed relaxations of the hydrogen production curve are convex. This is a valuable property in cases where global optimality guarantees and meaningful dual variables are desired, e.g., in a market-clearing problem. Future research should explore how the proposed modeling approaches can be integrated into market-oriented applications. Additionally, the conic relaxation and exactness findings may be applicable to other components with similar non-linear physics, e.g., batteries with a semi-linear linear efficiency curve [28]. Finally, future work should focus on accurate modeling of the auxiliary assets and downstream processes, such as the compressor and methanol or ammonia production, which may introduce additional non-convexities to the optimal scheduling problem of an electrolyzer.

APPENDIX MATHEMATICAL PROOFS

63Let (ẋ,ẏ,ż) denote a feasible point to problem HYP-SOC. For the following proofs, we assume that the set of binary variables z associated with the operational states of the electrolyzer is fixed toż. In this case, HYP-SOC reduces to a convex problem. We use (p * , h * , f * ) to denote an optimal solution to problem HYP-SOC for givenż.

64Lemma 1: Suppose the electrolyzer is in standby or off state in time step t, such thatż sb t +ż off t = 1. Then, the relaxation (7a) is exact.

65Proof: It follows from mutual exclusiveness of the states (2a) thatż on t = 0. Constraints (7a)-(7b) and (1e) ensure that that the hydrogen production h t and associated power consumptionp t are equal to zero. Relaxation (7a) is therefore exact when the electrolyzer is in standby or off state.

66Without loss of generality, we assume that there exists a timestep τ ∈ T , for which the electrolyzer is in on-stateż on τ = 1. In this case, it follows from (7c) and (2a) that p τ =p τ . In the following, we will prove the exactness of relaxation (7a) under certain assumptions.

A. Proof of Theorem 1

67Suppose that τ ∈ H n and h * τ < Q 2 (p * τ ) 2 + Q 1 p * τ + Q 0 , i.e., (7a) is inexact. We definè

68where is a small positive number, such thath τ ≤ Q 2 (p * τ ) 2 + Q 1 p * τ +Q 0 . Let the objective function (1a) be denoted by U . As the hydrogen price is positive χ > 0, U is always increasing in h t for a givenż. It follows directly that U (h, f * ) ≥ U (h * , f * ). As, by assumption, the total maximum hydrogen production is not constrained by the demand, such that (1d) is non-binding at h * , it is possible to find such thath is feasible. That contradicts the optimality of h * . Therefore, relaxation (7a) must be exact at optimum for a givenż when the electrolyzer is in on-state.

69The exactness of relaxation (7a) for the case when the electrolyzer is in standby or off state follows from Lemma (1), which completes the proof.

참고문헌 27건

  1. Using Piecewise Linear Functions for Solving MINLPs ˜The œIMA volumes in mathematics and its applications · Institute of Electrical and Electronics Engineers · 2011 10.1007/978-1-4614-1927-3_10
  2. Mixed Integer Nonlinear Programming ˜The œIMA volumes in mathematics and its applications · Institute of Electrical and Electronics Engineers · 2011 10.1007/978-1-4614-1927-3
  3. Wind Energy: Forecasting Challenges for Its Operational Management Statistical Science · Institute of Mathematical Statistics · 2013 10.1214/13-sts445
  4. Pyomo: modeling and solving mathematical programs in Python Mathematical Programming Computation · Springer Science+Business Media · 2011 10.1007/s12532-011-0026-8
  5. Modeling of advanced alkaline electrolyzers: a system simulation approach International Journal of Hydrogen Energy · Elsevier BV · 2002 10.1016/s0360-3199(02)00033-2
  6. Convex Relaxations for Gas Expansion Planning INFORMS journal on computing · Institute for Operations Research and the Management Sciences · 2016 10.1287/ijoc.2016.0697
  7. Using bias-corrected reanalysis to simulate current and future wind power output Energy · Elsevier BV · 2016 10.1016/j.energy.2016.08.068
  8. Energiepark Mainz: Technical and economic analysis of the worldwide largest Power-to-Gas plant with PEM electrolysis International Journal of Hydrogen Energy · Elsevier BV · 2017 10.1016/j.ijhydene.2016.12.145
  9. Optimal Power Flow of Radial Networks and Its Variations: A Sequential Convex Optimization Approach IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2017 10.1109/tsg.2017.2684183
  10. Potential of new business models for grid integrated water electrolysis Renewable Energy · Elsevier BV · 2018 10.1016/j.renene.2018.02.074
  11. Semi-empirical model and experimental validation for the performance evaluation of a 15 kW alkaline water electrolyzer International Journal of Hydrogen Energy · Elsevier BV · 2018 10.1016/j.ijhydene.2018.09.029
  12. Aspen Plus model of an alkaline electrolysis system for hydrogen production International Journal of Hydrogen Energy · Elsevier BV · 2019 10.1016/j.ijhydene.2019.12.027
  13. A survey on conic relaxations of optimal power flow problem European Journal of Operational Research · Elsevier BV · 2020 10.1016/j.ejor.2020.01.034
  14. Inexact convex relaxations for AC optimal power flow: Towards AC feasibility Electric Power Systems Research · Elsevier BV · 2020 10.1016/j.epsr.2020.106480
  15. Multi-state techno-economic model for optimal dispatch of grid connected hydrogen electrolysis systems operating under dynamic conditions International Journal of Hydrogen Energy · Elsevier BV · 2020 10.1016/j.ijhydene.2020.10.019
  16. Modeling alkaline water electrolysis for power-to-x applications: A scheduling approach International Journal of Hydrogen Energy · Elsevier BV · 2021 10.1016/j.ijhydene.2020.12.111
  17. Economic and technological feasibility of using power-to-hydrogen technology under higher wind penetration in China Renewable Energy · Elsevier BV · 2021 10.1016/j.renene.2021.04.015
  18. Second-order cone optimization of the gradostat Computers & Chemical Engineering · Elsevier BV · 2021 10.1016/j.compchemeng.2021.107347
  19. Methods identifying cost reduction potential for water electrolysis systems Current Opinion in Chemical Engineering · Elsevier BV · 2021 10.1016/j.coche.2021.100714
  20. An MILP approach for the optimal design of renewable battery-hydrogen energy systems for off-grid insular communities Energy Conversion and Management · Elsevier BV · 2021 10.1016/j.enconman.2021.114564
  21. Optimal day-ahead dispatch of an alkaline electrolyser system concerning thermal–electric properties and state-transitional dynamics Applied Energy · Elsevier BV · 2021 10.1016/j.apenergy.2021.118091
  22. Incorporating optimal operation strategies into investment planning for wind/electrolyser system CSEE Journal of Power and Energy Systems · China Electric Power Research Institute · 2022 10.17775/cseejpes.2021.04240
  23. A sequential convex moving horizon estimator for bioprocesses Journal of Process Control · Elsevier BV · 2022 10.1016/j.jprocont.2022.05.012
  24. Techno-economic analysis of current and emerging electrolysis technologies for green hydrogen production Energy Conversion and Management · Elsevier BV · 2022 10.1016/j.enconman.2022.116162
  25. PV–battery-hydrogen plant: Cutting green hydrogen costs through multi-market positioning Applied Energy · Elsevier BV · 2022 10.1016/j.apenergy.2022.120103
  26. Power-to-X in energy hubs: A Danish case study of renewable fuel production Energy Policy · Elsevier BV · 2023 10.1016/j.enpol.2023.113439
  27. Economic evaluation of a power-to-hydrogen system providing frequency regulation reserves: a case study of Denmark International Journal of Hydrogen Energy · Elsevier BV · 2023 10.1016/j.ijhydene.2023.03.253