Method for optimizing grid-connected capacity of ReP2A system considering green ammonia certification and two-part electricity price

By incorporating grid-connected capacity into the annual time-series optimization model, and combining green ammonia certification and two-part tariffs, the ReP2A system equipment configuration was optimized, solving the problem of grid-connected capacity affecting energy supply reliability and economy, and realizing the economic rational planning and robustness analysis of the system.

CN123144243APending Publication Date: 2026-11-20ECONOMIC RES INST OF STATE GRID GANSU ELECTRIC POWER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611156761.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-31
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

The existing ReP2A system, in some grid-connected operation scenarios, fails to accurately reflect the impact of grid-connected capacity on power supply reliability and system annualized total cost, and does not fully consider the impact of two-part tariffs and green ammonia certification constraints on long-term capacity planning, resulting in unreasonable equipment configuration.

Method used

The grid-connected capacity is used as a decision variable and incorporated into the annual time-series capacity-operation joint optimization model. By combining system power balance, electricity-hydrogen-ammonia conversion, hydrogen storage dynamics and green ammonia certification requirements, the capacity configuration of wind power, photovoltaic, electrolyzer, hydrogen storage, electric energy storage and synthetic ammonia units is optimized. Information gap decision theory is introduced to analyze the uncertainty of wind and solar power output.

Benefits of technology

It has achieved an economical and rational allocation of grid-connected capacity, improved the reliability and economy of system power supply, quantified the substitution relationship of equipment configuration under different certification rigor, and provided a planning basis under different risk preferences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123144243A_ABST
    Figure CN123144243A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of new energy system planning, in particular to a ReP2A system grid-connected capacity optimization method considering green ammonia certification and two-part electricity price. Hourly wind and solar output data, electricity price parameters and green ammonia certification parameters are obtained; wind and solar power generation, grid interaction, electrical energy storage, water electrolysis hydrogen production, hydrogen storage and ammonia synthesis production models are established; hourly power balance constraints, grid interaction constraints, green ammonia certification constraints and two-part electricity price constraints are established; the grid-connected capacity and the capacities of wind power, photovoltaic, electrolyzer, hydrogen storage, electrical energy storage and ammonia synthesis device are taken as decision variables, and the minimum annual total cost of the system is taken as the target for joint optimization solution; the information gap decision theory is introduced for robustness analysis under wind and solar output uncertainty. The present application optimizes the grid-connected capacity and equipment capacity configuration simultaneously, and considers the two-part electricity price and green ammonia certification constraints in the optimization model, providing an economic and reasonable grid-connected capacity decision method for partial grid-connected wind and solar hydrogen and ammonia production systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of new energy system planning technology, specifically to a method for optimizing the grid-connected capacity of a ReP2A system that takes into account green ammonia certification and two-part tariffs. Background Technology

[0002] The Renewable Power to Ammonia (ReP2A) system, integrating wind and solar power for hydrogen and ammonia production, comprises wind power, solar power, water electrolysis for hydrogen production, hydrogen storage, air separation for nitrogen production, and ammonia synthesis. It can convert fluctuating renewable energy into easily stored and transportable green ammonia, representing a crucial technological pathway for promoting local consumption of new energy and the low-carbon transformation of the chemical industry. Ammonia synthesis units require continuous hydrogen supply and safe, stable operation. A fully off-grid mode typically necessitates large-scale wind power, solar power, electrical energy storage, and hydrogen storage capacity, resulting in high engineering investment. A partially grid-connected mode allows the grid to supplement power when renewable energy output is insufficient, reducing continuous production pressure. However, excessively large grid-connected capacity increases grid connection engineering investment and capacity costs, while insufficient capacity compromises system reliability. Therefore, determining an economically reasonable grid-connected capacity while meeting the requirements for continuous ammonia production and green ammonia certification is a key issue in the planning of multi-energy complementary systems.

[0003] In some grid-connected operation scenarios, grid-connected capacity not only determines the power boundary of the system's power purchase and sale but also alters the capacity configuration of wind power, photovoltaic, electrolyzer, hydrogen storage, energy storage, and synthetic ammonia units. Meanwhile, large industrial users in my country generally adopt a two-part tariff, where electricity charges include not only the cost of purchased electricity but also a basic electricity charge based on contracted capacity or maximum demand. This basic charge is directly linked to grid-connected capacity or maximum grid demand, and its impact on long-term planning outcomes cannot be ignored. Furthermore, green ammonia certification typically involves three dimensions: green electricity time matching, carbon footprint, and green ammonia production accounting. Different levels of certification stringency affect the system's external power purchase ratio, hydrogen storage regulation needs, and the scale of new energy installations.

[0004] Existing research on ReP2A system optimization mainly focuses on capacity configuration, operation scheduling, and economic evaluation. For off-grid systems, existing studies have established capacity configuration models for wind-solar-hydrogen-ammonia synthesis systems to analyze the impact of wind and solar resource fluctuations, hydrogen storage regulation, and ammonia synthesis load continuity on system economics. For grid-connected systems, existing studies have considered the limited flexibility of ammonia synthesis plants, established capacity optimization and pricing methods for renewable energy-based ammonia production systems, and further analyzed the impact of grid connection on green ammonia production costs and site selection. In addition, some studies have improved the adaptability of wind-solar-hydrogen-ammonia synthesis systems to renewable energy fluctuations from the perspectives of multi-steady-state flexible ammonia synthesis processes, multi-frequency dispatch optimization, and capacity dispatch optimization under peak-valley electricity pricing.

[0005] The above research provides a foundation for modeling and economic analysis of wind-solar hydrogen-to-ammonia systems, but it still has the following shortcomings in some grid-connected operation scenarios:

[0006] First, grid-connected capacity is often given as an external boundary condition and is rarely optimized in conjunction with the capacity of wind power, photovoltaic, electrolyzer, hydrogen storage, electric energy storage and synthetic ammonia units. This makes it difficult to accurately reflect the impact of grid-connected capacity on energy supply reliability and the annualized total cost of the system.

[0007] Second, existing models focus more on the cost of electricity purchased and the revenue from selling surplus electricity to the grid, and less on the impact of the basic electricity charge for contracted capacity or the basic electricity charge for maximum demand under the two-part tariff on the results of long-term capacity planning. This makes it difficult to accurately assess the overall economic efficiency of different grid-connected capacity schemes.

[0008] Third, green ammonia certification constraints are often simplified to the annual green electricity ratio or carbon emission cap, lacking a unified characterization of monthly matching, hourly matching and carbon footprint constraints, making it difficult to compare the substitution relationship between grid-connected capacity, hydrogen storage capacity and wind and solar installed capacity under different certification stringencies.

[0009] Therefore, there is an urgent need to establish a system optimization method that simultaneously considers grid-connected capacity decision-making, two-part electricity pricing mechanism, and green ammonia certification constraints, so as to determine the economically reasonable grid-connected capacity and corresponding equipment configuration scheme with the minimum annualized total cost, under the premise of meeting the requirements of continuous synthetic ammonia production and green ammonia certification. Summary of the Invention

[0010] To address the aforementioned problems, the present invention aims to provide a ReP2A system grid-connected capacity optimization method that considers green ammonia certification and two-part tariffs. This method incorporates grid-connected capacity as a decision variable into the annual time-series capacity-operation joint optimization. Under the conditions of satisfying system power balance, electricity-hydrogen-ammonia conversion, hydrogen storage dynamics, continuous operation of synthetic ammonia, and green ammonia certification requirements, it minimizes the annualized total cost and further evaluates the planning robustness under uncertainties in wind and solar power output. The technical solution is as follows:

[0011] A method for optimizing the grid-connected capacity of a ReP2A system, taking into account green ammonia certification and two-part tariffs, includes the following steps:

[0012] Step 1: Obtain hourly normalized wind and solar power output data, electricity price parameters, equipment technical and economic parameters, target green ammonia production, and green ammonia certification parameters within the planning period;

[0013] Step 2: Establish mathematical models for each component of the integrated wind and solar power generation hydrogen and ammonia production system, including the wind and solar power generation and grid connection interaction model, the energy storage system model, the water electrolysis hydrogen production model, the hydrogen storage system model, and the ammonia synthesis production model.

[0014] Step 3: Establish a grid-connected capacity optimization model, including system power balance constraints, green ammonia certification constraints, and a two-part tariff and grid cost model;

[0015] The green ammonia certification constraints include green electricity time matching constraints and carbon footprint constraints; the green electricity time matching constraints require that the production electricity consumption in each accounting period within the planning cycle does not exceed the net self-built renewable electricity within the project boundary; the carbon footprint constraints require that the carbon emissions throughout the entire life cycle do not exceed the green ammonia carbon footprint limit.

[0016] The two-part electricity pricing constraint includes an electricity charge constraint and a basic electricity charge constraint. The basic electricity charge constraint is calculated based on the contracted capacity or maximum demand, and the basic electricity charge is related to the grid-connected capacity.

[0017] Step 4: Using the grid-connected capacity, wind power capacity, photovoltaic capacity, electrolyzer capacity, hydrogen storage capacity, electric energy storage capacity, and ammonia synthesis unit capacity as decision variables, and taking the minimum annualized total cost of the system as the objective function, solve the problem under the system constraints to obtain the optimal capacity configuration scheme and the corresponding hourly operation strategy.

[0018] The beneficial effects of this invention are:

[0019] (1) This invention uses grid-connected capacity as a planning decision variable and optimizes it in a unified manner with the capacity of wind power, photovoltaic, electrolyzer, hydrogen storage, electric energy storage and synthetic ammonia in a full 8760-hour time series model. This overcomes the configuration scheme deviation caused by the existing method of using grid-connected capacity as an external boundary condition. It can avoid redundant investment in grid-connected capacity or the decline in energy supply reliability due to insufficient grid-connected capacity.

[0020] (2) This invention fully characterizes the two-part electricity pricing mechanism in the optimization model, and directly links the basic electricity charge of contract capacity or the basic electricity charge of maximum demand with the grid connection capacity decision, thus overcoming the shortcomings of existing methods that only consider the cost of purchased electricity and omit the impact of basic electricity charge on long-term planning.

[0021] (3) This invention overcomes the shortcomings of existing methods that simplify green ammonia certification to the annual green electricity ratio or carbon emission limit by unifying green electricity time matching constraints, carbon footprint constraints and green ammonia production constraints into the optimization model. It can quantitatively compare the substitution relationship between grid-connected capacity, hydrogen storage capacity and wind and solar installed capacity under different certification strictness.

[0022] (4) This invention introduces the information gap decision theory to conduct robustness analysis under the uncertainty of wind and solar power output. It can quantify the maximum wind and solar power output reduction that the system can withstand under different cost deviation tolerances, and output the corresponding robust capacity configuration scheme, providing a quantitative basis for planners to make grid-connected capacity and equipment capacity decisions under different risk preferences. Attached Figure Description

[0023] Figure 1 The flowchart illustrates the grid-connected capacity optimization method for the ReP2A system, which takes into account green ammonia certification and two-part tariffs, as described in this invention.

[0024] Figure 2(a) shows the system capacity configuration results under the baseline scenario - wind power, photovoltaic, electrolytic cell and grid-connected capacity.

[0025] Figure 2(b) shows the system capacity configuration results under the baseline scenario - ammonia synthesis and hydrogen storage.

[0026] Figure 3 This represents the monthly available power generation from wind and solar power.

[0027] Figure 4(a) shows the operating status and power of each system in a typical week under the baseline scenario.

[0028] Figure 4(b) shows the operating status of each system in a typical week under the baseline scenario - hydrogen flow rate.

[0029] Figure 4(c) shows the typical operating status of each system in the baseline scenario - SOC (State of Charge).

[0030] Figure 5 This represents the cost composition of unit green ammonia in the baseline scenario.

[0031] Figure 6(a) shows the changes in grid-connected capacity and maximum off-grid power under different contract capacity electricity prices.

[0032] Figure 6(b) shows the cost changes under different contract capacity electricity prices.

[0033] Figure 7 The relationship between the allowable cost deviation coefficient and the uncertainty radius of the maximum wind and solar power output.

[0034] Figure 8 This refers to the capacity configuration variations under different allowable cost deviation coefficients. Detailed Implementation

[0035] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments.

[0036] First, the normalized power output, electricity price, equipment technical and economic parameters, target green ammonia production, and certification parameters for the entire year are obtained hourly. Then, models for wind and solar power generation, grid connection interaction, electrolytic hydrogen production, energy storage, hydrogen storage, and synthetic ammonia production are established. Further, system power balance, green ammonia certification, and two-part tariff constraints are established, with grid-connected capacity and the capacity of each piece of equipment used as decision variables. A baseline configuration is obtained with the goal of minimizing the annualized total cost, and the uncertainty of wind and solar power output is analyzed using Information Gap Decision Theory (IGDT) as needed. The flowchart of the ReP2A system grid-connected capacity optimization method considering green ammonia certification and two-part tariff is shown below. Figure 1 As shown, the specific steps are as follows:

[0037] Step 1: Data Acquisition: Acquire hourly wind and solar power output data, electricity price parameters, equipment technical and economic parameters, target green ammonia production, and green ammonia certification parameters within the planning period.

[0038] Step 2: Establish equipment mathematical models: Establish mathematical models for each component of the integrated wind and solar power generation hydrogen and ammonia production system, including the wind and solar power generation and grid connection interaction model, the energy storage system model, the water electrolysis hydrogen production model, the hydrogen storage system model, and the ammonia synthesis production model.

[0039] Step 3: Establish system constraints: Establish a grid-connected capacity optimization model, including system power balance constraints, green ammonia certification constraints, and a two-part tariff and grid cost model.

[0040] The green ammonia certification constraints include green electricity time matching constraints and carbon footprint constraints. The green electricity time matching constraint requires that the production electricity consumption in each accounting period within the planning cycle does not exceed the net self-built renewable electricity within the project boundary. The carbon footprint constraint requires that the carbon emissions throughout the entire life cycle do not exceed the green ammonia carbon footprint limit. The two-part electricity pricing constraints include electricity charge constraints and basic electricity charge constraints. The basic electricity charge constraint is based on the contracted capacity or maximum demand and is related to the grid-connected capacity.

[0041] Step 4: Using the grid-connected capacity, wind power capacity, photovoltaic capacity, electrolyzer capacity, hydrogen storage capacity, electric energy storage capacity, and ammonia synthesis unit capacity as decision variables, and taking the minimum annualized total cost of the system as the objective function, solve the problem under the system constraints to obtain the optimal capacity configuration scheme and the corresponding hourly operation strategy.

[0042] Step 5: IGDT robustness analysis: Introducing the information gap decision theory, a binary search is performed to find the maximum uncertain radius of wind and solar power output, and finally, robust capacity configuration schemes under different cost deviations are obtained.

[0043] The specific implementation is as follows:

[0044] 1. Integrated System Model for Photovoltaic Power Generation to Produce Hydrogen and Ammonia

[0045] 1.1 System Structure

[0046] The system's power supply side includes wind power, solar power, grid-purchased electricity, and energy storage discharge. The load side includes electrolyzers, air separation for nitrogen production, ammonia synthesis auxiliary processes, and energy storage charging. Wind and solar power are prioritized for production loads; surplus electricity can be used for charging, grid connection, or curtailment. When renewable energy is insufficient, it is supplemented by energy storage or the grid. Hydrogen produced by the electrolyzers enters a hydrogen storage device, which balances the timing difference between fluctuating hydrogen production and continuous ammonia synthesis hydrogen consumption. Grid connection capacity simultaneously limits both grid-connected and off-grid power.

[0047] 1.2 Wind and Solar Power Generation and Grid Connection Interaction Model

[0048] set up and The first If the normalized output per unit capacity of wind power and photovoltaic power is calculated for the given time period, then the available output of wind power and photovoltaic power are respectively:

[0049] (1);

[0050] (2);

[0051] System power curtailment satisfy:

[0052] (3);

[0053] Grid access capacity Limit the maximum downlink power of the system and Internet power Its constraints are:

[0054] (4);

[0055] (5);

[0056] To avoid simultaneous electricity purchases and sales during the same period, binary variables are introduced. :

[0057] (6);

[0058] (7);

[0059] In the formula: , , These are wind power capacity, photovoltaic capacity, and grid-connected capacity, respectively. It is a sufficiently large constant; It is a collection of time periods throughout the year.

[0060] 1.3 Energy Storage System Model

[0061] set up For the first Energy storage capacity status during a given time period and Let the charging and discharging power be respectively, then the energy storage dynamic equation is:

[0062] (8);

[0063] The upper and lower limits of energy storage capacity, cycle boundaries, and charge / discharge power constraints are as follows:

[0064] (9)

[0065] (10);

[0066] (11);

[0067] In the formula: Energy storage capacity; For energy storage duration; and These are charging efficiency and discharging efficiency, respectively. and These are the lower and upper limits of the energy storage state of charge, respectively; For time step; and The energy storage status represents the beginning and end of the time period; T represents the total number of time periods within the optimization cycle.

[0068] 1.4 Model for Hydrogen Production via Water Electrolysis

[0069] The hydrogen production station employs a cluster of alkaline electrolyzers, which is equivalent to a hydrogen production unit with adjustable total capacity. Assume... For the first Hydrogen production per period Given the total electrical power of the station, the electricity-hydrogen conversion relationship can be linearly approximated as:

[0070] (12);

[0071] The operating range and capacity constraints of the electrolytic cell power are as follows:

[0072] (13);

[0073] (14);

[0074] (15);

[0075] In the formula: The total electricity consumption for hydrogen production is expressed in MWh / Nm³. 3 This includes the electrolyzer body, BoP power consumption, and hydrogen compression power consumption; This represents the total capacity of the electrolytic cell; This refers to the capacity of a single slot. This refers to the number of electrolytic cells. and These represent the minimum and maximum load rates of the hydrogen production station, respectively.

[0076] 1.5 Hydrogen Storage System Model

[0077] Hydrogen storage systems are used to buffer the difference in hydrogen consumption between electrolytic hydrogen production and ammonia synthesis. For the first Hydrogen storage capacity over time period Given the hydrogen consumption for ammonia synthesis, the dynamic constraint on hydrogen storage is:

[0078] (16);

[0079] The constraints on the upper and lower limits of hydrogen storage capacity and the consistency of the first and last states are as follows:

[0080] (17);

[0081] (18);

[0082] In the formula: Hydrogen storage capacity; and These represent the minimum and maximum hydrogen storage ratios of the hydrogen storage system, respectively.

[0083] 1.6 Ammonia Synthesis Production Model

[0084] set up , and These represent the hydrogen consumption, nitrogen consumption, and ammonia production during ammonia synthesis, respectively. Based on the reaction relationship... We can obtain:

[0085] (19);

[0086] Electricity used in ammonia synthesis It can be expressed as the sum of the power consumption of the air separation nitrogen production unit and the power consumption of the ammonia synthesis unit, and can be combined as follows:

[0087] (20);

[0088] (twenty one);

[0089] The system's annual ammonia production is calculated from its hydrogen consumption:

[0090] (twenty two);

[0091] set up For the rated hydrogen consumption of the ammonia synthesis unit, then:

[0092] (twenty three);

[0093] The operating load range and ramp-up constraints for the ammonia synthesis unit are as follows:

[0094] (twenty four);

[0095] (25);

[0096] (26);

[0097] In the formula: , and These are the combined power consumption coefficients for air separation nitrogen production, ammonia synthesis, and ammonia synthesis, respectively. This is the hydrogen-ammonia conversion factor; The capacity of the ammonia synthesis unit; and These are the lower and upper load limits for the ammonia synthesis unit, respectively. and These represent the upward and downward ramp limits for the ammonia synthesis unit, respectively.

[0098] 2. Grid-connected capacity optimization model

[0099] 2.1 System Power Balance Constraints

[0100] The power exchange between the power source, load side, energy storage side, and grid in the ReP2A system should be balanced hourly. The power balance constraint for each time period is:

[0101] (27);

[0102] 2.2 Green Ammonium Certification Constraints

[0103] Green ammonia certification is constrained by three aspects: green electricity timing matching, carbon footprint, and green ammonia production accounting. The electricity consumption for hydrogen and ammonia production during specific time periods is:

[0104] (28);

[0105] The net self-built renewable energy available for certification matching within the project boundaries is:

[0106] (29);

[0107] When a monthly green electricity time matching constraint is applied, we have:

[0108] (30);

[0109] When hourly green electricity time matching constraints are applied, we have:

[0110] (31);

[0111] In the carbon footprint constraint, the emissions from electricity purchased by local power grids are expressed as follows:

[0112] (32);

[0113] The carbon footprint and production constraints for green ammonia production are:

[0114] (33);

[0115] (34);

[0116] In the formula: For the set of months; For the first Monthly corresponding time period set; The average carbon dioxide emission factor of the local power grid; This includes emissions from the entire life cycle other than electricity purchased from suppliers; For the carbon footprint limit of green ammonia; The target is to increase the production of green ammonia.

[0117] 2.3 Two-part electricity pricing and grid cost model

[0118] Large industrial users in my country typically use a two-part electricity pricing system, where electricity costs consist of a charge for the amount of electricity consumed and a basic charge. The system's electricity purchase cost is expressed as follows:

[0119] (35);

[0120] If the maximum demand billing method is adopted, then... For the first The maximum monthly demand for offline services is then:

[0121] (36);

[0122] (37);

[0123] If the contract capacity billing method is adopted, the basic electricity fee is:

[0124] (38);

[0125] If the grid connection project is invested and constructed by the project owner, the annualized investment cost of the grid connection project is:

[0126] (39);

[0127] Revenue from surplus electricity sold to the grid and related grid interaction costs are as follows:

[0128] (40);

[0129] (41);

[0130] In the formula: The electricity purchase price; The electricity price is based on the maximum monthly demand. The contracted capacity electricity price; For grid connection electricity price; Investment cost per unit of grid-connected capacity; This refers to the annualized coefficient for grid-connected projects; The annualized investment cost of the grid connection project; Revenue from surplus electricity sold online.

[0131] Equation (41) is used for the itemized statistics of power grid interaction costs, in which the annualized investment cost of grid-connected projects is incorporated into the annualized investment of equipment and fixed operation and maintenance costs in the objective function for unified accounting.

[0132] 2.4 Objective Function

[0133] The objective function is to minimize the total annualized cost of the system under a given annual green ammonia production target.

[0134] (42);

[0135] Annualized investment in equipment The fixed operation and maintenance costs are:

[0136] (43);

[0137] (44);

[0138] (45);

[0139] Annual operating costs Including electricity purchase fees Two-part basic electricity tariff and the cost of power curtailment penalties :

[0140] (46);

[0141] (47);

[0142] Annual ammonia production, annualized net profit, and standardized green ammonia cost can be expressed as follows:

[0143] (48);

[0144] (49);

[0145] (50);

[0146] In the formula: It is a collection of equipment, including wind power, photovoltaic, electrolysis cells, hydrogen storage, electric energy storage, ammonia synthesis units, and grid connection projects; For equipment The annualized cost factor; For equipment The unit investment cost; For equipment capacity; Annual fixed operation and maintenance fee rate; For equipment lifespan; The discount rate; This is the capital recovery factor; This refers to the penalty coefficient for wind and solar power curtailment. For the benefit of green ammonia products; This refers to the power of wind and solar power that has been curtailed. This is the hydrogen-ammonia conversion factor; This represents the amount of hydrogen consumed in the synthesis of ammonia.

[0147] 2.5 Mathematical Optimization Model

[0148] In summary, the ReP2A system grid-connected capacity optimization model can be comprehensively expressed as:

[0149] (51);

[0150] (52);

[0151] In the formula: These are continuous decision variables, including the capacity of each device, hourly operating power, energy storage status, and hydrogen storage status, etc. These are discrete decision variables, including the number of electrolyzers and the state variables of power purchase and sale; Equations constrain system power balance, electro-hydrogen-ammonia conversion relationship, energy storage and hydrogen storage dynamics, etc. It represents inequality constraints such as capacity boundaries, grid-connected capacity, green ammonia certification, two-part tariffs, upper and lower limits of equipment operation, and ramp-up restrictions. , These are the upper and lower limits for continuous variables; This refers to the number of electrolytic cells. It is a binary variable.

[0152] 3 Uncertainty Analysis of Wind and Solar Power Output Based on IGDT

[0153] To characterize the impact of reduced wind and solar power output on system planning results, IGDT is introduced for robustness analysis. Let the normalized output per unit capacity of wind and solar power in the baseline scenario be as follows: and The installed capacities of wind power and photovoltaic power are respectively and Considering the unfavorable situation of downward deviation in wind and solar power output, wind and solar power output can be expressed as:

[0154] (53);

[0155] (54);

[0156] In the formula: Let be the radius of uncertainty for wind and solar power output, representing the percentage decrease in wind and solar power output that the system can tolerate. Let the minimum annualized total cost under the baseline deterministic scenario be... Under uncertain conditions, the annualized total cost of the system is Introduce allowable cost deviation coefficient The following risk-averse IGDT robust optimization model is established:

[0157] (55);

[0158] (56);

[0159] (57);

[0160] (58);

[0161] (59);

[0162] (60);

[0163] (61);

[0164] In the formula: The allowable cost deviation coefficient is The uncertain radius of the maximum wind and solar power output that the system can withstand. When solving, first obtain the cost of the baseline deterministic scenario. , and then give And determined by binary search In each given The power output of the wind and solar power will be adjusted to the baseline power output. The deterministic programming model is solved by multiplying the bounds. If the cost deviation constraint is satisfied, the lower bound of the search is increased; otherwise, the upper bound of the search is decreased until the required accuracy is achieved.

[0165] 4 Case Analysis

[0166] Taking a ReP2A system in northern my country as an example, a time-series optimization was performed over a year of 8760 hours with a time step of 1 hour. Wind and solar power output was obtained by averaging the actual 15-minute resolution unit capacity output data hourly. With an annual production target of 100,000 tons of green ammonia, surplus electricity was not allowed to be fed into the grid under the baseline scenario, and grid connection fees were charged using a contract capacity-based billing method.

[0167] This example builds a ReP2A grid-connected capacity optimization model based on the Wolfram Mathematica platform and solves it using the Gurobi solver.

[0168] As shown in Figures 2(a) and 2(b), under the baseline scenario, the optimal system configuration is as follows: wind power capacity 321.32 MW, photovoltaic capacity 148.30 MW, electrolyzer capacity 170.00 MW, number of electrolyzers 34, ammonia synthesis unit capacity 126,119 t / a, and hydrogen storage capacity 219,109 Nm³. The energy storage capacity is 16.78 MWh, and the grid-connected capacity is 11.14 MW. The optimal grid-connected capacity is 6.55% of the hydrogen production load capacity, with an annual grid-connected electricity consumption of 5.42 GWh, accounting for 0.51% of the production electricity consumption, and an LCOA of 4458.01 yuan / t.

[0169] like Figure 3 As shown, the monthly available wind and solar power generation fluctuates significantly under the baseline scenario. The annual available wind and solar power generation is 1190.04 GWh, the power consumption for production is 1069.66 GWh, the curtailed power is 120.38 GWh, and the curtailment rate is 10.12%. This result indicates that the system mainly relies on self-built wind and solar power for power supply. However, due to the timing fluctuations in wind and solar power output and the constraints of continuous operation of ammonia synthesis, it still needs to be equipped with hydrogen storage, electrical energy storage, and a small amount of grid-connected supplementary power capacity.

[0170] As shown in Figures 4(a)-4(c), the wind and solar power output, hydrogen production capacity, hydrogen storage status, and grid connection power exhibit a coordinated relationship during a typical week. When wind and solar power output is high, the electrolyzer increases its operating power and stores excess hydrogen in the hydrogen storage unit; when wind and solar power output is low, the hydrogen storage unit releases hydrogen to maintain continuous ammonia synthesis production, and the grid only provides auxiliary power when renewable energy is insufficient. This operational result indicates that the system has formed an operational characteristic of "wind and solar power supply as the main source, hydrogen storage regulation as the main source, and grid support as a supplement."

[0171] like Figure 5As shown, the unit cost of green ammonia in the baseline scenario mainly consists of the costs of main equipment such as wind power, electrolyzers, photovoltaics, and synthetic ammonia units. Among these, wind power costs account for a relatively high proportion and are the main factor affecting the levelized cost of green ammonia; electrolyzer and photovoltaic costs are the next largest. In contrast, hydrogen storage, electricity storage, electricity purchase costs, and basic electricity charges account for a relatively low proportion, indicating that the power grid mainly plays a supplementary role in the baseline scenario. The key to reducing the cost of green ammonia lies in optimizing the installed capacity of wind and solar power, the capacity of hydrogen and ammonia production equipment, and related investment costs.

[0172] Analysis of the two-part tariff system shows that the difference in main equipment capacity is small under contract capacity billing and maximum demand billing, but the basic unit electricity cost is higher under the maximum demand billing mode, with LCOA increasing from RMB 4458.01 / t to RMB 4470.72 / t. Sensitivity analysis of contract capacity tariffs is shown in Figures 6(a) and 6(b), indicating that the contract capacity tariff has a significant constraining effect on grid-connected capacity. When the contract capacity tariff increases from 0 to RMB 10 / (kW·month), the grid-connected capacity decreases from 18.07 MW to 11.23 MW; after further increasing the capacity tariff, the grid-connected capacity remains relatively stable at approximately 11.12 MW, consistent with the maximum off-grid power. Meanwhile, the annual off-grid electricity consumption remains relatively stable at around 5.42 GWh, while LCOA increases with the increase in the basic unit electricity cost, indicating that the capacity tariff can suppress redundant grid-connected capacity configuration, but excessively high capacity tariffs will drive up the cost of green ammonia. Analysis of green ammonia certification constraints shows that by relaxing the green electricity time matching constraints, the system can reduce the demand for wind and solar power generation and energy storage configuration by increasing the purchase of external electricity, lowering the LCOA to 4417.91 yuan / t. However, the annual grid-connected electricity volume increases to 31.95 GWh, and the grid-connected share increases to 2.99%. Hourly matching scenarios are difficult to find feasible solutions without introducing certified green electricity purchases or energy storage green electricity source tracking, indicating that the stricter the certification constraints, the higher the system's requirements for wind and solar power generation, hydrogen storage regulation, and operational flexibility.

[0173] IGDT analysis results are as follows Figure 7 , Figure 8 As shown. From Figure 7 It can be seen that, with the allowable cost deviation coefficient As the capacity increases, the maximum undetermined radius of wind and solar power output that the system can withstand gradually increases, and the two show a significant positive correlation. This indicates that, under the condition of allowing a certain increase in cost, the system can improve its adaptability to the decline in wind and solar power output by adjusting the capacity configuration; when the cost deviation constraint is strict, the room for improvement in system robustness is relatively limited. Figure 8 This indicates the allowable cost deviation coefficient. The overall capacity of wind power, photovoltaic power, electrolyzers, and hydrogen storage is increasing, with wind power and hydrogen storage capacity showing the most significant growth. This result indicates that the system mainly addresses the uncertainty of wind and solar power output by increasing the installed capacity of renewable energy sources and enhancing hydrogen storage regulation capabilities. In contrast, the change in grid-connected capacity is relatively small, indicating that the grid still mainly plays a supporting role and is not the primary means of improving system robustness.

[0174] In summary, the main contribution of this invention's ReP2A system grid-connected capacity optimization method, which considers green ammonia certification and two-part tariffs, lies in:

[0175] 1) The grid-connected capacity is used as a planning decision variable and is optimized in conjunction with the capacities of wind power, photovoltaic, electrolyzer, hydrogen storage, electric energy storage and synthetic ammonia units in the full 8760h time series model.

[0176] 2) Establish a grid-connected interaction model for partially grid-connected wind and solar hydrogen and ammonia production systems, impose capacity constraints on grid-connected and grid-connected power, and avoid simultaneous power purchase and sale during the same period.

[0177] 3) Incorporate two-part electricity pricing and green ammonia certification constraints into the same capacity planning model to characterize contracted capacity or maximum demand billing, as well as monthly / hourly green electricity matching, carbon footprint, and green ammonia production requirements.

[0178] 4) Introduce the uncertainty analysis method of wind and solar power output to evaluate the system robustness under different allowable cost deviation ranges, and output grid-connected capacity, equipment capacity, operation strategy and economic results.

Claims

1. A method for optimizing the grid-connected capacity of a ReP2A system considering green ammonia certification and two-part tariffs, characterized in that, Includes the following steps: Step 1: Obtain hourly normalized wind and solar power output data, electricity price parameters, equipment technical and economic parameters, target green ammonia production, and green ammonia certification parameters within the planning period; Step 2: Establish mathematical models for each component of the integrated wind and solar power generation hydrogen and ammonia production system, including the wind and solar power generation and grid connection interaction model, the energy storage system model, the water electrolysis hydrogen production model, the hydrogen storage system model, and the ammonia synthesis production model. Step 3: Establish a grid-connected capacity optimization model, including system power balance constraints, green ammonia certification constraints, and a two-part tariff and grid cost model; The green ammonia certification constraints include green electricity time matching constraints and carbon footprint constraints; the green electricity time matching constraints require that the production electricity consumption in each accounting period within the planning cycle does not exceed the net self-built renewable electricity within the project boundary; the carbon footprint constraints require that the carbon emissions throughout the entire life cycle do not exceed the green ammonia carbon footprint limit. The two-part electricity pricing constraint includes an electricity charge constraint and a basic electricity charge constraint. The basic electricity charge constraint is calculated based on the contracted capacity or maximum demand, and the basic electricity charge is related to the grid-connected capacity. Step 4: Using the grid-connected capacity, wind power capacity, photovoltaic capacity, electrolyzer capacity, hydrogen storage capacity, electric energy storage capacity, and ammonia synthesis unit capacity as decision variables, and taking the minimum annualized total cost of the system as the objective function, solve the problem under the system constraints to obtain the optimal capacity configuration scheme and the corresponding hourly operation strategy.

2. The method for optimizing the grid-connected capacity of a ReP2A system considering green ammonia certification and two-part tariffs as described in claim 1, characterized in that, In step 2, the specific steps for establishing the wind and solar power generation and grid connection interaction model are as follows: set up and The first The normalized output per unit capacity of wind power and photovoltaic power during a given time period is then the available output of wind power and photovoltaic power. and They are respectively: (1); (2); System power curtailment satisfy: (3); Grid access capacity Limit the maximum downlink power of the system and Internet power Its constraints are: (4); (5); To avoid simultaneous electricity purchases and sales during the same period, binary variables are introduced. : (6); (7); In the formula: , , These are wind power capacity, photovoltaic capacity, and grid-connected capacity, respectively. It is a constant; It is a collection of time periods throughout the year.

3. The method for optimizing the grid-connected capacity of a ReP2A system considering green ammonia certification and two-part tariffs as described in claim 1, characterized in that, In step 2, the specific steps for establishing the energy storage system model are as follows: set up For the first Energy storage capacity status during a given time period and Let the charging and discharging power be respectively, then the energy storage dynamic equation is: (8); The upper and lower limits of energy storage capacity, cycle boundaries, and charge / discharge power constraints are as follows: (9) (10); (11); In the formula: Energy storage capacity; For energy storage duration; and These are charging efficiency and discharging efficiency, respectively. and These are the lower and upper limits of the energy storage state of charge, respectively; For time step; and The energy storage status represents the beginning and end of the time period; T represents the total number of time periods within the optimization cycle.

4. The method for optimizing the grid-connected capacity of a ReP2A system considering green ammonia certification and two-part tariffs as described in claim 1, characterized in that, In step 2, the specific steps for establishing the hydrogen production model via water electrolysis are as follows: set up For the first Hydrogen production per period Given the total electrical power of the station, the electricity-hydrogen conversion relationship can be linearly approximated as: (12); The operating range and capacity constraints of the electrolytic cell power are as follows: (13); (14); (15); In the formula: For comprehensive hydrogen production power consumption; This represents the total capacity of the electrolytic cell; This refers to the capacity of a single slot. This refers to the number of electrolytic cells. and These are the minimum and maximum load rates of the hydrogen production station, respectively. It is a positive integer; The specific steps for establishing the hydrogen storage system model are as follows: remember For the first Hydrogen storage capacity over time period Given the hydrogen consumption for ammonia synthesis, the dynamic constraint on hydrogen storage is: (16); The constraints on the upper and lower limits of hydrogen storage capacity and the consistency of the first and last states are as follows: (17); (18); In the formula: Hydrogen storage capacity; and These represent the minimum and maximum hydrogen storage ratios of the hydrogen storage system, respectively. and This represents the hydrogen storage volume at the beginning and end of the time period.

5. The method for optimizing the grid-connected capacity of a ReP2A system considering green ammonia certification and two-part tariffs as described in claim 1, characterized in that, In step 2, the ammonia synthesis production model is established as follows: set up , and These represent the hydrogen consumption, nitrogen consumption, and ammonia production for ammonia synthesis, respectively; based on the reaction relationship... We can obtain: (19); Electricity used in ammonia synthesis This can be expressed as the sum of the power consumption of the air separation nitrogen production unit and the power consumption of the ammonia synthesis unit, and can be combined into: (20); (21); annual ammonia production of the system Calculated from hydrogen consumption: (22); set up For the rated hydrogen consumption of the ammonia synthesis unit, then: (23); The operating load range and ramp-up constraints for the ammonia synthesis unit are as follows: (24); (25); (26); In the formula: , and These are the combined power consumption coefficients for air separation nitrogen production, ammonia synthesis, and ammonia synthesis, respectively. This is the hydrogen-ammonia conversion factor; The capacity of the ammonia synthesis unit; and These are the lower and upper load limits for the ammonia synthesis unit, respectively. and These represent the upward and downward ramp limits for the ammonia synthesis unit, respectively.

6. The method for optimizing the grid-connected capacity of a ReP2A system considering green ammonia certification and two-part tariffs as described in claim 1, characterized in that, In step 3, the system power balance constraint is as follows: (27); in, and These are the available power outputs for wind power and solar power, respectively. and These are offline power and online power, respectively. and These are the charging and discharging power, respectively. This refers to the total electrical power of the station. Power required for ammonia synthesis; This refers to the power of wind and solar power that has been curtailed.

7. The method for optimizing the grid-connected capacity of a ReP2A system considering green ammonia certification and two-part tariffs as described in claim 6, characterized in that, In step 3, the green ammonia certification constraints are as follows: No. Electricity consumption for hydrogen and ammonia production during specific time periods for: (28); Self-built renewable net electricity available for certification matching within the project boundaries for: (29); When a monthly green electricity time matching constraint is applied, we have: (30); When hourly green electricity time matching constraints are applied, we have: (31); In the carbon footprint constraint, the emissions from electricity purchased by local power grids are expressed as follows: (32); The carbon footprint and production constraints for green ammonia production are: (33); (34); In the formula: For the set of months; For the first Monthly corresponding time period set; The average carbon dioxide emission factor of the local power grid; This includes emissions from the entire life cycle other than electricity purchased from suppliers; For the carbon footprint limit of green ammonia; Target green ammonia production; This represents the system's annual ammonia production.

8. The method for optimizing the grid-connected capacity of a ReP2A system considering green ammonia certification and two-part tariffs as described in claim 6, characterized in that, In step 3, the two-part electricity pricing and grid cost model is as follows: System electricity purchase fee Represented as: (35); If the maximum demand billing method is adopted, then... For the first The maximum monthly grid connection demand will determine the basic electricity charge under the two-part tariff. for: (36); (37); If the contract capacity billing method is adopted, the two-part basic electricity tariff will be... for: (38); If the grid connection project is invested and constructed by the project owner, the annualized investment cost of the grid connection project is... for: (39); Revenue from surplus electricity fed into the grid Costs related to interaction with the power grid for: (40); (41); In the formula: The electricity purchase price; The electricity price is based on the maximum monthly demand. The contracted capacity electricity price; For grid connection electricity price; Investment cost per unit of grid-connected capacity; This refers to the annualized coefficient for grid-connected projects; The annualized investment cost of the grid connection project; Revenue from surplus electricity sold online.

9. The method for optimizing the grid-connected capacity of a ReP2A system considering green ammonia certification and two-part tariffs as described in claim 1, characterized in that, In step 4, the grid-connected capacity optimization model is based on the annualized total cost of the system under a given annual green ammonia production target. Minimize is the objective, and the objective function is: (42); Annualized investment in equipment and fixed operation and maintenance costs for: (43); (44); (45); Annual operating costs Including electricity purchase fees Two-part basic electricity tariff and the cost of power curtailment penalties : (46); (47); annual ammonia production of the system Annualized net income Peaceful standardization of green ammonia cost They are represented as follows: (48); (49); (50); In the formula: It is a collection of equipment, including wind power, photovoltaic, electrolysis cells, hydrogen storage, electric energy storage, ammonia synthesis units, and grid connection projects; For equipment The annualized cost factor; For equipment The unit investment cost; For equipment capacity; Annual fixed operation and maintenance fee rate; The equipment lifespan is represented by r; the discount rate is represented by r. This is the capital recovery factor; This refers to the penalty coefficient for wind and solar power curtailment. For the benefit of green ammonia products; This refers to the power of wind and solar power that has been curtailed. This is the hydrogen-ammonia conversion factor; This refers to the amount of hydrogen consumed in the synthesis of ammonia. The grid-connected capacity optimization model can be summarized as follows: (51); (52); In the formula: These are continuous decision variables, including the capacity of each device, hourly operating power, energy storage status, and hydrogen storage status; These are discrete decision variables, including the number of electrolyzers and the state variables of power purchase and sale; Equation constraints representing system power balance, electro-hydrogen-ammonia conversion relationship, energy storage and hydrogen storage dynamics; Inequality constraints representing capacity boundaries, grid-connected capacity, green ammonia certification, two-part tariffs, upper and lower limits of equipment operation, and ramp-up limits; , These are the upper and lower limits for continuous variables, respectively. This refers to the number of electrolytic cells. It is a binary variable.

10. The method for optimizing the grid-connected capacity of a ReP2A system considering green ammonia certification and two-part tariffs as described in claim 9, characterized in that, The method further includes: Step 5: Introduce information gap decision theory to conduct robustness analysis under uncertainties in wind and solar power output; assume the minimum annualized total cost under the baseline deterministic scenario is... Under uncertain conditions, the annualized total cost of the system is Introduce allowable cost deviation coefficient A robust optimization model for risk-averse gap information decision theory is established as follows: (53); (54); (55); (56); (57); (58); (59); In the formula: The allowable cost deviation coefficient is The maximum uncertain radius of wind and solar power output that the system can withstand; The radius of the wind and solar power output is uncertain; and These are the normalized output per unit capacity of wind power and photovoltaic power under the baseline scenario, respectively. and These refer to the installed capacity of wind power and photovoltaic power, respectively. The maximum value of the uncertain radius of the wind and solar power output; During the solution process, the baseline deterministic scenario cost is first obtained. Then, give the allowable cost deviation coefficient. The uncertain radius of wind and solar power output was determined by binary search. For each given uncertain radius of wind and solar power output Below, the power output of the wind and solar power systems will be adjusted to the baseline power output. The search is multiplied by 1, and a deterministic programming model is solved. If the cost deviation constraint is satisfied, the lower bound of the search is increased; otherwise, the upper bound of the search is decreased until the accuracy requirement is met.