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

Research on the Flexibility Margin of an Electric–Hydrogen Coupling Energy Block Based on Model Predictive Control

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

기본 정보

저자
  1. Zijiao Han — Institute of Electrical Engineering, Shenyang University of Technology, Shenyang, China|||Liaoning Electric Power Company, State Grid Corporation of China, Shenyang, China
  2. Shun Yuan — Institute of Electrical Engineering, Shenyang University of Technology, Shenyang, China|||National Energy Administration, Beijing, China
  3. Yannan Dong — Institute of Electrical Engineering, Shenyang University of Technology, Shenyang, China
  4. Shaohua Ma — Institute of Electrical Engineering, Shenyang University of Technology, Shenyang, China
  5. Yudong Bian — Jiangmen Power Supply Bureau of Guangdong Power Grid Corporation, Jiangmen, China
  6. Xinyu Mao — School of Electrical Engineering, Northeast Electric Power University, Jilin, China
DOI
10.3389/fenrg.2022.879244
저널
Frontiers in Energy Research
발행년도
2022
발행기관
Frontiers Media
피인용수
5
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3389/fenrg.2022.879244
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W4221160687

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(5) 연료전지용 수분제어장치(가습기), (6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
electro-hydrogen coupling, fuel cell, model predictive control, flexibility margin, electrolytic cell
판단 근거
본 논문은 전력과 수소를 결합한 에너지 블록의 운영 유연성을 모델 예측 제어(MPC)를 통해 분석하는 연구로, 코오롱인더스트리의 수소연료전지(PEMFC) 시스템 운영 및 에너지 관리 로직과 원리적으로 연관됩니다.
R&D 활용 포인트
수소연료전지 및 수전해 시스템이 포함된 에너지 관리 시스템(EMS)의 최적 운영 알고리즘 및 시스템 유연성 평가 모델 개발에 활용 가능합니다.
평가 입력
본문 54,843자 중 30,032자 발췌

초록

Hydrogen energy plays an important role in the transformation of low-carbon energy, and electric hydrogen coupling will become a typical energy scenario. Aiming at the operation flexibility of low-carbon electricity hydrogen coupling system with high proportion of wind power and photovoltaic, this paper studies the flexibility margin of electricity hydrogen coupling energy block based on model predictive control (MPC). By analyzing the power exchange characteristics of heterogeneous energy, the homogenization models of various heterogeneous energy sources are established. According to the analysis of power system flexibility margin, three dimensions of flexibility margin evaluation indexes are defined from the dimension of system operation, and an electricity hydrogen coupling energy block scheduling model is established. The model predictive control algorithm is used to optimize the power balance operation of the electro hydrogen coupling energy block, and the flexibility margin of the energy block is quantitatively analyzed and calculated. Through the example analysis, it is verified that the calculation method proposed in this paper can not only realize the on-line power balance optimization of electric hydrogen coupling energy block, but also effectively quantify the operation flexibility margin of electric hydrogen coupling energy block.

본문 54,843자

본문 펼치기
Edited by: Tomislav Capuder, University of Zagreb, Croatia Reviewed by: Chen Liang, Nanjing University of Information Science and Technology, China Jun Yin, North China University of Water Resources and Electric Power, China *Correspondence: Shaohua Ma [mash_dq@sut.edu.cn](mailto:mash_dq@sut.edu.cn) Specialty section: This article was submitted to Smart Grids, a section of the journal Frontiers in Energy Research Received: 19 February 2022 Accepted: 11 March 2022 Published: 11 April 2022 Citation: Han Z, Yuan S, Dong Y, Ma S, Bian Y and Mao X (2022) Research on the Flexibility Margin of an Electric–Hydrogen Coupling Energy Block Based on Model Predictive Control. Front. Energy Res. 10:879244. doi: [10.3389/fenrg.2022.879244](https://doi.org/10.3389/fenrg.2022.879244) ORIGINAL [RESEARCH](https://www.frontiersin.org/journals/energy-research#editorial-board) published: 11 April 2022 doi: [10.3389/fenrg.2022.879244](https://doi.org/10.3389/fenrg.2022.879244) # Research on the Flexibility Margin of an Electric–Hydrogen Coupling Energy Block Based on Model Predictive Control Zijiao Han <sup>1,2</sup>, Shun Yuan <sup>1,3</sup>, Yannan Dong <sup>1</sup>, Shaohua Ma <sup>1</sup> *, Yudong Bian <sup>4</sup> and Xinyu Mao <sup>5</sup> 1Institute of Electrical Engineering, Shenyang University of Technology, Shenyang, China, 2Liaoning Electric Power Company, State Grid Corporation of China, Shenyang, China, <sup>3</sup> National Energy Administration, Beijing, China, <sup>4</sup> Jiangmen Power Supply Bureau of Guangdong Power Grid Corporation, Jiangmen, China, <sup>5</sup> School of Electrical Engineering, Northeast Electric Power University, Jilin, China Hydrogen energy plays an important role in the transformation of low-carbon energy, and electric–hydrogen coupling will become a typical energy scenario. Aiming at the operation flexibility of a low-carbon electricity–hydrogen coupling system with high proportion of wind power and photovoltaic, this work studies the flexibility margin of an electricity–hydrogen coupling energy block based on model predictive control. By analyzing the power exchange characteristics of heterogeneous energy, the homogenization models of various heterogeneous energy sources are established. According to the analysis of power system flexibility margin, three dimensions of flexibility margin evaluation indexes are defined from the dimension of system operation, and an electricity–hydrogen coupling energy block scheduling model is established. The model predictive control algorithm is used to optimize the power balance operation of the electro–hydrogen coupling energy block, and the flexibility margin of the energy block is quantitatively analyzed and calculated. Through the example analysis, it is verified that the calculation method proposed in this article can not only realize the online power balance optimization of the electric–hydrogen coupling energy block but also effectively quantify the operation flexibility margin of the electric–hydrogen coupling energy block. Keywords: MPC, electro–hydrogen coupling, homogenization modeling, power balance, flexibility margin INTRODUCTION As the penetration ratio of renewable energy increases year by year, there is a reverse change between supply and demand of power system flexibility, and the phenomenon of renewable energy power limitation is increasing day by day (Mahesh and Singh Sandhu, 2015; Li et al., 2022a). This transition not only undoubtedly brings huge economic and environmental benefits but also brings huge challenges to the secure and stable operation of today’s power system because of the uncertainties of renewable power generations (Li et al., 2021a; Li et al., 2022b; Shi et al., 2022). As a clean secondary energy (Pan et al., 2020), it is particularly important for hydrogen to completely call all links of source charge storage to participate in flexibility adjustment and balance through an electric–hydrogen coupling power generation system and cooperate with the consumption of renewable energy (Shao et al., 2021; Zhu et al., 2022). Power to gas (P2G), as links of multi-energy carriers, has been successfully adopted to strengthen the coupling of different energy systems (Li et al., 2021b). Hydrogen–electric coupling will greatly contribute to promote renewable energy consumption and build a low-carbon sustainable modern energy system (Xiaochen et al., 2021; Wang et al., 2022). To solve the problems of large differences in heterogeneous energy models and difficult flexibility margin analysis in an electro–hydrogen coupling module, it is important to build an effective electric–hydrogen coupling contract qualitative energy module and carry out flexibility margin calculations. At present, many experts and scholars around the world have carried out research on the modeling and flexibility margin analysis of an electro–hydrogen coupling module. Khan and Iqbal (2009) established a linear model of a wind hydrogen hybrid energy system based on empirical and physical relations and analyzed the performance of a hybrid energy system through digital simulation. Fakehi et al. (2015) carried out the conceptual modeling of the hybrid renewable energy system based on a wind energy/electrolyzer/proton exchange membrane fuel cell. At the same time, based on the thermodynamic, electrochemical, and mechanical models of different components of the hybrid system, the energy analysis framework of the hybrid system was established. Also, the model was used for simulation analysis to calculate the influence of different operating parameters on energy application efficiency. Sharma and Sathans (2015) established a renewable energy hybrid system model composed of photovoltaic cells, wind turbines, battery energy storage systems, and diesel power generation systems. Three cases are set to analyze the impact of system performance and intermittent renewable energy on the system. In addition, in the operation and analysis of the multienergy power system, research institutions at home and abroad have carried out relevant research on the flexibility evaluation of two or a few energy resource systems. Starting from the dimension of flexibility planning, Ma et al. (2012) defined power system flexibility as the ability of the system to allocate its resources when the system network or load changes and took this flexibility as one of the indicators to evaluate whether the planning scheme is reasonable. The flexibility of the power system described in the literature (Adams et al., 2010) is the ability to quickly adapt and restore stability when the system undergoes unpredictable fluctuations or changes under certain economic constraints. Agency (2009) qualitatively described the system flexibility in this area by using the switching capacity of hydropower and thermal power generation, and the economic benefits brought by hydrothermal power switching can measure the advantages and disadvantages of switching schemes under different operating states. Meibom et al. (2007) and Lannoye et al. (2012) define the unit flexibility index and system flexibility index according to the unit flexibility parameters and establish the unit combination model considering the unit expansion with the goal of minimizing the total cost. The aforementioned literature lacks homogeneous equivalent modeling of heterogeneous energy systems and a multidimensional quantitative understanding of flexibility. Moreover, the flexibility evaluation index is one-sided and single, and it is difficult for the flexibility evaluation to reveal the flexibility boundary of the system operation. Therefore, this study analyzes the power characteristics of the heterogeneous energy of electricity and hydrogen, and carries out the homogeneity modeling of the heterogeneous energy. From the three dimensions of climbing, power, and energy, the energy block balance criterion and flexibility margin index of electrichydrogen coupling are proposed. The flexibility margin of the electric-hydrogen coupling energy block was analyzed, and the power balance optimization calculation method of the energy block based on model predictive control (MPC) was proposed. Finally, combined with the historical data of a new energy demonstration area in my country, the calculation method of the flexibility margin of the electricity-hydrogen coupling energy block proposed in study paper was verified. ELECTRO–HYDROGEN COUPLING ENERGY BLOCK AND HOMOGENIZATION MODELING Based on the existing gas turbine, wind power, and photovoltaic structures, combined with the characteristics of an electrolytic cell and fuel cell, an electric- hydrogen coupling energy block was constructed, as shown in Supplementary Figure S1. It can be seen from Supplementary Figure S1 that in the energy block composed of a variety of heterogeneous energy sources, wind power, photovoltaic, and gas units were coupled with hydrogen energy storage devices. At the same time, the balance supply of electric load and hydrogen load was realized through internal energy regulation. The mutual conversion between hydrogen energy and electric energy was the medium connecting various heterogeneous energy models in the electrichydrogen coupling energy block. For the outside of the electrichydrogen coupling energy block, the energy module was supplied by wind energy, solar energy, gas, and hydrogen, and the supply and demand balance of source load was met through internal energy conversion. For the inside of the electric- hydrogen coupling energy block, wind airports and photovoltaic stations convert the supplied energy into electric energy. When the power output was higher than the electric load demand, the electrolytic cell absorbed the excess power of the system, converted the electric energy into hydrogen energy and stored it. When the power output is less than the electric load demand, the fuel cell will supplement the missing power. The hydrogen storage capacity is determined by the electric load and hydrogen load. The battery energy storage can balance the climbing power and make up for the power shortage. The electro–hydrogen coupling energy block involves a variety of heterogeneous energy units with different physical media and technical characteristics. For its complex parameters and boundary conditions, it is important to establish a unified model for analysis. Combined with the structure of the electro–hydrogen coupling energy block and considering the power exchange characteristics of heterogeneous energy, the model framework is shown in Supplementary Figure S2. As can be seen from the figure, the supply and demand side of the model includes the energy supply process (ζi - 0), demand process (ζi < 0), and spillover energy (wi ≥ 0). The model system side includes the homogenization model and the conversion and transmission process of electric energy and hydrogen energy. By changing the model parameters, the model can characterize the elements in the energy block. The model set is i∈{w, pv, b, h, f, ···}, where w represents wind farm, pv represents photovoltaic station, b represents battery energy storage, h represents hydrogen energy storage system, and f represents gas unit. The general formula of model i is Cidxi - ηex,iξi − ηgen,ipgen,iΔt + ηload,ipload,iΔt − wi, (1) where Ci is the energy storage capacity, dxi is the change in state of charge (SOC) of energy storage, ηgen,i is the output efficiency, pgen,i is the output power, ηload is the load efficiency, pload,i is the load power, ηex,i is the conversion efficiency of external energy, ζi is the output/consumption of external energy, wi is the overflow energy, and Δt is the dispatching cycle of energy storage. According to the existence of energy storage, the heterogeneous energy models in the energy module are divided into two categories. The renewable energy power generation model without energy storage (Cidxi = 0) is as follows: The wind farm model is formulated by Cwdxw - 0 � ξw − ηgen,wpgen,wΔt − ww, (2) where ζw is the wind energy collected by the wind farm for the collection and calculation of wind speed data, ηgen,w is the power generation efficiency of the wind farm itself, pgen,w is the output power of the wind farm, and ww is the waste air volume in the dispatching cycle. The PV station model is given as follows: Cpvdxpv - 0 � ξpv − ηgen,pvpgen,pvΔt − wpv, (3) where ζpv is the solar energy collected by the photovoltaic station for the collection and calculation of irradiation data, ηgen,pv is the power generation efficiency of the photovoltaic power plant itself, pgen,pv is the output power of the photovoltaic station, and wpv is the light rejection in the dispatching cycle. The heterogeneous energy model with energy storage (Cidxi≠0) can be depicted in the following section. The battery energy storage model is Cbdxb - ηload,bpload,bΔt − ηgen,bpgen,bΔt, (4) where Cb represents the energy storage capacity of the battery, ηload,b represents the charging efficiency of the battery, pgen,b represents the charging power of the battery, ηgen,b represents the discharge efficiency of the battery, and pgen,b represents the discharge power of the battery. The hydrogen energy storage system model is calculated as Chdxh - ξh + ηload,hpload,hΔt − ηgen,hpgen,hΔt, (5) where Ch represents the capacity of the hydrogen storage tank, ζh represents the hydrogen supply and demand, when ζh > 0, it represents the hydrogen supply, when ζh < 0, it represents the hydrogen demand, ηload,h represents the hydrogen production efficiency of the electrolytic cell, pload,h represents the power of the electrolytic cell, ηgen,h represents the power generation efficiency of the fuel cell, and pgen,h represents the output power of the fuel cell. The gas unit model is given as follows: Cfdxf - ξf − ηgen,fpgen,fΔt, (6) where Cf represents the capacity of the gas storage pipe, ζf is the gas input, ηgen,f is the gas power generation efficiency, and pgen,f is the output power of the gas unit. The constraints to be met by the model are as follows: 1) Climbing constraint: unit and load climbing rate constraint: dpload.i. min ≤ dpload,i ≤ dpload,i, max, (7) where dpload,i,min and dpload,i,max are the lower limit and upper limit of the load climbing rate, respectively. dpgen,i, min ≤ dpgen,i ≤ dpgen,i, max, (8) where dpgen,i,min and dpgen,i,max are the lower limit and upper limit of unit climbing rate, respectively. 2) Output power constraints: system load and output constraints: 0 ≤ kpload,i, min ≤ kpload,i ≤ kpload,i, max, (9) where pload,i,min and pload,i,max are, respectively, the upper and lower limit values of load demand, and each efficiency parameter is a variable, which changes with the change of input/output power, where ηgen,i = f (pgen,i), ηload,i = f (pload,i), ηex,i = f (ζi), k is a binary variable. Here, k = 1 or 0 represents if the load is running or not running, respectively. 0 ≤ Xpgen,i, min ≤ Xpgen,i ≤ Xpgen,i, max, (10) where pgen,i,min and pgen,i,max are, respectively, the upper limit and lower limit of unit output, and each efficiency parameter is a variable, which changes with the change of input/output power, where ηgen,i = f (pgen,i), ηload,i = f (pload,i), ηex,i = f (ζi), X is a binary variable. Here, X = 1 or 0 represents a unit that is running or not running, respectively. 3) Energy storage constraints: state of charge and energy storage capacity constraints: - <sup>Ci > 0,</sup> <sup>xmin ≤</sup> <sup>xi ≤</sup> <sup>xmax</sup>, (11) Ci - 0 where xmin and xmax are the upper and lower limits of the state of charge, respectively. When there is energy storage, C - 0, otherwise, when C = 0, there is no state of charge constraint. 4) Renewable energy abandonment constraints: energy input/ consumption and spillover energy constraints: - <sup>ζ</sup> <sup>i > 0, wi ≥</sup> <sup>0, ζ</sup> <sup>i −</sup> <sup>wi ≥</sup> <sup>0</sup>, (12) ζ i < 0 where ζi - 0 represents the external input of energy, wi ≥ 0 represents the existence of overflow energy (wind and light abandonment), and ζi < 0 represents the external consumption of energy. FLEXBILITY MARGIN ANALYSIS AND EVALUATION INDEX OF THE ENERGY BLOCK Energy Block Flexibility Margin Analysis The flexibility demand of the energy block mainly comes from the intermittence and fluctuation of the load and renewable energy, and has certain directionality. Flexibility can be divided into upward flexibility requirements and downward flexibility requirements. When the system has an upward flexibility demand (pnet≤0), the flexibility resource response is gas unit, battery energy storage and discharge, fuel cell, and load rejection. When the system has a downward flexibility demand (pnet≥0), the flexibility resource response is battery energy storage charging, electrolytic cell, and renewable energy abandonment. Aiming at the balance between the supply and demand of flexibility in an electro–hydrogen coupling energy block, this study will analyze flexibility from three dimensions: climbing power, output power, and power supply (Dingyao et al., 2014; Dingyao et al., 2015; Li et al., 2020). As shown in Supplementary Figure S3, four operation points were set to analyze the flexibility margin of the system at t2 time. Operation points A and B have downward flexibility requirements, and the flexibility provided at t1 time is rp−, pp−, In formula (14), output power and down output power, respectively, provided by unit i at time t, pn,t is the output power required by the system at time t, e <sup>+</sup> p,i,t <sup>and</sup> <sup>e-</sup> p,i,t <sup>are</sup> <sup>the</sup> <sup>upper</sup> <sup>power</sup> <sup>supply</sup> and lower power supply, respectively, provided by unit i at time t, and en,t is the power supply required by the system at time t. Energy Block Evaluation Index The flexibility margin required at each running time and the upper and lower limits of the flexibility margin provided by the energy block were calculated, the flexibility margin envelope was drawn, and the boundary of the system flexibility margin was analyzed (Ulbig and Andersson, 2015; Ji et al., 2019). Through the analysis of the flexibility margin required by the operation point, the expectation of an insufficient flexibility margin in each dimension is defined as an index to measure the flexibility margin of the energy block. To enable it to effectively reflect the system’s ability to respond to changes in net load, the indicators are as follows: 1) The climbing power does not meet the index EIR, which indicates the expected value of the difference between the up/down climbing power provided by the system and the actual demand climbing power within the operation day. NG ���������dPnet,t − �i�1 NL ����������i�1 i�1 NL NG NL EIR - ρs⎝� <sup>⎛</sup> ⎞⎠. (14) ��������� dPgen,i ��������� + dPload,i − dPnet,t t�1 i�1 requirements, and the flexibility provided at t1 time is rp−, pp−, ep, while the downward flexibility required by operation point A is rn−, pn−, en−. It can be seen from the figure that the flexibility −, pp rn−, pn−, en−. It can be seen from the figure that the flexibility margin required for the operation point A is outside the system flexibility margin envelope, rp−, pp−, ep− < rn−, pn−, en− and the −, pn −, en flexibility margin envelope, rp−, pp−, ep− < rn−, pn−, en− and the system cannot meet the flexibility requirements of the operation point A. The flexibility margin required by the operation point B is within the system flexibility margin envelope, and the system can meet the flexibility margin requirements of the operation point B. Operation points C and D have upward flexibility requirements. The operation point C is within the flexibility margin envelope, which can meet the requirements of the flexibility margin. The operation point D is outside the envelope of flexibility margin, rp+, pp+, ep+>rn+, pn+, en+, which p−, pp −, ep p− < rn −, pn −, en ρs - <sup>βs,t</sup> NT ~~,~~ (15) envelope of flexibility margin, rp+, pp+, ep+>rn+, pn+, en+, which cannot meet the requirements of the flexibility margin. The flexibility balance criterion of the electric–hydrogen coupling energy block is +, pp +, ep +>rn +, pn +, en where dPnet,t represents the net load climbing rate at time t, ρs represents the probability of an insufficient flexibility margin in scenario s, NT represents the number of system dispatching intervals, βs,t represents the number of insufficient flexibility margins, NG represents the number of generator units, and NL represents the number of loads. 2) The output power does not meet the index EIO, which indicates the expected value of the difference between the up/down power provided by the system and the actual demand power within the operation day. NT EIO - ρs⎝� <sup>⎛</sup> t�1 NL ����������i�1 i�1 NG ���������Pnet,t − �i�1 NG i�1 NL ⎞⎠, (16) ��������� ��������� + Pload,i − Pnet,t n,t <sup>+</sup> <sup>, �</sup> n,t Pgen,i ⎪⎧⎪⎪⎪⎪⎪⎨ ⎪⎪⎪⎪⎪⎪⎩ i i i r <sup>−</sup> <sup>−</sup> p,i,t <sup>≤</sup> <sup>r</sup> n,t <sup>−</sup> r <sup>+</sup> p <sup>+</sup> e <sup>+</sup> <sup>+</sup> p,i,t <sup>≥</sup> <sup>r</sup> n,t <sup>+</sup> n,t <sup>+</sup> <sup>, �</sup> i i <sup>+</sup> p,i,t <sup>≥</sup> <sup>p</sup> n,t <sup>+</sup> n,t , (13) n,t <sup>+</sup> <sup>, �</sup> p <sup>−</sup> <sup>−</sup> p,i,t <sup>≤</sup> <sup>p</sup> n,t <sup>−</sup> i <sup>+</sup> p,i,t <sup>≥</sup> <sup>e</sup> n,t <sup>+</sup> n,t e <sup>−</sup> <sup>−</sup> p,i,t <sup>≤</sup> <sup>e</sup> n,t <sup>−</sup> where r <sup>+</sup> p <sup>+</sup> p,i,t <sup>and</sup> <sup>r-</sup> p where r <sup>+</sup> p,i,t <sup>and</sup> <sup>r-</sup> p,i,t <sup>are the uphill power and</sup> <sup>downhill power,</sup> respectively, provided by unit i at time t, rn,t is the uphill power required by the system at time t, p <sup>+</sup> p,i,t <sup>and</sup> <sup>p-</sup> p,i,t <sup>are</sup> <sup>the</sup> <sup>up</sup> <sup>+</sup> p,i,t <sup>and</sup> <sup>p-</sup> p, <sup>-</sup> p,i,t <sup>are</sup> <sup>the</sup> <sup>up</sup> where Pnet,t represents the net load power at time t. 3) The provided electric energy does not meet the EIC index, which indicates the expected value of the difference between the up/downregulated electric energy provided by the system energy storage unit and the actual demand electric energy within the operation day. NL ����������i�1 i�1 t ����������t Pgen,idt NT EIC - ρs⎝� <sup>⎛</sup> NT t+1 NG Pnet,tdt − NL Pload,idt (17) ��������� + y(k) �[xb(k), xh(k)] <sup>T</sup> . (23) The system matrix, control matrix, output matrix, and disturbance matrix of the energy module are, respectively, A � t�1 t t+1 t t+1 t i�1 t+1 - t Pnet,tdt ⎞⎠. ��������� 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 ⎤⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎦ ⎡⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎣ , (24) The abovementioned three indicators show the expectation of an insufficient flexibility margin as that the flexibility margin unit cannot meet the change of system static load. ONLINE SOLUTION OF ENERGY BLOCK FLEXIBILITY MARGIN BASED ON MODEL PREDICTIVE CONTROL The state space of a linear discrete system is expressed as - <sup>x(k + 1) �</sup> <sup>Ax(k) + Bu(k) + Dd(k)</sup>, (18) y(k) � Cx(k) where x is the state variable, u is the control variable, d is the disturbance variable, y is the controlled output, A, B, and C are the system matrix, control matrix, and disturbance matrix, respectively, C is the output matrix, k is the current time, and k+1 is the next time. Bringing eqs 2–6 into eq 18, the specific form of state space expression is xw(k + 1) � ζ w(k) − ηgen,wpgen,w(k)Δt − ww(k) (25) 0 1 0 0 C � - <sup>0</sup> (26) 0 0 0 1 0 <sup>�,</sup> −ηgen,w 0 0 0 0 0 −ηgen,pv 0 0 0 0 0 0 0 −ηgen,f 1 0 0 0 0 0 1 0 0 0 0 0 0 0 B <sup>T</sup> ⎡⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎣ −ηgen,bΔt 0 0 Cb ηload,eΔt 0 0 Ce −ηgen,hΔt 0 0 0 Ch ηload,hΔt 0 0 0 Ch 0 0 , ⎤⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎦ ⎪⎧⎪⎪⎪⎪⎨ ⎪⎪⎪⎪⎪⎩ xb(k + 1) � xb(k) + <sup><u>1</u></sup> Cb xh(k + 1) � xh(k) + <sup><u>1</u></sup> xpv(k + 1) � ζ pv(k) − ηgen,pvpgen,pv(k)Δt − wpv(k) �ηload,bpload,b(k)Δt − ηgen,bpgen,b(k)Δt� D � 1 0 0 0 0 1 0 0 0 0 0 0 ⎡⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎣ 0 0 1 0 0 0 0 1 ⎤⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎦ . (27) �ζ h(k) + ηload,hpload,h(k)Δt Ch −ηgen,hpgen,h(k)Δt� xf(k + 1) � xf(k) + ζ f(k) − ηgen,fpgen,f(k). (19) The error between the estimated output value of spilled energy and stored energy SOC and the daily planned value was the smallest, and the control active power regulation increment of each unit was the smallest. The objective function of the electro–hydrogen coupling energy block is The vector formed by the energy storage SOC is selected as the state variable, namely, (28) min J(k) � Np j�1 x(k) � �xw(k), xpv(k), xe(k), xh(k), xf(k)� T. (20) 2 �����y�k + j� - yref�k + j������ 2 ����Δu�k + j�����R The vector composed of the output, load power, and overflow energy of each unit is taken as the control variable, namely, j�1 Q +�Nc ����Δu�k + j�����2R <sup>,</sup> Nc j�0 R <sup>,</sup> u(k) � �pgen,w(k), pgen,pv(k), pgen,b(k), pload,b(k), pgen,h(k), pload,h(k), pgen,f(k), ww(k), wpv(k)�T. (21) where yref is the reference trajectory of state quantity, Q and R are the error and input weighting matrix, respectively, and Np and Nc are, respectively, the prediction time domain and control time domain. The constraints are as follows: We take wind power, photovoltaic, hydrogen, and coal energy supply vectors as disturbance variables, namely, NG NL S · t · � pgen,i − i�1 i�1 pload,i − P <sup>t</sup> load <sup>�</sup> <sup>0,</sup> (29) d(k) � �ξw(k), ξpv(k), ξh(k), ξf(k)� T. (22) We take the vector composed of battery energy storage and hydrogen energy storage SOC as the output variable, namely, Δumin ≤ Δu ≤ Δumax, (30) umin ≤ u ≤ umax, (31) xmin ≤ x ≤ xmax, (32) where P <sup>t</sup> load <sup>represents</sup> <sup>the</sup> <sup>system</sup> <sup>load</sup> <sup>demand</sup> <sup>power</sup> <sup>at</sup> time t. Vector E(k) is defined as the deviation between the system free response and the future target trajectory: E(k) � Yref(k) − Mx1x(k) − Mu1u(k − 1). (33) In formula (33), , ⎤⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎦ b~ � ⎡⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎣ ΔUmax −ΔUmin Umax − Ψu(k − 1) −Umin + Ψu(k − 1) Ymax − Mx2x(k) − Mu2u(k − 1) −Ymin + Mx2x(k) + Mu2u(k − 1) , (41) ⎤⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎦ Nc×Nc ⎤⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎦ , (42) Nc×1 I 0 / 0 I I / 0 . . . ⎡⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎣ .. .. 1 .. I I / I Ψ � ⎡⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎣ I I . .. I I I Λ � CB CAB + CB Np−1 i�0 CA <sup>i</sup> B . .. CA <sup>i</sup> B ⎡⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎣ CA <sup>Nc</sup> CA <sup>Nc+1</sup> . .. CA <sup>Np</sup> CA CA <sup>2</sup> .. <sup>.</sup> . .. Np−1 i�0 CA <sup>i</sup> B CB CAB + CB Mu1 ⎤⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎦ Nc−1 i�0 Nc Mx1 ⎡⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎣ i�0 CA CA <sup>2</sup> . .. CA <sup>Nc</sup> CA <sup>Nc+1</sup> . .. CA <sup>Np</sup> Np−1 i�0 CA <sup>i</sup> B / i�0 ⎤⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎦ ⎤⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎦ , (34) . .. CA <sup>i</sup> B ⎡⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎣ Nc−1 i�0 Nc i�0 CA <sup>i</sup> B , (43) , Mu2 , ⎤⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎦ . .. CA <sup>i</sup> B where for matrices A, B, and C are as in Eqs 24–26; Eq 33 is substituted into Eq 28 to obtain Jk 2 ����Y(k) − Yref(k)����Q 2 Q <sup>+ ∥ΔU(k)∥</sup> R <sup>2</sup> - ����MΔu1ΔU(k) − E(k)����2Q R <sup>2</sup> <sup>,</sup> R <sup>2</sup> <sup>,</sup> 2 Q <sup>+ ∥ΔU(k)∥</sup> R <sup>2</sup> (35) Mx2 ⎡⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎣ MΔu2 ⎡⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎣ CB / 0 CAB + CB / 0 . . .. 1 .. Nc−1 - ΔU <sup>T</sup> (k)�M <sup>T</sup> Δu1 <sup>QMΔu</sup> 1 <sup>+ R�ΔU(k)</sup> −2E <sup>T</sup> (k)QMΔu1ΔU(k) + E <sup>T</sup> (k)QE(k). . . . .. .. .. Np−Nc The abovementioned formula is written as the standard form of secondary planning: Jk - <sup><u>1</u></sup> (36) 2 <sup>ΔUT(k)H(k)ΔU(k) + fTΔU(k).</sup> In formula (36), i�0 Nc i�0 CA <sup>i</sup> B / B CA <sup>i</sup> B / CAB + CB , (44) ⎤⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎦ CA <sup>i</sup> B H � 2�M <sup>T</sup> Δ H � 2�M <sup>T</sup> Δu1 <sup>QMΔu</sup> 1 <sup>+ R�,</sup> f �−2�M <sup>T</sup> Δu1 <sup>QE(k)�,</sup> (37) <sup>T</sup> Δu1 <sup>QE(k)�,</sup> where I is the identity matrix of m dimension, and m is the number of control quantities. According to the aforementioned derivation process, it can be transformed into a quadratic programming problem for a solution. As shown in formula (45), the first item of the solved control sequence is applied to the system, and the control quantity is executed until the next time. At the new time, the system repredicts the output of the next time domain according to the state information. Then, the next new control increment sequence is obtained through the optimization process. This cycle is repeated until the system completes the control process. - <sup>Δu(k) �</sup> <sup>�</sup> <sup>I</sup> 0 / 0 �ΔU(k), (45) u(k) � u(k − 1) + Δu(k) where k-1 is the last time. The flexibility margin envelope is drawn according to the calculated control variable sequence, and it is brought into Eqs 14 - 17 to calculate the indicators of EIR, EIO, and EIO. The flow chart of the flexibility margin analysis is shown in Supplementary Figure S4. CB / 0 CAB + CB / 0 .. <sup>.</sup> 1 .. <sup>.</sup> Nc−1 Np−1 i�0 CA <sup>i</sup> B / i�0 . . . .. .. .. Np−Nc MΔu1 ⎡⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎣ i�0 Nc i�0 CA <sup>i</sup> B / B CA <sup>i</sup> B / CAB + CB CA <sup>i</sup> B . (38) ⎤⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎦ The constraint condition of Eq 36 is A~ΔU(k) ≤ b~. (39) In formula (39), A~ � - Π −Π Λ −Λ MΔu2 −MΔu2 �T, (40) EXAMPLE SIMULATION Energy Block Parameter Setting The example system structure is shown in Supplementary Figure S1. In the electric- hydrogen coupling energy block constructed in this study, the installed capacity of the wind farm was 60 MW, that of the photovoltaic power generation system was 60 MW, and that of the gas turbine assembly was 30 MW. In terms of the hydrogen energy system, including a 30 MW fuel cell power generation system and 30 MW electrolytic cell system, the initial SOC of hydrogen energy storage was taken as 40%. The energy storage device adopts a battery with a total capacity of 120 mwh, its rated charge discharge power was ±10 MW, and the initial SOC value of the battery was 45%. Refer to the literature (Makarov et al., 2009; Hong, 2013; Kong et al., 2018; Tuinema et al., 2020) for the parameters of matrix B in Eq 25. Relevant technical parameters of the electro–hydrogen coupling system are shown in Supplementary Table S1. The data of wind power, photovoltaic, power load, and hydrogen load are shown in Supplementary Figure S5. Flexibility Margin Analysis of the Energy Block To analyze the differences in flexibility margins in different scenarios, this section designed three calculation scenarios to evaluate the flexibility margins of fast energy. Scenario 1: In the absence of controllable components, analyze the lack of the flexibility margin in the initial operating state. Scenario 2: Add hydrogen storage and analyze the flexibility margin of the system. Scenario 3: Based on scenario 2, battery energy storage and gas generators are added to further increase the adjustment capability of the energy block and analyze the flexibility margin of the system. The energy block model was established according to each scene, and the system output power at the step size of 5 min was calculated and analyzed. According to the operation of each scene at each time, draw the operation diagram of the energy block and the boundary envelope of the dynamic flexibility margin. The flexibility margin analysis required for scenario 1 is shown in Supplementary Figure S8; the simulation analysis of scenario 2 and scenario 3 is shown in Supplementary Figure S6 and Supplementary Figure S7 and Supplementary Figure S8, and the corresponding flexibility margin boundary envelope analysis is shown in Supplementary Figure S9 and Supplementary Figure S10. The flexibility margin index and flexibility maximum value of each scenario are shown in Supplementary Table S2 and Supplementary Table S3. In scenario 1, high permeability renewable energy was accessed, and there was no controllable element in the system to adjust. At this time, the air and light rejection can only be adjusted through the overflow energy W, resulting in the mismatch of the flexibility margin of the system and the increase of the flexibility margin index. In scenarios 2 and 3, controllable elements such as hydrogen energy storage and battery energy storage were added. At this time, the flexibility margin of the energy module was effectively increased through the integration of resources. In scenario 2, the flexibility margin requirements of the module in terms of energy storage and output were supplemented through the combination of a fuel cell and electrolytic cell. The operation requirement was to avoid the frequent startup and shutdown of the unit on the basis of full supply of the load and consumption of renewable energy. In scenario 3, the battery energy storage and gas unit further supplement the flexibility margin requirements in the climbing power and unit output required by the module, further improving the flexibility margin level of the system. Scenario two and scenario three supplement the corresponding units based on the flexibility margin index. It can be seen from Supplementary Table S2 and Supplementary Table S3 that through the comparison of various scenarios, the integration of controllable resources effectively increases the flexibility margin of the energy module. As shown in Supplementary Figure S9, S10, because of the high proportion of renewable energy connected to the energy module, its strong volatility leads to insufficient upregulation or downregulation capacity at many operation points. For scenario 2, in the 5–33 h interval, there was no wind at night, the fan and photovoltaic output were insufficient, and the climbing power and unit output in the energy module were insufficient, which cannot provide sufficient flexibility resources. During this period, the maximum climbing power shortage was 3.6 MW/min, the maximum output power shortage was 18.5 MW, and the maximum supply power shortage was 4.27 MWh. In the 163–205 h interval, the output of the fan and photovoltaic decreased sharply, the SOC of hydrogen energy storage was maintained at a low level, and the fuel cell cannot provide enough electric energy, so the normal operation of the system can only be maintained through load shedding. The maximum value of the climbing power shortage during this period was 4.67 MW/min, the maximum value of output power shortage was 20.7 MW, and the maximum value of power supply shortage was 36.27 MWh. In the 42–46, 115, 155–165, 230, 300–310, 325–355 h intervals, energy modules cannot fully absorb renewable energy. These parts of the electricity discarded account for 7% of the total renewable energy power generation. The flexibility margin index of scenario two was EIR = 5.631 MW/ min, EIO = 26.173 MW, and EIC = 32.089 MWh. For scenario 3, on the basis of scenario 2, the combination of battery energy storage and gas generator sets makes up for the corresponding flexibility margin deficiency. It can be seen from Supplementary Figure S7 that the battery energy storage has the ability to respond quickly. The rapid discharge supplements the system’s demand in the climbing power dimension, while the gas-fired unit supplements the lack of output power. Scenario three can basically meet the upward flexibility requirements of the energy modules, but in the 44, 114–115, and 155–160 h intervals, there were still situations where renewable energy power generation could not be fully absorbed. The power discarded in these parts accounts for 1.5% of the total renewable energy power generation. The flexibility margin index of scenario three was EIR = 0 MW/ min, EIO = 1.1MW, and EIC = 3.62 MWh. To avoid the abandonment and load shedding of renewable energy sources, we can invest in flexibility resources with corresponding adjustment capabilities and adjustment directions based on the calculation results. The Influence of Renewable Energy Penetration Rate on the Flexibility Margin of the Energy Block Compared renewable energy has the characteristics of intermittency and volatility, and a high proportion of renewable energy access will have a certain impact on the flexibility of the system. According to scenario 3, study the impact of different access ratios of renewable energy on the flexibility margin, gradually increase the ratio of the wind power and photovoltaic access from 0 to 50%, and calculate the abandonment rate of renewable energy by formula (46). The flexibility margin of the system under different penetration rates is shown in Supplementary Table S4. NT Ew - t�1 2 i�1 <u>Pgen,i,t</u> Pgen,i,t + wi,t . (46) the module was analyzed from the three dimensions of climbing power, unit output, and power supply. The model predictive control algorithm was introduced to solve the problem, and then the system flexibility margin was quantitatively analyzed. The conclusions are as follows: 1) By analyzing the power exchange characteristics of heterogeneous energy, a homogenization model was established based on the energy balance relationship of each unit of the energy module. The complex model of multiple physical fields was simplified and equivalent, which lays a model foundation for the online calculation of flexibility margin. 2) In this study, an optimal calculation method of energy block power balance based on MPC was proposed, and the flexibility margin of electro–hydrogen coupling energy block was analyzed. In this study, the energy block balance criterion and flexibility margin index of electro–hydrogen coupling are proposed from the three dimensions of climbing, power, and energy. Through the analysis of the flexibility margin of the operation point, the deficiency of the flexibility margin of the system was judged, the flexibility margin analysis of the energy module was better realized, and suggestions were provided for the system scheduling. 3) The simulation results show that the flexibility index of each operation point is different because of the different intermittent and fluctuation distribution of the energy module at each time. At the same time, nodes and moments with an insufficient flexibility margin can be found according to the drawing of the flexibility margin envelope of operating points. The indicators proposed in this study can help the system coordinate the configuration and operation of flexibility resources. 4) Through the analysis of permeability, it can be seen that there is a threshold of renewable energy permeability. When the threshold is exceeded, the flexibility margin index of each dimension of the energy module shows an increasing trend. Compared with wind power, PV has higher requirements on the flexibility margin. This study only models from the steady-state dimension and does not involve the transient model of the system and the capacity matching of the wind solar hydrogen system. In the follow-up research, many technical and economic factors such as hydrogen storage and hydrogen sales will be mainly considered. In addition, it is also interesting to investigate the planning and energy management of microgrids and integrated energy systems incorporating the presented electric–hydrogen coupling energy block (Li et al., 2019; Li et al., 2022c). DATA AVAILABILITY STATEMENT The original contributions presented in the study are included in the article/Supplementary Material; further inquiries can be directed to the corresponding author. With the continuous improvement of renewable energy penetration, the flexibility margin of the energy module gradually decreases. As can be seen from Supplementary Figure S11, there is a threshold for renewable energy penetration. When the access ratio exceeds 40%, the flexibility margin index of each dimension of the energy module shows a rapid growth trend. The comparison between scenario two and scenario three shows that PV requires a higher flexibility margin than wind power. However, because of the intermittent characteristics of wind power generation, the demand for the flexibility margin in the dimension of climbing power is high. The comparison of different scenarios shows that when the renewable energy penetration rate exceeds 40%, the EIC and EIO indicators increase significantly. When the permeability exceeds 60%, the EIC index increases significantly. It can be seen that the deficiency of the unit output and power supply index has a greater impact on the system flexibility margin. When analyzing the system flexibility margin, analysis indicators of different dimensions are required. According to the analysis results, the corresponding flexibility margin resources were increased in each dimension to ensure the economy of the system while maintaining the balance of system flexibility margin as far as possible. CONCLUSION By analyzing the power exchange characteristics of heterogeneous energy sources, this study established the homogenization model of various flexibility margin resources. On this basis, the energy block model of electro–hydrogen coupling was established. The flexibility margin evaluation index was proposed from the dimension of system operation, and the flexibility margin of AUTHOR CONTRIBUTIONS ZH is mainly responsible for technical aspects, conception, and design of manuscripts. SY investigated the homogenization modeling and calculated the main methods. YD contributed to the flexibility margin analysis. SM provided valuable help for calculation. YB and XM participated in the production of the paper chart and the preparation of some content. FUNDING This study received funding from “Liaoning BaiQianWan Talents Program” and Liaoning Electric Power Co., Ltd. science and technology project (2021YF-81) of State Grid. The funder was not involved in the study design, collection, analysis, and interpretation of data, the writing of this article, or the decision to submit it for publication. All authors declare no other competing interests. ACKNOWLEDGMENTS The authors thank the “Liaoning BaiQianWan Talents Program” and Liaoning Electric Power Co., Ltd. science and technology project (2021YF-81) of State Grid, which funded them, and also REFERENCES Adams, J. O., Malley, M., and Hanson, K. (2010). Flexibility Requirements and Potential Metrics for Variable Generation: Implications for System Planning Studies. Princeton, NJ:NERC, 14–17. Agency, I. E. (2009). Empowering Variable Renewables-Options for Flexible Electricity Systems. OECD Publishing, 11–13. Dingyao, X., Chengmin, W., Pingliang, Z., et al. (2014). A Survey on Power System Flexibility and its Evaluations. Power Syst. Tech. 38 (6), 1569–1576. Dingyao, X., Chengmin, W., Pingliang, Z., et al. (2015). Power Source Flexibility Evaluation Considering Renewable Energy Generation Uncertainty. Automation Electric Power Syst. 35 (7), 120–125. Fakehi, A. H., Ahmadi, S., and Mirghaed, M. R. (2015). Optimization of Operating Parameters in a Hybrid Wind–Hydrogen System Using Energy and Exergy analysis:Modeling and Case Study. Energ. Convers. Manag. 106, 1318–1326. [doi:10.1016/j.enconman.2015.10.003](https://doi.org/10.1016/j.enconman.2015.10.003) Hong, C. (2013). Model Predictive Control. Beijing: Science Press. Ji, H., Wang, C., Li, P., Song, G., Yu, H., and Wu, J. (2019). Quantified Analysis Method for Operational Flexibility of Active Distribution Networks with High [Penetration of Distributed Generators. Appl. Energ. 239, 706–714. doi:10.1016/](https://doi.org/10.1016/j.apenergy.2019.02.008) [j.apenergy.2019.02.008](https://doi.org/10.1016/j.apenergy.2019.02.008) Khan, M. J., and Iqbal, M. T. (2009). Analysis of a Small Wind-Hydrogen Stand Alone Hybrid Energy System. Appl. Energ. 86 (11), 2429–2442. [doi:10.1016/j.](https://doi.org/10.1016/j.apenergy.2008.10.024) [apenergy.2008.10.024](https://doi.org/10.1016/j.apenergy.2008.10.024) Kong, L., Cai, G., Li, L., and Ji, R. (2018). Online Energy Control Strategy and Experimental Platform of Integrated Energy System of Wind, Photovoltaic and [Hydrogen. Trans. China Electrotechnical Soc. 33 (14), 3371–3384. doi:10.19595/](https://doi.org/10.19595/j.cnki.1000-6753.tces.170597) [j.cnki.1000-6753.tces.170597](https://doi.org/10.19595/j.cnki.1000-6753.tces.170597) Lannoye, E., Flynn, D., and O′malley, M. (2012). Evaluation of Power System Flexibility. IEEE Trans. Power Syst. 27 (2), 922–931. [doi:10.1109/tpwrs.2011.](https://doi.org/10.1109/tpwrs.2011.2177280) [2177280](https://doi.org/10.1109/tpwrs.2011.2177280) Li, Y., Yang, Z., Li, G., Zhao, D., and Tian, W. (2019). Optimal Scheduling of an Isolated Microgrid with Battery Storage Considering Load and Renewable Generation Uncertainties. IEEE Trans. Ind. Electron. 66 (2), 1565–1575. [doi:10.1109/tie.2018.2840498](https://doi.org/10.1109/tie.2018.2840498) the experts and scholars who have helped them in the process of scientific research. SUPPLEMENTARY MATERIAL The Supplementary Material for this article can be found online at: [https://www.frontiersin.org/articles/10.3389/fenrg.2022.879244/](https://www.frontiersin.org/articles/10.3389/fenrg.2022.879244/full#supplementary-material) [full#supplementary-material](https://www.frontiersin.org/articles/10.3389/fenrg.2022.879244/full#supplementary-material) Supplementary Figure S1 | Electro–hydrogen coupling energy module. Supplementary Figure S2 | Heterogeneous energy homogenization model. Supplementary Figure S3 | Flexibility margin analysis. Supplementary Figure S4 | Flowchart of the flexibility margin calculation method. Supplementary Figure S5 | Value of load, photovoltaic plant output, and wind farms output. Supplementary Figure S6 | Simulation analysis of scenario 2. Supplementary Figure S7 | Simulation analysis of scenario 3. Supplementary Figure S8 | Flexibility margin analysis of scenario 1. Supplementary Figure S9 | Flexibility margin analysis of scenario 2. Supplementary Figure S10 | Flexibility margin analysis of scenario 3. Supplementary Figure S11 | Renewable energy abandonment rate. Li, Y., Wang, C., Li, G., Wang, J., Zhao, D., and Chen, C. (2020). Improving Operational Flexibility of Integrated Energy System with Uncertain Renewable Generations Considering thermal Inertia of Buildings. Energ. Convers. Manag. 207, 112526. [doi:10.1016/j.enconman.2020.112526](https://doi.org/10.1016/j.enconman.2020.112526) Li, Y., Han, M., Yang, Z., and Li, G. (2021). Coordinating Flexible Demand Response and Renewable Uncertainties for Scheduling of Community Integrated Energy Systems with an Electric Vehicle Charging Station: A Bi[level Approach. IEEE Trans. Sustain. Energ. 12 (4), 2321–2331. doi:10.1109/tste.](https://doi.org/10.1109/tste.2021.3090463) [2021.3090463](https://doi.org/10.1109/tste.2021.3090463) Li, Y., Wang, B., Yang, Z., Li, J., and Li, G. (2021). Optimal Scheduling of Integrated Demand Response-Enabled Smart Park Integrated Energy Systems in Uncertain Environment. IEEE Trans. Ind. Applicat., 1. to be published. [doi:10.1109/TIA.2021.3106573](https://doi.org/10.1109/TIA.2021.3106573) Li, Y., Li, K., Yang, Z., Yu, Y., Xu, R., and Yang, M. (2022). Stochastic Optimal Scheduling of Demand Response-Enabled Microgrids with Renewable Generations: An Analytical-Heuristic Approach. J. Clean. Prod. 330, 129840. [doi:10.1016/j.jclepro.2021.129840](https://doi.org/10.1016/j.jclepro.2021.129840) Li, Y., Wang, R., and Yang, Z. (2022). Optimal Scheduling of Isolated Microgrids Using Automated Reinforcement Learning-Based Multi-Period Forecasting. IEEE Trans. Sustain. Energ. 13 (1), 159–169. [doi:10.1109/tste.2021.3105529](https://doi.org/10.1109/tste.2021.3105529) Li, Y., Wang, B., Yang, Z., Li, J., and Chen, C. (2022). Hierarchical Stochastic Scheduling of Multi-Community Integrated Energy Systems in Uncertain Environments via Stackelberg Game. Appl. Energ. 308, 118392. [doi:10.1016/](https://doi.org/10.1016/j.apenergy.2021.118392) [j.apenergy.2021.118392](https://doi.org/10.1016/j.apenergy.2021.118392) Ma, J., Silva, V., Belhomme, R., Kirschen, D. S., and Ochoa, L. F. (2012). Evaluating and Planning Flexibility in Sustainable Power Systems. IEEE Trans. Sust. Energ. 4 (1), 200–209. [doi:10.1109/tste.2012.2212471](https://doi.org/10.1109/tste.2012.2212471) Mahesh, A., and Singh Sandhu, K. (2015). Hybrid Wind/photovoltaic Energy System Developments:critical Review and Findings. Renew. Sust. Energ. Rev. 5 (2), 1135–1147. [doi:10.1016/j.rser.2015.08.008](https://doi.org/10.1016/j.rser.2015.08.008) Makarov, Y., Loutan, C., Ma, J., and de Mello, P. (2009). Operational Impacts of Wind Generation on California Power Systems. IEEE Trans. Power Syst. 24 (2), 1039–1050. [doi:10.1109/tpwrs.2009.2016364](https://doi.org/10.1109/tpwrs.2009.2016364) Meibom, P., Weber, C., Barth, R., and Brand, H. (2007). Operational Costs Induced by Fluctuating Wind Power Production in Germany and Scandinavia. IET Renew. Power Generation 3 (1), 75–83. [doi:10.1049/iet-rpg:20070075](https://doi.org/10.1049/iet-rpg:20070075) Pan, G., Gu, W., Lu, Y., Qiu, H., Lu, S., and Yao, S. (2020). Optimal Planning for Electricity-Hydrogen Integrated Energy System Considering Power to Hydrogen and Heat and Seasonal Storage. IEEE Trans. Sustain. Energ. 11 (4), 2662–2676. [doi:10.1109/tste.2020.2970078](https://doi.org/10.1109/tste.2020.2970078) Shao, C., Feng, C., Shahidehpour, M., Zhou, Q., Wang, X., and Wang, X. (2021). Optimal Stochastic Operation of Integrated Electric Power and Renewable Energy with Vehicle-Based Hydrogen Energy System. IEEE Trans. Power Syst. 36 (5), 4310–4321. [doi:10.1109/tpwrs.2021.](https://doi.org/10.1109/tpwrs.2021.3058561) [3058561](https://doi.org/10.1109/tpwrs.2021.3058561) Sharma, P., and Sathans (2015). “Performance Analysis of a Stand-Alone Hybrid Renewable Energy Power System- a Simulation Study,” in Proceeding of the 2015 Annual IEEE India Conference (INDICON), New Delhi, India, Dec. 2015 (IEEE). Shi, Z., Wang, W., Huang, Y., Li, P., Dong, L., member, et al. (2022). Simultaneous Optimization of Renewable Energy and Energy Storage Capacity with the Hierarchical Control. CSEE J. Power Energ. Syst. 8 (1), 95–104. [doi:10.17775/](https://doi.org/10.17775/cseejpes.2019.01470) [cseejpes.2019.01470](https://doi.org/10.17775/cseejpes.2019.01470) Tuinema, B. W., Adabi, E., Ayivor, P. K. S., García Suárez, V., Liu, L., Perilla, A., et al. (2020). Modelling of Large-Size Electrolysers for Real-Time Simulation and Study of the Possibility of Frequency Support by Electrolysers. IET Generation Transm. Distribution 14 (10), 25–37. [doi:10.1049/iet-gtd.2019.1364](https://doi.org/10.1049/iet-gtd.2019.1364) Ulbig, A., and Andersson, G. (2015). Analyzing Operational Flexibility of Electric [Power Systems. Int. J. Electr. Power Energ. Syst. 72 (nov), 155–164. doi:10.1016/](https://doi.org/10.1016/j.ijepes.2015.02.028) [j.ijepes.2015.02.028](https://doi.org/10.1016/j.ijepes.2015.02.028) Wang, L., Jiao, S., Xie, Y., Xia, S., Zhang, D., Zhang, Y., et al. (2022). Two-way Dynamic Pricing Mechanism of Hydrogen Filling Stations in ElectricHydrogen Coupling System Enhanced by Blockchain. Energy 239, 122194. [doi:10.1016/j.energy.2021.122194](https://doi.org/10.1016/j.energy.2021.122194) Xiaochen, W., Mengxuan, L., and Yifan, F. (2021). Analysis of Key Issues in [Electric-Hydrogen Coupled Operation. E3s Web Conf. 248, 01055. doi:10.1051/](https://doi.org/10.1051/e3sconf/202124801055) [e3sconf/202124801055](https://doi.org/10.1051/e3sconf/202124801055) Zhu, Y., Wen, H., Chu, G., Wang, X., Peng, Q., Hu, Y., et al. (2022). Power-rating Balance Control and Reliability Enhancement in Mismatched Photovoltaic Differential Power Processing Systems. IEEE Trans. Power Electron. 37 (1), 879–895. [doi:10.1109/tpel.2021.3094220](https://doi.org/10.1109/tpel.2021.3094220) Conflict of Interest: ZH was employed by Liaoning Electric Power Company. YB was employed by Jiangmen Power Supply Bureau of Guangdong Power Grid Corporation. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest Publisher’s Note: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors, and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher. Copyright © 2022 Han, Yuan, Dong, Ma, Bian and Mao. This is an open-access [article distributed under the terms of the Creative Commons Attribution License (CC](https://creativecommons.org/licenses/by/4.0/) [BY). The use, distribution or reproduction in other forums is permitted, provided the](https://creativecommons.org/licenses/by/4.0/) original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

섹션 본문 153문단 · 64,212자

(제목 없음)

1Hydrogen energy plays an important role in the transformation of low-carbon energy, and electric hydrogen coupling will become a typical energy scenario. Aiming at the operation flexibility of low-carbon electricity hydrogen coupling system with high proportion of wind power and photovoltaic, this paper studies the flexibility margin of electricity hydrogen coupling energy block based on model predictive control (MPC). By analyzing the power exchange characteristics of heterogeneous energy, the homogenization models of various heterogeneous energy sources are established. According to the analysis of power system flexibility margin, three dimensions of flexibility margin evaluation indexes are defined from the dimension of system operation, and an electricity hydrogen coupling energy block scheduling model is established. The model predictive control algorithm is used to optimize the power balance operation of the electro hydrogen coupling energy block, and the flexibility margin of the energy block is quantitatively analyzed and calculated. Through the example analysis, it is verified that the calculation method proposed in this paper can not only realize the on-line power balance optimization of electric hydrogen coupling energy block, but also effectively quantify the operation flexibility margin of electric hydrogen coupling energy block.

Introduction

2As the penetration ratio of renewable energy increases year by year, there is a reverse change between supply and demand of power system flexibility, and the phenomenon of renewable energy power limitation is increasing day by day [1,2]. This transition undoubtedly brings huge economic and environmental benefits, but also bring huge challenges to the secure and stable operation of the today's power system due to the uncertainties of renewable power generations [3][4][5]. As a clean secondary energy [6], it is particularly important for hydrogen to fully call all links of source charge storage to participate in flexibility adjustment and balance through electric hydrogen coupling power generation system and cooperate with the consumption of renewable energy [7,8]. Power to gas (P2G), as links of multi-energy carriers, has been successfully adopted to strengthen the coupling of different energy systems in [9]. Hydrogen-electric coupling will greatly contribute to promote renewable energy consumption and build a low-carbon sustainable modern energy system [10,11]. In order to solve the problems of large differences in heterogeneous energy models and difficult flexibility margin analysis 2 in electro hydrogen coupling module, it is urgent to build an effective electric hydrogen coupling contract qualitative energy module and carry out flexibility margin calculation. At present, many experts and scholars around the world have carried out research on the modeling and flexibility margin analysis of electro hydrogen coupling module. Literature [12] established a linear model of wind hydrogen hybrid energy system based on empirical and physical relations, and analyzed the performance of hybrid energy system through digital simulation. Reference [13] carried out conceptual modeling of hybrid renewable energy system based on wind energy / electrolyzer / proton exchange membrane fuel cell. At the same time, based on the thermodynamic, electrochemical and mechanical models of different components of the hybrid system, the energy analysis framework of the hybrid system is established. And the model is used for simulation analysis to calculate the influence of different operating parameters on energy application efficiency. Reference [14] established a renewable energy hybrid system model composed of photovoltaic cells, wind turbines, battery energy storage systems and diesel power generation systems. And three cases are set to analyze the impact of system performance and intermittent renewable energy on the system. In addition, in the operation and analysis of multi-energy power system. Research institutions at home and abroad have carried out relevant research on the flexibility evaluation of two or a few energy resource systems. Starting from the dimension of flexibility planning, document [15] defines power system flexibility as the ability of the system to allocate its resources when the system network or load changes, and takes this flexibility as one of the indicators to evaluate whether the planning scheme is reasonable. The flexibility of the power system described in the literature [16] is the ability to quickly adapt and restore stability when the system undergoes unpredictable fluctuations or changes under certain economic constraints. Document [17] qualitatively describes the system flexibility in this area by using the switching capacity of hydropower and thermal power generation, and the economic benefits brought by hydro thermal power switching can measure the advantages and disadvantages of switching schemes under different operating states. References [18,19] define the unit flexibility index and system flexibility index according to the unit flexibility parameters, and establishes the unit combination model considering unit expansion with the goal of minimizing the total cost.

3The above-mentioned literature lacks homogeneous equivalent modeling of heterogeneous energy systems and multi-dimensional quantitative understanding of flexibility. Moreover, the flexibility evaluation index is one-sided and single, and it is difficult for the flexibility evaluation to reveal the flexibility boundary of the system operation. Therefore, this paper analyzes the power characteristics of the heterogeneous energy of electric and hydrogen, and carries out the homogeneity modeling of the heterogeneous energy. And from the three dimensions of climbing, power and energy, the energy block balance criterion and flexibility margin index of electric-hydrogen coupling are proposed. The flexibility margin of the electric-hydrogen coupling energy block is analyzed, and the power balance optimization calculation method of the energy block based on model predictive control (MPC) is proposed. Finally, combined with the historical data of a new energy demonstration area in my country, the calculation method of the flexibility margin of the electricity-hydrogen coupling energy block proposed in this paper was verified.

Electro-hyderogen coupling energy block and homogenization modeling

4Based on the existing gas turbine, wind power and photovoltaic structures, combined with the characteristics of electrolytic cell and fuel cell, an electric hydrogen coupling energy block is constructed, as shown in Figure 1. It can be seen from Figure 1 that in the energy block composed of a variety of heterogeneous energy sources, wind power, photovoltaic and gas units are coupled with hydrogen energy storage devices. At the same time, the balance supply of electric load and hydrogen load is realized through internal energy regulation. The mutual conversion between hydrogen energy and electric energy is the 3 medium connecting various heterogeneous energy models in the electric hydrogen coupling energy block. For the outside of the electric hydrogen coupling energy block, the energy module is supplied by wind energy, solar energy, gas and hydrogen, and the supply and demand balance of source load is met through internal energy conversion. For the inside of the electric hydrogen coupling energy block, wind airports and photovoltaic stations convert the supplied energy into electric energy. When the power output is higher than the electric load demand, the electrolytic cell absorbs the excess power of the system, converts the electric energy into hydrogen energy and stores it. When the power output is less than the electric load demand, the fuel cell will supplement the missing power. The hydrogen storage capacity is determined by the electric load and hydrogen load. The battery energy storage can balance the climbing power and make up for the power shortage.

5The electro hydrogen coupling energy block involves a variety of heterogeneous energy units with different physical media and technical characteristics. For its complex parameters and boundary conditions, it is urgent to establish a unified model for analysis.

6Combined with the structure of electro hydrogen coupling energy block and considering the power exchange characteristics of heterogeneous energy, the model framework is shown in Figure 2.

7As can be seen from the figure, the supply and demand side of the model includes energy supply process (i >0), demand process (i <0), and spillover energy (wi≥0). The model system side includes the homogenization model and the conversion and transmission process of electric energy and hydrogen energy. By changing the model parameters, the model can characterize the elements in the energy block.

8The model set i∈{w, pv, b, h, f, ···}, where w represents wind farm, pv represents photovoltaic station, b represents battery energy storage, h represents hydrogen energy storage system and f represents gas unit. The general formula of model i is:

9Where, Ci is the energy storage capacity, dxi is the change in state of charge (SOC) of energy storage, gen,i is the output efficiency, pgen,i is the output power, load is the load efficiency, pload,i is the load power, ex,i is the conversion efficiency of external energy, i is the output / consumption of external energy, and wi is the overflow energy, Δt is the dispatching cycle of energy storage. According to the existence of energy storage, the heterogeneous energy models in the energy module are divided into two categories. The renewable energy power generation model without energy storage (Cidxi=0) is as follows:

10The wind farm model is formulated by

11Where, w is the wind energy collected by the wind farm for the collection and calculation of wind speed data, ηgen,w is the power generation efficiency of the wind farm itself, pgen,w is the output power of the wind farm, and ww is the waste air volume in the dispatching cycle. The PV station model is given as follows:

12, , 0 pv pv pv gen pv gen pv pv

13Where, pv is the solar energy collected by the photovoltaic station for the collection and calculation of irradiation data, gen,pv is the power generation efficiency of the photovoltaic power plant itself, pgen,pv is the output power of the photovoltaic station, and wpv is the light rejection in the dispatching cycle. 4 The heterogeneous energy model with energy storage (Cidxi≠0) can be depicted in the following section.

Research on Flexible Margin of Electric-Hydrogen Coupling Energy Block Based on MPC

14The battery energy storage model is:

15Where, Cb represents the energy storage capacity of the battery, load,b represents the charging efficiency of the battery, pgen,b represents the charging power of the battery, gen,b represents the discharge efficiency of the battery, and pgen,b represents the discharge power of the battery. Hydrogen energy storage system model:

16Where, Ch represents the capacity of the hydrogen storage tank, h represents the hydrogen supply and demand, when h>0, it represents the hydrogen supply, when h<0, it represents the hydrogen demand, load,h represents the hydrogen production efficiency of the electrolytic cell, pload,h represents the power of the electrolytic cell, gen,h represents the power generation efficiency of the fuel cell, and pgen,h

17represents the output power of the fuel cell.

18The gas unit model is given as follows:

19,

20Where, Cf represents the capacity of the gas storage pipe, f is the gas input, gen,f is the gas power generation efficiency, pgen,f is the output power of the gas unit. The constraints to be met by the model are as follows: 1) Climbing constraint: unit and load climbing rate constraint . .min , , ,max load i load i load i dp dp dp  

21Where, dpload,i,min and dpload,i,max are the lower limit and upper limit of load climbing rate, respectively.

22, ,min , , ,max gen i gen i gen i dp dp dp

23Where, dpgen,i,min and dpgen,i,max are the lower limit and upper limit of unit climbing rate, respectively.

242) Output power constraints: system load and output constraints: , ,min , , ,max

25Where, pload,i,min and pload,i,max are respectively the upper and lower limit values of load demand, and each efficiency parameter is a variable, which changes with the change of input/output power, where ηgen,i=f(pgen,i), ηload,i=f(pload,i), ηex,i=f(i), k is a binary variable. Here, k =1 or 0 represents load is running or not running, respectively.

26Where, pgen,i,min and pgen,i,max are respectively the upper limit and lower limit of unit output, and each efficiency parameter is a variable, which changes with the change of input/output power, where 5 ηgen,i=f(pgen,i), ηload,i=f(pload,i), ηex,i=f(i), X is a binary variable. Here, X =1 or 0 represents a unit is running or not running, respectively. 3) Energy storage constraints: state of charge and energy storage capacity constraints:

27Where xmin and xmax are the upper and lower limits of the state of charge respectively. When there is energy storage, C > 0, otherwise, when C = 0, there is no state of charge constraint. 4) Renewable energy abandonment constraints: energy input/consumption and spillover energy constraints:

28Where i>0 represents the external input of energy, wi≥0 represents the existence of overflow energy (wind and light abandonment), and i <0 represents the external consumption of energy.

Energy block flexibility margin analysis

29The flexibility demand of energy block mainly comes from the intermittence and fluctuation of load and renewable energy, and has certain directionality. Flexibility can be divided into upward flexibility requirements and downward flexibility requirements. When the system has upward flexibility demand (pnet≤0), the flexibility resource response is gas unit, battery energy storage and discharge, fuel cell and load rejection. When the system has downward flexibility demand (pnet≥0), the flexibility resource response is battery energy storage charging, electrolytic cell and renewable energy abandonment. Aiming at the balance between supply and demand of flexibility in electro hydrogen coupling energy block. This paper will analyze flexibility from three dimensions: climbing power, output power and power supply [20][21][22].

30As shown in Figure 3, four operation points are set to analyze the flexibility margin of the system at t2 time. Operation points A and B have downward flexibility requirements, and the flexibility provided at t1 time is rp -, pp -, ep, while the downward flexibility required by operation point a is rn -, pn -, en -. It can be seen from the figure that the flexibility margin required for operation point a is outside the system flexibility margin envelope, rp -, pp -, ep -<rn -, pn -, enand the system can't meet the flexibility requirements of operation point A. The flexibility margin required by operation point B is within the system flexibility margin envelope, and the system can meet the flexibility margin requirements of operation point B.

31Operation points C and D have upward flexibility requirements. The operating point C is within the flexibility margin envelope, which can meet the requirements of flexibility margin. Operating point D is outside the envelope of flexibility margin, rp + , pp + , ep + >rn + , pn + , en + , which can't meet the requirements of flexibility margin.

32The flexibility balance criterion of electric hydrogen coupling energy block is:

33,

34Where, r + p,i,t, rp,i,t are the uphill power and downhill power provided by unit i at time t, rn,t is the uphill power required by the system at time t, p + p,i,t and pp,i,t are the up output power and down output power provided by unit i at time t, pn,t is the output power required by the system at time t, e + p,i,t, ep,i,t is the upper power supply and lower power supply provided by unit i at time t, and en,t is the power supply required by the system at time t.

Energy block evaluation index

35Calculate the flexibility margin required at each running time and the upper and lower limits of the flexibility margin provided by the energy block, draw the flexibility margin envelope, and analyze the boundary of the system flexibility margin [23,24]. And through the analysis of the flexibility margin required by the operating point, the expectation of insufficient flexibility margin in each dimension is defined as an index to measure the flexibility margin of the energy block.

36To enable it to effectively reflect the system's ability to respond to changes in net load, the indicators are as follows:

371) The climbing power does not meet the index EIR, which indicates the expected value of the difference between the up / down climbing power provided by the system and the actual demand climbing power within the operation day.

38In formula (14):

39Where, dPnet,t represents the net load climbing rate at time t, ρs represents the probability of insufficient flexibility margin in scenario s, NT represents the number of system dispatching intervals, s,t represents the number of insufficient flexibility margin, NG represents the number of generator units, and NL represents the number of loads.

402) The output power does not meet the index EIO, which indicates the expected value of the difference between the up / down power provided by the system and the actual demand power within the operation day.

41Where, Pnet,t represents the net load power at time t. 7 3) The provided electric energy does not meet the EIC index, which indicates the expected value of the difference between the up / down regulated electric energy provided by the system energy storage unit and the actual demand electric energy within the operation day.

42The above three indicators show the expectation of insufficient flexibility margin as that the flexibility margin unit can't meet the change of system static load.

Online solution of energy block flexibility margin based on MPC

43The state space of linear discrete system is expressed as:

44Where, x is the state variable, u is the control variable, d is the disturbance variable, y is the controlled output, A, B and C are the system matrix, control matrix and disturbance matrix respectively, C is the output matrix, k is the current time, and k+1 is the next time.

45Bring equations (2)-(6) into equation (18), and the specific form of state space expression is:

46, ,

47The vector formed by the energy storage SOC is selected as the state variable, namely:

48The vector composed of output, load power and overflow energy of each unit is taken as the control variable, namely:

49Research on Flexible Margin of Electric-Hydrogen Coupling Energy Block Based on MPC 8 Take wind power, photovoltaic, hydrogen, and coal energy supply vectors as disturbance variables, namely:

50Take the vector composed of battery energy storage and hydrogen energy storage SOC as the output variable, namely:

51The system matrix, control matrix, output matrix and disturbance matrix of the energy module are respectively: 9 The error between the estimated output value of spilled energy and stored energy SOC and the daily planned value is the smallest, and the control active power regulation increment of each unit is the smallest. The objective function of the electro hydrogen coupling energy block is: Where P t load represents the system load demand power at time t. Define vector E(k) as the deviation between the system free response and the future target trajectory:

Research on Flexible Margin of Electric-Hydrogen Coupling Energy Block Based on MPC

52In formula (33):

53The above formula is written as the standard form of secondary planning:

54The constraint condition of equation (36) is: I I I I I I I I

55Where, I is the identity matrix of m dimension, and m is the number of control quantities. According to the above derivation process, it can be transformed into a quadratic programming problem for solution. As shown in formula (45), the first item of the solved control sequence is applied to the system, and the control quantity is executed until the next time. At the new time, the system re predicts the output of the next time domain according to the state information. Then the next new control increment sequence is obtained through the optimization process. This cycle is repeated until the system completes the control process.

56Where k-1 is the last time.

57Draw the flexibility margin envelope according to the calculated control variable sequence, and bring it into equations (14) to (17) to calculate the indicators of EIR, EIO and EIO.

58The flow chart of flexibility margin analysis is shown in Figure 4. 12

5

59Example simulation

Energy block parameter setting

60The example system structure is shown in Figure 1. In the electric hydrogen coupling energy block constructed in this paper, the installed capacity of wind farm is 60MW, the installed capacity of photovoltaic power generation system is 60MW, and the installed capacity of gas turbine assembly is 30MW. In terms of hydrogen energy system, including 30MW fuel cell power generation system and 30MW electrolytic cell system, the initial SOC of hydrogen energy storage is taken as 40%. The energy storage device adopts a battery with a total capacity of 120mwh, its rated charge discharge power is ±10MW, and the initial SOC value of the battery is 45%. Refer to literature [25][26][27][28] for the parameters of matrix B in equation (25). Relevant technical parameters of electro hydrogen coupling system are shown in Table 1.

61The data of wind power, photovoltaic, power load and hydrogen load are shown in Figure 5.

Flexibility margin analysis of energy block

62In order to analyze the differences of flexibility margins in different scenarios, this section designs three calculation scenarios to evaluate the flexibility margins of fast energy. Scenario 1: In the absence of controllable components, analyze the lack of flexibility margin in the initial operating state.

63Scenario 2: Add hydrogen storage and analyze the flexibility margin of the system. Scenario 3: Based on scenario 2, battery energy storage and gas generators are added to further increase the adjustment capability of the energy block and analyze the flexibility margin of the system. The energy block model is established according to each scene, and the system output power at the step size of 5 min is calculated and analyzed. According to the operation of each scene at each time, draw the operation diagram of energy block and the boundary envelope of dynamic flexibility margin. The flexibility margin analysis required for scenario 1 is shown in Figure 8; The simulation analysis of scenario 2 and scenario 3 is shown in Figure 6 and Figure 7, and the corresponding flexibility margin boundary envelope analysis is shown in Figure 9 and figure 10. The flexibility margin index and flexibility maximum value of each scenario are shown in Table 2 and Table 3.

64In scenario 1, high permeability renewable energy is accessed, and there is no controllable element in the system to adjust. At this time, the air and light rejection can only be adjusted through the overflow energy W, resulting in the mismatch of the flexibility margin of the system and the increase of the flexibility margin index. In scenes 2 and 3, controllable elements such as hydrogen energy storage and battery energy storage are added. At this time, the flexibility margin of the energy module is effectively increased through the integration of resources. In scenario 2, the flexibility margin requirements of the module in terms of energy storage and output are supplemented through the combination of fuel cell and electrolytic cell. The operation requirement is to avoid frequent startup and shutdown of the unit on the basis of full supply of load and consumption of renewable energy. In scheme 3, the battery energy storage and gas unit further supplement the flexibility margin requirements in climbing power and unit output required by the module, further improving the flexibility margin level of the system. Scenario 2 and scenario 3 supplement corresponding units based on flexibility margin index. It can be seen from Table Ⅱ and table Ⅲ that through the comparison of various scenarios, the integration of controllable resources effectively increases the flexibility margin of the energy module.

65As shown in Figures 9 and 10, due to the high proportion of renewable energy connected to the energy module, its strong volatility leads to insufficient up regulation or down regulation capacity at many operating points. For scenario 2, in the 5-33hours interval, there is no wind at night, the fan and photovoltaic output are insufficient, and the climbing power and unit output in the energy module are 13 insufficient, which cannot provide sufficient flexibility resources. During this period, the maximum climbing power shortage is 3.6MW/min, the maximum output power shortage is 18.5MW, and the Maximum supply power shortage is 4.27MWh. In the 163-205hour interval, the output of fan and photovoltaic decreases sharply, the SOC of hydrogen energy storage is maintained at a low level, and the fuel cell cannot provide enough electric energy, so the normal operation of the system can only be maintained through load shedding.

66The maximum value of climbing power shortage during this period is 4.67MW/min, the maximum value of output power shortage is 20.7MW, and the maximum value of power supply shortage is 36.27MWh. In the 42-46, 115, 155-165, 230, 300-310, 325-355 hours interval, energy modules cannot fully absorb renewable energy. These parts of the electricity discarded account for 7% of the total renewable energy power generation. The flexibility margin index of scenario 2 is EIR=5.631MW/min, EIO=26.173MW, EIC=32.089MWh. For Scenario 3, on the basis of Scenario 2, the combination of battery energy storage and gas generator sets makes up for the corresponding flexibility margin deficiency.

67It can be seen from Figure 7 that the battery energy storage has the ability to respond quickly. The rapid discharge supplements the system's demand in the climbing power dimension, while the gas-fired unit supplements the lack of output power. Scenario 3 can basically meet the upward flexibility requirements of energy modules, but in the 44, 114-115, and 155-160hours interval, there are still situations where renewable energy power generation cannot be fully absorbed. The power discarded in these parts accounts for 1.5% of the total renewable energy power generation. The flexibility margin index of scenario 3 is EIR=0MW/min, EIO=1.1MW, EIC=3.62MWh. To avoid the abandonment and load shedding of renewable energy sources, we can invest in flexibility resources with corresponding adjustment capabilities and adjustment directions based on the calculation results.

The influence of renewable energy penetration rate on the flexibility margin of energy block

68Compared Renewable energy has the characteristics of intermittent and volatility, and a high proportion of renewable energy access will have a certain impact on the flexibility of the system. According to scenario 3, study the impact of different access ratios of renewable energy on the flexibility margin, gradually increase the ratio of wind power and photovoltaic access from 0% to 50%, and calculate the abandonment rate of renewable energy by formula (46). The flexibility margin of the system under different penetration rates is shown in Table 4.

69With the continuous improvement of renewable energy penetration, the flexibility margin of energy module gradually decreases. As can be seen from Figure 11, there is a threshold for renewable energy penetration. When the access ratio exceeds 40%, the flexibility margin index of each dimension of the energy module shows a rapid growth trend. The comparison between scenario 2 and scenario 3 shows that PV requires higher flexibility margin than wind power. However, due to the intermittent characteristics of wind power generation, the demand for flexibility margin in the dimension of climbing power is high. The comparison of different scenarios shows that when the renewable energy penetration rate exceeds 40%, the EIC and EIO indicators increase significantly. When the permeability exceeds 60%, the EIC index increases significantly. It can be seen that the deficiency of unit output and power supply index has a greater impact on the system flexibility margin.

70When analyzing system flexibility margin, analysis indicators of different dimensions are required. According to the analysis results, increase the corresponding flexibility margin resources in each dimension to ensure the economy of the system while maintaining the balance of system flexibility margin as far as possible.

Conclusion

71By analyzing the power exchange characteristics of heterogeneous energy sources, this paper establishes the homogenization model of various flexibility margin resources. On this basis, the energy block model of electro hydrogen coupling is established. The flexibility margin evaluation index is proposed from the dimension of system operation, and the flexibility margin of the module is analyzed from the three dimensions of climbing power, unit output and power supply. The model predictive control algorithm is introduced to solve the problem, and then the system flexibility margin is quantitatively analyzed. The conclusions are as follows: 1)By analyzing the power exchange characteristics of heterogeneous energy, a homogenization model is established based on the energy balance relationship of each unit of the energy module. The complex model of multiple physical fields is simplified and equivalent, which lays a model foundation for the on-line calculation of flexibility margin.

722)In this paper, an optimal calculation method of energy block power balance based on MPC is proposed, and the flexibility margin of electro hydrogen coupling energy block is analyzed. In this paper, the energy block balance criterion and flexibility margin index of electro hydrogen coupling are proposed from the three dimensions of climbing, power and energy. Through the analysis of the flexibility margin of the operation point, the deficiency of the flexibility margin of the system is judged, the flexibility margin analysis of the energy module is better realized, and suggestions are provided for the system scheduling.

733)The simulation results show that the flexibility index of each operation point is different due to the different intermittent and fluctuation distribution of the energy module at each time. At the same time, nodes and moments with insufficient flexibility margin can be found according to the drawing of flexibility margin envelope of operating points. The indicators proposed in this paper can help the system coordinate the configuration and operation of flexibility resources. 4)Through the analysis of permeability, it can be seen that there is a threshold of renewable energy permeability. When the threshold is exceeded, the flexibility margin index of each dimension of the energy module shows an increasing trend. Compared with wind power, PV has higher requirements on flexibility margin. This paper only models from the steady-state dimension, and does not involve the transient model of the system and the capacity matching of the wind solar hydrogen system. In the follow-up research, many technical and economic factors such as hydrogen storage and hydrogen sales will be mainly considered. Besides, it is also interesting to investigate the planning and energy management of microgids and integrated energy system incorporating the presented electric-hydrogen coupling energy block [29,30]. employed by School of Electrical Engineering, Northeast Electric Power University. All authors declare no other competing interests.

Author Contributions

74Zijiao Han is mainly responsible for technical aspects, conception and design of manuscripts. Shun Yuan investigated the homogenization modeling and calculated the main methods. Yannan Dong contributed to the flexibility margin analysis. Shaohua Ma provides valuable help for calculation. Yudong Bian and Xinyu Mao participated in the production of the paper chart and the preparation of some contents.

Funding

75This study received funding from "Liaoning BaiQianWan Talents Program" and Liaoning Electric Power Co., Ltd. science and technology project (2021YF-81) of State Grid. The funder was not involved in the study design, collection, analysis, interpretation of data, the writing of this article or the decision to submit it for publication. All authors declare no other competing interests.

Acknowledgments

76Thanks for The Project is sponsored by "Liaoning BaiQianWan Talents Program" and Liaoning Electric Power Co., Ltd. science and technology project (2021YF-81) of State Grid, which funded us, and also to the experts and scholars who have helped us in the process of scientific research.

Reference

77Transactions of China Electrotechnical Society,2018,33 (14) Flowchart of the flexibility margin calculation method Figure 5 The value of load, photovoltaic plant output and wind farms output. Figure 6 The Simulation Analysis of scenario 2. Figure 7 The Simulation Analysis of scenario 3. Figure 8 Flexibility margin analysis of scenario 1. Figure 9 Flexibility margin analysis of scenario 2. Figure 10 Flexibility margin analysis of scenario 3. Figure 11 Renewable energy abandonment rate.

Introduction

78As the penetration ratio of renewable energy increases year by year, there is a reverse change between supply and demand of power system flexibility, and the phenomenon of renewable energy power limitation is increasing day by day [1,2]. This transition undoubtedly brings huge economic and environmental benefits, but also bring huge challenges to the secure and stable operation of the today's power system due to the uncertainties of renewable power generations [3][4][5]. As a clean secondary energy [6], it is particularly important for hydrogen to fully call all links of source charge storage to participate in flexibility adjustment and balance through electric hydrogen coupling power generation system and cooperate with the consumption of renewable energy [7,8]. Power to gas (P2G), as links of multi-energy carriers, has been successfully adopted to strengthen the coupling of different energy systems in [9]. Hydrogen-electric coupling will greatly contribute to promote renewable energy consumption and build a low-carbon sustainable modern energy system [10,11]. In order to solve the problems of large differences in heterogeneous energy models and difficult flexibility margin analysis 2 in electro hydrogen coupling module, it is urgent to build an effective electric hydrogen coupling contract qualitative energy module and carry out flexibility margin calculation. At present, many experts and scholars around the world have carried out research on the modeling and flexibility margin analysis of electro hydrogen coupling module. Literature [12] established a linear model of wind hydrogen hybrid energy system based on empirical and physical relations, and analyzed the performance of hybrid energy system through digital simulation. Reference [13] carried out conceptual modeling of hybrid renewable energy system based on wind energy / electrolyzer / proton exchange membrane fuel cell. At the same time, based on the thermodynamic, electrochemical and mechanical models of different components of the hybrid system, the energy analysis framework of the hybrid system is established. And the model is used for simulation analysis to calculate the influence of different operating parameters on energy application efficiency. Reference [14] established a renewable energy hybrid system model composed of photovoltaic cells, wind turbines, battery energy storage systems and diesel power generation systems. And three cases are set to analyze the impact of system performance and intermittent renewable energy on the system. In addition, in the operation and analysis of multi-energy power system. Research institutions at home and abroad have carried out relevant research on the flexibility evaluation of two or a few energy resource systems. Starting from the dimension of flexibility planning, document [15] defines power system flexibility as the ability of the system to allocate its resources when the system network or load changes, and takes this flexibility as one of the indicators to evaluate whether the planning scheme is reasonable. The flexibility of the power system described in the literature [16] is the ability to quickly adapt and restore stability when the system undergoes unpredictable fluctuations or changes under certain economic constraints. Document [17] qualitatively describes the system flexibility in this area by using the switching capacity of hydropower and thermal power generation, and the economic benefits brought by hydro thermal power switching can measure the advantages and disadvantages of switching schemes under different operating states. References [18,19] define the unit flexibility index and system flexibility index according to the unit flexibility parameters, and establishes the unit combination model considering unit expansion with the goal of minimizing the total cost.

79The above-mentioned literature lacks homogeneous equivalent modeling of heterogeneous energy systems and multi-dimensional quantitative understanding of flexibility. Moreover, the flexibility evaluation index is one-sided and single, and it is difficult for the flexibility evaluation to reveal the flexibility boundary of the system operation. Therefore, this paper analyzes the power characteristics of the heterogeneous energy of electric and hydrogen, and carries out the homogeneity modeling of the heterogeneous energy. And from the three dimensions of climbing, power and energy, the energy block balance criterion and flexibility margin index of electric-hydrogen coupling are proposed. The flexibility margin of the electric-hydrogen coupling energy block is analyzed, and the power balance optimization calculation method of the energy block based on model predictive control (MPC) is proposed. Finally, combined with the historical data of a new energy demonstration area in my country, the calculation method of the flexibility margin of the electricity-hydrogen coupling energy block proposed in this paper was verified.

Electro-hyderogen coupling energy block and homogenization modeling

80Based on the existing gas turbine, wind power and photovoltaic structures, combined with the characteristics of electrolytic cell and fuel cell, an electric hydrogen coupling energy block is constructed, as shown in Figure 1. It can be seen from Figure 1 that in the energy block composed of a variety of heterogeneous energy sources, wind power, photovoltaic and gas units are coupled with hydrogen energy storage devices. At the same time, the balance supply of electric load and hydrogen load is realized through internal energy regulation. The mutual conversion between hydrogen energy and electric energy is the 3 medium connecting various heterogeneous energy models in the electric hydrogen coupling energy block. For the outside of the electric hydrogen coupling energy block, the energy module is supplied by wind energy, solar energy, gas and hydrogen, and the supply and demand balance of source load is met through internal energy conversion. For the inside of the electric hydrogen coupling energy block, wind airports and photovoltaic stations convert the supplied energy into electric energy. When the power output is higher than the electric load demand, the electrolytic cell absorbs the excess power of the system, converts the electric energy into hydrogen energy and stores it. When the power output is less than the electric load demand, the fuel cell will supplement the missing power. The hydrogen storage capacity is determined by the electric load and hydrogen load. The battery energy storage can balance the climbing power and make up for the power shortage.

81The electro hydrogen coupling energy block involves a variety of heterogeneous energy units with different physical media and technical characteristics. For its complex parameters and boundary conditions, it is urgent to establish a unified model for analysis.

82Combined with the structure of electro hydrogen coupling energy block and considering the power exchange characteristics of heterogeneous energy, the model framework is shown in Figure 2.

83As can be seen from the figure, the supply and demand side of the model includes energy supply process (i >0), demand process (i <0), and spillover energy (wi≥0). The model system side includes the homogenization model and the conversion and transmission process of electric energy and hydrogen energy. By changing the model parameters, the model can characterize the elements in the energy block.

84The model set i∈{w, pv, b, h, f, ···}, where w represents wind farm, pv represents photovoltaic station, b represents battery energy storage, h represents hydrogen energy storage system and f represents gas unit. The general formula of model i is:

85Where, Ci is the energy storage capacity, dxi is the change in state of charge (SOC) of energy storage, gen,i is the output efficiency, pgen,i is the output power, load is the load efficiency, pload,i is the load power, ex,i is the conversion efficiency of external energy, i is the output / consumption of external energy, and wi is the overflow energy, Δt is the dispatching cycle of energy storage. According to the existence of energy storage, the heterogeneous energy models in the energy module are divided into two categories. The renewable energy power generation model without energy storage (Cidxi=0) is as follows:

86The wind farm model is formulated by

87Where, w is the wind energy collected by the wind farm for the collection and calculation of wind speed data, ηgen,w is the power generation efficiency of the wind farm itself, pgen,w is the output power of the wind farm, and ww is the waste air volume in the dispatching cycle. The PV station model is given as follows:

88, , 0 pv pv pv gen pv gen pv pv

89Where, pv is the solar energy collected by the photovoltaic station for the collection and calculation of irradiation data, gen,pv is the power generation efficiency of the photovoltaic power plant itself, pgen,pv is the output power of the photovoltaic station, and wpv is the light rejection in the dispatching cycle. 4 The heterogeneous energy model with energy storage (Cidxi≠0) can be depicted in the following section.

Research on Flexible Margin of Electric-Hydrogen Coupling Energy Block Based on MPC

90The battery energy storage model is:

91Where, Cb represents the energy storage capacity of the battery, load,b represents the charging efficiency of the battery, pgen,b represents the charging power of the battery, gen,b represents the discharge efficiency of the battery, and pgen,b represents the discharge power of the battery. Hydrogen energy storage system model:

92Where, Ch represents the capacity of the hydrogen storage tank, h represents the hydrogen supply and demand, when h>0, it represents the hydrogen supply, when h<0, it represents the hydrogen demand, load,h represents the hydrogen production efficiency of the electrolytic cell, pload,h represents the power of the electrolytic cell, gen,h represents the power generation efficiency of the fuel cell, and pgen,h

93represents the output power of the fuel cell.

94The gas unit model is given as follows:

95,

96Where, Cf represents the capacity of the gas storage pipe, f is the gas input, gen,f is the gas power generation efficiency, pgen,f is the output power of the gas unit. The constraints to be met by the model are as follows: 1) Climbing constraint: unit and load climbing rate constraint . .min , , ,max load i load i load i dp dp dp  

97Where, dpload,i,min and dpload,i,max are the lower limit and upper limit of load climbing rate, respectively.

98, ,min , , ,max gen i gen i gen i dp dp dp

99Where, dpgen,i,min and dpgen,i,max are the lower limit and upper limit of unit climbing rate, respectively.

1002) Output power constraints: system load and output constraints: , ,min , , ,max

101Where, pload,i,min and pload,i,max are respectively the upper and lower limit values of load demand, and each efficiency parameter is a variable, which changes with the change of input/output power, where ηgen,i=f(pgen,i), ηload,i=f(pload,i), ηex,i=f(i), k is a binary variable. Here, k =1 or 0 represents load is running or not running, respectively.

102Where, pgen,i,min and pgen,i,max are respectively the upper limit and lower limit of unit output, and each efficiency parameter is a variable, which changes with the change of input/output power, where 5 ηgen,i=f(pgen,i), ηload,i=f(pload,i), ηex,i=f(i), X is a binary variable. Here, X =1 or 0 represents a unit is running or not running, respectively. 3) Energy storage constraints: state of charge and energy storage capacity constraints:

103Where xmin and xmax are the upper and lower limits of the state of charge respectively. When there is energy storage, C > 0, otherwise, when C = 0, there is no state of charge constraint. 4) Renewable energy abandonment constraints: energy input/consumption and spillover energy constraints:

104Where i>0 represents the external input of energy, wi≥0 represents the existence of overflow energy (wind and light abandonment), and i <0 represents the external consumption of energy.

Energy block flexibility margin analysis

105The flexibility demand of energy block mainly comes from the intermittence and fluctuation of load and renewable energy, and has certain directionality. Flexibility can be divided into upward flexibility requirements and downward flexibility requirements. When the system has upward flexibility demand (pnet≤0), the flexibility resource response is gas unit, battery energy storage and discharge, fuel cell and load rejection. When the system has downward flexibility demand (pnet≥0), the flexibility resource response is battery energy storage charging, electrolytic cell and renewable energy abandonment. Aiming at the balance between supply and demand of flexibility in electro hydrogen coupling energy block. This paper will analyze flexibility from three dimensions: climbing power, output power and power supply [20][21][22].

106As shown in Figure 3, four operation points are set to analyze the flexibility margin of the system at t2 time. Operation points A and B have downward flexibility requirements, and the flexibility provided at t1 time is rp -, pp -, ep, while the downward flexibility required by operation point a is rn -, pn -, en -. It can be seen from the figure that the flexibility margin required for operation point a is outside the system flexibility margin envelope, rp -, pp -, ep -<rn -, pn -, enand the system can't meet the flexibility requirements of operation point A. The flexibility margin required by operation point B is within the system flexibility margin envelope, and the system can meet the flexibility margin requirements of operation point B.

107Operation points C and D have upward flexibility requirements. The operating point C is within the flexibility margin envelope, which can meet the requirements of flexibility margin. Operating point D is outside the envelope of flexibility margin, rp + , pp + , ep + >rn + , pn + , en + , which can't meet the requirements of flexibility margin.

108The flexibility balance criterion of electric hydrogen coupling energy block is:

109,

110Where, r + p,i,t, rp,i,t are the uphill power and downhill power provided by unit i at time t, rn,t is the uphill power required by the system at time t, p + p,i,t and pp,i,t are the up output power and down output power provided by unit i at time t, pn,t is the output power required by the system at time t, e + p,i,t, ep,i,t is the upper power supply and lower power supply provided by unit i at time t, and en,t is the power supply required by the system at time t.

Energy block evaluation index

111Calculate the flexibility margin required at each running time and the upper and lower limits of the flexibility margin provided by the energy block, draw the flexibility margin envelope, and analyze the boundary of the system flexibility margin [23,24]. And through the analysis of the flexibility margin required by the operating point, the expectation of insufficient flexibility margin in each dimension is defined as an index to measure the flexibility margin of the energy block.

112To enable it to effectively reflect the system's ability to respond to changes in net load, the indicators are as follows:

1131) The climbing power does not meet the index EIR, which indicates the expected value of the difference between the up / down climbing power provided by the system and the actual demand climbing power within the operation day.

114In formula (14):

115Where, dPnet,t represents the net load climbing rate at time t, ρs represents the probability of insufficient flexibility margin in scenario s, NT represents the number of system dispatching intervals, s,t represents the number of insufficient flexibility margin, NG represents the number of generator units, and NL represents the number of loads.

1162) The output power does not meet the index EIO, which indicates the expected value of the difference between the up / down power provided by the system and the actual demand power within the operation day.

117Where, Pnet,t represents the net load power at time t. 7 3) The provided electric energy does not meet the EIC index, which indicates the expected value of the difference between the up / down regulated electric energy provided by the system energy storage unit and the actual demand electric energy within the operation day.

118The above three indicators show the expectation of insufficient flexibility margin as that the flexibility margin unit can't meet the change of system static load.

Online solution of energy block flexibility margin based on MPC

119The state space of linear discrete system is expressed as:

120Where, x is the state variable, u is the control variable, d is the disturbance variable, y is the controlled output, A, B and C are the system matrix, control matrix and disturbance matrix respectively, C is the output matrix, k is the current time, and k+1 is the next time.

121Bring equations (2)-(6) into equation (18), and the specific form of state space expression is:

122, ,

123The vector formed by the energy storage SOC is selected as the state variable, namely:

124The vector composed of output, load power and overflow energy of each unit is taken as the control variable, namely:

125Research on Flexible Margin of Electric-Hydrogen Coupling Energy Block Based on MPC 8 Take wind power, photovoltaic, hydrogen, and coal energy supply vectors as disturbance variables, namely:

126Take the vector composed of battery energy storage and hydrogen energy storage SOC as the output variable, namely:

127The system matrix, control matrix, output matrix and disturbance matrix of the energy module are respectively: 9 The error between the estimated output value of spilled energy and stored energy SOC and the daily planned value is the smallest, and the control active power regulation increment of each unit is the smallest. The objective function of the electro hydrogen coupling energy block is: Where P t load represents the system load demand power at time t. Define vector E(k) as the deviation between the system free response and the future target trajectory:

Research on Flexible Margin of Electric-Hydrogen Coupling Energy Block Based on MPC

128In formula (33):

129The above formula is written as the standard form of secondary planning:

130The constraint condition of equation (36) is: I I I I I I I I

131Where, I is the identity matrix of m dimension, and m is the number of control quantities. According to the above derivation process, it can be transformed into a quadratic programming problem for solution. As shown in formula (45), the first item of the solved control sequence is applied to the system, and the control quantity is executed until the next time. At the new time, the system re predicts the output of the next time domain according to the state information. Then the next new control increment sequence is obtained through the optimization process. This cycle is repeated until the system completes the control process.

132Where k-1 is the last time.

133Draw the flexibility margin envelope according to the calculated control variable sequence, and bring it into equations (14) to (17) to calculate the indicators of EIR, EIO and EIO.

134The flow chart of flexibility margin analysis is shown in Figure 4. 12

5

135Example simulation

Energy block parameter setting

136The example system structure is shown in Figure 1. In the electric hydrogen coupling energy block constructed in this paper, the installed capacity of wind farm is 60MW, the installed capacity of photovoltaic power generation system is 60MW, and the installed capacity of gas turbine assembly is 30MW. In terms of hydrogen energy system, including 30MW fuel cell power generation system and 30MW electrolytic cell system, the initial SOC of hydrogen energy storage is taken as 40%. The energy storage device adopts a battery with a total capacity of 120mwh, its rated charge discharge power is ±10MW, and the initial SOC value of the battery is 45%. Refer to literature [25][26][27][28] for the parameters of matrix B in equation (25). Relevant technical parameters of electro hydrogen coupling system are shown in Table 1.

137The data of wind power, photovoltaic, power load and hydrogen load are shown in Figure 5.

Flexibility margin analysis of energy block

138In order to analyze the differences of flexibility margins in different scenarios, this section designs three calculation scenarios to evaluate the flexibility margins of fast energy. Scenario 1: In the absence of controllable components, analyze the lack of flexibility margin in the initial operating state.

139Scenario 2: Add hydrogen storage and analyze the flexibility margin of the system. Scenario 3: Based on scenario 2, battery energy storage and gas generators are added to further increase the adjustment capability of the energy block and analyze the flexibility margin of the system. The energy block model is established according to each scene, and the system output power at the step size of 5 min is calculated and analyzed. According to the operation of each scene at each time, draw the operation diagram of energy block and the boundary envelope of dynamic flexibility margin. The flexibility margin analysis required for scenario 1 is shown in Figure 8; The simulation analysis of scenario 2 and scenario 3 is shown in Figure 6 and Figure 7, and the corresponding flexibility margin boundary envelope analysis is shown in Figure 9 and figure 10. The flexibility margin index and flexibility maximum value of each scenario are shown in Table 2 and Table 3.

140In scenario 1, high permeability renewable energy is accessed, and there is no controllable element in the system to adjust. At this time, the air and light rejection can only be adjusted through the overflow energy W, resulting in the mismatch of the flexibility margin of the system and the increase of the flexibility margin index. In scenes 2 and 3, controllable elements such as hydrogen energy storage and battery energy storage are added. At this time, the flexibility margin of the energy module is effectively increased through the integration of resources. In scenario 2, the flexibility margin requirements of the module in terms of energy storage and output are supplemented through the combination of fuel cell and electrolytic cell. The operation requirement is to avoid frequent startup and shutdown of the unit on the basis of full supply of load and consumption of renewable energy. In scheme 3, the battery energy storage and gas unit further supplement the flexibility margin requirements in climbing power and unit output required by the module, further improving the flexibility margin level of the system. Scenario 2 and scenario 3 supplement corresponding units based on flexibility margin index. It can be seen from Table Ⅱ and table Ⅲ that through the comparison of various scenarios, the integration of controllable resources effectively increases the flexibility margin of the energy module.

141As shown in Figures 9 and 10, due to the high proportion of renewable energy connected to the energy module, its strong volatility leads to insufficient up regulation or down regulation capacity at many operating points. For scenario 2, in the 5-33hours interval, there is no wind at night, the fan and photovoltaic output are insufficient, and the climbing power and unit output in the energy module are 13 insufficient, which cannot provide sufficient flexibility resources. During this period, the maximum climbing power shortage is 3.6MW/min, the maximum output power shortage is 18.5MW, and the Maximum supply power shortage is 4.27MWh. In the 163-205hour interval, the output of fan and photovoltaic decreases sharply, the SOC of hydrogen energy storage is maintained at a low level, and the fuel cell cannot provide enough electric energy, so the normal operation of the system can only be maintained through load shedding.

142The maximum value of climbing power shortage during this period is 4.67MW/min, the maximum value of output power shortage is 20.7MW, and the maximum value of power supply shortage is 36.27MWh. In the 42-46, 115, 155-165, 230, 300-310, 325-355 hours interval, energy modules cannot fully absorb renewable energy. These parts of the electricity discarded account for 7% of the total renewable energy power generation. The flexibility margin index of scenario 2 is EIR=5.631MW/min, EIO=26.173MW, EIC=32.089MWh. For Scenario 3, on the basis of Scenario 2, the combination of battery energy storage and gas generator sets makes up for the corresponding flexibility margin deficiency.

143It can be seen from Figure 7 that the battery energy storage has the ability to respond quickly. The rapid discharge supplements the system's demand in the climbing power dimension, while the gas-fired unit supplements the lack of output power. Scenario 3 can basically meet the upward flexibility requirements of energy modules, but in the 44, 114-115, and 155-160hours interval, there are still situations where renewable energy power generation cannot be fully absorbed. The power discarded in these parts accounts for 1.5% of the total renewable energy power generation. The flexibility margin index of scenario 3 is EIR=0MW/min, EIO=1.1MW, EIC=3.62MWh. To avoid the abandonment and load shedding of renewable energy sources, we can invest in flexibility resources with corresponding adjustment capabilities and adjustment directions based on the calculation results.

The influence of renewable energy penetration rate on the flexibility margin of energy block

144Compared Renewable energy has the characteristics of intermittent and volatility, and a high proportion of renewable energy access will have a certain impact on the flexibility of the system. According to scenario 3, study the impact of different access ratios of renewable energy on the flexibility margin, gradually increase the ratio of wind power and photovoltaic access from 0% to 50%, and calculate the abandonment rate of renewable energy by formula (46). The flexibility margin of the system under different penetration rates is shown in Table 4.

145With the continuous improvement of renewable energy penetration, the flexibility margin of energy module gradually decreases. As can be seen from Figure 11, there is a threshold for renewable energy penetration. When the access ratio exceeds 40%, the flexibility margin index of each dimension of the energy module shows a rapid growth trend. The comparison between scenario 2 and scenario 3 shows that PV requires higher flexibility margin than wind power. However, due to the intermittent characteristics of wind power generation, the demand for flexibility margin in the dimension of climbing power is high. The comparison of different scenarios shows that when the renewable energy penetration rate exceeds 40%, the EIC and EIO indicators increase significantly. When the permeability exceeds 60%, the EIC index increases significantly. It can be seen that the deficiency of unit output and power supply index has a greater impact on the system flexibility margin.

146When analyzing system flexibility margin, analysis indicators of different dimensions are required. According to the analysis results, increase the corresponding flexibility margin resources in each dimension to ensure the economy of the system while maintaining the balance of system flexibility margin as far as possible.

Conclusion

147By analyzing the power exchange characteristics of heterogeneous energy sources, this paper establishes the homogenization model of various flexibility margin resources. On this basis, the energy block model of electro hydrogen coupling is established. The flexibility margin evaluation index is proposed from the dimension of system operation, and the flexibility margin of the module is analyzed from the three dimensions of climbing power, unit output and power supply. The model predictive control algorithm is introduced to solve the problem, and then the system flexibility margin is quantitatively analyzed. The conclusions are as follows: 1)By analyzing the power exchange characteristics of heterogeneous energy, a homogenization model is established based on the energy balance relationship of each unit of the energy module. The complex model of multiple physical fields is simplified and equivalent, which lays a model foundation for the on-line calculation of flexibility margin.

1482)In this paper, an optimal calculation method of energy block power balance based on MPC is proposed, and the flexibility margin of electro hydrogen coupling energy block is analyzed. In this paper, the energy block balance criterion and flexibility margin index of electro hydrogen coupling are proposed from the three dimensions of climbing, power and energy. Through the analysis of the flexibility margin of the operation point, the deficiency of the flexibility margin of the system is judged, the flexibility margin analysis of the energy module is better realized, and suggestions are provided for the system scheduling.

1493)The simulation results show that the flexibility index of each operation point is different due to the different intermittent and fluctuation distribution of the energy module at each time. At the same time, nodes and moments with insufficient flexibility margin can be found according to the drawing of flexibility margin envelope of operating points. The indicators proposed in this paper can help the system coordinate the configuration and operation of flexibility resources. 4)Through the analysis of permeability, it can be seen that there is a threshold of renewable energy permeability. When the threshold is exceeded, the flexibility margin index of each dimension of the energy module shows an increasing trend. Compared with wind power, PV has higher requirements on flexibility margin. This paper only models from the steady-state dimension, and does not involve the transient model of the system and the capacity matching of the wind solar hydrogen system. In the follow-up research, many technical and economic factors such as hydrogen storage and hydrogen sales will be mainly considered. Besides, it is also interesting to investigate the planning and energy management of microgids and integrated energy system incorporating the presented electric-hydrogen coupling energy block [29,30]. employed by School of Electrical Engineering, Northeast Electric Power University. All authors declare no other competing interests.

Author Contributions

150Zijiao Han is mainly responsible for technical aspects, conception and design of manuscripts. Shun Yuan investigated the homogenization modeling and calculated the main methods. Yannan Dong contributed to the flexibility margin analysis. Shaohua Ma provides valuable help for calculation. Yudong Bian and Xinyu Mao participated in the production of the paper chart and the preparation of some contents.

Funding

151This study received funding from "Liaoning BaiQianWan Talents Program" and Liaoning Electric Power Co., Ltd. science and technology project (2021YF-81) of State Grid. The funder was not involved in the study design, collection, analysis, interpretation of data, the writing of this article or the decision to submit it for publication. All authors declare no other competing interests.

Acknowledgments

152Thanks for The Project is sponsored by "Liaoning BaiQianWan Talents Program" and Liaoning Electric Power Co., Ltd. science and technology project (2021YF-81) of State Grid, which funded us, and also to the experts and scholars who have helped us in the process of scientific research.

Reference

153Transactions of China Electrotechnical Society,2018,33 (14) Flowchart of the flexibility margin calculation method Figure 5 The value of load, photovoltaic plant output and wind farms output. Figure 6 The Simulation Analysis of scenario 2. Figure 7 The Simulation Analysis of scenario 3. Figure 8 Flexibility margin analysis of scenario 1. Figure 9 Flexibility margin analysis of scenario 2. Figure 10 Flexibility margin analysis of scenario 3. Figure 11 Renewable energy abandonment rate.

참고문헌 29건

  1. Hybrid wind/photovoltaic energy system developments: Critical review and findings Renewable and Sustainable Energy Reviews · Elsevier BV · 2015 10.1016/j.rser.2015.08.008
  2. Analyzing operational flexibility of electric power systems International Journal of Electrical Power & Energy Systems · Elsevier BV · 2015 10.1016/j.ijepes.2015.02.028
  3. Model Predictive Control Journal of Control Science and Engineering · Hindawi Publishing Corporation · 2012 10.1155/2012/240898
  4. Analysis of a small wind-hydrogen stand-alone hybrid energy system Applied Energy · Elsevier BV · 2009 10.1016/j.apenergy.2008.10.024
  5. Operational costs induced by fluctuating wind power production in Germany and Scandinavia IET Renewable Power Generation · Institution of Engineering and Technology · 2008 10.1049/iet-rpg:20070075
  6. Evaluating and Planning Flexibility in Sustainable Power Systems IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2012 10.1109/tste.2012.2212471
  7. Operational Impacts of Wind Generation on California Power Systems IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2009 10.1109/tpwrs.2009.2016364
  8. Evaluation of Power System Flexibility IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2012 10.1109/tpwrs.2011.2177280
  9. Optimization of operating parameters in a hybrid wind–hydrogen system using energy and exergy analysis: Modeling and case study Energy Conversion and Management · Elsevier BV · 2015 10.1016/j.enconman.2015.10.003
  10. Performance analysis of a stand-alone hybrid renewable energy power system- a simulation study 2015 10.1109/indicon.2015.7443674
  11. A Survey on Power System Flexibility and Its Evaluations Power System Technology · Power System Technology Press · 2014
  12. Power source flexibility evaluation considering renewable energy generation uncertainty Dianli zidonghua shebei · Electric Power Automation Equipment Press · 2015
  13. Quantified analysis method for operational flexibility of active distribution networks with high penetration of distributed generators Applied Energy · Elsevier BV · 2019 10.1016/j.apenergy.2019.02.008
  14. Improving operational flexibility of integrated energy system with uncertain renewable generations considering thermal inertia of buildings Energy Conversion and Management · Elsevier BV · 2020 10.1016/j.enconman.2020.112526
  15. Optimal Planning for Electricity-Hydrogen Integrated Energy System Considering Power to Hydrogen and Heat and Seasonal Storage IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2020 10.1109/tste.2020.2970078
  16. Modelling of large‐sized electrolysers for real‐time simulation and study of the possibility of frequency support by electrolysers IET Generation Transmission & Distribution · Institution of Engineering and Technology · 2020 10.1049/iet-gtd.2019.1364
  17. Simultaneous optimization of renewable energy and energy storage capacity with hierarchical control CSEE Journal of Power and Energy Systems · China Electric Power Research Institute · 2020 10.17775/cseejpes.2019.01470
  18. Optimal Scheduling of an Isolated Microgrid With Battery Storage Considering Load and Renewable Generation Uncertainties IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2018 10.1109/tie.2018.2840498
  19. Optimal Stochastic Operation of Integrated Electric Power and Renewable Energy With Vehicle-Based Hydrogen Energy System IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2021 10.1109/tpwrs.2021.3058561
  20. Analysis of key issues in electric-hydrogen coupled operation E3S Web of Conferences · EDP Sciences · 2021 10.1051/e3sconf/202124801055
  21. Coordinating Flexible Demand Response and Renewable Uncertainties for Scheduling of Community Integrated Energy Systems With an Electric Vehicle Charging Station: A Bi-Level Approach IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2021 10.1109/tste.2021.3090463
  22. Power-Rating Balance Control and Reliability Enhancement in Mismatched Photovoltaic Differential Power Processing Systems IEEE Transactions on Power Electronics · Institute of Electrical and Electronics Engineers · 2021 10.1109/tpel.2021.3094220
  23. Optimal Scheduling of Isolated Microgrids Using Automated Reinforcement Learning-Based Multi-Period Forecasting IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2021 10.1109/tste.2021.3105529
  24. Optimal Scheduling of Integrated Demand Response-Enabled Community-Integrated Energy Systems in Uncertain Environments IEEE Transactions on Industry Applications · Institute of Electrical and Electronics Engineers · 2021 10.1109/tia.2021.3106573
  25. Two-way dynamic pricing mechanism of hydrogen filling stations in electric-hydrogen coupling system enhanced by blockchain Energy · Elsevier BV · 2021 10.1016/j.energy.2021.122194
  26. Stochastic optimal scheduling of demand response-enabled microgrids with renewable generations: An analytical-heuristic approach arXiv (Cornell University) · Cornell University · 2021 10.1016/j.jclepro.2021.129840
  27. Hierarchical stochastic scheduling of multi-community integrated energy systems in uncertain environments via Stackelberg game Applied Energy · Elsevier BV · 2021 10.1016/j.apenergy.2021.118392
  28. Analyzing operational flexibility of electric power systems Power Systems Computation Conference · 2014 10.1109/pscc.2014.7038383
  29. Empowering Variable Renewables – Options for Flexible Electricity Systems OECD eBooks · Organization for Economic Cooperation and Development · 2009 10.1787/9789264077201-en