Power grid planning method, electronic equipment, and storage medium considering line loss and safety
By establishing the base state and fault state AC branch power flow model of the power grid, combined with binary variables and cost functions, the system security problems caused by power grid line loss optimization are solved, and comprehensive planning of power system security and power supply reliability is achieved, reducing the Line losses and grid operating costs are reduced.
Patent Information
- Application Number
- CN202210593191.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-27
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing power grid line loss optimization methods can easily lead to low power generation output of the system, increase the power flow pressure on other lines, may cause large-scale power outages, and make it difficult to ensure the safety and reliability of power supply of the power system.
By establishing the AC branch power flow model constraints of the existing lines of the power grid in the base state, introducing the binary variable αi, establishing the power grid transmission corridor expansion model constraints, traversing each fault state, constructing a cost function including line loss cost and expansion cost, and solving the power flow adjustment and expansion planning to ensure the safety of the power system under fault conditions.
It achieves composite grid planning that reduces line losses while ensuring power system security and power supply reliability, reduces line losses and grid operating costs, and improves energy utilization efficiency.
Smart Images

Figure CN114925532B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power grid planning, and more specifically, relates to a power grid planning method, electronic equipment, and storage medium that take line loss and safety into consideration. Background Art
[0002] Relevant data analysis shows that as an important technical and economic indicator of power grid operation, every 1 percentage point reduction in line loss rate can save more than 40 billion kWh of electricity purchase for State Grid Corporation of China, and 15 billion yuan in electricity purchase costs, which is equivalent to reducing the combustion emissions of more than 13 million tons of standard coal. Therefore, in order to effectively improve energy utilization efficiency and reduce power grid line losses, line loss optimization is of greater significance. However, at present, when optimizing power grid line losses, the system power generation output will be relatively low. Therefore, if an important line breaks, it will increase the flow pressure of other lines, which is likely to cause the flow of other lines to exceed the limit, and then cause other lines to fail, resulting in large-scale power outages and even the loss of synchronization and collapse of the entire power grid. Summary of the invention
[0003] In view of the above defects or improvement needs of the prior art, the present invention provides a power grid planning method, electronic device, and storage medium that take line loss and safety into consideration, with the aim of achieving line loss optimization while ensuring the safety of the power system and the reliability of power supply.
[0004] To achieve the above object, according to one aspect of the present invention, a power grid planning method considering line loss and safety is provided, comprising:
[0005] Establish AC branch power flow model constraints for existing power grid lines in base state;
[0006] Introducing binary variable α i ∈{0,1}, establish the power grid transmission corridor expansion model constraint ∑α i ≤N l.build ; For expandable lines, α i =1 means that line i among the expandable lines is planned to be built, α i =0 means that line i among the expandable lines is not planned to be built, N l.build Indicates the upper limit of the number of lines that can be expanded in the power grid;
[0007] Traverse the fault states of the existing lines, disconnect a different line in each fault state, establish the AC branch power flow model constraints of the existing routes and planned routes of the power grid under each fault state, and use the binary variable α i ∈{0,1} forms the line power flow control constraint For existing lines, α i=0 means that line i is disconnected among the existing lines, α i =1 means that line i among the existing lines is normal; and They represent the apparent power and current at the receiving end of line i under the corresponding fault state, S li.max Indicates the maximum apparent power at the receiving end of line i;
[0008] Based on the unchanged output of thermal power units before and after the fault, the AC branch power flow model constraints of the joint power grid in the base state and fault state respectively;
[0009] A cost function including the base-state line loss cost of the existing lines and the cost of the grid line expansion is constructed, and the cost function is solved with the goal of minimizing the cost function to obtain a power flow adjustment and expansion planning scheme.
[0010] In one embodiment, the AC branch power flow model constraints include:
[0011] Node power balance constraints:
[0012]
[0013]
[0014] Where P gj , Q gj , P dj , Q dj , g j 、b j and V j They are respectively the active power, reactive power, active load, reactive load, conductance, susceptance and voltage square of the generator at node j in the base state; i∈δ S (j) represents the line i at the sending end at node j, and is the active power and reactive power of the input line at the sending end of line i in the base state; i∈δ R (j) represents the receiving end of line i at node j, and is the active power and reactive power of the line sent out by the receiving end of line i in the base state;
[0015] Line power balance constraints:
[0016] P i S =P i R +r i I i ;
[0017]
[0018] In the formula, r i 、x i and I i are the resistance, conductance and current of circuit i in the ground state respectively;
[0019] Constraints on the relationship between voltage and current at both ends of the line:
[0020]
[0021] Where V i S 、V i R They represent the square of the voltage at the sending and receiving ends of line i in the base state respectively;
[0022] Power and voltage upper and lower limit constraints:
[0023] P gj.min ≤P gj ≤P gj.max ;
[0024] Q gj.min ≤Q gj ≤Q gj.max ;
[0025] (v j.min ) 2 ≤V j ≤(v j.max ) 2 ;
[0026]
[0027] Where P gj.min , P gj.max , Q gj.min , Q gj.max 、v j.min and v j.max are the minimum active power and maximum active power, minimum reactive power and maximum reactive power, minimum voltage and maximum voltage at node j, respectively. is the apparent power at the receiving end of line i in the base state, S li.max is the maximum apparent power at the receiving end of line i;
[0028] Phase angle relaxation and convex relaxation constraints of line end power:
[0029]
[0030]
[0031] In one embodiment, the AC branch power flow model constraints under each fault state include:
[0032] Node power balance constraints:
[0033]
[0034]
[0035] In the formula, and They are respectively the active power, reactive power and voltage square output by the generator on node j under fault condition; i∈δ S (j) represents the line i at the sending end at node j, P i S(mn) and is the active power and reactive power of the input line at the sending end of line i under fault condition; i∈δ R (j) represents the line i at the receiving end at node j, P i R(mn) and is the active power and reactive power of the line sent out by the receiving end of line i under fault condition;
[0036] Line power balance constraints:
[0037]
[0038]
[0039] In the formula, is the current of line i in the fault state;
[0040] Constraints on the relationship between voltage and current at both ends of the line:
[0041]
[0042] Where V i S(mn) and V i R(mn) are the square of the voltage at the sending and receiving ends of line i under fault condition, V i.max is the square of the maximum voltage of line i;
[0043] Power and voltage upper and lower limit constraints:
[0044]
[0045]
[0046] (V i.min ) 2 ≤V i (mn) ≤(V i.max ) 2
[0047]
[0048] In the formula, is the apparent power at the receiving end of line i under fault condition.
[0049] Phase angle relaxation and convex relaxation constraints of line end power:
[0050]
[0051]
[0052] In one embodiment, the phase angle relaxation and convex relaxation constraints of the line end power are solved by using polyhedron approximation, and the process of polyhedron approximation solution includes:
[0053] Establish o-xyz three-dimensional coordinate axis and express the equation as x 2 +y 2 =z 2 In the form of a cone constraint;
[0054] Use the plane of a polyhedron to approximate the curved surface of a cone, forming a polyhedron approximation of the cone;
[0055] Let the model solution point P be on the polyhedral plane to obtain the optimal feasible solution, and change the vector It is expressed as:
[0056]
[0057]
[0058] Among them, β n is the introduced variable representing the weight of the linear combination of vectors on the edges of the polyhedron, N is the number of sides of the polyhedron, is the vector formed by the side n of the polyhedron, V n The coordinates are (x n ,y n , z max ), z max is the upper limit of the cone z axis,
[0059]
[0060] Introducing binary variables γ n And create constraints:
[0061]
[0062]
[0063] Solve to get the coordinates of point P
[0064]
[0065] In one of the embodiments, the line loss cost is the sum of line loss costs in multiple stages, each stage corresponds to a different load, and the power grid operates according to the corresponding load in each stage.
[0066] In one embodiment, a year is divided into a summer maximum load phase and a winter minimum load phase, the power grid operates for half a year in each phase, and the line loss cost is the annual line loss cost.
[0067] In one embodiment, the line loss cost is equal to the grid-connected electricity price cost*line loss, where the calculation formula of the line loss is: Among them, N l is the number of existing power grid lines, I i 、r i are the current and resistance of line i respectively.
[0068] In one embodiment, the cost of grid line expansion C build for
[0069]
[0070] Among them, r is the social discount rate, n is the service life of the line, c line is the line construction cost per unit length, L i is the length of line i to be built, N l It is the number of existing lines in the power grid. The number of the line to be built is greater than the number of the existing line.
[0071] According to another aspect of the present invention, an electronic device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0072] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0073] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:
[0074] This application proposes a composite power grid planning method that comprehensively considers line loss and safety. During the power grid planning, by establishing expansion model constraints, the expansion line is limited. At the same time, the AC branch flow model constraints of the existing line in the base state and the AC branch flow model constraints of the expanded overall line in the fault state are established respectively. The two constraint models in the base state and the fault state are associated through the constraint that the output of the thermal power unit remains unchanged before and after the fault, so that their parameters affect each other. Among them, the parameters in the base state are used to calculate the line loss cost, and the parameters in the fault state are used to verify the safety of the entire planned power grid. Finally, the cost function of the base state line loss cost and the power grid line expansion cost is minimized as the goal to solve the problem, and the flow adjustment and expansion planning scheme is obtained, thereby realizing the composite power grid planning that comprehensively considers line loss and safety. The power grid planned by the above method can not only reduce the line loss to a certain extent, but also ensure the safety of the power system and the reliability of power supply. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 A flowchart of the steps of a power grid planning method considering line loss and safety according to an embodiment;
[0076] Figure 2 A schematic diagram of a second-order cone shape according to an embodiment;
[0077] Figure 3 A schematic diagram of using a plane of a polyhedron to approximate a conic surface according to an embodiment;
[0078] Figure 4 A schematic diagram of a Garver 6-node system grid topology according to an embodiment. DETAILED DESCRIPTION
[0079] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0080] like Figure 1 The figure is a flowchart of the steps of a power grid planning method that comprehensively considers line loss and safety in one embodiment, which includes:
[0081] Step S100: Collect economic and technical parameters of various components of the power system to be planned.
[0082] Among them, the components of the power system include AC power grid, nodes, interconnection lines, thermal power units, etc.
[0083] The parameters of each component include:
[0084] 1) Number of AC grid nodes N b , each node active load P d , reactive load Q d , the maximum allowable node voltage v max , the minimum allowable node voltage v min In one embodiment, the load parameter has different values in different stages. In summer, the maximum active load P of the node is d.max , the maximum reactive load of the node Q d.max In winter, the minimum active load of the node is P d.min , the minimum reactive load Q of the node d.min .
[0085] 2) Number of AC power grid lines N l , line head and end node number, line resistance per unit value r, line reactance per unit value x, node equivalent conductance per unit value g, node equivalent susceptance per unit value b, line maximum transmission capacity (line receiving end maximum apparent power) S lmax ; System base capacity S b .
[0086] 3) The node number of each thermal power unit, the upper and lower limits of each unit’s active technical output P gmax and P gmin , reactive power technical output upper and lower limits Q gmax and Q gmin .
[0087] 4) Data related to the expansion of power grid lines, including the number of lines to be built in the system N l.max , the length of each line to be built L, the upper limit of the number of lines that can be expanded in the power grid N l.build , the node numbers of the first and last terminals of the line to be built, the unit value of the line resistance r of the line to be built, the unit value of the line reactance x, and the maximum transmission capacity S of the line lmax .
[0088] 5) Economic indicators related to line loss costs and construction cost discounts, including the on-grid electricity price on-grid , investment and construction cost per unit length of line c line , line operation life n, social discount rate r and other indicators.
[0089] Step S200: establishing AC branch power flow model constraints of existing power grid lines in a base state.
[0090] First, the definition of relevant parameters is explained. Among them, i is the line number, j is the node number, the existing lines and the lines to be built are numbered in sequence, and the number of the lines to be built is greater than the number of the existing lines. The planning variable is the active power output P of the generator at node j in the base state gj; Output reactive power Q gj ; The square of the voltage at node j V j ; The square of the voltage on the sending end of line i The square of the voltage at the receiving end of line i Active power at the sending end of line i Active power at receiving end of line i Reactive power at the sending end of line i Reactive power at receiving end of line i Apparent power at receiving end of line i The square of the current in line i i .
[0091] Specifically, according to the relationship between voltage, current, power and system parameters during the operation of the power system, the AC branch power flow model constraints of the existing lines in the base state can be obtained, which include the following constraints, where the subscript i represents the parameters corresponding to line i, the subscript j represents the parameters corresponding to node j, and the parameters used in the constraints in the base state are all the parameters in the base state:
[0092] 1) Node power balance constraints
[0093]
[0094]
[0095] P gj and Q gj is the active and reactive power output by the generator at node j; P dj and Q dj is the active load and reactive load on node j; g j is the node conductance, b j is the node susceptance, multiplied by the square of the node voltage V j is the active and reactive power consumed by conductance and susceptance; i∈δ S (j) represents the line i at the sending end at node j, so and is the active and reactive power sent by the node to the line; similarly, i∈δ R (j) represents the line i at the receiving end at node j, so and is the active and reactive power received by the node from the line. According to the principle of active and reactive power balance at the node, the power received by the node is the same as the output power, so there are constraints (1) and (2).
[0096] 2) Line power balance constraints
[0097] P i S =P iR +r i I i (3)
[0098]
[0099] and The active power and reactive power of the input line at the sending end of line i; and is the active power and reactive power of the line sent out from the receiving end of line i; r i and x i is the line resistance and conductance, multiplied by the square of the line current I i is the active power and reactive power lost on the line. Since the line loss is the power difference between the sending end and the receiving end, there are constraints (3) and (4).
[0100] 3) Constraints on the relationship between voltage and current at both ends of the line
[0101] On an AC line, the voltage and current at both ends of the line have the following relationship:
[0102]
[0103] In formula (5), the impedance z i =r i +jx i , v and i are the voltage and current phasors, and the phase angle is taken into account, but the variables in the model do not consider the phase angle, so phase angle relaxation is required.
[0104] According to the relationship between the power flow and voltage and current at the receiving end of the line, we have formula (6), where
[0105]
[0106] Substituting (6) into (5) yields:
[0107]
[0108] Therefore, there are:
[0109]
[0110] There is no phasor in equation (8), which means that phase angle relaxation is achieved, making the model solvable. After adjustment, constraint (9) is obtained.
[0111]
[0112] 4) Power and voltage upper and lower limit constraints
[0113] P gj.min ≤Pgj ≤P gj.max (10)
[0114] Q gj.min ≤Q gj ≤Q gj.max (11)
[0115] (v j.min ) 2 ≤V j ≤(v j.max ) 2 (12)
[0116]
[0117] Since the generator has a minimum technical output and a maximum technical output, the active power P output by the generator is gj and reactive power Q gj It needs to be between the maximum technical output and the minimum technical output, so there are constraints (10) and (11). Since the power system has requirements for voltage quality, too high or too low will damage the power system, so the node voltage square V j It must be between the maximum voltage square and the minimum voltage square, so there is constraint (12). Since the power flow at the receiving end of the line must not exceed the limit, there is constraint (13).
[0118] 5) Phase Angle Relaxation and Convex Relaxation of Line End Power
[0119]
[0120] Equation (14) describes the relationship between the power at the end of the line and the voltage and current phasors. Since the phasors have phase angles, phase angle relaxation is required. The two ends of the equation are multiplied by their respective conjugates:
[0121]
[0122] Formula (15) removes the phase angle of voltage and current through phase angle relaxation, but it is still a nonlinear equation and the nonlinear programming model is unsolvable. Formula (15) can be equivalently decomposed into (16) and (17).
[0123]
[0124]
[0125] Constraint (16) is the power triangle of the receiving end of the line, and constraint (17) establishes the relationship between power, voltage and current to ensure that the current will not be zero. However, the constraint is a non-convex constraint. According to the convex optimization theory, the non-convex constraint makes the feasible domain of the planning a non-convex set, and the model may have no solution. In one embodiment, the non-convex constraint is subjected to the following polyhedral approximation:
[0126] Formula (16) and (17) are x 2 +y 2 =z 2 According to the form of the formula, it is a typical second-order cone shape, such as Figure 2 The programming with cone surface as constraint is called second-order cone programming. Usually, second-order cone programming needs to relax the cone constraint. The commonly used relaxation method is to convert "=" to "≤" and change the constraint to x 2 +y 2 ≤z 2 The form of is to relax the feasible domain from the surface of the cone to the inside of the cone, making the feasible domain a convex set.
[0127] However, the accuracy of this relaxation method is often low. According to the characteristics of planning, the optimal solution is often taken on the surface of the feasible domain. Through this relaxation method, the solution of the model is often inside the feasible domain and far away from the surface, that is, only a poor suboptimal solution can be obtained.
[0128] In order to reduce the line loss of the model and obtain a better solution, the cone is approximated by a polyhedron, that is, the plane of the polyhedron is used to approximate the surface of the cone. Under the plane constraint, the model is solvable. The closer the distance between the plane and the surface, the better the solution of the model. Figure 3 When the model solution point P is on the polyhedral plane, the optimal feasible solution is obtained. At this time, the vector It can be obtained by linear combination of vectors of two adjacent edges of the face. Introducing variable β n , represents the weight of the linear combination of vectors on the edge of the polyhedron. As shown in the following formula:
[0129]
[0130]
[0131] Where N is the number of sides of the polyhedron. The larger N is, the closer the faces of the polyhedron are to the curved surface of the cone, and the closer the solution is to the optimal one. However, the larger N is, the longer the calculation time of the model will be.
[0132] Find V n The coordinates of the cone surface are set as z. max ,but
[0133]
[0134] According to formula (20), V n The coordinates are (x n ,y n , z max ). According to (18), the coordinates of point P can be obtained
[0135]
[0136] In order to ensure that P is on the plane of the polyhedron and not inside the polyhedron, a binary variable γ is introduced. n , used to ensure that P is on the plane and determine the plane index where P is located.
[0137]
[0138]
[0139] Formula (22) ensures that the binary variable γ n Only one term is 1, and the rest are 0. Point P is at γ n = 1. Formula (23) ensures that the vector It is formed by the linear combination of the vectors facing its two nearest edges.
[0140] The coordinates of the solution P (x p ,y p , z p ), that is, equations (16) and (17) have solutions. For example, for equation (16), let P i R =x, The coordinates of solution P (x p ,y p , z p ), x p P i R The value of y p for The value of z p for The value of . The same is true for formula (17).
[0141] The above constraints (1)-(4), (9)-(13), (16)-(17) can comprehensively consider the voltage, current, power and other electrical quantities in the power grid, and well constrain the mathematical relationship between the electrical quantities, forming the branch flow model under the original power system base state. The model has non-convex constraints, so the polyhedron approximation method described in this section should be applied to (16) and (17), which can obtain a relatively accurate suboptimal solution. Since there is a square of the current variable I in the model, t∑Ir can be used to calculate the line loss of the power grid in time t.
[0142] Step S200: Introducing binary variable α i ∈{0,1}, establish the power grid transmission corridor expansion model constraint ∑α i ≤N l.build .
[0143] In this embodiment, the number of the expandable line is greater than the number of the existing line, and the number of the existing line is 1, ..., Nl , the number of the expandable line is N l +1,…,N l +N l.build In order to describe the planning of new routes, a binary variable α is introduced i , for expandable lines, that is, i = N l +1,…,N l +N l.build When the binary variable α i Indicates whether line i is constructed or not, and its constraints are as follows:
[0144] α i ∈{0,1}i=N l +1,…,N l +N l.build (twenty four)
[0145] ∑α i ≤N l.max i=N l +1,…,N l +N l.build (25)
[0146] Formula (24) represents the binary line construction decision variable α describing the i-th unbuilt line in the transmission corridor of the power system: i , the variable corresponding to the planned construction time of line i is α i When the value is 1, no line is built. i The value is 0. Formula (25) ensures that the number of newly constructed lines does not exceed the upper limit of the number of lines that can be expanded.
[0147] Step S300: traverse the fault states of the existing lines, disconnect a different line in each fault state, establish the AC branch power flow model constraints of the existing routes and the planned routes of the power grid under each fault state, and use the binary variable α i ∈{0,1} forms the line power flow control constraint
[0148] In this step, we continue to use the binary variable α i Indicates whether the existing line is faulty. Based on this, the existing lines 1,…,N l Perform the disconnection and establish the fault state model as follows:
[0149] α K =0 K∈{1, 2, ..., N l} (26)
[0150] α i =1 i={1,...,K-1,K+1,N l} (27)
[0151] Formula (26) disconnects the Kth line in the line, that is, its line state variable α K =0, and for lines other than line K that have not experienced any fault, other lines are operating normally, and their line state variables are still 1. Scanning K means checking the expected accidents of any line failure.
[0152] In order to ensure the safety under fault conditions, the state variable α of the line is used here i Control line flow. In the fault state, the variable is distinguished from the corresponding base state variable by the superscript (mn), and the same applies below. The line flow is the flow control of the entire planned power grid including the existing lines and the planned lines, that is, i = 1, ..., N l +N l.build .
[0153]
[0154]
[0155] Through equations (28) and (29), we can use the binary variable α i Control line flow. When the i-th line fails and is disconnected or not put into construction, that is, α i is 0, the transmission capacity S and the square of the line current I of this line can be constrained to be 0, that is, the line is considered disconnected; when α i When it is 1, the line operates normally, carries the power flow and delivers electrical energy to the load.
[0156] In one embodiment, the AC branch power flow model constraints of the existing routes and planned routes of the power grid under each fault state are established in a manner substantially the same as that of establishing the AC branch power flow model constraints under the base state above, and include the following constraints:
[0157]
[0158]
[0159]
[0160]
[0161]
[0162]
[0163]
[0164] (V i.min ) 2 ≤Vi (mn) ≤(V i.max ) 2 (37)
[0165]
[0166]
[0167]
[0168] Constraints (30)-(33) in the fault state correspond to constraints (1)-(4) in the base state, constraints (34)-(38) correspond to (9)-(13) in the base state, and constraints (39)-(40) correspond to (16)-(17) in the base state. Combined with constraints (28) and (29), it can be achieved that when the line state variable α i When it is 1, the constraints on the line are in effect normally, that is, the line operates normally in the power grid; the line state variable α i When it is 0, the constraints on the line are invalid and the line does not transmit power, that is, the line is equivalent to a fault disconnection in the power grid.
[0169] Among them, the constraint (34) under the fault state is different from the constraint (9) under the base state. Because when the line fails, there is still voltage at both ends of the line, but no power and current are transmitted. If the constraint of the fault state is constructed in the form of the base state constraint (9), that is, if the constraint is:
[0170]
[0171] When the line state variable α i When α is 0, the left side of the equation is not 0, and the right side of the equation is 0. This constraint cannot be established, that is, there is no feasible domain and the model has no solution. Therefore, in this embodiment, the state variable α of the line is used to i Relaxing the model and writing it in the form of (34) above can prevent conflicts between constraints when a line fails, which would make the model unsolvable. Written in the form of (34) above, when α i =1, By using ≥ and ≤, the constraint is an equality that works normally. i = 0, according to the previous, P i , Q i ,I i are all 0, at this time V i S(mn) -V i R(mn) Less than Greater than This constraint holds and does not affect the size of the feasible domain. After the constraint is relaxed, the model can be solved under the fault state.
[0172] It should be noted that since constraints (39)-(40) are in the form of second-order cones, they need to be processed using the polyhedron approximation method mentioned above. The specific processing process is described above and will not be repeated here.
[0173] Step S400: constraining the AC branch power flow model of the power grid in the base state and the fault state respectively based on the unchanged output of the thermal power units before and after the fault.
[0174] After a line fails, the grid topology changes and the power flow is redistributed, but the thermal power units cannot fully adjust their output in a short period of time. Therefore, when a line fails in the base state and the power grid enters the fault state, the output of the thermal power units in the system remains unchanged. Therefore, the connection between the base state and the fault state is established, and the following constraints are added in the fault state:
[0175]
[0176]
[0177] Step S500: construct a cost function including the base-state line loss cost of the existing lines and the cost of the grid line expansion, solve the cost function with the goal of minimizing it, and obtain a power flow adjustment and expansion planning scheme.
[0178] The line loss cost is equal to the grid-connected electricity price cost * line loss. The line loss of the power grid is the active power loss of the power grid line, which can be calculated using the formula t·∑i 2 r is calculated, t is the running time, i 2 is the square of the current of each line, and r is the resistance of each line. The resistance parameter r of the line can be directly obtained in the step S100 of collecting power system parameters, while the square of the current of each line I i This is the planning variable mentioned above. According to the parameters in the above embodiment, the calculation formula of line loss is: Among them, N l The number of existing power grid lines.
[0179] In one embodiment, since different solar terms have different electricity demands on the power grid, that is, the load of the power grid is different, for example, the load is the largest in summer and the smallest in winter. In order to enhance the robustness of the model so that it can meet the random line expected fault verification under different conditions, the operating state can be divided into multiple stages, each stage corresponds to a different load, the power grid operates for a period of time in each stage, and the operation of each stage meets the safety requirements, and the final line loss cost is the sum of the line loss costs of multiple stages. Specifically, considering the different power consumption in different seasons of the year, two different grid node load conditions in summer and winter can be set in the model.
[0180] Assume that the load condition is the maximum load in summer, that is, in equations (1), (2), (30), and (31), the node active load and reactive load are set to P di.max and Q di.max In this case, the square variable of the current in the model is I i.max ; Then, the load condition is assumed to be the minimum load in winter, that is, in equations (1), (2), (30), and (31), the node active load and reactive load are set to P di.min and Q di.min In this case, the square variable of the current in the model is I i.min ; In the same planning variable α i Under the condition of two load conditions, the expected accident verification and line expansion planning of the power grid line can be met, that is, the line expansion plan is suitable for two different load conditions, so that the final planning variable α i It is applicable to both maximum load and minimum load conditions.
[0181] For example, line loss costs, including summer high load line loss costs C loss.max , Winter small load line loss cost C loss.min , assuming that the two operation modes are operated for half a year each, the cost caused by grid line loss is required to be as low as possible. The annual value of grid expansion investment C build , which only includes the cost of new line construction. It is required that the cost of grid expansion should be as small as possible under the premise of satisfying the random fault safety check of grid lines. At this time, the total cost function is:
[0182] C=(C loss.max +C loss.min )×10 -4 +C build (44)
[0183] Line loss cost
[0184]
[0185]
[0186] Formula (45) is the line loss cost of the power grid when it is operating at the maximum load in summer and without line faults in the base state. Under the condition of constant load, the more losses on the line, the more electricity the power grid needs to purchase from the power generation enterprise, that is, the higher the cost. Since the power grid purchases electricity from the power generation enterprise at the grid-connected electricity price, if the line loss is reduced by ΔP, the power grid's purchase cost is reduced by ΔP×grid-connected electricity price, so Price th The grid-connected electricity price is used to calculate the line loss cost. i is the node number, I i.max is the square of the current variable of each line planned under the maximum load in the base state summer, r iis the resistance of each line, and the I 2 r is accumulated to get the line loss power of the system. Since the result is a per-unit value, it needs to be multiplied by the system reference capacity S B , running for 183 days in half a year, running 24 hours a day, and finally multiplying the grid electricity price th , which is the line loss cost of the power grid operating at the maximum load in summer. Equation (46) is similar to Equation (45). To calculate the line loss cost of the power grid operating at the minimum load in winter, it is only necessary to replace the current with the planning variable I under the base state winter minimum load. i.min .
[0187] Since the unit of on-grid electricity price is generally RMB / MWh, the benchmark capacity S B The unit is MVA, so the result needs to be multiplied by 0.0001 to convert the result into ten thousand yuan.
[0188] Grid expansion costs
[0189]
[0190] r is the social discount rate, n is the service life of the line, is the capital recovery coefficient. c is the construction cost per unit length of the line, in units of 10,000 yuan / km, L i is the length of each line to be built, α i The Lα of each line is the total length of the line to be built, which is multiplied by the unit length line construction cost c. line is the total cost of the investment, and multiplying it by the capital recovery coefficient is the equivalent annual value of the investment.
[0191] Finally, after determining the objective function and constraints, the model is solved to obtain the power flow adjustment and planning scheme.
[0192] Specifically, taking equation (44) as the optimization objective, combined with the model consisting of constraints (1)-(4), (9)-(13), (16)-(43) under the two conditions of maximum load in summer and minimum load in winter, this is the composite power grid planning method proposed in this paper that comprehensively considers power grid loss reduction operation and safety. This model can be solved by commercial software GUROBI based on the MATLAB platform to obtain the power flow adjustment scheme for the power grid to operate in a manner with minimum line loss cost and the minimum cost scheme for new line construction that meets the safety verification of random line accidents in the power grid.
[0193] The present invention aims at the needs of power grid energy conservation and consumption reduction, and at the same time ensures the safety of the power grid when operating in a reduced line loss mode, and provides a composite power grid planning method that comprehensively considers power grid loss reduction operation and safety. The method collects data on relevant nodes and lines of the power grid, and then establishes a base state model for power grid operation. Then, the line is erected in the transmission corridor and random line expected fault verification is considered to meet the requirements of existing lines. The configuration goal is to minimize the sum of the line loss cost of power grid operation and the construction cost of power grid erection. Finally, the model is solved by commercial software to obtain the flow optimization and line construction plan, achieving the following effects:
[0194] 1. It can meet the needs of energy conservation and loss reduction of power grid, reduce power grid line losses, reduce power grid operation costs, and reduce carbon emissions of the power system;
[0195] 2. It can obtain a grid line expansion plan that meets the grid safety verification when the grid is operating at reduced losses, and reduce the investment cost of grid line construction.
[0196] A specific embodiment is described below.
[0197] Select the garver 6-node system as an example, as shown in the attached Figure 4 As shown. There are 6 nodes in the system with a total node load of 500MW; there are 3 thermal power unit nodes with a total unit capacity of 1110MW; there are 8 transmission lines in the power grid, 15 types of lines can be built between the nodes, and up to 4 new lines can be built. The parameters of each existing and to-be-built line are known. The on-grid electricity price is 371.65 yuan / MWh, the line cost is 282,100 yuan / km, the social discount rate is 10%, and the line life cycle is 30 years. After planning using the above method, the power flow adjustment plan for the power grid to operate with the minimum line loss cost and the minimum cost plan for the construction of new lines that meet the safety verification of random line accidents in the power grid are obtained. The unit power generation, voltage adjustment and power flow adjustment plans are shown in Tables 1 and 2, and the line construction plan is in Figure 2 The winning bidders are as follows: solid lines represent existing lines in the network, and dotted lines represent lines to be built in the planning scheme. The annual line loss cost of the flow scheme is 13.809 million yuan, and the annual value of the line investment and construction cost is 2.0947 million yuan.
[0198] Table 1 Unit power generation and node voltage adjustment scheme
[0199]
[0200] Table 2 Line power flow adjustment plan (Note: positive values indicate that power is sent from the S end of the line, and negative values indicate that power is sent from the R end of the line)
[0201]
[0202] Accordingly, the present invention also relates to an electronic device, including a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the above method when executing the computer program. Specifically, the device can be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server.
[0203] Accordingly, the present invention also relates to a computer-readable storage medium having a computer program stored thereon, characterized in that the computer program implements the steps of the above method when executed by a processor. Specifically, the storage medium may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0204] It will be easily understood by those skilled in the art that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A power grid planning method considering line loss and safety, characterized in that: include: Establish AC branch power flow model constraints for existing power grid lines in base state; Introducing binary variable α i ∈{0,1}, establish the power grid transmission corridor expansion model constraint ∑α i ≤N l.build ; For expandable lines, α i =1 means that line i among the expandable lines is planned to be built, α i =0 means that line i among the expandable lines is not planned to be built, N l.build Indicates the upper limit of the number of lines that can be expanded in the power grid; Traverse the fault states of the existing lines, disconnect a different line in each fault state, establish the AC branch power flow model constraints of the existing routes and planned routes of the power grid under each fault state, and use the binary variable α i ∈{0,1} forms the line power flow control constraint For existing lines, α i =0 means that line i is disconnected among the existing lines, α i =1 means that line i among the existing lines is normal; and They represent the apparent power and current at the receiving end of line i under the corresponding fault state, S li.max Indicates the maximum apparent power at the receiving end of line i; Based on the unchanged output of thermal power units before and after the fault, the AC branch power flow model constraints of the joint power grid in the base state and fault state respectively; A cost function including the base-state line loss cost of the existing lines and the cost of the grid line expansion is constructed, and the cost function is solved with the goal of minimizing the cost function to obtain a power flow adjustment and expansion planning scheme.
2. The power grid planning method considering line loss and safety according to claim 1, characterized in that: AC branch power flow model constraints include: Node power balance constraints: Where P gj , Q gj , P dj , Q dj , g j 、b j and V j They are respectively the active power, reactive power, active load, reactive load, conductance, susceptance and voltage square of the generator at node j in the base state; i∈δ S (j) represents the line i at the sending end at node j, and is the active power and reactive power of the input line at the sending end of line i in the base state; i∈δ R (j) represents the receiving end of line i at node j, and is the active power and reactive power of the line sent out by the receiving end of line i in the base state; Line power balance constraints: P i S =P i R +r i I i ; In the formula, r i 、x i and I i are the resistance, conductance and current of circuit i in the ground state respectively; Constraints on the relationship between voltage and current at both ends of the line: Where V i S 、V i R They represent the square of the voltage at the sending and receiving ends of line i in the base state respectively; Power and voltage upper and lower limit constraints: P gj.min ≤P gj ≤P gj.max ; Q gj.min ≤Q gj ≤Q gj.max ; (v j.min ) 2 ≤V j ≤(v j.max ) 2 ; Where P gj.min , P gj.max , Q gj.min , Q gj.max 、v j.min and v j.max are the minimum active power and maximum active power, minimum reactive power and maximum reactive power, minimum voltage and maximum voltage at node j, respectively. is the apparent power at the receiving end of line i in the base state, S li.max is the maximum apparent power at the receiving end of line i; Phase angle relaxation and convex relaxation constraints of line end power:
3. The power grid planning method considering line loss and safety as claimed in claim 2, characterized in that: The AC branch power flow model constraints under each fault state include: Node power balance constraints: In the formula, and They are respectively the active power, reactive power and voltage square output by the generator on node j under fault condition; i∈δ S (j) represents the line i at the sending end at node j, P i S(mn) and is the active power and reactive power of the input line at the sending end of line i under fault condition; i∈δ R (j) represents the line i at the receiving end at node j, P i R(mn) and is the active power and reactive power of the line sent out by the receiving end of line i under fault condition; Line power balance constraints: In the formula, is the current of line i in the fault state; Constraints on the relationship between voltage and current at both ends of the line: Where V i S(mn) and V i R(mn) are the square of the voltage at the sending and receiving ends of line i under fault condition, V i.max is the square of the maximum voltage of line i; Power and voltage upper and lower limit constraints: (V i.min ) 2 ≤V i (mn) ≤(V i.max ) 2 In the formula, is the apparent power at the receiving end of line i under fault condition; Phase angle relaxation and convex relaxation constraints of line end power:
4. The power grid planning method considering line loss and safety as claimed in claim 2 or 3, characterized in that: For the phase angle relaxation and convex relaxation constraints of the line end power, polyhedron approximation is used to solve them. The process of polyhedron approximation solution includes: Establish o-xyz three-dimensional coordinate axis and express the equation as x 2 +y 2 =z 2 In the form of a cone constraint; Use the plane of a polyhedron to approximate the curved surface of a cone, forming a polyhedron approximation of the cone; Let the model solution point P be on the polyhedral plane to obtain the optimal feasible solution, and change the vector It is expressed as: Among them, β n is the introduced variable representing the weight of the linear combination of vectors on the edges of the polyhedron, N is the number of sides of the polyhedron, is the vector formed by the side n of the polyhedron, V n The coordinates are (x n ,y n , z max ), z max is the upper limit of the cone z axis, Introducing binary variables γ n And create constraints: Solve to get the coordinates of point P 5. The power grid planning method considering line loss and safety according to claim 1, characterized in that: The line loss cost is the sum of line loss costs in multiple stages. Each stage corresponds to a different load, and the power grid operates according to the corresponding load in each stage.
6. The power grid planning method considering line loss and safety as claimed in claim 5, characterized in that: A year is divided into a summer maximum load phase and a winter minimum load phase. The power grid operates for half a year in each phase. The line loss cost is the annual line loss cost.
7. The power grid planning method considering line loss and safety according to claim 1, characterized in that: Line loss cost is equal to the grid-connected electricity price cost * line loss, where the calculation formula for line loss is: Among them, N l is the number of existing power grid lines, I i 、r i are the current and resistance of line i respectively.
8. The power grid planning method considering line loss and safety as claimed in claim 1, characterized in that: Grid line expansion cost C build for Among them, r is the social discount rate, n is the service life of the line, c line is the line construction cost per unit length, L i is the length of line i to be built, N l It is the number of existing lines in the power grid. The number of the line to be built is greater than the number of the existing line.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, 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 8 are implemented.
Citation Information
Patent Citations
Power grid planning method considering power transmission and distribution price
CN106487005A
Electric energy quality improvement method of low voltage distribution network distributed energy storage system
CN106803157A
Power grid planning method based on power flow network loss model and line constraint model
CN110991727A
Method and apparatus for determining distributed power supply access capacity, and storage medium
US20180375332A1
