A Multi-Mode Switching Flywheel Energy Storage Power Optimization Method and System Based on Particle Swarm Optimization
By combining particle swarm optimization algorithm with a multi-mode switching flywheel energy storage power optimization method, the problem of energy imbalance in flywheel energy storage systems under dynamic loads is solved, achieving efficient and stable energy distribution and response.
Patent Information
- Application Number
- CN202611120638.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-27
- Publication Date
- 2026-11-17
AI Technical Summary
Existing flywheel energy storage systems lack adaptability when faced with differences in flywheel unit performance and dynamic load changes, resulting in uneven energy storage and insufficient system efficiency and stability.
A multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization is adopted, which combines SOC equalization mode, equal power allocation mode, proportional allocation mode and intelligent allocation mode. The power allocation is dynamically adjusted through particle swarm optimization algorithm to optimize the energy balance and response speed of flywheel energy storage array.
The flywheel energy storage system has achieved high efficiency and stability under different operating conditions, improved the system's response speed and energy efficiency, and ensured balanced and optimized distribution under dynamic load changes.
Smart Images

Figure CN123121733A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of power optimization technology, specifically relating to a multi-mode switching flywheel energy storage power optimization method and system based on particle swarm optimization. Background Technology
[0002] The statements in this section are merely background information related to the present invention and do not necessarily constitute prior art.
[0003] Flywheel energy storage has become a key choice in energy storage technologies due to its advantages such as long lifespan, rapid charging and discharging, high power density, and low environmental pollution. However, the energy storage capacity of a single flywheel energy storage unit is limited and cannot meet the needs of large-scale energy storage and stable power supply. Therefore, multiple flywheel units are usually connected in parallel to form a flywheel energy storage array, thereby increasing the system's power and energy storage capacity to achieve greater energy storage and release capabilities.
[0004] To optimize the power distribution among the flywheel units in a flywheel energy storage array, a power distribution strategy is required. Through precise power distribution, the collaborative work between flywheel units can be optimized, thereby improving the overall system's operating efficiency and stability. Existing traditional power distribution strategies lack adaptability and flexibility in the face of differences in flywheel unit performance and dynamic load changes.
[0005] While equal power allocation, equal torque allocation, and equal time allocation strategies can be employed to optimize the power of flywheel energy storage, they cannot effectively address differences in state of charge (SOC) between flywheel units, lack adaptability to dynamic load changes, and react slowly to SOC balancing, failing to promptly restore flywheel units to their optimal operating state. Furthermore, traditional power allocation strategies typically do not adequately consider the characteristics of flywheel losses, failing to optimize the energy losses of flywheel units, resulting in low overall system efficiency and consequently affecting the performance and reliability of the entire energy storage system. Summary of the Invention
[0006] To address the aforementioned issues, this invention proposes a multi-mode switching flywheel energy storage power optimization method and system based on particle swarm optimization. By combining the particle swarm optimization algorithm with four power allocation modes—SOC equalization mode, equal power allocation mode, proportional allocation mode, and intelligent allocation mode—the appropriate power allocation mode is selected based on the system's real-time operating status, improving the system's response speed and energy efficiency. Under the guidance of multiple objective functions, the energy storage power is dynamically adjusted to optimize the power allocation of the flywheel energy storage array, thereby solving the energy balance problem of existing flywheel energy storage systems under multiple operating conditions and ensuring the system's high efficiency and stability under different operating states.
[0007] According to some embodiments, the first aspect of the present invention provides a multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization, employing the following technical solution: A multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization includes: Obtain the state of charge and power command of the flywheel energy storage unit in the flywheel energy storage array; Determine the consistency between the acquired state of charge and the power command; Based on the results of the consistency status judgment, the power allocation mode of flywheel energy storage is selected to complete the power optimization of flywheel energy storage with multi-mode switching; The power allocation modes include at least a state-of-charge (POC) equalization mode, an equal power allocation mode, and a proportional allocation mode. The POC equalization mode is triggered when there is no power command and the POC states of each flywheel unit are inconsistent. It calculates the minimum loss point using a particle swarm optimization algorithm and performs power complementarity based on the difference between the POC state of each flywheel unit and the minimum loss point, causing the POC state of each flywheel unit to converge towards the minimum loss point. The equal power allocation mode is triggered when a power command is received and the POC states of each flywheel unit are consistent, allocating equal power to each flywheel unit. The proportional allocation mode is triggered when a power command is received and the POC states of each flywheel unit are inconsistent, allocating power proportionally according to the POC state of each flywheel unit.
[0008] As a further technical limitation, in the process of calculating the minimum loss point using the particle swarm optimization algorithm, the average state of charge of all flywheel units in the flywheel energy storage array is calculated; a multi-objective optimization function is constructed, which includes a difference term between the state of charge of each flywheel unit and the average state of charge, a total power loss term of the system, and a difference term between the maximum state of charge and the minimum state of charge; with minimizing the multi-objective optimization function as the optimization objective, the particle swarm optimization algorithm is used for iterative solution, and the obtained global optimal solution is determined as the minimum loss point.
[0009] As a further technical limitation, in the process of power complementarity based on the difference between the state of charge of each flywheel unit and the minimum loss point, the power release coefficient of each flywheel unit is calculated according to the difference between the state of charge of each flywheel unit and the minimum loss point; the release power of the flywheel unit with a state of charge higher than the minimum loss point is calculated according to the power release coefficient and the rated power of each flywheel unit; and the release power is allocated to the flywheel unit with a state of charge lower than the minimum loss point according to the state of charge ratio for charging. The calculation process of the power release coefficient takes into account the sum of the differences in the state of charge between each flywheel unit, as well as the adjustment factor used to dynamically adjust the power release rate; among them, the larger the sum of the differences in the state of charge, the larger the power release coefficient and the faster the convergence speed of the state of charge.
[0010] As a further technical limitation, in the process of allocating power according to the state of charge (SBC) ratio of each flywheel unit, a power allocation coefficient for each flywheel unit is calculated. This power allocation coefficient is equal to the ratio of the SBC value of each flywheel unit to the sum of the SBC values of all flywheel units. Based on the direction of the power command, a discharge mode or a charging mode is determined. In the discharge mode, the power allocation coefficient is directly proportional to the SBC; in the charging mode, the power allocation coefficient is inversely proportional to the SBC. A power adjustment coefficient based on the Logistic function is introduced. When the SBC of a flywheel unit is within a preset adjustment range, the power allocation coefficient is corrected using this power adjustment coefficient to limit the charging and discharging power.
[0011] As a further technical limitation, the state-of-charge balancing mode also includes DC bus voltage stabilization control, which monitors the DC bus voltage in real time and calculates its deviation from the command bus voltage; when the absolute value of the obtained deviation exceeds a preset threshold, the power output rate of each flywheel unit is dynamically adjusted according to the sign of the deviation to suppress bus voltage fluctuations.
[0012] As a further technical limitation, the multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization also includes switching to intelligent allocation mode when executing the proportional allocation mode if the allocated power of any flywheel energy storage unit exceeds its rated power; in the intelligent allocation mode, with power command as constraint and minimizing power loss and balancing the state of charge as objectives, the particle swarm optimization algorithm is called again for iterative optimization to output the optimal power allocation scheme for each flywheel unit.
[0013] According to some embodiments, the second aspect of the present invention provides a multi-mode switching flywheel energy storage power optimization system based on particle swarm optimization, which adopts the following technical solution: A multi-mode switching flywheel energy storage power optimization system based on particle swarm optimization includes: The acquisition module is configured to acquire the state of charge and power commands of the flywheel energy storage units in the flywheel energy storage array; The judgment module is configured to determine the consistency between the acquired state of charge and the power command. The optimization module is configured to select the power allocation mode of flywheel energy storage based on the judgment result of the obtained consistency state, and complete the power optimization of flywheel energy storage with multi-mode switching. The power allocation modes include at least a state-of-charge (POC) equalization mode, an equal power allocation mode, and a proportional allocation mode. The POC equalization mode is triggered when there is no power command and the POC states of each flywheel unit are inconsistent. It calculates the minimum loss point using a particle swarm optimization algorithm and performs power complementarity based on the difference between the POC state of each flywheel unit and the minimum loss point, causing the POC state of each flywheel unit to converge towards the minimum loss point. The equal power allocation mode is triggered when a power command is received and the POC states of each flywheel unit are consistent, allocating equal power to each flywheel unit. The proportional allocation mode is triggered when a power command is received and the POC states of each flywheel unit are inconsistent, allocating power proportionally according to the POC state of each flywheel unit.
[0014] According to some embodiments, a third aspect of the present invention provides a computer-readable storage medium, employing the following technical solution: A computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps of a multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization as described in the first aspect of the present invention.
[0015] According to some embodiments, the fourth aspect of the present invention provides an electronic device, which adopts the following technical solution: An electronic device includes a memory, a processor, and a program stored in the memory and running on the processor. When the processor executes the program, it implements the steps in the multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization as described in the first aspect of the present invention.
[0016] According to some embodiments, the fifth aspect of the present invention provides a computer program product, which adopts the following technical solution: A computer program product includes software code, wherein the program in the software code performs the steps of a multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization as described in the first aspect of the present invention.
[0017] Compared with the prior art, the beneficial effects of the present invention are as follows: This invention constructs a multi-mode switching framework that includes SOC equalization mode, equal power distribution mode, proportional distribution mode, and intelligent distribution mode; it selects the optimal control mode in real time and adaptively based on the presence or absence of power commands and the consistency state of the flywheel unit's SOC; it automatically performs internal energy circulation to balance the SOC when there are no commands, and selects the simplest or optimal distribution method according to the SOC state when there are commands, avoiding the "one-size-fits-all" problem of traditional strategies under all operating conditions, and realizing the optimal efficiency and response of the flywheel energy storage array under different operating scenarios.
[0018] This invention decomposes the complex power optimization problem into independently controllable sub-modules through a hierarchical control architecture of "state discrimination - pattern matching - algorithm execution". The equal power allocation mode and proportional allocation mode adopt analytical calculation, which has low computational load and fast response. The SOC equalization mode and intelligent allocation mode enable the particle swarm optimization algorithm (PSO) as needed, which effectively controls the computational overhead while ensuring optimization accuracy. The entire control strategy has clear logic and is easy to implement in engineering. It can be widely used in various energy storage scenarios such as electrified railways, new energy power plants, and AC / DC microgrids, and has good industrial application prospects and promotion value. Attached Figure Description
[0019] The accompanying drawings, which form part of this embodiment, are used to provide a further understanding of this embodiment. The illustrative embodiments and their descriptions are used to explain this embodiment and do not constitute an improper limitation of this embodiment.
[0020] Figure 1 This is a flowchart of a multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization in Embodiment 1 of the present invention; Figure 2 This is a detailed schematic diagram illustrating the steps of a multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization in Embodiment 1 of the present invention. Figure 3 The power regulation coefficient in the discharge mode of Embodiment 1 of the present invention. β Schematic diagram of the relationship between i and state of charge (SOC) Figure 4 The power regulation coefficient in the charging mode of Embodiment 1 of the present invention. β A schematic diagram showing the relationship between i and the state of charge (SOC); Figure 5 This is a structural block diagram of a multi-mode switching flywheel energy storage power optimization system based on particle swarm optimization, as shown in Embodiment 2 of the present invention. Detailed Implementation
[0021] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0022] It should be noted that the following detailed descriptions are exemplary and intended to provide further illustration of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.
[0023] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of exemplary embodiments according to the invention. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.
[0024] In this invention, terms such as "upper," "lower," "left," "right," "front," "back," "vertical," "horizontal," "side," and "bottom" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. These terms are used only to facilitate the description of the structural relationships of the various components or elements of this invention and do not specifically refer to any component or element in this invention. They should not be construed as limiting the invention.
[0025] In this invention, terms such as "fixed connection," "connected," and "linked" should be interpreted broadly, indicating a fixed connection, an integral connection, or a detachable connection; a direct connection or an indirect connection through an intermediate medium. Those skilled in the art can determine the specific meaning of these terms in this invention based on the specific circumstances, and they should not be construed as limitations on the invention.
[0026] Where there is no conflict, the embodiments and features in the embodiments of the present invention can be combined with each other.
[0027] Example 1 Embodiment 1 of this invention introduces a multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization.
[0028] like Figure 1 The method shown is a multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization, including: Obtain the state of charge and power command of the flywheel energy storage unit in the flywheel energy storage array; Determine the consistency between the acquired state of charge and the power command; Based on the results of the consistency status judgment, the power allocation mode of flywheel energy storage is selected to complete the power optimization of flywheel energy storage with multi-mode switching; The power allocation modes include at least a state-of-charge (POC) equalization mode, an equal power allocation mode, and a proportional allocation mode. The POC equalization mode is triggered when there is no power command and the POC states of each flywheel unit are inconsistent. It calculates the minimum loss point using a particle swarm optimization algorithm and performs power complementarity based on the difference between the POC state of each flywheel unit and the minimum loss point, causing the POC state of each flywheel unit to converge towards the minimum loss point. The equal power allocation mode is triggered when a power command is received and the POC states of each flywheel unit are consistent, allocating equal power to each flywheel unit. The proportional allocation mode is triggered when a power command is received and the POC states of each flywheel unit are inconsistent, allocating power proportionally according to the POC state of each flywheel unit.
[0029] This embodiment introduces a multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization (PSO). This method aims to optimize the power allocation of flywheel energy storage arrays, solving the energy balance problem of existing flywheel energy storage systems under multiple operating conditions and ensuring the system's high efficiency and stability under different operating states. This embodiment combines PSO with four power allocation modes (SOC equalization mode, equal power allocation mode, proportional allocation mode, and intelligent allocation mode). Based on real-time operating conditions (such as SOC consistency and whether power commands are received), it intelligently selects the most suitable power allocation mode to improve the system's response speed and energy efficiency. Through advanced optimization techniques such as PSO, the system can dynamically adjust under the guidance of multiple objective functions, including SOC consistency, loss optimization, and constraint conditions, thereby achieving optimal power allocation and energy balance among flywheel units.
[0030] like Figure 2 As shown, when the State of Charge (SOC) is inconsistent and no power command is given, the system enters an SOC equalization mode. In this mode, the flywheel array performs power complementarity based on the SOC differences between its flywheel units. Flywheel units with higher SOC release power to lower their own SOC, while simultaneously using the released energy to charge flywheel units with lower SOC. Through Power Sorting (PSO), the system calculates a minimum loss point, which is closely related to the average SOC of the flywheel array and minimizes energy loss. This process ensures that the SOC difference between flywheel units gradually decreases and stops at the minimum loss point, thereby improving the system's energy utilization, significantly reducing SOC differences, and enhancing the overall system's operating efficiency and stability.
[0031] When the SOC is consistent, the system will switch to equal power distribution mode to improve efficiency by simplifying the power distribution process.
[0032] When the State of Charge (SOC) is inconsistent, the system will use a proportional SOC allocation mode for power distribution. Specifically, the system allocates power proportionally according to the SOC value of each flywheel unit, so that each flywheel unit releases or absorbs appropriate energy according to its SOC state. As the SOC difference of the flywheel array gradually decreases, the system enters a balanced state.
[0033] During actual power allocation, if the system detects that the power demand of a flywheel unit exceeds its rated power limit, the system will switch to intelligent mode for further optimization. At this time, the system will use the Particle Swarm Optimization (PSO) algorithm to dynamically adjust the power allocation strategy based on real-time parameters such as the flywheel unit's power demand, SOC status, speed, and inverter current. Within a multi-objective optimization framework, the PSO algorithm balances factors such as SOC consistency, power demand, and power loss to achieve the optimal power allocation scheme.
[0034] This embodiment assumes that the number of flywheel units participating in power distribution is: d The total power to be allocated is P d ( P d >0 indicates discharge. P d <0 indicates charging), during initialization d and P d These are respectively equal to the number of flywheel units n in the flywheel array and the output power command of the flywheel array. P all,ref .
[0035] When no power command is received and the State of Charge (SOC) is inconsistent, the system automatically switches to SOC balancing mode. In this mode, energy is complemented based on the SOC differences between the flywheel units. The flywheel unit with the higher SOC releases power to lower its own SOC, and the released energy is used to charge the flywheel unit with the lower SOC. Through Power Loss Calculation (PSO), the minimum loss point can be accurately determined, which is closely related to the average SOC of the flywheel array. The SOC difference gradually decreases after PSO optimization calculation, and the system eventually stops near the minimum loss point, thus achieving SOC balance and significantly improving the system's energy utilization efficiency and stability.
[0036] This embodiment requires calculating the SOC value based on the rotational speed of the flywheel unit; the rotational speed of the flywheel unit... ω i The speed of the flywheel is a key factor determining the power output of the flywheel unit. The flywheel's rotational speed is directly related to its energy storage capacity; higher rotational speeds generally mean that the flywheel energy storage unit can provide higher power output. Therefore, based on the current rotational speed of the flywheel unit... ω iBased on its allowable upper and lower speed limits, the SOC value of the flywheel unit can be calculated. i ;Right now ;in, ω i,max and ω i,min Flywheel unit i The upper and lower limits of the rotational speed.
[0037] Before gradually reducing the State of Charge (SOC), the SOC of each flywheel unit in the flywheel array is calculated, and the SOC differences between the flywheel units are determined. This embodiment defines each pair of flywheel units. i and j The difference in SOC between them is ;in, and Flywheel unit i and j The SOC value, ΔSOC ij flywheel unit i With flywheel unit j The SOC difference.
[0038] In this embodiment, a flywheel unit with a higher State of Charge (SOC) is selected for power regulation. Since flywheel units with higher SOCs already store more energy, gradually reducing their power output can effectively lower their SOC and accelerate SOC convergence. Prioritizing the adjustment of high-SOC flywheel units can prevent excessive energy concentration in individual flywheel units, thus avoiding imbalances.
[0039] To optimize power distribution and minimize power loss, this embodiment introduces a particle swarm optimization (PSO) algorithm to calculate the minimum loss point of the flywheel array. PSO simulates the motion of particles in the solution space to find the optimal solution that minimizes energy loss. Here, the minimum loss point not only represents the equilibrium point of the flywheel array's state of charge (SOC), but also ensures that this point lies between the maximum and minimum SOC in the flywheel array, and is as close as possible to the average SOC. The calculation of the minimum loss point considers the balance between SOC consistency and power loss, optimizing the energy distribution of the flywheel units, enabling the flywheel energy storage system to maintain the lowest possible power loss under different operating conditions.
[0040] Particle Swarm Optimization (PSO) simulates the optimization process as birds foraging. Its optimization principle involves a swarm of m particles in an n-dimensional space. Each particle continuously adjusts its speed and position based on its own position and the positions of other particles, constantly updating its local optimum and the global optimum of the entire swarm. Through iterative processes, all particles converge to a single point, thus finding the optimal solution to the problem. In traditional PSO, the position and speed of each particle are... ; Where psi is the i-th position component of the s-th particle; vsi is the i-th velocity component of the s-th particle.
[0041] The formula for updating the velocity and position of each particle is as follows: ; ;in, g This represents the current iteration number; c 1 and c2 The learning factor for particles; Inertial weights; r 1 and r 2 is a random number between [0, 1]; Pbests for s Individual extreme values of particles; Gbest This represents the global extremum of the entire population.
[0042] This embodiment continuously adjusts the power output of the flywheel unit through the iterative process of PSO (Power Sorting) to minimize the objective function. In each iteration, PSO optimizes the solution through the following steps: Initialize the particle swarm, which means randomly initializing a possible solution for each particle, representing the power output and SOC state of the flywheel unit; Evaluate the objective function, that is, calculate the value of the objective function based on the current particle's solution; Update the particle position and velocity, that is, update the particle's velocity and position based on the value of the objective function. The particle adjusts towards the optimal solution, finding the point of minimum loss. The iterative process, namely the PSO algorithm, optimizes the objective function step by step through multiple iterations, and finally finds a minimum loss point, so that the SOC of the flywheel array is close to the average SOC, the power loss is minimized, and the difference between the maximum SOC and the minimum SOC is as small as possible.
[0043] Once the PSO calculates the minimum loss point, this embodiment will adjust the power output of the flywheel unit according to that point; flywheel units with a SOC higher than the minimum loss point will release more power, while flywheel units with a SOC lower than the minimum loss point will absorb energy, thereby making the SOC of each flywheel unit gradually approach the minimum loss point.
[0044] In the objective function of PSO, the first step is to calculate the difference between the SOC of the flywheel unit and the average SOC. The system calculates the average SOC value of all flywheel units, i.e. ;in, d SOC represents the number of flywheel units in the flywheel array. i SOC value of each flywheel unit.
[0045] The objective function of the PSO algorithm can be defined as the following multi-objective optimization problem, namely: ;in, To ensure that the SOC difference is minimized, so that the SOC of the flywheel unit is as close as possible to the average SOC; Representing the power loss of the flywheel unit, PSO optimizes the power output of the flywheel unit to minimize the power loss of the overall system. It is a weighting coefficient used to balance the effects of SOC differences and maximum and minimum SOC differences; To ensure that the minimum loss point is located between the maximum SOC and the minimum SOC; This is a weighting factor used to balance the effects of SOC differences and the differences between maximum and minimum SOC. When the difference between maximum and minimum SOC is large, this term will force the PSO to be more inclined to choose a balanced minimum loss point.
[0046] At the same time, the release and distribution of power not only need to consider the SOC difference of the flywheel unit, but also the relationship between the minimum loss point and the SOC of the flywheel unit.
[0047] This embodiment introduces a dynamically adjusted power release coefficient ψi, which determines the amount of power released by the flywheel unit with the highest SOC; that is... Where Y is an adjustment factor used to adjust the degree of influence of SOC difference on power release; This represents the minimum loss point in the flywheel array. The formula is mainly divided into two parts: the first part is the difference between the SOC of each flywheel unit and the minimum loss point, and the second part considers the sum of the SOC differences among the flywheel units. The first part measures the relative energy state of each flywheel unit by calculating the difference between its SOC and the minimum loss point. Flywheel units with larger differences will release more power to accelerate the convergence of their SOC to the minimum loss point; while flywheel units with smaller differences will release less power to avoid over-discharge. Specifically, the greater the difference between the SOC and the minimum loss point, the larger the power release coefficient, and the more power is released; the smaller the difference, the smaller the power release coefficient, and the less power is released. In this way, the system can precisely control the power output of each flywheel unit, ensuring that the SOC of each flywheel unit gradually approaches the minimum loss point. The second part considers the SOC differences among the flywheel units and dynamically adjusts the power release rate by calculating the sum of the SOC differences among the flywheel units. When the State of Charge (SOC) difference is large, the power release coefficient increases, driving the flywheel unit with the higher SOC to discharge faster, thereby accelerating the convergence of the entire system's SOC. When the SOC difference is small, the power release coefficient decreases, the power output tends to be stable, avoiding over-discharge or over-charging and ensuring stable system operation. Through the synergistic effect of these two parts, the system ensures that while accelerating SOC balance with the goal of minimizing losses, it maintains the stability and efficiency of power release, avoiding the problems of over-discharge or over-charging. Through this dynamic adjustment mechanism, the flywheel energy storage system can always maintain optimal power distribution and energy utilization efficiency under different operating conditions.
[0048] Even without an external load, power regulation within the flywheel array still involves energy transfer and exchange. During this process, the power release and charging of the flywheel units are achieved through current flow, and changes in current flow naturally lead to voltage fluctuations. Therefore, voltage changes can serve as an effective feedback signal for adjusting power distribution. To avoid DC bus voltage fluctuations caused by energy exchange within the flywheel array, the system monitors the bus voltage in real time and dynamically adjusts the power output of the flywheel units based on its changes. This ensures that the bus voltage remains within a safe range, guaranteeing stable system operation and improving the overall efficiency of the flywheel energy storage system. The DC bus voltage is monitored in real time and compared with the set command bus voltage. Assuming the command bus voltage is... V ref The actual bus voltage is V actual Calculate voltage deviation ;if V A value >0 indicates that the actual voltage is higher than the commanded voltage, and the system will reduce the voltage by decreasing the power output rate; if VA value less than 0 indicates that the actual voltage is lower than the commanded voltage, and the system will increase the voltage by increasing the power output rate.
[0049] In addition to considering the SOC difference, power output also needs to be considered as a percentage of the flywheel unit's rated power. Specifically, power output calculation depends not only on the power release coefficient. ψ i The rated power of each flywheel unit was also taken into account to ensure smooth power release and control the released power within a safe range.
[0050] To prevent the system from adjusting its power output too frequently due to voltage fluctuations, this embodiment sets a voltage fluctuation tolerance range. The system will only adjust its power output when the deviation between the actual voltage and the commanded voltage exceeds a set threshold (e.g., ±1V or ±2V). This effectively avoids frequent power adjustments caused by small voltage fluctuations and ensures that the system remains stable during operation.
[0051] When flywheel unit 1 according to When releasing power, the system distributes the released power according to the SOC ratio between the flywheel units; among which, V threshold This is the threshold for voltage deviation. Specifically, the power released by flywheel unit 1 is weighted and distributed according to the SOC of flywheel units 2 and 3. The flywheel unit with the lower SOC will receive more power, thereby accelerating its SOC increase. This distribution method ensures that the flywheel unit with the lower SOC can obtain sufficient energy to gradually increase its SOC, eventually achieving SOC balance for the entire system. Through this energy complementarity mechanism, the energy of each flywheel unit is effectively balanced without causing excessive system fluctuations, ensuring the efficient and stable operation of the energy storage system. The energy distribution used in this embodiment is... The SOC balancing mode ends when the SOCs in the flywheel array become nearly identical.
[0052] The equal power distribution mode is automatically activated when the system receives a power command and all flywheel units have the same State of Charge (SOC). Power adjustment follows the principle of equal power distribution, meaning all flywheel units receive equal power, without any weighting based on load or other parameters. The power output of each flywheel unit is uniform, with the same power allocation for each unit. This control strategy is simple and effective, ensuring that all flywheel units participate in power release equally when the system SOC is consistent. This maximizes system efficiency, preventing some flywheel units from bearing excessive power while others remain idle, thus ensuring stable system operation and improved energy efficiency. (Power output of each flywheel unit is shown in the original text.) P i* for .
[0053] The proportional control mode mainly includes the calculation of the power distribution coefficient and the regulation and control of power.
[0054] During discharge, the power distribution principle of the flywheel energy storage array follows this principle: flywheel units with higher State of Charge (SOC) release more energy, while those with lower SOC release less power. In other words, the system adjusts the proportion of discharge power each flywheel unit undertakes based on its SOC; high-SOC units release more energy, while low-SOC units discharge less. Conversely, in charging mode, flywheel units with lower SOC receive more charging power, while units with higher SOC handle less. Through this strategy, the system can effectively reduce the SOC difference between flywheel units, optimize energy distribution, and ultimately help extend the lifespan of the entire energy storage system.
[0055] The formula for calculating the SOC value of the flywheel unit is as follows: .
[0056] In this embodiment, after calculating the SOC value of the flywheel unit, this value is used to calculate the flywheel unit's... i Power allocation coefficient α i Power allocation coefficient α i The proportion of power handled by the flywheel unit is determined by its State of Charge (SOC) value; that is... .
[0057] To better match the power output of the flywheel unit with its energy storage state, the power distribution factor... α i The system dynamically adjusts its power output based on the state of charge (SOC) of each flywheel unit and the total SOC of the entire flywheel array. This adjustment ensures that the power output of each flywheel unit matches its current energy storage state, resulting in a more rational energy distribution within the system.
[0058] To prevent overcharging or over-discharging of individual units in the flywheel energy storage array, this embodiment also introduces a power regulation coefficient. This coefficient further adjusts power distribution under different SOC states. The charge / discharge state of the flywheel unit is directly related to its SOC value. When the SOC value is too high or too low, the flywheel unit may enter an unsuitable charge / discharge state, leading to performance degradation or shortened lifespan. To prevent this extreme situation, a power regulation coefficient is used. The power distribution will be dynamically adjusted according to the actual SOC of the flywheel unit, thereby ensuring that each flywheel unit is always within a reasonable charging and discharging range and avoiding adverse effects on the system.
[0059] The upper and lower limits of the flywheel unit's State of Charge (SOC) are set to 0.8 and 0.2, respectively. This means that when the flywheel unit's SOC approaches 0.8, the system reduces the charging amount; while when the SOC approaches 0.2, the system reduces the discharging amount and avoids over-discharging. To achieve this, a power regulation coefficient... The calculation will be based on the current SOC of the flywheel unit and will be smoothly adjusted using the Logistic function.
[0060] Power regulation coefficient in discharge mode The calculation formula is The value of the constant K has a significant impact on the shape of the Logistic curve. A larger K value makes the Logistic function curve steeper, thus affecting the power adjustment coefficient. When the SOC value approaches its upper or lower limits, the changes are more drastic, allowing the system to respond more quickly to SOC changes. Conversely, a smaller K value results in a flatter curve and a relatively slower power regulation response. In practical applications, adjusting the value of K allows for precise control of the power allocation strategy's responsiveness, better adapting to different loads and environmental conditions. Furthermore, SOC... dL and SOC dH These represent the lower and upper limits of the adjustment range during discharge, respectively. When the SOC value of the flywheel unit is within this adjustment range, the power regulation coefficient... β i It will adjust smoothly as the SOC value changes. Specifically, when the SOC value approaches the lower limit of the adjustment range... dL At that time, power regulation coefficient β i It will gradually decrease. When K=40, SOC dL =0.2, SOC dH When the coefficient is 0.4, the relationship between the power regulation coefficient and the flywheel unit's state of charge (SOC) can be obtained through... Figure 3 To express.
[0061] Power regulation coefficient in charging mode The calculation formula is Among them, SOC cL and SOC cH These represent the lower and upper limits of the adjustment range during charging, respectively. When the flywheel unit's SOC is within this adjustment range, the power regulation coefficient... β i It will adjust smoothly according to changes in SOC. Specifically, during charging, the power regulation coefficient... β i As the SOC value approaches the upper limit of the adjustment range, cHAnd gradually decrease. When K is set to 40, SOC cL =0.6, SOC cH When the coefficient is 0.8, the relationship between the power regulation coefficient and the flywheel unit's state of charge (SOC) is as follows: Figure 4 As shown.
[0062] flywheel unit i The allocated power is .
[0063] When the SOC value of a flywheel unit is within the set adjustment range, the power regulation coefficient will appropriately limit its charging and discharging power. This control strategy ensures that the flywheel unit is always within a reasonable energy distribution range during charging and discharging, avoiding energy waste or system instability caused by excessive power release. When the SOC value of the flywheel unit exceeds the set upper or lower limit, the system will automatically set its charging and discharging power to zero, thereby effectively preventing overcharging or over-discharging and protecting the flywheel unit from damage caused by overcharging and discharging.
[0064] After initial power allocation, this embodiment determines whether the power demand of the flywheel unit has exceeded its rated power. If the allocated power exceeds the rated power limit of the flywheel unit, the system immediately switches to intelligent allocation mode for recalculation. In this mode, the Power Allocation Optimization (PSO) algorithm re-optimizes the power allocation strategy based on the current SOC state of the flywheel unit, power demand, and overall system operating conditions, thereby preventing individual flywheel units from bearing excessive power burdens and ensuring stable system operation. The core of PSO optimization is to define an objective function that minimizes system power loss and balances the SOC of the flywheel unit while satisfying power commands.
[0065] The objective function consists of three parts: The total power command must be satisfied, meaning the system's power output must precisely meet the given power command so that the entire flywheel array can provide the correct power to the load.
[0066] Minimizing power loss means optimizing the process to minimize power loss. Power loss refers to the energy loss caused by non-ideal factors during charging and discharging. By reducing losses, the system can utilize energy storage resources more effectively.
[0067] SOC proportional allocation refers to power distribution based on the SOC ratio of the flywheel units. In discharge mode, flywheel units with higher SOC will handle more power discharge, while in charging mode, flywheel units with higher SOC will handle less charging power, and flywheel units with lower SOC will handle more charging.
[0068] Taking all these factors into account, the objective function is: ;in, P i It is a flywheel unit Power output; P d It is the target power command for each flywheel unit; P loss (i) is the flywheel unit Power loss; SOC i It is a flywheel unit SOC value; SOC total λ1 is the total SOC of all flywheel units in the flywheel array; λ2 are weighting coefficients used to balance the total power command satisfaction, SOC ratio allocation and power loss.
[0069] In the PSO optimization process, in addition to the objective function, the system also needs to meet a series of constraints to ensure that the optimized power allocation scheme is feasible and can operate stably under different conditions.
[0070] The constraints include: Power limitation, meaning the flywheel unit's power output must not exceed its rated power. Assume the flywheel unit... Rated power Then the power output constraint is: This ensures that the flywheel unit does not bear excessive power load, thus avoiding overload.
[0071] The SOC range refers to the SOC value of each flywheel unit, which must be within a set range to prevent its SOC value from being too high or too low. The set upper and lower limits of SOC are SOC... min and SOC max The constraints are This ensures that the energy storage state of the flywheel unit is always within a reasonable range.
[0072] The Logistics function constraint, meaning that in order to smooth power distribution and avoid extreme power output changes, the PSO also needs to satisfy the Logistics function constraint, i.e. ; .
[0073] The PSO optimization process searches for the optimal solution by simulating the motion of particles in the solution space; the specific steps are as follows: Initializing the particle swarm involves randomly initializing a power allocation solution for each particle. P i =( P i1 , P i2 ,… P iNThis indicates the power output of each flywheel unit; Calculate the objective function, that is, calculate the objective function value based on the current particle power distribution scheme. f (P), that is, to evaluate the quality of the current solution based on the weighted sum of power command satisfaction, power loss and SOC difference; Updating velocity and position means updating the particle's velocity and position based on the current solution and the global optimal solution. ; ;in, g This represents the current iteration number; c 1 and c2 The learning factor for particles; Inertial weights; r 1 and r 2 is a random number between [0, 1]; Pbests for s Individual extreme values of particles; Gbest This represents the global extremum of the entire population; Particle updates mean that the power allocation scheme for particles changes according to the update rate. After the position is updated, the new power allocation scheme is verified by constraints to ensure that the power output and SOC of each flywheel unit are within the legal range. Convergence criterion: If the objective function reaches the predetermined convergence criterion or the maximum number of iterations is reached, the algorithm terminates; otherwise, the objective function is recalculated and iteration continues. Output the optimal power allocation, that is, when the PSO algorithm converges, output the optimal power allocation scheme. That is, the power distribution of each flywheel unit.
[0074] Case Analysis Operating Condition 1: Assume the flywheel array consists of three flywheel units with identical parameters. Each flywheel unit has a rated speed of 10000 r / min and a rated power of 20 kW. i upper and lower limits of rotational speed ω i,max and ω i,min The speeds are 10000 r / min and 2000 r / min respectively. The initial SOCs of flywheel 1, flywheel 2, and flywheel 3 are 0.8, 0.7, and 0.65 respectively; when there is no power command, it enters the SOC balancing mode; thus, ; ; ; That is, the SOC difference between flywheel unit 1 and flywheel unit 2 is the largest, and flywheel unit 1, with its highest SOC, should be adjusted first. Assume the minimum loss point SOC calculated using the particle swarm optimization algorithm is 0.65; that is... ; In this case, the power released by flywheel unit 1 will be redistributed and absorbed by flywheel units 2 and 3 according to their State of Charge (SOC) ratio; that is... ; .
[0075] Flywheel unit 2 will charge at 710W, and flywheel unit 3 will charge at 830W. The three flywheel units will then approach the minimum SOC loss point at different power levels. When all three flywheel units have reached their minimum loss points, the SOC balancing mode ends, and the three flywheel units will continue operating at their minimum loss points until the next power command is issued.
[0076] When the system receives a power command, since the flywheel energy storage system has already completed the SOC balancing mode and the SOC of all flywheel units is consistent, the system switches to the equal power command mode. In this mode, because the SOC of each flywheel unit has reached consistency, each flywheel unit will balance its power output according to its rated power and the total power demand of the system.
[0077] Assuming the system's power demand is 30kW, under the condition of consistent State of Charge (SOC), all flywheel units will share the power equally. Since each flywheel unit has the same SOC, the system will allocate power based on its rated power (assuming 20kW) and the current power demand (30kW). In equal power distribution mode, power will be evenly distributed to each flywheel unit. Therefore, each flywheel unit will contribute an equal amount of power (10kW) to the system's power output to meet the 30kW power demand.
[0078] In this mode, because the flywheel units have a consistent State of Charge (SOC), the power distribution is balanced, enabling the system to efficiently and stably meet power command requirements. Simultaneously, this avoids overloading of certain flywheel units, ensuring the stable operation of the entire energy storage system.
[0079] Operating Condition 2: Assume the flywheel array consists of three flywheel units with identical parameters. Each flywheel unit has a rated speed of 10000 r / min and a rated power of 20 kW. i upper and lower limits of rotational speed ω i,max and ω i,minThe speeds are 10000 r / min and 2000 r / min respectively. The initial SOCs of flywheels 1, 2, and 3 are 0.8, 0.7, and 0.65 respectively. The DC bus voltage is 400V. Assuming the DC bus voltage is 405V at this time, V threshold =2; that is, we get ; ; ; That is, the SOC difference between flywheel unit 1 and flywheel unit 2 is the largest, and flywheel unit 1, with its highest SOC, should be adjusted first. Assume the minimum loss point SOC calculated using the particle swarm optimization algorithm is 0.65; that is... ; .
[0080] In this case, the power released by flywheel unit 1 will be redistributed and absorbed by flywheel units 2 and 3 according to their State of Charge (SOC) ratio; that is... ; .
[0081] Flywheel unit 2 will be charged at 710W, and flywheel unit 3 will be charged at 830W. Compared to operating condition 1, when the DC bus voltage increases, the output power of the flywheel will be reduced to minimize the increase in DC bus voltage.
[0082] The SOC balancing mode ends when the SOC of flywheel unit 1 is equal to that of flywheel units 2 and 3, which is the point of minimum flywheel loss.
[0083] Operating Condition 3: The flywheel array consists of three flywheel units with identical parameters. The rated speed of each flywheel unit is 10000 r / min; the rated power is 20 kW; the flywheel unit... i upper and lower limits of rotational speed ω i,max and ω i,min The speeds are 10000 r / min and 2000 r / min respectively, and the DC bus voltage is 400 V.
[0084] Assuming that the flywheel array does not reach SOC consistency after entering the gradual SOC adjustment mode, and a power command is received midway, it will enter the dynamic power regulation mode. Assuming that under operating condition 1, the SOCs of flywheel units 1, 2, and 3 are at 0.7, 0.7, and 0.65 respectively during the gradual adjustment process, meaning that flywheel unit 1 gradually adjusts its SOC to equal that of flywheel unit 2, at which point a 30kW power command is required.
[0085] Calculate the power distribution coefficient of the three flywheel units. ,Right now ; ; ; α 1、 α 2 and α The values are 0.34, 0.34, and 0.31, respectively.
[0086] Calculate the power regulation coefficient again , At this time, none of the three flywheel units are within the adjustment range, so the power adjustment coefficient is... Both are equal to 1; that is Finally, calculate the allocated power. P i , that is, ; ; ; P 1 、P 2 and P The three are 10200W, 10200W, and 9600W respectively.
[0087] Operating Condition 4: To reflect the constraint effect of the Logistic function, the initial SOC is set to 0.7, 0.6 and 0.3 respectively; the power command requirement is 30kW.
[0088] Calculate the power distribution coefficient of the three flywheel units. ,Right now ; ; ;have to α 1. α 2 and α The values for 3 are 0.4375, 0.375, and 0.1875, respectively.
[0089] Calculate the power regulation coefficient again , At this time, neither flywheel unit 1 nor flywheel unit 2 is within the adjustment range, so the power adjustment coefficient... If they are equal, they are both 1, that is ; Calculate the power regulation coefficient ,Right now .
[0090] Calculate the allocated power P i ,Right now ; ; ;have to P 1 、P 2 and P The values are 14482.8W, 12413.8W, and 3103.4W, respectively.
[0091] To reflect the impact of power regulation on power distribution, only the power distribution coefficient is used. α Calculate the allocated power, i.e. ; ; The calculated power allocations are 13125W, 11250W, and 5625W, respectively.
[0092] Since the SOC of flywheel unit 3 is within the adjustment range, in traditional power distribution strategies, the power output is directly calculated based on the power distribution coefficient, resulting in a power output of up to 5625W for flywheel unit 3. However, this power release method does not take into account the SOC value of flywheel unit 3, which may lead to over-discharge, especially when the SOC of the flywheel unit is low, thereby affecting the stability and long-term service life of the system.
[0093] This embodiment employs a Logistic function constraint to effectively limit the power release of flywheel unit 3. By introducing the Logistic function, the power output of flywheel unit 3 is dynamically adjusted. When the State of Charge (SOC) is within the adjustment range, the power release rate is smoothly controlled, thereby avoiding over-discharge caused by excessive power output. Specifically, under the Logistic constraint, the power output of flywheel unit 3 is reduced to 3103.4W, compared to 5625W when only the power distribution factor is used, representing a reduction of nearly half the power output.
[0094] This difference indicates that the Logistic function, by gradually adjusting power output, effectively limits the power release rate at low SOC levels, avoiding the risks of overcharging or over-discharging, and ensuring the smooth operation and long-term stability of the flywheel energy storage system under various operating conditions. This not only improves system safety but also optimizes energy utilization efficiency and extends the service life of the flywheel unit.
[0095] Operating Condition 5: When the power allocation of the flywheel energy storage system exceeds the preset power limit, the system will enter intelligent allocation mode and switch to the particle swarm optimization (PSO) algorithm to recalculate the power allocation. In intelligent allocation mode, PSO will optimize the power allocation strategy based on the flywheel unit's SOC, power requirements, and constraints to ensure that the entire flywheel array can operate within the effective range.
[0096] In intelligent distribution mode, the goal of PSO is to optimize the power distribution of flywheel units so that the system meets the power command requirements; the SOC ratio of each flywheel unit can be reasonably allocated, with flywheel units with higher SOC undertaking more discharge tasks and flywheel units with lower SOC undertaking more charging tasks; power loss is minimized to ensure effective power utilization.
[0097] The objective function is ;in, P i It is a flywheel unit Power output; P d It is the target power command for each flywheel unit; P loss (i) is the flywheel unit Power loss; SOC i It is a flywheel unit SOC value; SOC total λ1 is the total SOC of all flywheel units in the flywheel array; λ2 are weighting coefficients used to balance the total power command satisfaction, SOC ratio allocation and power loss.
[0098] In the PSO optimization process, in addition to the objective function, the system also needs to meet a series of constraints to ensure that the optimized power allocation scheme is feasible and can operate stably under different conditions.
[0099] The constraints include: Power limitation, meaning the flywheel unit's power output must not exceed its rated power. Assume the flywheel unit... Rated power P rated (i) The constraint condition for power output is: This ensures that the flywheel unit does not bear excessive power load, thus avoiding overload.
[0100] The SOC range refers to the SOC value of each flywheel unit, which must be within a set range to prevent its SOC value from being too high or too low. The set upper and lower limits of SOC are SOC... min and SOC max The constraints are This ensures that the energy storage state of the flywheel unit is always within a reasonable range.
[0101] PSO uses a set of particles to represent possible power allocation schemes, with each particle representing a set of power allocation schemes. For example, if there are 3 flywheel units in the flywheel array, then a particle is a vector containing 3 power allocation values, i.e. .
[0102] The position of each particle represents a potential power allocation scheme, while its velocity controls how the particle moves in the solution space. The particle's velocity and position are updated in subsequent iterations according to the optimization objective.
[0103] During the motion and optimization of the particle swarm, each particle is determined based on its current position and its historical best position (pbest). iThe velocity and position are updated using the global best position (gbest), and the update formula is as follows: ; .
[0104] Constraint processing means that particles are subject to constraints such as power limits and SOC ranges during their movement. After each update, the particle's position (i.e., power allocation) is adjusted according to these constraints to ensure that the power output and SOC value of each flywheel unit are within the legal range.
[0105] After each iteration, the particle calculates the objective function value based on the current power allocation scheme and compares it with the historical best value. If the new scheme is better than the current best scheme, the particle's historical best position is updated. After multiple iterations, the PSO algorithm converges to an optimal power allocation scheme, which is the scheme that satisfies the power command, has a reasonable SOC ratio, and minimizes power loss.
[0106] In this optimization process, the particle swarm adjusts power allocation according to the principle of "the capable do more." Specifically, when the SOC of a flywheel unit is high, it will handle more discharge power, while when the SOC is low, it will be allocated more charging power. This gradually narrows the SOC differences among the flywheel units, thus optimizing the energy utilization efficiency of the entire system.
[0107] When the PSO algorithm converges, it outputs the optimal power allocation scheme. These power values represent the charging and discharging power of each flywheel unit. The system adjusts the power output of the flywheel units based on these values to ensure that the entire flywheel energy storage system meets power requirements and maintains SOC balance.
[0108] This embodiment avoids overloading any flywheel unit while optimizing energy distribution under the guidance of the minimum loss point, thereby improving the overall system efficiency and stability. The introduction of intelligent mode makes power distribution more flexible and efficient, and can respond to changes in the flywheel unit's state in real time, ensuring efficient system operation under different operating conditions.
[0109] This embodiment offers significant advantages in SOC convergence speed, effectively preventing overcharging or over-discharging of the flywheel. Unlike strategies based on the "the more capable, the more work" principle of SOC and speed ratio allocation, this embodiment gradually adjusts the SOC differences among flywheel units through a SOC balancing mode when no power command is needed. It relies on the Particle Swarm Optimization (PSO) algorithm to accurately calculate the minimum loss point, achieving SOC equilibrium convergence near this point, thus significantly improving SOC convergence speed and efficiency. In the absence of a power command, it automatically adjusts SOC differences, using an intelligent allocation mode to optimize flywheel units exceeding their rated power in real time during power allocation, avoiding overload issues. Through dynamic power regulation and the PSO algorithm, it achieves more efficient SOC balancing, reducing the risk of power imbalance and improving system stability and energy efficiency.
[0110] This embodiment utilizes the particle swarm optimization algorithm to dynamically adjust power allocation and optimize SOC convergence speed based on multi-mode switching. It also adjusts the real-time status of the system through intelligent mode, enabling the flywheel energy storage system to maintain efficient and stable operation under different operating conditions.
[0111] Example 2 Embodiment 2 of the present invention introduces a multi-mode switching flywheel energy storage power optimization system based on particle swarm optimization.
[0112] like Figure 5 The multi-mode switching flywheel energy storage power optimization system based on particle swarm optimization shown includes: The acquisition module is configured to acquire the state of charge and power commands of the flywheel energy storage units in the flywheel energy storage array; The judgment module is configured to determine the consistency between the acquired state of charge and the power command. The optimization module is configured to select the power allocation mode of flywheel energy storage based on the judgment result of the obtained consistency state, and complete the power optimization of flywheel energy storage with multi-mode switching. The power allocation modes include at least a state-of-charge (POC) equalization mode, an equal power allocation mode, and a proportional allocation mode. The POC equalization mode is triggered when there is no power command and the POC states of each flywheel unit are inconsistent. It calculates the minimum loss point using a particle swarm optimization algorithm and performs power complementarity based on the difference between the POC state of each flywheel unit and the minimum loss point, causing the POC state of each flywheel unit to converge towards the minimum loss point. The equal power allocation mode is triggered when a power command is received and the POC states of each flywheel unit are consistent, allocating equal power to each flywheel unit. The proportional allocation mode is triggered when a power command is received and the POC states of each flywheel unit are inconsistent, allocating power proportionally according to the POC state of each flywheel unit.
[0113] The detailed steps are the same as those of the multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization provided in Example 1, and will not be repeated here.
[0114] Example 3 Embodiment 3 of the present invention provides a computer-readable storage medium.
[0115] A computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps of a multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization as described in Embodiment 1 of the present invention.
[0116] The detailed steps are the same as those of the multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization provided in Example 1, and will not be repeated here.
[0117] Example 4 Embodiment 4 of the present invention provides an electronic device.
[0118] An electronic device includes a memory, a processor, and a program stored in the memory and running on the processor. When the processor executes the program, it implements the steps in the multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization as described in Embodiment 1 of the present invention.
[0119] The detailed steps are the same as those of the multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization provided in Example 1, and will not be repeated here.
[0120] Example 5 Embodiment 5 of the present invention provides a computer program product.
[0121] A computer program product includes software code, wherein the program in the software code performs the steps of a multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization as described in Embodiment 1 of the present invention.
[0122] The detailed steps are the same as those of the multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization provided in Example 1, and will not be repeated here.
[0123] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The solutions in the embodiments of the present invention can be implemented using various computer languages, such as the object-oriented programming language Java and the interpreted scripting language JavaScript.
[0124] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0125] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0126] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0127] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.
[0128] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
[0129] The above description is merely a preferred embodiment of this practice and is not intended to limit the scope of this practice. Various modifications and variations can be made to this practice by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of this practice should be included within the protection scope of this practice.
Claims
1. A multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization, characterized in that, include: Obtain the state of charge and power command of the flywheel energy storage unit in the flywheel energy storage array; Determine the consistency between the acquired state of charge and the power command; Based on the results of the consistency status judgment, the power allocation mode of flywheel energy storage is selected to complete the power optimization of flywheel energy storage with multi-mode switching; The power allocation modes include at least a state-of-charge (POC) equalization mode, an equal power allocation mode, and a proportional allocation mode. The POC equalization mode is triggered when there is no power command and the POC states of each flywheel unit are inconsistent. It calculates the minimum loss point using a particle swarm optimization algorithm and performs power complementarity based on the difference between the POC state of each flywheel unit and the minimum loss point, causing the POC state of each flywheel unit to converge towards the minimum loss point. The equal power allocation mode is triggered when a power command is received and the POC states of each flywheel unit are consistent, allocating equal power to each flywheel unit. The proportional allocation mode is triggered when a power command is received and the POC states of each flywheel unit are inconsistent, allocating power proportionally according to the POC state of each flywheel unit.
2. A multi-mode switched flywheel energy storage power optimization method based on particle swarm optimization as claimed in claim 1, characterized in that, In the process of calculating the minimum loss point using the particle swarm optimization algorithm, the average state of charge (SOC) of all flywheel units in the flywheel energy storage array is calculated. A multi-objective optimization function is constructed, which includes a term for the difference between the SOC of each flywheel unit and the average SOC, a term for the total power loss of the system, and a term for the difference between the maximum SOC and the minimum SOC. With minimizing the multi-objective optimization function as the optimization objective, the particle swarm optimization algorithm is used for iterative solution, and the obtained global optimal solution is determined as the minimum loss point.
3. A multi-mode switched flywheel energy storage power optimization method based on particle swarm optimization as claimed in claim 1, characterized in that, In the process of power complementarity based on the difference between the state of charge of each flywheel unit and the minimum loss point, the power release coefficient of each flywheel unit is calculated according to the difference between the state of charge of each flywheel unit and the minimum loss point; the release power of the flywheel unit with a state of charge higher than the minimum loss point is calculated according to the power release coefficient and the rated power of each flywheel unit; and the release power is allocated to the flywheel unit with a state of charge lower than the minimum loss point according to the state of charge ratio for charging. The calculation process of the power release coefficient takes into account the sum of the differences in the state of charge between each flywheel unit, as well as the adjustment factor used to dynamically adjust the power release rate; among them, the larger the sum of the differences in the state of charge, the larger the power release coefficient and the faster the convergence speed of the state of charge.
4. The multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization as described in claim 1, characterized in that, In the process of allocating power according to the state of charge (SBC) ratio of each flywheel unit, a power allocation coefficient for each flywheel unit is calculated. This power allocation coefficient is equal to the ratio of the SBC value of each flywheel unit to the sum of the SBC values of all flywheel units. Based on the direction of the power command, either a discharge mode or a charging mode is determined. In discharge mode, the power allocation coefficient is directly proportional to the SBC; in charging mode, it is inversely proportional to the SBC. A power adjustment coefficient based on the Logistic function is introduced. When the SBC of a flywheel unit is within a preset adjustment range, the power allocation coefficient is corrected using this coefficient to limit the charging and discharging power.
5. The multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization as described in claim 1, characterized in that, The state-of-charge equalization mode also includes DC bus voltage stabilization control, which monitors the DC bus voltage in real time and calculates its deviation from the command bus voltage. When the absolute value of the obtained deviation exceeds a preset threshold, the power output rate of each flywheel unit is dynamically adjusted according to the sign of the deviation to suppress bus voltage fluctuations.
6. The multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization as described in claim 1, characterized in that, It also includes switching to intelligent allocation mode when executing the proportional allocation mode if the allocated power of any flywheel energy storage unit exceeds its rated power; in the intelligent allocation mode, with power command as constraint and minimizing power loss and balancing the state of charge as objectives, the particle swarm optimization algorithm is called again for iterative optimization to output the optimal power allocation scheme for each flywheel unit.
7. A multi-mode switching flywheel energy storage power optimization system based on particle swarm optimization, characterized in that, include: The acquisition module is configured to acquire the state of charge and power commands of the flywheel energy storage units in the flywheel energy storage array; The judgment module is configured to determine the consistency between the acquired state of charge and the power command. The optimization module is configured to select the power allocation mode of flywheel energy storage based on the judgment result of the obtained consistency state, and complete the power optimization of flywheel energy storage with multi-mode switching. The power allocation modes include at least a state-of-charge (POC) equalization mode, an equal power allocation mode, and a proportional allocation mode. The POC equalization mode is triggered when there is no power command and the POC states of each flywheel unit are inconsistent. It calculates the minimum loss point using a particle swarm optimization algorithm and performs power complementarity based on the difference between the POC state of each flywheel unit and the minimum loss point, causing the POC state of each flywheel unit to converge towards the minimum loss point. The equal power allocation mode is triggered when a power command is received and the POC states of each flywheel unit are consistent, allocating equal power to each flywheel unit. The proportional allocation mode is triggered when a power command is received and the POC states of each flywheel unit are inconsistent, allocating power proportionally according to the POC state of each flywheel unit.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization as described in any one of claims 1-6.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the program, it implements the steps of the multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization as described in any one of claims 1-6.
10. A computer program product, comprising software code, characterized in that, The program in the software code executes the steps of the multi-mode switching flywheel energy storage power optimization method based on particle swarm optimization as described in any one of claims 1-6.
