New energy grid connection strategy determination method and device and electronic equipment
By generating a set of weight values and index values, using the initial expression to calculate the grid-connected power value and iteratively update it, the target grid-connected strategy of the new energy grid is determined, which solves the problem of low parameter accuracy under manual methods and improves the new energy and Grid efficiency and grid stability.
Patent Information
- Application Number
- CN202411073448.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-08-06
AI Technical Summary
In the prior art, the parameters in the decision model for grid connection of new energy by manual means are low, resulting in the limitation of the efficiency of grid connection of new energy and the economic and stability of grid operation.
By generating a set of weight values and a set of indicator values, the grid-connected power value is calculated using the initial expression, and the optimal weight value and indicator value are determined through the iterative update process, thereby determining the target grid-connected strategy of the new energy grid.
It improves the accuracy of the new energy grid-connection decision model parameters, and improves the efficiency of new energy grid-connection and the economic and stability of power grid operation.
Smart Images

Figure CN118983868A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power systems, and more specifically, to a method, device and electronic equipment for determining a new energy grid-connected strategy. Background Art
[0002] With the continuous growth of global energy demand and the enhancement of environmental protection awareness, the development and utilization of new energy has become an important way to solve the energy crisis and environmental problems. In particular, renewable energy such as wind power and solar energy have been widely used around the world. However, due to the intermittent and volatile nature of new energy, its grid connection poses a severe challenge to the stability and reliability of the power system.
[0003] Traditional strategies for connecting new energy to the grid are mostly based on complex optimization models. When the installed capacity of new energy surges, the number of decision variables in the model increases dramatically, resulting in huge computational complexity, time-consuming, and difficulty meeting real-time requirements. In addition, traditional methods often rely on manual experience to adjust the parameters in the grid-connected strategy, lacking a deep understanding of the dynamic characteristics of the power system after the connection of new energy and the ability to automatically optimize, making it difficult to accurately capture and utilize the potential of new energy, thereby limiting the efficiency of new energy connection to the grid and the economy and stability of the overall operation of the power grid.
[0004] With regard to the problem of low accuracy of parameters in the renewable energy grid connection decision model determined manually in the related technologies, no effective solution has been proposed so far. Summary of the invention
[0005] The present application provides a method, device and electronic device for determining a new energy grid connection strategy to solve the problem of low accuracy of parameters in a new energy grid connection decision model determined manually in the related art.
[0006] According to one aspect of the present application, a method for determining a new energy grid-connected strategy is provided. The method includes: generating M weight value sets, and calculating the index value set corresponding to each weight value set based on the M weight value sets and the initial expression of the grid-connected power value of the new energy power grid line to obtain M index value sets, wherein the initial expression is obtained by adding P sub-power expressions, each sub-power expression is obtained by multiplying an indicator variable and a weight variable, each indicator value set includes the indicator values of the P indicator variables in the initial expression, each weight value set includes the weight values of the P weight variables in the initial expression, and the index value set corresponding to each weight value set is an indicator value set under different grid-connected strategies, and M and P are both positive integers; each weight value set and the corresponding index value set are substituted into the initial expression. Expression, obtain multiple candidate expressions, and calculate the grid-connected power value through each candidate expression to obtain M target power values; determine the candidate weight value set in the M weight value sets according to the M target power values, and iteratively update and calculate the M weight value sets and the M indicator value sets according to the candidate weight value set and the initial expression until a preset number of iterations is reached; when the preset number of iterations is reached, select the weight value set with the smallest target power value from the M updated weight value sets to obtain the target weight value set; obtain the candidate expression to which the target weight value set belongs to obtain the target expression, and determine the grid-connected strategy corresponding to the indicator value set in the target expression as the target grid-connected strategy for the new energy power grid line.
[0007] Optionally, M weight value sets are generated, and the indicator value set corresponding to each weight value set is calculated based on the M weight value sets and the initial expression of the grid-connected power value of the new energy power grid line, and the M indicator value sets are obtained, including: generating an initial grid-connected strategy for the new energy power grid line, and determining the state information and grid-connected power of each node in the initial power grid line based on the initial grid-connected strategy; determining an initial indicator value set of the initial power grid line based on the state information and grid-connected power of each node in the initial power grid line; for any weight value set, bringing the initial indicator value set and the weight value set into the initial expression to obtain the initial power value; calculating the reward function based on the initial power value, and updating the initial grid-connected strategy based on the reward function until the reward function converges, obtaining a candidate grid-connected strategy, and determining the initial indicator value set determined by the candidate grid-connected strategy as the indicator value set corresponding to the weight value set.
[0008] Optionally, the indicator variable includes a grid-connected disturbance uncertainty indicator, and determining an initial indicator value set of the initial power grid line based on the status information of each node of the initial power grid line and the grid-connected power includes: obtaining the power amount of each line in the initial power grid line to obtain N power amounts, where N is a positive integer; obtaining the maximum power amount among the N power amounts, and obtaining the distribution probability of the N power amounts; determining the indicator value of the grid-connected disturbance uncertainty indicator based on the maximum power amount, the N power amounts, and the distribution probability of the N power amounts.
[0009] Optionally, the indicator variable includes a grid-connected disturbance load loss rate, and determining an initial indicator value set of the initial power grid line based on status information of each node of the initial power grid line and the grid-connected power includes: obtaining the grid-connected disturbance load loss amount and the total load amount in the initial power grid line; and determining the indicator value of the grid-connected disturbance load loss rate based on the grid-connected disturbance load loss amount and the total load amount.
[0010] Optionally, the indicator variable includes a grid-connected voltage offset, and determining the initial indicator value set of the initial grid line based on the status information of each node of the initial grid line and the grid-connected power includes: obtaining the voltage value of each node in the initial grid line, and the voltage value interval of each node; calculating the offset between the voltage value of each node and the voltage value interval, and obtaining the indicator value of the grid-connected voltage offset.
[0011] Optionally, a candidate weight value set from M weight value sets is determined based on M target power values, and the M weight value sets and M index value sets are iteratively updated and calculated based on the candidate weight value sets and the initial expression, including: calculating the comfort of each weight value set based on the target power value of each weight value set and a preset positive number to obtain M comfort scores; determining the weight value set with the highest comfort score as the candidate weight value set, and updating each weight value set based on the weight value in the candidate weight value set to obtain M updated weight value sets.
[0012] Optionally, each weight value set is updated according to the weight values in the candidate weight value set to obtain M updated weight value sets, including: generating a first matrix according to the weights in the candidate weight value set, and generating a second matrix composed of the weight values in each weight value set to obtain multiple second matrices; subtracting the first matrix from each second matrix to obtain multiple difference matrices, and calculating an update matrix corresponding to each second matrix according to the difference matrix, the adjustment coefficient and each second matrix, and determining the weights in the update matrix as the updated weight set.
[0013] According to another aspect of the present application, a device for determining a new energy grid-connected strategy is provided. The device includes: a first calculation unit, which is used to generate M weight value sets, and calculate the index value set corresponding to each weight value set according to the M weight value sets and the initial expression of the grid-connected power value of the new energy power grid line, to obtain M index value sets, wherein the initial expression is obtained by adding P sub-power expressions, each sub-power expression is obtained by multiplying an indicator variable and a weight variable, each indicator value set includes the indicator values of the P indicator variables in the initial expression, each weight value set includes the weight values of the P weight variables in the initial expression, and the index value set corresponding to each weight value set is an indicator value set under different grid-connected strategies, and M and P are both positive integers; a second calculation unit, which is used to substitute each weight value set and the corresponding index value set into the initial expression , obtain multiple candidate expressions, and calculate the grid-connected power value through each candidate expression to obtain M target power values; a third calculation unit is used to determine the candidate weight value set in the M weight value sets according to the M target power values, and iteratively update the M weight value sets and the M indicator value sets according to the candidate weight value set and the initial expression until a preset number of iterations is reached; a selection unit is used to select the weight value set with the smallest target power value from the M updated weight value sets when the preset number of iterations is reached to obtain a target weight value set; a determination unit is used to obtain the candidate expression to which the target weight value set belongs, obtain the target expression, and determine the grid-connected strategy corresponding to the indicator value set in the target expression as the target grid-connected strategy for the new energy power grid line.
[0014] According to another aspect of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the method for determining a new energy grid-connected strategy in the present application is implemented.
[0015] According to another aspect of the present invention, an electronic device is provided, comprising one or more processors and a memory; the memory stores computer-readable instructions, and the processor is used to run the computer-readable instructions, wherein when the computer-readable instructions are run, a method for determining a new energy grid-connected strategy is executed.
[0016] Through the present application, the following steps are adopted: generate M weight value sets, and calculate the index value set corresponding to each weight value set according to the M weight value sets and the initial expression of the grid-connected power value of the new energy power grid line to obtain M index value sets, wherein the initial expression is obtained by adding P sub-power expressions, each sub-power expression is obtained by multiplying an indicator variable and a weight variable, each indicator value set includes the indicator values of the P indicator variables in the initial expression, each weight value set includes the weight values of the P weight variables in the initial expression, the index value set corresponding to each weight value set is the index value set under different grid-connected strategies, and M and P are both positive integers; each weight value set and the corresponding indicator value set are replaced by An initial expression is input to obtain multiple candidate expressions, and the grid-connected power value is calculated through each candidate expression to obtain M target power values; a candidate weight value set in the M weight value sets is determined according to the M target power values, and the M weight value sets and the M index value sets are iteratively updated and calculated according to the candidate weight value set and the initial expression until the preset number of iterations is reached; when the preset number of iterations is reached, the weight value set with the smallest target power value is selected from the M updated weight value sets to obtain the target weight value set; the candidate expression to which the target weight value set belongs is obtained to obtain the target expression, and the grid-connected strategy corresponding to the index value set in the target expression is determined as the target grid-connected strategy of the new energy power grid line. The problem of low accuracy of parameters in the new energy grid-connected decision model determined manually in the related technology is solved. By setting the initial expression of the grid-connected power value of the new energy power grid line, calculating the power value of the initial expression, and iteratively updating the index variable and the weight variable according to the power value, the optimal index variable value and weight variable value are obtained, thereby improving the accuracy of the parameters in the new energy grid-connected decision model. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 is a flow chart of a method for determining a new energy grid connection strategy provided in an embodiment of the present application;
[0019] Figure 2 is a flowchart of a weight value set iteration method provided according to an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of a device for determining a new energy grid connection strategy provided in an embodiment of the present application;
[0021] Figure 4It is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] It should be noted that the method, device and electronic equipment for determining the new energy grid-connected strategy determined in the present disclosure can be used in the field of power systems, and can also be used in any field other than the field of power systems. The application field of the method, device and electronic equipment for determining the new energy grid-connected strategy determined in the present disclosure is not limited.
[0026] It should be noted that the collected information, user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) used in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of the relevant regions, necessary confidentiality measures are taken, and public order and good customs are not violated. Corresponding operation portals are provided for users to choose to authorize or refuse to use. For example, an interface is set up between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0027] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0028] New energy power grid lines: refers to the power transmission lines that support new energy power generation facilities (such as wind power generation, solar power generation, etc.).
[0029] Grid-connected power value: The grid-connected power value of a new energy power grid line refers to the maximum power value that can be stably transmitted to the power grid when new energy power generation facilities (such as wind power generation, solar power generation, etc.) are connected to the power system through the grid lines.
[0030] Grid-connected disturbance uncertainty index: It is a quantitative index used to measure the volatility and instability of the output power or grid-connected power of new energy power generation facilities (such as wind power generation, photovoltaic power generation, etc.) during the grid-connected process due to various uncertain factors (such as fluctuations in natural conditions, changes in equipment status, changes in grid load, etc.).
[0031] Grid-connected disturbance load loss rate index: It is an important parameter for evaluating the risk of grid adequacy after the connection of new energy to the grid. It mainly reflects the power failure probability that the available power generation capacity of the grid cannot meet the load demand due to factors such as changes in the output power of new energy or failure of system components.
[0032] Grid voltage offset: refers to the difference between the actual voltage and the rated voltage in the power system, which reflects the degree of voltage deviation in the power system. This offset is usually expressed as a percentage or a specific value, and is used to measure the voltage stability and reliability of the power system.
[0033] According to an embodiment of the present application, a method for determining a new energy grid-connected strategy is provided.
[0034] Figure 1 1 is a flow chart of a method for determining a new energy grid connection strategy according to an embodiment of the present application. Figure 1As shown, the method comprises the following steps:
[0035] Step S101, generate M weight value sets, and calculate the indicator value set corresponding to each weight value set according to the M weight value sets and the initial expression of the grid-connected power value of the new energy power grid line, to obtain M indicator value sets, wherein the initial expression is obtained by adding P sub-power expressions, each sub-power expression is obtained by multiplying an indicator variable and a weight variable, each indicator value set includes the indicator values of the P indicator variables in the initial expression, each weight value set includes the weight values of the P weight variables in the initial expression, the indicator value set corresponding to each weight value set is the indicator value set under different grid-connected strategies, and M and P are both positive integers.
[0036] It should be noted that the initial expression can be expressed as formula (1):
[0037] F obj =λ 1 F r1 +λ 2 F r2 +λ 3 F r3 (1)
[0038] Among them, F obj is the grid-connected power value of the new energy grid line, λ 1 F r1 , 2 F r2 , 3 F r3 are the first sub-power expression, the second sub-power expression, and the third sub-power expression, respectively. r1 F r2 F r3 are the indicator variables of the first sub-power expression, the second sub-power expression, and the third sub-power expression, respectively. The indicator variable of the first sub-power expression can be the grid disturbance uncertainty index, the indicator variable of the second sub-power expression can be the grid disturbance load loss rate, and the indicator variable of the third sub-power expression can be the grid voltage offset. 1 λ 2 λ 3 They are respectively the first weight variable of the first sub-power expression, the second weight of the second sub-power expression, and the third weight of the third sub-power expression.
[0039] Specifically, since the grid-connected strategy directly affects the index values of the above three index variables, in order to obtain the optimal grid-connected power value, it is necessary to accurately determine the grid-connected strategy. After determining the grid-connected strategy, since the grid-connected power value needs to be calculated through the preliminary expression, it is necessary not only to determine the grid-connected strategy, but also to determine the weight values of the above three weight variables, so as to calculate the accurate grid-connected power value according to the weight value and the index value, and then determine which grid-connected strategy is the optimal strategy according to the grid-connected power value.
[0040] Furthermore, when determining the index value, it is necessary to first set M weight value sets, wherein each weight value set includes random values of the above three weight variables, that is, randomly generate M weight value sets, and calculate the index value set corresponding to each weight value set based on the M weight value sets and the initial expression of the grid-connected power value of the new energy power grid line, wherein the calculated index value set is the optimal value under each weight value set, and when determining the optimal value, it can be determined according to the result of the initial expression, so that after obtaining the optimal index value set, the weight value can be iteratively updated according to the index value set to determine the optimal weight value.
[0041] Step S102, substituting each weight value set and the corresponding index value set into the initial expression to obtain multiple candidate expressions, and calculating the grid-connected power value through each candidate expression to obtain M target power values.
[0042] Specifically, after obtaining the weight value set and the index value set, they can be substituted into the initial expression to obtain a candidate expression containing numerical values, and then the candidate expression is calculated according to the weight value set and the index value set to obtain the target power value.
[0043] Step S103, determining a candidate weight value set in the M weight value sets according to the M target power values, and iteratively updating and calculating the M weight value sets and the M index value sets according to the candidate weight value sets and the initial expression until a preset number of iterations is reached.
[0044] Specifically, after obtaining M target power values, it is necessary to select the optimal target power value from them, and determine its corresponding weight value set as the candidate weight value set, and then update the weight values in the other M-1 weight value sets according to the respective weight values in the candidate weight value sets, thereby obtaining M updated weight value sets (wherein the contents of the candidate weight value sets in the M weight value sets remain unchanged, that is, the candidate weight value sets themselves are not updated), and repeat the steps in step S101-step S103 until the preset number of iterations is reached, thereby completing the iterative operation on the weight values and obtaining the optimal weight value.
[0045] Step S104: When the preset number of iterations is reached, a weight value set with the smallest target power value is selected from the M updated weight value sets to obtain a target weight value set.
[0046] Specifically, when the optimal weight value is obtained, the weight value set with the smallest calculated target power value is selected from the M updated weight value sets under the current number of iterations, that is, the target weight value set, so that the corresponding indicator value set can be determined according to the target weight value set, and then the grid-connected strategy can be determined according to the indicator value set to obtain the optimal grid-connected strategy.
[0047] Step S105, obtaining the candidate expression to which the target weight value set belongs, obtaining the target expression, and determining the grid connection strategy corresponding to the indicator value set in the target expression as the target grid connection strategy of the new energy power grid line.
[0048] Specifically, after obtaining the target weight value set, since the grid-connected power value obtained by the candidate expression composed of the target weight value set is optimal, the index value in the candidate expression representing the target weight value set is also the optimal index value. Therefore, the index value contained in the target expression is required, and the grid-connected strategy is reversely calculated based on the index value, so as to obtain the optimal grid-connected strategy of the new energy power grid line, thereby completing the operation of determining the optimal grid-connected strategy of the new energy power grid line.
[0049] The method for determining the new energy grid-connected strategy provided in the embodiment of the present application generates M weight value sets, and calculates the index value set corresponding to each weight value set according to the M weight value sets and the initial expression of the grid-connected power value of the new energy power grid line to obtain M index value sets, wherein the initial expression is obtained by adding P sub-power expressions, each sub-power expression is obtained by multiplying an indicator variable and a weight variable, each indicator value set includes the indicator values of the P indicator variables in the initial expression, each weight value set includes the weight values of the P weight variables in the initial expression, and the index value set corresponding to each weight value set is the index value set under different grid-connected strategies, and M and P are both positive integers; each weight value set and the corresponding The index value set is substituted into the initial expression to obtain multiple candidate expressions, and the grid-connected power value is calculated through each candidate expression to obtain M target power values; the candidate weight value set in the M weight value set is determined according to the M target power values, and the M weight value sets and the M index value sets are iteratively updated and calculated according to the candidate weight value set and the initial expression until the preset number of iterations is reached; when the preset number of iterations is reached, the weight value set with the smallest target power value is selected from the M updated weight value sets to obtain the target weight value set; the candidate expression to which the target weight value set belongs is obtained to obtain the target expression, and the grid-connected strategy corresponding to the index value set in the target expression is determined as the target grid-connected strategy of the new energy power grid line. The problem of low accuracy of parameters in the new energy grid-connected decision model determined manually in the related technology is solved. By setting the initial expression of the grid-connected power value of the new energy power grid line, calculating the power value of the initial expression, and iteratively updating the index variable and the weight variable according to the power value, the optimal index variable value and the weight variable value are obtained, thereby improving the accuracy of the parameters in the new energy grid-connected decision model.
[0050] Optionally, in the method for determining the new energy grid-connected strategy provided in an embodiment of the present application, M weight value sets are generated, and the indicator value set corresponding to each weight value set is calculated based on the M weight value sets and the initial expression of the grid-connected power value of the new energy grid line, and the M indicator value sets are obtained, including: generating an initial grid-connected strategy for the new energy grid line, and determining the status information and grid-connected power of each node in the initial grid line based on the initial grid-connected strategy; determining an initial indicator value set of the initial grid line based on the status information and grid-connected power of each node in the initial grid line; for any weight value set, the initial indicator value set and the weight value set are substituted into the initial expression to obtain the initial power value; the reward function is calculated based on the initial power value, and the initial grid-connected strategy is updated based on the reward function until the reward function converges to obtain a candidate grid-connected strategy, and the initial indicator value set determined by the candidate grid-connected strategy is determined as the indicator value set corresponding to the weight value set.
[0051] It should be noted that when determining the index value set corresponding to each weight value set, it is necessary to substitute the weight value set and the index value set into the initial expression for calculation to obtain the target power value, and compare multiple target power values to determine the optimal weight value set. Therefore, it is necessary to obtain the optimal index value set corresponding to each weight value, and then calculate the optimal target power value to ensure the accuracy of the subsequent determination of the optimal weight value set.
[0052] Specifically, when determining the optimal index value set for each weight value set, it is first necessary to randomly generate an initial grid-connected strategy model for the new energy power grid line, and then calculate the initial grid-connected strategy value according to the initial grid-connected strategy model, wherein the initial grid-connected strategy model includes: new energy grid-connected state space, new energy grid-connected action space, new energy grid-connected strategy optimization model constraint conditions and new energy grid-connected strategy optimization model reward function, wherein,
[0053] The new energy grid-connected state space includes the grid node states and line states required for the calculation of the new energy grid-connected strategy optimization model. Specifically, it is shown in formula (2)-formula (3):
[0054] S re ={s gr ,s en} (2)
[0055] Among them, S re is the grid-connected state space of the new energy grid line, s gr ,s en They are the grid node status and line status of the new energy grid line respectively.
[0056] Furthermore, the grid-connected action space of the new energy grid line includes the grid-connected power of new energy at each node in the grid, specifically:
[0057] A re ={a 1 ,a 2 ,....,a n} (3)
[0058] Among them, A re is the grid-connected action space of the new energy grid line; a 1 , a 2 , ..., a n is the renewable energy grid-connected power of grid nodes 1, 2, ..., n in the renewable energy grid line.
[0059] Furthermore, it is also necessary to determine the constraints of the new energy grid-connected strategy optimization model, including the maximum power and minimum power of the new energy output of each node in the new energy grid line, and build an initial grid-connected strategy model based on the above-mentioned grid node status and line status. The initial grid-connected strategy value is determined through the initial grid-connected strategy model, thereby determining the status information and grid-connected power of each node in the initial grid line according to the initial grid-connected strategy.
[0060] Furthermore, after obtaining the status information and grid-connected power of each node, the electrical status values of each node in the initial power grid line, such as voltage value, power value, etc., can be calculated, so as to calculate each indicator variable in the indicator value set based on the electrical status value.
[0061] Furthermore, after obtaining the index value set, the initial power value can be calculated according to the index value set and the weight value set, and the initial power value can be processed according to the reward function to determine whether the optimal initial power value is obtained. The reward function of the new energy grid connection strategy optimization model is specifically shown in formula (4):
[0062]
[0063] Among them, R rew is the reward function of the new energy grid-connected strategy optimization model. Rk(Fobj) is the inverse of the initial power value calculated at the kth round of iterations. is the decay factor, and K is the total number of iterations.
[0064] Formula (4) can be used to optimize the grid connection strategy in a direction according to the convergence of the reward function, thereby obtaining the optimal indicator value set for the weight value set.
[0065] Optionally, in the method for determining the new energy grid-connected strategy provided in an embodiment of the present application, the indicator variable includes a grid-connected disturbance uncertainty index, and determining the initial indicator value set of the initial grid line according to the status information of each node of the initial grid line and the grid-connected power includes: obtaining the power amount of each line in the initial grid line to obtain N power amounts, where N is a positive integer; obtaining the maximum power amount among the N power amounts, and obtaining the distribution probability of the N power amounts; determining the indicator value of the grid-connected disturbance uncertainty index according to the maximum power amount, the N power amounts, and the distribution probability of the N power amounts.
[0066] Specifically, when calculating the grid-connected disturbance uncertainty index in the index variable, it can be calculated according to formula (5)-formula (6):
[0067] First, obtain the power of each line in the initial power grid And obtain the maximum power quantity P among N power quantities max,i, so as to calculate the line load rate in the power grid, specifically:
[0068]
[0069] Among them, FS1 is the line load rate in the power grid; is the power of line i; P max,i is the maximum allowable power of line i; N i is the total number of lines in the power grid.
[0070] Furthermore, the distribution probability of N power quantities is obtained to calculate the grid disturbance uncertainty index F r1 Specifically
[0071]
[0072] in, is the power of line i The distribution probability of .
[0073] Optionally, in the method for determining the new energy grid-connected strategy provided in an embodiment of the present application, the indicator variable includes a grid-connected disturbance load loss rate, and determining an initial indicator value set of the initial grid line based on the status information of each node of the initial grid line and the grid-connected power includes: obtaining the grid-connected disturbance load loss amount and the total load amount in the initial grid line; determining the indicator value of the grid-connected disturbance load loss rate based on the grid-connected disturbance load loss amount and the total load amount.
[0074] Specifically, when calculating the grid-connected disturbance load loss rate in the indicator variable, it can be calculated according to formula (7):
[0075]
[0076] Among them, F r2 P is the grid-connected disturbance load loss rate index; loss is the grid-connected disturbance load loss; P total is the total system load.
[0077] Optionally, in the method for determining the new energy grid-connected strategy provided in an embodiment of the present application, the indicator variable includes a grid-connected voltage offset, and determining the initial indicator value set of the initial grid line according to the status information of each node of the initial grid line and the grid-connected power includes: obtaining the voltage value of each node in the initial grid line, and the voltage value interval of each node; calculating the offset between the voltage value of each node and the voltage value interval, and obtaining the indicator value of the grid-connected voltage offset.
[0078] Specifically, when calculating the grid-connected voltage offset in the indicator variable, it can be calculated according to formula (8):
[0079]
[0080] Among them, F r3 It is the grid voltage offset indicator; is the voltage at node i; U max,i ,U min,i are the upper and lower limits of the voltage at node i respectively.
[0081] Optionally, in the method for determining the new energy grid-connected strategy provided in an embodiment of the present application, a candidate weight value set in M weight value sets is determined according to M target power values, and the M weight value sets and M index value sets are iteratively updated and calculated according to the candidate weight value sets and the initial expression, including: calculating the comfort of each weight value set according to the target power value of each weight value set and a preset positive number to obtain M comfort scores; determining the weight value set with the highest comfort score as the candidate weight value set, and updating each weight value set according to the weight value in the candidate weight value set to obtain M updated weight value sets.
[0082] It should be noted that Figure 2 is a flowchart of a weight value set iteration method provided in an embodiment of the present application. Figure 2 As shown, when iterating the weight value set, first determine whether there is a candidate weight value set. If not, it represents the first iteration. It is necessary to first determine the candidate weight value set in the M weight value sets, and optimize the remaining weight value sets based on the candidate weight value sets, so as to optimize the M weight value sets in a direction.
[0083] Specifically, when determining the candidate weight value sets, formula (9) can be used to calculate the comfort level of each weight value set, and the weight value set with the highest comfort level can be determined as the candidate weight value set, thereby achieving the technical effect of selecting the candidate weight value set from the M weight value sets.
[0084]
[0085] Among them, F eh is the comfort function, and η is a positive real number not greater than 0.001.
[0086] Furthermore, after obtaining the candidate weight value sets, each weight value set may be updated using the weight values in the candidate weight value sets, thereby completing the update operation on the weight values in each weight value set.
[0087] It should be noted that after completing the update operation of the M weight values, it is necessary to calculate the index value set corresponding to the M updated weight value sets, and calculate the initial power values of the M updated weight value sets, and reselect the candidate weight value set based on the initial power value, and the reselected candidate weight value set is used for the next iterative calculation.
[0088] When calculating the weight value set in the next iteration, it is still necessary to regenerate M weight value sets and repeat the above operation to obtain multiple comfort scores, and compare the comfort branch with the comfort score of the re-selected candidate weight value set to determine the candidate weight value set for this iteration, and re-execute the above operation of optimizing the remaining weight value sets based on the candidate weight value set, thereby completing the iterative calculation of the weight value set and ensuring the accuracy of the weight value set.
[0089] Optionally, in the method for determining the new energy grid-connected strategy provided in an embodiment of the present application, each weight value set is updated according to the weight values in the candidate weight value set to obtain M updated weight value sets, including: generating a first matrix according to the weights in the candidate weight value set, and generating a second matrix composed of the weight values in each weight value set to obtain multiple second matrices; subtracting the first matrix from each second matrix to obtain multiple difference matrices, and calculating an update matrix corresponding to each second matrix according to the difference matrix, the adjustment coefficient and each second matrix, and determining the weights in the update matrix as the updated weight set.
[0090] Specifically, when updating the weight value, each weight value set can be generated into a matrix. For example, the weight value matrix can be: e =[x 1 , x 2 , x 3 ], where x 1 , x 2 , x 3 are the weight values of the three weight variables respectively. After obtaining the weight value matrix, the weight value set can be updated according to formula (10):
[0091]
[0092] in, is the updated weight matrix, x e is the weight value matrix before updating, Γ is the adaptive adjustment coefficient, x best is the weight value matrix of the candidate weight value set.
[0093] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0094] The embodiment of the present application also provides a device for determining a new energy grid connection strategy. It should be noted that the device for determining a new energy grid connection strategy in the embodiment of the present application can be used to execute the method for determining a new energy grid connection strategy provided in the embodiment of the present application. The device for determining a new energy grid connection strategy provided in the embodiment of the present application is introduced below.
[0095] Figure 3 Schematic diagram of a device for determining a new energy grid connection strategy according to an embodiment of the present application. Figure 3 As shown, the device includes: a first calculating unit 31, a second calculating unit 32, a third calculating unit 33, a selecting unit 34, and a determining unit 35.
[0096] The first calculation unit 31 is used to generate M weight value sets, and calculate the indicator value set corresponding to each weight value set according to the M weight value sets and the initial expression of the grid-connected power value of the new energy power grid line, to obtain M indicator value sets, wherein the initial expression is obtained by adding P sub-power expressions, each sub-power expression is obtained by multiplying an indicator variable and a weight variable, each indicator value set includes the indicator values of the P indicator variables in the initial expression, each weight value set includes the weight values of the P weight variables in the initial expression, the indicator value set corresponding to each weight value set is the indicator value set under different grid-connected strategies, and M and P are both positive integers.
[0097] The second calculation unit 32 is used to substitute each weight value set and the corresponding index value set into the initial expression to obtain multiple candidate expressions, and calculate the grid-connected power value through each candidate expression to obtain M target power values.
[0098] The third calculation unit 33 is used to determine a candidate weight value set in the M weight value sets according to the M target power values, and iteratively update the M weight value sets and the M indicator value sets according to the candidate weight value sets and the initial expression until a preset number of iterations is reached.
[0099] The selection unit 34 is used to select a weight value set with the smallest target power value from the M updated weight value sets when a preset number of iterations is reached, so as to obtain a target weight value set.
[0100] The determination unit 35 is used to obtain the candidate expression to which the target weight value set belongs, obtain the target expression, and determine the grid connection strategy corresponding to the indicator value set in the target expression as the target grid connection strategy of the new energy power grid line.
[0101] The device for determining the new energy grid-connected strategy provided in the embodiment of the present application generates M weight value sets through the first calculation unit 31, and calculates the index value set corresponding to each weight value set according to the M weight value sets and the initial expression of the grid-connected power value of the new energy power grid line to obtain M index value sets, wherein the initial expression is obtained by adding P sub-power expressions, each sub-power expression is obtained by multiplying an indicator variable and a weight variable, each indicator value set includes the indicator values of the P indicator variables in the initial expression, each weight value set includes the weight values of the P weight variables in the initial expression, and the index value set corresponding to each weight value set is an indicator value set under different grid-connected strategies, and M and P are both positive integers; the second calculation unit 32 substitutes each weight value set and the corresponding index value set into the initial expression to obtain multiple candidate expressions, and calculates the grid-connected power value through each candidate expression to obtain M target power values; the third calculation unit 33 determines M weights according to the M target power values. A candidate weight value set in the value set, and iteratively update and calculate the M weight value sets and the M indicator value sets according to the candidate weight value set and the initial expression until a preset number of iterations is reached; when the preset number of iterations is reached, the selection unit 34 selects the weight value set with the smallest target power value from the M updated weight value sets to obtain the target weight value set; the determination unit 35 obtains the candidate expression to which the target weight value set belongs, obtains the target expression, and determines the grid-connected strategy corresponding to the indicator value set in the target expression as the target grid-connected strategy of the new energy power grid line, which solves the problem of low accuracy of parameters in the new energy grid-connected decision model determined manually in the related technology, and sets the initial expression of the grid-connected power value of the new energy power grid line, calculates the power value of the initial expression, and iteratively updates the indicator variables and weight variables according to the power value, so as to obtain the optimal indicator variable values and weight variable values, thereby improving the accuracy of the parameters in the new energy grid-connected decision model.
[0102] Optionally, in the device for determining the new energy grid-connected strategy provided in an embodiment of the present application, the first calculation unit 31 includes: a generation module, used to generate an initial grid-connected strategy for the new energy grid line, and determine the status information and grid-connected power of each node in the initial grid line according to the initial grid-connected strategy; a first determination module, used to determine the initial indicator value set of the initial grid line according to the status information and grid-connected power of each node in the initial grid line; a first calculation module, used to, for any weight value set, bring the initial indicator value set and the weight value set into the initial expression to obtain the initial power value; a second calculation module, used to calculate the reward function based on the initial power value, and update the initial grid-connected strategy based on the reward function until the reward function converges, to obtain a candidate grid-connected strategy, and determine the initial indicator value set determined by the candidate grid-connected strategy as the indicator value set corresponding to the weight value set.
[0103] Optionally, in the device for determining the new energy grid-connected strategy provided in the embodiment of the present application, the indicator variable includes a grid-connected disturbance uncertainty index, and the first determination module includes: a first acquisition submodule, used to obtain the power amount of each line in the initial power grid line, and obtain N power amounts, where N is a positive integer; a second acquisition submodule, used to obtain the maximum power amount among the N power amounts, and obtain the distribution probability of the N power amounts; the first determination submodule, used to determine the indicator value of the grid-connected disturbance uncertainty index based on the maximum power amount, N power amounts and the distribution probability of the N power amounts.
[0104] Optionally, in the device for determining the new energy grid-connected strategy provided in an embodiment of the present application, the indicator variable includes a grid-connected disturbance load loss rate, and the first determination module includes: a third acquisition submodule, used to obtain the grid-connected disturbance load loss amount and the total load amount in the initial power grid line; a second determination submodule, used to determine the indicator value of the grid-connected disturbance load loss rate based on the grid-connected disturbance load loss amount and the total load amount.
[0105] Optionally, in the device for determining the new energy grid-connected strategy provided in an embodiment of the present application, the indicator variable includes a grid-connected voltage offset, and the first determination module includes: a fourth acquisition submodule, used to obtain the voltage value of each node in the initial power grid line, and the voltage value interval of each node; a first calculation submodule, used to calculate the offset between the voltage value of each node and the voltage value interval, and obtain the indicator value of the grid-connected voltage offset.
[0106] Optionally, in the device for determining the new energy grid-connected strategy provided in the embodiment of the present application, the third calculation unit 33 includes: a third calculation module, used to calculate the comfort of each weight value set according to the target power value of each weight value set and a preset positive number, to obtain M comfort scores; a second determination module, used to determine the weight value set with the highest comfort score as the candidate weight value set, and update each weight value set according to the weight value in the candidate weight value set, to obtain M updated weight value sets.
[0107] Optionally, in the device for determining the new energy grid-connected strategy provided in an embodiment of the present application, the second determination module includes: a generation submodule, used to generate a first matrix according to the weights in the candidate weight value set, and generate a second matrix composed of the weight values in each weight value set to obtain multiple second matrices; a second calculation submodule, used to subtract the first matrix from each second matrix to obtain multiple difference matrices, and calculate an update matrix corresponding to each second matrix according to the difference matrix, the adjustment coefficient and each second matrix, and determine the weights in the update matrix as the updated weight set.
[0108] The above-mentioned determination device of the new energy grid-connected strategy includes a processor and a memory. The above-mentioned first calculation unit 31, the second calculation unit 32, the third calculation unit 33, the selection unit 34, the determination unit 35, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions.
[0109] The processor includes a kernel, and the kernel retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of low accuracy of parameters in the new energy grid connection decision model determined manually in the related art is solved by adjusting the kernel parameters.
[0110] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0111] An embodiment of the present invention provides a computer-readable storage medium having a program stored thereon, and when the program is executed by a processor, the method for determining the new energy grid-connected strategy is implemented.
[0112] An embodiment of the present invention provides a processor, which is used to run a program, wherein the method for determining the new energy grid-connected strategy is executed when the program is running.
[0113] Figure 4 is a schematic diagram of an electronic device provided according to an embodiment of the present application, such as Figure 4As shown, an embodiment of the present invention provides an electronic device, the electronic device 40 includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the steps of the above-mentioned method for determining the new energy grid connection strategy when executing the program. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0114] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the steps of the above-mentioned method for determining the new energy grid-connected strategy.
[0115] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0116] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0117] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.
[0119] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0120] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0121] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0122] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0123] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for determining a new energy grid connection strategy, characterized in that: include: Generate M weight value sets, and calculate the index value set corresponding to each weight value set according to the M weight value sets and the initial expression of the grid-connected power value of the new energy power grid line, to obtain M index value sets, wherein the initial expression is obtained by adding P sub-power expressions, each sub-power expression is obtained by multiplying an indicator variable and a weight variable, each indicator value set includes the indicator values of the P indicator variables in the initial expression, each weight value set includes the weight values of the P weight variables in the initial expression, and the index value set corresponding to each weight value set is an indicator value set under different grid-connected strategies, and M and P are both positive integers; Substituting each weight value set and the corresponding index value set into the initial expression to obtain multiple candidate expressions, and calculating the grid-connected power value through each candidate expression to obtain M target power values; Determine a candidate weight value set in the M weight value sets according to the M target power values, and perform iterative update calculation on the M weight value sets and the M indicator value sets according to the candidate weight value sets and the initial expression until a preset number of iterations is reached; When the preset number of iterations is reached, selecting a weight value set with the smallest target power value from the M updated weight value sets to obtain a target weight value set; The candidate expression to which the target weight value set belongs is obtained to obtain a target expression, and the grid connection strategy corresponding to the indicator value set in the target expression is determined as the target grid connection strategy of the new energy power grid line.
2. The method according to claim 1, characterized in that Generate M weight value sets, and calculate the index value set corresponding to each weight value set according to the M weight value sets and the initial expression of the grid-connected power value of the new energy power grid line, and obtain the M index value sets including: Generate an initial grid-connection strategy for the new energy grid line, and determine the state information and grid-connection power of each node in the initial grid line according to the initial grid-connection strategy; Determining an initial indicator value set of the initial power grid line according to the state information of each node of the initial power grid line and the grid-connected power; For any weight value set, the initial indicator value set and the weight value set are brought into the initial expression to obtain an initial power value; A reward function is calculated according to the initial power value, and the initial grid-connected strategy is updated according to the reward function until the reward function converges, so as to obtain a candidate grid-connected strategy, and the initial indicator value set determined by the candidate grid-connected strategy is determined as the indicator value set corresponding to the weight value set.
3. The method according to claim 2, characterized in that The indicator variable includes a grid-connected disturbance uncertainty indicator, and determining an initial indicator value set of the initial grid line according to the state information of each node of the initial grid line and the grid-connected power includes: Obtaining the power of each line in the initial power grid line to obtain N power amounts, where N is a positive integer; Obtaining a maximum power amount among the N power amounts, and obtaining a distribution probability of the N power amounts; An index value of the grid-connected disturbance uncertainty index is determined according to the maximum power amount, the N power amounts, and the distribution probability of the N power amounts.
4. The method according to claim 2, characterized in that: The indicator variable includes a grid-connected disturbance load loss rate, and determining an initial indicator value set of the initial grid line according to the state information of each node of the initial grid line and the grid-connected power includes: Obtaining a grid-connected disturbance load loss amount and a total load amount in the initial power grid line; An index value of the grid-connected disturbance load loss rate is determined according to the grid-connected disturbance load loss amount and the total load amount.
5. The method according to claim 2, characterized in that: The indicator variable includes a grid-connected voltage offset, and determining an initial indicator value set of the initial grid line according to the state information of each node of the initial grid line and the grid-connected power includes: Obtaining the voltage value of each node in the initial power grid line and the voltage value interval of each node; The offset between the voltage value of each node and the voltage value interval is calculated to obtain an index value of the grid-connected voltage offset.
6. The method according to claim 1, characterized in that Determining a candidate weight value set in the M weight value sets according to the M target power values, and performing iterative update calculation on the M weight value sets and the M index value sets according to the candidate weight value set and the initial expression includes: Calculate the comfort of each weight value set according to the target power value of each weight value set and a preset positive number to obtain M comfort scores; The weight value set with the highest comfort score is determined as the candidate weight value set, and each weight value set is updated according to the weight values in the candidate weight value set to obtain M updated weight value sets.
7. The method according to claim 6, characterized in that Each weight value set is updated according to the weight value in the candidate weight value set, and M updated weight value sets are obtained, including: Generate a first matrix according to the weights in the candidate weight value set, and generate a second matrix composed of the weight values in each weight value set, to obtain a plurality of second matrices; The first matrix is subtracted from each second matrix to obtain multiple difference matrices, and an update matrix corresponding to each second matrix is calculated based on the difference matrix, the adjustment coefficient and each second matrix, and the weights in the update matrix are determined as the updated weight set.
8. A device for determining a new energy grid connection strategy, characterized in that: include: A first calculation unit is used to generate M weight value sets, and calculate the index value set corresponding to each weight value set according to the M weight value sets and the initial expression of the grid-connected power value of the new energy power grid line to obtain M index value sets, wherein the initial expression is obtained by adding P sub-power expressions, each sub-power expression is obtained by multiplying an indicator variable and a weight variable, each indicator value set includes the indicator values of the P indicator variables in the initial expression, each weight value set includes the weight values of the P weight variables in the initial expression, and the index value set corresponding to each weight value set is an indicator value set under different grid-connected strategies, and M and P are both positive integers; A second calculation unit is used to substitute each weight value set and the corresponding index value set into the initial expression to obtain multiple candidate expressions, and calculate the grid-connected power value through each candidate expression to obtain M target power values; a third calculation unit, configured to determine a candidate weight value set in the M weight value sets according to the M target power values, and perform iterative update calculation on the M weight value sets and the M indicator value sets according to the candidate weight value sets and the initial expression until a preset number of iterations is reached; A selection unit, configured to select, when the preset number of iterations is reached, a weight value set with the smallest target power value from the M updated weight value sets to obtain a target weight value set; A determination unit is used to obtain a candidate expression to which the target weight value set belongs, obtain a target expression, and determine the grid connection strategy corresponding to the indicator value set in the target expression as the target grid connection strategy of the new energy power grid line.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for determining the new energy grid-connected strategy described in any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining the new energy grid-connected strategy as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method for optimizing transmission grid planning based on single-objective new energy access
CN110635478A
Land grid-connected point optimization selection method and system for large-scale offshore wind power plant
CN112906172A
Method, system and device for calculating new energy consumption capability of large power grid and medium
CN116388291A
