Reactive power and voltage optimization operation method and equipment for distribution network based on SSA-PSO fusion
By using the SSA-PSO fusion algorithm, random walk, and Tent chaos mapping strategies in the distribution network, a reactive power and voltage optimization model is constructed, which solves the problems of slow reactive power optimization and high power loss in the existing technology. Efficient voltage optimization and loss reduction are achieved.
Patent Information
- Application Number
- CN202210328859.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-03-30
AI Technical Summary
The existing reactive power optimization of distribution network based on swarm intelligence algorithm has the disadvantage that the optimization results cannot be obtained quickly, resulting in the system voltage being difficult to meet the requirements and the power loss being high.
An algorithm based on SSA-PSO fusion is used to construct a reactive voltage optimization model. Taking voltage deviation and network loss as the goals, it is transformed into a single objective function through a penalty function, and random walk and Tent chaos mapping strategies are used to update the particle swarm to improve Search accuracy and local search capabilities optimize distribution network operation.
It achieves meeting the voltage requirements of key nodes of the distribution network while reducing power loss, improving the optimization solution accuracy and search efficiency, and improving the economy and safety of the distribution network operation.
Smart Images

Figure CN114792980B
Abstract
Description
Technical Field
[0001] The present invention relates to a distribution network operation control method, and in particular to a distribution network reactive voltage optimization operation method and equipment based on SSA-PSO fusion. Background Art
[0002] The distribution network is the link between the transmission system and the end users, and is one of the core components of the power system. The quality of the distribution of reactive power in the distribution network will directly affect the voltage quality of each node in the system. This is not only directly linked to the user's power experience, but also affects the safety and economy of the entire power grid operation.
[0003] If the reactive power is insufficient, the system voltage will be low, resulting in increased active network losses. In this case, if there are some unexpected disturbances in the system, it is likely to cause the system voltage to fall below the lower limit, causing the system voltage to collapse. Excess reactive power will also cause the system voltage to be high, which will have an adverse effect on the service life of electrical equipment and the insulation of equipment.
[0004] Reactive power optimization of distribution network is an important measure to ensure the economic and safety of system operation, and has received extensive attention in research and actual operation at home and abroad. Reactive power optimization refers to the redistribution of reactive power flow in distribution network by strategically adjusting the tap of on-load tap-changing transformer and switching shunt capacitor banks when the system's active load, active power source and node branch parameters are given, so that one or more indicators of the distribution network are optimized.
[0005] With the development of swarm intelligence algorithms, their applications in reactive power optimization of distribution networks are increasing. However, the current reactive power optimization of distribution networks based on swarm intelligence algorithms still has the disadvantage of not being able to quickly obtain optimization results. Summary of the invention
[0006] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a distribution network reactive voltage optimization operation method and equipment based on SSA-PSO fusion with better optimization effect and high search accuracy, so that the voltage of each key node of the distribution network can meet the requirements while minimizing the power loss of the distribution network.
[0007] The purpose of the present invention can be achieved by the following technical solutions:
[0008] A distribution network reactive power voltage optimization operation method based on SSA-PSO fusion, comprising the following steps:
[0009] 1) Based on the actual parameters of the distribution network, a reactive voltage optimization model is constructed with the goal of optimizing voltage deviation and network loss;
[0010] 2) constructing control variables based on the gear position of the transformer tap and the reactive compensation capacity of each capacitor group, reactor group, and SVG device, and using the SSA-PSO fusion algorithm to solve the reactive voltage optimization model, with the control variables serving as particles in the SSA-PSO fusion algorithm;
[0011] 3) Based on the solution obtained in step 2), control the optimal operation of the distribution network.
[0012] Furthermore, in the reactive voltage optimization model, the voltage deviation and network loss are converted into a single objective function in the form of a penalty function, and the single objective function is expressed as:
[0013]
[0014]
[0015] Where: ΔU i To optimize the voltage deviation of node i before overshoot, P Loss is the active power loss of the line, λ is the penalty factor, n is the number of network nodes, U i , U j is the voltage amplitude of nodes i and j, U imax and U imin is the upper and lower limits of the node i voltage, G ij is the conductance between node i and node j, B ij is the susceptance between node i and node j, δ ij is the voltage phase difference between node i and node j.
[0016] Furthermore, the voltage over-limit deviation ΔU i The calculation rules are:
[0017] When U i ≤U imin When ΔU i =U imin -U i ; when U imin ≤U i ≤U imax When ΔU i =0; when U i ≥U imax When ΔU i =U i -U imax .
[0018] Furthermore, the constraints of the reactive power voltage optimization model include the balance constraints of active power and reactive power between various nodes and the upper and lower limit constraints of various control variables.
[0019] Furthermore, in the SSA-PSO fusion algorithm, the particles in the population are divided into discoverer particles and joiner particles. The position of the discoverer particles is updated using the SSA algorithm, and the speed and position of the joiner particles are updated using the PSO algorithm. In addition, an influencing factor reflecting the change in the ability of the discoverer particles is introduced during the speed update process of the joiner particles.
[0020] Furthermore, the speed update formula of the participant particle is expressed as:
[0021] v ij (t+1)=rr·wv ij (t)+c1r1(p ij (t)-x ij (t))+c2r2(g ij (t)-x ij (t))
[0022] Where: w is the inertia weight, r1 and r2 are random numbers in the interval [0,1], c1 and c2 are learning factors, rr is the influence factor, v ij is the velocity of the ith particle in the jth dimension, p ij is the local extreme value of the ith particle in the jth dimension, g ij is the current global extreme value of the i-th particle, x ij is the position of the ith particle in the j dimension, and t is the current iteration number.
[0023] Furthermore, the calculation formula of the impact factor rr is:
[0024]
[0025] Where: α is the random number in the interval (0,1] used when updating the position of the discoverer particle, iter max is the maximum number of iterations.
[0026] Furthermore, in the SSA-PSO fusion algorithm, when updating the population, a random number rand is generated, rand∈(0,1). If rand is greater than 0.5, a random walk is used to update the population, otherwise a chaotic mapping is used to update the population.
[0027] Furthermore, the chaotic map is a Tent chaotic map.
[0028] The present invention also provides an electronic device, comprising one or more processors, a memory and one or more programs stored in the memory, wherein the one or more programs include instructions for executing the reactive power voltage optimization operation method of the distribution network as described above.
[0029] Compared with the prior art, the present invention has the following beneficial effects:
[0030] 1. The present invention constructs a reactive voltage optimization model with the goal of optimizing active network loss and voltage deviation. The distribution network is optimized by solving the reactive voltage optimization model, so that the voltage of each key node of the distribution network can meet the requirements while minimizing the power loss of the distribution network.
[0031] 2. The present invention adopts the SSA-PSO fusion algorithm to optimize and solve the reactive voltage optimization model with high solution accuracy.
[0032] 3. Aiming at the problem that the traditional particle swarm algorithm has low local search ability and search accuracy during large-scale search, the present invention uses two strategies, random walk and Tent chaotic mapping, to first update the optimal sparrow individual to improve the algorithm performance, and then uses the advantages of the improved sparrow search algorithm with a large search range and fast position update speed to integrate and optimize the traditional particle swarm algorithm, effectively improving the local search ability and search accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a flow chart of the SSA-PSO fusion algorithm of the present invention. DETAILED DESCRIPTION
[0034] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0035] This embodiment provides a distribution network reactive power voltage optimization operation method based on SSA-PSO fusion, including the following steps:
[0036] 1) Perform power flow calculation according to the real-time load conditions to obtain the current operation status of the distribution network, obtain the actual parameters of the distribution network, and build a reactive voltage optimization model with the goal of optimizing voltage deviation and network loss;
[0037] 2) constructing control variables based on the gear position of the transformer tap and the reactive compensation capacity of each capacitor group, reactor group, and SVG device, and using the SSA-PSO fusion algorithm to solve the reactive voltage optimization model, with the control variables serving as particles in the SSA-PSO fusion algorithm;
[0038] 3) Based on the solution obtained in step 2), control the optimal operation of the distribution network.
[0039] The above method aims to optimize the active network loss and voltage deviation, and adopts the improved sparrow search and particle swarm algorithm fusion method to optimize the flow and distribution of reactive power in the distribution network. To a large extent, it can simultaneously optimize the network loss of the distribution network and the voltage of the key nodes of the distribution network.
[0040] 1. Reactive power voltage optimization model
[0041] (1) Objective function
[0042] The main goal is to optimize the active network loss and voltage deviation. In order to take into account both network loss and voltage quality, the objective function is formed in the form of a penalty function as follows:
[0043]
[0044]
[0045] Where: ΔU i ——The voltage deviation of node i before optimization, when U i ≤U imin When ΔU i =U imin -U i ; when U imin ≤U i ≤U imax When ΔU i =0; when U i ≥U imax When ΔU i =U i -U imax
[0046] P Loss ——active power network loss of the line;
[0047] n——number of network nodes;
[0048] U i ——voltage amplitude at node i;
[0049] U imax , U imin ——The upper and lower limits of the voltage at node i;
[0050] G ij ——Conductance between node i and node j;
[0051] B ij ——The susceptance between node i and node j;
[0052] δ ij ——The voltage phase angle difference between node i and node j;
[0053] λ——penalty factor.
[0054] (2) Constraints
[0055] The constraints of the reactive power and voltage optimization model include the balance constraints of active power and reactive power between nodes and the upper and lower limit constraints of each control variable. The former is an equality constraint and the latter is an inequality constraint.
[0056] 1) Equality constraints:
[0057]
[0058] Where:
[0059] ΔP i ——The algebraic sum of the active power of the generators (including distributed generation DG, if any) and loads in node i;
[0060] ΔQ i ——The algebraic sum of the reactive power of the generator and the load in node i;
[0061] U i ——voltage amplitude of node i;
[0062] G ij ——conductance between node i and node j;
[0063] B ij ——the susceptance between node i and node j;
[0064] δ ij ——The voltage phase angle difference between node i and node j.
[0065] 2) Inequality constraints:
[0066] In the control strategy for the voltage regulating device, the control variables include the gear position of the transformer tap and the reactive compensation capacity of each capacitor bank, reactor bank, and SVG device. The control variables can be expressed as:
[0067]
[0068] Where: T i ——The position of the transformer tap;
[0069] Q ci ——The capacity of the capacitor at the i-th node;
[0070] Q Ri ——The capacity of the reactor group at the i-th node;
[0071] Q SVGi ——Capacity of the SVG device at the i-th node.
[0072] The control variable constraints mainly include the transformer tap position T i , capacitor bank reactive compensation capacity Q c , Reactor group reactive compensation capacity Q R 、SVG device reactive compensation capacity Q SVG , and its constraint expression is shown in (5).
[0073]
[0074] Where: T imax , T imin ——The upper and lower limits of the transformer tap position;
[0075] Q cimax , Q cimin ——The upper and lower limits of reactive power output of the capacitor device at node i;
[0076] Q Rimax , Q Rimin ——The upper and lower limits of reactive output of the reactance device at node i.
[0077] Q SVG imax , Q SVG imin ——The upper and lower limits of reactive power output of SVG device at node i.
[0078] 2. Traditional PSO algorithm
[0079] The traditional PSO algorithm is a population intelligence optimization algorithm inspired by the regular clustering activities of birds, and has the ability to globally iterate and optimize. The particle swarm algorithm has a simple structure and good robustness, so it is often used to solve the optimal solution problem.
[0080] The particle swarm algorithm simulates the behavior of birds hunting for food, corresponding to each particle in the multidimensional space to obtain an individual solution in the multidimensional space. During the search process of the particle swarm algorithm, each particle will be given two-dimensional attributes of speed and position. When each particle is iteratively updated at different times, its motion law can be expressed as:
[0081]
[0082] Where: v ij is the velocity of the ith particle in the j dimension; p ij is the local extreme value of the ith particle in the jth dimension; g ij is the current global extreme value of the i-th particle; x ij is the position of the i-th particle in the j-dimension; t is the current iteration number; w is the inertia weight, w max and w minare the maximum inertia weight value and the minimum inertia weight value, respectively. They are usually the given values at the time of initialization. r1 and r2 are random numbers in the interval [0,1]. c1 and c2 are learning factors. loopcount is the maximum number of iterations.
[0083] 3. Improved SSA algorithm
[0084] The Sparrow Search Algorithm (SSA) is a new population optimization algorithm inspired by the foraging behavior and predator evasion behavior of sparrows. Compared with traditional optimization algorithms, the Sparrow Algorithm has the advantages of strong optimization ability and fast convergence speed. In the global foraging activity, the sparrow that plays the role of discoverer provides the search direction and area within a certain range; the sparrow that plays the role of joiner searches according to the search information provided by the discoverer; the sparrow that plays the role of vigilant uses anti-predator strategies to avoid the population search from falling into the local optimum.
[0085] Suppose that the position of each sparrow in the J-dimensional solution space is X = (x1, x2, ..., x d ), fitness value f i =f(x1,x2,…x d ), the number of discoverers and joiners in the entire sparrow group is constant, and every time a joiner is added, a discoverer is reduced.
[0086] The formula for updating the position of each generation discoverer is as follows:
[0087]
[0088] In the formula, are the positions of the i-th sparrow in the j-dimension in the t-th and t+1-th iterations respectively; α is a random number in the interval (0,1]; R2 is the warning value in the interval (0,1], ST is the safety value between [0.5,1]; Q is a random number with normal distribution in the interval (0,1]; L is a matrix with all elements set to 1 and a structure of 1×d; iter max is the maximum number of iterations.
[0089] When R2<ST, it indicates that the current environment is safe and the discoverer can find food here. When R2>ST, it indicates that the current environment is dangerous, and some sparrows in the population will alert other companions, signaling them to find food in a safe place.
[0090] The position update formula of the joiner is as follows:
[0091]
[0092] In the formula, x p and x worst are the current best and worst positions respectively; They are the positions of the $i$-th sparrow at the $j$-th dimension in the $t$-th and $(t + 1)$-th iterations respectively; $A$ is a matrix with element values randomly set to 1 or -1 and a structure of $1\times d$, and it satisfies $A + = A T (AA T ) -1 . When $i\gt n / 2$, it indicates that the fitness value is relatively low, and the $i$-th joiner needs to fly to other places to forage. The vigilant sparrows are randomly selected from the explorers and followers, and their role is to avoid the algorithm from falling into local optimum by using the anti-predation strategy of sparrows.
[0093] The traditional sparrow search algorithm uses a random generation method when updating the population, which easily leads to uneven distribution of the sparrow population, thus affecting the global search ability in the later stage. Therefore, the method of the present invention introduces two strategies of random walk and chaotic mapping to update the optimal sparrow individuals, enhancing the performance of the sparrow search algorithm in globally searching for the optimum. Among them, the chaotic mapping can be Tent chaotic mapping or other types of chaotic mapping.
[0094] (1) Random walk
[0095] Let $f(x)$ be a multivariate function with $n$ variables, and $x=(x_1,x_2,\cdots,x n )$ be an $n$-dimensional vector. The steps of the random walk algorithm are as follows:
[0096] Step 1: Initialize the iteration point $x$, step size $\lambda$, and precision $\varepsilon$.
[0097] Step 2: Set the number of iterations $N$, the current iteration number $k$, and $k = 1$.
[0098] Step 3: When $k\lt N$, randomly generate $u=(u_1,u_2,\cdots,u n )$, whose dimension is $n$ and the numerical range is $(-1,1)$, and standardize it to get the formula:
[0099]
[0100] And let $x_1 = x+\lambda u'$, and the first step of the walk ends.
[0101] Step 4: Calculate the function value. When $f(x_1)\lt f(x)$, it indicates that a relatively better point has been searched. At this time, reset $k = 1$, let the current $x_1$ be $x$, and return to Step 2; otherwise $k = k + 1$, and return to Step 3.
[0102] Step 5: If the optimal value cannot be found after $N$ times and $\lambda\lt\varepsilon$, then the optimal solution is within an $N$-dimensional sphere with a radius of $\lambda$ step size and the current optimal solution as the center, and the algorithm ends; otherwise let $\lambda=\lambda / 2$, return to Step 1, and start over.
[0103] (2) Tent chaotic mapping
[0104] Tent mapping has good uniformity and randomness, which can effectively avoid the search from falling into the local optimal solution and improve the global optimization ability of the algorithm. The Tent mapping expression is as follows:
[0105]
[0106] Where: x(t)∈[0,1].
[0107] In the later stage of the traditional sparrow search algorithm, a random number rand is introduced, rand∈(0,1). If rand is greater than 0.5, a random walk is introduced, otherwise a chaotic map is introduced. Since rand is set to a number randomly distributed between (0,1), taking a comparison value of 0.5 can evenly distribute the random walk and chaotic map.
[0108] 4. Improved SSA-PSO fusion algorithm
[0109] Since the improved SSA algorithm has the advantages of a large search range and fast position update speed, it can be integrated with the improved sparrow search algorithm to optimize the particle swarm algorithm. The improved sparrow search algorithm is used to optimize the problems of local search ability and low search accuracy in the large-scale search process in the particle swarm algorithm, so as to achieve the goal of fast convergence. Figure 1 As shown, the specific process of the improved algorithm is as follows:
[0110] Step 1: Initialize the population and determine the proportion of particles in the population that have the ability to find sparrows. The expression of the proportion coefficient a is as follows:
[0111]
[0112] Where: X best is the PN sparrow with the best position, set as the discoverer particle; worst The N-PN sparrows with relatively poor positions are set as the joining particles;
[0113] Step 2: Update the discoverer position. When the alarm value r2 of the discoverer's particle is always less than the safety value ST, the discoverer particle performs a large-scale jump search. The ability update formula of the discoverer particle is as follows:
[0114]
[0115] Where: are the positions of the i-th sparrow in the j-dimension in the t-th and t+1-th iterations respectively; α is a random number in the interval (0,1]; iter max is the maximum number of iterations.
[0116] Step 3: Update the position of the joiner, and the joiner particle is guided by the discoverer particle to search at a normal speed. According to the change of the discoverer particle's ability, the influence factor rr is generated to change the influence of the particle's past position and speed on the present. The calculation formula is as follows:
[0117]
[0118] Where: α is a random number in the interval (0,1]; iter max is the maximum number of iterations. The speed and position update formula of the added particle is as follows:
[0119] v ij (t+1)=rr·wv ij (t)+c1r1(p ij (t)-x ij (t))+c2r2(g ij (t)-x ij (t)) (14)
[0120] x ij (t+1)=x j (t)+v ij (t+1)
[0121] w is the inertia weight, which is used to adjust the local search and global search capabilities. r1 and r2 are random numbers in the interval [0,1]; c1 and c2 are learning factors. The improved sparrow search algorithm is integrated into the particle swarm algorithm, and the large-scale rapid search capability of the improved sparrow search algorithm is used to eliminate the various shortcomings of the traditional PSO algorithm and improve the algorithm convergence speed and performance.
[0122] Step 4: Update the sentinel position and the optimal sparrow position.
[0123] Step 5: Generate a random number rand, rand∈(0,1). If rand is greater than 0.5, the population is updated using random walk, otherwise the population is updated using chaotic mapping.
[0124] Step 6: Return to step 2 until the maximum number of iterations is reached or convergence occurs.
[0125] The above optimization algorithm is used to solve the constructed reactive power voltage optimization model, and the obtained The corresponding control variable The value at the jth dimension in .
[0126] If the above method 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, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0127] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A distribution network reactive power voltage optimization operation method based on SSA-PSO fusion, characterized in that: The following steps are involved: 1) Based on the actual parameters of the distribution network, a reactive voltage optimization model is constructed with the goal of optimizing voltage deviation and network loss; 2) constructing control variables based on the gear position of the transformer tap and the reactive compensation capacity of each capacitor group, reactor group, and SVG device, and using the SSA-PSO fusion algorithm to solve the reactive voltage optimization model, with the control variables serving as particles in the SSA-PSO fusion algorithm; 3) Controlling the optimal operation of the distribution network based on the solution obtained in step 2); In the SSA-PSO fusion algorithm, the particles in the population are divided into discoverer particles and joiner particles. The positions of the discoverer particles are updated using the SSA algorithm, and the speed and position of the joiner particles are updated using the PSO algorithm. In addition, an influencing factor reflecting the change in the ability of the discoverer particles is introduced during the speed update process of the joiner particles. The velocity update formula of the added particle is expressed as: v ij (t+1)=rr·wv ij (t)+c1r1(p ij (t)-x ij (t))+ c2r2(g ij (t)-x ij (t)) Where: w is the inertia weight, r1 and r2 are random numbers in the interval [0,1], c1 and c2 are learning factors, rr is the influence factor, v ij is the velocity of the ith particle in the jth dimension, p ij is the local extreme value of the ith particle in the jth dimension, g ij is the current global extreme value of the i-th particle, x ij is the position of the i-th particle in the j-dimension, and t is the current iteration number; The calculation formula of the impact factor rr is: Where: α is the random number in the interval (0,1] used when updating the position of the discoverer particle, and itermax is the maximum number of iterations.
2. The method for optimizing the reactive power and voltage of distribution network based on SSA-PSO fusion according to claim 1 is characterized in that: In the reactive voltage optimization model, the voltage deviation and network loss are converted into a single objective function in the form of a penalty function, and the single objective function is expressed as: Where: ΔU i To optimize the voltage deviation of node i before overshoot, P Loss is the active power loss of the line, λ is the penalty factor, n is the number of network nodes, U i , U j is the voltage amplitude of nodes i and j, U imax and U imin is the upper and lower limits of the node i voltage, G ij is the conductance between node i and node j, B ij is the susceptance between node i and node j, δ ij is the voltage phase difference between node i and node j.
3. The method for optimizing the reactive power and voltage of distribution network based on SSA-PSO fusion according to claim 2 is characterized in that: The voltage over-limit deviation ΔU i The calculation rules are: WhenU i ≤U imin When ΔU i =U imin -U i ; when U imin ≤U i ≤U imax When ΔU i =0; when U i ≥U imax When ΔU i =U i -U imax .
4. The method for optimizing the reactive power and voltage of distribution network based on SSA-PSO fusion according to claim 1 is characterized in that: The constraints of the reactive power voltage optimization model include the balance constraints of active power and reactive power between various nodes and the upper and lower limit constraints of various control variables.
5. The method for optimizing the reactive power and voltage of distribution network based on SSA-PSO fusion according to claim 1 is characterized in that: In the SSA-PSO fusion algorithm, when updating the population, a random number rand is generated, rand∈(0,1). If rand is greater than 0.5, a random walk is used to update the population, otherwise a chaotic mapping is used to update the population.
6. The method for optimizing the reactive power and voltage of distribution network based on SSA-PSO fusion according to claim 5 is characterized in that: The chaotic map is a Tent chaotic map.
7. An electronic device, characterized in that: It comprises one or more processors, a memory and one or more programs stored in the memory, wherein the one or more programs comprise instructions for executing the reactive power voltage optimization operation method of the distribution network as claimed in any one of claims 1 to 6.
