Energy storage and new energy station voltage control method and system based on bird swarm algorithm
By combining bird flocking algorithms to adjust the active and reactive power of new energy power plants and energy storage power stations, the problem of voltage fluctuation at the grid connection point of new energy power plants was solved, thereby improving the stability and economy of the power grid.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WUHAN UNIV OF TECH
- Filing Date
- 2023-03-30
- Publication Date
- 2026-06-19
AI Technical Summary
After large-scale renewable energy power plants are connected to the power system, voltage fluctuations and instability at the grid connection point occur. Existing single-dimensional reactive power regulation methods cannot effectively control this, and the stability of the grid connection point voltage is affected.
By combining reactive and active power, a bird flocking algorithm is used to regulate the grid connection point voltage. By detecting voltage and current, active power compensation values and reactive power compensation values are calculated. The bird flocking algorithm is then used to optimize the active and reactive power output to achieve stable control of the grid connection point voltage.
It achieves stable voltage at the grid connection point and coordinated regulation of the power factor, avoids interference between active power and reactive power, ensures the safe and stable operation of the power grid, and reduces power loss and voltage fluctuations.
Smart Images

Figure CN116388209B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power grid voltage control, specifically to a voltage control method and system for energy storage power stations and new energy power plants based on the bird flocking algorithm. Background Technology
[0002] my country's new energy industry has experienced rapid development. However, the increasing proportion of new energy usage has led to a corresponding increase in the total amount of new energy power generation. After large-scale new energy power plants, such as clean energy (e.g., photovoltaic and wind power), are connected to the power system, these plants need to absorb a large amount of reactive power, but their own reactive power regulation capacity is insufficient. This often causes voltage fluctuations, exceeding limits, and even instability at the grid connection point, significantly impacting the safe and stable operation of the power grid.
[0003] Chinese patent CN112803429A discloses a method for coordinated reactive power and voltage control of energy storage power stations and new energy systems. This method fully utilizes the reactive power regulation capabilities of both energy storage and new energy power plants, providing a reactive power deficit to the grid connection point through a reactive power allocation strategy, thereby controlling the grid connection point voltage. However, this method controls the grid connection point voltage through reactive power regulation, while uncontrolled active power can interfere with reactive power. Therefore, existing single-dimensional reactive power regulation voltage control methods have certain limitations in maintaining grid connection point voltage stability. Summary of the Invention
[0004] The purpose of this invention is to provide a voltage control method and system for energy storage power stations and new energy power stations based on bird flocking algorithm. This method combines reactive power and active power to achieve effective regulation of the grid connection point voltage and ensure the stability of the grid connection point voltage.
[0005] On one hand, embodiments of the present invention provide a voltage control method for energy storage and new energy power stations based on bird flocking algorithm, including:
[0006] Detect the voltage and current at the PCC grid connection point and the combined system terminal B point. The combined system consists of an energy storage power station and a new energy power station.
[0007] When the voltage at the PCC grid connection point exceeds the limit, determine the apparent power required by the combined system when active power is adjusted separately and reactive power is adjusted separately.
[0008] Based on the relationship between the apparent power required by the combined system when active power is adjusted separately and the maximum output capacity of the combined system when reactive power is adjusted separately, the objective function of the bird flocking algorithm is set.
[0009] Based on the objective function of the bird flocking algorithm, the active power compensation value and reactive power compensation value required by the joint system are calculated using the bird flocking algorithm.
[0010] The active and reactive power outputs of the new energy power plant and the energy storage power plant are controlled at least according to the active power compensation value and the reactive power compensation value.
[0011] In a preferred embodiment of the present invention, based on the relationship between the apparent power required by the combined system when actively and reactive power are adjusted separately and the maximum output capacity of the combined system, the objective function of the bird flocking algorithm is set to maintain the voltage at the grid connection point at the rated value, including:
[0012] When the apparent power required by the combined system for adjusting active power and reactive power individually is less than or equal to the maximum output capacity of the combined system, the objective function of the bird flocking algorithm is set as follows:
[0013]
[0014] Among them: Fit i U represents the fitness value of the i-th bird, 1 ≤ i ≤ N, where N is the flock size; n This indicates the rated value of the PCC grid connection point voltage; and These are the ordinate and abscissa of the position of the i-th bird in the bird flocking algorithm, respectively. This represents the voltage regulation effect value of the grid connection point corresponding to the position of the i-th bird in the bird flock algorithm.
[0015] In a preferred embodiment of the present invention, based on the relationship between the apparent power required by the combined system under separate active power regulation and separate reactive power regulation and the maximum output capacity of the combined system, the objective function of the bird flocking algorithm is set to maintain the voltage at the grid connection point at the rated value, and the method further includes:
[0016] When the apparent power required by the combined system for both active power regulation and reactive power regulation alone exceeds the maximum output capacity of the combined system, the objective function of the bird flocking algorithm is set as follows:
[0017] When U pcc (t) > U max hour,
[0018] When U pcc (t) < U min hour,
[0019] Among them, Fit i U represents the fitness value of the i-th bird, 1 ≤ i ≤ N, where N is the flock size; pcc (t) represents the measured value of the PCC grid connection point voltage at time t; U max Equal to 1.1U n U min Equal to 0.9Un U n This indicates the rated value of the PCC grid connection point voltage; This represents the voltage regulation effect value of the grid connection point corresponding to the position of the i-th bird in the bird flock algorithm.
[0020] In a preferred embodiment of the present invention, based on the relationship between the apparent power required by the combined system under separate active power regulation and separate reactive power regulation and the maximum output capacity of the combined system, the objective function of the bird flocking algorithm is set to maintain the voltage at the grid connection point at the rated value, and the method further includes:
[0021] When only one of the apparent power required by the combined system when adjusting active power and reactive power individually is less than the maximum output capacity of the combined system, the objective function of the bird flocking algorithm is set as follows:
[0022]
[0023] Among them, Fit i U represents the fitness value of the i-th bird, 1 ≤ i ≤ N, where N is the flock size; n This indicates the rated value of the PCC grid connection point voltage; This represents the voltage regulation effect value of the grid connection point corresponding to the position of the i-th bird in the bird flock algorithm.
[0024] In a preferred embodiment of the present invention, based on the objective function of the bird flocking algorithm, the active power compensation value and reactive power compensation value required by the joint system are calculated using the bird flocking algorithm, specifically as follows:
[0025] (1) Based on the random location of each bird, calculate the fitness value of each bird according to the objective function of the bird flocking algorithm;
[0026] (2) Perform iterations and determine whether the quotient of the current iteration number m and the bird migration frequency Q is an integer. When the quotient is an integer, for each bird, generate a random number b corresponding to the current iteration number m, determine the bird's state based on the size of the random number b and the foraging probability P, and update the position of the foraging bird and / or the alert bird. When the quotient is an integer, determine the bird's behavior based on the size of the best fitness value of each bird, where the best fitness value of each bird is the best fitness value of the bird updated in the previous iteration, and update the position of the producer behavior bird and / or the beggar behavior bird.
[0027] (3) Based on the updated bird positions, calculate the new fitness value of each bird according to the objective function of the bird flocking algorithm;
[0028] (4) For each bird, determine the optimal position and the update strategy for the optimal fitness value of the bird based on the first difference between the bird's new fitness value and the previous best fitness value; determine the global optimal position and the update strategy for the global best fitness value of the flock based on the second difference between the new fitness value of each bird and the previous global best fitness value of the flock.
[0029] (5) Return to the iteration step until the number of iterations is greater than the maximum number of iterations, at which point the global optimal position is output;
[0030] (6) Based on the output global optimal position, calculate the active power compensation value and reactive power compensation value required by the joint system.
[0031] In a preferred embodiment of the present invention, the steps of updating the positions of birds in a foraging state and / or birds in an alert state, and the steps of updating the positions of birds exhibiting producer behavior and / or birds exhibiting begging behavior, specifically include:
[0032] The position of the foraging bird is updated using the following formula:
[0033]
[0034] The position of the alert bird is updated using the following formula:
[0035]
[0036] The position of the updated producer behavior bird is calculated using the following formula:
[0037]
[0038] The position of the beggar bird is calculated and updated using the following formula:
[0039]
[0040] Of the four formulas above, and Let represent the positions of the i-th bird after the m-th iteration and the (m-1)-th iteration, respectively; i represents the bird's index, 1 ≤ i ≤ N, and N is the flock size; m represents the current iteration number, 1 ≤ m ≤ m max m max p represents the maximum number of iterations. i represents the previous optimal position of the i-th bird; C and S are the cognitive coefficient and social evolution coefficient, respectively; rand(0,1) is a random number between 0 and 1; g represents the previous global optimal position of the entire flock; mean2 represents the previous average position of the population; k is a random integer between [1,N], and k≠i; The previous optimal position of the k-th bird; rand(-1, 1) is a random number between -1 and 1; randn(0, 1) represents generating a random number that follows a Gaussian distribution with an expected value of 0 and a standard deviation of 1; r is an integer between [1, N], r ≠ i and the r-th bird is the producer; Let A1 be the position of the r-th bird in the flock after the (m-1)-th iteration; FL is a constant randomly determined between [0, 1]. FL needs to be updated each time the position of the beggar bird is calculated. The formulas for calculating A1 and A2 are:
[0041]
[0042]
[0043] Where a1 and a2 are constants between [0, 2]; pFit i This represents the previous best fitness value for the i-th bird; represents the previous best fitness value of the k-th bird; sumpFit represents the sum of the previous best fitness values of the entire flock; ε is used to avoid zero partitions and is the smallest constant in the computer program.
[0044] In a preferred embodiment of the present invention, determining the apparent power required for the combined system when actively and reactive power are adjusted separately specifically includes:
[0045] (1) Determine the individual active power compensation value and the individual reactive power compensation value using the following formula:
[0046]
[0047]
[0048] Among them, P com (t) represents the individual active power compensation value at time t; Q com (t) represents the individual reactive power compensation value at the current time t: P pcc_s (t) and Q pcc_s (t) represents the active power and reactive power values that the grid connection point voltage should reach at the current time t, when only active power regulation and reactive power regulation are performed respectively, so that the grid connection point voltage meets the specified range; P PCC (t) and Q PCC (t) represents the measured values of active power and reactive power at the PCC grid connection point at the current time t, respectively; P B (t) and Q B (t) represents the measured values of active power and reactive power at point B of the joint system at the current time t;
[0049] (2) The apparent power required by the combined system when adjusting active power separately is determined based on the individual active power compensation value. The formula for determining the apparent power required by the combined system when adjusting reactive power separately is based on the individual reactive power compensation value:
[0050] S B_P (t) =
[0051] S B_Q (t) =
[0052] Among them, S B_P (t) represents the apparent power required by the combined system at time t when the active power is adjusted individually; S B_Q (t) represents the apparent power required by the combined system at time t when reactive power is adjusted alone.
[0053] In a preferred embodiment of the present invention, controlling the active and reactive power outputs of the new energy power plant and the energy storage power station based at least on the active power compensation value and the reactive power compensation value includes:
[0054] Detect the upper limit of active power output and the upper limit of reactive power output for each new energy power station;
[0055] The active and reactive power of each new energy power station and its corresponding energy storage power station are calculated using the following formula:
[0056] When P ref B / n ≤ P i At that time, P bi = P ref B / n, P ai = 0
[0057] When P ref B / n > P i At that time, P bi = P i P ai = P ref B / n - P i
[0058] When Q ref B / n≤ Q i At that time, Q bi =Q ref B / n, Q ai =0
[0059] When Q ref B / n > Q i At that time, Q bi =Q i Q ai =Q ref B / nQi
[0060] Among them, P ref_B and Q ref_B These represent the active power compensation value and reactive power compensation value of the combined system, respectively; P i and Q i These represent the upper limits of active power output and reactive power output of the i-th renewable energy power station, respectively; n represents the number of renewable energy power stations; P bi and Q bi P represents the active power and reactive power that the i-th renewable energy power station needs to output, respectively. ai and Q ai These represent the active power and reactive power of the energy storage power station and the output of the i-th new energy power station, respectively.
[0061] Control the output of each new energy power station to obtain the calculated active and reactive power; based on the sum of the active and reactive power of the energy storage power station corresponding to the output of all new energy power stations, control the output of the active and reactive power of the energy storage power station respectively.
[0062] On the other hand, embodiments of the present invention provide a voltage control system for energy storage and new energy power stations based on a bird flocking algorithm, characterized in that it includes: multiple new energy power stations, energy storage power stations, electrical loads, a power grid, a new energy power station controller, an energy storage control system, and a power dispatching system.
[0063] The multiple new energy power stations and the energy storage power station form a combined energy storage and new energy power station system. The parallel connection point between the energy storage power station and the new energy power station is the terminal B point of the combined system. The terminal B point of the combined system and one end of the power load are connected to the PCC grid connection point, and the PCC grid connection point is connected to the power grid.
[0064] One input terminal of the power dispatching system is connected to the PCC grid connection point; another input terminal is connected to terminal B of the combined system; one output terminal is connected to the input terminal of the new energy power station controller; another output terminal is connected to one input terminal of the energy storage control system; the output terminal of the new energy power station controller is connected to the input terminal of each new energy power station; the output terminal of the energy storage control system is connected to the input terminal of the energy storage power station; the output terminal of the energy storage power station is connected to the other input terminal of the energy storage control system.
[0065] The power dispatching system is used to detect the voltage and current at the PCC grid connection point and the combined system terminal B point, determine whether the grid connection point voltage exceeds the limit, and when the voltage exceeds the limit, use the bird flocking algorithm to calculate the active power compensation value and reactive power compensation value required by the combined system, and control the active power and reactive power output of the new energy power station and the energy storage power station at least according to the active power compensation value and the reactive power compensation value.
[0066] Furthermore, embodiments of the present invention provide a simulation system for voltage control of energy storage and new energy power stations based on the bird flocking algorithm, comprising:
[0067] The simulator is used to simulate the actual operation of the power grid. The simulator includes the power grid, new energy power stations, energy storage power stations and power loads. The energy storage power station and the new energy power station form a joint system of energy storage and new energy power stations. The parallel connection point of the energy storage power station and the new energy power station is the terminal B point of the joint system. The terminal B point of the joint system and one end of the power load are connected to the PCC grid connection point. The PCC grid connection point is connected to the power grid.
[0068] The software platform is used to monitor the voltage and current of the PCC grid connection point and the combined system terminal B point in the simulator in real time.
[0069] The CPU is used to download and execute the following program: determine whether the grid connection point voltage exceeds the limit based on the monitoring data of the software platform, and when the voltage exceeds the limit, use the bird flocking algorithm to calculate the active power compensation value and reactive power compensation value output by the joint system in the simulator, and at least calculate the active power and reactive power output of each new energy power station and energy storage power station in the simulator based on the active power compensation value and the reactive power compensation value, and return the calculation results to the simulator to realize the simulation control of the grid connection point voltage.
[0070] The beneficial effects of the technical solutions provided in this disclosure are:
[0071] (1) The voltage control method and system for energy storage power stations and new energy power stations based on bird flocking algorithm in this embodiment of the invention sets the adjustment target and the corresponding fitness value calculation formula of bird flocking algorithm under each different relationship between the apparent power required by the joint system of energy storage power stations and new energy power stations when adjusting active power and when adjusting reactive power separately. The solution that minimizes the fitness value (related to the voltage deviation at the grid connection point) is obtained by using the optimization ability of bird flocking algorithm, thereby controlling the active power and reactive power output of new energy power stations and energy storage power stations to achieve the adjustment of grid connection point voltage. The embodiments of this invention, through the above-described method, consider not only the regulating effect of reactive power on the grid connection point voltage, but also the regulating effect of active power on the grid connection point voltage. Furthermore, by simultaneously considering the regulating effects of both active and reactive power, active and reactive power regulation can work in coordination to jointly regulate the grid connection point voltage. Compared to existing technologies that only perform reactive power control, this can prevent interference caused by uncontrolled active power on reactive power regulation. Because this invention fully considers the active and reactive power that the combined system of energy storage power stations and new energy power plants needs to compensate for, it can successfully achieve effective regulation of the grid connection point voltage, avoiding continuous fluctuations and exceeding limits, and ensuring the stability of the grid connection point voltage.
[0072] (2) This invention can effectively adjust the power factor of the grid connection point by setting the fitness value calculation formula of the bird flocking algorithm to be related to the power factor of the grid connection point and by using the optimization ability of the algorithm to obtain a solution that improves the power factor of the grid connection point. Since the power factor of the grid connection point is directly related to the power loss in the power grid, the voltage fluctuation and voltage drop of the power supply line, and the safe and economical operation of the power system, this invention has good economic value.
[0073] (3) Based on the different situations of whether the voltage of the PCC grid connection point exceeds the limit, and the different relationships between the apparent power required for individual reactive power compensation or individual active power compensation and the maximum output capacity of the combined system, the present invention can establish different grid connection point adjustment targets, set different fitness values of bird flocking algorithm to calculate the objective function formula, thereby implementing different control strategies, and realizing the formulation of a control strategy more suitable for the current situation based on the comparison between the voltage fluctuation of the grid connection point and the output capacity of the combined system. Therefore, the adjustment of the grid connection point voltage is more targeted. Attached Figure Description
[0074] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0075] Figure 1 This is a schematic diagram of the process for calculating the joint system power compensation value based on the bird flock algorithm in the voltage control method for energy storage power stations and new energy power stations based on the bird flock algorithm in the embodiments of the present invention.
[0076] Figure 2 This is a schematic diagram of the power allocation of the joint system in the voltage control method for energy storage power stations and new energy power stations based on the bird flocking algorithm in an embodiment of the present invention.
[0077] Figure 3 This is a topology diagram showing the joint access of energy storage power stations and new energy power plants;
[0078] Figure 4 This is a schematic diagram of the voltage control system for energy storage power stations and new energy power plants based on the bird flocking algorithm according to an embodiment of the present invention;
[0079] Figure 5 This is a schematic diagram of a voltage control simulation system for energy storage power stations and new energy power plants based on the bird flocking algorithm according to an embodiment of the present invention. Detailed Implementation
[0080] To make the objectives, technical solutions, and advantages of this disclosure clearer, the embodiments of this disclosure will be described in further detail below with reference to the accompanying drawings.
[0081] The following describes in detail the voltage control method for energy storage power stations and new energy power plants based on the bird flocking algorithm according to embodiments of the present invention. (Reference) Figure 1 and Figure 2 This method includes the following steps:
[0082] Step S100: Detect the voltage and current at the PCC grid connection point and the combined system terminal B point, wherein the combined system consists of an energy storage power station and a new energy power station;
[0083] It should be noted that point B of the combined system is the parallel connection point of the energy storage power station and the new energy power station; point B of the combined system is connected to the PCC grid connection point together with the power load; the PCC grid connection point is connected to the AC / DC hybrid power grid.
[0084] Step S200: Determine whether the voltage at the PCC grid connection point exceeds the limit; if it does not exceed the limit, proceed to step S100; if it exceeds the limit, continue to step S300.
[0085] In this step, the grid connection voltage is not adjusted and remains unchanged when the voltage at the PCC grid connection point does not exceed the limit. Adjustment is only performed when the voltage at the PCC grid connection point exceeds the limit.
[0086] In this embodiment, determining whether the voltage at the PCC grid connection point exceeds the limit is specifically as follows:
[0087] When U pcc (t) belongs to [U min U max When the voltage at the grid connection point is determined to be "not exceeding the limit",
[0088] When U pcc (t) does not belong to [U] min U max When the voltage at the grid connection point is exceeded, it is determined to be "over the limit".
[0089] Among them, U pcc (t) represents the voltage at the PCC grid connection point at the current time t; U max Equal to 1.1U n ;U min Equal to 0.9U n ;U n This is the rated voltage value of the PCC grid connection point.
[0090] Step S300: Calculate the apparent power required by the combined system when active power is adjusted separately and reactive power is adjusted separately.
[0091] Specifically, step S300 includes:
[0092] Step S310: Determine the individual active power compensation value and the individual reactive power compensation value, using the following formulas:
[0093] Formula (1)
[0094] Formula (2)
[0095] Among them, P com (t) represents the individual active power compensation value at time t; Q com (t) represents the individual reactive power compensation value at the current time t: P pcc_s (t) and Q pcc_s (t) represents the conditions at the current time t, where only active power regulation and only reactive power regulation are performed, respectively, to keep the grid connection point voltage within the specified range (i.e., to keep the grid connection point voltage U). pcc (t) belongs to [U min U max [), the active and reactive power values that the grid connection point should achieve, that is, the active and reactive power of the grid connection point after separate compensation. P PCC (t) and Q PCC (t) represents the measured values of active power and reactive power at the grid connection point at time t, respectively; P B (t) and Q B (t) represents the measured values of active power and reactive power at point B of the joint system at the current time t, respectively. pcc_s (t) and Q pcc_s The formulas for calculating (t) are as follows:
[0096] Formula (3)
[0097] Formula (4)
[0098] Where U0 represents the voltage value of the AC / DC hybrid power grid, R is the line resistance from the grid connection point to the AC / DC hybrid power grid, and X is the line reactance from the grid connection point to the AC / DC hybrid power grid; the formula for calculating U(t) is:
[0099] When U pcc (t) is greater than U max At that time, U(t) = U max
[0100] When U pcc (t) is less than U min At that time, U(t) = U min
[0101] When U pcc (t) is in [Umin U max When the voltage at the grid connection point is within the limit, no adjustment is needed. Return to step S100 for testing the grid connection point voltage.
[0102] Among them U max and U min U represents the upper and lower limits of the grid connection point voltage, respectively. max Equal to 1.1U n ;U min Equal to 0.9U n ;U n This is the rated value of the grid connection point voltage.
[0103] S320, determine the apparent power required by the combined system when reactive power is adjusted individually based on the individual active power compensation value; determine the apparent power required by the combined system when reactive power is adjusted individually based on the individual reactive power compensation value, using the following formulas:
[0104] S B_P (t) = Formula (5)
[0105] S B_Q (t) = Formula (6)
[0106] Among them, S B_P (t) represents the apparent power required by the combined system at time t when active power regulation is performed alone; S B_Q (t) represents the apparent power required by the combined system at time t when reactive power regulation is performed alone; P com (t) represents the individual active power compensation value at time t; Q com (t) represents the individual reactive power compensation value at the current time t; P B (t) and Q B (t) represents the measured values of active power and reactive power at point B of the joint system at the current time t.
[0107] S400, based on the relationship between the apparent power required by the combined system when reactive power is adjusted separately and the maximum output capacity of the combined system when active power is adjusted separately, sets the objective function of the bird flocking algorithm, where the objective function of the bird flocking algorithm is used to calculate the fitness value of each bird.
[0108] Specifically, step S400 includes:
[0109] Step S410: When adjusting active power alone, the apparent power required by the combined system S B_P ( t The apparent power required by the combined system when reactive power is adjusted separately. SB_Q ( t All of them are less than or equal to the maximum output capacity S of the combined system. max When this occurs, it indicates that the grid connection point voltage deviates from the rated grid connection point voltage U. n The degree of deviation was not excessive, therefore the adjustment target was set to maintain the grid connection point voltage at the rated value U. n Furthermore, the power factor of the grid connection points should be increased as much as possible. In this case, control strategy one is implemented, which sets the objective function of the bird flocking algorithm as:
[0110] Formula (7)
[0111] Among them: Fit i U represents the fitness value of the i-th bird, 1 ≤ i ≤ N, where N is the flock size; n This indicates the rated value of the PCC grid connection point voltage; and These are the ordinate and abscissa of the position of the i-th bird in the bird flocking algorithm, respectively, and represent a value of reactive power and active power at the grid connection point. For the specific calculation method, please refer to step S500. This represents the voltage regulation effect value at the grid connection point corresponding to the position of the i-th bird in the bird flocking algorithm. The calculation formula is as follows:
[0112] Formula (8)
[0113] Where U0 represents the voltage value of the AC / DC hybrid power grid; R and X are the line resistance and line reactance from the grid connection point to the AC / DC hybrid power grid, respectively; P ’ Q ’ These are the active and reactive power on the AC / DC hybrid power grid side, P ’ Q ’ The calculation formula is
[0114] Formula (9)
[0115] Among them, S ’ The apparent power on the AC / DC hybrid grid side; and , , respectively, represent the ordinate and abscissa of the position of the i-th bird in the bird flocking algorithm; j is the imaginary unit; U n Here, S is the rated voltage at the grid connection point; S is one possible value for the apparent power at the grid connection point corresponding to the position of the i-th bird in the bird flocking algorithm. The formula for calculating S is:
[0116] Formula (10)
[0117] in, and y and x are the ordinates and abscissas of the position of the i-th bird in the bird flocking algorithm, respectively.
[0118] As can be seen from the above, in the objective function of the bird flocking algorithm, i.e., formula (7), the fitness value of the i-th bird is set to be equal to the rated voltage value U at the grid connection point. n and The absolute value of the difference and 0.1U n The ratio, plus the square root of 1 minus the square of the power factor, where the power factor is the active power at the grid connection point corresponding to the position of the i-th bird in the bird flocking algorithm. With apparent power The ratio of the two is set to 0.8 and 0.2 respectively. This step is achieved by setting the fitness value calculation formula (7) to be related to the power factor of the grid connection point. In the operation of the bird flock algorithm, on the one hand, the ability of the bird flock algorithm to find the optimal solution can be used to obtain the Fit value. i The minimum solution, which makes Fit i Minimize, so that the first term in formula (7) reaches a smaller value than before the optimization, and because the first term contains 0.1U n It is a constant value, so the absolute value of the difference between the denominator, i.e., the grid connection point voltage and its rated value, can be made smaller than before optimization, thereby reducing the grid connection point voltage deviation and making the grid connection point voltage U... pcc (t) Maintain at the rated value U n Main purpose. On the other hand, since the actual power factor at the grid connection point is , where P pcc (t) and Q pcc (t) represents the measured active and reactive power of the grid connection point at the current time t, respectively. In this step, the power factor of the grid connection point is the active power of the grid connection point corresponding to the position of the i-th bird in the bird flocking algorithm. With apparent power The ratio of the two, therefore, the ability to find the optimal solution through the bird flocking algorithm, this step can obtain a solution that improves the power factor at the grid connection point, thus the power factor at the grid connection point is relatively large. It should be noted that the power factor at the grid connection point is directly related to the power loss in the power grid, the voltage fluctuation and voltage drop of the power supply line, and the safe and economical operation of the power system. According to the State Grid's regulations on distributed power sources connected to the distribution network, the power factor at the grid connection point should be above 0.95. In summary, formula (7) can basically achieve the purpose of adjusting the voltage deviation as the main objective, while appropriately improving the power factor at the grid connection point. In the above formula for The calculation formula includes Also includes Therefore, this step considers not only the regulatory effect of reactive power on the grid connection point voltage but also the regulatory effect of active power. By simultaneously considering the regulation effects of both active and reactive power, active and reactive power regulation can work in coordination to achieve grid connection point voltage regulation. If only reactive power is regulated, uncontrolled active power will inevitably interfere with reactive power regulation; the two will not have the mutually reinforcing relationship seen in this method. Furthermore, it makes fuller use of the combined system capacity to regulate grid connection point voltage and power factor, thus offering greater advantages.
[0119] Step S420: When adjusting active power alone, the apparent power required by the combined system S B_P ( t The apparent power required by the combined system when reactive power is adjusted separately. S B_Q ( t Both are greater than the maximum output capacity S of the combined system. max At that time, control strategy two is executed, that is, the objective function of the bird flocking algorithm is set as:
[0120] When U pcc (t) > U max hour, Formula (11)
[0121] When U pcc (t) < U min hour, Formula (12)
[0122] When U pcc (t) in [U min U max If the voltage is between [value] and [value], it indicates that the grid connection point voltage has not exceeded the limit and no adjustment is needed. Return to step S100 for testing the voltage.
[0123] Among them, Fit i U represents the fitness value of the i-th bird, 1 ≤ i ≤ N, where N is the flock size; pcc (t) represents the measured value of the grid connection point voltage at time t; U max and U min U represents the upper and lower limits of the grid connection point voltage, respectively. max Equal to 1.1U n U min Equal to 0.9U n ;U n This indicates the rated voltage value at the PCC grid connection point; This represents the voltage regulation effect value at the grid connection point corresponding to the position of the i-th bird in the bird flocking algorithm. The calculation method is the same as that of control strategy one.
[0124] In this step, when adjusting the apparent power S during active power separately... B_P (t) and apparent power S when reactive power is adjusted separately B_Q (t) are all greater than the maximum output capacity S of the combined system. max At this time, because the apparent power required under both compensation methods is greater than the maximum output capacity of the combined system, it indicates that the grid connection point voltage deviates from the specified range ([U min U max The degree of deviation is very large, therefore the goal of grid connection point voltage regulation is to minimize the grid connection point voltage deviation as much as possible, and to bring the grid connection point voltage back to [U] as close as possible to the [U] range. min U max Near [location missing]. It should be noted that the grid connection point voltage is maintained at the rated value U. n This applies when the voltage deviation is not too large; however, when the voltage deviation is large, it is difficult to maintain the voltage at the rated value U. n Nearby, we had to settle for second best and let the grid connection point voltage U... pcc (t) regress to [U min U max ]nearby.
[0125] As can be seen from the above, in formula (11), the fitness value function is equal to U. max and The absolute value of the deviation, therefore, in the optimization process of the bird flocking algorithm, the ability of the bird flocking algorithm to find the optimal solution can be used to obtain the value that minimizes this fitness value, i.e., U. max and The solution that minimizes the absolute value of the deviation. Similarly, formula (12) can be used to obtain the solution that minimizes the absolute value of U. min and The solution with the smallest absolute value of the deviation, while Greater than U max At that time, we obtained U max and The solution with the smallest absolute value of the deviation, in Less than U min At that time, we obtained U min and The solution that minimizes the absolute value of the deviation can bring the over-limit grid connection point voltage back to [U] as close as possible. min U max Nearby. In summary, this step can achieve the grid connection point voltage U. pcc (t) Regress to [U] as much as possible min U max ]nearby
[0126] Step S430: When adjusting active power alone, the apparent power required by the combined system S B_P ( t The apparent power required by the combined system when reactive power is adjusted separately. S B_Q ( t Only one of them is less than the maximum output capacity S of the combined system. max At that time, control strategy three is executed, which sets the objective function of the bird flocking algorithm as:
[0127] Formula (13)
[0128] Among them, Fit i U represents the fitness value of the i-th bird, 1 ≤ i ≤ N, where N is the flock size; n Indicates the rated voltage value at the grid connection point; This represents the voltage regulation effect value at the grid connection point corresponding to the position of the i-th bird in the bird flocking algorithm. The calculation method is the same as that of control strategy one.
[0129] In this step, when adjusting the apparent power S during active power separately... B_P (t) and apparent power S when reactive power is adjusted separately B_Q Only one of (t) is less than the maximum output capacity S of the combined system. max This indicates that the combined system capacity required to achieve the same grid connection point voltage regulation effect is different for individual active power regulation and reactive power regulation. It also suggests that if the ratio of active to reactive power can be reasonably allocated, the combined system capacity is sufficient to maintain the grid connection point voltage at the rated value U. n If the ratio of active and reactive power cannot be reasonably allocated, the combined system will not be able to bring the grid connection point voltage back to the rated value within its own capacity range. Therefore, it is necessary to determine the ratio of active and reactive power compensation through the bird flocking algorithm. Otherwise, it will not be possible to maintain the grid connection point voltage at the rated value. Therefore, at this time, it is not advisable to improve the power factor of the grid connection point.
[0130] As can be seen from the above, the objective function of the bird flocking algorithm, i.e., formula (13), sets the fitness value of the i-th bird to U. n and The absolute value of the difference, therefore, in the optimization process of the bird flocking algorithm, by leveraging the ability of the bird flocking algorithm to find the optimal solution, we can obtain the solution that minimizes the fitness value, i.e., U. n and The difference is minimized to achieve the grid connection point voltage U pcc (t) Maintain at the rated value U n The purpose.
[0131] S500, based on the objective function of the bird flocking algorithm, uses the bird flocking algorithm to calculate the active power compensation value and reactive power compensation value required by the joint system.
[0132] It should be noted that before this step, you can first set the constraints for the bird flocking algorithm. The constraints include:
[0133] (1) Apparent power output of the combined system It should be less than the maximum output capacity of the combined system. ;
[0134] (2) Active power output of the combined system It should be less than the upper limit of active power output. (Maximum of active power output) (1.1 times the system rated power), combined system reactive power output It should be less than the upper limit of reactive power output. (Maximum of unused output) (1.2 times the system's rated power).
[0135] Among them, the active power output of the joint system and reactive power output As shown below:
[0136] Formula (14)
[0137] Formula (15)
[0138] in, and These are the x and y coordinates of each bird's position in the bird flocking algorithm, respectively, representing one possible value for the reactive power and active power at the grid connection point. Please refer to step S500 for the specific calculation method; P pcc (t) and Q pcc (t) represents the measured values of active power and reactive power at the grid connection point at the current time t, respectively; P B (t) and Q B (t) represents the measured values of active power and reactive power at point B of the joint system at the current time t;
[0139] Among them, the apparent power output by the joint system The calculation formula is as follows:
[0140] Formula (16)
[0141] Specifically, step S500 includes:
[0142] S510, Set the flock size N; Maximum number of iterations m maxBird migration frequency Q; foraging frequency P;
[0143] Among them, the migration frequency Q is a positive integer used to determine whether the flock is flying; the foraging frequency P is between [0, 1] and used to determine the state of each bird.
[0144] S520, perform the first iteration, and randomly obtain the two-dimensional position of each of the N birds;
[0145] It should be noted that, in this embodiment, for example, the coordinates of the randomly obtained two-dimensional position of the i-th bird are represented by x. i (x) i1 x i2 ) represents, where the x-coordinate is... i1 express , representing a value of active power at the grid connection point; the vertical axis x i2 express , represents a value of reactive power at the grid connection point.
[0146] S530 calculates the fitness value of each bird after the first iteration based on the random position of each bird and the objective function of the bird flocking algorithm.
[0147] Specifically, the fitness value of each bird in the flock can be calculated using formulas (7) to (13) based on the initially randomly determined two-dimensional position coordinates of each bird. For example, for each bird in the flock, such as the i-th bird, the fitness value in formulas (7) to (13) is calculated as follows: , Fit represents the x-coordinate and y-coordinate of the i-th bird, respectively. i This represents the fitness value of the i-th bird.
[0148] It should be noted that, initially, for each bird i, the randomly determined two-dimensional coordinates are taken as the optimal position p of that bird i. i The fitness value of the i-th bird obtained in the initial calculation is taken as the optimal fitness value pFit for that i-th bird. i .
[0149] In addition, for the entire flock, the sum of the fitness values of all birds calculated in the first calculation is taken as the sum of the best fitness values of the flock, sumpFit; the bird with the smallest fitness value calculated in the first calculation is identified in the flock, the position of the bird with the smallest fitness value is taken as the global optimal position g, and the minimum fitness value is taken as the global best fitness value gFit.
[0150] It is important to note that in the subsequent iteration step S592, the optimal position p of each bird, for example, the i-th bird, will be determined. i The optimal fitness value pFit for the i-th bird iThe sum of the best fitness values of the flock (sumpFit), the global best position (g), and the global best fitness value (gFit) are updated.
[0151] The first iteration is complete, and the iteration count m is incremented by one.
[0152] S540, continue iterating, and determine whether the quotient of the current iteration number m and the bird migration frequency Q is an integer. If the quotient is not an integer, proceed to step S550; if the quotient is an integer, go to step S580, where 1 ≤ m ≤ m max m max The maximum number of iterations is given; Q represents the migration frequency, where Q is a positive integer.
[0153] In this step, the initial value of the current iteration number m is 2.
[0154] It should be noted that this step mainly implements "determining whether the flock of birds, i.e., the current N two-dimensional coordinates, needs to be moved as a whole", that is, determining whether to update the position of all points in the flock of birds. If m is not divisible by Q (i.e., the quotient is not an integer), then no overall movement is needed; if m is divisible by Q (i.e., the quotient is an integer), then an overall movement is needed.
[0155] Step S550: Determine whether each bird is in a foraging state or an alert state. If the state determination result is foraging state, continue to step S560. If the state determination result is alert state, proceed to step S570.
[0156] Specifically, for each bird, such as the i-th bird, a random number b in the interval [0, 1] is generated in each iteration. The bird's state is determined based on the magnitude of the random number b and the foraging probability P (P∈[0, 1]). If b > P, the i-th bird is in the foraging state; if b ≤ P, the i-th bird is in the alert state. The bird's state is updated after each step S550.
[0157] Step S560: Calculate the updated position of the foraging bird using the following formula to update the position of the foraging bird, then proceed to step S592.
[0158] Formula (17)
[0159] in, and Let represent the position of the i-th bird in the flock after the m-th iteration and the (m-1)-th iteration, respectively. Specifically, is a vector composed of the active and inactive coordinates of the i-th bird. (It should be noted that the position of the i-th bird after the first iteration is the two-dimensional position coordinate of the i-th bird randomly determined during the initialization phase; the position of the i-th bird after the (m-1)-th iteration (m>1) is the position of the i-th bird updated according to the determined behavior or state of the i-th bird during the other iterations. The behavior or state of the i-th bird is foraging state, alert state, producer behavior, or beggar behavior. The position updates of each bird are shown in steps S560, S570, S590, and S591. In addition, in the following steps...) and (The explanation is the same as here); i represents the bird's index, 1≤i≤N; m represents the current iteration number, 1≤m≤m max m max p is the maximum number of iterations. i This represents the previous optimal position of the i-th bird. Specifically, it is the optimal position of the i-th bird updated after the (m-1)-th iteration. This position is a vector composed of the active and inactive coordinates when the fitness is minimized (it should be noted that for the second iteration, p...). i Let p be the optimal position of the i-th bird in the first iteration, i.e., the two-dimensional position coordinates of the i-th bird randomly determined during the initialization phase; for subsequent iterations, p i The optimal position of the i-th bird is updated after the (m-1)-th iteration (the update of the optimal position of the i-th bird is shown in step S592); C and S are two positive constants, called the cognitive coefficient and the social evolution coefficient, respectively; rand(0,1) is a random number between 0 and 1; g is the previous global optimal position of the entire flock, specifically, the global optimal position of the flock updated after the (m-1)-th iteration (it should be noted that for the second iteration, g is the global optimal position of the flock at the first iteration, that is, the position of the bird with the smallest fitness value calculated based on the random positions of each bird in the flock initialization stage; for subsequent iterations, g is the global optimal position of the flock updated after the (m-1)-th iteration (the update of the global optimal position of the flock is shown in step S592).
[0160] This step mainly sets the movement of foraging birds to be influenced by their own previously reached optimal positions (coordinates with and without contribution) and by the optimal positions (coordinates with and without contribution) reached by the flock, thereby updating the position of foraging birds. Specifically, the bird moving to the previous optimal coordinate can be expressed as: the current coordinate plus the difference between the previous optimal coordinate and the current coordinate. Furthermore, the bird moving towards the previous optimal coordinate can be expressed as: the current coordinate plus the difference between the previous optimal coordinate and the current coordinate multiplied by rand(0,1). Furthermore, the influence of the bird's movement on the previous optimal coordinate and the population's optimal coordinate can be expressed as: the current coordinate plus the difference between the previous optimal coordinate and the current coordinate multiplied by rand(0,1) multiplied by the cognitive coefficient plus the difference between the population's optimal coordinate and the current coordinate multiplied by rand(0,1) multiplied by the social evolution coefficient, as detailed in formula (17).
[0161] Step S570: Calculate the updated position of the alert bird using the following formula to update the position of the alert bird, then proceed to step S592:
[0162] Formula (18)
[0163] in: and Let represent the position of the i-th bird in the flock after the m-th iteration and the (m-1)-th iteration, respectively. Specifically, is a vector composed of the active and inactive coordinates of the i-th bird; i represents the bird's index, 1≤i≤N, N is the flock size, and m represents the current iteration number, 1≤m≤m max m max is the maximum number of iterations; mean2 is the previous average position of the population, specifically, it is the sum of the positions of all birds after m-1 iterations divided by the flock size N (it should be noted that for the second iteration, the positions of all birds after m-1 iterations are the initial random positions of each bird in the first iteration; for subsequent iterations, the positions of all birds after m-1 iterations are the updated positions of each foraging bird, alert bird, producer behavior bird, and beggar behavior bird after the m-1th iteration); rand(0,1) is a random number between 0 and 1; rand(-1,1) is a random number between -1 and 1; k is a random integer between [1, N], and k≠i; This is the previous optimal position of the k-th bird. Specifically, it is the optimal position updated after the (m-1)-th iteration for a random bird other than i. This position is a vector composed of the active and inactive coordinates when the fitness is minimized. (It should be noted that for the second iteration, ...) Let $\mathbf{k}$ be the optimal position of the k-th bird during the first iteration, i.e., the two-dimensional position coordinates of the k-th bird randomly determined during the initialization phase; for subsequent iterations, The optimal position of the k-th bird is updated after the (m-1)-th iteration (the update of the optimal position of the k-th bird is shown in step S592). The calculation formulas for A1 and A2 are:
[0164] Formula (19a)
[0165] Formula (19b)
[0166] Among them, pFit i Let be the previous best fitness value of the i-th bird, specifically, let be the updated best fitness value of the i-th bird after the (m-1)-th iteration (it should be noted that for the second iteration, pFit...). i pFit represents the optimal fitness value for the i-th bird during the first iteration, calculated based on the two-dimensional position coordinates of the i-th bird randomly determined during the initialization phase. For subsequent iterations, pFit... i This represents the optimal fitness value of the i-th bird after the (m-1)-th iteration; the update of the optimal fitness value for each bird is shown in step S592). k Let be the previous best fitness value of the k-th bird, specifically, the best fitness value updated after the (m-1)-th iteration for a random bird other than i; let sumpFit be the sum of the previous best fitness values of the entire flock, specifically, the sum of the best fitness values of the flock updated after the (m-1)-th iteration (it should be noted that for the second iteration, sumpFit is the sum of the best fitness values of the flock at the first iteration, that is, the sum of all bird fitness values calculated based on the two-dimensional position coordinates of each bird in the flock randomly determined during the initialization phase; for subsequent iterations, sumpFit is the sum of the best fitness values of the flock updated after the (m-1)-th iteration, and the update of the sum of the best fitness values of the flock is shown in step S592); a1 and a2 are constants between [0, 2]; ε is used to avoid zero partitioning and is the smallest constant in the computer program; N is the flock size.
[0167] This step mainly involves setting the alert bird to move towards the center of the flock. During this movement, the bird is affected by the environment and competition with other birds, thus updating its position. Specifically, the bird's position when moving to the average coordinate can be expressed as: the current coordinate plus the difference between the average coordinate and the current coordinate. Furthermore, the environmental influence when the bird moves towards the center can be expressed as: the current coordinate plus the difference between the average coordinate and the current coordinate multiplied by rand(0,1) and then multiplied by the environmental influence. Further, during the movement, the bird competes with other birds and is affected by the optimal position of other birds. Therefore, the difference between the optimal position coordinate of the competing bird and the bird's current coordinate needs to be added, multiplied by rand(-1,1), and then multiplied by the competition influence. The multiplication by rand(-1,1) is because competition may cause the bird to move closer to or further away from the optimal position of other birds, as detailed in formula (18).
[0168] It should be noted that when birds are alert, each bird tries to fly to the center of the population. This behavior is influenced by competition among the populations, and birds with more food reserves are more likely to fly to the center than those with less reserves.
[0169] Step S580: Determine whether each bird's behavior is that of a producer or a beggar. If the behavior is determined to be that of a producer, proceed to step S590; if the behavior is determined to be that of a beggar, proceed to step S591.
[0170] Specifically, the method for judging the behavior of producers or beggars is as follows:
[0171] Bird behavior is determined based on the optimal fitness value of each bird.
[0172] It should be noted that for the current m-th iteration, the optimal fitness value of each bird is the minimum fitness value updated after the (m-1)-th iteration. It should also be noted that for the second iteration, the optimal fitness value of each bird is the optimal fitness value of the bird at the time of the first iteration, i.e., the fitness value calculated based on the two-dimensional position coordinates of the bird randomly determined during the initialization phase; for subsequent iterations, the optimal fitness value of each bird is the optimal fitness value updated after the (m-1)-th iteration. The update of the optimal fitness value of the birds is described in step S592.
[0173] In this embodiment, for example, for each bird, such as the i-th bird, the behavior of the i-th bird is determined based on the magnitude of its optimal fitness value, specifically including the following steps:
[0174] Get the optimal fitness value pFit for the i-th bird. i ;
[0175] Obtain the average best fitness value of the flock, specifically, it is the ratio of the sum of the best fitness values updated after the (m-1)th iteration of the flock, sumpFit, to the flock size N;
[0176] Obtain the difference between the optimal fitness value of the i-th bird and the average optimal fitness value of the flock;
[0177] If the difference is greater than or equal to zero, the i-th bird is considered a producer; if the difference is less than zero, the i-th bird is considered a beggar.
[0178] Step S590: Calculate the updated position of the producer behavior bird using the following formula to update the position of the producer behavior bird, then proceed to step S592:
[0179] Formula (20)
[0180] in, and Let represent the position of the i-th bird in the flock after the m-th iteration and the (m-1)-th iteration, respectively. Specifically, is a vector composed of the active and inactive coordinates of the i-th bird; i represents the bird's index, 1≤i≤N, N is the flock size, and m represents the current iteration number, 1≤m≤m max m max The maximum number of iterations is denoted by ; randn(0,1) represents generating a random number that follows a Gaussian distribution with an expected value of 0 and a standard deviation of 1.
[0181] This step mainly involves setting the producer behavior bird to select new active and reactive coordinates, thereby updating the position of the producer behavior bird. This is because the position of the bird is unpredictable after each iteration, and the bird's movement along the angle between the active and reactive coordinates at the current position is also unpredictable. Therefore, the position of the bird needs to be updated, as detailed in formula (20).
[0182] Step S591: Calculate the updated position of the beggar bird using the following formula to update its position, then proceed to step S592:
[0183] Formula (21)
[0184] in, and Let represent the position of the i-th bird in the flock after the m-th iteration and the (m-1)-th iteration, respectively. Specifically, is a vector composed of the active and inactive coordinates of the i-th bird; i represents the bird's index, 1≤i≤N, N is the flock size, and m represents the current iteration number, 1≤m≤m max m max The maximum number of iterations; r is an integer between [1, N], r ≠ i, and the r-th bird is the producer; Let be the position of the r-th bird in the flock after the (m-1)-th iteration (it should be noted that after the first iteration, it is impossible to determine whether there is a bird with "producer behavior"; only after more than 1 iterations can it be determined whether there is a bird with "producer behavior" and the position of the bird with "producer behavior" be obtained, and then any bird with "producer behavior" be selected as the l-th bird here); FL is the probability that the beggar follows the producer to forage, and FL is a constant randomly determined between [0, 1], which is updated each time this step is performed; rand(0, 1) is a random number between 0 and 1.
[0185] This step mainly involves setting the beggar bird to follow the producer bird, thereby updating the beggar bird's position. Specifically, a bird moving to the coordinates of another bird can be represented as: the bird's coordinates plus the difference between the bird's coordinates and the coordinates of the other bird. Furthermore, a bird moving in the direction of the coordinates of another bird can be represented as: the bird's coordinates plus the difference between the bird's coordinates and the coordinates of the other bird multiplied by rand(0,1) and then multiplied by the probability of moving, as shown in formula (21).
[0186] As can be seen from the above, during the m-th iteration, each bird performs a state or behavior judgment through steps S560, S570, S590 and S591, and updates its position based on the judgment result. The current position of each bird is the updated position.
[0187] Step S592: Based on the updated positions of birds in foraging state, alert state, producer behavior, and beggar behavior, calculate the new fitness value of each bird according to the objective function of the bird flocking algorithm. Based on the new fitness value of each bird, the previous best fitness value, and the previous global best fitness value of the flock, update the optimal position and optimal fitness value of each bird, the sum of the optimal fitness values of the flock, and the global optimal position and global best fitness value.
[0188] Specifically, in this step, the position of each bird in the foraging state, alert state, producer behavior, and beggar behavior is represented by two-dimensional coordinates, where the horizontal axis serves as the coordinate of the foraging bird. The vertical axis is used as Based on the horizontal and vertical coordinates and using the objective function formulas (7) to (13) of the bird flock algorithm, the new fitness value of each bird is calculated.
[0189] (1) Update the best fitness value and optimal location for each bird.
[0190] Specifically, for each bird, such as the i-th bird, the first difference between the new fitness value of the i-th bird and the previous best fitness value is obtained. For the m-th iteration, the previous best fitness value of the i-th bird is the best fitness value updated after the (m-1)-th iteration. More specifically, for the second iteration, the previous best fitness value of the i-th bird is the best fitness value of the i-th bird at the time of the first iteration, i.e., the fitness value calculated based on the two-dimensional position coordinates of the i-th bird randomly determined during the initialization phase; for subsequent iterations, the previous best fitness value of the i-th bird is the best fitness value updated after the (m-1)-th iteration.
[0191] If the first difference is less than 0, then the optimal position p of the i-th bird is determined. i Update the current position of the i-th bird and set the best fitness value pFit of the i-th bird. i Update to the new fitness value for the i-th bird; if the first difference If 0, then the optimal position p of the i-th bird is... i And the optimal fitness value pFit of the i-th bird i The data remains unchanged, all from the previous iteration. It should be noted that for the i-th bird, this update method yields the optimal position p. i It is a vector composed of the active and inactive coordinates of the i-th bird when its fitness value is minimized in m iterations; the optimal fitness value pFit obtained by this update method is... i It is the minimum fitness value of the i-th bird in m iterations.
[0192] (2) Update the sum of the best fitness values of the flock, sumpFit.
[0193] Specifically, the sum of the best fitness values of the flock, sumpFit, is updated to the sum of the new best fitness values of all birds, where the new best fitness value of each bird is the best fitness value of each bird determined based on the first difference during the current iteration.
[0194] (3) Update the global optimal position g and the global optimal fitness value gFit of the flock.
[0195] Specifically, for each bird, such as the i-th bird, the second difference between the new fitness value of the i-th bird and the previous global best fitness value of the flock is obtained. If the current iteration number is 2, then the previous global best fitness value of the flock is the global best fitness value after the first iteration, which is the smallest fitness value among all fitness values calculated based on the two-dimensional position coordinates of each bird in the flock randomly determined during the initialization phase; if the current iteration number is greater than 2, then the previous global best fitness value of the flock is the previous global best fitness value of the flock updated after the (m-1)-th iteration.
[0196] If the second difference is less than 0, then update the global optimal position g of the flock to the current position of the i-th bird, and update the global optimal fitness value gFit of the flock to the new fitness value of the i-th bird; if the second difference is less than 0, then update the global optimal position g of the flock to the current position of the i-th bird. If the value is 0, then the global optimal position g and the global optimal fitness value gFit of the flock remain unchanged, both being data from the previous iteration.
[0197] It's important to note that the current global optimal position *g* and the current global optimal fitness value *gFit* of the flock can only be determined after every single bird has been evaluated. That is, each bird in the flock needs to be checked to see if it meets the requirements of the second difference, and each bird's evaluation updates the flock's global optimal position and global optimal fitness value. Once all birds in the flock have been evaluated, the final global optimal position and global optimal fitness value are those corresponding to the current iteration number.
[0198] In step S593, determine whether the iteration termination condition is met. If it is met, continue to step S594; otherwise, increment m and go to step S540.
[0199] The iteration termination condition is: the number of iterations is greater than the set maximum number of iterations m. max
[0200] Step S594: Output the final updated global optimal position, where the x-coordinate of the global optimal position is represented by P. ref The vertical axis is represented by Q. ref express;
[0201] Step S595: Based on the globally optimal location, calculate the required active power compensation value and reactive power compensation value for the joint system, using the following formula:
[0202] Formula (22)
[0203] Formula (23)
[0204] Among them, P ref_B Q represents the active power compensation value required by the combined system. ref_B P represents the reactive power compensation value required by the combined system. ref The x-coordinate represents the globally optimal location, and Q represents the active power at the grid connection point PCC after active power compensation. ref The vertical coordinate represents the globally optimal location, and the vertical coordinate represents the reactive power of the grid connection point PCC after reactive power compensation; P PCC (t) and Q PCC (t) represents the measured values of active power and reactive power at the PCC grid connection point at time t, respectively; P B (t) and QB (t) represents the measured values of active power and reactive power at point B of the joint system at time t, respectively.
[0205] S600, control the active and reactive power output of the new energy power station and the energy storage power station according to at least the active power compensation value and reactive power compensation value required by the combined system, and proceed to step S100.
[0206] Specifically, step S600 includes:
[0207] Step S610: Detect the upper limit of active power output and the upper limit of reactive power output for each new energy power station;
[0208] Step S620: For each new energy power station, determine whether its active power output limit is greater than the ratio of the active power compensation value of the joint system to the number of new energy power stations. If not, continue to step S640; if yes, go to step S650.
[0209] Step S630: For each new energy power station, determine whether its upper limit of reactive power output is greater than the ratio of the reactive power compensation value of the joint system to the number of new energy power stations. If yes, continue to step S660; otherwise, go to step S670.
[0210] Step S640: Determine the active power of each new energy power station and the corresponding energy storage power station, using the following formula:
[0211] When P ref_B / n > P i At that time, P bi =P i P ai =P ref_B / nP i
[0212] Among them, P ref_B P represents the active power compensation value of the combined system. i P represents the upper limit of active power output of the i-th renewable energy power station; n represents the number of renewable energy power stations; bi P represents the active power that the i-th renewable energy power station needs to output; ai This represents the active power output of the energy storage power station corresponding to the output of the i-th new energy power station.
[0213] Step S650: Determine the active power of each new energy power station and the corresponding energy storage power station, using the following formula:
[0214] When P ref B / n ≤ P i At that time, P bi =P ref B / n, P ai =0
[0215] Step S660: Determine the reactive power of each new energy power station and the corresponding energy storage power station, using the following formula:
[0216] When Q ref B / n ≤ Q i At that time, Q bi =Q ref B / n, Q ai =0
[0217] Among them, Q ref_B Q represents the reactive power compensation value of the combined system; i Q represents the upper limit of reactive power output of the i-th renewable energy power station; n represents the number of renewable energy power stations; Q bi Q represents the reactive power that the i-th renewable energy power station needs to output; ai This represents the reactive power of the energy storage power station corresponding to the output of the i-th new energy power station.
[0218] Step S670: Determine the reactive power of each new energy power station and the corresponding energy storage power station, using the following formula:
[0219] When Q ref B / n > Q i At that time, Q bi =Q i Q ai =Q ref B / nQ i
[0220] Step S680: Control each new energy power station to output the calculated active and reactive power; control the active power output of the energy storage power station according to the active power threshold, and control the active and reactive power output of the energy storage power station according to the reactive power output threshold. The calculation formulas for the active power output threshold and the reactive power threshold are as follows:
[0221] P a =
[0222] Q a =
[0223] Among them, P a Q is the active power output threshold; a The reactive power output threshold is represented by n; n represents the number of renewable energy power stations; P ai Q represents the active power corresponding to the output of the energy storage power station and the i-th new energy power station; aiThis represents the reactive power of the energy storage power station corresponding to the output of the i-th new energy power station.
[0224] Figure 3 This is a topology diagram of the joint access of an energy storage power station and a new energy power station. In the diagram, energy storage power station 600 and new energy power station 100 (wind power / photovoltaic) form a joint system of energy storage power station and new energy power station. The parallel connection point of the energy storage power station and the new energy power station is terminal B of the joint system. Terminal B of the joint system and terminal C of the power load 700 are connected to the grid connection point PCC. After passing through a transmission line (line impedance 800), the grid connection point PCC is connected to the step-up transformer 900. The step-up transformer 900 increases the voltage and connects to the AC / DC hybrid power grid 170.
[0225] Figure 4 This is a schematic diagram of the voltage control system for energy storage power stations and new energy power plants based on the bird flocking algorithm according to an embodiment of the present invention. It should be noted that the application of the voltage control system for energy storage power stations and new energy power plants based on the bird flocking algorithm in this embodiment can be, for example, a combined system of energy storage power stations and new energy power plants connected to an AC / DC hybrid power grid.
[0226] like Figure 4 As shown, the voltage control system includes multiple new energy power stations (n photovoltaic power stations 1), energy storage power stations 6, power loads 7, AC / DC hybrid power grid 17, new energy power station controllers (e.g., photovoltaic controllers 2), energy storage control system 5, and power dispatch system 4.
[0227] Among them, the energy storage power station 6 and all photovoltaic 1 form a joint system of energy storage and new energy power station. Terminal B of the joint system and one end of the power load 7 are connected to the grid connection point PCC. The grid connection point PCC is connected to the step-up transformer 9 after passing through the transmission line (line impedance 8). The step-up transformer 9 increases the voltage and connects to the AC / DC hybrid power grid 17. The AC / DC hybrid power grid 17 includes the parallel AC power grid 10 and the HVDC receiving end 11.
[0228] One input of the power dispatch system 4 is connected to the PCC grid connection point; the other input of the power dispatch system 4 is connected to the combined system terminal B point; and one output of the power dispatch system 4 is connected to the input of the photovoltaic controller 2 (see...). Figure 4 Line number 13); another output of the power dispatch system 4 is connected to an input of the energy storage control system 5 (see...). Figure 4 (Line number 14).
[0229] The output of photovoltaic controller 2 is connected to the input of photovoltaic power station 1 (see...). Figure 4 Line number 18); the output of the energy storage control system 5 is connected to the input of the energy storage power station 6 (see...). Figure 4Line number 15); the output of energy storage power station 6 is connected to the other input of energy storage control system 5 (see Figure 4 (Line number 16).
[0230] The working principle of the voltage control system for energy storage power stations and new energy power plants based on the bird flocking algorithm in this embodiment is explained below.
[0231] Each photovoltaic power station 1 is used to convert solar energy into electrical energy. Energy storage power station 6 is used to convert chemical energy into electrical energy. The electrical load 7 represents the local consumption load of new energy power generation. Local consumption improves the coordination of energy supply and demand. Since most new energy power generation is distributed generation, the electrical load is introduced here to simulate the local consumption load of distributed power sources in reality. The step-up transformer 9 is used to convert low-voltage electricity into high-voltage electricity before connecting it to the AC / DC hybrid power grid 17.
[0232] Power dispatch system 4 is used to detect the voltage U at the PCC grid connection point. pcc and current value I pcc and the voltage U at point B of the combined system B and current value U B The system determines whether the voltage at the grid connection point exceeds the limit. When the voltage exceeds the limit, it uses the bird flock algorithm to calculate the active power compensation value and reactive power compensation value required by the combined system. Based on the active power compensation value and reactive power compensation value, it controls the active power and reactive power output of each photovoltaic power station 1 and energy storage power station 6 through the photovoltaic controller 2 and energy storage control system 5, respectively.
[0233] The energy storage control system 5 is used to allocate the active and reactive power of each energy storage unit module in the energy storage power station 6 according to the output of the power dispatch system 4.
[0234] The photovoltaic controller 2 is used to control the active and reactive power of each photovoltaic power station 1 according to the output of the power dispatch system 4.
[0235] As a preferred embodiment, this embodiment may optionally also include a power monitor for new energy equipment (e.g., a photovoltaic power monitor 3). The power dispatch system 4 is also connected to each photovoltaic power station 1 via the photovoltaic power monitor 3 (see...). Figure 4 (Line number 12). The photovoltaic power monitor 3 is used to monitor the upper limit of active power output and the upper limit of reactive power output of each photovoltaic power station 1 in real time, and transmit them to the power dispatch system 4.
[0236] The power dispatch system 4 is specifically used to control the active and reactive power output of each photovoltaic power station 1 and each energy storage module in the energy storage power station 6 based on the active and reactive power output limits monitored by the photovoltaic power monitor 3 and the calculated active and reactive power compensation values required by the combined system. Specifically, the power dispatch system 4 calculates the active and reactive power output thresholds of each photovoltaic power station 1 and the active and reactive power output thresholds of the energy storage power station based on the active and reactive power output limits monitored by the photovoltaic power monitor 3 and the calculated active and reactive power compensation values required by the combined system. It then transmits the calculated active and reactive power outputs of each photovoltaic power station 1 to the photovoltaic controller 2 and the calculated active and reactive power output thresholds of the energy storage power station to the energy storage control system 5. The energy storage control system 5 allocates the active and reactive power of each energy storage module in the energy storage power station 6 according to the active and reactive power output thresholds. The photovoltaic controller 2 controls the active and reactive power of each photovoltaic power station 1 based on the received active and reactive power.
[0237] It should be noted that in this embodiment, the power dispatch system 4 can execute all the steps of the voltage control method for energy storage power stations and new energy power stations based on the bird flocking algorithm in the aforementioned embodiment, which will not be repeated here.
[0238] Figure 5 This is a schematic diagram of a simulation system for voltage control of energy storage power stations and new energy power plants based on the bird flocking algorithm, according to an embodiment of the present invention. The voltage control method for energy storage power stations and new energy power plants based on the bird flocking algorithm of the present invention can be implemented using a hardware system, such as... Figure 5 The simulation system for voltage control of energy storage power stations and new energy power plants based on bird flocking algorithm consists of three parts: simulator 1000, software platform and CPU 3000.
[0239] The simulator 1000 is used to simulate the actual operation of the power grid. The simulator includes a power grid 170', a new energy power station 100', an energy storage power station 600', and an electrical load 700'. The energy storage power station 600' and the new energy power station 100' form a combined energy storage and new energy power station system. The parallel connection point of the energy storage power station 600' and the new energy power station 100' is the terminal B point of the combined system. The terminal B point of the combined system and one end of the electrical load are connected to the PCC grid connection point. The PCC grid connection point is connected to the transformer 900' after passing through the transmission line 800'. The transformer 900' increases the voltage and then connects it to the power grid 170'.
[0240] The software platform includes a voltage and current monitoring module 2000, which is used to monitor the voltage and current of the grid connection point PCC and the combined system terminal B in the simulator 1000 in real time and transmit them to the CPU 3000.
[0241] The CPU 3000 is used to download and execute the following program: Based on monitoring data from the software platform, it determines whether the grid connection point voltage exceeds the limit. If a voltage exceedance occurs, it uses a bird flocking algorithm to calculate the active and reactive power compensation values output by the combined system in the simulator. Based on these compensation values, it controls the active and reactive power outputs of each new energy power station and each energy storage module in the energy storage power station within the simulator. Specifically, the CPU uses the bird flocking algorithm to calculate the active and reactive power outputs of the energy storage power station and the new energy power station, and finally returns the calculation results to the simulator to control the grid connection point voltage.
[0242] Specifically, the CPU 3000 includes:
[0243] The voltage over-limit judgment module 3100 is used to determine whether the voltage at the grid connection point exceeds the limit based on the voltage data monitored by the voltage and current monitoring module 2000 of the software platform.
[0244] The bird flocking algorithm module 3200 is used to calculate the active power compensation value and reactive power compensation value of the joint system output in the simulator when the voltage over-limit judgment module 3100 judges that the voltage is over-limit.
[0245] The power distribution module 3300 is used to control the active and reactive power output of each new energy power station and energy storage power station in the simulator, based at least on the active power compensation value and reactive power compensation value calculated by the bird flocking algorithm module 3200.
[0246] It should be noted that in this embodiment, the CPU can download the program of the voltage control method for energy storage power stations and new energy power stations based on the bird flocking algorithm in the aforementioned embodiment, and execute all the steps of the voltage control method for energy storage power stations and new energy power stations based on the bird flocking algorithm in the aforementioned embodiment, which will not be repeated here.
[0247] The above description is merely an optional embodiment of this disclosure and is not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the protection scope of this disclosure.
Claims
1. A voltage control method for energy storage and new energy power stations based on bird flocking algorithm, comprising: Detect the voltage and current at the PCC grid connection point and the combined system terminal B point. The combined system consists of an energy storage power station and a new energy power station. When the voltage at the PCC grid connection point exceeds the limit, determine the apparent power required by the combined system when active power is adjusted separately and reactive power is adjusted separately. Based on the relationship between the apparent power required by the combined system when active power is adjusted separately and the maximum output capacity of the combined system when reactive power is adjusted separately, the objective function of the bird flocking algorithm is set. Based on the objective function of the bird flocking algorithm, the active power compensation value and reactive power compensation value required by the joint system are calculated using the bird flocking algorithm. The active and reactive power outputs of the new energy power plant and the energy storage power station are controlled at least according to the active power compensation value and the reactive power compensation value. The step of setting the objective function of the bird flocking algorithm to maintain the voltage at the grid connection point at the rated value based on the relationship between the apparent power required by the combined system when the active power is adjusted separately and the maximum output capacity of the combined system when the reactive power is adjusted separately includes: When the apparent power required by the combined system for adjusting active power and reactive power individually is less than or equal to the maximum output capacity of the combined system, the objective function of the bird flocking algorithm is set as follows: Among them: Fit i U represents the fitness value of the i-th bird, 1 ≤ i ≤ N, where N is the flock size; n This indicates the rated value of the PCC grid connection point voltage; and These are the ordinate and abscissa of the position of the i-th bird in the bird flocking algorithm, respectively. This represents the grid connection point voltage regulation effect value corresponding to the position of the i-th bird in the bird flocking algorithm; When the apparent power required by the combined system for both active power regulation and reactive power regulation alone exceeds the maximum output capacity of the combined system, the objective function of the bird flocking algorithm is set as follows: When U pcc (t) > U max , When U pcc (t) < U min , Among them, Fit i U represents the fitness value of the i-th bird, 1 ≤ i ≤ N, where N is the flock size; pcc (t) represents the measured value of the PCC grid connection point voltage at time t; U max Equal to 1.1U n U min Equal to 0.9U n U n This indicates the rated value of the PCC grid connection point voltage; This represents the grid connection point voltage regulation effect value corresponding to the position of the i-th bird in the bird flocking algorithm; When only one of the apparent power required by the combined system when adjusting active power or reactive power individually is less than the maximum output capacity of the combined system, the objective function of the bird flocking algorithm is set as follows: Among them, Fit i U represents the fitness value of the i-th bird, 1 ≤ i ≤ N, where N is the flock size; n This indicates the rated value of the PCC grid connection point voltage; This represents the voltage regulation effect value of the grid connection point corresponding to the position of the i-th bird in the bird flock algorithm.
2. The voltage control method for energy storage and new energy power stations based on the bird flocking algorithm as described in claim 1, characterized in that, The objective function based on the bird flocking algorithm, specifically, uses the bird flocking algorithm to calculate the required active power compensation value and reactive power compensation value of the joint system as follows: (1) Based on the random location of each bird, calculate the fitness value of each bird according to the objective function of the bird flocking algorithm; (2) Perform iterations and determine whether the quotient of the current iteration number m and the bird migration frequency Q is an integer. When the quotient is an integer, for each bird, generate a random number b corresponding to the current iteration number m. Determine the bird's state based on the size of the random number b and the foraging probability P, and update the position of the foraging bird and / or the alert bird. When the quotient is an integer, determine the bird's behavior based on the size of the best fitness value of each bird. The best fitness value of each bird is the best fitness value of the bird updated in the previous iteration. Update the position of the producer behavior bird and / or the beggar behavior bird. (3) Based on the updated bird positions, calculate the new fitness value of each bird according to the objective function of the bird flocking algorithm; (4) For each bird, determine the optimal position and the update strategy for the optimal fitness value of the bird based on the first difference between the bird's new fitness value and the previous best fitness value; determine the global optimal position and the update strategy for the global best fitness value of the flock based on the second difference between the new fitness value of each bird and the previous global best fitness value of the flock. (5) Return to the iteration step until the number of iterations is greater than the maximum number of iterations, at which point the global optimal position is output; (6) Based on the output global optimal position, calculate the active power compensation value and reactive power compensation value required by the joint system. 3.The energy storage and new energy station voltage control method based on bird swarm algorithm of claim 2, wherein, The steps of updating the positions of birds in foraging and / or alert states, and the steps of updating the positions of birds exhibiting producer behavior and / or beggar behavior, specifically are as follows: The position of the foraging bird is updated using the following formula: The position of the alert bird is updated using the following formula: The position of the updated producer behavior bird is calculated using the following formula: The position of the beggar bird is calculated and updated using the following formula: Of the four formulas above, and Let represent the positions of the i-th bird after the m-th iteration and the (m-1)-th iteration, respectively; i represents the bird's index, 1 ≤ i ≤ N, and N is the flock size; m represents the current iteration number, 1 ≤ m ≤ m max m max p represents the maximum number of iterations. i represents the previous optimal position of the i-th bird; C and S are the cognitive coefficient and social evolution coefficient, respectively; rand(0,1) is a random number between 0 and 1; g represents the previous global optimal position of the entire flock; mean2 represents the previous average position of the population; k is a random integer between [1,N], and k≠i; The previous optimal position of the k-th bird; rand(-1, 1) is a random number between -1 and 1; randn(0, 1) represents generating a random number that follows a Gaussian distribution with an expected value of 0 and a standard deviation of 1; r is an integer between [1, N], r ≠ i and the l-th bird is the producer; Let A1 be the position of the r-th bird in the flock after the (m-1)-th iteration; FL is a constant randomly determined between [0, 1]. FL needs to be updated each time the position of the beggar bird is calculated. The formulas for calculating A1 and A2 are: Where a1 and a2 are constants between [0, 2]; pFit i This represents the previous best fitness value for the i-th bird; represents the previous best fitness value of the k-th bird; sumpFit represents the sum of the previous best fitness values of the entire flock; ε is used to avoid zero partitions and is the smallest constant in the computer program.
4. The bird swarm algorithm-based energy storage and new energy station voltage control method of claim 1, wherein, The determination of the apparent power required by the combined system when active power is adjusted separately and reactive power is adjusted separately specifically includes: (1) Determine the individual active power compensation value and the individual reactive power compensation value using the following formula: Among them, P com (t) represents the individual active power compensation value at time t; Q com (t) represents the individual reactive power compensation value at the current time t: P pcc_s (t) and Q pcc_s (t) represents the active power and reactive power values that the grid connection point voltage should reach at the current time t, when only active power regulation and reactive power regulation are performed respectively, so that the grid connection point voltage meets the specified range; P PCC (t) and Q PCC (t) represents the measured values of active power and reactive power at the PCC grid connection point at the current time t, respectively; P B (t) and Q B (t) represents the measured values of active power and reactive power at point B of the joint system at the current time t; (2) The apparent power required by the combined system when adjusting active power separately is determined based on the individual active power compensation value. The formula for determining the apparent power required by the combined system when adjusting reactive power separately is based on the individual reactive power compensation value: S B_P (t) = 0.5 S B_Q (t)= Among them, S B_P (t) represents the apparent power required by the combined system at time t when the active power is adjusted individually; S B_Q (t) represents the apparent power required by the combined system at time t when reactive power is adjusted alone.
5. The voltage control method for energy storage and new energy power stations based on the bird flocking algorithm as described in claim 1, characterized in that, The control of the active and reactive power outputs of the new energy power plant and the energy storage power station based at least on the active power compensation value and the reactive power compensation value includes: Detect the upper limit of active power output and the upper limit of reactive power output for each new energy power station; The active and reactive power of each new energy power station and its corresponding energy storage power station are calculated using the following formula: When P ref B / n ≤ P i At that time, P bi = P ref B / n, P ai = 0 When P ref B / n > P i At that time, P bi = P i P ai = P ref B / n - P i When Q ref B / n≤ Q i At that time, Q bi =Q ref B / n, Q ai =0 When Q ref B / n > Q i At that time, Q bi =Q i Q ai =Q ref B / nQ i Among them, P ref_B and Q ref_B These represent the active power compensation value and reactive power compensation value of the combined system, respectively; P i and Q i These represent the upper limits of active power output and reactive power output of the i-th renewable energy power station, respectively; n represents the number of renewable energy power stations; P bi and Q bi P represents the active power and reactive power that the i-th renewable energy power station needs to output, respectively; ai and Q ai These represent the active power and reactive power of the energy storage power station and the output of the i-th new energy power station, respectively. Control the output of each new energy power station to obtain the calculated active and reactive power; based on the sum of the active and reactive power of the energy storage power station corresponding to the output of all new energy power stations, control the output of the active and reactive power of the energy storage power station respectively.
6. A bird swarm algorithm-based energy storage and new energy station voltage control system, characterized in that, include: Multiple new energy power plants, energy storage power plants, electricity loads, power grids, new energy power plant controllers, energy storage control systems, and power dispatch systems. The multiple new energy power stations and the energy storage power station form a combined energy storage and new energy power station system. The parallel connection point between the energy storage power station and the new energy power station is the terminal B point of the combined system. The terminal B point of the combined system and one end of the power load are connected to the PCC grid connection point, and the PCC grid connection point is connected to the power grid. One input terminal of the power dispatching system is connected to the PCC grid connection point; another input terminal is connected to terminal B of the combined system; one output terminal is connected to the input terminal of the new energy power station controller; another output terminal is connected to one input terminal of the energy storage control system; the output terminal of the new energy power station controller is connected to the input terminal of each new energy power station; the output terminal of the energy storage control system is connected to the input terminal of the energy storage power station; the output terminal of the energy storage power station is connected to the other input terminal of the energy storage control system. The power dispatching system is used to execute all the steps of the voltage control method for energy storage and new energy power stations based on the bird flocking algorithm as described in claim 1. Specifically, it is used to detect the voltage and current at the PCC grid connection point and the combined system terminal B point, determine whether the grid connection point voltage exceeds the limit, and when the voltage exceeds the limit, use the bird flocking algorithm to calculate the active power compensation value and reactive power compensation value required by the combined system, and control the active power and reactive power output of the new energy power station and the energy storage power station at least according to the active power compensation value and the reactive power compensation value.
7. A simulation system for voltage control of energy storage and new energy power stations based on bird swarm algorithm, comprising: The simulator is used to simulate the actual operation of the power grid. The simulator includes the power grid, new energy power stations, energy storage power stations and power loads. The energy storage power station and the new energy power station form a joint system of energy storage and new energy power stations. The parallel connection point of the energy storage power station and the new energy power station is the terminal B point of the joint system. The terminal B point of the joint system and one end of the power load are connected to the PCC grid connection point. The PCC grid connection point is connected to the power grid. The software platform is used to monitor the voltage and current of the PCC grid connection point and the combined system terminal B point in the simulator in real time. The CPU is used to download the program of the voltage control method for energy storage and new energy power stations based on the bird flocking algorithm as described in claim 1, and execute all the steps of the voltage control method for energy storage and new energy power stations based on the bird flocking algorithm as described in claim 1. Specifically, it is used to download and execute the following program: determine whether the voltage at the grid connection point exceeds the limit based on the monitoring data of the software platform, and when the voltage exceeds the limit, use the bird flocking algorithm to calculate the active power compensation value and reactive power compensation value output by the joint system in the simulator, and at least calculate the active power and reactive power output of each new energy power station and energy storage power station in the simulator based on the active power compensation value and the reactive power compensation value, and return the calculation results to the simulator to realize the simulation control of the voltage at the grid connection point.
Citation Information
Patent Citations
Reactive voltage coordination control method and system for energy storage power station and clean energy power station
CN112803429A
DC micro-grid droop coefficient optimization method based on improved bird swarm algorithm
CN110265994A
Grid-connected point voltage control method and system of movable optical storage system
CN112103962A