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

Distributionally robust optimization scheduling of port energy system considering hydrogen production and ammonia synthesis

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

기본 정보

저자
  1. Xiaoou Liu — China Power Engineering Consulting Group CO.,LTD., Ande Road 65, Xicheng District, Beijing, 100120, China
DOI
10.1016/j.heliyon.2024.e27615
저널
Heliyon
발행년도
2024
발행기관
Elsevier BV
피인용수
13
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.heliyon.2024.e27615
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W4392452977

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(5) 연료전지용 수분제어장치(가습기), (6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
hydrogen production, water electrolysis, ammonia synthesis, P2H2A, scheduling method
판단 근거
본 논문은 수전해를 통한 수소 생산 및 암모니아 합성 시스템의 최적 스케줄링을 다루고 있습니다. 이는 코오롱인더스트리의 수소연료전지(PEMFC) 사업과 직접적인 소재 연구는 아니나, 수소 생산 및 활용 시스템의 운영 최적화 측면에서 간접적인 연관성이 있습니다.
R&D 활용 포인트
수소 생산 및 암모니아 합성 공정의 에너지 효율 최적화 및 재생에너지 변동성에 대응하는 시스템 운영 모델링 기술로 활용 가능합니다.
평가 입력
섹션 본문 65,649자 중 30,032자 발췌

초록

In order to effectively address the uncertainty risks of port energy system caused by intermittence and fluctuation of renewable energy, this paper proposes a scheduling method for port energy system based on distributionally robust optimization (DRO) considering ammonia synthesis after hydrogen production by water electrolysis (P2H2A), and uses real data from Tianjin Port for example analysis. The calculation results show that 1 h selected for the scheduling interval of P2H2A is reasonable, it can ensure that the ammonia synthesis reaction transitions smoothly to the new steady state, and the temperature and pressure of the ammonia converter meet safety constraints. The two-stage scheduling of port energy system based on DRO can be divided into pre-scheduling in the day-ahead stage and rescheduling in the intraday stage, which can improve the capacity of anti-risk for stochastic optimization and overcome the conservatism of robust optimization, and consider economy and robustness. Moreover, the rescheduling decision can be transformed to a prediction error function, the result of two-stage scheduling based on DRO is the pre-scheduling result, which is between the cost of stochastic optimization and robust optimization. As the Wasserstein distance-based sphere radius increases, the pre-scheduling cost of DRO gradually deviates from risk neutral stochastic optimization and leans towards risk averse robust optimization. When the Wasserstein distance-based sphere radius remains constant, the variance gradually decreases as the number of scenarios increases, which can promote the Wasserstein distance-based fuzzy set to converge to the true distribution. When the number of scenarios is greater than 15, the pre-scheduling cost will no longer fluctuate significantly, and the calculation time is in the range of 1200 s-6600 s. It can meet the demands of day-ahead scheduling calculation time. Therefore, the scheduling model has outstanding advantages in the computing time to improve the flexibility and economy of Tianjin Port's energy system scheduling, considering ammonia synthesis after hydrogen production using renewable energy.

본문 68,855자

본문 펼치기
In order to effectively address the uncertainty risks of port energy system caused by intermittence and fluctuation of renewable energy, this paper proposes a scheduling method for port energy system based on distributionally robust optimization (DRO) considering ammonia synthesis after hydrogen production by water electrolysis (P2H2A), and uses real data from Tianjin Port for example analysis.The calculation results show that 1 h selected for the scheduling interval of P2H2A is reasonable, it can ensure that the ammonia synthesis reaction transitions smoothly to the new steady state, and the temperature and pressure of the ammonia converter meet safety constraints.The two-stage scheduling of port energy system based on DRO can be divided into pre-scheduling in the day-ahead stage and rescheduling in the intraday stage, which can improve the capacity of anti-risk for stochastic optimization and overcome the conservatism of robust optimization, and consider economy and robustness.Moreover, the rescheduling decision can be transformed to a prediction error function, the result of two-stage scheduling based on DRO is the pre-scheduling result, which is between the cost of stochastic optimization and robust optimization.As the Wasserstein distance-based sphere radius increases, the pre-scheduling cost of DRO gradually deviates from risk neutral stochastic optimization and leans towards risk averse robust optimization.When the Wasserstein distance-based sphere radius remains constant, the variance gradually decreases as the number of scenarios increases, which can promote the Wasserstein distance-based fuzzy set to converge to the true distribution.When the number of scenarios is greater than 15, the pre-scheduling cost will no longer fluctuate significantly, and the calculation time is in the range of 1200 s-6600 s.It can meet the demands of day-ahead scheduling calculation time.Therefore, the scheduling model has outstanding advantages in the computing time to improve the flexibility and economy of Tianjin Port's energy system scheduling, considering ammonia synthesis after hydrogen production using renewable energy. Introduction Ports undertake 80% of global transportation tasks, and produce 3%-5% of global CO 2 , 14%-15% of NO X and SO X [1], which will cause adverse impacts on the environment.Under the goal of emission peak and carbon neutrality, China is accelerating the construction of green and low-carbon ports, promoting port electrification reconstruction, and gradually replacing fossil fuels with renewable clean energy source [2].Taking Tianjin Port as an example, as an important foreign trade port in Tianjin, it has speeded up their strategy to construct ecological coastline and green port in recent years.Tianjin Port attaches great importance to the E-mail address: liuxiaoou126@126.com.the power of auxiliary equipment c P2H the power coefficient of electrolyzers Q H2 t the hydrogen production volume at time t r P2H max the upper limit of ramp rate for P2H Q NH3 t the ammonia production volume at time t Q NH3 max , Q NH3 min the upper and lower limits of ammonia production volume r NH3 max , r NH3 min the upper and lower limit of ramp rate for ammonia synthesis P NH3,0 the fixed power of ammonia production c NH3 the constant coefficient of ammonia production the efficiency of AC L AC max the upper limit of the cooling power for AC H GB t the thermal power of the GB at time t G GB t the gas consumption of GB at time t η GB the efficiency of GB H GB max the upper limit of the thermal power for GB P GT t , H GT t the electrical power and thermal power of the GT at time t η GT,p , η GT,h the efficiency of electric power and heat generation for GT P GT max , P GT min the upper and lower limits of the electrical power for GT r GT max the upper limit of the ramp rate for GT U GT t the on/off status of GT at time t T GT min the lower limit of the time span of start and stop for GT c T the coefficient vector of the pre-scheduling decision variable x X the set of pre-scheduling decision variables x P e,inj N e -dimensional nodal injection power column vector sup(⋅) the supremum function D the true distribution of prediction errors l a fuzzy set ω u the prediction error of renewable energy power generation Q(x, ω u ) the rescheduling cost A the coefficient matrix of the constraint conditions in the pre-scheduling stage b the parameter vector of the constraint conditions in the pre-scheduling stage E D ( • ) mathematics expectation X. Liu comprehensive recovery and utilization of oilfield associated gas, actively implements the "from coal to gas" and "from oil to gas" projects, and has achieved significant environmental protection efforts.By building rooftop photovoltaic (PV) and offshore wind turbine (WT), Tianjin Port builds a integrate energy system wherein renewable energy constitutes the main body of energy, supplemented by natural gas distributed energy system, and coordinated with municipal power grid (MPD), in order to optimize the synthetical efficiency for low-carbon energy utilization.However, enhancing the capacity of the large-scale renewable energy source utilization requires the dispatching of a large amount of diversified flexibility resources in ports [3].Since the renewable energy have the intrinsic intermittence and fluctuation, their integration into the port will present a great challenge on the operating reliability of port energy system [4].Therefore, the rational integration of diversified flexibility resources in ports, the optimal scheduling of port energy systems, and the improvement of anti-risk ability have become a key problem to be solved urgently. Deficiency of current research In the context of emission peak and carbon neutrality, as a low-carbon and clean secondary energy, hydrogen energy is a green energy carrier that can enhance the capacity of renewable energy utilization and promote the low-carbon transition of port energy system.Hydrogen is an industrial raw material for synthesizing ammonia, which is one of the main methods for the large-scale consumption of green hydrogen [5].Demonstration projects have realized the commissioning and operation [6], and the number y(x, ω u ) the decision variable in the rescheduling stage d T the coefficient vector Z the coefficient matrix of the constraint conditions in the rescheduling stage g(ω u ) the parameter vector D e the empirical distribution L(Ξ) all probability distributions in support set Ξ M the uncertain variables the sale price of ammonia c pr,e,s t , P sell t the price and quantity that port sells electricity to municipal power grid c pr,e,b t , P buy t the price and quantity that port purchases electricity from municipal power grid c pr,g t the price of nature gas c pr,CO2 the carbon price δ g,CO2 , δ p,CO2 the carbon emissions factors of nature gas and municipal power grid c vary the power fluctuation penalty coefficient of municipal power grid P vary t the power fluctuation of municipal power grid caused by renewable energy QNH3 t the adjustment value of ammonia production volume at time t Psell t , Pbuy t the adjustment value of the quantity that port sells electricity to municipal power grid, and port purchases electricity from municipal power grid GGT t , GGB t the adjustment values for gas consumption of gas turbine and gas fired boiler c pr,re , c pr,load the penalty coefficients for the power curtailment of renewable energy power generation and load shedding P cut,wt t , P cut,pv t , P cut,load t the quantity for the power curtailment of wind turbine, photovoltaic and load shedding P MPG max the upper limit of exchange power between port and municipal power grid Opening or closing instructions for branches in power/heat/gas system and energy station X. Liu of projects initiated has rapidly increased in the world [7].That can in turn create a larger install base of renewable energy power generation and hydrogen production by electrolysis.Using green hydrogen instead of gray hydrogen as feed gas in the ammonia synthesis, accelerating the renewable energy base construction of the green port and hydrogen city, both have become an important development direction for carbon emission reduction in Chinese ports [8].In the long run, realizing green production and increasing productivity of synthetic ammonia will help reduce industry trade deficit. Psell Therefore, the ammonia synthesis after hydrogen production using renewable energy is expected to provide a large amount of flexible resources for the port energy system.It should adjust to the intermittence and fluctuation of renewable energy power generation, and has the ability to be the flexible and adjustable load [9,10].With the technology development and engineering construction of green hydrogen, the technology of power to hydrogen (P2H) and ammonia synthesis after hydrogen production by water electrolysis (P2H2A) have become research hotspots.The current research on the load regulation characteristics of P2H mainly focuses on technical and economic aspects [11], scheduling control [12], and operation modes [13].Compared with P2H, the research on flexible regulation characteristic of P2H2A is relatively limited.A joint scheduling model is proposed based on historical electricity prices [14], considering electricity, hydrogen and ammonia.An optimized scheduling method is proposed for ammonia synthesis after Hydrogen production using wind power [15], focusing on analyzing the impact of the sitting and sizing on the operating costs of ammonia plant.An energy management strategy is proposed for industrial parks about the integrated utilization of electricity, hydrogen and ammonia [16].A P2H2A optimization scheduling model is proposed based on day-ahead electricity price forecasting [17], in order to evaluate the impact of parameter variation of synthetic ammonia on revenue.However, the above references were deterministic optimization methods based on the forecasting of electricity prices or renewable energy, less related to the schedulability analysis of P2H2A under uncertainty.Although hydrogen storage tank can be installed between the hydrogen production and ammonia synthesis sections to suppress hydrogen flow fluctuation, the capacity of hydrogen storage tank is limited by investment costs and safety constraints.Therefore, it is necessary to study the potentiality analytical methods for P2H2A to be the flexible and adjustable load, in order to provide a quantitative reference for P2H2A taking in renewable energy utilization and the implementation of power demand balance. Psell The port can achieve the large-scale transmission, grid-connected, and utilization of offshore renewable energy power generation.Therefore, offshore renewable energy power generation integration to the port with high penetration will present a great uncertainty risk, which cannot be ignored.At present, the analysis methods for uncertainty problems in power-gas coupled system include stochastic optimization [18], and robust optimization [19,20].As the number of scenarios increases, stochastic optimization methods may cause dimension disaster, and lead to computational difficulties.Due to the low probability of the worst-case scenario occurring, the robust optimization results are too conservative.In order to overcome the limitations and shortcomings of the above two methods, researches are committed to the research of distributionally robust optimization (DRO) methods [21].DRO can generate a fuzzy set containing all probability distributions based on sample data of uncertain variables.Under the scenario where the prediction error of uncertain variable follows the worst-case probability distribution in a fuzzy set, the scheduling strategy can be determined.Compared with stochastic optimization, DRO has stronger robustness, and it does not need to the accurate distributed function of uncertain variables during calculation [22].DRO considers the probability distribution information of uncertain variables to avoid overly conservative scheduling strategy [23].DRO has been applied in other fields [24,25], but there is relatively little research on it for port energy systems.Therefore, it is necessary to conduct research on optimal dispatch of port energy system with DRO in response to the uncertainty of offshore renewable energy power generation. Structure of thesis In summary, the hydrogen energy is a green energy carrier that can enhance the capacity of renewable energy utilization and promote the low-carbon transition of port energy system, and is an important industrial raw material for synthesizing ammonia.It can be expected to participate in the scheduling of port energy system as flexible resources.Therefore, it is necessary to study the potentiality analytical methods for P2H2A to be the flexible and adjustable load, in order to provide a quantitative reference for P2H2A taking in renewable energy utilization and the implementation of power demand balance.In order to overcome the limitations and shortcomings of stochastic optimal dispatch and robust optimal dispatch, the DRO is necessary to be used in optimal dispatch of port energy system with the property of renewable energy uncertainty. Structure of thesis To make up the existing research insufficiency, this paper proposes a scheduling method for port energy system based on distributionally robust optimization considering ammonia synthesis after hydrogen production using renewable energy, and uses real data from Tianjin Port for example analysis.Firstly, to describe the capability of load regulation for ammonia synthesis after hydrogen production by water electrolysis (P2H2A), an overall architecture model of P2H2A was constructed in Part II.The model of P2H2A considers the safety constraints of hydrogen production and ammonia synthesis chemical processes, which can make P2H2A serve as a flexible resource for distributionally robust optimization scheduling of port energy systems while ensuring safety.Secondly, the Wasserstein distance is used to characterize the uncertain fuzzy set in Part III, which is consist of the probability distribution of renewable energy power generation.By fitting the probability distribution of prediction error of renewable energy power generation, various scenarios of its output interval under different confidence levels can be obtained.Thirdly, for the port energy system with P2H2A, DRO is used to build a two-stage scheduling model considering Wasserstein distance-based fuzzy set in Part IV.The model can be converted into a mixed integer linear programming model for being easy to solve by using the strong duality theorem.Finally, example analysis is conducted based on the real data of Tianjin Port in Part V.The results show that P2H2A can significantly reduce the carbon emission and improve the flexibility for the port energy system.The proposed model not only considers the economy of the port energy system, but also further ensures the capability of anti-risk and robustness under the uncertainty of renewable energy power X. Liu generation. Main innovation of paper This paper proposes a scheduling method for port energy system based on distributionally robust optimization considering hydrogen production and ammonia synthesis, and the main innovations are as follows. Main innovation of paper (1) A low-carbon energy architecture of port is established, which may be divided into three structural layers, such as the energy input layer, energy conversion and storage layer, and energy output layer.The system structure of ammonia synthesis after hydrogen production by water electrolysis is proposed, which can participate the operation of port energy system as low-carbon and flexible resources. Main innovation of paper (2) The model of the ammonia synthesis section has been reasonably simplified.The scheduling model for P2H2A is presented, which can make P2H2A adapt to the uncertain of renewable energy power generation.It can help to settle the accommodation problem of large-scale renewable energy power generation, and improve the economy and flexibility of energy system in the port. Main innovation of paper (3) Considering the risks brought by the uncertainty of renewable energy power generation, the Wasserstein distance is used to characterize the uncertain fuzzy set of uncertainty parameter prediction errors.The Wasserstein distance-based fuzzy set independent of prior knowledge is data-driven, and can make the DRO model has good operation ability, and can be less conservative.(4) DRO is used to build a two-stage scheduling model of port energy system.The scheduling strategy based on DRO may enhance the anti-risk ability of scheme, and avoid the impact of overly conservative on the scheme economic at the same time.The strong duality theorem is used to reconstruct the model, which is equivalent to the mixed integer linear programming problem, in order to make the problem easy to solve. Port energy system structure and model Vigorously developing new energy, mainly wind power and photovoltaic, is the necessary path for port energy saving and emission reduction.As a low-carbon and clean secondary energy source, hydrogen energy is a green energy carrier that can increase the capacity of renewable energy utilization and promote low-carbon transition of port energy structure.Hydrogen is an industrial raw material for synthesizing ammonia, which is one of the main methods for the large-scale consumption of green hydrogen.Tianjin Port has the conditions to build a green energy hub with ammonia and hydrogen.Therefore, it is planned to build an integrated energy system in the port, mainly based on renewable energy power generation, supplemented by natural gas distributed energy system, and coordinated with municipal power grid. Port energy system structure and model The energy structure of port is shown in Fig. 1.The energy input layer includes photovoltaic (PV), wind turbine (WT), municipal power grid (MPD), natural gas source, etc.The energy conversion and storage layer includes ammonia synthesis after hydrogen production by water electrolysis (P2H2A), electric cooler (EC), absorption cooler (AC), gas turbine (GT), gas fired boiler (GB), heat energy storage device (HES), etc. P2H2A consists of an electrolyzer, N 2 production via air separation (AS), hydrogen storage tank (HST), and ammonia converter.The energy output layer includes electric/cooling/heating load and liquid ammonia.Energy conversion equipment can achieve reliable supply of energy demand and improve energy efficiency through multi-energy complementary Fig. 1.Energy structure of port. Port energy system structure and model X. Liu mode.P2H2A can not only improve the capacity of renewable energy utilization, but also bring considerable economic benefits to the port.HES and GB can achieve decoupling heat-power of GT, the peak regulating capacity of GT can be increased.HST can achieve energy transfer for long time scales, and are suitable for stabilizing the daily, weekly, and even seasonal electricity fluctuations.Therefore, it is necessary to build a low-carbon, clean energy system to promote the sustainable development of port. Modeling of ammonia synthesis after hydrogen production by water electrolysis Ammonia synthesis after hydrogen production using renewable energy is a deep coupling between power system and chemical system, has the ability to adjust their energy demand to the fluctuation of renewable energy.It involves the complex regulation process of safe, robust and coordination for multiple systems of renewable energy power generation, hydrogen production and ammonia synthesis.The technology of alkaline water electrolysis is usually used in the P2H, which has the advantages of mature state of art, lower cost and long life.The ammonia synthesis section usually adopts the Harbor-Bosch process [26], which is consist of ammonia converter, ammonia separation, circulation recovery, etc.The principle of ammonia synthesis is shown in Eq. ( 1).The reaction principle of P2H2A is shown in Fig. 2. Modeling of ammonia synthesis after hydrogen production by water electrolysis The overall process of P2H2A is shown in Fig. 2. T and p represent the temperature and pressure of each stage, respectively.H 2 and N 2 are respectively produced by the P2H section and the air separation section.The ammonia synthesis section is an exothermic reaction.The ammonia converter operates in a high-temperature and high-pressure environment to ensure catalyst activity and reaction rate.The raw gas needs to be pressurized through multi-stage compression, and heat exchanged with the high-temperature mixed gas at the outlet of ammonia converter to increase the gas temperature.After the reaction is completed, liquid ammonia products can be obtained from the mixed gas after heat exchange, cooling, and ammonia separation section.The unreacted raw gas will be recompressed and recycled back into the ammonia converter to continue the reaction. P2H model The power of P2H usually includes the power of electrolyzers and the power of auxiliary equipment [27].The load rate of a single electrolyzer is about 20%-100%.Through the strategy combination of unit startup and shutdown and load distribution, the load rate of multiple electrolyzers can continuously change within the range of 5%-100% [27], and the energy conversion efficiency is close to linear.Therefore, the linear function between power consumption and hydrogen production volume for P2H section is shown in Eq. ( 2). P2H model In formula, P P2H t is the power consumption of P2H at time t.P P2H max is the upper limit of P2H power.P P2H,0 is the power of auxiliary equipment, which is taken as 0.9% of P P2H max .c P2H is the power coefficient of electrolyzers, taken as 0.0048 MWh/Nm 3 .Q H2 t is the hydrogen production volume at time t.r P2H max is the upper limit of ramp rate for P2H [28], taken as 50% × P P2H max per minute. Ammonia synthesis model The ammonia synthesis section can adjust the ammonia production volume to the fluctuation of hydrogen flow.Due to constraints such as thermal equilibrium and catalyst activity [29], the ammonia production volume should be maintained within a given range, as shown in Eq. ( 4).Ammonia separation, circulation recovery, compression, and other processes all need power consumption.The linear function between power consumption P NH3 t and ammonia production volume for ammonia synthesis section is shown in Eq. ( 6).Fig. 2. Reaction principle of ammonia synthesis after hydrogen production by water electrolysis. Ammonia synthesis model In formula, Q NH3 t is the ammonia production volume at time t.Q NH3 max and Q NH3 min are the upper and lower limits of ammonia production volume, Q NH3 min is taken as 20% of Q NH3 max .r NH3 max and r NH3 min are is the upper and lower limit of ramp rate for ammonia synthesis, which are taken as 15% and − 25% of Q NH3 max respectively.P NH3,0 is fixed power.c NH3 is a constant coefficient. N 2 production and storage equipment model Due to fluctuations in renewable energy power generation, there is fluctuation in hydrogen production volume.The fluctuation of hydrogen flow can be smoothly adjusted by hydrogen storage tank (HST), in order to meet the stability requirements of hydrogen flow used in ammonia synthesis.The state of charge (SOC) for HST S HST t and the power of the hydrogen compressor P H2,C t are shown in Eqs. ( 7)-( 9) [30]. N 2 production and storage equipment model VOL HST (7) N 2 production and storage equipment model In formula, Q H2,out t is the outlet flow rate of HST.η HST is the efficiency of hydrogen storage/release for HST.VOL HST is the installed capacity of HST. S HST max and S HST min are the upper and lower limits of SOC for HST, respectively.Q H2 max is the upper limit of the flow for HST. N 2 production and storage equipment model M H2 is the molar mass of hydrogen.R is the ideal gas constant.η c is the compressor efficiency, which is taken as 60%. N 2 production and storage equipment model In addition, the N 2 required for ammonia synthesis can be obtained through air separation (AS).The process requires multi-stage compressors to gradually pressurize the air from atmospheric pressure, and the power consumption is shown in Eq. (10). N 2 production and storage equipment model In formula, Q Air t is the air flow rate at time t.M Air is the molar mass of air.Compared to P2H, the power consumption of hydrogen storage and N 2 production processes is smaller.Compared with the power consumption of P2H2A, the power consumption changes caused by temperature and pressure changes in Eqs. ( 9) and ( 10) can be approximately ignored.For simplicity, this paper assumes that temperatures T 1 , T 4 , and pressures p 1 , p 2 , p 3 , and p 4 are constant. N 2 production and storage equipment model According to the mass balance relationship of the ammonia synthesis reaction, the relationship between the ammonia production volume Q NH3 t and the outlet flow rate of HST Q H2,out t is shown in Eq. (11). N 2 production and storage equipment model Considering that heat energy storage (HES) device is similar to HST, the model of HES is briefly described as follows. N 2 production and storage equipment model In formula, L EC t is the cooling power of the electric cooler (EC) at time t.P EC t is the electrical power of EC at time t.η EC is the efficiency of EC.L EC max is the upper limit of the cooling power for EC. Absorption cooler X. Liu Absorption cooler In formula, L AC t is the cooling power of the absorption cooler (AC) at time t.P AC t is the electrical power of AC at time t.η AC is the efficiency of AC.L AC max is the upper limit of the cooling power for AC. Gas fired boiler In formula, H GB t is the thermal power of the gas fired boiler (GB) at time t.G GB t is the gas consumption of GB at time t.η GB is the efficiency of GB.H GB max is the upper limit of the thermal power for GB. Gas turbine In formula, P GT t and H GT t are the electrical power and thermal power of the gas turbine (GT) at time t.η GT,p and η GT,h respectively refer to the efficiency of electric power and heat generation for GT.P GT max and P GT min are the upper and lower limits of the electrical power for GT.r GT max is the upper limit of the ramp rate for GT.U GT t indicates the on/off status of GT at time t.U GT t = 1 means that GT is operation, U GT t = 0 means that GT is shutdown.T GT min is the lower limit of the time span of start and stop for GT. Distributionally robust optimization theory According to Eq. ( 21), the optimization scheduling model is a function of the prediction error of renewable energy.Due to the limited sample data of renewable energy prediction error, the real distribution of renewable energy prediction error cannot be directly ascertained.Therefore, this paper does not directly obtain the real distribution.But instead, an empirical distribution is established to be used as an estimate of the real distribution, and empirical distribution is founded on past data records of renewable energy prediction error.Due to the limitations of past data records, this section uses the Wasserstein distance to construct a fuzzy set of uncertainty parameter prediction errors.The fuzzy set can be regarded as a sphere with a radius of a, where real distribution mainly distributed around the empirical distribution.The sphere contains all possible real distribution of renewable energy prediction error.The probability distribution of renewable energy historical data mostly fluctuates around the real distribution.The probability distribution fuzzy set of Wasserstein distance focuses more on describing the difference between the real distribution and the empirical distribution.The Wasserstein distance-based fuzzy set independent of prior knowledge is data-driven, and can ensure that the unknown distribution converges to the true distribution.Therefore, it has strong adaptability to the problem studied in this paper, and can make the distributionally robust optimization (DRO) model has good operation ability, and can be less conservative. Distributionally robust optimization model A scheduling method for port energy system in this paper is built based on DRO.The Wasserstein distance-based fuzzy set independent of prior knowledge is data-driven, and can ensure that the unknown distribution converges to the true distribution.It has strong adaptability to the problem studied in this paper, and can make the DRO model has good operation ability, and can be less conservative.Referring to the common two-stage DRO model [31], the two-stage scheduling of port energy system based on DRO can be divided into pre-scheduling in the day-ahead stage and rescheduling in the intraday stage, as shown in Eq. (21).Therefore, a two-stage optimization approach can be suitable for the problem at hand, and would not adversely affect other aspects of the model. Distributionally robust optimization model In formula, c T is the coefficient vector of the pre-scheduling decision variable x.X is the set of pre-scheduling decision variables x. sup (⋅) is the supremum function.D is true distribution of prediction errors.l is a fuzzy set.ω u is an uncertain parameter, which is the prediction error of renewable energy power generation in this paper.Q(x, ω u ) is the rescheduling cost incurred due to ω u .A is the coefficient matrix of the constraint conditions in the pre-scheduling stage.b is the parameter vector of the constraint conditions in the pre-scheduling stage; E D ( • ) indicates mathematics expectation. Distributionally robust optimization model Eq. ( 21) is to minimize the sum of the pre-scheduling cost c T x in the day-ahead stage and the expectation of rescheduling cost Q(x, ω u ) in the intraday stage.And then, optimal pre-scheduling decision x in the day ahead stage can be obtained, which balances economy and robustness.The expectation of Q(x, ω u ) is the expectation of the worst distribution in the fuzzy set l , as shown in Eq. (22). Distributionally robust optimization model In formula, y(x, ω u ) is the decision variable in the rescheduling stage.d T is the coefficient vector corresponding to y(x, ω u ).Z is the coefficient matrix of the constraint conditions in the rescheduling stage.g(ω u ) is the parameter vector related to ω u in the constraint conditions of the rescheduling stage.From Eq. ( 21), it can be seen that the min function can be regarded as a pre-scheduling problem in the day-ahead stage.Based on Eqs.( 21) and ( 22), it can be seen that the sup(⋅) function can be regarded as a rescheduling problem in the intraday stage, following the max-min criterion to improve the worst case scenario in the optimization objective.The day-ahead stage provides the pre-scheduling decision x for the rescheduling of intraday stage.The intraday stage provides the optimal rescheduling cost d T y under different prescheduling decisions for the day-ahead stage.The optimization processes of the day-ahead scheduling and the intraday scheduling are coupled and nested with each other. Uncertainty modeling of renewable energy based on wasserstein distance According to stochastic optimization theory, the uncertainty of renewable energy power generation follows an empirical distribution extracted from historical prediction error data.Based on stochastic optimization theory and combined with robust optimization theory, a fuzzy set is established to obtain the uncertainty set of real distribution, which contains the worst case scenario of real distribution. Uncertainty modeling of renewable energy based on wasserstein distance Firstly, the empirical distribution D e can be determined based on the prediction error sample set {ω ti Uncertainty modeling of renewable energy based on wasserstein distance M } of M uncertain variables, and D e is used as an estimate of the true distribution D of the prediction error.Following [32,33], D e can be constructed, as shown in Eq. (23). Uncertainty modeling of renewable energy based on wasserstein distance In formula, M represents the sample quantity.δ ω ti m represents the random variable formed by prediction error of renewable energy.The cumulative distribution function can be obtained by assigning 1/M of probability mass to M prediction error of renewable energy, namely empirical distribution.Each prediction error data is a support point for the random variable.Therefore, the empirical distribution is a discrete uniform distribution established on M historical data points, which are independent and identically distributed. Uncertainty modeling of renewable energy based on wasserstein distance Secondly, a fuzzy set should be constructed based on D e , which must contain D as much as possible and satisfies lim Uncertainty modeling of renewable energy based on wasserstein distance Furtherly, the Wasserstein distance is used to measure the distance between D e and D, and construct a fuzzy set [34].The definition of Wasserstein distance is shown in Eq. (24). Uncertainty modeling of renewable energy based on wasserstein distance In formula, inf(⋅) is the infimum function.ω u e and ω ti are uncertain parameters, which follow the distributions of D e and D, respectively. Uncertainty modeling of renewable energy based on wasserstein distance Π(⋅) is the joint distribution of D e and D. Thirdly, the definition of fuzzy set l is shown in Eq. (26). Uncertainty modeling of renewable energy based on wasserstein distance In formula, L(Ξ) is all probability distributions in support set Ξ. l is a Wasserstein sphere, the center of the sphere is D e , with a radius of ε(M).In the fixed confidence degree, l includes all possible probability distributions. Uncertainty modeling of renewable energy based on wasserstein distance The conservatism of the DRO model can be controlled by ε(M), which can be calculated by Eq. (27). Uncertainty modeling of renewable energy based on wasserstein distance In formula, α represents the confidence level.F M is a constant.μ ti is the average value of the sample data.δ is a parameter.ω u m is the mth uncertainty parameter. Support set based on data driven The support set Ξ can be calculated by sample data {ω ti 1 , ω ti 2 , ⋯, ω ti M } [35].For the convenience of calculations, the sample set is standardized by the regularization method, as shown in Eq. (29). Support set based on data driven In formula, Γ ti is the variance of the sample data.ω ti m is the m-th sample data.After normalized, the mean of uncertain parameter sample θ u is 0, and the variance is I. Assuming Φ is the support set of θ u , the definition is shown in Eq. (30). Support set based on data driven In formula, θ u m is the m-th element of θ u .l is the boundary of θ u m .A reasonable l can be obtained by solving Eq. (31).It not only ensures random event θ u m ∈Φ occurs with a high probability, but also enables Φ small enough to ensure low conservatism.sup Support set based on data driven In formula, l max is the maximum of l. p std and l std are probability distribution and fuzzy set of uncertain parameter θ u , respectively.φ is confidence. Support set based on data driven When the optimal l is obtained, a support set based on data driven Ξ can be get by Eq. ( 32). Ξ = ( Γ ti ) 0.5 Φ + μ ti (32) Modeling and calculation method of Port energy system scheduling based on DRO In the two-stage optimization of this article, it is necessary to ensure the consumption of renewable energy and the reliable supply for load in the day-ahead stage [36].The pre-scheduling stage is based on the prediction information of day-ahead stage, and ignores the uncertainty risk caused by prediction errors.In the process of system actual operation, due to the uncertainty of renewable energy, the scheduling strategy obtained in the pre-scheduling stage may not actually be the optimal result.According to the scheduling strategy of pre-scheduling stage, the system will need a lot of power exchange with municipal power grid in the intraday stage, in order to balance supply and demand imbalance caused by renewable energy uncertainty.It results in higher total scheduling cost.Therefore, the rescheduling of system in the intraday stage is needed to stabilize the power fluctuation of renewable energy, when there is a prediction error ω u in the renewable energy power generation.The rescheduling is carried out based on the real-time running data and pre-scheduling strategy.During the process of rescheduling, the electricity quantities purchased and sold by power grid and outputs of equipment have been adjusted, the power curtailment of renewable energy power generation and load shedding also have been carried out.Through adjusting pre-scheduling strategy, the rescheduling of intraday stage can optimize the total cost of the above state two stages, which has been applied in Tianjin Port.It also indicates that the two-stage optimization model could effectively address this interdependence between the both stage, which can contribute to the objective of total cost optimization.The distinctions in data characteristics between the day-ahead and intraday stages is shown in Table 1. Table 1 Distinctions in data characteristics between the day-ahead and intraday stages. of municipal power grid power, as shown in Eq. (33).The port energy system is connected to the power grid by tie-line through grid-connected inverters and distribution transformers.The fluctuation of tie-line is directly related to the renewable energy power generation.Due to the influence of environmental factors, the renewable energy power generation has fluctuation and uncertainty.The stability of the port energy system under high renewable energy penetration level is more serious, and the power fluctuation of tieline intensifies, which is not conducive to the safe and stable operation of the power grid.Therefore, North China Power Grid Company introduces fluctuation penalty cost in trading settlement, which can help to guide port to reduce power fluctuation of renewable energy power generation, in order to smooth the tie-line power and maintain safe and stable operation of the power grid. is the price of nature gas.c pr,CO2 is the carbon price.δ g,CO2 and δ p,CO2 are respectively the carbon emissions factors of nature gas and municipal power grid.c vary is power fluctuation penalty coefficient of municipal power grid.P vary t is the power fluctuation of municipal power grid caused by renewable energy. Rescheduling cost in the intraday stage Due to the unknown true distribution of ω u , within the Wasserstein distance-based fuzzy set l , the goal of Eq. ( 36) is to minimize the rescheduling cost under the worst-case scenario.The rescheduling cost includes such energy purchase and sale cost Cmain t , carbon emission cost CCO2 t , and penalty cost Ccut t for power curtailment of renewable energy power generation and load shedding, as shown in Eq. (37).are the adjustment value of the quantity that port sells electricity to municipal power grid, and port purchases electricity from municipal power grid.c pr,g t is the price of nature gas.GGT t and GGB t are the adjustment values for gas consumption of gas turbine and gas fired boiler, respectively.c pr,re and c pr,load are penalty coefficients for the power curtailment of renewable energy power generation and load shedding.P cut,wt t P cut,pv t and P cut,load t are the quantity for the power curtailment of wind turbine, photovoltaic and load shedding. Day-ahead stage The pre-scheduling in the day-ahead stage needs to meet various equipment constraints, as shown in Section 2. In addition, it is also necessary to meet municipal power grid operation constraints and energy balance constraints. Day-ahead stage (1) Municipal power grid operation constraints Day-ahead stage In formula, U MPG t is 0-1 variable.U MPG t = 1 represents port purchases electricity from the municipal power grid.U MPG t = 0 represents port sells electricity to the municipal power grid.P MPG max is the upper limit of exchange power between port and municipal power grid. Day-ahead stage (2) Energy balance constraints Intraday stage On the basis of pre-scheduling, the port energy system should be adjusted through rescheduling of intraday stage.The rescheduling in the intraday stage should also meet the equipment operation constraints in Section 2. In addition, it is also necessary to meet the curtailment constraints of renewable energy and load, and energy balance constraints. Intraday stage (1) Curtailment constraints of renewable energy and load Intraday stage In the formula, P cut,i t and P cut,load t respectively represent the reduction of renewable energy power generation and load.ω u is the prediction error of renewable energy power generation. Intraday stage (2) Energy balance constraints Reconstruction of scheduling model for port energy system The two-stage scheduling model of port energy system based on DRO can be expressed as a min-max-min three-layer optimization as shown in Eq. (51). Reconstruction of scheduling model for port energy system Because Eq. ( 50) contains D, D ∈ l and ω u ∈ Ξ, the constraint contains prediction error random variables and becomes an infinite limit.Therefore, the two-stage scheduling model based on DRO belongs to a semi-infinite programming model, which is difficult to directly solve.Therefore, this section reconstructs it into the mixed integer linear programming model for solution through strong duality theorem, and the reconstruction process is as follows. Reconstruction of scheduling model for port energy system Firstly, according to strong duality theorem, the worst-case scenario expectation can be rewritten as Eq. ( 52). Reconstruction of scheduling model for port energy system sup Reconstruction of scheduling model for port energy system In formula, σ is a dual variable. Reconstruction of scheduling model for port energy system Secondly, Eq. ( 51) under support set Ξ can be equivalently represented as Eq.(53). Reconstruction of scheduling model for port energy system In formula, Ax ≤ b represents the constraints of pre-scheduling stage.Zy(x, ω u ) ≤ g(ω u ) represents the constraints of rescheduling X. Liu stage.Thirdly, Eq. ( 53) also contains a max-min problem, which is difficult to solve directly.Therefore, auxiliary variable β m needs to be introduced, and Eq. ( 53) is rewrote to Eq. (55). Reconstruction of scheduling model for port energy system ) is a convex function about variable ω u [37], then the optimal solution of sup Reconstruction of scheduling model for port energy system ) must be obtained on the upper and lower bounds (ω s , ω x ) of ω u or ωn ∈ Ξ, ∀m = 1, 2, ⋯, M .Obviously, Q(x, ω u ) is a linear function of ω u .In addition, y(x, ω u ) and g(ω u ) also have a linear relationship with ω u .Therefore, under the support set Ξ, sup Reconstruction of scheduling model for port energy system )) takes value within the upper and lower bounds of ω u . Reconstruction of scheduling model for port energy system In conclusion, the scheduling model of port energy system based on DRO can be reconstructed into a mixed integer linear programming model, which is easy to solve, such as in Eqs.( 57) and ( 58).The error variable ω u of renewable energy power generation is no longer included in Eqs.( 57) and ( 58).Therefore, this model has become a mixed integer linear programming problem, which can be solved directly through commercial solvers. Reconstruction of scheduling model for port energy system Significantly, the rescheduling decision is transformed to a prediction error function in Eqs.( 57) and ( 58), the final result of twostage scheduling based on DRO is the pre-scheduling result. Example analysis By building rooftop photovoltaic (PV) and offshore wind turbine (WT), Tianjin Port builds a integrate energy system wherein renewable energy constitutes the main body of energy, supplemented by natural gas distributed energy system, and coordinated with municipal power grid (MPD), in order to optimize the synthetical efficiency for low-carbon energy utilization. Example analysis The research results of this article have been demonstrated in the northern port of Tianjin Port.From the short-running operational effect, hydrogen energy is treated as a green energy carrier in Tianjin Port that can enhance the capacity of renewable energy utilization and promote the low-carbon transition of port energy system.Moreover, the economy and flexibility of energy system in Tianjin Port can be improved by the ammonia synthesis after hydrogen production using renewable energy. Example analysis Therefore, Simulation was conducted in Part V using real data from Tianjin Port.Part V can obtain various load and device information required for simulation through actual data from Tianjin Port.The load in the northern port mainly comes from the ship shore power and the heating and cooling requirements of container terminal.A notice will be issued before the ship arrives at the northern port, the port load can be calculated according to the notice, and the level of uncertainty is small.Therefore, this article has not yet considered the uncertainty of load.With the development of demonstration areas, the uncertainty of port load will be considered in the future.The results of example analysis were consistent with the Tianjin Port trial running data.It can demonstrate that the scheduling method based on distributionally robust optimization has outstanding advantages in the computing time and renewable energy utilization to improve the flexibility and economy of energy system in Tianjin Port.Example analysis verified this article from three sections.Section 5.2 analyzes the impact of load rate adjustment on the safety constraints of the ammonia synthesis section, confirms the rationality of Eqs. ( 4) and ( 5) to describe the control inertia of the ammonia synthesis reaction in this article.From comparison of P2H2A system under various optimization methods, the advantage of DRO in the renewable energy utilization and the regulation ability of hydrogen storage tank is confirmed. Example analysis Section 5.3 shows comparison results of deterministic optimization, stochastic optimization, robust optimization, and confirms that DRO can improve the capacity of anti-risk for stochastic optimization and overcome the conservatism of robust optimization on the one hand, and consider economy and robustness on the other hand.The pre-scheduling results based on DRO are consistent with the Tianjin Port operation data. Example analysis Section 5.4 illustrates that DRO can reflect the decision-making risk preference of the port energy system by adjusting the Wasserstein distance-based sphere radius, and confirms that DRO considers the uncertainty of probability distribution and has the X. Liu advantages of stochastic optimization and robust optimization. Example settings The energy purchase and sale prices at Tianjin Port are shown in Fig. 3. Equipment parameters of Tianjin Port are shown in Table 2. Referring to the market price in recent years, the sale price of ammonia at the port is set to 393.96 $/ton.The port has one offshore wind-farm and one rooftop photovoltaic.The predicted error data of renewable energy power generation is sourced from the publicly available data of Tennet [38].The scheduling period is 24 h, and the time interval of scheduling is set to 1 h.In the example analysis, this paper uses the YALMIP tool kit in MATLAB to call CPLEX to solve the scheduling model of port energy system based on DRO.The computer parameters are Intel Corei5 1.99 GHz CPU and 8 GB memory. Simulation verification of scheduling constrains for ammonia synthesis To verify the impact of load rate adjustment on the safety constraints of the ammonia synthesis section, the model of ammonia synthesis section was established in this paper, such as the ammonia converter, circulation recovery, and ammonia separation.The simulation results of ammonia production volume, hydrogen production volume, ammonia converter pressure and temperature are shown in Fig. 4. The load rate adjustment command of ammonia synthesis section is shown in Fig. 4 (a) by the blue solid line and green solid line, which decreases from 0.6 ton/h to 0.2 ton/h after 0.4 h or 1 h.The response processes are shown by the orange solid line (0.4 h) and yellow solid line (1 h) in Fig. 4, according to the load rate adjustment command of ammonia synthesis section.Security constrain is shown by the black solid line in Fig. 4 (c) and Fig. 4 (d). Simulation verification of scheduling constrains for ammonia synthesis The impact of ramp rate of load rate adjustment on the safety constraints of ammonia synthesis section is analyzed as follows.When the ramp rate of load rate adjustment is relatively small, it can ensure that the ammonia synthesis reaction transitions smoothly to the new steady state, and the temperature and pressure of the ammonia converter meet safety constraints.When the ramp rate of load rate adjustment is relatively large, due to the large inertia of mass and heat transfer in the ammonia synthesis section, it is difficult to adjust in a timely manner.It results in the significant fluctuation of temperature and pressure of ammonia converter, which violates safety constraints.Using Eqs. ( 4) and ( 5) to describe the control inertia of the ammonia synthesis reaction in this article is more reasonable, and the time interval of scheduling of 1 h is reasonable. Simulation verification of scheduling constrains for ammonia synthesis Using the system parameters given in Section 5.1, the running status of P2H2A can be calculated and shown in Fig. 5, based on the distributionally robust optimization scheduling model of port energy system in Section 4. Simulation verification of scheduling constrains for ammonia synthesis Fig. 5 shows the curves of hydrogen production volume, residual capacity of hydrogen storage tank and ammonia production volume under different scheduling method, such as deterministic optimization, robust optimization and DRO.As shown in Fig. 5 (a), compared to deterministic optimization, DRO utilizes almost the same amount of renewable energy power generation without causing the power curtailment of wind turbine and photovoltaic.As shown in Fig. 5 (b) and Fig. 5 (c), compared to deterministic optimization, DRO can reduce the smoothness of ammonia production volume slightly, which can make the residual capacity of the hydrogen storage tank no longer touch the upper limit constraint and enhance the robustness of the scheduling method.Compared with robust optimization, DRO better utilizes the renewable energy power generation and the regulation ability of hydrogen storage tank, which can effectively improve economic benefits of P2H2A. Scheduling result analysis of distributionally robust optimization The probability distribution of prediction error of renewable energy power generation at each prediction time scale was obtained by kernel density estimation, as shown in Fig. 6.With the inverse function of prediction error probability distribution, the output interval of renewable energy power generation can be obtained, and the confidence level is 95%.The scenarios of renewable energy power generation can be obtained by K-means clustering.The number of scenarios is 20, and the radius of sphere is 1 MW. Scheduling result analysis of distributionally robust optimization The comparison results of deterministic optimization, stochastic optimization, robust optimization, and DRO are shown in Table 3. Scheduling result analysis of distributionally robust optimization Fig. 3. Energy purchase and sale price of port. X. Liu Random optimization, robust optimization, and DRO are all two-stage scheduling methods.Deterministic optimization is a single stage scheduling method, which does not need to consider the rescheduling process and has no related cost.As shown in Table 3, the total scheduling cost of deterministic optimization is the lowest.But this does not mean that deterministic optimization is superior to uncertain optimization.The pre-scheduling of deterministic optimization is based on the prediction information of day-ahead stage, without considering the uncertainty risk and rescheduling cost caused by prediction errors.In the X. Liu intraday stage, deterministic optimization requires a large amount of power exchange between port and municipal power grid, in order to solve the power imbalance problem caused by prediction errors of renewable energy power generation.It results in higher actual scheduling costs. X. Liu In uncertain optimization methods, stochastic optimization has the lowest pre-scheduling and rescheduling costs, because they are calculated based on precise probability distribution.However, a precise probability distribution will result in an overly optimistic risk expectation in the intraday stage.Insufficient power exchange between port and municipal power grid in the day-ahead stage will Robust optimization has the highest pre-scheduling and rescheduling costs, which are calculated based on the prediction error of worst-case scenario.In the day-ahead stage, robust optimization requires increasing power exchange between port and municipal power grid to enhance the capacity of anti-risk in the intraday stage, and has good robustness.However, it will result in the highest prescheduling cost and the worst economic property. X. Liu The pre-scheduling and rescheduling costs of DRO are between stochastic optimization and robust optimization.The main reason is that pre-scheduling of DRO is made based on the forecasting error and its probability distribution under worst-case scenario.With the complementary advantages of stochastic optimization and robust optimization, DRO can improve the capacity of anti-risk for stochastic optimization and overcome the conservatism of robust optimization on the one hand, and give consideration to economy and robustness on the other hand. X. Liu In this paper, the rescheduling decision is transformed to a prediction error function in Eqs.( 57) and ( 58), so the final result of twostage scheduling based on DRO is the pre-scheduling result.The composition of pre-scheduling cost under different optimization methods shown in Table 4. X. Liu As shown in Table 4, by comparison with deterministic optimization and stochastic optimization, DRO and robust optimization have higher pre-scheduling cost, due to the increase in electricity purchases from the municipal power grid by port.At the same time, both also have higher carbon emission cost.The main reason is that in order to improve the capacity of anti-risk in the intraday stage, the pre-scheduling scheme increased the electricity purchased from the municipal power grid, which is dominated by thermal power plants.The increase in electricity purchase results in lower nature gas purchase cost of robust optimization and DRO.Robust optimization is expected to have highest power fluctuation cost based on the worst-case scenario, and there was no significant difference among the others.The sales revenue of liquid ammonia is 243.66 $ in robust optimization, and that of DRO is 294.91 $.Compared with 243.66 $, a 21.03 per cent rise on the sales revenue of liquid ammonia of DRO. X. Liu The detailed results of pre-scheduling based on DRO are shown in Fig. 7.By comparison with absorption cooler in Table 2, electric cooler has higher cooling efficiency.As shown in Fig. 7 (a) and Fig. 7 (d), the cooling load is mainly supplied by electric cooler, while the rest is supplied by absorption cooler.During the period from 8:00 to 19:00, the renewable energy power generation is less than the electric load.Due to the high electricity purchase price during this period, the cooling load is mainly supplied by absorption cooler, in order to reduce the cost of electricity purchased from the municipal power grid (MPD). X. Liu As shown in Fig. 7 (b) and Fig. 7 (d), the renewable energy power generation is less than the electric load, and both the electric and heating loads are mainly supplied by gas turbines, during the period from 8:00 to 19:00.Surplus thermal energy is stored in the heat energy storage device, which can shift the above thermal energy to the period of 21:00-6:00 for use, lowering the cost of thermal energy supply.During the period from 21:00 to 6:00, the renewable energy power generation is relatively high, so the gas turbine will be kept at lowest possible power to provide reserve capacity.The heating load is mainly supplied by the gas boiler. X. Liu As shown in Fig. 7 (c) and Fig. 7 (d), hydrogen generation by water electrolysis can improve the capacity of renewable energy utilization, during the periods of 6:00-7:00 and 21:00-5:00.The ammonia synthesis system also tends to operate during this period.During the period from 9:00 to 18:00, the ammonia synthesis system operates stably on a lower power level, in order to reduce the cost of electricity purchased from the municipal power grid.During the period from 21:00 to 6:00, there was no significant power fluctuation between port and municipal power grid.The mainly reason is that ammonia synthesis after hydrogen production by water electrolysis can adapt to the uncertain properties of renewable energy, which can effectively stabilize power fluctuation.As shown in Fig. 7 (d), the power exchange between the port and the municipal power grid is mainly used as a supplementary method, when the port energy system is unable to satisfy the electric load demand or consume renewable energy power generation.Renewable energy still constitutes the main body of energy at the port area. Sensitivity analysis of distributionally robust optimization scheduling Distributionally robust optimization is an uncertain optimization method that combines stochastic optimization and robust optimization.Through the analysis in Part III, the Wasserstein distance-based sphere radius has a clear meaning, the sphere radius of its Wasserstein distance-based fuzzy set determines whether DRO favors risk neutral stochastic optimization or risk averse robust optimization.The sensitivity analysis in Section 5.4 can provide intuitive data as a reference for decision-makers.The original work of this paper is to do the sensitive analysis of α and M.But according to feedback from decision-makers, it is indeed not as intuitive as the sensitivity analysis of Wasserstein distance.Therefore, in order to meet the demand of project, this section conducted a sensitivity analysis of Wasserstein distance-based sphere radius, without addressing the sensitivity analysis of α and M. The relationship between pre-scheduling cost and Wasserstein distance-based sphere radius is shown in Fig. 8, which indicates the impact of Wasserstein distance-based sphere radius on risk preference. Sensitivity analysis of distributionally robust optimization scheduling As shown in Fig. 8, the pre-scheduling costs of stochastic optimization and robust optimization are constant, which have nothing to do with Wasserstein distance-based sphere radius.The pre-scheduling cost of DRO falls between stochastic optimization and robust optimization, and varies with the Wasserstein distance-based sphere radius.As the Wasserstein distance-based sphere radius increases, the pre-scheduling cost of DRO gradually deviates from risk neutral stochastic optimization and leans towards risk averse robust optimization. Sensitivity analysis of distributionally robust optimization scheduling When leaning towards stochastic optimization, pre-scheduling decision tends to be economic.It indicates that the decision-maker believes that the probability distribution of uncertain variables is accurate enough or historical data is adequate to construct the fuzzy set.When leaning towards robust optimization, pre-scheduling decision tends towards robustness.It indicates that the decision-maker believes that significant risks will arise in the future, and priority should be given to the reliability of the pre-scheduling decision.In summary, DRO can reflect the decision-making risk preference of the port energy system by adjusting the Wasserstein distance-based sphere radius.It can achieve reasonable scheduling that balances economy and robustness. Sensitivity analysis of distributionally robust optimization scheduling When the Wasserstein distance-based sphere radius remains constant, distributionally robust optimization scheduling is also affected by the number of scenarios, which is used to build the Wasserstein distance-based fuzzy set.The relationship between prescheduling cost (Black dots), calculation time (red line) and number of scenarios is shown in Fig. 9. Sensitivity analysis of distributionally robust optimization scheduling As shown in Fig. 9, when the number of scenarios is small, the pre-scheduling cost is divergent and the variance is large.It indicates that a small number of scenarios are difficult to accurately reflect the true distribution of renewable energy power generation, which has significant uncertainty.As the number of scenarios increases, the variance gradually decreases, which can promote the Wasserstein Before the model reconstruction, there were 2111 decision variables of pre-scheduling and rescheduling.After the model reconstruction, there were 3071 decision variables of pre-scheduling and linear decision rule.The number of decision variables after model reconstruction significantly increased.However, when the number of scenarios in Fig. 9 is greater than 15, the pre-scheduling cost will no longer fluctuate significantly, and the calculation time is in the range of 1200 s-6600 s.It can meet the demands of day-ahead scheduling calculation time.Therefore, this paper proposed model can meet the demand for computing efficiency. Sensitivity analysis of distributionally robust optimization scheduling In addition, DRO considers the uncertainty of probability distribution, and has the advantages of stochastic optimization and robust optimization, which are illustrated by the following example.Assuming that the prediction error of renewable energy power generation corresponds to the normal distribution, five different mean values are selected to generate renewable energy power generation scenarios by Latin hypercube sampling.The pre-scheduling costs under different mean values are shown in Table 5. Sensitivity analysis of distributionally robust optimization scheduling As shown in Table 5, the deterministic optimization does not consider prediction errors, resulting in the lowest pre-scheduling cost and overly optimistic risk expectation.Meanwhile, its pre-scheduling cost remains unchanged, and it's impossible to adjust the risk expectation based on historical prediction error data. Sensitivity analysis of distributionally robust optimization scheduling Stochastic optimization is based on probability distribution information to conduct optimal scheduling.When the actual value of renewable energy power generation is greater than the predicted value (i.e., the mean value is greater than 0), its pre-scheduling cost approaches the pre-scheduling cost of deterministic optimization, reflecting optimistic risk expectation.When the actual output of renewable energy is less than the predicted output (i.e., the mean value is less than 0), its pre-scheduling cost increases as the mean value decreases, reflecting negative risk expectation.However, it does not consider the uncertainty of probability distribution, so its robustness is poor. Sensitivity analysis of distributionally robust optimization scheduling Robust optimization has the highest pre-scheduling cost, indicating its strongest robustness.But it does not utilize probability distribution information, so its economy is the worst.It shows an overly negative attitude towards risk expectation.The trend of the pre-scheduling cost of DRO changing with the mean value is the same as that of stochastic optimization, indicating that it has the characteristic of reflecting risk expectation as stochastic optimization.Its higher pre-scheduling cost indicates that it has the robustness as robust optimization. Conclusions In order to effectively address the uncertainty risks of port energy system caused by intermittence and fluctuation of renewable energy, this paper proposes a scheduling method for port energy system based on distributionally robust optimization (DRO).This method organically integrates Wasserstein distance-based fuzzy set, "electricity, green hydrogen, ammonia synthesis", and distributionally robust optimization, and uses synthesis after hydrogen production by water electrolysis (P2H2A) as a flexible resource to improve the capacity of renewable energy utilization, which helps to achieve optimal scheduling of the port energy system.Finally, based on the real data of port energy system, example analysis was conducted, and the following conclusions were obtained. Conclusions (1) The time series scheduling model of P2H2A is intuitive to quantify the capacity for adjust the speed of the change of load rate. Conclusions P2H2A can provide low-carbon flexible resources for the port energy system, has the ability to adapt to the uncertainty of renewable energy, and can effectively improve the economy of the port energy system scheduling scheme.(2) The scheduling method based on DRO, which realizes combined operation of day-ahead stage and intraday stage, overcomes the shortcomings as the poor risk-resistance of stochastic optimization and too conservative of robust optimization.It can simultaneously have the advantages as stochastic optimization reflecting risk expectation based on historical prediction error data and robust optimization with strong robustness.(3) Wasserstein distance-based fuzzy set is used to characterize the uncertainty of renewable energy power generation.Under the two risk preferences of risk neutral and risk averse, DRO can balance the economy and robustness of scheduling schemes by flexibly adjusting the Wasserstein distance-based sphere radius.It helps the port energy system consider the uncertainty of renewable energy generation to balance the economy and robustness of scheduling schemes. Conclusions In order to further improve the real-time and practical performance of scheduling method, the next research focus will be on exploring the construction of a multiple time scales collaborative scheduling framework considering the uncertainty of load, which integrates DRO, rolling optimization of intraday stage, and real-time compensation mechanisms. Conclusions Contents lists available at ScienceDirect Heliyon journal homepage: www.cell.com/heliyonhttps://doi.org/10.1016/j.heliyon.2024.e27615Received 25 July 2023; Received in revised form 18 January 2024; Accepted 4 March 2024 Nomenclature P P2H t the power consumption of P2H at time t P P2H,0 Conclusions th element of θ u l the boundary of θ u m l max the maximum of l p std , l std the probability distribution and fuzzy set of uncertain parameters C main t the energy purchase and sale cost C CO2 t the carbon emission cost C vary t the fluctuation penalty cost c pr,NH3 Fig. 4 . Fig. 4. The dynamic responses of the ammonia synthesis section under different ramp rate of load rate. Fig. 5 . Fig. 5. Result comparison of P2H2A system under various optimization methods. Fig. 6 . Fig. 6.Forecast error probability distribution. Fig. 6 . X. Liureduce the capability of anti-risk of stochastic optimization in the intraday stage.It results in the worst robustness of stochastic optimization. Fig. 7 . Fig. 7. Results of pre-scheduling based on distributionally robust optimization. Fig. 7 . fuzzy set to converge to the true distribution.However, the calculation time increases sharply with the increase of the number of scenarios.Therefore, it is necessary to analyze the computational efficiency of the scheduling model based on DRO. Fig. 8 . Fig. 8. Pre-scheduling cost under different Wasserstein distance-based sphere radius. Fig. 9 . Fig. 9. Pre-scheduling costs and their calculation time under different number of scenarios. Fig. 9 . HESis heat storage/release efficiency for HES.VOL HES is the installed capacity of HES. S HES max and S HES min are the upper and lower limits of SOC for HES.H HES max is the upper limit of power for HES. Fig. 9 . t respectively represent the power of heat storage/release for HES at time t.η Table 2 Equipment parameters of port. Table 3 Scheduling results under different optimization methods. Table 4 Composition of pre-scheduling cost under different optimization methods. Table 5 Pre-scheduling costs under different mean values.

섹션 본문 129문단 · 64,132자

(제목 없음)

1In order to effectively address the uncertainty risks of port energy system caused by intermittence and fluctuation of renewable energy, this paper proposes a scheduling method for port energy system based on distributionally robust optimization (DRO) considering ammonia synthesis after hydrogen production by water electrolysis (P2H2A), and uses real data from Tianjin Port for example analysis.The calculation results show that 1 h selected for the scheduling interval of P2H2A is reasonable, it can ensure that the ammonia synthesis reaction transitions smoothly to the new steady state, and the temperature and pressure of the ammonia converter meet safety constraints.The two-stage scheduling of port energy system based on DRO can be divided into pre-scheduling in the day-ahead stage and rescheduling in the intraday stage, which can improve the capacity of anti-risk for stochastic optimization and overcome the conservatism of robust optimization, and consider economy and robustness.Moreover, the rescheduling decision can be transformed to a prediction error function, the result of two-stage scheduling based on DRO is the pre-scheduling result, which is between the cost of stochastic optimization and robust optimization.As the Wasserstein distance-based sphere radius increases, the pre-scheduling cost of DRO gradually deviates from risk neutral stochastic optimization and leans towards risk averse robust optimization.When the Wasserstein distance-based sphere radius remains constant, the variance gradually decreases as the number of scenarios increases, which can promote the Wasserstein distance-based fuzzy set to converge to the true distribution.When the number of scenarios is greater than 15, the pre-scheduling cost will no longer fluctuate significantly, and the calculation time is in the range of 1200 s-6600 s.It can meet the demands of day-ahead scheduling calculation time.Therefore, the scheduling model has outstanding advantages in the computing time to improve the flexibility and economy of Tianjin Port's energy system scheduling, considering ammonia synthesis after hydrogen production using renewable energy.

Introduction

2Ports undertake 80% of global transportation tasks, and produce 3%-5% of global CO 2 , 14%-15% of NO X and SO X [1], which will cause adverse impacts on the environment.Under the goal of emission peak and carbon neutrality, China is accelerating the construction of green and low-carbon ports, promoting port electrification reconstruction, and gradually replacing fossil fuels with renewable clean energy source [2].Taking Tianjin Port as an example, as an important foreign trade port in Tianjin, it has speeded up their strategy to construct ecological coastline and green port in recent years.Tianjin Port attaches great importance to the E-mail address: liuxiaoou126@126.com.the power of auxiliary equipment c P2H the power coefficient of electrolyzers Q H2 t the hydrogen production volume at time t r P2H max the upper limit of ramp rate for P2H Q NH3 t the ammonia production volume at time t Q NH3 max , Q NH3 min the upper and lower limits of ammonia production volume r NH3 max , r NH3 min the upper and lower limit of ramp rate for ammonia synthesis P NH3,0 the fixed power of ammonia production c NH3 the constant coefficient of ammonia production the efficiency of AC L AC max the upper limit of the cooling power for AC H GB t the thermal power of the GB at time t G GB t the gas consumption of GB at time t η GB the efficiency of GB H GB max the upper limit of the thermal power for GB P GT t , H GT t the electrical power and thermal power of the GT at time t η GT,p , η GT,h the efficiency of electric power and heat generation for GT P GT max , P GT min the upper and lower limits of the electrical power for GT r GT max the upper limit of the ramp rate for GT U GT t the on/off status of GT at time t T GT min the lower limit of the time span of start and stop for GT c T the coefficient vector of the pre-scheduling decision variable x X the set of pre-scheduling decision variables x P e,inj N e -dimensional nodal injection power column vector sup(⋅) the supremum function D the true distribution of prediction errors l a fuzzy set ω u the prediction error of renewable energy power generation Q(x, ω u ) the rescheduling cost A the coefficient matrix of the constraint conditions in the pre-scheduling stage b the parameter vector of the constraint conditions in the pre-scheduling stage E D ( • ) mathematics expectation X. Liu comprehensive recovery and utilization of oilfield associated gas, actively implements the "from coal to gas" and "from oil to gas" projects, and has achieved significant environmental protection efforts.By building rooftop photovoltaic (PV) and offshore wind turbine (WT), Tianjin Port builds a integrate energy system wherein renewable energy constitutes the main body of energy, supplemented by natural gas distributed energy system, and coordinated with municipal power grid (MPD), in order to optimize the synthetical efficiency for low-carbon energy utilization.However, enhancing the capacity of the large-scale renewable energy source utilization requires the dispatching of a large amount of diversified flexibility resources in ports [3].Since the renewable energy have the intrinsic intermittence and fluctuation, their integration into the port will present a great challenge on the operating reliability of port energy system [4].Therefore, the rational integration of diversified flexibility resources in ports, the optimal scheduling of port energy systems, and the improvement of anti-risk ability have become a key problem to be solved urgently.

Deficiency of current research

3In the context of emission peak and carbon neutrality, as a low-carbon and clean secondary energy, hydrogen energy is a green energy carrier that can enhance the capacity of renewable energy utilization and promote the low-carbon transition of port energy system.Hydrogen is an industrial raw material for synthesizing ammonia, which is one of the main methods for the large-scale consumption of green hydrogen [5].Demonstration projects have realized the commissioning and operation [6], and the number y(x, ω u ) the decision variable in the rescheduling stage d T the coefficient vector Z the coefficient matrix of the constraint conditions in the rescheduling stage g(ω u ) the parameter vector D e the empirical distribution L(Ξ) all probability distributions in support set Ξ M the uncertain variables the sale price of ammonia c pr,e,s t , P sell t the price and quantity that port sells electricity to municipal power grid c pr,e,b t , P buy t the price and quantity that port purchases electricity from municipal power grid c pr,g t the price of nature gas c pr,CO2 the carbon price δ g,CO2 , δ p,CO2 the carbon emissions factors of nature gas and municipal power grid c vary the power fluctuation penalty coefficient of municipal power grid P vary t the power fluctuation of municipal power grid caused by renewable energy QNH3 t the adjustment value of ammonia production volume at time t

Psell

4t , Pbuy t the adjustment value of the quantity that port sells electricity to municipal power grid, and port purchases electricity from municipal power grid GGT t , GGB t the adjustment values for gas consumption of gas turbine and gas fired boiler c pr,re , c pr,load the penalty coefficients for the power curtailment of renewable energy power generation and load shedding P cut,wt t , P cut,pv t , P cut,load t the quantity for the power curtailment of wind turbine, photovoltaic and load shedding P MPG max the upper limit of exchange power between port and municipal power grid Opening or closing instructions for branches in power/heat/gas system and energy station X. Liu of projects initiated has rapidly increased in the world [7].That can in turn create a larger install base of renewable energy power generation and hydrogen production by electrolysis.Using green hydrogen instead of gray hydrogen as feed gas in the ammonia synthesis, accelerating the renewable energy base construction of the green port and hydrogen city, both have become an important development direction for carbon emission reduction in Chinese ports [8].In the long run, realizing green production and increasing productivity of synthetic ammonia will help reduce industry trade deficit.

5Therefore, the ammonia synthesis after hydrogen production using renewable energy is expected to provide a large amount of flexible resources for the port energy system.It should adjust to the intermittence and fluctuation of renewable energy power generation, and has the ability to be the flexible and adjustable load [9,10].With the technology development and engineering construction of green hydrogen, the technology of power to hydrogen (P2H) and ammonia synthesis after hydrogen production by water electrolysis (P2H2A) have become research hotspots.The current research on the load regulation characteristics of P2H mainly focuses on technical and economic aspects [11], scheduling control [12], and operation modes [13].Compared with P2H, the research on flexible regulation characteristic of P2H2A is relatively limited.A joint scheduling model is proposed based on historical electricity prices [14], considering electricity, hydrogen and ammonia.An optimized scheduling method is proposed for ammonia synthesis after Hydrogen production using wind power [15], focusing on analyzing the impact of the sitting and sizing on the operating costs of ammonia plant.An energy management strategy is proposed for industrial parks about the integrated utilization of electricity, hydrogen and ammonia [16].A P2H2A optimization scheduling model is proposed based on day-ahead electricity price forecasting [17], in order to evaluate the impact of parameter variation of synthetic ammonia on revenue.However, the above references were deterministic optimization methods based on the forecasting of electricity prices or renewable energy, less related to the schedulability analysis of P2H2A under uncertainty.Although hydrogen storage tank can be installed between the hydrogen production and ammonia synthesis sections to suppress hydrogen flow fluctuation, the capacity of hydrogen storage tank is limited by investment costs and safety constraints.Therefore, it is necessary to study the potentiality analytical methods for P2H2A to be the flexible and adjustable load, in order to provide a quantitative reference for P2H2A taking in renewable energy utilization and the implementation of power demand balance.

6The port can achieve the large-scale transmission, grid-connected, and utilization of offshore renewable energy power generation.Therefore, offshore renewable energy power generation integration to the port with high penetration will present a great uncertainty risk, which cannot be ignored.At present, the analysis methods for uncertainty problems in power-gas coupled system include stochastic optimization [18], and robust optimization [19,20].As the number of scenarios increases, stochastic optimization methods may cause dimension disaster, and lead to computational difficulties.Due to the low probability of the worst-case scenario occurring, the robust optimization results are too conservative.In order to overcome the limitations and shortcomings of the above two methods, researches are committed to the research of distributionally robust optimization (DRO) methods [21].DRO can generate a fuzzy set containing all probability distributions based on sample data of uncertain variables.Under the scenario where the prediction error of uncertain variable follows the worst-case probability distribution in a fuzzy set, the scheduling strategy can be determined.Compared with stochastic optimization, DRO has stronger robustness, and it does not need to the accurate distributed function of uncertain variables during calculation [22].DRO considers the probability distribution information of uncertain variables to avoid overly conservative scheduling strategy [23].DRO has been applied in other fields [24,25], but there is relatively little research on it for port energy systems.Therefore, it is necessary to conduct research on optimal dispatch of port energy system with DRO in response to the uncertainty of offshore renewable energy power generation.

Structure of thesis

7In summary, the hydrogen energy is a green energy carrier that can enhance the capacity of renewable energy utilization and promote the low-carbon transition of port energy system, and is an important industrial raw material for synthesizing ammonia.It can be expected to participate in the scheduling of port energy system as flexible resources.Therefore, it is necessary to study the potentiality analytical methods for P2H2A to be the flexible and adjustable load, in order to provide a quantitative reference for P2H2A taking in renewable energy utilization and the implementation of power demand balance.In order to overcome the limitations and shortcomings of stochastic optimal dispatch and robust optimal dispatch, the DRO is necessary to be used in optimal dispatch of port energy system with the property of renewable energy uncertainty.

8To make up the existing research insufficiency, this paper proposes a scheduling method for port energy system based on distributionally robust optimization considering ammonia synthesis after hydrogen production using renewable energy, and uses real data from Tianjin Port for example analysis.Firstly, to describe the capability of load regulation for ammonia synthesis after hydrogen production by water electrolysis (P2H2A), an overall architecture model of P2H2A was constructed in Part II.The model of P2H2A considers the safety constraints of hydrogen production and ammonia synthesis chemical processes, which can make P2H2A serve as a flexible resource for distributionally robust optimization scheduling of port energy systems while ensuring safety.Secondly, the Wasserstein distance is used to characterize the uncertain fuzzy set in Part III, which is consist of the probability distribution of renewable energy power generation.By fitting the probability distribution of prediction error of renewable energy power generation, various scenarios of its output interval under different confidence levels can be obtained.Thirdly, for the port energy system with P2H2A, DRO is used to build a two-stage scheduling model considering Wasserstein distance-based fuzzy set in Part IV.The model can be converted into a mixed integer linear programming model for being easy to solve by using the strong duality theorem.Finally, example analysis is conducted based on the real data of Tianjin Port in Part V.The results show that P2H2A can significantly reduce the carbon emission and improve the flexibility for the port energy system.The proposed model not only considers the economy of the port energy system, but also further ensures the capability of anti-risk and robustness under the uncertainty of renewable energy power X. Liu generation.

Main innovation of paper

9This paper proposes a scheduling method for port energy system based on distributionally robust optimization considering hydrogen production and ammonia synthesis, and the main innovations are as follows.

10(1) A low-carbon energy architecture of port is established, which may be divided into three structural layers, such as the energy input layer, energy conversion and storage layer, and energy output layer.The system structure of ammonia synthesis after hydrogen production by water electrolysis is proposed, which can participate the operation of port energy system as low-carbon and flexible resources.

11(2) The model of the ammonia synthesis section has been reasonably simplified.The scheduling model for P2H2A is presented, which can make P2H2A adapt to the uncertain of renewable energy power generation.It can help to settle the accommodation problem of large-scale renewable energy power generation, and improve the economy and flexibility of energy system in the port.

12(3) Considering the risks brought by the uncertainty of renewable energy power generation, the Wasserstein distance is used to characterize the uncertain fuzzy set of uncertainty parameter prediction errors.The Wasserstein distance-based fuzzy set independent of prior knowledge is data-driven, and can make the DRO model has good operation ability, and can be less conservative.(4) DRO is used to build a two-stage scheduling model of port energy system.The scheduling strategy based on DRO may enhance the anti-risk ability of scheme, and avoid the impact of overly conservative on the scheme economic at the same time.The strong duality theorem is used to reconstruct the model, which is equivalent to the mixed integer linear programming problem, in order to make the problem easy to solve.

Port energy system structure and model

13Vigorously developing new energy, mainly wind power and photovoltaic, is the necessary path for port energy saving and emission reduction.As a low-carbon and clean secondary energy source, hydrogen energy is a green energy carrier that can increase the capacity of renewable energy utilization and promote low-carbon transition of port energy structure.Hydrogen is an industrial raw material for synthesizing ammonia, which is one of the main methods for the large-scale consumption of green hydrogen.Tianjin Port has the conditions to build a green energy hub with ammonia and hydrogen.Therefore, it is planned to build an integrated energy system in the port, mainly based on renewable energy power generation, supplemented by natural gas distributed energy system, and coordinated with municipal power grid.

14The energy structure of port is shown in Fig. 1.The energy input layer includes photovoltaic (PV), wind turbine (WT), municipal power grid (MPD), natural gas source, etc.The energy conversion and storage layer includes ammonia synthesis after hydrogen production by water electrolysis (P2H2A), electric cooler (EC), absorption cooler (AC), gas turbine (GT), gas fired boiler (GB), heat energy storage device (HES), etc. P2H2A consists of an electrolyzer, N 2 production via air separation (AS), hydrogen storage tank (HST), and ammonia converter.The energy output layer includes electric/cooling/heating load and liquid ammonia.Energy conversion equipment can achieve reliable supply of energy demand and improve energy efficiency through multi-energy complementary Fig. 1.Energy structure of port.

15X. Liu mode.P2H2A can not only improve the capacity of renewable energy utilization, but also bring considerable economic benefits to the port.HES and GB can achieve decoupling heat-power of GT, the peak regulating capacity of GT can be increased.HST can achieve energy transfer for long time scales, and are suitable for stabilizing the daily, weekly, and even seasonal electricity fluctuations.Therefore, it is necessary to build a low-carbon, clean energy system to promote the sustainable development of port.

Modeling of ammonia synthesis after hydrogen production by water electrolysis

16Ammonia synthesis after hydrogen production using renewable energy is a deep coupling between power system and chemical system, has the ability to adjust their energy demand to the fluctuation of renewable energy.It involves the complex regulation process of safe, robust and coordination for multiple systems of renewable energy power generation, hydrogen production and ammonia synthesis.The technology of alkaline water electrolysis is usually used in the P2H, which has the advantages of mature state of art, lower cost and long life.The ammonia synthesis section usually adopts the Harbor-Bosch process [26], which is consist of ammonia converter, ammonia separation, circulation recovery, etc.The principle of ammonia synthesis is shown in Eq. ( 1).The reaction principle of P2H2A is shown in Fig. 2.

17The overall process of P2H2A is shown in Fig. 2. T and p represent the temperature and pressure of each stage, respectively.H 2 and N 2 are respectively produced by the P2H section and the air separation section.The ammonia synthesis section is an exothermic reaction.The ammonia converter operates in a high-temperature and high-pressure environment to ensure catalyst activity and reaction rate.The raw gas needs to be pressurized through multi-stage compression, and heat exchanged with the high-temperature mixed gas at the outlet of ammonia converter to increase the gas temperature.After the reaction is completed, liquid ammonia products can be obtained from the mixed gas after heat exchange, cooling, and ammonia separation section.The unreacted raw gas will be recompressed and recycled back into the ammonia converter to continue the reaction.

P2H model

18The power of P2H usually includes the power of electrolyzers and the power of auxiliary equipment [27].The load rate of a single electrolyzer is about 20%-100%.Through the strategy combination of unit startup and shutdown and load distribution, the load rate of multiple electrolyzers can continuously change within the range of 5%-100% [27], and the energy conversion efficiency is close to linear.Therefore, the linear function between power consumption and hydrogen production volume for P2H section is shown in Eq. ( 2).

19In formula, P P2H t is the power consumption of P2H at time t.P P2H max is the upper limit of P2H power.P P2H,0 is the power of auxiliary equipment, which is taken as 0.9% of P P2H max .c P2H is the power coefficient of electrolyzers, taken as 0.0048 MWh/Nm 3 .Q H2 t is the hydrogen production volume at time t.r P2H max is the upper limit of ramp rate for P2H [28], taken as 50% × P P2H max per minute.

Ammonia synthesis model

20The ammonia synthesis section can adjust the ammonia production volume to the fluctuation of hydrogen flow.Due to constraints such as thermal equilibrium and catalyst activity [29], the ammonia production volume should be maintained within a given range, as shown in Eq. ( 4).Ammonia separation, circulation recovery, compression, and other processes all need power consumption.The linear function between power consumption P NH3 t and ammonia production volume for ammonia synthesis section is shown in Eq. ( 6).Fig. 2. Reaction principle of ammonia synthesis after hydrogen production by water electrolysis.

21In formula, Q NH3 t is the ammonia production volume at time t.Q NH3 max and Q NH3 min are the upper and lower limits of ammonia production volume, Q NH3 min is taken as 20% of Q NH3 max .r NH3 max and r NH3 min are is the upper and lower limit of ramp rate for ammonia synthesis, which are taken as 15% and − 25% of Q NH3 max respectively.P NH3,0 is fixed power.c NH3 is a constant coefficient.

N 2 production and storage equipment model

22Due to fluctuations in renewable energy power generation, there is fluctuation in hydrogen production volume.The fluctuation of hydrogen flow can be smoothly adjusted by hydrogen storage tank (HST), in order to meet the stability requirements of hydrogen flow used in ammonia synthesis.The state of charge (SOC) for HST S HST t and the power of the hydrogen compressor P H2,C t are shown in Eqs. ( 7)-( 9) [30].

23VOL HST (7)

24In formula, Q H2,out t is the outlet flow rate of HST.η HST is the efficiency of hydrogen storage/release for HST.VOL HST is the installed capacity of HST. S HST max and S HST min are the upper and lower limits of SOC for HST, respectively.Q H2 max is the upper limit of the flow for HST.

25M H2 is the molar mass of hydrogen.R is the ideal gas constant.η c is the compressor efficiency, which is taken as 60%.

26In addition, the N 2 required for ammonia synthesis can be obtained through air separation (AS).The process requires multi-stage compressors to gradually pressurize the air from atmospheric pressure, and the power consumption is shown in Eq. (10).

27In formula, Q Air t is the air flow rate at time t.M Air is the molar mass of air.Compared to P2H, the power consumption of hydrogen storage and N 2 production processes is smaller.Compared with the power consumption of P2H2A, the power consumption changes caused by temperature and pressure changes in Eqs. ( 9) and ( 10) can be approximately ignored.For simplicity, this paper assumes that temperatures T 1 , T 4 , and pressures p 1 , p 2 , p 3 , and p 4 are constant.

28According to the mass balance relationship of the ammonia synthesis reaction, the relationship between the ammonia production volume Q NH3 t and the outlet flow rate of HST Q H2,out t is shown in Eq. (11).

29Considering that heat energy storage (HES) device is similar to HST, the model of HES is briefly described as follows.

30In formula, L EC t is the cooling power of the electric cooler (EC) at time t.P EC t is the electrical power of EC at time t.η EC is the efficiency of EC.L EC max is the upper limit of the cooling power for EC.

Absorption cooler

31X. Liu

32In formula, L AC t is the cooling power of the absorption cooler (AC) at time t.P AC t is the electrical power of AC at time t.η AC is the efficiency of AC.L AC max is the upper limit of the cooling power for AC.

Gas fired boiler

33In formula, H GB t is the thermal power of the gas fired boiler (GB) at time t.G GB t is the gas consumption of GB at time t.η GB is the efficiency of GB.H GB max is the upper limit of the thermal power for GB.

Gas turbine

34In formula, P GT t and H GT t are the electrical power and thermal power of the gas turbine (GT) at time t.η GT,p and η GT,h respectively refer to the efficiency of electric power and heat generation for GT.P GT max and P GT min are the upper and lower limits of the electrical power for GT.r GT max is the upper limit of the ramp rate for GT.U GT t indicates the on/off status of GT at time t.U GT t = 1 means that GT is operation, U GT t = 0 means that GT is shutdown.T GT min is the lower limit of the time span of start and stop for GT.

Distributionally robust optimization theory

35According to Eq. ( 21), the optimization scheduling model is a function of the prediction error of renewable energy.Due to the limited sample data of renewable energy prediction error, the real distribution of renewable energy prediction error cannot be directly ascertained.Therefore, this paper does not directly obtain the real distribution.But instead, an empirical distribution is established to be used as an estimate of the real distribution, and empirical distribution is founded on past data records of renewable energy prediction error.Due to the limitations of past data records, this section uses the Wasserstein distance to construct a fuzzy set of uncertainty parameter prediction errors.The fuzzy set can be regarded as a sphere with a radius of a, where real distribution mainly distributed around the empirical distribution.The sphere contains all possible real distribution of renewable energy prediction error.The probability distribution of renewable energy historical data mostly fluctuates around the real distribution.The probability distribution fuzzy set of Wasserstein distance focuses more on describing the difference between the real distribution and the empirical distribution.The Wasserstein distance-based fuzzy set independent of prior knowledge is data-driven, and can ensure that the unknown distribution converges to the true distribution.Therefore, it has strong adaptability to the problem studied in this paper, and can make the distributionally robust optimization (DRO) model has good operation ability, and can be less conservative.

Distributionally robust optimization model

36A scheduling method for port energy system in this paper is built based on DRO.The Wasserstein distance-based fuzzy set independent of prior knowledge is data-driven, and can ensure that the unknown distribution converges to the true distribution.It has strong adaptability to the problem studied in this paper, and can make the DRO model has good operation ability, and can be less conservative.Referring to the common two-stage DRO model [31], the two-stage scheduling of port energy system based on DRO can be divided into pre-scheduling in the day-ahead stage and rescheduling in the intraday stage, as shown in Eq. (21).Therefore, a two-stage optimization approach can be suitable for the problem at hand, and would not adversely affect other aspects of the model.

37In formula, c T is the coefficient vector of the pre-scheduling decision variable x.X is the set of pre-scheduling decision variables x. sup (⋅) is the supremum function.D is true distribution of prediction errors.l is a fuzzy set.ω u is an uncertain parameter, which is the prediction error of renewable energy power generation in this paper.Q(x, ω u ) is the rescheduling cost incurred due to ω u .A is the coefficient matrix of the constraint conditions in the pre-scheduling stage.b is the parameter vector of the constraint conditions in the pre-scheduling stage; E D ( • ) indicates mathematics expectation.

38Eq. ( 21) is to minimize the sum of the pre-scheduling cost c T x in the day-ahead stage and the expectation of rescheduling cost Q(x, ω u ) in the intraday stage.And then, optimal pre-scheduling decision x in the day ahead stage can be obtained, which balances economy and robustness.The expectation of Q(x, ω u ) is the expectation of the worst distribution in the fuzzy set l , as shown in Eq. (22).

39In formula, y(x, ω u ) is the decision variable in the rescheduling stage.d T is the coefficient vector corresponding to y(x, ω u ).Z is the coefficient matrix of the constraint conditions in the rescheduling stage.g(ω u ) is the parameter vector related to ω u in the constraint conditions of the rescheduling stage.From Eq. ( 21), it can be seen that the min function can be regarded as a pre-scheduling problem in the day-ahead stage.Based on Eqs.( 21) and ( 22), it can be seen that the sup(⋅) function can be regarded as a rescheduling problem in the intraday stage, following the max-min criterion to improve the worst case scenario in the optimization objective.The day-ahead stage provides the pre-scheduling decision x for the rescheduling of intraday stage.The intraday stage provides the optimal rescheduling cost d T y under different prescheduling decisions for the day-ahead stage.The optimization processes of the day-ahead scheduling and the intraday scheduling are coupled and nested with each other.

Uncertainty modeling of renewable energy based on wasserstein distance

40According to stochastic optimization theory, the uncertainty of renewable energy power generation follows an empirical distribution extracted from historical prediction error data.Based on stochastic optimization theory and combined with robust optimization theory, a fuzzy set is established to obtain the uncertainty set of real distribution, which contains the worst case scenario of real distribution.

41Firstly, the empirical distribution D e can be determined based on the prediction error sample set {ω ti

42M } of M uncertain variables, and D e is used as an estimate of the true distribution D of the prediction error.Following [32,33], D e can be constructed, as shown in Eq. (23).

43In formula, M represents the sample quantity.δ ω ti m represents the random variable formed by prediction error of renewable energy.The cumulative distribution function can be obtained by assigning 1/M of probability mass to M prediction error of renewable energy, namely empirical distribution.Each prediction error data is a support point for the random variable.Therefore, the empirical distribution is a discrete uniform distribution established on M historical data points, which are independent and identically distributed.

44Secondly, a fuzzy set should be constructed based on D e , which must contain D as much as possible and satisfies lim

45Furtherly, the Wasserstein distance is used to measure the distance between D e and D, and construct a fuzzy set [34].The definition of Wasserstein distance is shown in Eq. (24).

46In formula, inf(⋅) is the infimum function.ω u e and ω ti are uncertain parameters, which follow the distributions of D e and D, respectively.

47Π(⋅) is the joint distribution of D e and D. Thirdly, the definition of fuzzy set l is shown in Eq. (26).

48In formula, L(Ξ) is all probability distributions in support set Ξ. l is a Wasserstein sphere, the center of the sphere is D e , with a radius of ε(M).In the fixed confidence degree, l includes all possible probability distributions.

49The conservatism of the DRO model can be controlled by ε(M), which can be calculated by Eq. (27).

50In formula, α represents the confidence level.F M is a constant.μ ti is the average value of the sample data.δ is a parameter.ω u m is the mth uncertainty parameter.

Support set based on data driven

51The support set Ξ can be calculated by sample data {ω ti 1 , ω ti 2 , ⋯, ω ti M } [35].For the convenience of calculations, the sample set is standardized by the regularization method, as shown in Eq. (29).

52In formula, Γ ti is the variance of the sample data.ω ti m is the m-th sample data.After normalized, the mean of uncertain parameter sample θ u is 0, and the variance is I. Assuming Φ is the support set of θ u , the definition is shown in Eq. (30).

53In formula, θ u m is the m-th element of θ u .l is the boundary of θ u m .A reasonable l can be obtained by solving Eq. (31).It not only ensures random event θ u m ∈Φ occurs with a high probability, but also enables Φ small enough to ensure low conservatism.sup

54In formula, l max is the maximum of l. p std and l std are probability distribution and fuzzy set of uncertain parameter θ u , respectively.φ is confidence.

55When the optimal l is obtained, a support set based on data driven Ξ can be get by Eq. ( 32).

Ξ = (

56Γ ti ) 0.5 Φ + μ ti (32)

Modeling and calculation method of Port energy system scheduling based on DRO

57In the two-stage optimization of this article, it is necessary to ensure the consumption of renewable energy and the reliable supply for load in the day-ahead stage [36].The pre-scheduling stage is based on the prediction information of day-ahead stage, and ignores the uncertainty risk caused by prediction errors.In the process of system actual operation, due to the uncertainty of renewable energy, the scheduling strategy obtained in the pre-scheduling stage may not actually be the optimal result.According to the scheduling strategy of pre-scheduling stage, the system will need a lot of power exchange with municipal power grid in the intraday stage, in order to balance supply and demand imbalance caused by renewable energy uncertainty.It results in higher total scheduling cost.Therefore, the rescheduling of system in the intraday stage is needed to stabilize the power fluctuation of renewable energy, when there is a prediction error ω u in the renewable energy power generation.The rescheduling is carried out based on the real-time running data and pre-scheduling strategy.During the process of rescheduling, the electricity quantities purchased and sold by power grid and outputs of equipment have been adjusted, the power curtailment of renewable energy power generation and load shedding also have been carried out.Through adjusting pre-scheduling strategy, the rescheduling of intraday stage can optimize the total cost of the above state two stages, which has been applied in Tianjin Port.It also indicates that the two-stage optimization model could effectively address this interdependence between the both stage, which can contribute to the objective of total cost optimization.The distinctions in data characteristics between the day-ahead and intraday stages is shown in Table 1.

Table 1

58Distinctions in data characteristics between the day-ahead and intraday stages. of municipal power grid power, as shown in Eq. (33).The port energy system is connected to the power grid by tie-line through grid-connected inverters and distribution transformers.The fluctuation of tie-line is directly related to the renewable energy power generation.Due to the influence of environmental factors, the renewable energy power generation has fluctuation and uncertainty.The stability of the port energy system under high renewable energy penetration level is more serious, and the power fluctuation of tieline intensifies, which is not conducive to the safe and stable operation of the power grid.Therefore, North China Power Grid Company introduces fluctuation penalty cost in trading settlement, which can help to guide port to reduce power fluctuation of renewable energy power generation, in order to smooth the tie-line power and maintain safe and stable operation of the power grid. is the price of nature gas.c pr,CO2 is the carbon price.δ g,CO2 and δ p,CO2 are respectively the carbon emissions factors of nature gas and municipal power grid.c vary is power fluctuation penalty coefficient of municipal power grid.P vary t is the power fluctuation of municipal power grid caused by renewable energy.

Rescheduling cost in the intraday stage

59Due to the unknown true distribution of ω u , within the Wasserstein distance-based fuzzy set l , the goal of Eq. ( 36) is to minimize the rescheduling cost under the worst-case scenario.The rescheduling cost includes such energy purchase and sale cost Cmain t , carbon emission cost CCO2 t , and penalty cost Ccut t for power curtailment of renewable energy power generation and load shedding, as shown in Eq. (37).are the adjustment value of the quantity that port sells electricity to municipal power grid, and port purchases electricity from municipal power grid.c pr,g t is the price of nature gas.GGT t and GGB t are the adjustment values for gas consumption of gas turbine and gas fired boiler, respectively.c pr,re and c pr,load are penalty coefficients for the power curtailment of renewable energy power generation and load shedding.P cut,wt t P cut,pv t and P cut,load t are the quantity for the power curtailment of wind turbine, photovoltaic and load shedding.

Day-ahead stage

60The pre-scheduling in the day-ahead stage needs to meet various equipment constraints, as shown in Section 2. In addition, it is also necessary to meet municipal power grid operation constraints and energy balance constraints.

61(1) Municipal power grid operation constraints

62In formula, U MPG t is 0-1 variable.U MPG t = 1 represents port purchases electricity from the municipal power grid.U MPG t = 0 represents port sells electricity to the municipal power grid.P MPG max is the upper limit of exchange power between port and municipal power grid.

63(2) Energy balance constraints

Intraday stage

64On the basis of pre-scheduling, the port energy system should be adjusted through rescheduling of intraday stage.The rescheduling in the intraday stage should also meet the equipment operation constraints in Section 2. In addition, it is also necessary to meet the curtailment constraints of renewable energy and load, and energy balance constraints.

65(1) Curtailment constraints of renewable energy and load

66In the formula, P cut,i t and P cut,load t respectively represent the reduction of renewable energy power generation and load.ω u is the prediction error of renewable energy power generation.

67(2) Energy balance constraints

Reconstruction of scheduling model for port energy system

68The two-stage scheduling model of port energy system based on DRO can be expressed as a min-max-min three-layer optimization as shown in Eq. (51).

69Because Eq. ( 50) contains D, D ∈ l and ω u ∈ Ξ, the constraint contains prediction error random variables and becomes an infinite limit.Therefore, the two-stage scheduling model based on DRO belongs to a semi-infinite programming model, which is difficult to directly solve.Therefore, this section reconstructs it into the mixed integer linear programming model for solution through strong duality theorem, and the reconstruction process is as follows.

70Firstly, according to strong duality theorem, the worst-case scenario expectation can be rewritten as Eq. ( 52).

71sup

72In formula, σ is a dual variable.

73Secondly, Eq. ( 51) under support set Ξ can be equivalently represented as Eq.(53).

74In formula, Ax ≤ b represents the constraints of pre-scheduling stage.Zy(x, ω u ) ≤ g(ω u ) represents the constraints of rescheduling X. Liu stage.Thirdly, Eq. ( 53) also contains a max-min problem, which is difficult to solve directly.Therefore, auxiliary variable β m needs to be introduced, and Eq. ( 53) is rewrote to Eq. (55).

75) is a convex function about variable ω u [37], then the optimal solution of sup

76) must be obtained on the upper and lower bounds (ω s , ω x ) of ω u or ωn ∈ Ξ, ∀m = 1, 2, ⋯, M .Obviously, Q(x, ω u ) is a linear function of ω u .In addition, y(x, ω u ) and g(ω u ) also have a linear relationship with ω u .Therefore, under the support set Ξ, sup

77)) takes value within the upper and lower bounds of ω u .

78In conclusion, the scheduling model of port energy system based on DRO can be reconstructed into a mixed integer linear programming model, which is easy to solve, such as in Eqs.( 57) and ( 58).The error variable ω u of renewable energy power generation is no longer included in Eqs.( 57) and ( 58).Therefore, this model has become a mixed integer linear programming problem, which can be solved directly through commercial solvers.

79Significantly, the rescheduling decision is transformed to a prediction error function in Eqs.( 57) and ( 58), the final result of twostage scheduling based on DRO is the pre-scheduling result.

Example analysis

80By building rooftop photovoltaic (PV) and offshore wind turbine (WT), Tianjin Port builds a integrate energy system wherein renewable energy constitutes the main body of energy, supplemented by natural gas distributed energy system, and coordinated with municipal power grid (MPD), in order to optimize the synthetical efficiency for low-carbon energy utilization.

81The research results of this article have been demonstrated in the northern port of Tianjin Port.From the short-running operational effect, hydrogen energy is treated as a green energy carrier in Tianjin Port that can enhance the capacity of renewable energy utilization and promote the low-carbon transition of port energy system.Moreover, the economy and flexibility of energy system in Tianjin Port can be improved by the ammonia synthesis after hydrogen production using renewable energy.

82Therefore, Simulation was conducted in Part V using real data from Tianjin Port.Part V can obtain various load and device information required for simulation through actual data from Tianjin Port.The load in the northern port mainly comes from the ship shore power and the heating and cooling requirements of container terminal.A notice will be issued before the ship arrives at the northern port, the port load can be calculated according to the notice, and the level of uncertainty is small.Therefore, this article has not yet considered the uncertainty of load.With the development of demonstration areas, the uncertainty of port load will be considered in the future.The results of example analysis were consistent with the Tianjin Port trial running data.It can demonstrate that the scheduling method based on distributionally robust optimization has outstanding advantages in the computing time and renewable energy utilization to improve the flexibility and economy of energy system in Tianjin Port.Example analysis verified this article from three sections.Section 5.2 analyzes the impact of load rate adjustment on the safety constraints of the ammonia synthesis section, confirms the rationality of Eqs. ( 4) and ( 5) to describe the control inertia of the ammonia synthesis reaction in this article.From comparison of P2H2A system under various optimization methods, the advantage of DRO in the renewable energy utilization and the regulation ability of hydrogen storage tank is confirmed.

83Section 5.3 shows comparison results of deterministic optimization, stochastic optimization, robust optimization, and confirms that DRO can improve the capacity of anti-risk for stochastic optimization and overcome the conservatism of robust optimization on the one hand, and consider economy and robustness on the other hand.The pre-scheduling results based on DRO are consistent with the Tianjin Port operation data.

84Section 5.4 illustrates that DRO can reflect the decision-making risk preference of the port energy system by adjusting the Wasserstein distance-based sphere radius, and confirms that DRO considers the uncertainty of probability distribution and has the X. Liu advantages of stochastic optimization and robust optimization.

Example settings

85The energy purchase and sale prices at Tianjin Port are shown in Fig. 3. Equipment parameters of Tianjin Port are shown in Table 2. Referring to the market price in recent years, the sale price of ammonia at the port is set to 393.96 $/ton.The port has one offshore wind-farm and one rooftop photovoltaic.The predicted error data of renewable energy power generation is sourced from the publicly available data of Tennet [38].The scheduling period is 24 h, and the time interval of scheduling is set to 1 h.In the example analysis, this paper uses the YALMIP tool kit in MATLAB to call CPLEX to solve the scheduling model of port energy system based on DRO.The computer parameters are Intel Corei5 1.99 GHz CPU and 8 GB memory.

Simulation verification of scheduling constrains for ammonia synthesis

86To verify the impact of load rate adjustment on the safety constraints of the ammonia synthesis section, the model of ammonia synthesis section was established in this paper, such as the ammonia converter, circulation recovery, and ammonia separation.The simulation results of ammonia production volume, hydrogen production volume, ammonia converter pressure and temperature are shown in Fig. 4. The load rate adjustment command of ammonia synthesis section is shown in Fig. 4 (a) by the blue solid line and green solid line, which decreases from 0.6 ton/h to 0.2 ton/h after 0.4 h or 1 h.The response processes are shown by the orange solid line (0.4 h) and yellow solid line (1 h) in Fig. 4, according to the load rate adjustment command of ammonia synthesis section.Security constrain is shown by the black solid line in Fig. 4 (c) and Fig. 4 (d).

87The impact of ramp rate of load rate adjustment on the safety constraints of ammonia synthesis section is analyzed as follows.When the ramp rate of load rate adjustment is relatively small, it can ensure that the ammonia synthesis reaction transitions smoothly to the new steady state, and the temperature and pressure of the ammonia converter meet safety constraints.When the ramp rate of load rate adjustment is relatively large, due to the large inertia of mass and heat transfer in the ammonia synthesis section, it is difficult to adjust in a timely manner.It results in the significant fluctuation of temperature and pressure of ammonia converter, which violates safety constraints.Using Eqs. ( 4) and ( 5) to describe the control inertia of the ammonia synthesis reaction in this article is more reasonable, and the time interval of scheduling of 1 h is reasonable.

88Using the system parameters given in Section 5.1, the running status of P2H2A can be calculated and shown in Fig. 5, based on the distributionally robust optimization scheduling model of port energy system in Section 4.

89Fig. 5 shows the curves of hydrogen production volume, residual capacity of hydrogen storage tank and ammonia production volume under different scheduling method, such as deterministic optimization, robust optimization and DRO.As shown in Fig. 5 (a), compared to deterministic optimization, DRO utilizes almost the same amount of renewable energy power generation without causing the power curtailment of wind turbine and photovoltaic.As shown in Fig. 5 (b) and Fig. 5 (c), compared to deterministic optimization, DRO can reduce the smoothness of ammonia production volume slightly, which can make the residual capacity of the hydrogen storage tank no longer touch the upper limit constraint and enhance the robustness of the scheduling method.Compared with robust optimization, DRO better utilizes the renewable energy power generation and the regulation ability of hydrogen storage tank, which can effectively improve economic benefits of P2H2A.

Scheduling result analysis of distributionally robust optimization

90The probability distribution of prediction error of renewable energy power generation at each prediction time scale was obtained by kernel density estimation, as shown in Fig. 6.With the inverse function of prediction error probability distribution, the output interval of renewable energy power generation can be obtained, and the confidence level is 95%.The scenarios of renewable energy power generation can be obtained by K-means clustering.The number of scenarios is 20, and the radius of sphere is 1 MW.

91The comparison results of deterministic optimization, stochastic optimization, robust optimization, and DRO are shown in Table 3.

92Fig. 3. Energy purchase and sale price of port.

X. Liu

93Random optimization, robust optimization, and DRO are all two-stage scheduling methods.Deterministic optimization is a single stage scheduling method, which does not need to consider the rescheduling process and has no related cost.As shown in Table 3, the total scheduling cost of deterministic optimization is the lowest.But this does not mean that deterministic optimization is superior to uncertain optimization.The pre-scheduling of deterministic optimization is based on the prediction information of day-ahead stage, without considering the uncertainty risk and rescheduling cost caused by prediction errors.In the X. Liu intraday stage, deterministic optimization requires a large amount of power exchange between port and municipal power grid, in order to solve the power imbalance problem caused by prediction errors of renewable energy power generation.It results in higher actual scheduling costs.

94In uncertain optimization methods, stochastic optimization has the lowest pre-scheduling and rescheduling costs, because they are calculated based on precise probability distribution.However, a precise probability distribution will result in an overly optimistic risk expectation in the intraday stage.Insufficient power exchange between port and municipal power grid in the day-ahead stage will Robust optimization has the highest pre-scheduling and rescheduling costs, which are calculated based on the prediction error of worst-case scenario.In the day-ahead stage, robust optimization requires increasing power exchange between port and municipal power grid to enhance the capacity of anti-risk in the intraday stage, and has good robustness.However, it will result in the highest prescheduling cost and the worst economic property.

95The pre-scheduling and rescheduling costs of DRO are between stochastic optimization and robust optimization.The main reason is that pre-scheduling of DRO is made based on the forecasting error and its probability distribution under worst-case scenario.With the complementary advantages of stochastic optimization and robust optimization, DRO can improve the capacity of anti-risk for stochastic optimization and overcome the conservatism of robust optimization on the one hand, and give consideration to economy and robustness on the other hand.

96In this paper, the rescheduling decision is transformed to a prediction error function in Eqs.( 57) and ( 58), so the final result of twostage scheduling based on DRO is the pre-scheduling result.The composition of pre-scheduling cost under different optimization methods shown in Table 4.

97As shown in Table 4, by comparison with deterministic optimization and stochastic optimization, DRO and robust optimization have higher pre-scheduling cost, due to the increase in electricity purchases from the municipal power grid by port.At the same time, both also have higher carbon emission cost.The main reason is that in order to improve the capacity of anti-risk in the intraday stage, the pre-scheduling scheme increased the electricity purchased from the municipal power grid, which is dominated by thermal power plants.The increase in electricity purchase results in lower nature gas purchase cost of robust optimization and DRO.Robust optimization is expected to have highest power fluctuation cost based on the worst-case scenario, and there was no significant difference among the others.The sales revenue of liquid ammonia is 243.66 $ in robust optimization, and that of DRO is 294.91 $.Compared with 243.66 $, a 21.03 per cent rise on the sales revenue of liquid ammonia of DRO.

98The detailed results of pre-scheduling based on DRO are shown in Fig. 7.By comparison with absorption cooler in Table 2, electric cooler has higher cooling efficiency.As shown in Fig. 7 (a) and Fig. 7 (d), the cooling load is mainly supplied by electric cooler, while the rest is supplied by absorption cooler.During the period from 8:00 to 19:00, the renewable energy power generation is less than the electric load.Due to the high electricity purchase price during this period, the cooling load is mainly supplied by absorption cooler, in order to reduce the cost of electricity purchased from the municipal power grid (MPD).

99As shown in Fig. 7 (b) and Fig. 7 (d), the renewable energy power generation is less than the electric load, and both the electric and heating loads are mainly supplied by gas turbines, during the period from 8:00 to 19:00.Surplus thermal energy is stored in the heat energy storage device, which can shift the above thermal energy to the period of 21:00-6:00 for use, lowering the cost of thermal energy supply.During the period from 21:00 to 6:00, the renewable energy power generation is relatively high, so the gas turbine will be kept at lowest possible power to provide reserve capacity.The heating load is mainly supplied by the gas boiler.

100As shown in Fig. 7 (c) and Fig. 7 (d), hydrogen generation by water electrolysis can improve the capacity of renewable energy utilization, during the periods of 6:00-7:00 and 21:00-5:00.The ammonia synthesis system also tends to operate during this period.During the period from 9:00 to 18:00, the ammonia synthesis system operates stably on a lower power level, in order to reduce the cost of electricity purchased from the municipal power grid.During the period from 21:00 to 6:00, there was no significant power fluctuation between port and municipal power grid.The mainly reason is that ammonia synthesis after hydrogen production by water electrolysis can adapt to the uncertain properties of renewable energy, which can effectively stabilize power fluctuation.As shown in Fig. 7 (d), the power exchange between the port and the municipal power grid is mainly used as a supplementary method, when the port energy system is unable to satisfy the electric load demand or consume renewable energy power generation.Renewable energy still constitutes the main body of energy at the port area.

Sensitivity analysis of distributionally robust optimization scheduling

101Distributionally robust optimization is an uncertain optimization method that combines stochastic optimization and robust optimization.Through the analysis in Part III, the Wasserstein distance-based sphere radius has a clear meaning, the sphere radius of its Wasserstein distance-based fuzzy set determines whether DRO favors risk neutral stochastic optimization or risk averse robust optimization.The sensitivity analysis in Section 5.4 can provide intuitive data as a reference for decision-makers.The original work of this paper is to do the sensitive analysis of α and M.But according to feedback from decision-makers, it is indeed not as intuitive as the sensitivity analysis of Wasserstein distance.Therefore, in order to meet the demand of project, this section conducted a sensitivity analysis of Wasserstein distance-based sphere radius, without addressing the sensitivity analysis of α and M. The relationship between pre-scheduling cost and Wasserstein distance-based sphere radius is shown in Fig. 8, which indicates the impact of Wasserstein distance-based sphere radius on risk preference.

102As shown in Fig. 8, the pre-scheduling costs of stochastic optimization and robust optimization are constant, which have nothing to do with Wasserstein distance-based sphere radius.The pre-scheduling cost of DRO falls between stochastic optimization and robust optimization, and varies with the Wasserstein distance-based sphere radius.As the Wasserstein distance-based sphere radius increases, the pre-scheduling cost of DRO gradually deviates from risk neutral stochastic optimization and leans towards risk averse robust optimization.

103When leaning towards stochastic optimization, pre-scheduling decision tends to be economic.It indicates that the decision-maker believes that the probability distribution of uncertain variables is accurate enough or historical data is adequate to construct the fuzzy set.When leaning towards robust optimization, pre-scheduling decision tends towards robustness.It indicates that the decision-maker believes that significant risks will arise in the future, and priority should be given to the reliability of the pre-scheduling decision.In summary, DRO can reflect the decision-making risk preference of the port energy system by adjusting the Wasserstein distance-based sphere radius.It can achieve reasonable scheduling that balances economy and robustness.

104When the Wasserstein distance-based sphere radius remains constant, distributionally robust optimization scheduling is also affected by the number of scenarios, which is used to build the Wasserstein distance-based fuzzy set.The relationship between prescheduling cost (Black dots), calculation time (red line) and number of scenarios is shown in Fig. 9.

105As shown in Fig. 9, when the number of scenarios is small, the pre-scheduling cost is divergent and the variance is large.It indicates that a small number of scenarios are difficult to accurately reflect the true distribution of renewable energy power generation, which has significant uncertainty.As the number of scenarios increases, the variance gradually decreases, which can promote the Wasserstein Before the model reconstruction, there were 2111 decision variables of pre-scheduling and rescheduling.After the model reconstruction, there were 3071 decision variables of pre-scheduling and linear decision rule.The number of decision variables after model reconstruction significantly increased.However, when the number of scenarios in Fig. 9 is greater than 15, the pre-scheduling cost will no longer fluctuate significantly, and the calculation time is in the range of 1200 s-6600 s.It can meet the demands of day-ahead scheduling calculation time.Therefore, this paper proposed model can meet the demand for computing efficiency.

106In addition, DRO considers the uncertainty of probability distribution, and has the advantages of stochastic optimization and robust optimization, which are illustrated by the following example.Assuming that the prediction error of renewable energy power generation corresponds to the normal distribution, five different mean values are selected to generate renewable energy power generation scenarios by Latin hypercube sampling.The pre-scheduling costs under different mean values are shown in Table 5.

107As shown in Table 5, the deterministic optimization does not consider prediction errors, resulting in the lowest pre-scheduling cost and overly optimistic risk expectation.Meanwhile, its pre-scheduling cost remains unchanged, and it's impossible to adjust the risk expectation based on historical prediction error data.

108Stochastic optimization is based on probability distribution information to conduct optimal scheduling.When the actual value of renewable energy power generation is greater than the predicted value (i.e., the mean value is greater than 0), its pre-scheduling cost approaches the pre-scheduling cost of deterministic optimization, reflecting optimistic risk expectation.When the actual output of renewable energy is less than the predicted output (i.e., the mean value is less than 0), its pre-scheduling cost increases as the mean value decreases, reflecting negative risk expectation.However, it does not consider the uncertainty of probability distribution, so its robustness is poor.

109Robust optimization has the highest pre-scheduling cost, indicating its strongest robustness.But it does not utilize probability distribution information, so its economy is the worst.It shows an overly negative attitude towards risk expectation.The trend of the pre-scheduling cost of DRO changing with the mean value is the same as that of stochastic optimization, indicating that it has the characteristic of reflecting risk expectation as stochastic optimization.Its higher pre-scheduling cost indicates that it has the robustness as robust optimization.

Conclusions

110In order to effectively address the uncertainty risks of port energy system caused by intermittence and fluctuation of renewable energy, this paper proposes a scheduling method for port energy system based on distributionally robust optimization (DRO).This method organically integrates Wasserstein distance-based fuzzy set, "electricity, green hydrogen, ammonia synthesis", and distributionally robust optimization, and uses synthesis after hydrogen production by water electrolysis (P2H2A) as a flexible resource to improve the capacity of renewable energy utilization, which helps to achieve optimal scheduling of the port energy system.Finally, based on the real data of port energy system, example analysis was conducted, and the following conclusions were obtained.

111(1) The time series scheduling model of P2H2A is intuitive to quantify the capacity for adjust the speed of the change of load rate.

112P2H2A can provide low-carbon flexible resources for the port energy system, has the ability to adapt to the uncertainty of renewable energy, and can effectively improve the economy of the port energy system scheduling scheme.(2) The scheduling method based on DRO, which realizes combined operation of day-ahead stage and intraday stage, overcomes the shortcomings as the poor risk-resistance of stochastic optimization and too conservative of robust optimization.It can simultaneously have the advantages as stochastic optimization reflecting risk expectation based on historical prediction error data and robust optimization with strong robustness.(3) Wasserstein distance-based fuzzy set is used to characterize the uncertainty of renewable energy power generation.Under the two risk preferences of risk neutral and risk averse, DRO can balance the economy and robustness of scheduling schemes by flexibly adjusting the Wasserstein distance-based sphere radius.It helps the port energy system consider the uncertainty of renewable energy generation to balance the economy and robustness of scheduling schemes.

113In order to further improve the real-time and practical performance of scheduling method, the next research focus will be on exploring the construction of a multiple time scales collaborative scheduling framework considering the uncertainty of load, which integrates DRO, rolling optimization of intraday stage, and real-time compensation mechanisms.

114Contents lists available at ScienceDirect Heliyon journal homepage: www.cell.com/heliyonhttps://doi.org/10.1016/j.heliyon.2024.e27615Received 25 July 2023; Received in revised form 18 January 2024; Accepted 4 March 2024 Nomenclature P P2H t the power consumption of P2H at time t P P2H,0

115th element of θ u l the boundary of θ u m l max the maximum of l p std , l std the probability distribution and fuzzy set of uncertain parameters C main t the energy purchase and sale cost C CO2 t the carbon emission cost C vary t the fluctuation penalty cost c pr,NH3

Fig. 4 .

116Fig. 4. The dynamic responses of the ammonia synthesis section under different ramp rate of load rate.

Fig. 5 .

117Fig. 5. Result comparison of P2H2A system under various optimization methods.

Fig. 6 .

118Fig. 6.Forecast error probability distribution.

119X. Liureduce the capability of anti-risk of stochastic optimization in the intraday stage.It results in the worst robustness of stochastic optimization.

Fig. 7 .

120Fig. 7. Results of pre-scheduling based on distributionally robust optimization.

121fuzzy set to converge to the true distribution.However, the calculation time increases sharply with the increase of the number of scenarios.Therefore, it is necessary to analyze the computational efficiency of the scheduling model based on DRO.

Fig. 8 .

122Fig. 8. Pre-scheduling cost under different Wasserstein distance-based sphere radius.

Fig. 9 .

123Fig. 9. Pre-scheduling costs and their calculation time under different number of scenarios.

124HESis heat storage/release efficiency for HES.VOL HES is the installed capacity of HES. S HES max and S HES min are the upper and lower limits of SOC for HES.H HES max is the upper limit of power for HES.

125t respectively represent the power of heat storage/release for HES at time t.η

Table 2

126Equipment parameters of port.

Table 3

127Scheduling results under different optimization methods.

Table 4

128Composition of pre-scheduling cost under different optimization methods.

Table 5

129Pre-scheduling costs under different mean values.

참고문헌 33건

  1. Combined scheduling and capacity planning of electricity-based ammonia production to integrate renewable energies European Journal of Operational Research · Elsevier BV · 2014 10.1016/j.ejor.2014.08.039
  2. Ambiguity in portfolio selection Quantitative Finance · Taylor & Francis · 2007 10.1080/14697680701455410
  3. A Distributionally Robust Optimization Model for Unit Commitment Considering Uncertain Wind Power Generation IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2016 10.1109/tpwrs.2016.2544795
  4. Distributionally robust hydro-thermal-wind economic dispatch Applied Energy · Elsevier BV · 2016 10.1016/j.apenergy.2016.04.060
  5. Optimal Wind Farm Allocation in Multi-Area Power Systems Using Distributionally Robust Optimization Approach IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2017 10.1109/tpwrs.2017.2695002
  6. Optimal scheduling for wind-powered ammonia generation: Effects of key design parameters Process Safety and Environmental Protection · Elsevier BV · 2017 10.1016/j.cherd.2017.10.010
  7. Data-driven risk-averse stochastic optimization with Wasserstein metric Operations Research Letters · Elsevier BV · 2018 10.1016/j.orl.2018.01.011
  8. Wasserstein Metric Based Distributionally Robust Approximate Framework for Unit Commitment IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2019 10.1109/tpwrs.2019.2893296
  9. A review of energy efficiency in ports: Operational strategies, technologies and energy management systems Renewable and Sustainable Energy Reviews · Elsevier BV · 2019 10.1016/j.rser.2019.04.069
  10. Distributionally Robust Chance-Constrained Approximate AC-OPF With Wasserstein Metric IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2018 10.1109/tpwrs.2018.2807623
  11. Large-scale industrial energy systems optimization under uncertainty: A data-driven robust optimization approach Applied Energy · Elsevier BV · 2019 10.1016/j.apenergy.2019.114199
  12. A Wasserstein based two-stage distributionally robust optimization model for optimal operation of CCHP micro-grid under uncertainties International Journal of Electrical Power & Energy Systems · Elsevier BV · 2020 10.1016/j.ijepes.2020.105941
  13. A Roadmap to the Ammonia Economy Joule · Elsevier BV · 2020 10.1016/j.joule.2020.04.004
  14. Enhanced hydrogen generation efficiency of methanol using dielectric barrier discharge plasma methodology and conducting sea water as an electrode Heliyon · Elsevier BV · 2020 10.1016/j.heliyon.2020.e04717
  15. Two-stage robust stochastic scheduling for energy recovery in coal mine integrated energy system Applied Energy · Elsevier BV · 2021 10.1016/j.apenergy.2021.116759
  16. Performance assessment and economic perspectives of integrated PEM fuel cell and PEM electrolyzer for electric power generation Heliyon · Elsevier BV · 2021 10.1016/j.heliyon.2021.e06506
  17. Dynamic modelling of a solar hydrogen system for power and ammonia production International Journal of Hydrogen Energy · Elsevier BV · 2021 10.1016/j.ijhydene.2021.01.201
  18. Co‐optimisation and settlement of power‐gas coupled system in day‐ahead market under multiple uncertainties IET Renewable Power Generation · Institution of Engineering and Technology · 2021 10.1049/rpg2.12073
  19. How sensitive is a dynamic ammonia synthesis process? Global sensitivity analysis of a dynamic Haber-Bosch process (for flexible seasonal energy storage) Energy · Elsevier BV · 2021 10.1016/j.energy.2021.121016
  20. Development and performance assessment of new solar and fuel cell-powered oxygen generators and ventilators for COVID-19 patients International Journal of Hydrogen Energy · Elsevier BV · 2021 10.1016/j.ijhydene.2021.07.101
  21. Optimal operation of the hydrogen-based energy management system with P2X demand response and ammonia plant Applied Energy · Elsevier BV · 2021 10.1016/j.apenergy.2021.117559
  22. Optimal Energy Management for Multi-Microgrid Under a Transactive Energy Framework With Distributionally Robust Optimization IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2021 10.1109/tsg.2021.3113573
  23. Co-Planning of Regional Wind Resources-based Ammonia Industry and the Electric Network: A Case Study of Inner Mongolia IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2021 10.1109/tpwrs.2021.3089365
  24. Challenges of integrating hydrogen energy storage systems into nearly zero-energy ports Energy · Elsevier BV · 2021 10.1016/j.energy.2021.122878
  25. Dynamic energy and mass balance model for an industrial alkaline water electrolyzer plant process International Journal of Hydrogen Energy · Elsevier BV · 2021 10.1016/j.ijhydene.2021.11.126
  26. Short-term renewable energy consumption and generation forecasting: A case study of Western Australia Heliyon · Elsevier BV · 2022 10.1016/j.heliyon.2022.e09152
  27. Optimal Port Microgrid Scheduling Incorporating Onshore Power Supply and Berth Allocation Under Uncertainty Applied Energy · Elsevier BV · 2022 10.1016/j.apenergy.2022.118856
  28. Hydrogen-driven Power-to-X: State of the art and multicriteria evaluation of a study case Energy Conversion and Management · Elsevier BV · 2022 10.1016/j.enconman.2022.115814
  29. Economics of marinised offshore charging stations for electrifying the maritime sector Applied Energy · Elsevier BV · 2022 10.1016/j.apenergy.2022.119389
  30. Distributionally robust optimal scheduling of integrated energy systems including hydrogen fuel cells considering uncertainties Energy Reports · Elsevier BV · 2023 10.1016/j.egyr.2023.08.029
  31. Towards technology, economy, energy and environment oriented simultaneous optimization of ammonia production process: Further analysis of green process Heliyon · Elsevier BV · 2023 10.1016/j.heliyon.2023.e21802
  32. Comprehensive environmental and techno-economic feasibility assessment of biomass- solar on grid hybrid power generation system for Burdur Mehmet Akif Ersoy University Istiklal Campus Heliyon · Elsevier BV · 2023 10.1016/j.heliyon.2023.e22264
  33. A Bi-level Optimization-based Architecture for the Scheduling and Real-Time Control of Microgrids With Hydrogen Production System IFAC-PapersOnLine · Elsevier BV · 2023 10.1016/j.ifacol.2023.10.1015