Security constraint optimal power flow calculation method and system
By obtaining detailed parameter information of the power system and adopting decomposition and calculation strategies, it solves the shortcomings of traditional methods in emergency response, achieves fast and accurate safety-constrained optimal power flow calculations, improves calculation efficiency and accuracy, and provides power Provide support for the safe and stable operation of the system.
Patent Information
- Application Number
- CN202410631608.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-10-08
AI Technical Summary
The traditional safety-constrained optimal power flow calculation method cannot respond quickly and accurately when power system emergencies occur, and it is difficult to meet the real-time and accuracy requirements.
By obtaining the detailed parameter information of the target power system, the safety-constrained optimal power flow objective function and constraint conditions are established, and the preset decomposition strategy and calculation strategy are used to decompose and calculate the decomposed objective function and constraint conditions, using parallel computing Ability to increase computing speed and efficiency.
It improves the accuracy and reliability of calculation results, reduces calculation difficulty and time, and provides support for the safe and stable operation of the power system.
Smart Images

Figure CN118748407A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of safety-constrained optimal power flow calculation, and in particular to a safety-constrained optimal power flow calculation method and system. Background Art
[0002] With the continuous development and expansion of power systems, power system security-constrained optimal power flow calculation has become an important tool for power system analysis, optimization and dispatch. Security-constrained optimal power flow calculation is to improve the economy, reliability and stability of system operation by optimizing power flow distribution under the conditions of system security constraints.
[0003] Traditional safety-constrained optimal power flow calculation methods often calculate the entire system. However, when an emergency occurs in the power system, traditional calculation methods may not be able to respond quickly and accurately. Therefore, how to perform safety-constrained optimal power flow calculations for emergencies has become an urgent problem to be solved. Summary of the invention
[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0005] In view of the above existing problems, the present invention is proposed.
[0006] Therefore, the present invention provides a safety-constrained optimal power flow calculation method and system, which can solve the problems mentioned in the background technology.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0008] In a first aspect, the present invention provides a safety-constrained optimal power flow calculation method, comprising:
[0009] Acquire relevant parameter information of the target power system, and establish a safety-constrained optimal power flow objective function and constraint conditions according to the parameter information, wherein the relevant parameter information includes the number of nodes, the number of branches, the number of generators of the target power system, and a set of emergencies of the target power system;
[0010] Decomposing the safety-constrained optimal power flow objective function and constraint conditions according to a preset first decomposition strategy;
[0011] According to the preset first calculation strategy, the decomposed safety-constrained optimal power flow objective function and constraint conditions are calculated.
[0012] As a preferred solution of the safety-constrained optimal power flow calculation method described in the present invention, the step of obtaining relevant parameter information of the target power system and establishing the safety-constrained optimal power flow objective function and constraint conditions according to the parameter information includes:
[0013] The relevant parameter information includes the number of nodes, the number of branches, the number of generators of the target power system and the set of emergencies of the target power system;
[0014] Let the number of nodes in the power system be N, the number of branches be nb, and the number of generators be n g , the set of emergencies of the system is C;
[0015] The objective function and constraints are expressed as:
[0016] min f(x0,u0,x c ,u c )
[0017] subject to g0(x0,u0)≤h0
[0018]
[0019]
[0020]
[0021]
[0022] Where x is the state variable, u is the control variable, f is the minimization function, g is the power flow equation and the operating limit, and the subscripts 0 and c represent steady state and emergency respectively. They are respectively the operating limit under steady state, the short-term limit after an accident, and the long-term limit. The maximum range allowed for the control variable.
[0023] As a preferred solution of the safety-constrained optimal power flow calculation method of the present invention, wherein: the decomposition of the safety-constrained optimal power flow objective function and constraint conditions according to the preset first decomposition strategy includes:
[0024] The first decomposition strategy decomposes the constraints into the following new constraints:
[0025]
[0026]
[0027] in, represents the power transfer distribution factor matrix of node n on branch i, ΔP nrepresents the change in power injected into node n, F l is the actual value of branch l power, h l is the rated value of branch power, P c,n represents the power of node n in an emergency, represents the steady-state power flow value of node n, Indicates the forward power flow value of node n in an emergency situation, Indicates the negative power flow value of node n in an emergency situation. Indicates the static power value of node n in an emergency situation, Indicates the total number of nodes.
[0028] As a preferred solution of the safety-constrained optimal power flow calculation method of the present invention, wherein: the calculation of the decomposed safety-constrained optimal power flow objective function and constraint conditions according to the preset first calculation strategy includes:
[0029] When an emergency occurs in the target power system and causes the system parameters to be modified, the decomposed security-constrained optimal power flow objective function and constraint conditions are calculated according to the preset first calculation strategy;
[0030] The first calculation strategy includes establishing a DC power flow equation, which is expressed as follows:
[0031] (H+ΔH)·θ=P
[0032] Where H is the node admittance matrix, ΔH is the system modification caused by the sudden event in the target power system, and θ is the node voltage angle;
[0033]
[0034] Among them, Φ m ,δ h represents the connection matrix and the modification terms, and M represents the number of modified parameters.
[0035] As a preferred solution of the safety-constrained optimal power flow calculation method of the present invention, the first calculation strategy further includes:
[0036]
[0037]
[0038] Here, I is the identity matrix and k becomes a scalar.
[0039] As a preferred solution of the safety-constrained optimal power flow calculation method of the present invention, the first calculation strategy further includes:
[0040] Branch flow F after an emergency occurs on branch l from node a to node bc The process contains the following formula:
[0041]
[0042]
[0043] F c =Ψ·Φ·θ c
[0044] Among them, x l is the reactance of branch l, X is the inverse admittance matrix, Ψ is the diagonal branch admittance matrix, Φ is the connection matrix, X[:,a] and X[:,b] are the ath and bth columns of matrix X, H[a,b] represents the transfer impedance between node a and node b, θ c represents the node voltage phase angle after the emergency occurs, θ represents the node voltage angle, θ[a] represents the voltage phase angle of node a, θ[b] represents the voltage phase angle of node b, δ[a] represents the modification item of node a after the emergency occurs, and δ[b] represents the modification item of node b after the emergency occurs.
[0045] As a preferred solution of the safety-constrained optimal power flow calculation method of the present invention, it also includes:
[0046] Acquire relevant parameter information of the target power system, and establish a safety-constrained optimal power flow objective function and constraint conditions according to the parameter information, wherein the relevant parameter information includes the number of nodes, the number of branches, the number of generators of the target power system, and a set of emergencies of the target power system;
[0047] Determine the first power flow value of the line corresponding to the set of emergency events before decomposition according to the first order, if the solved first power flow value of the line is greater than the first threshold, determine that the corresponding line is overloaded, and decompose the safety-constrained optimal power flow objective function and the constraint conditions according to the preset first decomposition strategy;
[0048] If the solved line first power flow value is not greater than the first threshold, continue to determine the line first power flow value corresponding to the undecomposed emergency event set according to the first order until all the emergency events in the emergency event set are determined according to the first order;
[0049] Solve the second power flow value of the decomposed line, and determine whether the second power flow value of the line is greater than the first threshold value. If the second power flow value of the line is greater than the first threshold value, it is determined that the corresponding line is overloaded, and the decomposed safety constraint optimal power flow objective function and constraint conditions are calculated according to the preset first calculation strategy;
[0050] If the solved line second power flow value is not greater than the first threshold, continue to determine the line first power flow value corresponding to the undecomposed emergency event set according to the first order until all the emergency events in the emergency event set are determined according to the first order;
[0051] Solve the third power flow value of the decomposed line, and determine whether the third power flow value of the line is greater than the first threshold value. If the third power flow value of the line is greater than the first threshold value, it is determined that the corresponding line is overloaded, and the decomposed safety constraint optimal power flow objective function and constraint conditions are calculated according to the preset first calculation strategy;
[0052] If the solved line third power flow value is not greater than the first threshold, continue to determine the line first power flow value corresponding to the undecomposed emergency event set according to the first order until all the emergency events in the emergency event set are determined according to the first order.
[0053] In a second aspect, the present invention provides a safety-constrained optimal power flow calculation system, comprising:
[0054] A first calculation module is used to obtain relevant parameter information of the target power system and establish a safety-constrained optimal power flow objective function and constraint conditions according to the parameter information, wherein the relevant parameter information includes the number of nodes, the number of branches, the number of generators of the target power system and a set of emergencies of the target power system;
[0055] A second calculation module, used for decomposing the safety-constrained optimal power flow objective function and constraint conditions according to a preset first decomposition strategy;
[0056] The third calculation module is used to calculate the decomposed safety-constrained optimal power flow objective function and constraint conditions according to the preset first calculation strategy.
[0057] In a third aspect, the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned method when executing the computer program.
[0058] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the method described above when executed by a processor.
[0059] Compared with the prior art, the invention has the following beneficial effects: the invention proposes a method and system for calculating a safety-constrained optimal power flow, obtains relevant parameter information of a target power system, and establishes a safety-constrained optimal power flow objective function and constraint conditions according to the parameter information, wherein the relevant parameter information includes the number of nodes, the number of branches, the number of generators and the set of emergencies of the target power system; decomposes the safety-constrained optimal power flow objective function and constraint conditions according to a preset first decomposition strategy; and calculates the decomposed safety-constrained optimal power flow objective function and constraint conditions according to a preset first calculation strategy. First, the invention can more accurately characterize the operating state and characteristics of the power system by obtaining detailed parameter information of the target power system, including the number of nodes, the number of branches, the number of generators and the set of emergencies. This helps to establish a safety-constrained optimal power flow objective function and constraint conditions that are closer to reality, thereby improving the accuracy and reliability of the calculation results. Secondly, the invention adopts a preset first decomposition strategy to decompose the safety-constrained optimal power flow objective function and constraint conditions. This decomposition strategy can decompose a complex optimization problem into multiple relatively simple sub-problems according to the characteristics and requirements of the power system. By solving these sub-problems separately, the calculation difficulty can be reduced and the calculation efficiency can be improved. At the same time, this decomposition strategy can also make full use of the parallel computing capabilities of the power system to further improve the calculation speed. In addition, the present invention also adopts a preset first calculation strategy to calculate the decomposed security-constrained optimal power flow objective function and constraints. This calculation strategy can select appropriate optimization algorithms and parameter settings according to the actual operation conditions and constraints of the power system to ensure the accuracy and stability of the calculation results. At the same time, the calculation strategy can also be dynamically adjusted according to the real-time operation data of the power system to adapt to different operation scenarios and requirements. In summary, the security-constrained optimal power flow calculation method and system proposed in the present invention achieve accurate solution to the security-constrained optimal power flow problem of the power system by obtaining detailed parameter information, adopting decomposition strategies and calculation strategies, etc. This method not only improves the accuracy and reliability of the calculation results, but also reduces the difficulty of calculation and improves the calculation efficiency, providing strong support for the safe and stable operation of the power system. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0061] Figure 1 A method flow chart of a safety-constrained optimal power flow calculation method and system provided by an embodiment of the present invention;
[0062] Figure 2 A judgment flow chart of a safety-constrained optimal power flow calculation method and system provided by an embodiment of the present invention;
[0063] Figure 3 An internal structural diagram of a computer device of a safety-constrained optimal power flow calculation method and system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0064] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0065] Example 1
[0066] Reference Figure 1-Figure 3 , is the first embodiment of the present invention, which provides a safety-constrained optimal power flow calculation method and system, including a safety-constrained optimal power flow calculation method and a safety-constrained optimal power flow calculation system, wherein a safety-constrained optimal power flow calculation method includes:
[0067] Before describing the embodiments of the present application in detail, some related concepts are first explained for the sake of clarity.
[0068] Safety Constrained Optimal Power Flow: It is an important concept in power system analysis. It is to find the power flow distribution scheme that minimizes the system operation cost (such as minimizing the power generation cost) while satisfying the power system's safe operation constraints. Specifically, SCOPF takes into account various possible system operation restrictions and fault scenarios to ensure that the stability of the system is not threatened when optimizing power flow distribution. This includes but is not limited to generator output restrictions, line transmission capacity restrictions, voltage restrictions, and the safety margin of the system in the event of a pre-defined "emergency". Through SCOPF, power system operators can plan and adjust the system operation status in advance to respond to potential operation risks and ensure the reliability and economy of power supply.
[0069] Emergency: In the context of power systems, it refers to any unexpected event that may cause system performance degradation or instability. These events usually occur suddenly and have a negative impact on the normal operation of the system, such as transmission line failures, generator failures, transformer damage, or major load changes. The power system must be able to quickly adjust its operating strategy when these emergencies occur to avoid serious consequences such as power outages, frequency instability, or voltage collapse. In the SCOPF analysis, a variety of possible emergency situations are considered in advance, and the system response in each case is evaluated to ensure that the stable operation of the system can be maintained even under the most unfavorable conditions. Therefore, the analysis and response measures of emergencies are an indispensable part of the security constraint optimization of the power system.
[0070] In related technologies, safety-constrained optimal power flow is an important issue in power system planning and operation. It aims to minimize the operating cost of the entire power system or meet other specific goals by adjusting the output of generators, transformer ratio and other control variables under the conditions of meeting various safety constraints. However, due to the complexity and uncertainty of the power system, traditional safety-constrained optimal power flow calculation methods often face problems such as large calculation volume and long solution time, making it difficult to meet the requirements of real-time and accuracy.
[0071] The present application provides a method that can effectively solve the above-mentioned problems. Next, multiple embodiments will be combined to explain in detail how to implement the safety-constrained optimal power flow calculation method.
[0072] Figure 1 A method flow chart of a safety-constrained optimal power flow calculation method and system is shown, including:
[0073] S101, obtaining relevant parameter information of a target power system, and establishing a safety-constrained optimal power flow objective function and constraint conditions according to the parameter information, wherein the relevant parameter information includes the number of nodes, the number of branches, the number of generators of the target power system, and a set of emergencies of the target power system;
[0074] Among them, obtaining relevant parameter information of the target power system, and establishing the safety-constrained optimal power flow objective function and constraint conditions according to the parameter information include: the relevant parameter information includes the number of nodes, the number of branches, the number of generators of the target power system and the set of emergencies of the target power system;
[0075] Furthermore, let the number of nodes in the power system be N and the number of branches be n. b , the number of generators is n g , the set of emergencies of the system is C;
[0076] Specifically, the objective function and constraints are expressed as:
[0077] min f(x0,u0,xc ,u c )
[0078] subject to g0(x0,u0)≤h0
[0079]
[0080]
[0081]
[0082]
[0083] Where x is the state variable, u is the control variable, f is the minimization function, g is the power flow equation and the operating limit, and the subscripts 0 and c represent steady state and emergency respectively. They are respectively the operating limit under steady state, the short-term limit after an accident, and the long-term limit. The maximum range allowed for the control variable.
[0084] It should be noted that by obtaining detailed information on the parameters of the target power system, the structure and characteristics of the system can be fully understood. This information not only provides a basis for establishing an accurate safety-constrained optimal power flow objective function, but also ensures that the established constraints can truly reflect the operating limitations of the system and the impact of emergencies. By comprehensively considering various constraints in steady-state and emergency situations, the optimal power flow distribution scheme can be sought while ensuring the safe and stable operation of the system, thereby effectively reducing operating costs and improving the economic benefits of the power system.
[0085] S102, decomposing the safety-constrained optimal power flow objective function and constraint conditions according to a preset first decomposition strategy;
[0086] According to the preset first decomposition strategy, the safety-constrained optimal power flow objective function and the constraint conditions are decomposed, including: the first decomposition strategy decomposes the constraint conditions into the following new constraints:
[0087]
[0088]
[0089] in, represents the power transfer distribution factor matrix of node n on branch i, ΔP n represents the change in power injected into node n, F l is the actual value of branch l power, h l is the rated value of branch power, P c,n represents the power of node n in an emergency, represents the steady-state power flow value of node n, Indicates the forward power flow value of node n in an emergency situation, Indicates the negative power flow value of node n in an emergency situation. Indicates the static power value of node n in an emergency situation, Indicates the total number of nodes.
[0090] In the embodiments of the present application, Benders decomposition is used in the decomposition, and Benders decomposition is a method of dividing the optimization problem into a main problem and several sub-problems. From the sub-problems, Benders cuts are added to the main problem so that the optimal solution to the main problem is a feasible solution to the objective function and the constraints. Emergency events with constraints in the optimal solution are usually a small subset of all emergency events. Therefore, not all sub-problems need to be added to the main problem to obtain a feasible solution. The branch flow constraints in the sub-problems can be restated by Benders cuts to reduce complexity.
[0091] It should be noted that the safety-constrained optimal power flow objective function and constraint conditions are effectively decomposed through the preset first decomposition strategy. The application of this decomposition strategy can significantly simplify the problem-solving process and improve the computational efficiency. By decomposing the constraint conditions into more specific and easier-to-handle new constraints, it is possible to more directly optimize the actual situation of the power system, ensuring that the operating cost is minimized or other specific goals are achieved while satisfying various safety constraints.
[0092] Specifically, by introducing concepts such as branch power transmission distribution factor matrix and node injection power change value, the complex power flow constraints are transformed into a series of specific numerical relationships. This transformation not only facilitates mathematical analysis and calculation, but also can more accurately reflect the actual operation of the power system. At the same time, using the Benders decomposition method, the problem is divided into main problems and sub-problems, and the optimal solution is gradually approached through iterative solution. This decomposition and iteration method can make full use of the computing power of the computer and improve the speed and accuracy of the solution.
[0093] Therefore, while maintaining the accuracy of the solution, the complexity of the problem is effectively reduced and the solution efficiency is improved. This has important practical significance and application value for dealing with large-scale, highly complex power system security-constrained optimal power flow problems. Through the implementation of this step, decision support can be provided more effectively for the planning and operation of the power system, ensuring the safe, stable and efficient operation of the power system.
[0094] S103, calculating the decomposed safety-constrained optimal power flow objective function and constraint conditions according to a preset first calculation strategy.
[0095] The step of calculating the decomposed security-constrained optimal power flow objective function and constraint conditions according to the preset first calculation strategy includes: when an emergency occurs in the target power system and causes system parameters to be modified, calculating the decomposed security-constrained optimal power flow objective function and constraint conditions according to the preset first calculation strategy;
[0096] Specifically, the first calculation strategy includes establishing a DC power flow equation, which is expressed as follows:
[0097] (H+ΔH)·θ=P
[0098] Where H is the node admittance matrix, ΔH is the system modification caused by the sudden event in the target power system, and θ is the node voltage angle;
[0099]
[0100] Among them, Φ m ,δ h represents the connection matrix and the modification terms, and M represents the number of modified parameters.
[0101] Furthermore, the first calculation strategy also includes:
[0102]
[0103]
[0104] Here, I is the identity matrix and k becomes a scalar.
[0105] Furthermore, the first calculation strategy also includes:
[0106] Branch flow F after an emergency occurs on branch l from node a to node b c The process contains the following formula:
[0107]
[0108]
[0109] F c =Ψ·Φ·θ c
[0110] Among them, x l is the reactance of branch l, X is the inverse admittance matrix, Ψ is the diagonal branch admittance matrix, Φ is the connection matrix, X[:,a] and X[:,b] are the ath and bth columns of matrix X, H[a,b] represents the transfer impedance between node a and node b, θ crepresents the node voltage phase angle after the emergency occurs, θ represents the node voltage angle, θ[a] represents the voltage phase angle of node a, θ[b] represents the voltage phase angle of node b, δ[a] represents the modification item of node a after the emergency occurs, and δ[b] represents the modification item of node b after the emergency occurs.
[0111] It should be noted that, through the preset first calculation strategy, the decomposed security-constrained optimal power flow objective function and constraint conditions can be effectively calculated. The establishment of this strategy fully considers the actual operation of the power system and the impact of emergencies, and can more accurately reflect the actual operation of the power system. Therefore, the calculation results are more reliable and can provide strong support for the decision-making of the power system.
[0112] The first calculation strategy includes several key steps, such as establishing DC power flow equations, processing system parameter modifications, and calculating branch power flows. The design of these steps not only conforms to the operating laws of the power system, but also makes full use of the advantages of modern computing technology, and can improve computing efficiency while ensuring calculation accuracy. This helps to quickly and accurately solve the safety-constrained optimal power flow problem in practical applications and meet the real-time operation requirements of the power system.
[0113] In addition, the first calculation strategy also takes into account the impact of emergencies on the power system. When an emergency occurs in the system and causes parameter modification, the strategy can respond quickly and recalculate and evaluate the modified system. This flexibility and adaptability enables the strategy to better cope with various complex situations and uncertainties in the power system and ensure the safe and stable operation of the power system.
[0114] Furthermore, relevant parameter information of the target power system is obtained, and a safety-constrained optimal power flow objective function and constraint conditions are established based on the parameter information. The relevant parameter information includes the number of nodes, the number of branches, the number of generators of the target power system, and a set of emergencies of the target power system;
[0115] Determine the first power flow value of the line corresponding to the set of emergency events before decomposition according to the first order, if the solved first power flow value of the line is greater than the first threshold, then determine that the corresponding line is overloaded, and decompose the safety-constrained optimal power flow objective function and the constraint conditions according to the preset first decomposition strategy;
[0116] If the solved line first power flow value is not greater than the first threshold, continue to determine the line first power flow value corresponding to the undecomposed emergency event set according to the first order until all the emergency events in the emergency event set are determined according to the first order;
[0117] Solve the second power flow value of the decomposed line, and determine whether the second power flow value of the line is greater than the first threshold value. If the second power flow value of the line is greater than the first threshold value, it is determined that the corresponding line is overloaded, and the decomposed safety constraint optimal power flow objective function and constraint conditions are calculated according to the preset first calculation strategy;
[0118] If the solved line second power flow value is not greater than the first threshold, continue to determine the line first power flow value corresponding to the undecomposed emergency event set according to the first order until all the emergency events in the emergency event set are determined according to the first order;
[0119] Solve the third power flow value of the decomposed line, and determine whether the third power flow value of the line is greater than the first threshold value. If the third power flow value of the line is greater than the first threshold value, it is determined that the corresponding line is overloaded, and the decomposed safety constraint optimal power flow objective function and constraint conditions are calculated according to the preset first calculation strategy;
[0120] If the solved line third power flow value is not greater than the first threshold, continue to determine the line first power flow value corresponding to the undecomposed emergency event set according to the first order until all the emergency events in the emergency event set are determined according to the first order.
[0121] In this embodiment, the first order may be a sorting rule according to the chronological order of the emergencies, or a sorting rule according to the urgency of the emergencies, or a randomly formulated sorting rule, which is not limited here.
[0122] In this embodiment, the first threshold value may be obtained from the design specification or operation manual of the power system, may be directly set by the user, or may be determined based on expert experience and historical data, which is not limited here.
[0123] In an optional embodiment, after calculating the decomposed security-constrained optimal power flow objective function and the constraint conditions according to the preset first calculation strategy, a step of verifying the calculation results may be further included. The purpose of the verification is to ensure the accuracy and reliability of the calculation results to support subsequent power system decision-making and dispatching operations.
[0124] The verification process can include multiple aspects. First, it can be checked whether the calculation results meet the operating constraints of the power system, such as voltage limit, power balance, etc. This is a basic requirement to ensure the safe and stable operation of the power system. Secondly, the consistency of the calculation results with the expected results or historical data can be compared to find possible anomalies or errors. In addition, other verification methods, such as sensitivity analysis and error estimation, can be used to further verify and evaluate the calculation results.
[0125] If the verification results show that the calculation results are abnormal or wrong, corresponding adjustments or recalculations are required. This may involve checking the input data, revising the calculation strategy, or adjusting the calculation model. Through continuous verification and adjustment, the accuracy and reliability of the calculation results can be ensured, providing strong support for the stable operation of the power system.
[0126] In addition, the decomposed security-constrained optimal power flow objective function and constraint conditions are calculated according to the preset first calculation strategy, and the data generated during the calculation process may also be processed and analyzed. For example, key indicators can be extracted, performance indicators can be calculated, and power flow distribution diagrams can be drawn to more intuitively display the calculation results and the operating status of the power system. These data and information can provide valuable references and basis for the dispatchers of the power system, helping them to better understand and grasp the operating status of the power system and formulate more reasonable dispatching strategies and measures.
[0127] In summary, the present invention proposes a method for calculating a safety-constrained optimal power flow, obtains relevant parameter information of a target power system, and establishes a safety-constrained optimal power flow objective function and constraint conditions according to the parameter information, wherein the relevant parameter information includes the number of nodes, the number of branches, the number of generators, and the set of emergencies of the target power system; decomposes the safety-constrained optimal power flow objective function and constraint conditions according to a preset first decomposition strategy; and calculates the decomposed safety-constrained optimal power flow objective function and constraint conditions according to a preset first calculation strategy. First, the present invention can more accurately characterize the operating state and characteristics of the power system by obtaining detailed parameter information of the target power system, including the number of nodes, the number of branches, the number of generators, and the set of emergencies. This helps to establish a safety-constrained optimal power flow objective function and constraint conditions that are closer to reality, thereby improving the accuracy and reliability of the calculation results. Secondly, the present invention uses a preset first decomposition strategy to decompose the safety-constrained optimal power flow objective function and constraint conditions. This decomposition strategy can decompose complex optimization problems into multiple relatively simple sub-problems according to the characteristics and requirements of the power system. By solving these sub-problems separately, the calculation difficulty can be reduced and the calculation efficiency can be improved. At the same time, this decomposition strategy can also make full use of the parallel computing capabilities of the power system to further improve the calculation speed. In addition, the present invention also adopts a preset first calculation strategy to calculate the decomposed security-constrained optimal power flow objective function and constraints. This calculation strategy can select appropriate optimization algorithms and parameter settings according to the actual operation conditions and constraints of the power system to ensure the accuracy and stability of the calculation results. At the same time, the calculation strategy can also be dynamically adjusted according to the real-time operation data of the power system to adapt to different operation scenarios and requirements. In summary, the security-constrained optimal power flow calculation method and system proposed in the present invention achieve accurate solution to the security-constrained optimal power flow problem of the power system by obtaining detailed parameter information, adopting decomposition strategies and calculation strategies, etc. This method not only improves the accuracy and reliability of the calculation results, but also reduces the difficulty of calculation and improves the calculation efficiency, providing strong support for the safe and stable operation of the power system.
[0128] This embodiment also provides a safety-constrained optimal power flow calculation system, including:
[0129] The first calculation module is used to obtain relevant parameter information of the target power system and establish a safety-constrained optimal power flow objective function and constraint conditions according to the parameter information. The relevant parameter information includes the number of nodes, branches, generators and emergency event set of the target power system;
[0130] A second calculation module is used to decompose the safety-constrained optimal power flow objective function and the constraint conditions according to a preset first decomposition strategy;
[0131] The third calculation module is used to calculate the decomposed safety-constrained optimal power flow objective function and constraint conditions according to the preset first calculation strategy.
[0132] The above-mentioned unit modules may be embedded in or independent of the processor in the computer device in the form of hardware, or may be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
[0133] This embodiment also provides a computer device, which may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 3 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a safety-constrained optimal power flow calculation method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0134] This embodiment further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0135] Obtain relevant parameter information of the target power system, and establish a safety-constrained optimal power flow objective function and constraint conditions based on the parameter information, wherein the relevant parameter information includes the number of nodes, the number of branches, the number of generators of the target power system, and a set of emergencies of the target power system;
[0136] Decomposing the safety-constrained optimal power flow objective function and constraint conditions according to the preset first decomposition strategy;
[0137] According to the preset first calculation strategy, the decomposed safety-constrained optimal power flow objective function and constraint conditions are calculated.
[0138] Example 2
[0139] Reference Figure 1-Figure 3, which is an embodiment of the present invention, provides a safety-constrained optimal power flow calculation method and system. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through experiments.
[0140] Experiment 1:
[0141] In order to verify the feasibility and effectiveness of the safety-constrained optimal power flow calculation method in the embodiment of the present invention, a real power system was selected as the test object, and different emergency scenarios were simulated. During the experiment, according to the steps in the embodiment, the relevant parameter information of the power system was first obtained, and the safety-constrained optimal power flow objective function and constraint conditions were established. Then, according to the preset decomposition strategy and calculation strategy, the objective function and constraint conditions were decomposed and calculated.
[0142] The experimental results show that the method of the present invention can effectively handle power systems of different sizes and can accurately and quickly calculate the safety-constrained optimal power flow solution when an emergency occurs. Compared with the traditional safety-constrained optimal power flow calculation method, the method of the present invention has significantly improved the calculation efficiency and accuracy.
[0143] In addition, comparative experiments were conducted on different decomposition strategies and calculation strategies to verify their impact on the calculation results. The experimental results show that by reasonably selecting decomposition strategies and calculation strategies, the calculation process can be further optimized and the calculation efficiency can be improved.
[0144] Table 1: Comparison of computational efficiency and accuracy under different strategies.
[0145] Strategy Type Average calculation time (seconds) Accuracy of solution (%) Convergence rate (%) Traditional methods 120 92 85 Experimental Methods - Decomposition Strategy A 85 96 92 Experimental Methods - Decomposition Strategy B 78 95 94 Experimental Methods-Optimal Strategy Combination 65 98 97
[0146] Experiment 2:
[0147] In order to further verify the performance advantages of the safety-constrained optimal power flow calculation method in the embodiment of the present invention, a comparative experiment was designed to compare the method of the present invention with the existing safety-constrained optimal power flow calculation method. Multiple power systems of different sizes were selected as test objects, and experiments were carried out under the same emergency scenario.
[0148] Table 2: Performance comparison with existing methods.
[0149]
[0150]
[0151] The experimental results show that under the same conditions, the method of the present invention is superior to the existing methods in terms of calculation speed, convergence and solution quality, etc. Especially when dealing with large-scale power systems or complex emergencies, the advantages of the present invention are more obvious.
[0152] In summary, through comparative experiments, it can be concluded that the safety-constrained optimal power flow calculation method in the embodiment of the present invention has significant feasibility and effectiveness, and shows obvious advantages in computing performance. The method can be widely used in the fields of power system safety analysis and optimized operation, and provide strong support for the safe and stable operation of the power system.
[0153] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
[0154] 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 complete hardware embodiments, complete software embodiments, or embodiments 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 disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0155] 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.
[0156] 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 including 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.
[0157] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0158] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0159] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A safety-constrained optimal power flow calculation method, It is characterized in that include: Acquire relevant parameter information of the target power system, and establish a safety-constrained optimal power flow objective function and constraint conditions according to the parameter information, wherein the relevant parameter information includes the number of nodes, the number of branches, the number of generators of the target power system, and a set of emergencies of the target power system; Decomposing the safety-constrained optimal power flow objective function and constraint conditions according to a preset first decomposition strategy; According to the preset first calculation strategy, the decomposed safety-constrained optimal power flow objective function and constraint conditions are calculated.
2. The safety-constrained optimal power flow calculation method according to claim 1, It is characterized in that The obtaining of relevant parameter information of the target power system and establishing a safety-constrained optimal power flow objective function and constraint conditions according to the parameter information includes: The relevant parameter information includes the number of nodes, the number of branches, the number of generators of the target power system and the set of emergencies of the target power system; Let the number of nodes in the power system be N and the number of branches be n. b , the number of generators is n g , the set of emergencies of the system is C; The objective function and constraints are expressed as: min f(x 0 ,u 0 ,x c ,u c ) subject to g 0 (x 0 ,u 0 )≤h 0 Where x is the state variable, u is the control variable, f is the minimization function, g is the power flow equation and the operating limit, subscripts 0 and c represent steady state and emergency respectively, and h 0 , They are respectively the operating limit under steady state, the short-term limit after an accident, and the long-term limit. The maximum range allowed for the control variable.
3. The safety-constrained optimal power flow calculation method according to claim 2, It is characterized in that Decomposing the safety-constrained optimal power flow objective function and constraint conditions according to the preset first decomposition strategy includes: The first decomposition strategy decomposes the constraints into the following new constraints: in, represents the power transfer distribution factor matrix of node n on branch i, ΔP n represents the change in power injected into node n, F l is the actual value of branch l power, h l is the rated value of branch power, P c,n represents the power of node n in an emergency, represents the steady-state power flow value of node n, Indicates the forward power flow value of node n in an emergency situation, Indicates the negative power flow value of node n in an emergency situation. Indicates the static power value of node n in an emergency situation, Indicates the total number of nodes.
4. The safety-constrained optimal power flow calculation method according to claim 3, It is characterized in that The step of calculating the decomposed safety-constrained optimal power flow objective function and constraint conditions according to the preset first calculation strategy includes: When an emergency occurs in the target power system and causes the system parameters to be modified, the decomposed security-constrained optimal power flow objective function and constraint conditions are calculated according to the preset first calculation strategy; The first calculation strategy includes establishing a DC power flow equation, which is expressed as follows: (H+ΔH)·θ=P Where H is the node admittance matrix, ΔH is the system modification caused by the sudden event in the target power system, and θ is the node voltage angle; Among them, Φ m ,δ h represents the connection matrix and the modification terms, and M represents the number of modified parameters.
5. The safety-constrained optimal power flow calculation method according to claim 4, It is characterized in that The first calculation strategy also includes: Here, I is the identity matrix and k becomes a scalar.
6. The safety-constrained optimal power flow calculation method according to claim 5, It is characterized in that The first calculation strategy also includes: Branch flow F after an emergency occurs on branch l from node a to node b c The process contains the following formula: F c =Ψ·Φ·θ c Among them, x l is the reactance of branch l, X is the inverse admittance matrix, Ψ is the diagonal branch admittance matrix, Φ is the connection matrix, X[:,a] and X[:,b] are the ath and bth columns of matrix X, H[a,b] represents the transfer impedance between node a and node b, θ c represents the node voltage phase angle after the emergency occurs, θ represents the node voltage angle, θ[a] represents the voltage phase angle of node a, θ[b] represents the voltage phase angle of node b, δ[a] represents the modification item of node a after the emergency occurs, and δ[b] represents the modification item of node b after the emergency occurs.
7. The safety-constrained optimal power flow calculation method according to claim 6, It is characterized in that Also includes: Acquire relevant parameter information of the target power system, and establish a safety-constrained optimal power flow objective function and constraint conditions according to the parameter information, wherein the relevant parameter information includes the number of nodes, the number of branches, the number of generators of the target power system, and a set of emergencies of the target power system; Determine the first power flow value of the line corresponding to the set of emergency events before decomposition according to the first order, if the solved first power flow value of the line is greater than the first threshold, determine that the corresponding line is overloaded, and decompose the safety-constrained optimal power flow objective function and the constraint conditions according to the preset first decomposition strategy; If the solved line first power flow value is not greater than the first threshold, continue to determine the line first power flow value corresponding to the undecomposed emergency event set according to the first order until all the emergency events in the emergency event set are determined according to the first order; Solve the second power flow value of the decomposed line, and determine whether the second power flow value of the line is greater than the first threshold value. If the second power flow value of the line is greater than the first threshold value, it is determined that the corresponding line is overloaded, and the decomposed safety constraint optimal power flow objective function and constraint conditions are calculated according to the preset first calculation strategy; If the solved line second power flow value is not greater than the first threshold, continue to determine the line first power flow value corresponding to the undecomposed emergency event set according to the first order until all the emergency events in the emergency event set are determined according to the first order; Solve the third power flow value of the decomposed line, and determine whether the third power flow value of the line is greater than the first threshold value. If the third power flow value of the line is greater than the first threshold value, it is determined that the corresponding line is overloaded, and the decomposed safety constraint optimal power flow objective function and constraint conditions are calculated according to the preset first calculation strategy; If the solved line third power flow value is not greater than the first threshold, continue to determine the line first power flow value corresponding to the undecomposed emergency event set according to the first order until all the emergency events in the emergency event set are determined according to the first order.
8. A safety-constrained optimal power flow calculation system, It is characterized in that include: A first calculation module is used to obtain relevant parameter information of the target power system and establish a safety-constrained optimal power flow objective function and constraint conditions according to the parameter information, wherein the relevant parameter information includes the number of nodes, the number of branches, the number of generators of the target power system and a set of emergencies of the target power system; A second calculation module, used for decomposing the safety-constrained optimal power flow objective function and constraint conditions according to a preset first decomposition strategy; The third calculation module is used to calculate the decomposed safety-constrained optimal power flow objective function and constraint conditions according to the preset first calculation strategy.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
