Method for improving stability of droop-free direct-current micro-grid based on star-graffiti optimization algorithm

By using the StarCrow optimization algorithm in the DC microgrid to optimize system parameters to improve stability, the problem of limited system stability under traditional droop control is solved and the system stability is improved.

CN118676884AActive Publication Date: 2024-09-20GUANGDONG UNIV OF TECH

Patent Information

Application Number
CN202410981085.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-09-20
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

In DC microgrids, traditional droop control is affected by line impedance mismatch and droop characteristics, leading to conflicts between current sharing and voltage regulation. In addition, the parameter coupling effect of high-proportion power electronic equipment affects system stability. Existing methods have little impact on data The measurement accuracy is required to be high, but accurate quantitative results cannot be obtained, making it difficult to effectively improve system stability.

Method used

A method based on the Star-Crow optimization algorithm is used to establish a small-signal model of the vertical flow-free microgrid system, calculate the eigenvalues ​​of the coefficient matrix, set the objective function and optimize the parameters through iteration, so that the dominant mode of the system moves away from the imaginary axis. Improve system stability.

Benefits of technology

The system parameters are iteratively optimized through the Star Crow optimization algorithm, and the optimal parameter solution obtained effectively improves the system stability margin, improves the stability of the DC microgrid, and avoids reliance on high-precision data measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118676884A
    Figure CN118676884A
Patent Text Reader

Abstract

The invention belongs to the field of new energy distributed power generation, and particularly discloses a sag-free direct current micro-grid stability improving method based on a star-graffiti optimization algorithm, which comprises the following steps: firstly, establishing a small signal model of a sag-free direct current micro-grid system, obtaining a coefficient matrix of the system, then calculating a characteristic value of the coefficient matrix, and calculating the stability of the sag-free direct current micro-grid; the method comprises the steps that firstly, a dominant mode of a system and parameters needing to be optimized are obtained, then, an objective function of a star-graffiti optimization algorithm is set, various parameters needed by algorithm iteration are preset, finally, algorithm iteration is carried out to update optimal parameters, the dominant mode of the system is made to move in the direction away from an imaginary axis, and stability improvement is achieved. According to the method, iterative optimization is carried out on the system parameters by using the star-graffiti optimization algorithm, the stability margin of the system is effectively improved by the obtained parameter optimal solution, and the stability of the direct-current micro-grid is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of new energy distributed power generation, and in particular to a method for improving the stability of a vertical flow-free microgrid based on a Nutcracker optimization algorithm. Background Art

[0002] As a key link in the development of distributed energy, DC microgrids have important value and significance in promoting the strategic progress of "carbon peak and carbon neutrality". In DC microgrids, when multiple power sources are connected in parallel, droop control is often used as a method of current sharing, voltage sharing and power distribution. However, traditional droop control is affected by line impedance mismatch, droop characteristics, etc., and there is a contradiction between current sharing and voltage regulation. Therefore, consistency algorithms are often used to achieve droop-free control of DC microgrids, which can achieve current sharing and bus voltage regulation at the same time. However, due to the high proportion of power electronic equipment put into use in DC microgrids, there is a complex coupling effect between the parameters of each converter and the parameters of the main circuit of the system, which will directly affect the stability of the system. Therefore, how to determine the appropriate system parameters has become the key to improving the stability of DC microgrids.

[0003] Chinese patent application number CN202410594313.8 discloses a method, device, electronic device and storage medium for updating the control parameters of a unit when a microgrid is off-grid. The method includes: during the off-grid operation of the microgrid, when any unit in the microgrid is started or exited, obtaining the real-time active power and real-time reactive power of each unit in the microgrid; predicting the maximum active impact value and the maximum reactive impact value according to the real-time active power and real-time reactive power of each unit; determining the control parameters of the microgrid at least according to the maximum active impact value and the maximum reactive impact value; determining and updating the control parameters of each unit according to the control parameters of the microgrid. However, the above scheme relies on the real-time data of the measurement system under different working conditions, and combines the maximum error value allowed by each parameter of the system to determine in which parameter range the system can remain stable. This type of method has high requirements on the accuracy of data measurement and cannot obtain accurate quantitative results.

[0004] Therefore, the present invention proposes a method for improving the stability of a non-downstream vertical flow microgrid based on the Nutcracker Optimization Algorithm (NOA). Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a method for improving the stability of a vertical flow-free microgrid based on a Nutcracker optimization algorithm.

[0006] To achieve the above object, the present invention is implemented according to the following technical solutions:

[0007] A method for improving the stability of a vertical flow-free microgrid based on a Nutcracker optimization algorithm comprises the following steps:

[0008] S1. Establish a small signal model of the microgrid system without vertical flow and obtain the coefficient matrix of the system;

[0009] S2. Calculate the eigenvalues ​​of the coefficient matrix to obtain the dominant mode of the system and the parameters that need to be optimized;

[0010] S3. Set the objective function of the Nutcracker optimization algorithm and preset various parameters required for algorithm iteration;

[0011] S4. Perform algorithm iteration to update optimal parameters, so that the dominant mode of the system moves away from the imaginary axis to achieve improved stability.

[0012] Furthermore, the step S1 comprises:

[0013] S11. The non-downstream vertical flow microgrid system is composed of three power modules, four constant power load modules and their corresponding transmission lines. The power module uses the Boost converter to increase the voltage of the battery, and uses the consistency algorithm and double closed-loop control to ensure the power and voltage sharing among multiple power sources; the constant power load module uses the Buck converter and double closed-loop control to stabilize the load voltage; the small signal model of the non-downstream vertical flow microgrid system is:

[0014]

[0015] In formula (1), Δx sys is the state vector of the microgrid system without vertical flow, Δx sys =[Δx B ,Δx L ,Δx D ] T , Δx B are the state vectors of the three power modules, Δx L is the state vector of the four constant power load modules, Δx D is the state vector of the DC transmission line, A sys is the coefficient matrix of the DC microgrid system, which is specifically expressed as:

[0016]

[0017] In formula (2), A b , B b , D b is the coefficient matrix of the three power modules, A L , B L , D Lis the coefficient matrix of the four constant power load modules, E is the coefficient matrix of the transmission line, and A is the coefficient matrix of the three power modules. b , B b , D b The expression is:

[0018]

[0019] In formula (3), A bn , B bn , D bn is the coefficient matrix of a single power module, n = 1, 2, 3, A bε is the coefficient matrix of the mutual communication part of each power module, ε is the convergence weight of the consistency algorithm, T 1 and T 2 are the communication delay and computation delay of the consensus algorithm, i max is the maximum output current of each power supply, I bn0 is the output current of the battery of each power module in a stable state, I on0 is the output current of each power module in a stable state, U on0 is the output voltage of each power module in a stable state, K n is the current distribution coefficient of each power supply, d n0 is the duty cycle of the Boost converter of each power module in a stable state, R bn , L bn and C sn are the parasitic resistance, filter inductance and support capacitance of each power module, respectively. pun and k iun are the proportional and integral coefficients of the voltage outer loop control in each power module, k pin and k iin are the proportional and integral coefficients of the inner loop current control in each power module, B navg0 is the output variable of the consensus algorithm;

[0020] S12, coefficient matrix A of four constant power load modules L , B L , D L The expression is:

[0021]

[0022] In formula (4), A Ln , B Ln , D Ln is the coefficient matrix of a single constant power load module, n = 1, 2, 3, 4, u Fn0 is the input voltage of each constant power load module in a stable state, i Ln0is the load current of each constant power module in a stable state, g n0 is the duty cycle of the Buck converter of each constant power load module in a stable state, u Ln0 is the load voltage of each constant power load module in a stable state, R Ln , L Ln , C Ln and C Fn is the parasitic resistance, filter inductance, filter capacitance and support capacitance of each constant power load module, P L is the power of the constant power load, k puLn and k iuLn is the proportional and integral coefficient of the voltage outer loop control in each constant power load module, k piLn and k iiLn are the proportional and integral coefficients of the inner loop current control in each constant power load module;

[0023] S13. The expression of the coefficient matrix E of the DC transmission line module is:

[0024]

[0025] In formula (5), R s and L s is the resistance and inductance of the transmission line on the source side, R F and L F is the resistance and inductance of the load-side transmission line, C DC It is the supporting capacitor of the DC bus. The parameter subscripts 1, 2, 3, and 4 are used to distinguish the parameters of different modules.

[0026] Furthermore, the step S2 comprises:

[0027] S21, through the system coefficient matrix A sys The characteristic equation of the system is obtained as:

[0028] |λE 0 -A sys |=0 (6)

[0029] In formula (6), λ is the coefficient matrix A sys The eigenvalue of 0 is the unit matrix; by calculating and solving equation (6), we can get the coefficient matrix A sys The corresponding eigenvalue expression is:

[0030] λ i =σ i +jω i (7)

[0031] In formula (7), λ i is the coefficient matrix A sysThe i-th eigenvalue of A, i = 1, 2, 3…W, W is the coefficient matrix A sys The dimension of i is the real part of the eigenvalue, ω i is the imaginary part of the eigenvalue;

[0032] S22. The dominant mode of the system is the pair of characteristic roots with the largest real part in the system, that is, the pair of characteristic roots closest to the imaginary axis, which plays a dominant role in the stability of the system. The solution expression of the dominant mode is:

[0033]

[0034] In formula (8), q is the qth mode whose real part is not zero, q = 1, 2, 3…W, D s A sys The characteristic root matrix of , Real is the operation of extracting the real part of mode q, R q ,I q are the real and imaginary parts of the dominant mode, Z q is the coordinate of the dominant mode on the complex plane;

[0035] In a DC microgrid system with no-droop control, it is found that when the system parameters on the constant power load side change, the coordinate position of the system's dominant mode changes most sensitively, and has the greatest impact on the stability of the system. It is concluded that the parameters to be optimized in a DC microgrid system with no-droop control are the load-side line length and the power of each load.

[0036] Furthermore, the step S3 comprises:

[0037] S31. In order to improve the stability of the microgrid without vertical flow, the objective function of the algorithm is set as the real part of the dominant mode of the system. The global search capability of the Starling optimization algorithm is used to solve the optimal parameters when the real part of the dominant mode of the system is the smallest, that is, the farthest from the imaginary axis. Therefore, the objective function expression of the algorithm is:

[0038] f(x)=R q =max{Real[D s (q,q)]} (9)

[0039] In formula (9), x is the system parameter to be optimized, that is, the individuals of the nutcracker population in the nutcracker optimization algorithm;

[0040] S32. Assume that the parameter to be optimized is the individual of the nutcracker population in the algorithm, and specify the upper and lower limits of the parameter and the maximum number of iterations T. max , the size of the nutcracker population N, the dimensionality of the nutcracker population D, the probability of selecting a search σ 1 , the first stage search probability P a1 and the second stage search probability P a2 .

[0041] Furthermore, the step S4 comprises:

[0042] S41. There are two search strategies for the nutcracker population: Strategy 1 and Strategy 2. Strategy 1 has two stages: foraging and storage, and Strategy 2 has two stages: finding storage areas and retrieving food. Each iteration of the algorithm will only select one stage in a search strategy to calculate and update the position of the nutcracker individual. The selection formula is:

[0043] σ≤σ 1 (10)

[0044]

[0045] In equations (10) to (12), σ and They are all random numbers between 0 and 1, and they are randomly generated again in each iteration;

[0046] S42, initialize the population, obtain the initial population particles with a population size of N, and substitute them into the objective function of the algorithm to obtain the real part of the dominant mode of the system;

[0047] S43. When both equations (10) and (11) are true, the individuals of the nutcracker population enter the foraging stage, and the update calculation formula of the individuals of the nutcracker population is:

[0048]

[0049] In formula (13), is the new position of the i-th nutcracker after t+1 iterations, i = 1, 2, 3…N, t = 1, 2, 3…T max , is the position of the i-th nutcracker in the j-th dimension at the t-th iteration, j = 1, 2, 3...D, U j and L j are the upper and lower limits of the individual nutcracker in the jth dimension, is the average value of all positions of the current nutcracker population in the jth dimension in iteration t, and are three different individual positions of nutcrackers randomly selected from the jth dimension of the nutcracker population, A, B, C = 1, 2, 3…N, τ 1 , τ 2 , r and r 1 are all random real numbers in the range of [0,1]. γ is a random number calculated based on levy flight. μ is a randomly generated number based on normal distribution, levy flight, and between 0 and 1. The calculation formulas for γ and μ are:

[0050]

[0051] In formula (14), u, v, τ 3 、r 2 and r 3 are all random numbers in the range [0,1], β is a random number in the range [0,2], Γ(·) is the Gamma function, τ 4 is a normally distributed random number, τ 5 The random number calculated for the levy flight;

[0052] S44. When equation (10) holds true and equation (11) does not hold true, the population particles enter the storage stage, and the update calculation formula for the population particles is:

[0053]

[0054] In formula (15), is the position of the i-th nutcracker at the tth iteration, This is the best position the Nutcracker population has ever achieved. and are the positions of two different individual nutcrane individuals randomly selected from the nutcrane population, λ is a random number calculated by levy flight, and l is a value that decreases randomly and linearly from 1 to 0;

[0055] S45. When equation (10) is not true and equation (12) is true, the population particles enter the stage of searching for storage areas, and the update calculation formula of the population particles is:

[0056]

[0057] In equations (16) to (18), τ 6 , τ 7 , τ 8 are all random numbers in the range [0,1]. is the new position of the i-th nutcracker in the j-th dimension after t+1 iterations, is the optimal position of the nutcracker population in the jth dimension so far, is the first-layer reference point of the i-th nutcracker at the t-th iteration, is the second-layer reference point of the i-th nutcracker at the t-th iteration, and The expression is:

[0058]

[0059] In formula (19), α is the convergence coefficient of the reference point, RP is a random position of an individual in the nutcracker population in the current iteration, and θ is a random value in the range of [0,π]. and are the upper and lower limits of individual nutcrackers, A random value of 0 or 1;

[0060] S46. When neither equation (10) nor equation (12) holds true, the population particles enter the food recovery phase, and the update calculation formula for the population particles is:

[0061]

[0062] In equations (20) to (22), f(·) is the objective function of the Nutcracker optimization algorithm;

[0063] S47. Substitute the updated Nudibranch population particles, i.e. the optimized parameters, into the objective function of the algorithm to obtain the fitness value. Only the parameters with better fitness value, i.e. the parameters with smaller real part of the dominant mode than the previous generation, can be retained. Continue to iterate, and the retained formula is:

[0064]

[0065] S48, check whether the number of iterations t reaches the maximum number of iterations T max If it is reached, the particle of the nutcracker population with the best fitness value at this time is output, that is, the optimal parameter is taken as the result, and the iteration ends; otherwise, let t=t+1 and return to step S43.

[0066] Compared with the prior art, the present invention first establishes a small signal model of a vertical flow-free microgrid system, and obtains the coefficient matrix of the system, then calculates the eigenvalues ​​of the coefficient matrix, obtains the dominant mode of the system and the parameters that need to be optimized, then sets the objective function of the Nudibranch optimization algorithm, and presets the various parameters required for algorithm iteration, and finally performs algorithm iteration to update the optimal parameters, so that the dominant mode of the system moves away from the imaginary axis, thereby improving stability. The present invention uses the Nudibranch optimization algorithm to iteratively optimize the system parameters, and the obtained optimal solution of the parameters effectively improves the system stability margin and improves the stability of the DC microgrid. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 It is a flow chart of improving the stability of a microgrid without downward vertical flow in an embodiment of the present invention;

[0068] Figure 2 It is a topological structure diagram of a microgrid system without vertical flow in an embodiment of the present invention;

[0069] Figure 3 It is a control block diagram of a power supply module in a vertical flow-free microgrid system according to an embodiment of the present invention;

[0070] Figure 4 It is a control block diagram of a constant power load module in a vertical flow-free microgrid system according to an embodiment of the present invention;

[0071] Figure 5It is a diagram of the optimization iterative process of the load-side line length and each load power in an embodiment of the present invention;

[0072] Figure 6 It is a characteristic root analysis diagram under the initial parameters of the microgrid system without vertical flow in an embodiment of the present invention;

[0073] Figure 7 This is a characteristic root analysis diagram after optimization of the load-side line length and each load power in the non-downstream vertical flow microgrid system in an embodiment of the present invention. DETAILED DESCRIPTION

[0074] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments. The specific embodiments described herein are only used to explain the present invention and are not used to limit the invention.

[0075] Reference Figure 1 This embodiment exemplarily demonstrates a method for improving the stability of a vertical flow-free microgrid based on the Nudibranch optimization algorithm. The specific steps are as follows:

[0076] S1. Establish a small signal model of the microgrid system without vertical flow and obtain the coefficient matrix of the system; the specific process is as follows:

[0077] S11. Establish a small signal model of a microgrid system without vertical flow and obtain the coefficient matrix of the system:

[0078] The non-downstream vertical flow microgrid system is composed of three power modules, four constant power load modules and their corresponding transmission lines. The power module uses the Boost converter to increase the battery voltage, and uses the consistency algorithm and double closed-loop control to ensure the power and voltage sharing among multiple power sources; the constant power load module uses the Buck converter and double closed-loop control to stabilize the load voltage; the small signal model of the non-downstream vertical flow microgrid system is:

[0079]

[0080] In formula (24), Δx sys is the state vector of the microgrid system without vertical flow, Δx sys =[Δx B ,Δx L ,Δx D ] T , Δx B are the state vectors of the three power modules, Δx L is the state vector of the four constant power load modules, Δx D is the state vector of the DC transmission line, A sys is the coefficient matrix of the DC microgrid system, which is specifically expressed as:

[0081]

[0082] In formula (25), A b , B b , D b is the coefficient matrix of the three power modules, A L , B L , D L is the coefficient matrix of the four constant power load modules, E is the coefficient matrix of the transmission line, and A is the coefficient matrix of the three power modules. b , B b , D b The expression is:

[0083]

[0084] In formula (26), A bn , B bn , D bn is the coefficient matrix of a single power module, n = 1, 2, 3, A bε is the coefficient matrix of the mutual communication part of each power module, ε is the convergence weight of the consistency algorithm, T 1 and T 2 are the communication delay and computation delay of the consensus algorithm, i max is the maximum output current of each power supply, I bn0 is the output current of the battery of each power module in a stable state, I on0 is the output current of each power module in a stable state, U on0 is the output voltage of each power module in a stable state, K n is the current distribution coefficient of each power supply, d n0 is the duty cycle of the Boost converter of each power module in a stable state, R bn , L bn and C sn are the parasitic resistance, filter inductance and support capacitance of each power module, respectively. pun and k iun are the proportional and integral coefficients of the voltage outer loop control in each power module, k pin and k iin are the proportional and integral coefficients of the inner loop current control in each power module, B navg0 is the output variable of the consensus algorithm;

[0085] S12, coefficient matrix A of four constant power load modules L , B L , D L The expression is:

[0086]

[0087] In formula (27), A Ln , B Ln , D Ln is the coefficient matrix of a single constant power load module, n = 1, 2, 3, 4, u Fn0 is the input voltage of each constant power load module in a stable state, i Ln0 is the load current of each constant power module in a stable state, g n0 is the duty cycle of the Buck converter of each constant power load module in a stable state, u Ln0 is the load voltage of each constant power load module in a stable state, R Ln , L Ln , C Ln and C Fn is the parasitic resistance, filter inductance, filter capacitance and support capacitance of each constant power load module, P L is the power of the constant power load, k puLn and k iuLn is the proportional and integral coefficient of the voltage outer loop control in each constant power load module, k piLn and k iiLn are the proportional and integral coefficients of the inner loop current control in each constant power load module;

[0088] S13. The expression of the coefficient matrix E of the DC transmission line module is:

[0089]

[0090] In formula (28), R s and L s is the resistance and inductance of the transmission line on the source side, R F and L F is the resistance and inductance of the load-side transmission line, C DC It is the supporting capacitor of the DC bus. The parameter subscripts 1, 2, 3, and 4 are used to distinguish the parameters of different modules.

[0091] The following step S2 is to calculate the eigenvalues ​​of the coefficient matrix to obtain the dominant mode of the system and the parameters that need to be optimized. The specific process is as follows:

[0092] S21. Calculate the eigenvalues ​​of the coefficient matrix:

[0093] Through the system coefficient matrix A sys The characteristic equation of the system is obtained as:

[0094] |λE 0 -A sys |=0 (29)

[0095] In formula (29), λ is the coefficient matrix A sys The eigenvalue of 0 is the unit matrix; by calculating and solving equation (29), we can get the coefficient matrix A sys The corresponding eigenvalue expression is:

[0096] λ i =σ i +jω i (30)

[0097] In formula (30), λ i is the coefficient matrix A sys The i-th eigenvalue of A, i = 1, 2, 3…W, W is the coefficient matrix A sys The dimension of i is the real part of the eigenvalue, ω i is the imaginary part of the eigenvalue;

[0098] S22. Obtain the dominant mode of the system and the parameters that need to be optimized:

[0099] The dominant mode of the system is the pair of characteristic roots with the largest real part in the system, that is, the closest to the imaginary axis, which plays a dominant role in the stability of the system. The solution expression of the dominant mode is:

[0100]

[0101] In formula (31), q is the qth mode whose real part is not zero, q = 1, 2, 3…W, D s A sys The characteristic root matrix of , Real is the operation of extracting the real part of mode q, R q ,I q are the real and imaginary parts of the dominant mode, Z q is the coordinate of the dominant mode on the complex plane;

[0102] In the DC microgrid system with no droop control, it is found that when the system parameters on the constant power load side change, the coordinate position of the system dominant mode changes most sensitively, which has the greatest impact on the stability of the system. It is concluded that the parameters to be optimized in the DC microgrid system with no droop control are the load-side line length and the power of each load.

[0103] The following step S3 is to set the objective function of the Nutcracker optimization algorithm and preset various parameters required for algorithm iteration. The specific process is as follows:

[0104] S31. Establish the objective function of the Nutcracker optimization algorithm:

[0105] In order to improve the stability of the microgrid without vertical flow, the objective function of the algorithm is set as the real part of the dominant mode of the system. The global search capability of the Nutcracker optimization algorithm is used to solve the optimal parameters when the real part of the dominant mode of the system is the smallest, that is, the farthest from the imaginary axis. Therefore, the objective function expression of the algorithm is:

[0106] f(x)=R q =max{Real[D s (q,q)]} (32)

[0107] In formula (32), x is the system parameter to be optimized, that is, the individuals of the nutcracker population in the nutcracker optimization algorithm;

[0108] S32. Preset various parameters required for algorithm iteration:

[0109] Assume that the parameter to be optimized is the individual of the nutcracker population in the algorithm, and specify the upper and lower limits of the parameter and the maximum number of iterations T max , the size of the nutcracker population N, the dimensionality of the nutcracker population D, the probability of selecting a search σ 1 , the first stage search probability P a1 and the second stage search probability P a2 ;

[0110] The following step S4 is to perform algorithm iteration to update the optimal parameters, so that the dominant mode of the system moves away from the imaginary axis to achieve stability improvement. The specific process is as follows:

[0111] S41. There are two search strategies for the nutcracker population: Strategy 1 and Strategy 2. Strategy 1 has two stages: foraging and storage, and Strategy 2 has two stages: finding storage areas and retrieving food. Each iteration of the algorithm will only select one stage in a search strategy to calculate and update the position of the nutcracker individual. The selection formula is:

[0112] σ≤σ 1 (33)

[0113]

[0114] In equations (33) to (35), σ and They are all random numbers between 0 and 1, and they are randomly generated again in each iteration;

[0115] S42, initialize the population, obtain the initial population particles with a population size of N, and substitute them into the objective function of the algorithm to obtain the real part of the dominant mode of the system;

[0116] S43. When both equations (33) and (34) are true, the individuals of the nutcracker population enter the foraging stage, and the update calculation formula of the individuals of the nutcracker population is:

[0117]

[0118] In formula (36), is the new position of the i-th nutcracker after t+1 iterations, i = 1, 2, 3…N, t = 1, 2, 3…T max , is the position of the i-th nutcracker in the j-th dimension at the t-th iteration, j = 1, 2, 3...D, U j and L j are the upper and lower limits of the individual nutcracker in the jth dimension, is the average value of all positions of the current nutcracker population in the jth dimension in iteration t, and are three different individual positions of nutcrackers randomly selected from the jth dimension of the nutcracker population, A, B, C = 1, 2, 3…N, τ 1 , τ 2 , r and r 1 are all random real numbers in the range of [0,1]. γ is a random number calculated based on levy flight. μ is a randomly generated number based on normal distribution, levy flight, and between 0 and 1. The calculation formulas for γ and μ are:

[0119]

[0120] In formula (37), u, v, τ 3 、r 2 and r 3 are all random numbers in the range [0,1], β is a random number in the range [0,2], Γ(·) is the Gamma function, τ 4 is a normally distributed random number, τ 5 The random number calculated for the levy flight;

[0121] S44. When equation (33) holds true and equation (34) does not hold true, the population particles enter the storage stage, and the update calculation formula of the population particles is:

[0122]

[0123] In formula (38), is the position of the i-th nutcracker at the tth iteration, This is the best position the Nutcracker population has ever achieved. and are the positions of two different individual nutcrane individuals randomly selected from the nutcrane population, λ is a random number calculated by levy flight, and l is a value that decreases randomly and linearly from 1 to 0;

[0124] S45. When equation (33) is not true and equation (35) is true, the population particles enter the stage of searching for storage areas, and the update calculation formula of the population particles is:

[0125]

[0126] In equations (39) to (41), τ 6 , τ 7 , τ 8 are all random numbers in the range [0,1]. is the new position of the i-th nutcracker in the j-th dimension after t+1 iterations, is the optimal position of the nutcracker population in the jth dimension so far, is the first-layer reference point of the i-th nutcracker at the t-th iteration, is the second-layer reference point of the i-th nutcracker at the t-th iteration, and The expression is:

[0127]

[0128] In formula (42), α is the convergence coefficient of the reference point, RP is a random position of an individual in the nutcracker population in the current iteration, and θ is a random value in the range of [0,π]. and are the upper and lower limits of individual nutcrackers, A random value of 0 or 1;

[0129] S46. When neither equation (33) nor equation (35) holds true, the population particles enter the food recovery phase, and the update calculation formula for the population particles is:

[0130]

[0131] In equations (43) to (45), f(·) is the objective function of the Nudibranch optimization algorithm;

[0132] S47. Substitute the updated Nudibranch population particles, i.e. the optimized parameters, into the objective function of the algorithm to obtain the fitness value. Only the parameters with better fitness value, i.e. the parameters with smaller real part of the dominant mode than the previous generation, can be retained. Continue to iterate, and the retained formula is:

[0133]

[0134] S48, check whether the number of iterations t reaches the maximum number of iterations T max If it is reached, the particle of the nutcracker population with the best fitness value at this time is output, that is, the optimal parameter is taken as the result, and the iteration ends; otherwise, let t=t+1 and proceed to step S43.

[0135] To verify the effectiveness of the stability improvement method, a Figure 2The non-downstream vertical flow microgrid system model shown in FIG. 1 is composed of three power modules, four constant power load modules and their corresponding transmission lines. Figure 3 The figure shows the control block diagram of the power module in the vertical flow microgrid system without droop. The consistency algorithm and double closed-loop structure are used in the source-side Boost converter to achieve droop-free control to ensure equal power and voltage distribution among multiple power sources. Figure 4 The figure shows the control block diagram of the constant power load module in the non-downstream vertical flow microgrid system. The voltage and current double closed-loop control is used in the load-side Buck converter to stabilize the load voltage. In the optimization of the load-side line length and the power of each load, the parameters required for the iteration of the Nutcracker optimization algorithm are preset as follows: the maximum number of iterations T max is 100000, the size of the nutcracker population N is 100, the dimension of the nutcracker population D is 8, the upper and lower limits of the load-side line length are [0,1], the upper and lower limits of each load power are [1000,52000], and the selection search probability σ 1 is 0.25, the first stage search probability P a1 is 0.2, the second stage search probability P a2 The algorithm obtains the optimal solutions of load-side line length as 0.29, 0.28, 0.30, and 0.13, and the optimal solutions of each load power as 1346, 1728, 1041, and 47883, respectively. The iterative optimization process is shown in Figure 5 .

[0136] Figure 6 and Figure 7 They are the system characteristic root analysis diagrams under standard operating conditions and after optimization of the load-side line length and each load power. It can be seen that under standard operating conditions, the real part of the system's dominant mode is 3.4, which is located on the right side of the complex plane, indicating that the DC microgrid system is in an unstable state at this time; after optimization of the load-side line length and each load power, the real part of the system's dominant mode becomes -0.55, which is located on the left side of the complex plane, indicating that through the global search capability of the Nutcracker optimization algorithm, the optimal solution of the load-side line length and each load power is accurately obtained, allowing the system's dominant mode to move away from the imaginary axis, effectively improving the system stability margin and achieving stability improvement of the no-downward vertical flow microgrid system.

[0137] The technical solution of the present invention is not limited to the above-mentioned specific embodiments. All technical variations made according to the technical solution of the present invention fall within the protection scope of the present invention.

Claims

1. A method for improving the stability of a vertical flow-free microgrid based on a Nutcracker optimization algorithm, characterized in that: The following steps are involved: S1. Establish a small signal model of the microgrid system without vertical flow and obtain the coefficient matrix of the system; S2. Calculate the eigenvalues ​​of the coefficient matrix to obtain the dominant mode of the system and the parameters that need to be optimized; S3. Set the objective function of the Nutcracker optimization algorithm and preset various parameters required for algorithm iteration; S4. Perform algorithm iteration to update optimal parameters, so that the dominant mode of the system moves away from the imaginary axis to achieve improved stability.

2. The method for improving the stability of a microgrid without vertical flow based on the Nutcracker optimization algorithm according to claim 1 is characterized in that: The step S1 comprises: S11. The non-downstream vertical flow microgrid system is composed of three power modules, four constant power load modules and their corresponding transmission lines. The power module uses the Boost converter to increase the voltage of the battery, and uses the consistency algorithm and double closed-loop control to ensure the power and voltage sharing among multiple power sources; the constant power load module uses the Buck converter and double closed-loop control to stabilize the load voltage; the small signal model of the non-downstream vertical flow microgrid system is: In formula (1), Δx sys is the state vector of the microgrid system without vertical flow, Δx sys =[Δx B ,Δx L ,Δx D ] T , Δx B are the state vectors of the three power modules, Δx L is the state vector of the four constant power load modules, Δx D is the state vector of the DC transmission line, A sys is the coefficient matrix of the DC microgrid system, which is specifically expressed as: In formula (2), A b , B b , D b is the coefficient matrix of the three power modules, A L , B L , D L is the coefficient matrix of the four constant power load modules, E is the coefficient matrix of the transmission line, and A is the coefficient matrix of the three power modules. b , B b , D b The expression is: In formula (3), A bn , B bn , D bn is the coefficient matrix of a single power module, n = 1, 2, 3, A bε is the coefficient matrix of the mutual communication part of each power module, ε is the convergence weight of the consistency algorithm, T1 and T2 are the communication delay and calculation delay of the consistency algorithm respectively, i max is the maximum output current of each power supply, I bn0 is the output current of the battery of each power module in a stable state, I on0 is the output current of each power module in a stable state, U on0 is the output voltage of each power module in a stable state, K n is the current distribution coefficient of each power supply, d n0 is the duty cycle of the Boost converter of each power module in a stable state, R bn , L bn and C sn are the parasitic resistance, filter inductance and support capacitance of each power module, respectively. pun and k iun are the proportional and integral coefficients of the voltage outer loop control in each power module, k pin and k iin are the proportional and integral coefficients of the inner loop current control in each power module, B navg0 is the output variable of the consensus algorithm; S12, coefficient matrix A of four constant power load modules L , B L , D L The expression is: In formula (4), A Ln , B Ln , D Ln is the coefficient matrix of a single constant power load module, n = 1, 2, 3, 4, u Fn0 is the input voltage of each constant power load module in a stable state, i Ln0 is the load current of each constant power module in a stable state, g n0 is the duty cycle of the Buck converter of each constant power load module in a stable state, u Ln0 is the load voltage of each constant power load module in a stable state, R Ln , L Ln , C Ln and C Fn is the parasitic resistance, filter inductance, filter capacitance and support capacitance of each constant power load module, P L is the power of the constant power load, k puLn and k iuLn is the proportional and integral coefficient of the voltage outer loop control in each constant power load module, k piLn and k iiLn are the proportional and integral coefficients of the inner loop current control in each constant power load module; S13. The expression of the coefficient matrix E of the DC transmission line module is: In formula (5), R s and L s is the resistance and inductance of the transmission line on the source side, R F and L F is the resistance and inductance of the load-side transmission line, C DC It is the supporting capacitor of the DC bus. The parameter subscripts 1, 2, 3, and 4 are used to distinguish the parameters of different modules.

3. The method for improving the stability of a microgrid without downflow based on the Nutcracker optimization algorithm according to claim 2 is characterized in that: The step S2 comprises: S21, through the system coefficient matrix A sys The characteristic equation of the system is obtained as: |λE0-A sys |=0 (6) In formula (6), λ is the coefficient matrix A sys The eigenvalue of , E0 is the unit matrix; by calculating and solving equation (6), we can get the coefficient matrix A sys The corresponding eigenvalue expression is: l i =s i +jω i (7) In formula (7), λ i is the coefficient matrix A sys The i-th eigenvalue of A, i = 1, 2, 3…W, W is the coefficient matrix A sys The dimension of i is the real part of the eigenvalue, ω i is the imaginary part of the eigenvalue; S22. The dominant mode of the system is the pair of characteristic roots with the largest real part in the system, that is, the closest to the imaginary axis, which plays a dominant role in the stability of the system. The solution expression of the dominant mode is: In formula (8), q is the qth mode whose real part is not zero, q = 1, 2, 3…W, D s A sys The characteristic root matrix of , Real is the operation of extracting the real part of mode q, R q ,I q are the real and imaginary parts of the dominant mode, Z q is the coordinate of the dominant mode on the complex plane; In a DC microgrid system with no-droop control, it is found that when the system parameters on the constant power load side change, the coordinate position of the system's dominant mode changes most sensitively, and has the greatest impact on the stability of the system. It is concluded that the parameters to be optimized in a DC microgrid system with no-droop control are the load-side line length and the power of each load.

4. The method for improving the stability of a vertical flow-free microgrid based on the Nutcracker optimization algorithm according to claim 3 is characterized in that: The step S3 comprises: S31. In order to improve the stability of the microgrid without vertical flow, the objective function of the algorithm is set as the real part of the dominant mode of the system. The global search capability of the Starling optimization algorithm is used to solve the optimal parameters when the real part of the dominant mode of the system is the smallest, that is, the farthest from the imaginary axis. Therefore, the objective function expression of the algorithm is: f(x)=R q =max{Real[D s (q,q)]} (9) In formula (9), x is the system parameter to be optimized, that is, the individuals of the nutcracker population in the nutcracker optimization algorithm; S32. Assume that the parameter to be optimized is the individual of the nutcracker population in the algorithm, and specify the upper and lower limits of the parameter and the maximum number of iterations T max , the size of the nutcracker population N, the dimension of the nutcracker population D, the selection search probability σ1, the first stage search probability P a1 and the second stage search probability P a2 .

5. The method for improving the stability of a vertical flow-free microgrid based on the Nutcracker optimization algorithm according to claim 4 is characterized in that: The step S4 comprises: S41. There are two search strategies for the nutcracker population: Strategy 1 and Strategy 2. Strategy 1 has two stages: foraging and storage, and Strategy 2 has two stages: finding storage areas and retrieving food. Each iteration of the algorithm will only select one stage in a search strategy to calculate and update the position of the nutcracker individual. The selection formula is: σ≤σ1 (10) In equations (10) to (12), σ and They are all random numbers between 0 and 1, and they are randomly generated again in each iteration; S42, initialize the population, obtain the initial population particles with a population size of N, and substitute them into the objective function of the algorithm to obtain the real part of the dominant mode of the system; S43. When both equations (10) and (11) are true, the individuals of the nutcracker population enter the foraging stage, and the update calculation formula of the individuals of the nutcracker population is: In formula (13), is the new position of the i-th nutcracker after t+1 iterations, i = 1, 2, 3…N, t = 1, 2, 3…T max , is the position of the i-th nutcracker in the j-th dimension at the t-th iteration, j = 1, 2, 3...D, U j and L j are the upper and lower limits of the individual nutcracker in the jth dimension, is the average value of all positions of the current nutcracker population in the jth dimension in iteration t, and are three different individual positions of nutcrackers randomly selected from the jth dimension of the nutcracker population, A, B, C = 1, 2, 3…N, τ1, τ2, r and r1 are all random real numbers in the range [0, 1], γ is a random number calculated based on levy flight, and μ is a randomly generated number between 0 and 1 based on normal distribution, levy flight, and the calculation formulas of γ and μ are: In formula (14), u, v, τ3, r2 and r3 are all random numbers in the range of [0,1], β is a random number in the range of [0,2], Γ(·) is the Gamma function, τ4 is a normal distribution random number, and τ5 is a random number calculated by levy flight; S44. When equation (10) holds true and equation (11) does not hold true, the population particles enter the storage stage, and the update calculation formula for the population particles is: In formula (15), is the position of the i-th nutcracker at the tth iteration, This is the best position the Nutcracker population has ever achieved. and are the positions of two different individual nutcrane individuals randomly selected from the nutcrane population, λ is a random number calculated by levy flight, and l is a value that decreases randomly and linearly from 1 to 0; S45. When equation (10) is not true and equation (12) is true, the population particles enter the stage of searching for storage areas, and the update calculation formula of the population particles is: In formula (16) to formula (18), τ6, τ7, τ8 are all random numbers in the range of [0,1]. is the new position of the i-th nutcracker in the j-th dimension after t+1 iterations, is the optimal position of the nutcracker population in the jth dimension so far, is the first-layer reference point of the i-th nutcracker at the t-th iteration, is the second-layer reference point of the i-th nutcracker at the t-th iteration, and The expression is: In formula (19), α is the convergence coefficient of the reference point, RP is a random position of an individual in the nutcracker population in the current iteration, and θ is a random value in the range of [0,π]. and are the upper and lower limits of individual nutcrackers, A random value of 0 or 1; S46. When neither equation (10) nor equation (12) holds true, the population particles enter the food recovery phase, and the update calculation formula for the population particles is: In equations (20) to (22), f(·) is the objective function of the Nutcracker optimization algorithm; S47. Substitute the updated Nudibranch population particles, i.e. the optimized parameters, into the objective function of the algorithm to obtain the fitness value. Only the parameters with better fitness value, i.e. the parameters with smaller real part of the dominant mode than the previous generation, can be retained. Continue to iterate, and the retained formula is: S48, check whether the number of iterations t reaches the maximum number of iterations T max If it is reached, the particle of the nutcracker population with the best fitness value at this time is output, that is, the optimal parameter is taken as the result, and the iteration ends; otherwise, let t=t+1 and return to step S43.

Citation Information

Patent Citations

  • Direct-current micro-grid stability optimal control method based on crisscross algorithm

    CN114784784A

  • Industrial load multistage regulation and control method

    CN118014765A

  • New energy microgrid group scheduling method considering stability constraint

    CN118040789A

  • Micro-grid distributed controller parameter determination method based on linear quadratic optimization

    WO2019178919A1

Cited By

  • No-droop control method and system for completely accessing new energy to isolated microgrid, and test platform

    CN121770000A