Coordinated control strategy method for optical storage, charging and conversion micro-grid

CN118739358APending Publication Date: 2024-10-01NANJING KEXIN INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410706036.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

[0004]然而,如果在卖出电能之后,后期的光伏和风力发出电能不能够支持充电站需求,则很有可能需要在电价高峰期购买电能,因此,需要对未来的用电量和发电量进行预测,再决定电能卖出或者买入

Benefits of technology

[0054] The beneficial effects of the present invention are: comprehensively considering the impact of different seasons on light intensity, wind power and traffic flow in various places, the prediction results are more accurate compared to the common prediction methods for microgrid power generation and electricity consumption. , and use actual data to train the microgrid power prediction model, further improving the prediction accuracy of microgrid power generation and power consumption. In addition, allocating power based on the prediction results of microgrid power generation and power consumption can Ensure maximum economy and support the daily needs of the charging station.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118739358A_ABST
    Figure CN118739358A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of micro-grid electric energy control, and discloses an optical storage, charging and conversion micro-grid coordination control strategy method, which comprises the following steps: step S101, obtaining daily power generation parameter information of n micro-grids in past m days; step S102, acquiring power utilization parameter information of the n micro-grids in past m days; s103, constructing a micro-grid electric quantity prediction matrix A according to the power generation parameter information and the power utilization parameter information of the n micro-grids in the past m days; and S104, constructing a micro-grid electric quantity prediction model, and inputting the micro-grid electric quantity prediction matrix A into the micro-grid electric quantity prediction model. According to the method, the influence of different seasons on illumination intensity, wind power and traffic flow on each place is comprehensively considered, compared with a common micro-grid power generation and power consumption prediction method, the prediction result is more accurate, the micro-grid power consumption prediction model is trained by using actual data, and the prediction accuracy of the micro-grid power generation and power consumption prediction is improved. And the prediction precision of the generating capacity and the power consumption of the micro-grid is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of microgrid power control, and more specifically, to a photovoltaic storage charging and swapping microgrid coordinated control strategy method. Background Art

[0002] The photovoltaic storage charging and swapping station is a microgrid composed of a distribution network, energy storage system, photovoltaic power generation system, wind power generation system, charging system and control system.

[0003] Planning needs to be made based on the charging behavior and power generation conditions of the vehicles. The electricity generated by photovoltaic and wind power should first meet the needs of charging stations. When the load demand is not met, the energy storage system will supply power. If it still cannot be met, electricity will be purchased from the power grid. When photovoltaic and wind power generation is in excess, the excess electricity can be used to charge the energy storage system, or it can be sold to the State Grid to obtain certain profits. The energy storage can flexibly adjust the charging and discharging methods according to the photovoltaic power generation and electricity price conditions to reduce the peak-to-valley difference, improve the economy and cleanliness of the system, and maximize the economic benefits of users while meeting the power supply needs.

[0004] However, if the subsequent photovoltaic and wind power generation cannot support the demand for charging stations after the electricity is sold, it is very likely that electricity will need to be purchased during the peak electricity price period. Therefore, it is necessary to predict future electricity consumption and power generation before deciding whether to sell or buy electricity. Summary of the invention

[0005] The present invention provides a photovoltaic storage charging and swapping microgrid coordinated control strategy method to solve the technical problems in the above-mentioned background technology.

[0006] The present invention provides a photovoltaic storage charging and swapping microgrid coordinated control strategy method, comprising the following steps:

[0007] Step S101, obtaining the power generation parameter information of n microgrids every day in the past m days;

[0008] The power generation parameter information of the microgrid includes: daily power generation information, daily average sunlight intensity information, daily sunlight exposure time information, daily average wind force information and daily wind force action time information;

[0009] Step S102, obtaining power consumption parameter information of n microgrids in the past m days;

[0010] The power consumption parameter information of the microgrid includes: the total daily charging volume and the number of charging vehicles per day;

[0011] Step S103: construct a microgrid power prediction matrix A based on the power generation parameter information and power consumption parameter information of n microgrids in the past m days. in, Indicates the power generation parameter information and power consumption parameter information of the first microgrid on the first day; Indicates the power generation parameter information and power consumption parameter information of the nth microgrid on the mth day;

[0012] Step S104, constructing a microgrid power prediction model, inputting the microgrid power prediction matrix A into the microgrid power prediction model, and outputting the predicted values ​​of the microgrid power generation and required charging capacity in the next u days;

[0013] Step S105, adjusting the reserve power of the energy storage system according to the predicted values ​​of the power generation and required charging amount of the microgrid in the future u days output by the microgrid power prediction model.

[0014] Furthermore, n, m and u are all custom parameters.

[0015] Furthermore, the method for obtaining power generation parameter information includes:

[0016] The power generation of photovoltaic power generation equipment and wind power generation equipment is obtained through smart meters and central monitoring systems respectively, and they are added together to obtain daily power generation information;

[0017] The light intensity detection device detects the sunlight intensity three times every hour, sums them up and calculates the average value, and the value obtained is the average sunlight intensity information for each day;

[0018] The time that the photovoltaic power generation equipment is in the power generation state every day is obtained as the daily sunlight exposure duration information;

[0019] The speed of the wind power generation equipment is divided into 10 levels, the speed of the wind power generation equipment is obtained every hour, the corresponding speed is matched, and then the speed of each hour is summed and the average value is calculated. The calculation result is the average wind speed information of each day;

[0020] The time that the wind power generation equipment is in a power generation state every day is obtained as the daily wind action duration information.

[0021] Furthermore, the method for obtaining the power consumption parameter information of the microgrid includes:

[0022] The number of times all charging piles in the microgrid are used each day is obtained as the number of charging vehicles per day;

[0023] Get the total daily charging amount of each charging pile in the microgrid, and sum them up to get the total daily charging amount.

[0024] Furthermore, the microgrid power prediction model includes: n columns of hidden layers, a first classifier and a second classifier;

[0025] Each column of the hidden layer includes a first hidden unit and a second hidden unit;

[0026] Input the power generation parameter information and power consumption parameter information of the i-th microgrid from the 1st day to the m-th day in the microgrid power prediction matrix A into the first hidden unit of the i-th column hidden layer, and output the first updated feature;

[0027] The first updated feature output by the first hidden unit of the i-th hidden layer is input into the second hidden unit, and the second updated feature is output;

[0028] The second updated features output by the second hidden unit of the nth column hidden layer are respectively input into the first classifier and the second classifier, the first classifier outputs the predicted value of the power generation of the microgrid in the future u days, and the second classifier outputs the predicted value of the required charging amount of the microgrid in the future u days;

[0029] Definition: 1≤i≤n.

[0030] Furthermore, the first hidden unit of the i-th hidden layer of the microgrid power prediction model is constructed based on GRU, and the second hidden unit of the i-th hidden layer of the microgrid power prediction model is constructed based on transformer.

[0031] Furthermore, the calculation formula of the first hidden unit of the i-th hidden layer of the microgrid power prediction model includes:

[0032] The update gate z of the first hidden unit of the i-th hidden layer of the microgrid power prediction model i The calculation formula is as follows:

[0033] z i =σ(w z x i +U z h i-1 +b z );

[0034] In the formula, w z , U z and b z They represent the update gate z of the first hidden unit of the i-th hidden layer of the microgrid power prediction model. i corresponding first weight parameter, second weight parameter and bias parameter;

[0035] The reset gate r of the first hidden unit of the i-th hidden layer of the microgrid power prediction model i The calculation formula is as follows:

[0036] r i =σ(w r x i +U r h i-1 +b r );

[0037] In the formula, w r , U r and b r They represent the reset gate r of the first hidden unit of the i-th hidden layer of the microgrid power prediction model. i corresponding first weight parameter, second weight parameter and bias parameter;

[0038] The current memory of the first hidden unit of the i-th hidden layer of the microgrid power prediction model The calculation formula is as follows:

[0039]

[0040] In the formula, w h , U h and b h They represent the current memory of the first hidden unit of the i-th hidden layer of the microgrid power prediction model. corresponding first weight parameter, second weight parameter and bias parameter;

[0041] The final memory h of the first hidden unit of the i-th hidden layer of the microgrid power prediction model i The calculation formula is as follows:

[0042]

[0043] Definition: σ represents the sigmoid function; tanh represents the hyperbolic tangent function; ⊙ represents the dot product operation; x i Represents the input of the first hidden unit of the i-th hidden layer of the microgrid power prediction model.

[0044] Furthermore, the calculation formula of the second hidden unit of the i-th hidden layer of the microgrid power prediction model includes:

[0045]

[0046] In the formula, Z i represents the second updated feature output by the second hidden unit of the i-th hidden layer; X i V represents the first updated feature of the first hidden unit input of the i-th hidden layer; i , Q i and K i denote the first conversion feature, the second conversion feature and the third conversion feature of the second hidden unit of the i-th hidden layer respectively; T denotes the transpose operation of the matrix; and They respectively represent the first weight parameter and the second weight parameter of the second hidden unit of the i-th hidden layer; softmax represents the softmax activation function.

[0047] Furthermore, historical power generation parameter information and power consumption parameter information of several microgrids are obtained, and a training matrix B is constructed. A sliding window is set in the training matrix B, and the length and width of the sliding window are m and n respectively, and the step length is one. Each time the sliding window slides in the training matrix B, a sample data for training the microgrid power prediction model is obtained;

[0048] The predicted values ​​of the power generation and required charging amount of the microgrid corresponding to each sample data in the next u days are used as sample labels for training the microgrid power prediction model.

[0049] Furthermore, the steps for adjusting the reserve power of the energy storage system are as follows:

[0050] Step S201, obtaining the current reserve power of the energy storage system;

[0051] Step S202, determining whether the current reserve power and the predicted value of the power generation of the microgrid in day u are greater than the predicted value of the required charging capacity of the microgrid in day u and calculating the interpolated power;

[0052] Step S203, if yes, then purchase the difference energy when the electricity price is at a low point and store it in the energy storage system;

[0053] Step S204: if not, when the electricity price is at its peak, the electricity in the energy storage system is sold.

[0054] The beneficial effects of the present invention are as follows: the impact of different seasons on light intensity, wind power and vehicle flow on various places is comprehensively considered. Compared with the common prediction methods for microgrid power generation and power consumption, the prediction results are more accurate, and the microgrid power prediction model is trained using actual data, which further improves the prediction accuracy of microgrid power generation and power consumption. In addition, allocating power according to the prediction results of microgrid power generation and power consumption can ensure economic maximization and support the daily needs of charging stations. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 It is the overall flow chart of the present invention;

[0056] Figure 2 It is a flowchart of adjusting the reserve power of the energy storage system according to the present invention. DETAILED DESCRIPTION

[0057] The subject matter described herein will now be discussed with reference to example embodiments. It should be understood that the discussion of these embodiments is only to enable those skilled in the art to better understand and implement the subject matter described herein, and the functions and arrangements of the elements discussed may be changed without departing from the scope of protection of the contents of this specification. Each example may omit, replace or add various processes or components as needed. In addition, the features described relative to some examples may also be combined in other examples.

[0058] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in one or more embodiments of the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in one or more embodiments of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0059] like Figure 1-Figure 2 As shown, a photovoltaic storage charging and swapping microgrid coordinated control strategy method includes the following steps:

[0060] Step S101, obtaining the power generation parameter information of n microgrids every day in the past m days;

[0061] The power generation parameter information of the microgrid includes: daily power generation information, daily average sunlight intensity information, daily sunlight exposure time information, daily average wind force information and daily wind force action time information;

[0062] Step S102, obtaining power consumption parameter information of n microgrids in the past m days;

[0063] The power consumption parameter information of the microgrid includes: the total amount of charging per day and the number of charging vehicles per day;

[0064] Step S103: construct a microgrid power prediction matrix A based on the power generation parameter information and power consumption parameter information of n microgrids in the past m days. in, Indicates the power generation parameter information and power consumption parameter information of the first microgrid on the first day; Indicates the power generation parameter information and power consumption parameter information of the nth microgrid on the mth day;

[0065] Step S104, constructing a microgrid power prediction model, inputting the microgrid power prediction matrix A into the microgrid power prediction model, and outputting the predicted values ​​of the microgrid power generation and required charging capacity in the next u days;

[0066] Step S105, adjusting the reserve power of the energy storage system according to the predicted values ​​of the power generation and required charging amount of the microgrid in the future u days output by the microgrid power prediction model.

[0067] In one embodiment of the present invention, n, m and u are all custom parameters, n is preferably 20; m is preferably a multiple of 356; and u is preferably 7.

[0068] In one embodiment of the present invention, a method for acquiring power generation parameter information includes:

[0069] The power generation of photovoltaic power generation equipment and wind power generation equipment is obtained through smart meters and central monitoring systems respectively, and the power generation information is added together to obtain the daily power generation information. The power supply company will install smart meters at the place where the photovoltaic system is connected to the power grid. This meter can accurately measure the AC power generated by the photovoltaic system. Wind power stations are usually equipped with a central monitoring system that can monitor the power generation status of each wind turbine and the total power generation of the entire wind farm in real time. Smart meters and central monitoring systems are both existing technologies and will not be described in detail here.

[0070] The light intensity detection device detects the sunlight intensity three times every hour, sums and then calculates the average value, and the obtained value is the average sunlight intensity information of each day. The light intensity detection device preferably uses a sunlight detector. In addition, an illuminance meter and a photoresistor can also be used. The sunlight detector, illuminance meter and photoresistor are all existing technologies and will not be described in detail here.

[0071] The time that the photovoltaic power generation equipment is in the power generation state every day is obtained as the daily sunlight exposure duration information;

[0072] The speed of the wind power generation equipment is divided into 10 levels, the speed of the wind power generation equipment is obtained every hour, the corresponding speed is matched, and then the speed of each hour is summed and the average value is calculated. The calculation result is the average wind speed information of each day;

[0073] The time that the wind power generation equipment is in a power generation state every day is obtained as the daily wind action duration information.

[0074] In one embodiment of the present invention, a method for acquiring power consumption parameter information of a microgrid includes:

[0075] The number of times all charging piles in the microgrid are used each day is obtained as the number of charging vehicles per day;

[0076] Get the total daily charging amount of each charging pile in the microgrid, and sum them up to get the total daily charging amount.

[0077] In one embodiment of the present invention, the microgrid power prediction model includes: n columns of hidden layers, a first classifier and a second classifier;

[0078] Each column of the hidden layer includes a first hidden unit and a second hidden unit;

[0079] Input the power generation parameter information and power consumption parameter information of the i-th microgrid from the 1st day to the m-th day in the microgrid power prediction matrix A into the first hidden unit of the i-th column hidden layer, and output the first updated feature;

[0080] The first updated feature output by the first hidden unit of the i-th hidden layer is input into the second hidden unit, and the second updated feature is output;

[0081] The second updated features output by the second hidden unit of the nth column hidden layer are respectively input into the first classifier and the second classifier, the first classifier outputs the predicted value of the power generation of the microgrid in the future u days, and the second classifier outputs the predicted value of the required charging amount of the microgrid in the future u days;

[0082] Definition: 1≤i≤n.

[0083] In one embodiment of the present invention, the first hidden unit of the i-th hidden layer of the microgrid power prediction model is constructed based on GRU, and the second hidden unit of the i-th hidden layer of the microgrid power prediction model is constructed based on transformer.

[0084] In one embodiment of the present invention, the calculation formula of the first hidden unit of the i-th hidden layer of the microgrid power prediction model includes:

[0085] The update gate z of the first hidden unit of the i-th hidden layer of the microgrid power prediction model i The calculation formula is as follows:

[0086] z i =σ(w z x i +U z h i-1 +b z );

[0087] In the formula, w z , U z and b z They represent the update gate z of the first hidden unit of the i-th hidden layer of the microgrid power prediction model. i corresponding first weight parameter, second weight parameter and bias parameter;

[0088] The reset gate r of the first hidden unit of the i-th hidden layer of the microgrid power prediction model i The calculation formula is as follows:

[0089] r i =σ(w r x i +U r h i-1 +b r );

[0090] In the formula, w r , U r and b r They represent the reset gate r of the first hidden unit of the i-th hidden layer of the microgrid power prediction model. i corresponding first weight parameter, second weight parameter and bias parameter;

[0091] The current memory of the first hidden unit of the i-th hidden layer of the microgrid power prediction model The calculation formula is as follows:

[0092]

[0093] In the formula, w h , U h and b h They represent the current memory of the first hidden unit of the i-th hidden layer of the microgrid power prediction model. corresponding first weight parameter, second weight parameter and bias parameter;

[0094] The final memory h of the first hidden unit of the i-th hidden layer of the microgrid power prediction model i The calculation formula is as follows:

[0095]

[0096] Definition: σ represents the sigmoid function; tanh represents the hyperbolic tangent function; ⊙ represents the dot product operation; x i Represents the input of the first hidden unit of the i-th hidden layer of the microgrid power prediction model.

[0097] In one embodiment of the present invention, the calculation formula of the second hidden unit of the i-th hidden layer of the microgrid power prediction model includes:

[0098]

[0099] In the formula, Z i represents the second updated feature output by the second hidden unit of the i-th hidden layer; X iV represents the first updated feature of the first hidden unit input of the i-th hidden layer; i , Q i and K i denote the first conversion feature, the second conversion feature and the third conversion feature of the second hidden unit of the i-th hidden layer respectively; T denotes the transpose operation of the matrix; and They respectively represent the first weight parameter and the second weight parameter of the second hidden unit of the i-th hidden layer; softmax represents the softmax activation function.

[0100] In one embodiment of the present invention, historical power generation parameter information and power consumption parameter information of several microgrids are obtained, and a training matrix B is constructed. A sliding window is set in the training matrix B, and the length and width of the sliding window are m and n respectively, and the step length is one. Each time the sliding window slides in the training matrix B, a sample data for training the microgrid power prediction model is obtained;

[0101] The predicted values ​​of the power generation and required charging amount of the microgrid corresponding to each sample data in the next u days are used as sample labels for training the microgrid power prediction model.

[0102] In one embodiment of the present invention, the steps of adjusting the reserve power of the energy storage system are as follows:

[0103] Step S201, obtaining the current reserve power of the energy storage system;

[0104] Step S202, determining whether the current reserve power and the predicted value of the power generation of the microgrid in day u are greater than the predicted value of the required charging capacity of the microgrid in day u and calculating the interpolated power;

[0105] Step S203, if yes, then purchase the difference energy when the electricity price is at a low point and store it in the energy storage system;

[0106] Step S204: if not, when the electricity price is at its peak, the electricity in the energy storage system is sold.

[0107] The above describes an embodiment of the present embodiment, but the present embodiment is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present embodiment, ordinary technicians in this field can also make many forms, all of which are within the protection of the present embodiment.

Claims

1. A coordinated control strategy method for photovoltaic storage charging and swapping microgrid, It is characterized in that The steps include: Step S101, obtaining the power generation parameter information of n microgrids every day in the past m days; The power generation parameter information of the microgrid includes: daily power generation information, daily average sunlight intensity information, daily sunlight exposure time information, daily average wind force information and daily wind force action time information; Step S102, obtaining power consumption parameter information of n microgrids in the past m days; The power consumption parameter information of the microgrid includes: the total daily charging volume and the number of charging vehicles per day; Step S103: construct a microgrid power prediction matrix A based on the power generation parameter information and power consumption parameter information of n microgrids in the past m days. in, Indicates the power generation parameter information and power consumption parameter information of the first microgrid on the first day; Indicates the power generation parameter information and power consumption parameter information of the nth microgrid on the mth day; Step S104, constructing a microgrid power prediction model, inputting the microgrid power prediction matrix A into the microgrid power prediction model, and outputting the predicted values ​​of the microgrid power generation and required charging capacity in the next u days; Step S105, adjusting the reserve power of the energy storage system according to the predicted values ​​of the power generation and required charging amount of the microgrid in the future u days output by the microgrid power prediction model.

2. According to the method of coordinated control strategy of photovoltaic storage charging and swapping microgrid according to claim 1, It is characterized in that n, m, and u are all custom parameters.

3. According to the method of coordinated control strategy of photovoltaic storage charging and swapping microgrid in claim 1, It is characterized in that The method for obtaining power generation parameter information includes: The power generation of photovoltaic power generation equipment and wind power generation equipment is obtained through smart meters and central monitoring systems respectively, and they are added together to obtain daily power generation information; The light intensity detection device detects the sunlight intensity three times every hour, sums them up and calculates the average value, and the value obtained is the average sunlight intensity information for each day; The time that the photovoltaic power generation equipment is in the power generation state every day is obtained as the daily sunlight exposure duration information; The speed of the wind power generation equipment is divided into 10 levels, the speed of the wind power generation equipment is obtained every hour, the corresponding speed is matched, and then the speed of each hour is summed and the average value is calculated. The calculation result is the average wind speed information of each day; The time that the wind power generation equipment is in a power generation state every day is obtained as the daily wind action duration information.

4. According to the method of claim 1, a photovoltaic storage charging and swapping microgrid coordinated control strategy, It is characterized in that The method for obtaining the power consumption parameter information of the microgrid includes: The number of times all charging piles in the microgrid are used each day is obtained as the number of charging vehicles per day; Get the total daily charging amount of each charging pile in the microgrid, and sum them up to get the total daily charging amount.

5. According to the method of coordinated control strategy of photovoltaic storage charging and swapping microgrid according to claim 1, It is characterized in that The microgrid power prediction model includes: n columns of hidden layers, a first classifier and a second classifier; Each column of the hidden layer includes a first hidden unit and a second hidden unit; Input the power generation parameter information and power consumption parameter information of the i-th microgrid from the 1st day to the m-th day in the microgrid power prediction matrix A into the first hidden unit of the i-th column hidden layer, and output the first updated feature; The first updated feature output by the first hidden unit of the i-th hidden layer is input into the second hidden unit, and the second updated feature is output; The second updated features output by the second hidden unit of the nth column hidden layer are respectively input into the first classifier and the second classifier, the first classifier outputs the predicted value of the power generation of the microgrid in the future u days, and the second classifier outputs the predicted value of the required charging amount of the microgrid in the future u days; Definition: 1≤i≤n.

6. A coordinated control strategy method for a photovoltaic storage charging and swapping microgrid according to claim 5, It is characterized in that The first hidden unit of the i-th hidden layer of the microgrid power prediction model is constructed based on GRU, and the second hidden unit of the i-th hidden layer of the microgrid power prediction model is constructed based on transformer.

7. A coordinated control strategy method for a photovoltaic storage charging and swapping microgrid according to claim 5, It is characterized in that The calculation formula of the first hidden unit of the i-th hidden layer of the microgrid power prediction model includes: The update gate z of the first hidden unit of the i-th hidden layer of the microgrid power prediction model i The calculation formula is as follows: z i =σ(w z x i +U z h i-1 +b z ); In the formula, w z , U z and b z They represent the update gate z of the first hidden unit of the i-th hidden layer of the microgrid power prediction model. i corresponding first weight parameter, second weight parameter and bias parameter; The reset gate r of the first hidden unit of the i-th hidden layer of the microgrid power prediction model i The calculation formula is as follows: r i =σ(w r x i +U r h i-1 +b r ); In the formula, w r , U r and b r They represent the reset gate r of the first hidden unit of the i-th hidden layer of the microgrid power prediction model. i corresponding first weight parameter, second weight parameter and bias parameter; The current memory of the first hidden unit of the i-th hidden layer of the microgrid power prediction model The calculation formula is as follows: In the formula, w h , U h and b h They represent the current memory of the first hidden unit of the i-th hidden layer of the microgrid power prediction model. corresponding first weight parameter, second weight parameter and bias parameter; The final memory h of the first hidden unit of the i-th hidden layer of the microgrid power prediction model i The calculation formula is as follows: Definition: σ represents the sigmoid function; tanh represents the hyperbolic tangent function; ⊙ represents the dot product operation; x i Represents the input of the first hidden unit of the i-th hidden layer of the microgrid power prediction model.

8. According to claim 5, a photovoltaic storage charging and swapping microgrid coordinated control strategy method, It is characterized in that The calculation formula of the second hidden unit of the i-th hidden layer of the microgrid power prediction model includes: In the formula, Z i represents the second updated feature output by the second hidden unit of the i-th hidden layer; X i V represents the first updated feature of the first hidden unit input of the i-th hidden layer; i , Q i and K i denote the first conversion feature, the second conversion feature and the third conversion feature of the second hidden unit of the i-th hidden layer respectively; T denotes the transpose operation of the matrix; and They respectively represent the first weight parameter and the second weight parameter of the second hidden unit of the i-th hidden layer; softmax represents the softmax activation function.

9. A photovoltaic storage charging and swapping microgrid coordinated control strategy method according to claim 1, It is characterized in that Obtain the historical power generation parameter information and power consumption parameter information of several microgrids, and construct a training matrix B. Set a sliding window in the training matrix B. The length and width of the sliding window are m and n respectively, and the step length is one. Each time the sliding window slides in the training matrix B, a sample data for training the microgrid power prediction model is obtained. The predicted values ​​of the power generation and required charging amount of the microgrid corresponding to each sample data in the next u days are used as sample labels for training the microgrid power prediction model.

10. A photovoltaic storage charging and swapping microgrid coordinated control strategy method according to claim 1, It is characterized in that The steps to adjust the reserve power of the energy storage system are as follows: Step S201, obtaining the current reserve power of the energy storage system; Step S202, determining whether the current reserve power and the predicted value of the power generation of the microgrid in day u are greater than the predicted value of the required charging capacity of the microgrid in day u and calculating the interpolated power; Step S203, if yes, then purchase the difference energy when the electricity price is at a low point and store it in the energy storage system; Step S204: if not, when the electricity price is at its peak, the electricity in the energy storage system is sold.