Method, device and electronic equipment for determining new energy grid connection strategy
By generating a set of weight values and iteratively updating indicators and weight variables, the new energy grid connection strategy is determined, which solves the problem of low parameter accuracy in traditional methods and improves the stability and economy of the power grid.
Patent Information
- Application Number
- CN202411073448.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2044-08-06
AI Technical Summary
Traditional renewable energy grid-connected strategies rely on manual experience, resulting in low parameter accuracy and difficulty in meeting real-time requirements and grid stability needs.
By generating a set of weight values, calculating the initial expression of the grid-connected power value, iteratively updating the indicators and weight variables, and determining the optimal grid-connected strategy.
The accuracy of the parameters of the new energy grid-connected decision-making model has been improved, and the economy and stability of the power grid have been optimized.
Smart Images

Figure CN118983868B_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 connection strategy. Background Art
[0002] With the continuous growth of global energy demand and increasing awareness of environmental protection, the development and utilization of new energy sources has become a key approach to addressing energy crises and environmental issues. In particular, renewable energy sources such as wind and solar power have gained widespread adoption worldwide. However, due to the intermittent and fluctuating nature of new energy sources, their integration into the grid poses significant challenges to the stability and reliability of power systems.
[0003] Traditional renewable energy grid-connection strategies are often based on complex optimization models. When renewable energy installed capacity surges, the number of decision variables in the models increases dramatically, resulting in massive computational complexity, lengthy processing times, and difficulty meeting real-time requirements. Furthermore, traditional methods often rely on manual experience to adjust parameters in grid-connection strategies. These methods lack a deep understanding of the dynamic characteristics of the power system after renewable energy integration and lack the ability to automatically optimize. This makes it difficult to accurately capture and utilize the potential of renewable energy, limiting both the efficiency of renewable energy grid integration and the economic and stable operation of the overall power grid.
[0004] Currently, no effective solution has been proposed to the problem of low accuracy in manually determining parameters in a new energy grid connection decision model in related technologies. 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 connection 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 initial expression of the M weight value sets and the grid connection power value of the new energy 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 index variable and a weight variable, each index value set includes the index values of the P index 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 index value set under different grid connection 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 the M weight value sets and 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 index 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, to obtain the M index value sets, 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 the initial index 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 index 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 index value set determined by the candidate grid-connected strategy is determined as the index value set corresponding to the weight value set.
[0008] Optionally, the indicator variable includes a grid-connected disturbance uncertainty indicator, 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 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 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 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 grid-connected disturbance load loss amount and the total load amount in the initial 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, candidate weight value sets from M weight value sets are determined based on M target power values, and the M weight value sets and M index value sets are iteratively updated 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 the update matrix corresponding to each second matrix based on 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 connection 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 based on the initial expression of the M weight value sets and the grid connection power value of the new energy 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 index variable and a weight variable, each index value set includes the index values of the P index 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 index value set under different grid connection 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 index value sets according to the candidate weight value set and the initial expression until the 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 the target weight value set; a determination unit is used to obtain the candidate expression to which the target weight value set belongs, to obtain the target expression, and to determine the grid-connected strategy corresponding to the index 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. 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 this application, the following steps are adopted: 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 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 index value set includes the index values of the P indicator variables in the initial expression, each weight value set contains 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 index value set are replaced 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 a 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 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-connected strategy corresponding to the index value set in the target expression is determined as the target grid-connected strategy of the new energy grid line. The problem of low accuracy of parameters in the new energy grid connection decision model determined manually in the related art is solved. By setting the initial expression of the grid-connected power value of the new energy 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 connection decision model. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which constitute part of this application, are intended to provide a further understanding of this application. The exemplary embodiments and descriptions of this application are intended to explain this application and do not constitute an improper limitation on this application. In the accompanying drawings:
[0018] Figure 1 This is a flow chart of a method for determining a new energy grid connection strategy according to an embodiment of the present application;
[0019] Figure 2 This is a flowchart of a weight value set iteration method provided in accordance with an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of a device for determining a new energy grid connection strategy according to an embodiment of the present application;
[0021] Figure 4This 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 of the embodiments in this 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 present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this 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 that includes 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 comply with the relevant laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize use or refuse use. For example, an interface is set up between this system and relevant users or institutions. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or institution through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or institution.
[0027] For ease 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 line.
[0030] Grid-connected disturbance uncertainty index: It is a quantitative indicator 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] The grid-connected disturbance load loss rate is a key parameter for assessing grid adequacy risk after renewable energy integration. It primarily reflects the probability of a power failure, where the grid's available generation capacity cannot meet load demand due to factors such as changes in renewable energy output power or system component failure.
[0032] Grid voltage offset: This refers to the difference between the actual voltage and the rated voltage in a power system. It 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 connection strategy is provided.
[0034] Figure 1 Flowchart of the method for determining the new energy grid connection strategy according to the embodiment of the present application. Figure 1As shown, the method includes the following steps:
[0035] Step S101, 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 to obtain M index value sets, wherein the initial expression is obtained by adding P sub-power expressions, and each sub-power expression is obtained by multiplying an indicator variable and a weight variable. Each index value set includes the index values of the P indicator variables in the initial expression, and 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.
[0036] It should be noted that the initial expression can be expressed as formula (1):
[0037] F obj =λ1F r1 +λ2F r2 +λ3F r3 (1)
[0038] Among them, F obj is the grid-connected power value of the new energy grid line, λ1F r1 ,λ2F r2 ,λ3F r3 are the first sub-power expression, the second sub-power expression, and the third sub-power expression respectively, F r1 F r2 F r3 They are respectively the indicator variables of the first sub-power expression, the indicator variables of the second sub-power expression, and the indicator variables of the third sub-power expression, wherein 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, and λ1λ2λ3 are respectively the first weight variables 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. 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 performing iterative update calculations on 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 set, thereby obtaining M updated weight value sets (wherein, the content in the candidate weight value set in the M weight value sets remains unchanged, that is, the candidate weight value set itself is 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 value 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 index value set can be determined according to the target weight value set, and then the grid connection strategy can be determined according to the index value set to obtain the optimal grid connection strategy.
[0047] Step S105 , obtaining a candidate expression to which the target weight value set belongs, obtaining a target expression, and determining the grid connection strategy corresponding to the index value set in the target expression as the target grid connection strategy for 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 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 based on the initial expression of the M weight value sets and 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 index value set includes the index 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 by 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 a 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 grid line. The problem of low accuracy of parameters in the new energy grid-connected decision model determined manually in the related art is solved. By setting the initial expression of the grid-connected power value of the new energy 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.
[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 index 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 index 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 the initial index 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 index 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 index value set determined by the candidate grid-connected strategy is determined as the index 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 indicator value set for each weight value set, it is first necessary to randomly generate an initial grid connection strategy model for the new energy power grid line, and then calculate the initial grid connection strategy value based on the initial grid connection strategy model. The initial grid connection strategy model includes: a new energy grid connection state space, a new energy grid connection action space, a new energy grid connection strategy optimization model constraint condition, and a new energy grid connection strategy optimization model reward function.
[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 ={a1,a2,....,a n} (3)
[0058] Among them, A re is the grid-connected action space of the new energy grid line; a1, a2, ..., 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 construct 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, and the status information and grid-connected power of each node in the initial grid line are determined 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 grid line, such as voltage value, power value, etc., can be calculated, so as to obtain 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 based on 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 connection strategy optimization model. Rk(Fobj) is the inverse of the initial power value calculated at the kth iteration. 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 based on 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 based on 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 indicator 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 amount P among N power amounts max,i, and thus 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 the grid-connected disturbance load loss rate, 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 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 is the grid-connected disturbance load loss rate index; P 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 based on the status information and grid-connected power of each node of the initial grid line 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 to obtain 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 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.
[0082] It should be noted that Figure 2 is a flowchart of a weight value set iteration method according to 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 set, 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. 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 operations 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 the update matrix corresponding to each second matrix based on 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: x e =[x1, x2, x3], where x1, x2, and x3 are the weight values of the three weight variables. 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 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 embodiments of the present application also provide 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 embodiments of the present application can be used to execute the method for determining a new energy grid connection strategy provided in the embodiments of the present application. The following describes the device for determining a new energy grid connection strategy provided in the embodiments of the present application.
[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 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, the index 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 based on the M target power values, and iteratively update the M weight value sets and the M indicator value sets based on the candidate weight value set and the initial expression until a preset number of iterations is reached.
[0099] The selection unit 34 is configured 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, to obtain a target weight value set.
[0100] The determination unit 35 is configured 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 index value set in the target expression as the target grid connection strategy for 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 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, and each sub-power expression is obtained by multiplying an indicator variable and a weight variable. Each index value set includes the index values of the P indicator variables in the initial expression, and 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 an index 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. The method comprises the following steps: selecting a candidate weight value set in the value set, and iteratively updating and calculating the M weight value sets and the M indicator value sets according to the candidate weight value set and the initial expression until 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 when the preset number of iterations is reached, and obtains 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 connection strategy corresponding to the indicator value set in the target expression as the target grid connection strategy of the new energy grid line, which solves the problem of low accuracy of parameters in the new energy grid connection decision model determined manually in the related technology, and obtains the optimal indicator variable value and weight variable value by setting the grid connection power value of the new energy grid line, calculating the power value of the initial expression, and iteratively updating the indicator variable and the weight variable according to the power value, thereby improving the accuracy of the parameters in the new energy grid connection 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 based on the initial grid-connected strategy; a first determination module, used to determine the 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; 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 an 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 to 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, the 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 the 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 an indicator value of the grid-connected voltage offset.
[0106] Optionally, in the device for determining the new energy grid-connected strategy provided in an 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 based on 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 based on 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 the update matrix corresponding to each second matrix based on 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 device for determining the new energy grid connection strategy includes a processor and a memory. The above-mentioned first calculation unit 31, second calculation unit 32, third calculation unit 33, selection unit 34, 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 core, which retrieves the corresponding program unit from the memory. One or more cores can be configured, and adjusting the core parameters solves the problem of low accuracy in manually determining parameters in the renewable energy grid connection decision model in related technologies.
[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, which implements the method for determining the new energy grid-connected strategy when executed by a processor.
[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 run.
[0113] Figure 4 is a schematic diagram of an electronic device provided according to an embodiment of the present application, such as Figure 4 As 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. When the processor executes the program, the steps of the method for determining a new energy grid connection strategy are implemented. The device herein may be a server, a PC, a PAD, a mobile phone, or the like.
[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 connection strategy.
[0115] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can 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 can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain 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 produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. 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 that can direct a computer or other programmable data processing device to work 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 The 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 operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0119] In a typical configuration, a computing device includes one or more processors (CPUs), 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 includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The 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 disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic 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 transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0122] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0123] The above are merely 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 modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all 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 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 index value set includes the index 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 an index 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 using each candidate expression to obtain M target power values; Determining a candidate weight value set from the M weight value sets according to the M target power values, and performing iterative update calculations on 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, 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; A candidate expression to which the target weight value set belongs is obtained to obtain a target expression, and a 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 based on the M weight value sets and the initial expression of the grid-connected power value of the new energy power grid line, so that the M index value sets obtained include: Generating an initial grid-connection strategy for the new energy grid line, and determining 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 and grid-connected power of each node of the initial power grid line; For any weight value set, substituting the initial indicator value set and the weight value set into the initial expression to obtain an initial power value; A 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, thereby 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.
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 to obtain N power values, 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 connection 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 level 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 level 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 value 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 values in the candidate weight value set, and M updated weight value sets are obtained, 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 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 an index value set corresponding to each weight value set based on the M weight value sets and an 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 index value set includes the index 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 an index value set under different grid-connected strategies, and M and P are both positive integers; A second calculation unit is configured 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 using each candidate expression to obtain M target power values; a third calculation unit, configured to determine a candidate weight value set from 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 index value sets according to the candidate weight value set 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; The 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 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 connection strategy according to 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, 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 connection strategy as described in any one of claims 1 to 7.
Citation Information
Patent Citations
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