Microgrid electric hydrogen energy storage optimization configuration method, device and medium based on feature extraction

Through feature extraction and distribution robust optimization methods, a collaborative optimization configuration model of electrochemical energy storage and hydrogen energy storage is constructed, which solves the long-term autonomy requirements of the microgrid and the problem of parallel and off-grid switching, and improves the consumption and operation of new energy. ability.

CN118412900BActive Publication Date: 2024-09-24ELECTRIC POWER RES INST OF STATE GRID ZHEJIANG ELECTRIC POWER COMAPNY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410875694.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-24
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

Hybrid energy storage in the existing technology lacks clear coupling relationships and synergy principles on multiple time scales, making it difficult to meet the long-term autonomy needs of microgrids and failing to fully reflect the regulatory advantages of long-term energy storage, especially in grid-connected and off-grid switching scenarios. Down.

Method used

A microgrid electricity and hydrogen energy storage optimization configuration method based on feature extraction is adopted. Multi-time scale features are extracted through seasonal and trend decomposition algorithms and variational mode decomposition algorithms. Combined with the data-driven distribution robust optimization method, a two-stage distribution robustness is constructed. The optimization model is solved using a column constraint generation algorithm to achieve collaborative optimal configuration of electrochemical energy storage and hydrogen energy storage.

Benefits of technology

It effectively reduces the solution complexity of the mixed integer nonlinear programming model, improves the level of new energy consumption and the autonomous operation capability of the microgrid, and achieves the safety and efficiency of on-grid and off-grid switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118412900B
    Figure CN118412900B
Patent Text Reader

Abstract

The present invention is a method, device and medium for optimizing configuration of electric hydrogen energy storage in a microgrid based on feature extraction, which belongs to the field of power system planning. In view of the fact that the existing method does not consider the demand for off-grid switching of microgrids and the requirement for long-term autonomy, a method for optimizing configuration of electric hydrogen energy storage in a microgrid based on feature extraction is proposed, comprising: setting an electric hydrogen coupled microgrid with three-level energy storage, constructing a hybrid energy storage optimization configuration model to simulate the grid-connected operation of the electric hydrogen coupled microgrid and to verify off-grid safety; using a seasonal and trend decomposition algorithm and a variational mode decomposition algorithm respectively to determine the 0-1 variable values ​​corresponding to the charging and discharging actions for characterizing daily regulating hydrogen energy storage and seasonal hydrogen energy storage; optimizing the hybrid energy storage optimization configuration model to represent the uncertainty of off-grid operation, and combining the 1-norm and the ∞-norm to constrain the probability distribution of the uncertainty of off-grid operation represented; using a column constraint generation algorithm to solve a two-stage distributed robust optimization model to obtain an energy storage configuration result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of power system planning, and in particular relates to a method, device and medium for optimizing configuration of microgrid electric hydrogen energy storage based on feature extraction. Background Art

[0002] With the continuous development of microgrid technology and the high penetration of distributed renewable energy, the strong randomness of renewable energy output has brought great challenges to the balance of power and electricity, and also put forward higher requirements for the long-term off-grid operation of microgrids. As an important link in microgrids, energy storage can flexibly adjust the imbalance between sources and loads to ensure power supply and energy consumption. Existing electrochemical energy storage is mainly used to smooth power fluctuations on a short time scale, and it is difficult to achieve energy transfer on a long time scale, and cannot meet the long-term autonomy needs of microgrids. Hydrogen energy storage, as a long-term energy storage method, gets rid of the power-capacity ratio limitation of short-term energy storage, thereby realizing energy transfer across days, weeks and even seasons. Short-term energy storage represented by electrochemical energy storage and long-term energy storage represented by hydrogen energy storage have different adjustment capabilities and application scenarios in balancing the mismatch between sources and loads. The close cooperation between the two can provide all-round support for the flexibility needs of the system. Therefore, the coordinated optimization configuration of long-term and short-term hybrid energy storage is an important step in the construction and development of microgrids. At present, scholars at home and abroad have initially conducted research on related issues.

[0003] However, in existing research, hybrid energy storage still lacks clear coupling relationships and synergy principles on multiple time scales, and fails to highlight the regulatory advantages of long-term energy storage. Most of them focus on production simulation, or build panoramic time series simulation models, or build multi-scenario time series simulation models. The former faces the problem that large-scale mixed integer nonlinear programming models are difficult to solve, and the latter is limited by the fact that typical days cannot fully reflect the long-term changes in the power generation and consumption curves, and the energy storage load state balance constraints are limited to short periods. In addition, existing research only targets a single grid-connected scenario or off-grid scenario, and does not take into account the needs of microgrid on-grid and off-grid switching and the requirements of long-term autonomy. Summary of the invention

[0004] In order to solve the problems existing in the above-mentioned prior art, the present invention proposes a microgrid electric hydrogen energy storage optimization configuration method, device and medium based on feature extraction, which can give full play to the advantages of short-cycle electrochemical energy storage and long-cycle hydrogen energy storage in regulating the source-load imbalance on different time scales, improve the level of new energy consumption and the autonomous operation capability of the microgrid, and also consider the two working states of grid-connected and off-grid, ensure the safety of grid-connected and off-grid, and realize on-grid and off-grid switching.

[0005] The present invention adopts the following technical solution: a method for optimizing the configuration of microgrid electric hydrogen energy storage based on feature extraction, comprising:

[0006] S1, set up three-level energy storage of electrochemical energy storage-daily regulating hydrogen energy storage-seasonal hydrogen energy storage for application in the electric-hydrogen coupled microgrid, and build a hybrid energy storage optimization configuration model based on the electric-hydrogen coupled microgrid to simulate the grid-connected operation of the electric-hydrogen coupled microgrid and verify the off-grid safety; due to the presence of many 0-1 variables, the hybrid energy storage optimization configuration model built at this time cannot be solved;

[0007] S2, using the seasonal and trend decomposition algorithm and the variational mode decomposition algorithm, respectively, to extract multi-time scale features from the source-load imbalance power series throughout the year, so as to determine the 0-1 variable values ​​used to characterize the charging and discharging actions of the daily regulation hydrogen energy storage and seasonal hydrogen energy storage, thereby reducing the number of 0-1 variables in the grid-connected operation simulation process;

[0008] S3, using a data-driven distributed robust optimization method to describe the uncertainty of off-grid operation of the hybrid energy storage optimization configuration model, and combining the 1-norm and the ∞-norm to constrain the probability distribution of the uncertainty of off-grid operation, to obtain a two-stage distributed robust optimization model; wherein the 0-1 values ​​obtained for characterizing the charging and discharging actions of the daily regulating hydrogen energy storage and the seasonal hydrogen energy storage are used as input parameters of the two-stage distributed robust optimization model;

[0009] S4, using a column constraint generation algorithm to solve the two-stage distributed robust optimization model to obtain the energy storage configuration result of the constructed electric-hydrogen coupled microgrid.

[0010] In this application, the three levels of energy storage are: the first level energy storage is electrochemical energy storage BT, with a balancing period of 24h (daily balance), only charging or discharging within 1h, which is used to quickly respond to random fluctuations in hourly source-load imbalance power; the second level energy storage is daily regulating hydrogen energy storage HS, with a balancing period of 168h (weekly balance), only charging or discharging hydrogen within 24h, which is used to adjust the daily source-load imbalance power; the third level energy storage is seasonal hydrogen energy storage SHS, with a balancing period of 8760h (annual balance), only charging or discharging hydrogen within 168h, which is used to balance the weekly source-load imbalance power; the above three levels of energy storage operate in coordination to realize the support of long- and short-cycle electric-hydrogen hybrid energy storage for microgrids.

[0011] Seasonal and trend decomposition using loess (STL) and variational mode decomposition (VMD) are used. Weekly unbalanced electricity is a trend representation of the source-load unbalanced power sequence throughout the year, and is identified and extracted by the STL algorithm based on locally weighted scatterplot smoothing (LOESS). The trend component of the unbalanced power sequence is output in the double loop nested in the inner and outer layers of STL. The weekly unbalanced electricity is obtained based on the cumulative results of the unbalanced power trend component every 168 hours, and the weekly power surplus or shortage status is judged. A positive number indicates that there is a surplus of electricity, and the SHS has a demand for hydrogen charging, and the excess new energy is consumed by electrolysis of hydrogen in the electrolyzer; a negative number indicates a shortage of electricity, and the SHS has a demand for hydrogen discharge, and the load demand is met by fuel cell power generation.

[0012] Furthermore, the specific process of constructing the hybrid energy storage optimization configuration model is as follows:

[0013] S1.1, with the goal of minimizing the sum of the equal annual investment cost and grid-connected operation cost of the constructed electric-hydrogen coupled microgrid, set power generation and consumption balance constraints, wind power output constraints, photovoltaic output constraints, load output constraints, power purchase and sales constraints, and energy storage equipment operation constraints, and simulate the grid-connected operation of the electric-hydrogen coupled microgrid to construct the investment configuration of hybrid energy storage;

[0014] S1.2, with the goal of minimizing the off-grid operation cost of the constructed electric-hydrogen coupled microgrid, set power generation and consumption balance constraints, wind power output constraints, photovoltaic output constraints, load output constraints and energy storage equipment operation constraints, and perform off-grid safety verification on the electric-hydrogen coupled microgrid based on the investment configuration results of the grid-connected operation simulation phase.

[0015] Furthermore, the specific process of step S2 is as follows:

[0016] S2.1, based on the seasonal and trend decomposition algorithm, obtain the unbalanced power sequence trend component from the annual historical data, and obtain the weekly unbalanced power and seasonal hydrogen energy storage charging and discharging actions based on the unbalanced power sequence trend component;

[0017] S2.2, based on the variational mode decomposition algorithm, obtain the intermediate component from the annual source-load unbalanced power sequence after eliminating the trend component, and obtain the daily unbalanced power and daily regulation of hydrogen energy storage charging and discharging actions based on the intermediate component.

[0018] Furthermore, the specific process of step S2.1 is as follows:

[0019] S2.1.1, use the inner loop to determine the trend component of the next loop:

[0020] S2.1.1.1, remove the trend component of the previous cycle from the annual source-load imbalance power sequence to obtain the detrended sequence of the current cycle;

[0021] S2.1.1.2, extract the data points at the same position in each period of the detrended sequence to form a periodic subsequence, perform LOESS regression, and obtain a smoothed periodic subsequence;

[0022] S2.1.1.3, then perform smoothing averaging and LOESS regression on the smoothed periodic subsequence to obtain a periodic low-pass filtered subsequence;

[0023] S2.1.1.4, subtract the periodic low-pass filtered subsequence from the smoothed periodic subsequence to obtain the periodic component;

[0024] S2.1.1.5, subtract the periodic component from the annual source-load imbalance power sequence to obtain the deperiodic sequence;

[0025] S2.1.1.6, perform LOESS regression on the de-periodic series to obtain the trend component of the next cycle;

[0026] S2.1.2, based on the inner loop, obtain the residual value of the outer loop:

[0027] S2.1.2.1, subtract the periodic component and the trend component of the next cycle from the annual source-load imbalance power sequence to obtain the residual value;

[0028] S2.1.2.2, introduce robustness weights to evaluate residual values;

[0029] S2.1.3, when the trend component of the inner cycle and the residual value of the outer cycle converge, the trend component of the unbalanced power sequence is output, and then the weekly unbalanced electricity is obtained, and the charging and discharging actions of the seasonal hydrogen energy storage are determined according to the positive or negative value of the weekly unbalanced electricity.

[0030] Furthermore, the specific process of step S2.2 is as follows:

[0031] S2.2.1, using variational mode decomposition algorithm to decompose the trend component of the unbalanced power series to form multiple eigenmode components with different center frequencies;

[0032] S2.2.2, update the intrinsic mode components with different center frequencies to obtain the daily unbalanced electricity;

[0033] S2.2.3, based on the positive and negative daily unbalanced electricity, obtain the daily regulation of hydrogen energy storage charging and discharging actions.

[0034] Furthermore, the specific process of step S4 is as follows:

[0035] S4.1, based on the column constraint generation algorithm, decomposing the two-stage distributed robust optimization model into a main problem and a sub-problem; wherein the main problem is minimizing the investment cost and the grid-connected operation cost, and the sub-problem is minimizing the off-grid operation cost;

[0036] S4.2, solving the main problem, obtaining the current optimal solution of the main problem, and using the current optimal solution as the current lower limit value of the two-stage distributed robust optimization model;

[0037] S4.3, solving the sub-problem based on the current optimal solution of the main problem, obtaining the current optimal solution of the sub-problem, and providing the current upper limit value as a two-stage distributed robust optimization model;

[0038] S4.4, repeatedly iterate the main problem and the sub-problem to update the current lower limit value and the current upper limit value until the difference between the optimization values ​​of the main problem and the sub-problem meets the convergence criterion, and output the energy storage configuration result of the electric-hydrogen coupled microgrid.

[0039] As the second invention point, a microgrid electric hydrogen energy storage optimization configuration device based on feature extraction includes:

[0040] The generation unit sets up three-level energy storage, namely electrochemical energy storage, daily regulating hydrogen energy storage and seasonal hydrogen energy storage, for application in the electric-hydrogen coupled microgrid. A hybrid energy storage optimization configuration model is constructed according to the electric-hydrogen coupled microgrid to simulate the grid-connected operation of the electric-hydrogen coupled microgrid and verify its off-grid safety.

[0041] The extraction unit uses the seasonal and trend decomposition algorithm and the variational mode decomposition algorithm to extract multi-time scale features of the source-load imbalance power series throughout the year, so as to determine the 0-1 variable values ​​used to characterize the charging and discharging actions of the daily regulation hydrogen energy storage and the seasonal hydrogen energy storage respectively;

[0042] The optimization unit adopts a data-driven distributed robust optimization method to describe the uncertainty of off-grid operation of the hybrid energy storage optimization configuration model, and combines the 1-norm and the ∞-norm to constrain the probability distribution of the uncertainty of off-grid operation, and obtains a two-stage distributed robust optimization model; wherein the 0-1 values ​​obtained for characterizing the charging and discharging actions of the daily regulating hydrogen energy storage and the seasonal hydrogen energy storage are used as input parameters of the two-stage distributed robust optimization model;

[0043] The solving unit uses a column constraint generation algorithm to solve the two-stage distributed robust optimization model to obtain the energy storage configuration result of the constructed electric-hydrogen coupled microgrid.

[0044] As a third invention point, a device for optimizing the configuration of microgrid electric hydrogen energy storage based on feature extraction includes a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the method for optimizing the configuration of microgrid electric hydrogen energy storage based on feature extraction.

[0045] As a fourth invention point, a computer-readable storage medium stores a program thereon, and when the program is executed by a processor, the method for optimizing the configuration of microgrid electric hydrogen energy storage based on feature extraction is implemented.

[0046] Beneficial effects of the invention: The present invention provides a method, device and medium for optimizing the configuration of microgrid electric hydrogen energy storage based on feature extraction, which fully utilizes the regulatory advantages of short-period electrochemical energy storage and long-period hydrogen energy storage in view of the multi-time scale characteristics of source-load imbalance; determines the 0-1 variables in large-scale mixed integer nonlinear programming problems based on STL and VMD, effectively reducing the complexity of model solution; considers long-period off-grid safety verification, significantly improves the level of new energy absorption and the autonomous operation capability of the microgrid, and can realize on-grid and off-grid switching. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 This is a flow chart of the microgrid electric hydrogen energy storage optimization configuration method based on feature extraction of Example 1;

[0048] Figure 2 is a schematic diagram of an electric-hydrogen coupled microgrid of Example 1;

[0049] Figure 3 This is a schematic diagram of the season and trend decomposition algorithm results of Example 1;

[0050] Figure 4 Schematic diagram of the variational mode decomposition algorithm result of Example 1;

[0051] Figure 5 A comparison chart of off-grid operation costs of Example 5 and Example 6 of Embodiment 1;

[0052] Figure 6 This is a schematic diagram of a microgrid electric hydrogen energy storage optimization configuration device based on feature extraction in Example 2. DETAILED DESCRIPTION

[0053] Example 1

[0054] Microgrid electric hydrogen energy storage optimization configuration method based on feature extraction, the flow chart is as follows Figure 1 As shown, including:

[0055] S1, set up three-level energy storage of electrochemical energy storage-daily regulating hydrogen energy storage-seasonal hydrogen energy storage for application in the electric-hydrogen coupled microgrid, and build a hybrid energy storage optimization configuration model based on the electric-hydrogen coupled microgrid to simulate the grid-connected operation of the electric-hydrogen coupled microgrid and verify the off-grid safety; specifically:

[0056] S1.1, with the goal of minimizing the sum of the equal annual investment cost and grid-connected operation cost of the constructed electric-hydrogen coupled microgrid, set power generation and consumption balance constraints, wind power output constraints, photovoltaic output constraints, load output constraints, power purchase and sales constraints, and energy storage equipment operation constraints, and simulate the grid-connected operation of the electric-hydrogen coupled microgrid to construct the investment configuration of hybrid energy storage;

[0057] The objective function expression of the grid-connected operation simulation is:

[0058] (1);

[0059] (2);

[0060] (3);

[0061] (4);

[0062] (5);

[0063] (6);

[0064] (7);

[0065] (8);

[0066] Where: C inv The annual investment cost of hybrid energy storage is equal to; C ope The grid-connected operation cost; C pun Penalty costs for wind, solar and load abandonment; C grid Cost of purchasing and selling electricity; C BT BT operation and maintenance costs; C HS HS operation and maintenance costs; C SHS is the SHS operation and maintenance cost; m represents the energy storage equipment, and the set The BT, HS hydrogen storage tank, electrolyzer and fuel cell, SHS hydrogen storage tank, electrolyzer and fuel cell are included; r is the discount rate, L m is the useful life of equipment m, is the unit capacity cost of equipment m, Cap m is the configuration capacity of device m; , and are the unit penalty costs for wind curtailment, solar curtailment, and load curtailment, respectively. Time-of-use electricity price, , and Operation and maintenance costs for energy storage units at all levels; , and are wind power, photovoltaic power and load power at time t, respectively, then the unbalanced power of source and load throughout the year It is defined as the difference between wind and solar power generation and load power consumption, that is, ; , and are the predicted power of wind power, photovoltaic power and load at time t respectively; is the interactive power between the microgrid and the external power grid at time t, positive means power purchase, negative means power sales; and is the BT charging and discharging power at time t; and are the power consumption of HS electrolyzer and the power generation of HS fuel cell at time t respectively; and are the power consumption of SHS electrolyzer and power generation of SHS fuel cell at time t respectively; is the set of hours throughout the year, Δ t is the time step, which is set to 1 hour here.

[0067] The constraints of the grid-connected operation simulation are:

[0068] 1. Power generation and consumption balance constraints:

[0069] (9);

[0070] 2. Restrictions on electricity purchase and sale:

[0071] (10);

[0072] Where: is the maximum interactive power between the microgrid and the external grid.

[0073] 3. Wind power, photovoltaic and load output constraints:

[0074] Due to the limitation of transformer capacity, there is a maximum interactive power constraint between the microgrid and the external power grid. There is a small amount of wind, solar and load reduction under grid-connected operation. Therefore, the grid-connected operation cost includes the penalty costs for wind, solar and load abandonment throughout the year.

[0075] (11);

[0076] (12);

[0077] (13);

[0078] Where: is the proportion of uninterruptible load;

[0079] 4.BT operation constraints:

[0080] BT has the advantages of fast response speed and high cycle life, and is mainly used to smooth short-term power fluctuations. Due to the existence of a certain self-consumption phenomenon, the balance period for BT to return to the initial charge state is short, generally 24 hours (daily balance), and is subject to the mutual exclusion constraint of charge and discharge states, and can only charge or discharge within 1 hour.

[0081] (14);

[0082] (15);

[0083] (16);

[0084] (17);

[0085] Where: E BT is the BT rated capacity, is the power-to-capacity ratio, It is the charge and discharge sign, 1 means charging, 0 means discharging; and are the charge states of BT at t and t-1 respectively, , and They are the state of charge and charging and discharging power of BT at t=1, and is the self-discharge rate and charge-discharge efficiency, and are the upper and lower limit coefficients of the state of charge; is the initial charge state; A collection of days throughout the year.

[0086] Formula (14) limits the BT charging and discharging power, Formulas (15-16) describe the state of charge, and Formula (17) is a balance constraint, indicating that the BT returns to the initial state of charge in the last hour of each day.

[0087] 5.HS operation constraints:

[0088] HS has a slow response speed and a low cycle life. In order to reduce equipment loss caused by frequent charging and discharging, it only charges or discharges hydrogen every 24 hours. Since HS has a low self-consumption rate, it can return to the initial hydrogen storage level (weekly balance) within 168 hours, which is used to adjust the daily source-load imbalance and realize cross-day energy transfer.

[0089] (18);

[0090] (19);

[0091] (20);

[0092] (twenty one);

[0093] (twenty two);

[0094] Where: H HS is the rated capacity of the HS hydrogen storage tank, P EL is the rated power of HS electrolyzer, P FC is the rated power of the HS fuel cell, It is the hydrogen charging and discharging mark at time t, and the charging and discharging status of the day Keep it consistent, 1 means electrolysis in the electrolyzer to produce hydrogen, HS to charge hydrogen, 0 means fuel cell to generate electricity, HS to release hydrogen, … They are the hydrogen charging and discharging marks at various time points in a day; and are the hydrogen storage levels of HS at t and t-1, , and are the hydrogen storage level of HS, the power consumption of electrolyzer and the power generation of fuel cell at t=1, is the hydrogen storage level of HS at t=168w, is the HS charging and discharging efficiency, and are HS electrolyzer and fuel cell efficiencies, respectively; and are the upper and lower limit coefficients of hydrogen storage level; is the initial hydrogen storage level; Collections for each week of the year.

[0095] Formula (18) limits the power consumption of the HS electrolyzer and the power generation of the fuel cell. Formulas (19-20) describe the hydrogen storage level. Formula (21) is the charge and discharge constraint, indicating that HS has only one charge and discharge state every day. Formula (22) is the balance constraint, indicating that HS returns to the initial hydrogen storage level in the last hour of each week.

[0096] 6.SHS operation constraints:

[0097] SHS has a slow response speed and a low cycle life. In order to reduce equipment loss caused by frequent charging and discharging, it only charges or discharges hydrogen every 168 hours. Since SHS has a low self-consumption rate and can complete the charging and discharging cycle over a long span, it is set to return to the initial hydrogen storage level (annual balance) within 8760 hours to adjust the weekly source-load imbalance and realize cross-week energy transfer.

[0098] (twenty three);

[0099] (twenty four);

[0100] (25);

[0101] (26);

[0102] (27);

[0103] Where: H SHS is the rated capacity of the SHS hydrogen storage tank, P SEL is the rated power of the SHS electrolyzer, P SFC is the rated power of the SHS fuel cell, It is the hydrogen charging and discharging mark at time t, and the charging and discharging status of the week Keep it consistent, 1 means electrolysis in the electrolyzer to produce hydrogen, SHS to charge hydrogen, 0 means fuel cell to generate electricity, SHS to discharge hydrogen, … They are the hydrogen charging and discharging marks at various time points in a week; and are the hydrogen storage levels of SHS at t and t-1, , and They are the hydrogen storage level of SHS, the power consumption of electrolyzer and the power generation of fuel cell at t=1, is the hydrogen storage level of SHS at t=8760, is the SHS hydrogen charging and discharging efficiency, and are the SHS electrolyzer and fuel cell efficiencies, respectively; and are the upper and lower limit coefficients of hydrogen storage level; is the initial hydrogen storage level.

[0104] Formula (23) limits the power consumption of the SHS electrolyzer and the power generation of the fuel cell. Formulas (24-25) describe the hydrogen storage level. Formula (26) is the charge and discharge constraint, indicating that the SHS has only one charge and discharge state per week. Formula (27) is the balance constraint, indicating that the SHS returns to the initial hydrogen storage level in the last hour of the year.

[0105] S1.2, with the goal of minimizing the off-grid operation cost of the constructed electric-hydrogen coupled microgrid, set power generation and consumption balance constraints, wind power output constraints, photovoltaic output constraints, load output constraints and energy storage equipment operation constraints, and perform off-grid safety verification on the electric-hydrogen coupled microgrid based on the investment configuration results of the grid-connected operation simulation phase.

[0106] In extreme weather conditions, after an external power grid failure, the microgrid relies solely on hybrid energy storage to adjust the source-load imbalance, and must have the ability to operate autonomously off the grid for a long period of time, so that it can cope with emergencies and maintain safe and stable operation of the system. Due to the uncertainty of wind and solar load output and the randomness of off-grid operation, a two-stage distributed robust optimization model is used to represent off-grid uncertainty. A set of off-grid scenarios covering a variety of renewable energy power generation situations is generated based on historical operating data. Among them, the extreme scenario of continuous low output of renewable energy is an important cause of the imbalance between supply and demand in the system, and should be considered in the safety verification stage to improve the resilience of system operation.

[0107] The objective function of off-grid safety verification is:

[0108] (28);

[0109] (29);

[0110] (30);

[0111] (31);

[0112] (32);

[0113] (33);

[0114] Where: C2 is the off-grid operation cost, , , and They are the penalty cost of abandoned wind and solar load in off-grid scenario n and the operation and maintenance cost of energy storage equipment for BT, HS and SHS; p n is the probability of off-grid scenario n occurring; is the confidence set of the scene probability; A collection of typical off-grid scenarios. Assemble for off-grid operation time period; , and Unit penalty costs for abandoned wind, solar and load in off-grid operation; , and is the wind power, photovoltaic power and load power of off-grid scenario n at time t, , and Predict wind power, PV and load power for off-grid scenario n at time t; and is the BT charging and discharging power in the off-grid scenario n at time t; and is the HS electrolyzer power consumption and HS fuel cell power generation at time t in the off-grid scenario n; and are the power consumption of the SHS electrolyzer and the power generation of the SHS fuel cell in the off-grid scenario n at time t.

[0115] Constraints of the off-grid safety verification objective function:

[0116] 1. Power generation and consumption balance constraints:

[0117] (34);

[0118] 2. Wind power, photovoltaic and load output constraints:

[0119] (35);

[0120] (36);

[0121] (37);

[0122] Where: It is the proportion of uninterruptible load in off-grid operation;

[0123] 3.BT operation constraints:

[0124] (38);

[0125] (39);

[0126] (40);

[0127] (41);

[0128] Where: is the charge and discharge flag of the off-grid scenario n at time t, 1 indicates charging, and 0 indicates discharging; and are the charge states of BT at t and t-1 in the off-grid scenario n, , and They are the state of charge and charging and discharging power of BT in off-grid scenario n at t=1; A collection of days of the week.

[0129] 4.HS operation constraints:

[0130] (42);

[0131] (43);

[0132] (44);

[0133] (45);

[0134] (46);

[0135] Where: It is the hydrogen charging and discharging mark of off-grid scenario n at time t, and the charging and discharging status of the day Keep it consistent, 1 means electrolysis in the electrolyzer to produce hydrogen, HS to charge hydrogen, 0 means fuel cell to generate electricity, HS to release hydrogen, … They are the hydrogen charging and discharging marks at various time points in a day; and are the hydrogen storage levels of HS at t and t-1 in off-grid scenario n, , and are the hydrogen storage level, electrolyzer power consumption and fuel cell power generation of HS in the off-grid scenario n at t=1, is the hydrogen storage level of HS at t=168w in grid scenario n.

[0136] 5.SHS operation constraints:

[0137] During the 168h off-grid operation cycle, the charging and discharging behaviors of BT and HS are still subject to balance constraints, while SHS has only one charging and discharging state. Within a certain margin, it can consume excess wind and solar power through electrolysis to produce hydrogen, or make up for power shortages through fuel cell power generation to participate in the imbalance regulation:

[0138] (47);

[0139] (48);

[0140] (49);

[0141] (50);

[0142] Where: It is the hydrogen charging and discharging mark of off-grid scenario n at time t, and the charging and discharging status of the week Keep it consistent, 1 means electrolysis in the electrolyzer to produce hydrogen, SHS to charge hydrogen, 0 means fuel cell to generate electricity, SHS to discharge hydrogen, … They are the hydrogen charging and discharging marks at various time points in a week; and are the hydrogen storage levels of SHS at t and t-1 in off-grid scenario n, , and are the hydrogen storage level, electrolyzer power consumption and fuel cell power generation of SHS in the off-grid scenario n at t=1, and It is the upper and lower limit coefficient of hydrogen storage level under off-grid operation.

[0143] In view of the multi-time scale characteristics of the unbalanced quantity, the three-level energy storage is adjusted in different ranges: BT with fast response speed and high cycle life is frequently charged and discharged during the day to achieve flexible balancing of unbalanced power; SHS with slow response speed and low cycle life transfers electricity between weeks to achieve peak shaving and valley filling throughout the year. HS adjusts the source-load power difference that exceeds the BT charging and discharging quota during the day and cannot be taken into account by SHS during the week to achieve daytime electricity transfer. Therefore, the unbalanced quantity can be regarded as the superposition of three parts: the trend component regulated by SHS, which fluctuates steadily and changes slowly; the high-frequency component regulated by BT, which fluctuates violently and changes rapidly; the intermediate component regulated by HS, which has relatively fuzzy characteristics and is difficult to directly identify.

[0144] S2, the seasonal and trend decomposition algorithm and the variational mode decomposition algorithm are used to extract multi-time scale features of the source-load imbalance power series throughout the year, so as to determine the 0-1 variable values ​​used to characterize the charging and discharging actions of daily regulation hydrogen energy storage and seasonal hydrogen energy storage, respectively.

[0145] The specific process is:

[0146] S2.1, based on the seasonal and trend decomposition algorithm, obtain the trend component of the unbalanced power sequence, and obtain the weekly unbalanced power and seasonal hydrogen energy storage charging and discharging actions based on the trend component of the unbalanced power sequence; the specific process is:

[0147] S2.1.1, use the inner loop to determine the trend component of the next loop:

[0148] Take the mth loop as an example:

[0149] S2.1.1.1, from Subtract the trend component of the m–1th inner cycle from (Initial trend component ) to obtain a new detrended series;

[0150] S2.1.1.2, extract the data points at the same position in each cycle of the detrended sequence to form a periodic subsequence, perform LOESS regression, and obtain a smooth periodic subsequence; set the unbalanced power sequence cycle according to the production cycle and the characteristics of new energy generation n p The data points at the same position in each period of the new detrended sequence are extracted to form a periodic subsequence, and then LOESS regression is performed on it to obtain the sequence ;

[0151] S2.1.1.3, Yes Perform three sliding averages and one LOESS regression to obtain the series ;

[0152] S2.1.1.4, from Minus , and obtain the periodic component ;

[0153] S2.1.1.5, from Subtract the periodic component , and obtain a new de-periodic sequence;

[0154] S2.1.1.6, perform LOESS regression on the de-periodic series to obtain the trend component ;

[0155] S2.1.2, based on the inner loop, use the outer loop to determine the residual value:

[0156] S2.1.2.1, subtract the periodic component and the trend component of the next cycle from the annual source-load imbalance power series, that is, Get residual value ;

[0157] S2.1.2.2, Introducing robustness weights , and evaluate the residual value:

[0158] (51);

[0159] Where: median(•) is the median function; B(•) is the Bisquare function.

[0160] Introducing robustness weights Residual value evaluation is performed to adjust the neighborhood weights of the inner loop LOESS regression and improve the robustness of the decomposition.

[0161] S2.1.3, when the trend component of the inner cycle and the residual value of the outer cycle converge, the trend component of the output unbalanced power series , process it according to formula (52) to obtain the unbalanced electricity in the wth week The charging and discharging actions of seasonal hydrogen energy storage are determined according to the positive or negative value of weekly unbalanced electricity.

[0162] (52);

[0163] (53);

[0164] Weekly unbalanced electricity is a trend representation of the unbalanced power sequence of the source and load throughout the year, which can be identified and extracted by the STL algorithm based on locally weighted scatter plot smoothing (LOESS). LOESS is a non-parametric smoothing method that uses local regression to fit data. The basic idea is to perform weighted polynomial regression on the points in the local neighborhood of each fitting point to obtain a regression function, and the weight value increases as the distance between the neighboring points and the fitting point decreases.

[0165] S2.2, based on the variational mode decomposition algorithm, obtain the intermediate component from the annual source-load unbalanced power sequence after eliminating the trend component, and obtain the daily unbalanced power and daily regulation of hydrogen energy storage charging and discharging actions based on the intermediate component.

[0166] The specific process is:

[0167] S2.2.1, using variational mode decomposition algorithm to decompose the trend component of the unbalanced power series to form multiple eigenmode components with different center frequencies;

[0168] According to formula (58-59), and renew:

[0169] (54);

[0170] (55);

[0171] Where: n is the number of iterations, is the kth mode in the current iteration The Fourier transform of (k=1,…,K), is the center frequency corresponding to the modal component, is the random frequency, The signal to be decomposed The Fourier transform of α is the quadratic penalty factor, is the Lagrange multiplication operator The Fourier transform of .

[0172] According to formula (56), renew;

[0173] (56);

[0174] Where: is the Lagrange multiplier update parameter, where the superscripts n and n+1 represent the number of iterations.

[0175] judge Whether the error accuracy is satisfied, if so, the iteration ends and K modal components arranged from high to low frequency are obtained as shown in formula (57); otherwise, it returns to the next iteration.

[0176] (57);

[0177] S2.2.2, update the intrinsic mode components with different center frequencies to obtain the daily unbalanced electricity;

[0178] According to formula (58), the Kth mode is processed to obtain the unbalanced electricity on the dth day: .

[0179] (58);

[0180] S2.2.3, based on the positive and negative daily unbalanced electricity, obtain the daily regulation of hydrogen energy storage charging and discharging actions:

[0181] (59).

[0182] The daily unbalanced electricity can be obtained after removing the trend component and high-frequency component with obvious characteristics. Among them, the trend component has been extracted, and the high-frequency component can be identified based on the VMD algorithm. VMD is an advanced signal processing method. The essential principle is to construct and solve constrained variational problems, decompose complex signals into K intrinsic mode components with different center frequencies, and is suitable for processing non-stationary signals. The original unbalanced power sequence is decomposed by VMD. Before decomposition, the number of modal components K needs to be specified. Fast Fourier decomposition can be performed on the signal to be decomposed, and the K value can be preset according to the number of peaks in the spectrum.

[0183] S3, using a data-driven distributed robust optimization method to describe the uncertainty of off-grid operation of the hybrid energy storage optimization configuration model, and combining the 1-norm and the ∞-norm to constrain the probability distribution of the uncertainty of off-grid operation, to obtain a two-stage distributed robust optimization model; wherein the 0-1 values ​​obtained for characterizing the charging and discharging actions of the daily regulating hydrogen energy storage and the seasonal hydrogen energy storage are used as input parameters of the two-stage distributed robust optimization model;

[0184] Comprehensively consider the 1-norm and ∞-norm to ensure that when the historical data is large enough, p n The probability distribution that satisfies converges to the true probability distribution. Under the comprehensive norm, the feasible domain Ω is:

[0185] (60);

[0186] Where: is the initial probability of off-grid scenario n determined by scenario clustering, θ 1 and is the 1-norm and -The probability allowable deviation limit under the norm constraint, N s is the number of off-grid scenarios;

[0187] The scenario probability satisfies the following confidence level:

[0188] (61);

[0189] (62);

[0190] Let the right sides of the above two equations be and , then

[0191] (63);

[0192] (64);

[0193] Where: N is the number of historical data, and is the uncertainty probability confidence level of formula (61-62).

[0194] The first stage variables are x It includes the investment plans of BT, HS and SHS, as well as the grid-connected operation variables; the second-stage variables are represented by y n Indicates that, including off-grid operation variables such as wind power, photovoltaic power, load and actual output of each energy storage device, the compact form of the two-stage distributed robust optimization model is as follows:

[0195] (65);

[0196] (66);

[0197] (67);

[0198] (68);

[0199] (69);

[0200] (70);

[0201] (71);

[0202] Where: represents the investment cost and grid-connected operation cost, By n represents the operating cost of off-grid scenario n; Equations (66-67) represent the first-stage inequality and equality constraints, corresponding to Equation (9-27); Equations (68-71) represent the second-stage inequality and equality constraints, including the constraints on the second-stage variables alone and the constraints on the variables in both stages. C, D, E, F, G, H, J, K and c, d, e, f, g, j are only compact expressions of the constraints.

[0203] Since there are nonlinear constraints in both equations (14) and (60), they need to be linearized before solving the model. Equation (14) can be transformed using the Big-M method. Taking BT charging constraints as an example, the auxiliary variable and a sufficiently large positive number M, we obtain the following linear constraints:

[0204] (72);

[0205] (73);

[0206] (74);

[0207] Formula (65) can introduce 0-1 auxiliary variables for transformation. Taking the 1-norm constraint as an example, the auxiliary variable is introduced and Respectively represent the probability p n relatively The 0-1 labels for positive and negative offsets give the following linear constraints:

[0208] (75);

[0209] (76);

[0210] (77);

[0211] (78);

[0212] (79);

[0213] Where: and For probability p n relatively The positive and negative offset of

[0214] S4, using a column constraint generation algorithm to solve the two-stage distributed robust optimization model to obtain the energy storage configuration result of the constructed electric-hydrogen coupled microgrid.

[0215] Formula (65) is a three-level two-stage optimization problem in the form of min-max-min. In order to facilitate the solution, the problem is decomposed into the master problem (MP) and the sub-problem (SP) based on the C&CG algorithm and iterated until the difference between the optimization values ​​of the master and sub-problems meets the convergence criterion and the iteration is stopped.

[0216] During the iteration process, the main problem is optimized and solved according to the probability distribution of the worst off-grid scenario obtained by solving the sub-problems, providing a lower bound for equation (65).

[0217] (80);

[0218] (81);

[0219] Where: I is the number of iterations, The probability distribution of the worst off-grid scenario obtained by solving the sub-problem in the i-th iteration;

[0220] During the iteration, the sub-problem is to In the case of , find the worst scenario probability distribution and provide an upper bound for formula (65).

[0221] (82);

[0222] Since the confidence set Ω of the scene probability in formula (82) and the constraint range set under each scene Y n There is no intersection, so the inner min problem can be solved in parallel first, and then the outer max problem can be solved based on the inner results.

[0223] The first layer of the first phase simulates the grid-connected operation based on the analysis results of the power sequence characteristics of the source-load imbalance throughout the year; the second phase includes the second and third layers. The second layer is to minimize the 168-hour off-grid operation cost under different source-load probability distributions, and the third layer finds the probability distribution of the worst off-grid scenario based on the optimization results of the second layer.

[0224] The method of this embodiment is applied based on Figure 2 The off-grid electric-hydrogen coupled microgrid shown in the figure gives the computer simulation results. The present invention adopts the computer programming language MATLAB for programming and the commercial solver CPLEX for solving. Six groups of examples are set for comparison to illustrate the superiority of the method of the present invention.

[0225] The following example is used to illustrate:

[0226] Example 1: Directly optimize and solve the hybrid energy storage configuration model without any processing;

[0227] Example 2-Set BT only;

[0228] Example 3-Set only BT and HS;

[0229] Example 4-Set only BT and SHS;

[0230] Example 5-Not considering off-grid safety verification;

[0231] Example 6-Model and method of this embodiment.

[0232] The energy storage configuration results of each example are shown in the following table:

[0233]

[0234] The results are analyzed as follows:

[0235] 1. Analysis of the effect of multi-time scale feature extraction

[0236] The unbalanced power sequence of the source and load throughout the year with a time step of 1h is processed, and the results are as follows: Figure 3 , Figure 4 As shown. Figure 3 (a) is a schematic diagram of the trend component in the source-load imbalance power series throughout the year. Figure 3 (b) is a schematic diagram of the weekly unbalanced electricity obtained according to formula (52). Figure 4 (a) is a schematic diagram of the middle component in the unbalanced power sequence of source and load throughout the year. Figure 4(b) in the figure is a schematic diagram of the daily unbalanced electricity obtained according to formula (58). It can be seen that the source-load power generation and consumption gap has obvious trends and periodicity on a long time scale. The weekly unbalanced electricity reflects the period of surplus and shortage of electricity, and the daily unbalanced quantity captures the fluctuation of electricity across days. In order to illustrate the rationality of determining the charging and discharging actions based on the results of multi-time scale feature extraction, Example 1 and Example 6 are compared. Example 6 completed the solution within 917.945s, while Example 1 still did not converge to the global optimum within 105s, and the intermediate results were output at this time. The charging and discharging actions of HS and SHS in the two groups of examples are basically the same, and the optimization results are very close, indicating that whether it is direct optimization solution or feature extraction analysis, they are exploring the charging and discharging needs of hydrogen energy storage, thereby obtaining 0-1 variable values ​​that characterize the charging and discharging actions. Through multi-time scale characteristic analysis, the charging and discharging mark values ​​of the two-stage hydrogen energy storage can be directly determined before the model is solved, and the more difficult-to-handle 0-1 variables in the model can be converted into fixed parameters, thereby shortening the model solution time and obtaining more accurate approximate values.

[0237] 2. Analysis of the effect of hydrogen energy storage on unbalanced quantity regulation:

[0238] In order to illustrate the necessity of setting up three-level energy storage, examples 2, 3, 4, and 6 are compared to verify the role of BT, HS, and SHS in regulating the source-load imbalance. Taking the operation of a scene in a typical off-grid scenario as an example for analysis, the wind, solar, and load abandonment rates of the four groups of examples are shown in the following table:

[0239]

[0240] When only BT is set, there is a serious load loss problem during the period of continuous low output of new energy, and the maximum limit cannot be absorbed during the period of high output of new energy; when BT and HS two-level energy storage are set, a large amount of load is still reduced, but the problem of wind and solar power abandonment is alleviated, and the excess wind and solar power generation can be moved to the power shortage period through HS to reduce load reduction; when BT and SHS two-level energy storage are set, there is only a small amount of load reduction, but because SHS has only one charging and discharging state within a week, it is impossible to achieve flexible transfer of electricity between days; when BT, HS and SHS three-level energy storage are set, HS can realize the effective transfer of surplus electricity on the day of large-scale new energy generation, and SHS strongly supports the load electricity demand during the period of continuous low output of new energy, so the wind abandonment, solar abandonment and load abandonment are all reduced to 0.

[0241] The above analysis shows that short-cycle electrochemical energy storage is limited by a smaller power-to-capacity ratio and a shorter load state balance cycle. It is unable to absorb as much surplus electricity as possible when new energy is generated, and to provide long-term power supply for the load when weather conditions continue to be bad, resulting in outstanding new energy and load reduction issues when the external power grid support is lost. Long-cycle hydrogen energy storage can transfer energy between days and weeks, thereby improving the level of new energy consumption and reducing the load loss rate. In the long- and short-cycle hybrid energy storage model constructed by the present invention, the first-level energy storage BT is used to smooth short-term power fluctuations, the second-level energy storage HS is used to produce hydrogen by hydrolysis on days with surplus electricity, and to generate electricity by hydrogen on days with power shortages, and the third-level energy storage SHS is used to store excess electricity or make up for insufficient power supply after the first two levels of energy storage are saturated. The three levels of energy storage operate in coordination to achieve the effect of finely regulating unbalanced power.

[0242] 3. Analysis of the effect of microgrid autonomous operation:

[0243] In order to illustrate the necessity of off-grid safety verification of the proposed model, this section simulates the autonomous operation of the microgrid based on 150 scenarios generated by sampling of wind power, photovoltaic and load output curves based on the configuration results of Examples 5 and 6. Figure 5 The autonomous operation costs under two configurations are shown. It can be seen that the overall operation cost under the configuration of Example 6 is lower, and it also shows better economy when encountering extreme off-grid scenarios. Therefore, considering off-grid operation in the planning stage can enhance the ability of microgrids to cope with various emergencies. When the microgrid loses the support of the external power grid, through the response of energy storage at all levels, it can maximize the absorption of new energy and ensure power supply, thereby reducing the penalty costs of wind, solar and load abandonment and improving the economic efficiency of operation.

[0244] Example 2

[0245] A microgrid electric hydrogen energy storage optimization configuration device based on feature extraction, such as Figure 6 As shown, including:

[0246] The generation unit sets up three-level energy storage, namely electrochemical energy storage, daily regulating hydrogen energy storage and seasonal hydrogen energy storage, for application in the electric-hydrogen coupled microgrid. A hybrid energy storage optimization configuration model is constructed according to the electric-hydrogen coupled microgrid to simulate the grid-connected operation of the electric-hydrogen coupled microgrid and verify its off-grid safety.

[0247] The extraction unit uses the seasonal and trend decomposition algorithm and the variational mode decomposition algorithm to extract multi-time scale features of the source-load imbalance power series throughout the year, so as to determine the 0-1 variable values ​​used to characterize the charging and discharging actions of the daily regulation hydrogen energy storage and the seasonal hydrogen energy storage respectively;

[0248] The optimization unit adopts a data-driven distributed robust optimization method to describe the uncertainty of off-grid operation of the hybrid energy storage optimization configuration model, and combines the 1-norm and the ∞-norm to constrain the probability distribution of the uncertainty of off-grid operation, and obtains a two-stage distributed robust optimization model; wherein the 0-1 values ​​obtained for characterizing the charging and discharging actions of the daily regulating hydrogen energy storage and the seasonal hydrogen energy storage are used as input parameters of the two-stage distributed robust optimization model;

[0249] The solving unit uses a column constraint generation algorithm to solve the two-stage distributed robust optimization model to obtain the energy storage configuration result of the constructed electric-hydrogen coupled microgrid.

[0250] Example 3

[0251] The present embodiment is a device for optimizing the configuration of electric hydrogen energy storage in a microgrid based on feature extraction, comprising a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the method for optimizing the configuration of electric hydrogen energy storage in a microgrid based on feature extraction described in Example 1.

[0252] Example 4

[0253] This embodiment is a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the method for optimizing the configuration of microgrid electric hydrogen energy storage based on feature extraction described in Example 1 is implemented.

Claims

1. Microgrid electric hydrogen energy storage optimization configuration method based on feature extraction, It is characterized in that include: S1, set up electrochemical energy storage-daily regulating hydrogen energy storage-seasonal hydrogen energy storage three-level energy storage for application in the electric-hydrogen coupled microgrid, and build a hybrid energy storage optimization configuration model based on the electric-hydrogen coupled microgrid to simulate the grid-connected operation of the electric-hydrogen coupled microgrid and verify the off-grid safety; the three-level energy storage are as follows: the first-level energy storage is electrochemical energy storage, with a balancing period of 24 hours, only charging or discharging within 1 hour, which is used to quickly respond to the random fluctuation of hourly source-load imbalance power; the second-level energy storage is daily regulating hydrogen energy storage, with a balancing period of 168 hours, only charging or discharging hydrogen within 24 hours, which is used to adjust the daily source-load imbalance power; the third-level energy storage is seasonal hydrogen energy storage, with a balancing period of 8760 hours, only charging or discharging hydrogen within 168 hours, which is used to balance the weekly source-load imbalance power; the specific process is: S1.1, with the goal of minimizing the sum of the equal annual investment cost and grid-connected operation cost of the constructed electric-hydrogen coupled microgrid, set power generation and consumption balance constraints, wind power output constraints, photovoltaic output constraints, load output constraints, power purchase and sales constraints, and energy storage equipment operation constraints, and simulate the grid-connected operation of the electric-hydrogen coupled microgrid to construct the investment configuration of hybrid energy storage; S1.2, with the goal of minimizing the off-grid operation cost of the constructed electric-hydrogen coupled microgrid, set power generation and consumption balance constraints, wind power output constraints, photovoltaic output constraints, load output constraints and energy storage equipment operation constraints, and perform off-grid safety verification on the electric-hydrogen coupled microgrid based on the investment configuration results of the grid-connected operation simulation stage; S2, using the seasonal and trend decomposition algorithm and the variational mode decomposition algorithm, respectively, extracts multi-time scale features from the source-load imbalance power sequence throughout the year to determine the 0-1 variable values ​​used to characterize the charging and discharging actions of daily regulation hydrogen energy storage and seasonal hydrogen energy storage; the specific process is: S2.1, based on the seasonal and trend decomposition algorithm, obtain the unbalanced power sequence trend component from the annual historical data, and obtain the weekly unbalanced power and seasonal hydrogen energy storage charging and discharging actions based on the unbalanced power sequence trend component; S2.2, based on the variational mode decomposition algorithm, the intermediate component is obtained from the annual source-load unbalanced power sequence with the trend component removed, and the daily unbalanced power and daily regulation of hydrogen energy storage charging and discharging actions are obtained based on the intermediate component; S3, using a data-driven distributed robust optimization method to describe the uncertainty of off-grid operation of the hybrid energy storage optimization configuration model, and combining the 1-norm and the ∞-norm to constrain the probability distribution of the uncertainty of off-grid operation, to obtain a two-stage distributed robust optimization model; wherein the 0-1 value obtained to characterize the charging and discharging actions of the daily regulating hydrogen energy storage and the seasonal hydrogen energy storage is used as the input parameter of the two-stage distributed robust optimization model; S4, using the column constraint generation algorithm to solve the two-stage distributed robust optimization model to obtain the energy storage configuration result of the constructed electric-hydrogen coupled microgrid; the specific process is: S4.1, based on the column constraint generation algorithm, decomposing the two-stage distributed robust optimization model into a main problem and a sub-problem; wherein the main problem is minimizing the investment cost and the grid-connected operation cost, and the sub-problem is minimizing the off-grid operation cost; S4.2, solving the main problem, obtaining the current optimal solution of the main problem, and using the current optimal solution as the current lower limit value of the two-stage distributed robust optimization model; S4.3, solving the sub-problem based on the current optimal solution of the main problem, obtaining the current optimal solution of the sub-problem, and providing the current upper limit value as a two-stage distributed robust optimization model; S4.4, repeatedly iterate the main problem and the sub-problem to update the current lower limit value and the current upper limit value until the difference between the optimization values ​​of the main problem and the sub-problem meets the convergence criterion, and output the energy storage configuration result of the electric-hydrogen coupled microgrid.

2. According to the feature extraction-based microgrid electric hydrogen energy storage optimization configuration method of claim 1, It is characterized in that The specific process of step S2.1 is as follows: S2.1.1, use the inner loop to determine the trend component of the next loop: S2.1.1.1, remove the trend component of the previous cycle from the annual source-load imbalance power sequence to obtain the detrended sequence of the current cycle; S2.1.1.2, extract the data points at the same position in each period of the detrended sequence to form a periodic subsequence, perform LOESS regression, and obtain a smoothed periodic subsequence; S2.1.1.3, then perform smoothing averaging and LOESS regression on the smoothed periodic subsequence to obtain a periodic low-pass filtered subsequence; S2.1.1.4, subtract the periodic low-pass filtered subsequence from the smoothed periodic subsequence to obtain the periodic component; S2.1.1.5, subtract the periodic component from the annual source-load imbalance power sequence to obtain the deperiodic sequence; S2.1.1.6, perform LOESS regression on the de-periodic series to obtain the trend component of the next cycle; S2.1.2, based on the inner loop, obtain the residual value of the outer loop: S2.1.2.1, subtract the periodic component and the trend component of the next cycle from the annual source-load imbalance power sequence to obtain the residual value; S2.1.2.2, introduce robustness weights to evaluate residual values; S2.1.3, when the trend component of the inner cycle and the residual value of the outer cycle converge, the trend component of the unbalanced power sequence is output, and then the weekly unbalanced electricity is obtained, and the charging and discharging actions of the seasonal hydrogen energy storage are determined according to the positive or negative value of the weekly unbalanced electricity.

3. According to the feature extraction-based microgrid electric hydrogen energy storage optimization configuration method of claim 1, It is characterized in that The specific process of step S2.2 is as follows: S2.2.1, using variational mode decomposition algorithm to decompose the trend component of the unbalanced power series to form multiple eigenmode components with different center frequencies; S2.2.2, update the intrinsic mode components with different center frequencies to obtain the daily unbalanced electricity; S2.2.3, based on the positive and negative daily unbalanced electricity, obtain the daily regulation of hydrogen energy storage charging and discharging actions.

4. A microgrid electric hydrogen energy storage optimization configuration device based on feature extraction, It is characterized in that include: The generation unit sets up three-level energy storage, namely electrochemical energy storage, daily regulating hydrogen energy storage and seasonal hydrogen energy storage, for application in the electric-hydrogen coupled microgrid. A hybrid energy storage optimization configuration model is constructed according to the electric-hydrogen coupled microgrid to simulate the grid-connected operation of the electric-hydrogen coupled microgrid and verify off-grid safety. The three-level energy storage are as follows: the first-level energy storage is electrochemical energy storage with a balancing period of 24 hours, and only charging or discharging within 1 hour, which is used to quickly respond to random fluctuations in hourly source-load imbalance power; the second-level energy storage is daily regulating hydrogen energy storage with a balancing period of 168 hours, and only charging or discharging hydrogen within 24 hours, which is used to regulate the daily source-load imbalance power; the third-level energy storage is seasonal hydrogen energy storage with a balancing period of 8760 hours, and only charging or discharging hydrogen within 168 hours, which is used to balance the weekly source-load imbalance power: With the goal of minimizing the sum of the equal annual investment cost and grid-connected operation cost of the constructed electric-hydrogen coupled microgrid, power generation and consumption balance constraints, wind power output constraints, photovoltaic output constraints, load output constraints, power purchase and sales constraints, and energy storage equipment operation constraints are set, and the grid-connected operation simulation of the electric-hydrogen coupled microgrid is carried out to construct the investment configuration of hybrid energy storage; With the goal of minimizing the off-grid operation cost of the constructed electric-hydrogen coupled microgrid, power generation and consumption balance constraints, wind power output constraints, photovoltaic output constraints, load output constraints and energy storage equipment operation constraints are set, and the off-grid safety verification of the electric-hydrogen coupled microgrid is carried out based on the investment configuration results of the grid-connected operation simulation stage; The extraction unit uses the seasonal and trend decomposition algorithm and the variational mode decomposition algorithm to extract multi-time scale features of the source-load imbalance power series throughout the year, so as to determine the 0-1 variable values ​​used to characterize the charging and discharging actions of the daily regulation hydrogen energy storage and the seasonal hydrogen energy storage respectively: Based on the seasonal and trend decomposition algorithm, the unbalanced power series trend component is obtained from the historical data throughout the year, and the weekly unbalanced power and seasonal hydrogen energy storage charging and discharging actions are obtained based on the unbalanced power series trend component; Based on the variational mode decomposition algorithm, the intermediate component is obtained from the annual source-load unbalanced power sequence with the trend component removed, and the daily unbalanced power and daily regulation of hydrogen energy storage charging and discharging actions are obtained based on the intermediate component; The optimization unit adopts a data-driven distributed robust optimization method to describe the uncertainty of off-grid operation of the hybrid energy storage optimization configuration model, and combines the 1-norm and the ∞-norm to constrain the probability distribution of the uncertainty of off-grid operation, and obtains a two-stage distributed robust optimization model; wherein the 0-1 values ​​obtained for characterizing the charging and discharging actions of the daily regulating hydrogen energy storage and the seasonal hydrogen energy storage are used as input parameters of the two-stage distributed robust optimization model; The solving unit uses the column constraint generation algorithm to solve the two-stage distributed robust optimization model to obtain the energy storage configuration result of the constructed electric-hydrogen coupled microgrid: Based on the column constraint generation algorithm, the two-stage distributed robust optimization model is decomposed into a main problem and a sub-problem; the main problem is to minimize the investment cost and the grid-connected operation cost, and the sub-problem is to minimize the off-grid operation cost; Solve the main problem, obtain the current optimal solution of the main problem, and use the current optimal solution as the current lower limit value of the two-stage distributed robust optimization model; Solve the sub-problem based on the current optimal solution of the main problem, obtain the current optimal solution of the sub-problem, and provide the current upper limit value as a two-stage distributed robust optimization model; The main problem and sub-problems are iterated repeatedly to update the current lower limit value and the current upper limit value until the difference between the optimized values ​​of the main problem and the sub-problem meets the convergence criterion, and the energy storage configuration result of the electric-hydrogen coupled microgrid is output.

5. A microgrid electric hydrogen energy storage optimization configuration device based on feature extraction, It is characterized in that It comprises a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, it is used to implement the microgrid electric hydrogen energy storage optimization configuration method based on feature extraction as described in any one of claims 1-3.

6. A computer-readable storage medium, It is characterized in that A program is stored thereon, and when the program is executed by a processor, the method for optimizing configuration of microgrid electric hydrogen energy storage based on feature extraction as described in any one of claims 1 to 3 is implemented.