Modeling method, application method and device of direct current power flow model
By introducing AC method current calculation and optimization model into the DC current model, the power grid model is corrected to reduce the load rate deviation of active current, and the problem of large error in the DC current model in the existing technology is solved, and the accuracy and practical application effect of the model are improved. .
Patent Information
- Application Number
- CN202411005443.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-12
AI Technical Summary
The prior art ignores the active loss in the power grid system when building a DC current model, resulting in large errors in the solution results in large-scale power systems, affecting actual engineering applications.
By obtaining the parameter group of the power grid model for AC flow calculation, the active current of each branch is obtained, and the DC current flow optimization model is constructed and solved. The optimization results are used to correct the power grid model and reduce the load rate deviation of the active current at the branch delivery end, thereby Improve the accuracy of DC trend model.
It effectively reduces the error of the DC current model in large-scale power systems, improves the accuracy of the model and the reliability of practical applications, and meets the needs of grid optimization and regulation.
Smart Images

Figure CN118944077A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power grid control and optimization, and in particular to a modeling method, application method and device of a DC power flow model. Background Art
[0002] Complex power grid optimization and control, such as safety-constrained optimal power flow or transmission network reconstruction, requires consideration of power grid safety constraints, including safety constraints in the fault-free state and safety constraints under N-1 expected faults, and relies on building and solving power flow models for power grid models. Due to the huge scale of the expected fault set of large-scale power systems, the computational scale and complexity of building and solving AC power flow models are very large. Therefore, DC power flow models with relatively smaller computational scale and relatively lower solution complexity are usually built and solved for power grid optimization and control.
[0003] However, in the prior art, the active power loss in the power grid system is usually ignored when constructing a DC power flow model, resulting in inevitable errors in the solution results. For small-scale power systems, the active power loss is small, so the solution error is small, which has little impact on actual engineering applications; for large-scale power systems, the corresponding increase in system active power loss will lead to a corresponding increase in the solution error, which will have a greater impact on actual engineering applications, and may even not be satisfactory for actual applications. Therefore, how to reduce the error of the DC power flow model in a large-scale power system is still a difficult problem that needs to be solved urgently. Summary of the invention
[0004] The present application provides a modeling method, an application method and a device for a DC power flow model to solve the technical problem of large errors in DC power flow models in large-scale power systems.
[0005] According to a first aspect of an embodiment of the present application, a modeling method of a DC power flow model is provided, comprising:
[0006] Acquire a first parameter group of a first power grid model to be corrected;
[0007] Performing AC power flow calculation on the first parameter group to obtain active power flow of each branch in the first power grid model;
[0008] Based on the first parameter group, according to the active power flow of each branch, a DC power flow optimization model of the first power grid model is constructed and solved to obtain an optimization result; wherein the DC power flow optimization model takes the minimum weighted sum of the maximum value and the average value of the deviation of the active power flow load rate at the sending end of each branch as an optimization target;
[0009] Based on the first parameter group and according to the optimization result, modifying the first power grid model to obtain a second power grid model;
[0010] The second power grid model is modeled using a direct current method to obtain a direct current power flow model corresponding to the second power grid model.
[0011] The present application first obtains the first parameter group of the power grid model to be corrected, then performs AC power flow calculation to obtain the active power flow of each branch, and then constructs and solves the DC power flow optimization model to obtain the optimization result, thereby reducing the maximum deviation and average deviation of the active power flow load rate at the sending end of the branch in the power grid system, so that when correcting the power grid model, it is more in line with the actual project implementation situation, and then when the DC method is used to model the power grid model to obtain a DC power flow model, the error of the DC power flow model is reduced.
[0012] In certain embodiments of the present application, performing AC power flow calculation on the first parameter group to obtain active power flow of each branch in the first power grid model specifically includes:
[0013] constructing a node admittance matrix of the first power grid model according to the first parameter group;
[0014] According to the node admittance matrix and the first parameter group, the voltage amplitude and phase of each node in the first power grid model are obtained by AC power flow calculation;
[0015] The active power flow of each branch in the first power grid model is calculated according to the first power grid model, the first parameter group and the voltage amplitude and phase of each node.
[0016] The present application first calculates the node admittance matrix through the first parameter group, and then obtains the voltage amplitude and phase of each node through the AC method flow calculation, which can provide a calculation basis for the subsequent calculation of the active power flow of each branch, and then when the active power flow of each branch is obtained in combination with the first parameter group, it is more in line with the actual project implementation.
[0017] In certain embodiments of the present application, the voltage amplitude and phase of each node in the first power grid model are obtained by AC power flow calculation according to the node admittance matrix and the first parameter group, specifically including:
[0018] Constructing an AC power flow equation group of the first power grid model according to the node admittance matrix and the first parameter group;
[0019] The AC power flow equations are specifically:
[0020]
[0021] Among them, P Gi , Q Gi are the active output and reactive output of the unit at node i respectively; P Li , Q Liare the active power and reactive power consumed by the load at node i respectively; U i , U j are the voltage amplitudes of nodes i and j respectively; θ ij =θ i -θ j is the voltage phase difference between node i and node j, θ i ,θ j are the voltage phases of nodes i and j respectively; n is the total number of nodes; S N = {1, 2, ..., n} is a node set; G ij , B ij are the real and imaginary parts of the elements in the i-th row and j-th column of the node admittance matrix respectively;
[0022] According to the AC power flow equations, the voltage amplitude and phase of each node in the first power grid model are solved and calculated.
[0023] The present application first constructs an AC power flow equation group based on the node admittance matrix and the first parameter group, and then solves the equation group and calculates the voltage amplitude and phase of each node. This makes the calculation by the AC method more accurate and more in line with the implementation of the actual project.
[0024] In certain embodiments of the present application, based on the first parameter group and according to the active power flow of each branch, constructing and solving the DC power flow optimization model of the first power grid model to obtain the optimization result specifically includes:
[0025] According to the active power flow of each branch, calculate the active power flow load rate of the sending end of each branch;
[0026] Based on the first parameter group, according to the active power flow load rate at the sending end of each branch, a DC power flow optimization model of the first power grid model is constructed with the weighted minimum of the maximum value and the average value of the deviation of the active power flow load rate at the sending end of each branch as the optimization target;
[0027] Solve the DC power flow optimization model to obtain optimization results.
[0028] The present application first calculates the active power flow load rate of each branch at the sending end through the active power flow of each branch, and then constructs and solves the DC power flow optimization model, thereby reducing the maximum deviation and average deviation of the active power flow load rate at the sending end of the branch in the power grid system, so that the obtained optimization result is more in line with the actual project implementation.
[0029] In certain embodiments of the present application, the DC power flow optimization model is specifically:
[0030]
[0031]
[0032] Among them, E max is the maximum value of branch load rate deviation in the first power grid model, is the branch load rate deviation vector, E ij is the load rate deviation of branch (i, j); W A is the relative deviation weight; is the active power flow from node i to node j in branch (i, j), is the active power flow from node j to node i in branch (i, j); x ij is the reactance of branch (i, j); N B is the total number of branches; S N is a node set; S B is the branch set, S B+ Active power flow of branch The branch set, S B- Active power flow of branch A collection of branches.
[0033] According to a second aspect of the embodiments of the present application, there is provided a method for applying a DC power flow model, comprising:
[0034] Obtaining a DC power flow model of a power grid system to be optimized and regulated; wherein the DC power flow model is constructed by a DC power flow modeling method described in the present application;
[0035] The DC power flow model is optimized and solved according to the current system parameters of the power grid system, and the power grid system is optimized and regulated according to the solution results.
[0036] The present application constructs an optimized DC power flow model corresponding to the power grid system to be optimized and regulated, and can obtain a DC power flow model with smaller errors. Then, when the DC power flow model is optimized and solved according to the current system parameters and optimized and regulated according to the solution results, the error can be reduced, thereby being more in line with the actual project implementation.
[0037] According to a third aspect of the implementation of the present application, a modeling device for a DC power flow model is provided, comprising a parameter acquisition module, a power flow calculation module, a construction and solution module, a model correction module and a DC modeling module;
[0038] The parameter acquisition module is used to acquire a first parameter group of a first power grid model to be corrected;
[0039] The power flow calculation module is used to perform AC power flow calculation on the first parameter group to obtain the active power flow of each branch in the first power grid model;
[0040] The construction and solution module is used to construct and solve the DC power flow optimization model of the first power grid model based on the first parameter group and the active power flow of each branch to obtain an optimization result; wherein the DC power flow optimization model takes the minimum weighted sum of the maximum value and the average value of the deviation of the active power flow load rate at the sending end of each branch as the optimization target;
[0041] The model correction module is used to correct the first power grid model based on the first parameter group and according to the optimization result to obtain a second power grid model;
[0042] The DC modeling module is used to model the second power grid model using a DC method to obtain a DC power flow model corresponding to the second power grid model.
[0043] In certain embodiments of the present application, the power flow calculation module includes a matrix construction submodule, a node calculation submodule and a power flow calculation submodule;
[0044] The matrix construction submodule is used to construct a node admittance matrix of the first power grid model according to the first parameter group;
[0045] The node calculation submodule is used to obtain the voltage amplitude and phase of each node in the first power grid model through AC power flow calculation according to the node admittance matrix and the first parameter group;
[0046] The power flow calculation submodule is used to calculate the active power flow of each branch in the first power grid model according to the first power grid model, the first parameter group and the voltage amplitude and phase of each node.
[0047] In certain embodiments of the present application, the node calculation submodule includes an equation building unit and an equation solving unit;
[0048] The equation construction unit is used to construct an AC power flow equation group of the first power grid model according to the voltage phase difference between each node, the node admittance matrix and the first parameter group;
[0049] The AC power flow equations are specifically:
[0050]
[0051] Among them, P Gi ,Q Gi are the active output and reactive output of the unit at node i respectively; P Gi ,Q Gi are the active power and reactive power consumed by the load at node i respectively; U i ,U j are the voltage amplitudes at nodes i and i respectively; θij =θ i -θ j is the voltage phase difference between node i and node j, θ i ,θ j are the voltage phases of nodes i and j respectively; n is the total number of nodes; S N = {1, 2, ..., n} is a node set; G ij , B ij are the real and imaginary parts of the elements in the i-th row and j-th column of the node admittance matrix respectively;
[0052] The equation solving unit is used to solve and calculate the voltage amplitude and phase of each node in the first power grid model according to the AC power flow equation group.
[0053] In certain embodiments of the present application, the construction and solution module includes a load rate calculation submodule, a model construction submodule and a model solution submodule;
[0054] The load rate calculation submodule is used to calculate the active power flow load rate of the sending end of each branch according to the active power flow of each branch;
[0055] The model building submodule is used to build a DC power flow optimization model of the first power grid model based on the first parameter group and according to the active power flow load rate of the sending end of each branch, with the weighted minimum of the maximum value and the average value of the deviation of the active power flow load rate of the sending end of each branch as the optimization target;
[0056] The model solving submodule is used to solve the DC power flow optimization model to obtain an optimization result.
[0057] In certain embodiments of the present application, the DC power flow optimization model is specifically:
[0058]
[0059]
[0060] Among them, E max is the maximum value of branch load rate deviation in the first power grid model, is the branch load rate deviation vector, E ij is the load rate deviation of branch (i, j); W A is the relative deviation weight; is the active power flow from node i to node j in branch (i, j), is the active power flow from node j to node i in branch (i, j); x ij is the reactance of branch (i, j); N B is the total number of branches; S Nis a node set; S B is the branch set, S B+ Active power flow of branch The branch set, S B- Active power flow of branch A collection of branches.
[0061] The present application first obtains the first parameter group of the power grid model to be corrected, then performs AC power flow calculation to obtain the active power flow of each branch, and then constructs and solves the DC power flow optimization model to obtain the optimization result, thereby reducing the maximum deviation and average deviation of the active power flow load rate at the sending end of the branch in the power grid system, so that when correcting the power grid model, it is more in line with the actual project implementation situation, and then when the DC method is used to model the power grid model to obtain a DC power flow model, the error of the DC power flow model is reduced.
[0062] According to a fourth aspect of the implementation manner of the present application, there is provided an application device of a DC power flow model, comprising a model acquisition module and an optimization and control module;
[0063] The model acquisition module is used to acquire a DC power flow model of the power grid system to be optimized and regulated; wherein the DC power flow model is constructed by a DC power flow model modeling device described in the present application;
[0064] The optimization and control module is used to optimize and solve the DC power flow model according to the current system parameters of the power grid system, and optimize and control the power grid system according to the solution results.
[0065] The present application constructs an optimized DC power flow model corresponding to the power grid system to be optimized and regulated, and can obtain a DC power flow model with smaller errors. Then, when the DC power flow model is optimized and solved according to the current system parameters and optimized and regulated according to the solution results, the error can be reduced, thereby being more in line with the actual project implementation. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 : is a flow chart of a modeling method of a DC power flow model shown in certain embodiments of the present application;
[0067] Figure 2 : is a flow chart of an application method of a DC power flow model shown in certain embodiments of the present application;
[0068] Figure 3 : is a module structure diagram of a modeling device of a DC power flow model shown in certain embodiments of the present application;
[0069] Figure 4 : A module structure diagram of an application device of a DC power flow model shown in certain embodiments of the present application. DETAILED DESCRIPTION
[0070] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below in conjunction with the accompanying drawings are exemplary and are only used to explain some embodiments of the present application, and should not be construed as limitations on the embodiments of the present application. Based on the embodiments shown in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0071] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, unless otherwise clearly and specifically defined, "multiple" and "several" mean two or more.
[0072] In the prior art, when constructing a DC power flow model to optimize and control the power grid, the active power loss in the power grid system is often ignored, resulting in inevitable errors in the solution results. For large-scale power systems, the corresponding increase in system active power loss will lead to a corresponding increase in the solution error, which will have a great impact on actual engineering applications and may even be unsatisfactory for actual applications. Therefore, in large-scale power systems, it is necessary to reduce the error of the DC power flow model to be more in line with actual engineering applications.
[0073] Based on the above technical background, please refer to Figure 1 The present application embodiment provides a modeling method of a DC power flow model, including steps S101 to S105, each of which is as follows:
[0074] Step S101: obtaining a first parameter group of a first power grid model to be corrected.
[0075] Step S102: performing AC power flow calculation on the first parameter group to obtain active power flow of each branch in the first power grid model.
[0076] In certain embodiments of the present application, performing AC power flow calculation on the first parameter group to obtain active power flow of each branch in the first power grid model specifically includes:
[0077] constructing a node admittance matrix of the first power grid model according to the first parameter group;
[0078] According to the node admittance matrix and the first parameter group, the voltage amplitude and phase of each node in the first power grid model are obtained by AC power flow calculation;
[0079] The active power flow of each branch in the first power grid model is calculated according to the first power grid model, the first parameter group and the voltage amplitude and phase of each node.
[0080] The present application first calculates the node admittance matrix through the first parameter group, and then obtains the voltage amplitude and phase of each node through the AC method flow calculation, which can provide a calculation basis for the subsequent calculation of the active power flow of each branch, and then when the active power flow of each branch is obtained in combination with the first parameter group, it is more in line with the actual project implementation.
[0081] In certain embodiments of the present application, the voltage amplitude and phase of each node in the first power grid model are obtained by AC power flow calculation according to the node admittance matrix and the first parameter group, specifically including:
[0082] Constructing an AC power flow equation group of the first power grid model according to the node admittance matrix and the first parameter group;
[0083] The AC power flow equations are specifically:
[0084]
[0085] Among them, P Gi , Q Gi are the active output and reactive output of the unit at node i respectively; P Li , Q Li are the active power and reactive power consumed by the load at node i respectively; U i , U j are the voltage amplitudes of nodes i and j respectively; θ ij =θ i -θ j is the voltage phase difference between node i and node j, θ i ,θ j are the voltage phases of nodes i and j respectively; n is the total number of nodes; S N = {1, 2, ..., n} is a node set; G ij , B ij are the real and imaginary parts of the elements in the i-th row and j-th column of the node admittance matrix respectively;
[0086] According to the AC power flow equations, the voltage amplitude and phase of each node in the first power grid model are solved and calculated.
[0087] This application first constructs an AC power flow equation group based on the node admittance matrix and the first parameter group, and then solves the equation group and calculates the voltage amplitude and phase of each node. In this way, the calculation through the AC method is more accurate and more in line with the implementation of the actual project.
[0088] In some optional implementations of the present application, calculating the active power flow of each branch in the first power grid model according to the first power grid model, the first parameter group and the voltage amplitude and phase of each node specifically includes:
[0089]
[0090] in, is the active power flow from node i to node j in branch (i, j), is the active power flow from node j to node i in branch (i, j); g ii , g jj are the self-conductance of nodes i and j in branch (i, j) respectively; g ij , b ij are the mutual conductance and mutual susceptance of branch (i, j) respectively.
[0091] Step S103: Based on the first parameter group and according to the active power flow of each branch, construct and solve the DC power flow optimization model of the first power grid model to obtain an optimization result; wherein the DC power flow optimization model takes the minimum weighted sum of the maximum and average values of the deviations of the active power flow load rate at the sending end of each branch as an optimization target.
[0092] In certain embodiments of the present application, based on the first parameter group and according to the active power flow of each branch, constructing and solving the DC power flow optimization model of the first power grid model to obtain the optimization result specifically includes:
[0093] According to the active power flow of each branch, calculate the active power flow load rate of the sending end of each branch;
[0094] Based on the first parameter group, according to the active power flow load rate at the sending end of each branch, a DC power flow optimization model of the first power grid model is constructed with the weighted minimum of the maximum value and the average value of the deviation of the active power flow load rate at the sending end of each branch as the optimization target;
[0095] Solve the DC power flow optimization model to obtain optimization results.
[0096] Specifically, the sending end of each branch is specifically the active power flow of each branch and The largest one among them corresponds to the outflow node of the power flow. For example, when the branch (i, j) When , the sending end of branch (i, j) is node i of branch (i, j); otherwise, the sending end is node j of branch (i, j).
[0097] In some optional implementations of the present application, the active power flow load rate of the sending end of each branch is calculated according to the active power flow of each branch, specifically including:
[0098] The active power flow load rate of the sending end of each branch is specifically:
[0099]
[0100] in, is the active power flow load rate at the sending end of branch (i, j), is the long-term current-carrying capacity of branch (i, j).
[0101] The present application first calculates the active power flow load rate of each branch at the sending end through the active power flow of each branch, and then constructs and solves the DC power flow optimization model, thereby reducing the maximum deviation and average deviation of the active power flow load rate at the sending end of the branch in the power grid system, so that the obtained optimization result is more in line with the actual project implementation.
[0102] In certain embodiments of the present application, the DC power flow optimization model is specifically:
[0103]
[0104]
[0105] Among them, E max is the maximum value of branch load rate deviation in the first power grid model, is the branch load rate deviation vector, E ij is the load rate deviation of branch (i, j); W A is the relative deviation weight; is the active power flow from node i to node j in branch (i, j), is the active power flow from node j to node i in branch (i, j); x ij is the reactance of branch (i, j); N B is the total number of branches; S N is a node set; S B is the branch set, S B+ Active power flow of branch The branch set, S B- Active power flow of branch A collection of branches.
[0106] In some optional implementations of the present application, solving the DC power flow optimization model to obtain an optimization result specifically includes:
[0107] The DC power flow optimization model is solved using the simplex method or the interior point method to obtain an optimization result.
[0108] Step S104: Based on the first parameter group and according to the optimization result, the first power grid model is modified to obtain a second power grid model.
[0109] In some optional implementations of the present application, based on the first parameter group and according to the optimization result, the first power grid model is modified to obtain the second power grid model, specifically including:
[0110] The optimization result includes the active output of the units at each node and the active power of the loads at each node;
[0111] According to the active output of the units at each node, updating the active output of the units corresponding to each node in the first power grid model;
[0112] According to the active power of the load of each node, the active power of the load corresponding to each node in the first power grid model is updated;
[0113] The updated first power grid model is output as the second power grid model.
[0114] The reason why the weighted sum of the maximum and average values of the deviation of the active power flow load rate at the sending end of each branch is considered to be the minimum as the optimization goal is that the solution of the optimization model in the present application is equivalent to dispersing the active power loss in the power grid model to the units and loads in each node, so that after the first power grid model is optimized according to the optimization results, the maximum deviation and average deviation of the load rate at the sending end of each branch are relatively smaller, and at the same time, the active zero injection state of non-units and non-loads in each node in the power grid model is not changed, so that the error of the constructed DC power flow model can be smaller.
[0115] Step S105: Use the DC method to model the second power grid model to obtain a DC power flow model corresponding to the second power grid model.
[0116] The present application first obtains the first parameter group of the power grid model to be corrected, then performs AC power flow calculation to obtain the active power flow of each branch, and then constructs and solves the DC power flow optimization model to obtain the optimization result, thereby reducing the maximum deviation and average deviation of the active power flow load rate at the sending end of the branch in the power grid system, so that when correcting the power grid model, it is more in line with the actual project implementation situation, and then when the DC method is used to model the power grid model to obtain a DC power flow model, the error of the DC power flow model is reduced.
[0117] To illustrate the effect of the modeling method of a DC power flow model described in this application, the following is an example of an actual project implementation of a power grid system: in the power grid model of the actual project, the number of nodes is 10386, the number of branches is 15207, the number of units is 1582, the number of loads is 4330, the total load is 361477.7MW, and the total network loss is 6375.5MW. When the DC power flow model of the prior art is used, the average value of the deviation of the load rate of the branch is 0.263%, and the maximum value of the deviation of the load rate of the branch is 96.03%; when the modeling method of a DC power flow model described in this application is used, the average value of the deviation of the load rate of the branch is reduced to 0.12%, and the maximum value of the deviation of the load rate of the branch is reduced to 3.27%. Obviously, by implementing the modeling method of a DC power flow model described in this application, the maximum deviation and average deviation of the load rate of each branch in the power grid system can be effectively reduced, thereby effectively reducing the error of the constructed DC power flow model and improving the accuracy of the DC power flow model.
[0118] See also Figure 2 The present application also provides a method for applying a DC power flow model, including steps S201 to S202, each of which is as follows:
[0119] Step S201: obtaining a DC power flow model of a power grid system to be optimized and regulated; wherein the DC power flow model is constructed by a DC power flow modeling method described in the present application.
[0120] Step S202: optimizing and solving the DC power flow model according to current system parameters of the power grid system, and optimizing and regulating the power grid system according to the solution results.
[0121] The present application constructs an optimized DC power flow model corresponding to the power grid system to be optimized and regulated, and can obtain a DC power flow model with smaller errors. Then, when the DC power flow model is optimized and solved according to the current system parameters and optimized and regulated according to the solution results, the error can be reduced, thereby being more in line with the actual project implementation.
[0122] Corresponding to the previous method, see Figure 3 , the embodiment of the present application provides a modeling device for a DC power flow model, including a parameter acquisition module 310, a power flow calculation module 320, a construction solution module 330, a model correction module 340 and a DC modeling module 350;
[0123] The parameter acquisition module 310 is used to acquire a first parameter group of a first power grid model to be corrected;
[0124] The power flow calculation module 320 is used to perform AC power flow calculation on the first parameter group to obtain the active power flow of each branch in the first power grid model;
[0125] The construction and solution module 330 is used to construct and solve the DC power flow optimization model of the first power grid model based on the first parameter group and the active power flow of each branch to obtain an optimization result; wherein the DC power flow optimization model takes the minimum weighted sum of the maximum value and the average value of the deviation of the active power flow load rate at the sending end of each branch as the optimization target;
[0126] The model correction module 340 is used to correct the first power grid model based on the first parameter group and according to the optimization result to obtain a second power grid model;
[0127] The DC modeling module 350 is used to model the second power grid model using a DC method to obtain a DC power flow model corresponding to the second power grid model.
[0128] In certain embodiments of the present application, the power flow calculation module 320 includes a matrix construction submodule 321, a node calculation submodule 322, and a power flow calculation submodule 323;
[0129] The matrix construction submodule 321 is used to construct a node admittance matrix of the first power grid model according to the first parameter group;
[0130] The node calculation submodule 322 is used to obtain the voltage amplitude and phase of each node in the first power grid model through AC power flow calculation according to the node admittance matrix and the first parameter group;
[0131] The power flow calculation submodule 323 is used to calculate the active power flow of each branch in the first power grid model according to the first power grid model, the first parameter group and the voltage amplitude and phase of each node.
[0132] In certain embodiments of the present application, the node calculation submodule 322 includes an equation building unit 3221 and an equation solving unit 3222;
[0133] The equation construction unit 3221 is used to construct an AC power flow equation group of the first power grid model according to the node admittance matrix and the first parameter group;
[0134] The AC power flow equations are specifically:
[0135]
[0136] Among them, P Gi , Q Giare the active output and reactive output of the unit at node i respectively; P Li , Q Li are the active power and reactive power consumed by the load at node i respectively; U i ,U j are the voltage amplitudes of nodes i and j respectively; θ ij =θ i -θ j is the voltage phase difference between node i and node j, θ i ,θ j are the voltage phases of nodes i and j respectively; n is the total number of nodes; S N = {1, 2, ..., n} is a node set; G ij , B ij are the real and imaginary parts of the elements in the i-th row and j-th column of the node admittance matrix respectively;
[0137] The equation solving unit 3222 is used to solve and calculate the voltage amplitude and phase of each node in the first power grid model according to the AC power flow equation group.
[0138] In certain embodiments of the present application, the construction and solution module 330 includes a load rate calculation submodule 331, a model construction submodule 332, and a model solution submodule 333;
[0139] The load rate calculation submodule 331 is used to calculate the active power flow load rate of the sending end of each branch according to the active power flow of each branch;
[0140] The model building submodule 332 is used to build a DC power flow optimization model of the first power grid model based on the first parameter group and according to the active power flow load rate of the sending end of each branch, with the weighted minimum of the maximum value and the average value of the deviation of the active power flow load rate of the sending end of each branch as the optimization target;
[0141] The model solving submodule 333 is used to solve the DC power flow optimization model to obtain an optimization result.
[0142] In certain embodiments of the present application, the DC power flow optimization model is specifically:
[0143]
[0144]
[0145] Among them, E max is the maximum value of branch load rate deviation in the first power grid model, is the branch load rate deviation vector, Ei j is the load rate deviation of branch (i, j); WA is the relative deviation weight; is the active power flow from node i to node j in branch (i, j), is the active power flow from node j to node i in branch (i, j); x ij is the reactance of branch (i, j); N B is the total number of branches; S N is a node set; S B is the branch set, S B+ Active power flow of branch The branch set, S B- Active power flow of branch A collection of branches.
[0146] The present application first obtains the first parameter group of the power grid model to be corrected, then performs AC power flow calculation to obtain the active power flow of each branch, and then constructs and solves the DC power flow optimization model to obtain the optimization result, thereby reducing the maximum deviation and average deviation of the active power flow load rate at the sending end of the branch in the power grid system, so that when correcting the power grid model, it is more in line with the actual project implementation situation, and then when using the DC method to correct and model the power grid model to obtain a DC power flow model, the error of the DC power flow model is reduced.
[0147] See also Figure 4 , the embodiment of the present application also provides an application device of a DC power flow model, including a model acquisition module 410 and an optimization control module 420;
[0148] The model acquisition module 410 is used to acquire a DC power flow model of the power grid system to be optimized and regulated; wherein the DC power flow model is constructed by a DC power flow model modeling device described in the present application;
[0149] The optimization and control module 420 is used to optimize and solve the DC power flow model according to the current system parameters of the power grid system, and optimize and control the power grid system according to the solution results.
[0150] The present application constructs an optimized DC power flow model corresponding to the power grid system to be optimized and regulated, and can obtain a DC power flow model with smaller errors. Then, when the DC power flow model is optimized and solved according to the current system parameters and optimized and regulated according to the solution results, the error can be reduced, thereby being more in line with the actual project implementation.
[0151] Adaptively, the embodiments of the present application also provide a computer device and a computer-readable storage medium.
[0152] The computer device comprises: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor;
[0153] Wherein, when the processor executes the computer program, a modeling method of a DC power flow model or an application method of a DC power flow model described in the present application is implemented.
[0154] The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute a modeling method of a DC power flow model or an application method of a DC power flow model described in the present application.
[0155] The above are some implementation methods of the present application, and the purpose, technical scheme and beneficial effects of the present application are further described in detail. It should be clear that the above-mentioned partial implementation methods of the present application cannot be understood as limiting the present application. It is particularly pointed out that for those skilled in the art, any changes, modifications, equivalent substitutions and variations made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A modeling method for a DC power flow model, characterized in that: include: Acquire a first parameter group of a first power grid model to be corrected; Performing AC power flow calculation on the first parameter group to obtain active power flow of each branch in the first power grid model; Based on the first parameter group, according to the active power flow of each branch, a DC power flow optimization model of the first power grid model is constructed and solved to obtain an optimization result; wherein the DC power flow optimization model takes the minimum weighted sum of the maximum value and the average value of the deviation of the active power flow load rate at the sending end of each branch as an optimization target; Based on the first parameter group and according to the optimization result, modifying the first power grid model to obtain a second power grid model; The second power grid model is modeled using a direct current method to obtain a direct current power flow model corresponding to the second power grid model.
2. The modeling method of a DC power flow model according to claim 1, characterized in that: The performing AC power flow calculation on the first parameter group to obtain the active power flow of each branch in the first power grid model specifically includes: constructing a node admittance matrix of the first power grid model according to the first parameter group; According to the node admittance matrix and the first parameter group, the voltage amplitude and phase of each node in the first power grid model are obtained by AC power flow calculation; The active power flow of each branch in the first power grid model is calculated according to the first power grid model, the first parameter group and the voltage amplitude and phase of each node.
3. The modeling method of a DC power flow model according to claim 2, characterized in that: The step of obtaining the voltage amplitude and phase of each node in the first power grid model by using an AC power flow calculation according to the node admittance matrix and the first parameter group specifically includes: Constructing an AC power flow equation group of the first power grid model according to the node admittance matrix and the first parameter group; The AC power flow equations are specifically: Among them, P Gi , Q Gi are the active output and reactive output of the unit at node i respectively; P Li , Q Li are the active power and reactive power consumed by the load at node i respectively; U i , U j are the voltage amplitudes of nodes i and j respectively; θ ij =θ i -θ j is the voltage phase difference between node i and node j, θ i ,θ j are the voltage phases of nodes i and j respectively; n is the total number of nodes; S N = {1, 2, ..., n} is a node set; G ij , B ij are the real and imaginary parts of the elements in the i-th row and j-th column of the node admittance matrix respectively; According to the AC power flow equations, the voltage amplitude and phase of each node in the first power grid model are solved and calculated.
4. The modeling method of a DC power flow model according to claim 1, characterized in that: The constructing and solving the DC power flow optimization model of the first power grid model based on the first parameter group and according to the active power flow of each branch to obtain the optimization result specifically includes: According to the active power flow of each branch, calculate the active power flow load rate of the sending end of each branch; Based on the first parameter group, according to the active power flow load rate at the sending end of each branch, a DC power flow optimization model of the first power grid model is constructed with the weighted minimum of the maximum value and the average value of the deviation of the active power flow load rate at the sending end of each branch as the optimization target; Solve the DC power flow optimization model to obtain optimization results.
5. The modeling method of a DC power flow model according to claim 4, characterized in that: The DC power flow optimization model is specifically: Among them, E max is the maximum value of branch load rate deviation in the first power grid model, is the branch load rate deviation vector, E ij is the load rate deviation of branch (i, j); W A is the relative deviation weight; is the active power flow from node i to node j in branch (i, j), is the active power flow from node j to node i in branch (i, j); x ij is the reactance of branch (i, j); N B is the total number of branches; S N is a node set; S B is the branch set, S B+ Active power flow of branch The branch set, S B- Active power flow of branch A collection of branches.
6. A method for applying a DC power flow model, characterized in that: include: Acquire a DC power flow model of the power grid system to be optimized and regulated; wherein the DC power flow model is constructed by a DC power flow modeling method according to any one of claims 1 to 5; The DC power flow model is optimized and solved according to the current system parameters of the power grid system, and the power grid system is optimized and regulated according to the solution results.
7. A modeling device for a DC power flow model, characterized in that: It includes parameter acquisition module, power flow calculation module, construction solution module, model correction module and DC modeling module; The parameter acquisition module is used to acquire a first parameter group of a first power grid model to be corrected; The power flow calculation module is used to perform AC power flow calculation on the first parameter group to obtain the active power flow of each branch in the first power grid model; The construction and solution module is used to construct and solve the DC power flow optimization model of the first power grid model based on the first parameter group and the active power flow of each branch to obtain an optimization result; wherein the DC power flow optimization model takes the minimum weighted sum of the maximum value and the average value of the deviation of the active power flow load rate at the sending end of each branch as the optimization target; The model correction module is used to correct the first power grid model based on the first parameter group and according to the optimization result to obtain a second power grid model; The DC modeling module is used to model the second power grid model using a DC method to obtain a DC power flow model corresponding to the second power grid model.
8. A modeling device for a DC power flow model according to claim 7, characterized in that: The power flow calculation module includes a matrix construction submodule, a node calculation submodule and a power flow calculation submodule; The matrix construction submodule is used to construct a node admittance matrix of the first power grid model according to the first parameter group; The node calculation submodule is used to obtain the voltage amplitude and phase of each node in the first power grid model through AC power flow calculation according to the node admittance matrix and the first parameter group; The power flow calculation submodule is used to calculate the active power flow of each branch in the first power grid model according to the first power grid model, the first parameter group and the voltage amplitude and phase of each node.
9. A modeling device for a DC power flow model according to claim 8, characterized in that: The node calculation submodule includes an equation building unit and an equation solving unit; The equation construction unit is used to construct an AC power flow equation group of the first power grid model according to the node admittance matrix and the first parameter group; The AC power flow equations are specifically: Among them, P Gi ,Q Gi are the active output and reactive output of the unit at node i respectively; P Li ,Q Li are the active power and reactive power consumed by the load at node i respectively; U i ,U j are the voltage amplitudes of nodes i and j respectively; θ ij =θ i -θ j is the voltage phase difference between node i and node j, θ i ,θ j are the voltage phases of nodes i and j respectively; n is the total number of nodes; S N = {1, 2, ..., n} is a node set; G ij , B ij are the real and imaginary parts of the elements in the i-th row and j-th column of the node admittance matrix respectively; The equation solving unit is used to solve and calculate the voltage amplitude and phase of each node in the first power grid model according to the AC power flow equation group.
10. A DC power flow modeling device according to claim 7, characterized in that: The construction and solution module includes a load rate calculation submodule, a model construction submodule and a model solution submodule; The load rate calculation submodule is used to calculate the active power flow load rate of the sending end of each branch according to the active power flow of each branch; The model building submodule is used to build a DC power flow optimization model of the first power grid model based on the first parameter group and according to the active power flow load rate of the sending end of each branch, with the weighted minimum of the maximum value and the average value of the deviation of the active power flow load rate of the sending end of each branch as the optimization target; The model solving submodule is used to solve the DC power flow optimization model to obtain an optimization result.
11. A modeling device for a DC power flow model according to claim 10, characterized in that: The DC power flow optimization model is specifically: Among them, E max is the maximum value of branch load rate deviation in the first power grid model, is the branch load rate deviation vector, E ij is the load rate deviation of branch (i, j); W A is the relative deviation weight; is the active power flow from node i to node j in branch (i, j), is the active power flow from node j to node i in branch (i, j); x ij is the reactance of branch (i, j); N B is the total number of branches; S N is a node set; S B is the branch set, S B+ Active power flow of branch The branch set, S B- Active power flow of branch A collection of branches.
12. An application device of a DC power flow model, characterized in that: Including model acquisition module and optimization and control module; The model acquisition module is used to acquire a DC power flow model of the power grid system to be optimized and regulated; wherein the DC power flow model is constructed by a DC power flow modeling device according to any one of claims 7 to 11; The optimization and control module is used to optimize and solve the DC power flow model according to the current system parameters of the power grid system, and optimize and control the power grid system according to the solution results.
