Theoretical line loss analysis method and system of trust region power flow considering inequality constraints

By constructing a reactive power nonlinear programming model and using the trust region algorithm to solve it, the problems of low efficiency, accuracy, and poor convergence in power flow calculations are solved, high-precision line loss analysis of complex power systems is achieved, and the applicable scenarios are expanded.

CN118739271APending Publication Date: 2024-10-01GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410745907.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing line loss analysis methods that solve power flow problems have problems such as low solution efficiency, poor solution accuracy, poor convergence, and limited scope of scenario application. Especially when dealing with large-scale and complex power systems, it is difficult to meet the needs of high accuracy and accuracy. stability requirements.

Method used

By constructing a reactive power nonlinear planning model of the power system and using the trust region algorithm for iterative solution, the optimal power flow calculation results are obtained, and line loss analysis is performed based on the results to directly solve the nonlinear optimization problem, improve the solution efficiency and accuracy, and expand Applicable scenarios.

Benefits of technology

It improves the solution efficiency and accuracy of line loss analysis, expands the applicable scenarios, solves the problem of insufficient convergence of linear power flow calculation, and is suitable for high-precision analysis of complex power systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118739271A_ABST
    Figure CN118739271A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of line loss analysis, and discloses a theoretical line loss analysis method and system for trust region power flow considering inequality constraints, and the method comprises the steps: constructing a reactive nonlinear programming model of a power system through node voltage balance, node reactive inequality constraints and power flow equality constraints of the power system; a trust region algorithm is adopted to carry out iterative solution on a reactive nonlinear programming model of a power system, so that the problem of poor convergence of linearization load flow calculation is solved by directly solving the nonlinear optimization problem; and line loss analysis is carried out on the power system according to the optimal power flow calculation result, and the application range of the solving scene is wide.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of line loss analysis, and in particular to a theoretical line loss analysis method and system for trust region power flow taking into account inequality constraints. Background Art

[0002] Line loss rate is a very important comprehensive economic indicator in the power system. Reducing the line loss rate can improve the transmission efficiency of the power grid, reduce resource waste, reduce power supply costs, and improve the reliability and stability of the power system. In the context of the dual-high power system, a large number of distributed energy sources are connected to the power grid, which puts higher requirements on the theoretical line loss analysis software of the distribution network: not only can it calculate the situation when multi-node distributed energy sources are connected, but also it must be fast and accurate.

[0003] There are two main methods for calculating line loss rate at present. One is to calculate line loss through current, including: root mean square current method, average current method and maximum current method, etc. These methods process the current and finally calculate it through the basic principle of power. The other is to calculate by obtaining the difference between the supply and use of electric energy through flow calculation. Among the distribution network flow calculation methods, there are mainly modified Newton method, loop impedance method, implicit Gaussian method and forward and backward substitution method.

[0004] Among the specific algorithms for power flow calculation, the modified Newton method and the implicit Gaussian method belong to the node method, and the forward and backward substitution method belongs to the branch method. Based on these methods, many scholars have proposed some improved algorithms to shorten the power flow calculation time. Later, a sparse technology was proposed, which greatly improved the efficiency of power flow calculation.

[0005] In recent years, the research on linear power flow calculation methods for distribution networks has gradually developed. The nonlinear terms are linearized by logarithmic transformation of the voltage amplitude, and an approximate linear power flow equation is proposed. The existing line loss analysis methods for solving power flow problems have technical problems in the power flow solution process, such as low solution efficiency, poor solution accuracy, poor convergence, limited scope of application, and difficulty in solving. Summary of the invention

[0006] The present invention provides a theoretical line loss analysis method and system for trust region power flow taking into account inequality constraints, which solves the technical problems of low solution efficiency, poor solution accuracy, poor convergence, limited scope of application and difficulty in solution in the power flow solution process of the existing line loss analysis method for solving power flow problems.

[0007] In view of this, a first aspect of the present invention provides a theoretical line loss analysis method for trust region power flow taking into account inequality constraints, comprising the following steps:

[0008] According to the node voltage balance, node reactive power inequality constraints and power flow equality constraints of the power system, a reactive power nonlinear programming model of the power system is constructed;

[0009] A trust region algorithm is used to iteratively solve the reactive nonlinear programming model of the power system to obtain an optimal power flow calculation result;

[0010] A line loss analysis is performed on the power system according to the optimal power flow calculation result.

[0011] Preferably, the reactive nonlinear programming model of the power system is:

[0012] minf(x)=0

[0013] stc(x)=0

[0014] h(x)≥0

[0015] Where f(x) represents the objective function, st represents the constraint symbol, c(x) and h(x) represent equality constraints and inequality constraints respectively, and x represents the variable.

[0016] Preferably, the step of iteratively solving the reactive nonlinear programming model of the power system using a trust region algorithm to obtain an optimal power flow calculation result specifically includes:

[0017] The reactive nonlinear programming model of the power system is converted into a sub-problem of a PQ node, and the sub-problem of the PQ node is expressed as:

[0018]

[0019] In the formula, ρ represents the multiplication factor, represents the function for finding the gradient of the objective function, k represents the number of iterations, x (k) represents the solution in the kth iteration, d represents the iteration step size, represents the Hamiltonian operator, λ (k) represents the Lagrange multiplier in the kth iteration, c(x (k) ) represents the value of the equality constraint in the kth iteration, T represents the matrix transpose symbol, represents the Hessian matrix, where represents the function for finding the gradient of the equality constraint, h(x (k) ) represents the value of the inequality constraint in the kth iteration;

[0020] Optimizing and solving the sub-problems of the PQ node based on a preset trust region radius;

[0021] Determine whether the subproblem of the PQ node has no solution;

[0022] If the sub-problem of the PQ node has no solution, perform feasibility recovery on the sub-problem of the PQ node;

[0023] Determine whether the sub-problem of the PQ node after feasibility recovery meets the preset sufficient descent condition;

[0024] If it is determined that the subproblem of the PQ node after the feasibility is restored does not meet the preset sufficient descent condition, the trust region radius is adjusted and the number of iterations is increased by 1, the preset trust region radius is updated according to the adjusted trust region radius, and the constraint of the trust region radius is added to the subproblem of the PQ node, and then the step of optimizing and solving the subproblem of the PQ node based on the preset trust region radius is performed until the subproblem of the PQ node meets the preset sufficient descent condition, and the trust region radius is stopped to be adjusted and the solution corresponding to the subproblem of the PQ node is output;

[0025] Determine whether the solution corresponding to the sub-problem of the PQ node meets the preset convergence condition;

[0026] If it is determined that the solution corresponding to the subproblem of the PQ node satisfies the preset convergence condition, the solution corresponding to the subproblem of the PQ node is output as the optimal solution;

[0027] If it is determined that the solution corresponding to the subproblem of the PQ node does not meet the preset convergence condition, the number of iterations is increased by 1, and the process proceeds to the step of optimizing and solving the subproblem of the PQ node based on the preset trust region radius until it is determined that the solution corresponding to the subproblem of the PQ node meets the preset convergence condition. The iteration stops and the solution corresponding to the subproblem of the PQ node is output as the optimal solution.

[0028] Preferably, the step of performing feasibility recovery on the sub-problem of the PQ node specifically includes:

[0029] The equality constraint and the inequality constraint in the subproblem of the PQ node are constrained to be relaxed to obtain the equality constraint after constraint relaxation and the inequality constraint after constraint relaxation; the equality constraint after constraint relaxation and the inequality constraint after constraint relaxation are respectively:

[0030]

[0031] Preferably, the step of determining whether the subproblem of the PQ node after feasibility recovery satisfies a preset sufficient descent condition specifically includes:

[0032] Determine the iteration step length after constraint relaxation according to the equality constraint after constraint relaxation and the inequality constraint after constraint relaxation;

[0033] The actual reduction value of the sub-problem of the PQ node is determined according to the iteration step size after the constraint relaxation, and the actual reduction value of the sub-problem of the PQ node is:

[0034] Δmerit=(ρω+η 0 )(x (k) )-(ρω+η 0 )(x (k) +αd)

[0035] where ω=||c(x (k) )||1

[0036] η=f(x (k) )

[0037] In the formula, Δmerit represents the actual reduction value of the objective function, ω represents the norm of the equality constraint, and η 0 represents the objective function, α represents the step size factor;

[0038] According to the actual reduction value and the predicted reduction value of the sub-problem of the PQ node, it is judged whether the sub-problem of the PQ node after feasibility recovery meets the preset sufficient reduction condition, and the preset sufficient reduction condition is:

[0039] Δmerit ≥ σΔm

[0040] In the formula, σ represents the reduction coefficient, Δm represents the predicted reduction value, In the formula, represents the original objective function value before reduction, f(x (k) +αd) represent the original objective function value after reduction.

[0041] Preferably, the preset convergence condition is that a difference between the objective function values ​​in the subproblem of the PQ node in two adjacent iterations is less than a preset difference.

[0042] Preferably, the step of performing line loss analysis on the power system according to the optimal power flow calculation result specifically includes:

[0043] Determine the sum of the power supplied by the balancing node and the power supplied by the PV node of the power system according to the optimal power flow calculation result;

[0044] Determine the total power supplied by the power grid based on the sum of the power supplied by the balancing nodes of the power system and the power supplied by the PV nodes;

[0045] Determining theoretical line losses based on the total power supplied by the power grid and the power consumed by load nodes in the power grid;

[0046] The line loss rate of the distribution network is determined according to the theoretical line loss and the total power supplied by the power grid.

[0047] In a second aspect, the present invention further provides a theoretical line loss analysis system for trust region power flow taking into account inequality constraints, comprising:

[0048] The power flow planning module is used to construct a reactive nonlinear planning model of the power system based on the node voltage balance, node reactive power inequality constraints and power flow equality constraints of the power system;

[0049] A solution module, used for iteratively solving the reactive nonlinear programming model of the power system by using a trust region algorithm to obtain an optimal power flow calculation result;

[0050] The line loss analysis module is used to perform line loss analysis on the power system according to the optimal power flow calculation result.

[0051] In a third aspect, the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the theoretical line loss analysis method of the trust region power flow taking into account the inequality constraints as described above.

[0052] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed, implements the steps of the theoretical line loss analysis method of the trust region power flow taking into account inequality constraints as described above.

[0053] It can be seen from the above technical solutions that the present invention has the following advantages:

[0054] The present invention constructs a reactive nonlinear programming model of an electric power system through node voltage balance, node reactive power inequality constraints and power flow equality constraints of the electric power system, and iteratively solves the reactive nonlinear programming model of the electric power system by adopting a trust region algorithm, thereby directly solving the nonlinear optimization problem, solving the problem of poor convergence of linearized power flow calculation, improving the solution efficiency and solution accuracy, and performing line loss analysis on the electric power system according to the optimal power flow calculation results, and having a wide range of applicable solution scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A flowchart of a theoretical line loss analysis method for a trust region power flow taking into account inequality constraints provided by an embodiment of the present invention;

[0056] Figure 2 A schematic diagram of the structure of a theoretical line loss analysis system for a trust region power flow taking into account inequality constraints provided by an embodiment of the present invention;

[0057] Figure 3A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0059] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.

[0060] At present, the existing line loss analysis method for solving power flow problems has some shortcomings in the power flow solution module, including: the existing power flow solution method has low computational efficiency and takes a long time when dealing with large-scale complex systems. This means that in practical applications, it takes a lot of time to perform power flow calculations, which affects the efficiency of engineering design and operation. When there are methods for solving power flow, the accuracy sometimes cannot meet the actual needs, especially for some power grid systems that require high precision or scenes with high sensitivity, the accuracy of the existing methods may not be enough. At present, the solution of power flow is mostly solved by linearized power flow. When the power flow is solved by linearization, the solution is solved by Taylor expansion ignoring high-order terms. During the iteration process, due to the large difference in initial values ​​between the two iterations, especially the lack of objective function guidance for the voltage amplitude, whether the second iteration is far away from the initial value of the first calculation leads to higher instability of the solution of the entire system and poor convergence. The existing power flow solution method ignores the upper and lower limits of PV node output for most of the time, and its scope of application is limited to a certain extent, making it difficult to cope with complex and changeable power system conditions. With the continuous expansion of the scale and complexity of modern power grids, traditional power flow algorithms based on Newton-Raphson method or fast decoupling method often cannot guarantee reliable convergence. The premise of PQ fast decoupling method is only applicable to transmission network and not to distribution network.

[0061] In view of this, the embodiments of the present invention can be applicable to the case of line loss analysis of the distribution network. The method can be executed by a line loss analysis device of the distribution network. The line loss analysis device of the distribution network can be implemented in the form of hardware and / or software. The line loss analysis device of the distribution network can be configured in a computer device.

[0062] For easier understanding, see Figure 1 , Figure 1 The flow chart of a theoretical line loss analysis method of a trust region power flow taking into account inequality constraints provided by the present invention is illustrated. A theoretical line loss analysis method of a trust region power flow taking into account inequality constraints provided by the present invention comprises the following steps S1 to S3:

[0063] Step S1, constructing a reactive nonlinear programming model of the power system according to node voltage balance, node reactive power inequality constraints and power flow equality constraints of the power system.

[0064] Among them, in the embodiment of the present invention, the reactive power constraints of the balancing nodes and PV nodes in the power system are taken into consideration, wherein the PV node refers to the grid node whose active power and voltage amplitude are given, and the reactive power and voltage phase of the node are quantities to be determined. Such nodes must have sufficient adjustable reactive capacity to maintain a given voltage amplitude, and are therefore also called "voltage control nodes."

[0065] In the power flow calculation, considering the upper and lower limits of the reactive output of the generator is conducive to maintaining the stability of the system. This is very important for maintaining the voltage level and avoiding power flow overload. In this embodiment, the reactive nonlinear programming model of the power system is constructed with the goal of minimizing the voltage amplitude and the reactive output of the reference node and the PV node as constraints.

[0066] The reactive nonlinear programming model of the power system is:

[0067] min|U2-U set,Vtheta | 2 +|U3-U set,PV | 2

[0068] QUR 2min ≤Q2≤Q 2max

[0069] Q 3min ≤Q3≤Q 3max

[0070] Where U2 represents the voltage amplitude of the reference node, U3 represents the voltage amplitude of the PV node; U set,Vtheta Indicates the voltage reference value of the reference node, U set,PV It represents the voltage reference value of the PV node. Q2 and Q3 represent the actual reactive power output of the reference node and PV node respectively.2min and Q 2max They represent the lower and upper limits of reactive power output of the reference node, Q 3min and Q 3max They represent the lower and upper limits of the reactive power output of the PV node respectively.

[0071] Among them, the three types of nodes in the power system are defined as follows: known quantities include the voltage amplitude and phase angle of the balancing node, the active power and voltage amplitude of the PV node, and the active and reactive power of the PQ node; unknown quantities include the active and reactive power of the balancing node, the reactive power and voltage phase angle of the PV node, and the voltage amplitude and phase angle of the PQ node.

[0072] In addition to the inequality constraints representing the output limits of the generator nodes, the model also contains equality constraints representing the power flow equations:

[0073]

[0074]

[0075] In the formula, ΔP i , ΔQ i Respectively represent the active difference and reactive difference of the i-th node, P i and Q i Represent the active and reactive power of the ith node, U i and U j Represents the voltage amplitude of the i-th node and the j-th node. ij and B ij denote the conductance and susceptance of the i-th node and the j-th node, respectively, δ ij It represents the phase difference between the i-th node and the j-th node. The inequality constraint is relaxed to change it into the form of Q(x) = 0. At this time, combined with the above equality constraint, the reactive nonlinear programming model of the power system can be unified into the following form:

[0076] minf(x)=0

[0077] stc(x)=0

[0078] h(x)≥0

[0079] Where f(x) represents the objective function, st represents the constraint symbol, c(x) and h(x) represent equality constraints and inequality constraints respectively, and x represents the variable.

[0080] Step S2: using a trust region algorithm to iteratively solve the reactive nonlinear programming model of the power system to obtain an optimal power flow calculation result.

[0081] Specifically, step S2 includes:

[0082] Step S201: convert the reactive nonlinear programming model of the power system into a sub-problem of a PQ node. The sub-problem of the PQ node is expressed as:

[0083]

[0084] In the formula, ρ represents the multiplication factor, represents the function for finding the gradient of the objective function, k represents the number of iterations, x (k) represents the solution in the kth iteration, d represents the iteration step size, represents the Hamiltonian operator, λ (k) represents the Lagrange multiplier in the kth iteration, c(x (k) ) represents the value of the equality constraint in the kth iteration, T represents the matrix transpose symbol, represents the Hessian matrix, where represents the function for finding the gradient of the equality constraint, h(x (k) ) represents the value of the inequality constraint in the kth iteration.

[0085] It should be noted that the embodiment of the present invention takes into account the PV node over-limit and converts it into a PQ node power flow solution method with a wide range of applications. It solves the problem that the reactive output of the PV node was ignored in the power flow calculation before, which greatly limits the applicable scenarios. It also solves the shortcomings of the linear power flow calculation in terms of convergence by directly solving the nonlinear optimization problem.

[0086] Step S202: Optimize and solve the sub-problems of the PQ nodes based on the preset trust region radius.

[0087] An initial value may be set in advance for the trust region radius. In the present invention, the initial value of the trust region radius is set to Δ=10.

[0088] Step S203: Determine whether the sub-problem of the PQ node has no solution.

[0089] Step S204: If the sub-problem of the PQ node has no solution, perform feasibility recovery on the sub-problem of the PQ node.

[0090] It should be noted that if x in the original problem (k) Failure to satisfy the constraints will result in the sub-problem of the PQ node being unsolvable, and it is necessary to perform feasibility recovery on the sub-problem of the PQ node, thereby relaxing the constraints in the original problem. In the embodiment of the present invention, the l1relaxation method is adopted, which specifically includes:

[0091] The equality constraints and inequality constraints in the subproblems of the PQ nodes are relaxed to obtain the equality constraints and inequality constraints after the relaxation of the constraints; the equality constraints and inequality constraints after the relaxation of the constraints are respectively:

[0092]

[0093] At this time, an iteration step is obtained by solving the above linear programming problem.

[0094] It should also be noted that if it is determined that the subproblem of the PQ node has a solution, the step of determining whether the subproblem of the PQ node satisfies a preset sufficient descent condition is entered.

[0095] Step S205: Determine whether the sub-problem of the PQ node after feasibility recovery satisfies the preset sufficient descent condition.

[0096] The sufficient descent condition is the Armijo condition. Specifically, step S205 includes:

[0097] Step S2051, determining the iteration step length after constraint relaxation according to the equality constraint after constraint relaxation and the inequality constraint after constraint relaxation.

[0098] Step S2052: determine the actual reduction value of the sub-problem of the PQ node according to the iteration step after the constraint relaxation. The actual reduction value of the sub-problem of the PQ node is:

[0099] Δmerit=(ρω+η 0 )(x (k) )-(ρω+η 0 )(x (k) +αd)

[0100] where ω=||c(x (k) )||1

[0101] η=f(x (k) )

[0102] In the formula, Δmerit represents the actual reduction value of the objective function, ω represents the norm of the equality constraint, and η 0 represents the objective function, and α represents the step size factor.

[0103] In this embodiment, the step factor may be 1.

[0104] Step S2053: judging whether the sub-problem of the PQ node after feasibility recovery satisfies a preset sufficient reduction condition according to the actual reduction value and the predicted reduction value of the sub-problem of the PQ node, wherein the preset sufficient reduction condition is:

[0105] Δmerit ≥ σΔm

[0106] In the formula, σ represents the reduction coefficient, Δm represents the predicted reduction value, In the formula, represents the original objective function value before reduction, f(x (k) +αd) represent the original objective function value after reduction.

[0107] Step S206: If it is determined that the subproblem of the PQ node after feasibility recovery does not meet the preset sufficient descent condition, the trust region radius is adjusted and the number of iterations is increased by 1. The preset trust region radius is updated according to the adjusted trust region radius, and the trust region radius constraint is added to the subproblem of the PQ node. Then go to step S202 until the subproblem of the PQ node meets the preset sufficient descent condition, stop adjusting the trust region radius and output the solution corresponding to the subproblem of the PQ node.

[0108] If the subproblem of the PQ node after the feasibility recovery satisfies the preset sufficient descent condition, then x is accepted. (k+1) =x (k) +αd,f(x (k+1) )=f(x (k) +αd).

[0109] Among them, after updating the preset trust region radius and adding the trust region radius constraint to the sub-problem of the PQ node, the sub-problem of the PQ node becomes:

[0110]

[0111] Step S207: Determine whether the solution corresponding to the sub-problem of the PQ node satisfies a preset convergence condition.

[0112] The preset convergence condition is that the difference between the objective function values ​​in the subproblem of the PQ node in two adjacent iterations is less than the preset difference. The preset difference can be set to 10 -4 ,Right now,

[0113] f(x (k) )-f(x (k+1) )≤10 -4

[0114] Step S208: If it is determined that the solution corresponding to the sub-problem of the PQ node meets the preset convergence condition, the solution corresponding to the sub-problem of the PQ node is output as the optimal solution;

[0115] Step S209: If it is determined that the solution corresponding to the subproblem of the PQ node does not meet the preset convergence condition, the number of iterations is increased by 1, and the process goes to step S202 until the solution corresponding to the subproblem of the PQ node meets the preset convergence condition. The iteration stops and the solution corresponding to the subproblem of the PQ node is output as the optimal solution.

[0116] Step S3: performing line loss analysis on the power system according to the optimal power flow calculation result.

[0117] Specifically, step S3 includes:

[0118] Step S301: Determine the sum of the power supplied by the balancing nodes and the power supplied by the PV nodes of the power system according to the optimal power flow calculation result.

[0119] Step S302: determine the total power supplied by the power grid according to the sum of the power supplied by the balancing nodes of the power system and the power supplied by the PV nodes.

[0120] The calculation formula for the total power supplied by the power grid is:

[0121] P ∑ =P2+∑P3

[0122] Where P ∑ represents the total power supplied by the power grid, P2 represents the power supplied by the balancing node, ∑P3 represents the total power supplied by the PV node, and both P2 and ∑P3 can be obtained from the results of the power flow calculation.

[0123] Step S303: Determine the theoretical line loss according to the total power supplied by the power grid and the power consumed by the load nodes in the power grid.

[0124] Among them, the calculation formula of theoretical line loss is expressed as:

[0125] P loss =P ∑ -∑P1

[0126] Where P loss represents the theoretical line loss, and ∑P1 represents the power consumed by the load node in the power grid.

[0127] Step S304: determining the line loss rate of the distribution network according to the theoretical line loss and the total power supplied by the power grid.

[0128] need

[0129] Among them, the distribution network line loss rate η can be expressed as:

[0130]

[0131] It should be noted that the present invention constructs a reactive nonlinear programming model of the power system through the node voltage balance, node reactive power inequality constraints and flow equality constraints of the power system, and iteratively solves the reactive nonlinear programming model of the power system by adopting a trust region algorithm, thereby directly solving the nonlinear optimization problem, solving the problem of poor convergence of linearized flow calculation, improving the solution efficiency and solution accuracy, and performing line loss analysis on the power system according to the optimal flow calculation results, and the solution scenario has a wide range of applicability.

[0132] The above is a detailed description of an embodiment of a theoretical line loss analysis method for trust region power flow taking into account inequality constraints provided by the present invention. The following is a detailed description of an embodiment of a theoretical line loss analysis system for trust region power flow taking into account inequality constraints provided by the present invention.

[0133] like Figure 2 As shown, Figure 2 The structure of a theoretical line loss analysis system of a trust region power flow taking into account inequality constraints provided by the present invention is illustrated. The theoretical line loss analysis system of a trust region power flow taking into account inequality constraints provided by the present invention comprises:

[0134] The power flow planning module 100 is used to construct a reactive nonlinear planning model of the power system according to the node voltage balance, node reactive power inequality constraints and power flow equality constraints of the power system;

[0135] A solution module 200 is used to iteratively solve the reactive nonlinear programming model of the power system using a trust region algorithm to obtain an optimal power flow calculation result;

[0136] The line loss analysis module 300 is used to perform line loss analysis on the power system according to the optimal power flow calculation result.

[0137] like Figure 3 As shown, the present invention also provides an electronic device 10, including a memory 20 and a processor 30, wherein a computer program is stored in the memory 20, and when the computer program is executed by the processor 3030, the processor executes the steps of the theoretical line loss analysis method of the trust region flow taking into account the inequality constraints.

[0138] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed, implements the steps of the theoretical line loss analysis method of the trust region power flow taking into account the inequality constraints as described above.

[0139] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described system, electronic device and computer storage medium can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0140] In several embodiments provided by the present invention, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and a part of a module, a program segment or a code includes one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.

[0141] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, electronic devices, computer storage media and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0142] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0143] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0144] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for executing all or part of the steps of the method described in each embodiment of the present invention through a computer device (which can be a personal computer, a server, or a network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.

[0145] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A theoretical line loss analysis method for trust region power flow taking into account inequality constraints, characterized in that: The following steps are involved: According to the node voltage balance, node reactive power inequality constraints and power flow equality constraints of the power system, a reactive power nonlinear programming model of the power system is constructed; A trust region algorithm is used to iteratively solve the reactive nonlinear programming model of the power system to obtain an optimal power flow calculation result; A line loss analysis is performed on the power system according to the optimal power flow calculation result.

2. The theoretical line loss analysis method of trust region power flow taking into account inequality constraints according to claim 1 is characterized in that: The reactive nonlinear programming model of the power system is: min f(x)=0 stc(x)=0 h(x)≥0 Where f(x) represents the objective function, st represents the constraint symbol, c(x) and h(x) represent equality constraints and inequality constraints respectively, and x represents the variable.

3. The theoretical line loss analysis method of trust region power flow taking into account inequality constraints according to claim 2 is characterized in that: The step of iteratively solving the reactive nonlinear programming model of the power system using a trust region algorithm to obtain an optimal power flow calculation result specifically includes: The reactive nonlinear programming model of the power system is converted into a sub-problem of a PQ node, and the sub-problem of the PQ node is expressed as: h(x (k) )+d≥0 In the formula, ρ represents the multiplication factor, represents the function for finding the gradient of the objective function, k represents the number of iterations, x (k) represents the solution in the kth iteration, d represents the iteration step size, represents the Hamiltonian operator, λ (k) represents the Lagrange multiplier in the kth iteration, c(x (k) ) represents the value of the equality constraint in the kth iteration, T represents the matrix transpose symbol, represents the Hessian matrix, where represents the function for finding the gradient of the equality constraint, h(x (k) ) represents the value of the inequality constraint in the kth iteration; Optimizing and solving the sub-problems of the PQ node based on a preset trust region radius; Determine whether the subproblem of the PQ node has no solution; If the subproblem of the PQ node has no solution, perform feasibility recovery on the subproblem of the PQ node; Determine whether the sub-problem of the PQ node after feasibility recovery meets the preset sufficient descent condition; If it is determined that the subproblem of the PQ node after the feasibility is restored does not meet the preset sufficient descent condition, the trust region radius is adjusted and the number of iterations is increased by 1, the preset trust region radius is updated according to the adjusted trust region radius, and the constraint of the trust region radius is added to the subproblem of the PQ node, and then the step of optimizing and solving the subproblem of the PQ node based on the preset trust region radius is performed until the subproblem of the PQ node meets the preset sufficient descent condition, and the trust region radius is stopped to be adjusted and the solution corresponding to the subproblem of the PQ node is output; Determine whether the solution corresponding to the sub-problem of the PQ node meets the preset convergence condition; If it is determined that the solution corresponding to the subproblem of the PQ node satisfies the preset convergence condition, the solution corresponding to the subproblem of the PQ node is output as the optimal solution; If it is determined that the solution corresponding to the subproblem of the PQ node does not meet the preset convergence condition, the number of iterations is increased by 1, and the process proceeds to the step of optimizing and solving the subproblem of the PQ node based on the preset trust region radius until it is determined that the solution corresponding to the subproblem of the PQ node meets the preset convergence condition. The iteration stops and the solution corresponding to the subproblem of the PQ node is output as the optimal solution.

4. The theoretical line loss analysis method of trust region power flow taking into account inequality constraints according to claim 3 is characterized in that: The step of performing feasibility recovery on the sub-problem of the PQ node specifically includes: The equality constraint and the inequality constraint in the subproblem of the PQ node are constrained to be relaxed to obtain the equality constraint after constraint relaxation and the inequality constraint after constraint relaxation; the equality constraint after constraint relaxation and the inequality constraint after constraint relaxation are respectively:

5. The theoretical line loss analysis method of trust region power flow taking into account inequality constraints according to claim 4 is characterized in that: The step of judging whether the sub-problem of the PQ node after feasibility recovery satisfies the preset sufficient descent condition specifically includes: Determine the iteration step length after constraint relaxation according to the equality constraint after constraint relaxation and the inequality constraint after constraint relaxation; The actual reduction value of the sub-problem of the PQ node is determined according to the iteration step size after the constraint relaxation, and the actual reduction value of the sub-problem of the PQ node is: Δmerit=(ρω+η) 0 )(x (k) )-(ro+h 0 )(x (k) +ad) whereω=||c(x (k) )||1 η=f(x (k) ) In the formula, Δmerit represents the actual reduction value of the objective function, ω represents the norm of the equality constraint, and η 0 represents the objective function, α represents the step size factor; According to the actual reduction value and the predicted reduction value of the sub-problem of the PQ node, it is judged whether the sub-problem of the PQ node after feasibility recovery meets the preset sufficient reduction condition, and the preset sufficient reduction condition is: Δmerit ≥ σΔm In the formula, σ represents the reduction coefficient, Δm represents the predicted reduction value, In the formula, represents the original objective function value before reduction, f(x (k) +αd) represent the original objective function value after reduction.

6. The theoretical line loss analysis method of trust region power flow taking into account inequality constraints according to claim 3 is characterized in that: The preset convergence condition is that the difference between the objective function values ​​in the subproblem of the PQ node in two adjacent iterations is less than a preset difference.

7. The theoretical line loss analysis method of trust region power flow taking into account inequality constraints according to claim 1 is characterized in that: The step of performing line loss analysis on the power system according to the optimal power flow calculation result specifically includes: Determine the sum of the power supplied by the balancing node and the power supplied by the PV node of the power system according to the optimal power flow calculation result; Determine the total power supplied by the power grid based on the sum of the power supplied by the balancing nodes of the power system and the power supplied by the PV nodes; Determining theoretical line losses based on the total power supplied by the power grid and the power consumed by load nodes in the power grid; The line loss rate of the distribution network is determined according to the theoretical line loss and the total power supplied by the power grid.

8. A theoretical line loss analysis system for trust region power flow taking into account inequality constraints, characterized in that: include: The power flow planning module is used to construct a reactive nonlinear planning model of the power system based on the node voltage balance, node reactive power inequality constraints and power flow equality constraints of the power system; A solution module, used for iteratively solving the reactive nonlinear programming model of the power system by using a trust region algorithm to obtain an optimal power flow calculation result; The line loss analysis module is used to perform line loss analysis on the power system according to the optimal power flow calculation result.

9. An electronic device, characterized in that: It comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the theoretical line loss analysis method of the trust region power flow taking into account the inequality constraints as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the steps of the theoretical line loss analysis method of the trust region power flow taking into account inequality constraints as described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Power flow calculation method and system for power system

    CN119474648A