Optimal Operation and Market Integration of a Hybrid Farm with Green Hydrogen and Energy Storage: A Stochastic Approach Considering Wind and Electricity Price Uncertainties

[ad_1]

1. Introduction

The integration of renewable energy sources in electrical systems has increased significantly in recent years [1]. Nonetheless, the intermittent availability of these sources presents challenges in terms of grid stability. A potential solution to this issue is the use of energy storage systems (ESSs) [2]. Lithium batteries are the most promising ESS technology due to their energy density and reduced costs [3].
Another possibility to consider is to utilize electricity for green hydrogen production [4]. This can be achieved by means of an electrolyzer, which uses electrical energy to produce hydrogen by splitting water molecules. Alkaline electrolyzers (AELs) are considered to be the most mature technology within their field [5].

These devices conform a system that can participate in both electricity and hydrogen markets. Modeling techniques should accurately address the components of such a system. Moreover, their control strategies need to take into account uncertainties caused by renewable sources and electricity price variability. Addressing these aspects has the potential to enhance the system’s profitability.

The current literature offers a range of techniques for ESS modeling. Authors in [6] present a classification of such techniques. This work considers the energy reservoir model, as recommended by the authors for energy system optimization.
In contrast, the literature on AEL modeling is more scarce. Work in [7] presents a mathematical model that considers efficiencies and operating temperature. A model that incorporates operation states and the transition times between them is proposed in [8].

The aforementioned models are often incorporated into an optimization program with an objective function that governs the system’s techno-economic goals. This optimization program may be linear or nonlinear depending on the chosen formulations. It is called stochastic if uncertainties are considered and deterministic if they are not.

In a two-stage stochastic optimization problem, the first stage involves making decisions based on the forecasted values of uncertain parameters. A Monte Carlo simulation is used to assess several realizations of the uncertain parameters in the form of scenarios. The second stage updates the solution using the uncertain parameter realizations [9].
The literature has addressed the use of hydrogen in energy systems with different stochastic operating approaches. A stochastic model for microgrid optimization with the incorporation of hydrogen systems is presented in [10]; however, this work does not consider the participation in a hydrogen market. A risk-averse approach for hydrogen storage and wind generation system is proposed in [11], in which hydrogen is used solely for energy storage. Authors in [12] present a model predictive control (MPC) process for dealing with forecast deviations, and this work considers an islanded microgrid in which hydrogen is used for long-term storage. Two control layers, one for day-ahead and one for the real-time market, are proposed in [13] for a microgrid that also considers hydrogen consumers. On the other hand, this work is focused on a plant connected to a large electrical system.

In this paper, a simulation framework of a hybrid farm (HF) consisting of a wind turbine coupled with an ESS and an AEL is developed. The HF participates in the hydrogen and day-ahead electricity markets. This framework is used in different case studies with historical data in order to obtain insights into future hydrogen market and supply chain scenarios and into their influence on optimal plant configurations.

The model presented here is formulated as a mixed-integer linear program (MILP), which is well-suited for control simulations; hence, this approach is considered in this work. A new AEL model is presented, addressing partial load degradation or oxygen contamination, which is something not previously addressed in the literature.

A progressive optimization model for day-ahead market bidding and real-time operation is proposed. The use of bootstrap sampling in the second-stage costs is proposed. This approach allows for a more robust evaluation of the candidates’ solutions using the same data. Results show how this technique yields a better outcome than the most common Monte Carlo simulation approach. The proposed technique outperforms Monte Carlo simulation methods from the literature.

The contributions of this work can be summarized as follows:

  • A simple but accurate linear AEL model is proposed, including degradation mechanisms and partial load effects for power system simulations and optimization, which tend to be neglected in the literature.

  • A stochastic optimization algorithm is presented for day-ahead electricity market scheduling to deal with price and renewable production uncertainties, which outperforms existing stochastic and deterministic approaches while using the same input data.

  • The presented model is used in a simulation framework for studying future hydrogen market and supply chain scenarios and their effect on hybrid plant configurations. This analysis highlights the practical applications of the proposed model.

This paper is structured as follows. In Section 2, the mathematical modeling of the HF and its components is presented. The optimization models for day-ahead market commitment and real-time control are proposed in Section 3. Section 4 presents the stochastic optimization method proposed in this work. Section 5 presents the simulation framework for validating the proposed stochastic approach, along with the results and discussion of different case studies. Lastly, conclusions and future work are explored in Section 6.

2. Plant Components Modeling

In this section, the mathematical formulation of the battery energy storage system (BESS) and AEL models is presented. These models are subsequently integrated into an HF and coordinated with a wind turbine. The resulting HF is connected to the grid, enabling electricity market participation.

Energy generated by the wind farm can be stored by the BESS, used by the AEL, or sold on the electricity market. The BESS can also purchase energy in this market, and the AEL can also use stored energy. Hydrogen is sent to the hydrogen market or to an off-taker, as is illustrated in Figure 1.

The physical characteristics of the components are formulated as mixed-integer linear program constraints. This is a powerful mathematical tool that enables the integration of discrete decision variables. These discrete variables are well-suited for modeling the charging/discharging states of a BESS or the operational stages of an AEL. Furthermore, linear optimization is robust and well-suited for large-scale simulations.

The section progresses by first introducing the mathematical formulation of the BESS model, followed by the AEL model, and concluding with the introduction of the plant model.

2.1. Battery Energy Storage System

An electrochemical battery is a device that utilizes reduction–oxidation (redox) reactions to convert and store electrical energy in the form of chemical energy. This process involves the transfer of electrons between two materials, resulting in the generation of an electric current that flows through an external circuit. The redox reactions that drive this process occur within the cells of the battery, which are designed to facilitate the efficient conversion of energy [14].

The purpose of a BESS within an HF is to store energy generated by the renewable source for later use. This stored energy can be traded on the market when prices are favorable or utilized to compensate for deviations in energy generation. The integration of a BESS into an HF provides increased flexibility in renewable generator operation.

The most important part of a BESS model is the physical system, which is the electrochemical battery. Available modeling techniques in the literature vary primarily in their level of complexity and precision. Models that offer a more detailed representation of the electrochemical processes also come with higher computational burden, which affect the efficiency of long-term simulations [6].
Authors in [15] have established a classification of different BESS models. In this work, the energy reservoir model has been chosen. They are the most efficient and robust for energy management applications and extended simulations.

The input variable for these models is the charge/discharge power over a specific time period. It is assumed that such power is constant throughout the period.

The degradation of an electrochemical battery, which leads to reduced performance, can be caused by both time and usage [16]. Modeling this process is important for long-term battery performance prediction.
Degradation by usage is influenced by the depth of discharge (DOD) [17]. Circulated current is also an important factor [18]. Lastly, ambient temperature also affects this process [19]. State of health (SOH) is a widely used indicator of battery performance, defined as the proportion of available capacity to its nominal value [20]:

S O H = C a p A v C a p N o m ,

where SOH is the state of health in per unit (pu), C a p A v is the currently available capacity, and C a p N o m is the nominal capacity, both in MWh.

The degradation model chosen in this work is based in the influence of DOD. This model is compatible with an energy reservoir BESS model and helps keep the linearity of the MILP model. Figure 2 depicts the relationship between the DOD and the number of lifetime cycles. This figure illustrates the number of cycles the BESS can provide during its useful life depending on its DOD, indicating how shorter cycles can extend it.
The loss of SOH during a specific optimization period can be computed considering the number of cycles the BESS is able to perform at a certain DOD during its lifetime as:

Δ S O H B E S S = c = 1 2 1 N c y c l e s ( D O D c )

.

The number of cycles until replacement, N c y c l e s ( D O D c )

, for a new BESS can be estimated by utilizing a given DOD. This is calculated for each cycle c. This is illustrated in Figure 2. The variation in state of health ( S O H B E S S ), measured in per unit, that results from this can be translated into a cost through the use of the units-of-production method described in [22].

The optimization problem’s constraints delimit the solution space to the physical limitations of the device. These constraints are as follows:

  • The BESS cannot be charged above its nominal power, as represented by the equation

    P c h ( t ) P n o m · N D ( t ) ,

    where P c h ( t )

    is the charging power during hour t in MW, P n o m is the nominal power in MW, and ND(t) is a boolean variable that is equal to 1 when the BESS is not discharging at time t.

  • The BESS cannot discharge above its nominal power, as represented by the equation

    P d i s ( t ) P n o m · N C ( t ) ,

    where P d i s ( t )

    is the discharging power during hour t in MW, P n o m is the nominal power in MW, and NC(t) is a boolean variable that is equal to 1 when the BESS is not charging at time t.

  • Charging power is always positive, as represented by the equation
  • Discharging power is also always positive, as represented by the equation

    P d i s ( t ) 0 .

  • The BESS cannot be charged and discharged simultaneously, as represented by the equation

    N C ( t ) + N D ( t ) 1 .

  • The resulting BESS power at period t is computed for convenience as

    P B a t ( t ) = P D i s ( t ) P C h ( t ) .

  • The energy stored at the end of the period equals the amount stored at the end of the previous hour and the charged/discharged energy considering efficiencies, as represented by the equation

    E ( t ) = E ( t 1 ) + P c h ( t ) · ξ C h P d i s ( t )

    ξ D i s ,

    where E(t) is the stored energy at the end of hour t in MWh, ξ C h is the charging efficiency as a percentage, and ξ D i s is the discharging efficiency as a percentage.

  • The SOC at any given time must be between the boundaries S O C m i n and S O C m a x .

  • The SOC at t = 0 , S O C i n i t , is set by the user for the first day of simulation, but it inherits its value from the final value of the previous day for multiple-day simulations.

  • The BESS daily degradation cost is computed as follows:

    D e g c o s t , B E S S = Δ S O H B E S S · K B E S S ,

    where D e g c o s t , B E S S is the daily BESS degradation cost in EUR, and K B E S S is the BESS replacement cost in EUR. The use of K B E S S for computing a cost from battery degradation creates an optimization problem for amortizing a future BESS replacement.

2.2. Alkaline Electrolyzer

An AEL is a device that uses an alkaline electrolyte to split water into hydrogen and oxygen. The device is composed of an anode, cathode, and an ion-conductive membrane. When an electric voltage is applied across the electrodes, the water molecules at the anode are oxidized, releasing oxygen gas and protons. These protons then migrate through the diaphragm to the cathode, where they combine with electrons to form hydrogen gas [5].
Hydrogen is a valuable energy vector, with the potential for use as fuel for transportation or as an energy source for industrial applications. Since an AEL can convert electrical energy into this material, it allows for the integration of renewable energy plants into hydrogen markets. This provides a revenue stream for these energy generators [23]. When electricity prices are low, green hydrogen can be produced with generated energy or by purchases on the market.
The literature on AEL modeling is limited in comparison to the literature on BESS. A common approach is the use of current–voltage models, as first proposed by Ulleberg in [7]. However, these models are not efficient for long-range simulations due to their nonlinear nature and excessive complexity.
Authors in [24] introduce a model for mixed-integer dynamic optimization with a high degree of nonlinearity. In [25], the nonlinearities caused by the relationship between the modeling of heat production and electrolysis are dealt with. The framework proposed by authors in [25] uses an auxiliary advanced AEL model to update a fixed electrolysis efficiency in order to avoid nonlinearities and improve accuracy.
A linear formulation, suitable for MILP, is presented in [8]. This model incorporates operational states and startup times, which are very important in alkaline electrolyzers. The authors studied the effect of variable wind energy on power-to-hydrogen using a fluctuating wind energy source.
The model presented in this work is linear, its input variable is active power, and its output is hydrogen flow. The proposed model, which is an extension of the formulation presented in [8], considers degradation caused by usage and start/stop cycles. The effect of partial loads in O 2 purity is also incorporated.
Authors in [26] argue that the deterioration of the electrolyte is a result of the dissolution of elements, as well as the detachment and coalescence of catalysts. The degradation process results in a decline in efficiency, as reported in [27].
Nevertheless, there is a lack of empirical data for examining the AEL operation’s impact on this aging process. This makes the incorporation of degradation into AEL modeling less common. A fixed rate of 1% efficiency loss per year is considered in [28]. Authors in [27] follow a similar strategy.
The degradation model proposed in this work follows a semi-empirical approach, which gives an approximation of operation impact on loss of useful life. To quantify the degradation caused by intermittent operation, a start/stop cycle counter is utilized, as a limited number of cycles have been reported in [29]. Additionally, a working hours model is taken into account, recognizing that the loss of efficiency is also proportional to the limited lifetime hours, as reported in reference [30].
This semi-empirical model integrates manufacturer’s data about useful life into short-term operation analysis. As with the BESS model, the lost of useful lifetime by operation is computed using the units-of-production method [22]:

Δ L i f e A E L ( t ) = H o u r s ( t ) E O L h o u r s + C y c l e s ( t ) E O L c y c l e s ,

where:

  • L i f e A E L ( t )

    : AEL remaining useful lifetime t (pu);

  • Hours(t): Hours of operation during time period t;

  • E O L h o u r s : Lifetime hours;

  • Cycles(t): Start/stop cycles performed during time period t;

  • E O L c y c l e s : Start/stop lifetime cycles.

Finally, the effect of partial loads on operation is considered. Hydrogen purity in oxygen decreases at lower current densities. This leads to the formation of explosive gases, as reported in [31]. After reaching a 2% H 2 concentration in O 2 , the AEL is shut down as a safety measure.
In the approach outlined in [8], a minimal load threshold is established to control the purity of hydrogen in oxygen. This approach does not consider the contamination process at variable loads, which results in a less flexible operation. In this work, empirical data from [31] are used to develop an oxygen contamination model.
The results obtained by experiments conducted by authors in are depicted in Figure 3. As demonstrated in [31], at 25% of rated power, the 2% safety limit is reached in less than one hour. It is worth noting that this process is not reversible; once the limit is reached, the AEL needs to be shut down for purging. The oxygen contamination model proposed in this work computes the level of hydrogen purity based on the operational conditions, formulated as follows:

Δ H 2 ( h ) = 3.5 5 · P ( h ) if 0.3 P ( h ) 0.7 0 if P ( h ) > 0.7 ,

where:

Figure 3.
Relationship between oxygen contamination and active power [31].

Figure 3.
Relationship between oxygen contamination and active power [31].
Sustainability 16 02856 g003
The current approach employs the electrolyzer’s input power as a decision variable. The device generates hydrogen only at nominal pressure and temperature conditions [8]. Reaching and maintaining such conditions requires energy. In the absence of this energy, the device begins to cool, ultimately reaching a fully cold state. Consequently, the system’s operational modes are defined as follows:
  • On mode: The AEL is producing hydrogen and operating at nominal conditions.

  • Idle mode: Nominal conditions are maintained, but the AEL is not producing hydrogen.

  • Off mode: The AEL is not generating hydrogen, and no energy is being applied to maintain nominal conditions, resulting in a gradual cooling until reaching a fully cold state.

These modes can be added to the formulation to increase the electrolyzer model’s accuracy by considering its operational behavior [32,33]. Transitioning from Off mode to On mode necessitates a starting energy proportional to the discrepancy between the electrolyzer’s current pressure and temperature and the conditions required for hydrogen production [34]. Both Off and Idle modes entail active power consumption, although power usage during Off mode is minimal. In this work, such power consumption is neglected.

As with the BESS model, the optimization constraints align with the physical limitations of the device, limiting the solution space. These constraints are outlined as follows:

  • The total electrolyzer power output for each time period is derived from the sum of the various operating modes:

    P o n t + P i d l e t + P s t a r t t = P A E L t ,

    where P o n t is the power employed in producing hydrogen during hour t in MW, P i d l e t is the power consumed in the Idle mode during hour t in MW, P s t a r t t is the cold starting power consumed during time period t in MW, and P A E L t is the total power consumption during hour t in MW.

  • Binary variables are used to determine the AEL operation mode at each hour, and only one mode is allowed at a time:

    π o n ( t ) + π o f f ( t ) + π i d l e ( t ) = 1 ,

    where π o n ( t )

    is the binary variable for On mode, π o f f ( t )

    is the binary variable for Off mode, and π i d l e ( t )

    is the binary variable for Idle mode. Each binary variable takes value 1 when its respective mode is enabled.

  • An additional mode is used to define the cooling process, which appears only when the AEL is off:

    C o o l t π o f f ( t ) ,

    where C o o l t is a binary variable that defines Cool mode, in which AEL temperature and pressure slowly decrease since it is shut down. It equals 1 when its temperature and pressure state has become colder.

  • The pressure and temperature state of the electrolyzer is updated at each hour as follows:

    τ t = τ t 1 + υ ( t ) · t o f f C o o l ( t ) ,

    where τ t is the state at the end of hour t; this variable is limited between 0 and t o f f . The variable t o f f is the number of hours it takes to get fully cold when off, and υ ( t ) is the fraction of the starting power required for a cold start.

  • Whenever the electrolyzer is off, its temperature and pressure decrease until they reach the fully cold state:

    C o o l ( t ) τ t 1 t o f f + 1

    C o o l ( t ) τ t 1 t o f f 1 + π o f f ( t )

    ,

    where the value 1 in the first term prevents the binary variable C o o l ( t ) from reaching a value of 0 until τ t 1 t o f f is 0.

  • Idle mode’s hourly power consumption is defined as:

    P i d l e = π i d l e ( t ) · P i d l e ,

    where P i d l e is the hourly power consumption during Idle mode in MW.

  • On mode’s hourly power consumption is limited as:

    P o n , m i n · π o n ( t ) P o n t P o n , m a x · π o n ( t ) ,

    where P o n , m i n and P o n , m a x are the minimum and maximum AEL On mode’s active powers, respectively, in MW.

  • The cold start power factor is defined as:

    υ ( t ) t o f f ( t ) τ t 1

    t o f f .

    This factor, bounded between 0 and 1, represents how far the AEL is from reaching an operational state. If 1, it needs the full cold start power.

  • The cold start power consumption is defined as:

    P s t a r t t = υ ( t ) · t s t a r t · A E L P m a x ,

    where P s t a r t t is the AEL starting power in MW, t s t a r t is the cold start time in hours, and A E L P m a x is the maximum electrolyzer power in MW. This equation models the starting power consumption and considers that less power is required if the AEL is not completely cold when a cold start takes place.

  • The hydrogen generation process is defined as:

    Q t = P o n · A E L e f f H H V ,

    where Q t is the hydrogen flow during hour t in kg, A E L e f f is the AEL efficiency in pu, and H H V is the hydrogen high heating value in kg/MWh.

  • The operation cost of the AEL, defined by the degradation models described above, is formulated as:

    D e g C o s t , A E L ( t ) = π o n ( t )

    E O L h o u r s + π o f f ( t 1 ) + π o n ( t ) + π i d l e ( t ) 1

    E O L c y c l e s · K ,

    where D e g C o s t , A E L ( t )

    is the degradation cost during hour t in EUR, and K is the electrolyzer replacement cost in EUR. The first term of the sum represents the degradation caused by operational hours of usage, and the second term is the degradation caused by on/off operational cycles.

  • The oxygen contamination process is formulated as:

    i m p t = i m p t 1 + c o n t t 2 · p u r g ( t ) ,

    where i m p t is the oxygen impurity level at the end of hour t in %, c o n t t is the oxygen contamination during hour t in %, and p u r g ( t ) is a binary variable that defines the AEL purging.

  • The Purging mode is enabled when no H 2 is being produced:

    p u r g t π o f f ( t ) + i d l e ( t ) .

    An inequality constraint is applied to allow for the possibility of Off and Idle modes to be non-zero when no purge is in progress. This scenario occurs, for instance, when the AEL is in a clean state and does not intend to generate hydrogen, enabling the Off or Idle binary variables to have a value of 1.

  • When oxygen contamination reaches 2%, the AEL is shut down:

    i m p t 1 π o f f ( t ) 2 .

  • Purging mode is disabled when the contamination value reaches 0:

    p u r g t i m p ( t 1 ) .

  • A piecewise constraint is used to regulate the contamination process, derived from (12):

    c o n t ( t ) = 0 if P o n ( t ) A E L P m a x

    < 0.3

    3.5 5 · P o n ( t ) A E L P m a x

    if 0.3 P o n ( t ) A E L P m a x

    0.7

    0 if P o n ( t ) A E L P m a x

    > 0.7

    .

2.3. Plant Model

The plant model illustrated in Figure 1 combines the previously formulated model constraints. Additional ones define the interactions between the plant components.

The system operates within the hydrogen and electricity markets. Energy generated by the wind turbine can be sent to the AEL, the BESS, and the grid. The BESS can supply energy to both the AEL and the grid. The AEL can receive energy from all other agents.

These additional constraints are used to determine the aforementioned interactions. Active powers during each hourly period are considered constant; thus, active power can be treated as energy. These constraints are defined as follows:

  • The power generated by the wind farm is defined as:

    P g e n t = P W T G , B E S S ( t ) + P W T G , G r i d ( t ) + P W T G , A E L ( t ) + P W T G , C u r t ( t ) ,

    where P g e n t is the generated power during hour t in MW, P W T G , B E S S ( t )

    is the generated power used by the BESS during hour t in MW, P W T G , G r i d ( t )

    is the generated power sent to the grid during hour t, P W T G , A E L ( t )

    is the generated power sent to the AEL during hour t in MW, and P W T G , C u r t ( t )

    is the curtailed power during hour t in MW.

  • The BESS discharging power is divided as follows:

    P D t = P B E S S , G r i d t + P B E S S , A E L t ,

    where P B E S S , G r i d t is the BESS power sent to the grid during hour t in MW, and P B E S S , A E L t is the BESS power sent to the AEL during hour t.

  • The AEL power flow is defined as follows:

    P A E L t = P B E S S , A E L ( t ) + P G r i d , A E L ( t ) + P W T G , A E L ( t ) .

3. Mathematical Programming Models for Day-Ahead Market Bidding and Real-Time Control

The constraints from the previous section are applied in two optimization models. The first one consists of generating day-ahead electricity market commitments using wind speed electricity price forecasts while also generating hydrogen. The second model aims to reduce deviations in market commitments caused by forecast errors and to produce hydrogen from surplus electricity. This is illustrated in Figure 4.

In this section, the formulations of the objective functions of both models are introduced. As an example, the operation for a single day is shown. In this work, Cbc solver has been used in the optimization algorithm with a tolerance of 10 7 .

3.1. Day-Ahead Market Bidding

This optimization model receives as inputs the hourly prices forecasts and the wind speed forecast. This model generates hourly day-ahead market commitments. Its objective function is formulated as follows:

maximize t = 1 24 [ π e l , f o r e t · P W T G , G r i d t + P B E S S , G r i d t P G r i d , B E S S t P G r i d , A E L t

+ π H 2 · Q t D e g C o s t , A E L t ] D e g C o s t , B E S S ,

where π e l , f o r e t is the hourly forecasted electricity price in EUR/MWh, and π H 2 is the hydrogen price in EUR/kg. As can be seen, the objective function has two terms: one for the operation in the electricity market and the other for the operation in the hydrogen market.

3.2. Real-Time Operation

An optimization model is used to allocate resources to minimize deviation and maximize revenues by also producing hydrogen. An additional constraint, which calculates deviation costs, needs to be added to this model:

D e v C o s t s t = [ P C o m , D M t P W T G , G r i d t P B E S S , G r i d ( t )

] · λ · π e l , r e a l t ,

where P C o m , D M t is the day-ahead market power commitment for hour t in MW, π e l , r e a l t is the real electricity price for hour t in EUR/MWh, and λ is the deviation cost factor for hour t. The objective function of this optimization problem is formulated as follows:

m a x i m i z e t = 1 24 [ π H 2 · Q t D e v C o s t s t ] D e g c o s t ( t ) .

The primary objective at this stage is to optimize profits through the implementation of measures aimed at minimizing deviation costs and utilizing surplus energy for the production of hydrogen.

4. Two-Stage Stochastic Optimization Algorithm

A two-stage stochastic problem is developed using the aforementioned optimization models. This section provides an overview of these stochastic algorithms and their application. The standard Monte Carlo simulation approach is presented. Afterwards, an algorithm based on bootstrap sampling is proposed.

4.1. Two-Stage Stochastic Optimization Overview

This mathematical framework involves making decisions in two stages. In the first stage, a decision is made by solving the optimization problem based on the available information. This can be done by using a deterministic forecast as input, and the solution generated is called the candidate solution [35].

Then, the outcome of the candidate solution is evaluated in the second stage. At this stage, the cost of the decisions made in the first are computed using the realization of the uncertain parameters. The best solution is evaluated using both the expected benefits in the first stage and the cost in the second one. The optimization model aims to reduce the cost of the second-stage decisions while selecting the candidate solution with the highest first-stage benefits.

Two-stage optimization problems can be used in EMS applications [9]. In this work, the first stage involves the day-ahead optimization, while the second stage is the real-time operation. It is common to employ sets of scenarios to generate different candidates and evaluate their second-stage costs under different situations [36].

4.2. Monte Carlo Approach

Monte Carlo simulation is a statistical method that utilizes random sampling to generate multiple sets of possible outcomes for a given problem [37]. This method is particularly useful in two-stage stochastic optimization, as it allows for the estimation of the probability of the outcome of the first-stage decisions.
The scenarios, generated using historical data in the forecasting model, are used to obtain a probability density function of the realization of the uncertain parameters. A set of 10 wind speed and electricity price scenarios for 25 March 2020 is shown in Figure 5, for both wind speed and electricity prices. This number of scenarios is employed because a higher number would exponentially increase computational burden.

For each combination of scenarios, a candidate solution is generated using the day-ahead optimization model. Therefore, in the first stage, 100 candidate solutions are generated. The power commitments of each candidate solution are sent to the real-time optimization model.

The real-time optimization is solved for each candidate solution under each wind and price scenario. The costs of each candidate under each combination of scenarios are calculated as follows:

C o s t ( i , j ) x = D e v C o s t s ( i , j ) + Δ E B e n ( i , j ) ,

where C o s t ( i , j ) x represents the second-stage costs under wind speed scenario j and electricity price scenario i for candidate solution x in EUR. D e v C o s t s ( i , j )

are the deviation costs in EUR, and Δ E B e n ( i , j )

is the difference between expected and real electricity market benefits in EUR.

A sample of 100 second-stage costs is generated for each candidate solution. Figure 6 illustrates an example.
As can be seen, negative costs result from certain combinations of scenarios, indicating more energy was available than expected. The accuracy of Monte Carlo-based stochastic algorithms depends on the number of simulations, so a large number of simulations should be performed to reduce uncertainty in the results. This stochastic optimization problem can be formulated as follows [38]:

max E 1 ( S ) C V a R 1 β E 2 ( S )

,

where E 1 ( S )

are the expected benefits for candidate solution S in EUR, and C V a R 1 β E 2 ( S ) is the conditional value-at-risk of the second-stage costs for candidate solution S in EUR for the confidence interval β , which has been set to 95%, a common choice in stochastic problems.

The current implementation faces a challenge in regards to increasing the number of available samples. Each sample requires solving an additional optimization problem, and therefore, for 100 candidate solutions, 10,000 optimization problems must be solved for each day. This can result in the requirement to solve one million optimization problems in order to obtain 1000 samples for 1000 candidate solutions, which may render the problem computationally infeasible due to the amount of computational time required, especially considering that this model runs online.

4.3. Bootstrapping Approach

Bootstrapping is a re-sampling method that allows us to estimate parameters using sampled data [39]. It is used when the sampling process is difficult, such as in clinical studies [40]. It is also used when the available input data are scarce, which is the common case in some forecasting applications [41].

This method involves re-sampling the original population randomly, thereby generating a new sample. A statistical quantity of the new sample is calculated, such as the mean. By repeating this process, a distribution of estimates is obtained, which can be used to calculate variability measures.

Bootstrapping is often computationally simpler than Monte Carlo. Additionally, it can provide more accurate estimates when the sample size is small or the distribution is not normal. Also, obtaining a confidence interval of a statistical quantity allows for a more robust approach with a smaller population of samples.

In this application, the mean of the re-samples is used in the bootstrap process. The original population is re-sampled 10,000 times, and repetition is allowed. An example of a bootstrap sample for the second-stage costs is shown in Figure 7.
As can be seen, this distribution presents a more normal shape. The formulation presented in (36) can be adapted to this approach as follows:

max E 1 ( S ) C V a R 1 β E 2 ( S ¯ )

,

where C V a R 1 β E 2 ( S ¯ ) is the conditional value-at-risk of the second-stage cost means for candidate solution S in EUR for the confidence interval β . A 95% confidence interval is used in this case.

5. Simulation Framework and Results

A demonstration of the introduced model is presented in this section. Afterwards, the simulation framework for evaluating the performance of the proposed optimization method is described. Different simulation scenarios are run on the same plant model, and in each case, a different approach for generating day-ahead market commitments is considered. Results under each approach are presented and compared. The key performance indicators considered are the earnings for both electricity and hydrogen markets.

5.1. Single-Day Demonstration

This subsection presents a demonstration of the formulated plant model operation for 25 March 2020. The demonstration employs a deterministic forecast of electricity prices and generated power as input for the day-ahead stage. The power commitments are subsequently input into the real-time optimization problem, the primary objective of which is to minimize deviation resulting from forecasting errors.

The plant’s component parameters are introduced in Table 1.
Historical electricity prices in DKK are used as input for the forecasting model. The authors in [42] statistically show that a SARIMA with order ( 2 , 1 , 3 ) ( 1 , 0 , 1 ) 24

is appropriate for forecasting such prices, and the same order is used here. The previous 100 days of hourly electricity prices are used as training data.

Hourly wind speed data, obtained from the Merra-2 Database [43] located in Brande, Denmark, are used as input for wind speed prediction. In its first stage, a SARIMA model is used to generate a deterministic forecast of wind speed, which is then computed as wind power using the curve of the Siemens SWT-3.0-113 wind turbine generator. The SARIMA model has an order of ( 2 , 0 , 1 ) ( 2 , 0 , 3 ) 12

. Wind speed data from the previous five days are used as training data.

In Figure 8, deterministic forecasts for price and wind speed on 25 March 2020 are shown. This day has been selected arbitrarily for illustration purposes. The figure shows that forecast errors grow over time, with electricity prices overestimated in later hours and wind speed underestimated for this specific day.
The inputs for the day-ahead scheduling optimization problem are the predicted wind and electricity prices, as shown in Figure 8. The optimal solution is depicted in Figure 9, which shows the hourly active power from the plant components and the power exchanges with the grid.

The electrolyzer starts at full power later in the first hour by taking cold start power from the grid and runs at full power all day. The battery schedules an arbitrage operation using the price spread. When electricity prices are low, some power generated from the wind turbine is sent to the electrolyzer for hydrogen production.

The hourly commitments generated in this stage are sent to the real-time stage. The optimization problem takes as input the real electricity prices, as well as the wind speed from day and day-ahead hourly power commitments. Figure 10 illustrates these results.
The optimization problem uses the BESS to cover deviations since real generated power is lower than expected (as shown in Figure 8). Wind turbine generated power is stored during low electricity price hours, when deviation costs are low, and released by the BESS during price peaks at the end of the day. Hydrogen production is kept constant during the day.

5.2. Case Studies

Different case studies are performed with the simulation framework. The simulation is run from 1 January 2020 to 31 December 2020. AEL and BESS states at the end of a day are considered as the initial state for the next one. For simplicity, perfect price and wind power foresight are assumed.

5.2.1. Hydrogen Price Effects on Market Participation

The plant participates in two different markets, but future hydrogen prices are uncertain. The first case study examines the effects of various hydrogen prices. Figure 11 illustrates the accumulated benefits at the end of the year attained in both electricity and hydrogen markets.

The figure shows that the hydrogen market benefits become noticeable only when hydrogen prices exceed 1.5 EUR per kg. As the hydrogen prices increase further, the plant starts to use more energy for hydrogen production and, as a result, the electricity market participation decreases. When the hydrogen price reaches 3.5 EUR/kg, the benefits from the hydrogen market surpass the ones from the electricity market. It is remarkable how the benefits of hydrogen market start to appear only after a certain threshold.

5.2.2. Hydrogen Price Effects on Different Hydrogen Off-Taker Scenarios

Various green hydrogen supply chain configurations exist. One option involves a pipeline infrastructure, where the plant unloads the produced hydrogen in real time [44]. Another option, particularly in the case of remote plant locations such as offshore locations, involves the storage of hydrogen in a tank, which is unloaded periodically using trucks or vessels [45], adding an extra constraint to green hydrogen production.
In this case study, different tank capacities and different tank unloading schedules are evaluated, and scenarios of low and high hydrogen prices are considered. Moreover, the scenario of a hydrogen pipeline is also evaluated. Figure 12 illustrates the accumulated benefits at the end of the year in each case.

Results demonstrate how the pipeline scenario yields the best results. Increasing tank unloading regularity permits operating with smaller tanks. This constraint needs to be carefully considered when sizing the plant in order to obtain the best balance between unloading schedule and tank capacity. This requirement is present in both low-price and high-price scenarios; however, the presence of a pipeline clearly demonstrates better results in any case.

5.2.3. Hydrogen Price Effects Depending on AEL Grid Connections

The AEL interacts with the electricity market, as shown in Figure 1, enabling the purchase of energy from the market to produce hydrogen when electricity prices are low. The final case study examines the impact of the plant’s participation in both markets at different hydrogen prices.
A base case is considered in which hydrogen market participation is disabled, and therefore benefits are only obtained from the electricity market. Two options for hydrogen market participation are evaluated: one in which the AEL is connected to the grid and another in which it is disconnected from the grid, so its input power is only obtained from wind production. Accumulated benefits in each case are illustrated in Figure 13.

Results indicate that, at low hydrogen prices, enabling hydrogen market participation increases plant outcome only when the AEL is disconnected from the grid. AEL interaction with the electricity market only yields better results when hydrogen prices approach 3 EUR/kg, indicating that only high hydrogen prices justify the connection to the grid.

5.3. Stochastic Algorithm Comparison

In order to compare the proposed stochastic optimization model, a simulation framework of the plant participating in hydrogen and day-ahead electricity markets is developed, and a hydrogen price of 4 EUR/kg is considered. The plant component parameters are the ones depicted in Table 1.

Four different simulation scenarios are considered:

  • Ideal scenario: The plant receives perfect wind speed and electricity price forecasts.

  • Stochastic Monte Carlo scenario: The Monte Carlo algorithm is used for day-ahead commitment generation.

  • Stochastic Bootstrap scenario: The proposed bootstrap algorithm is used for day-ahead commitment generation.

  • Deterministic scenario: A direct approach that considers deterministic forecasts.

The simulation is run from 1 January 2020 to 31 December 2020. The revenues have been calculated using historical prices in DKK for each day. The total revenues for each simulation case are presented in Figure 14.

The Deterministic method of utilizing direct predictions surpasses the utilization of the conventional Monte Carlo technique. This can be caused by the low amount of available scenarios. The strategy that has been proposed, incorporating bootstrap sampling, demonstrates superior results compared to both the Monte Carlo and Deterministic approaches.

6. Conclusions and Future Work

A mathematical optimization model has been proposed for the integration of an AEL, a BESS, and a wind turbine generator. This model takes into account the effect of partial loading into the AEL oxygen phase, as well as the degradation effects for both the AEL and the BESS. A linear formulation has been proposed to ensure its efficiency in EMS optimization applications.

The effect of wind speed and energy price uncertainties has been addressed with the proposal of a two-stage stochastic optimization model. The state-of-the-art Monte Carlo approach has been compared to a novel bootstrap-based algorithm. A simulation framework has been developed to evaluate the performance of the proposed algorithm.

A comparison between a classical Monte Carlo approach and the proposed bootstrapping implementation demonstrates how this algorithm yields a better outcome than the use of a Monte Carlo strategy using the same data. This can be useful for online applications, in which computational time is a constraint for continuous operation.

Case studies of different plant configurations and hydrogen supply chain structures have been studied. Results demonstrate how, at low hydrogen prices, plant configuration must be carefully addressed in order to obtain optimal income. Moreover, AEL interactions with the electrical market are detrimental at low hydrogen prices.

In future work, the authors propose an extension of this algorithm for intra-day market participation. The BESS participation in frequency response services is also suggested. Also, it is considered that some limitations, such as testing longer time frames or different electricity markets, could be considered for future research.

[ad_2]

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

اغراء سكس pornolaw.net نسوانجى قصص مصوره sex videosfreedownloads hindipornsite.com gonzoxx احلى نيكة pornvideoswatch.net سكس حيوانات مع النساء xnxx hd hot video mom2fuck.mobi www sex new photo com xindianvidios 3porn.info www.xnxx telugu
seduced sex videos masturbationporntrends.com iporentv xxx12 orgyvids.info nude bhabi com bangla bf xxx tubeofporn.net malayalam bf video سكس اخوات عرب todayaraby.com سكسفلاحين nikitha hot tryporno.net www.fucking videos.com
dirty linen episode 1 bilibili pinoyteleseryechannel.com la vida lena january 17 2022 indian sexy xxx video pornstarslist.info jabardastisexvideo افلام جنسية امريكية esarabe.com نىك فى الحمام movirulz com pornvuku.com kolkata bengali sexy video elf yamada hentai hentaihq.org karami zakari