Battery flexible control method and system for fluctuation suppression of electrolysis equipment
By collecting real-time battery current to generate current compensation values, identifying fluctuation types, and adjusting the power distribution ratio, the problem of phase lag in battery output regulation is solved, fluctuation suppression of electrolysis equipment is achieved, and system stability and voltage control accuracy are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGDONG JULISHENG INTELLIGENT TECH CO LTD
- Filing Date
- 2026-01-22
- Publication Date
- 2026-05-19
AI Technical Summary
In scenarios involving severe fluctuations in wind and solar power generation or rapid start-up and shutdown of electrolyzers, the battery output regulation exhibits phase lag, leading to increased fluctuations in the DC bus voltage of the electrolysis equipment.
By collecting the real-time current of the battery, generating a current compensation value, identifying the fluctuation type, and adjusting the power distribution ratio according to the fluctuation type and the current compensation value, the target output power of the battery is generated. The target output power of the battery is then corrected using the current compensation value, thereby achieving feedforward control to suppress fluctuations in the electrolysis equipment.
It reduces the DC bus voltage fluctuation amplitude of the electrolysis equipment, improves the accuracy of battery output control and the stability of system operation, and avoids current overruns and system oscillations caused by improper power distribution ratio adjustment or sudden changes in fluctuation characteristics.
Smart Images

Figure CN122068629A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of battery technology, and in particular to a battery flexible control method and system for suppressing fluctuations in electrolysis equipment. Background Technology
[0002] Electrolysis of water to produce hydrogen is a clean energy conversion method that uses electricity to decompose water into hydrogen and oxygen. When off-grid or grid-connected electrolysis of water to produce hydrogen in remote areas such as high-altitude uninhabited areas and islands, in conjunction with wind and solar power generation systems, energy storage batteries are required to smooth out the power fluctuations of renewable energy. The energy storage batteries are connected to the electrolysis equipment through a battery converter, and the battery flexible control method is responsible for adjusting the charging and discharging power of the battery to maintain the stable operation of the electrolysis equipment.
[0003] Currently, battery flexible control methods mainly adjust battery output based on the deviation or rate of change of the power demand of the electrolysis equipment. After detecting that the electrolysis power exceeds the set range, the target output power of the battery is calculated based on the power deviation. Some schemes also use a fixed power allocation ratio to allocate the power demand of the electrolysis equipment to the battery and the grid according to a preset weight, and execute the power command through the battery converter.
[0004] However, in scenarios involving severe fluctuations in wind and solar power generation or rapid start-up and shutdown of electrolyzers, there is a phase lag in battery output regulation, leading to increased fluctuations in the DC bus voltage of the electrolysis equipment. Summary of the Invention
[0005] In view of the aforementioned problems, this application is hereby filed.
[0006] Therefore, this application provides a battery flexible control method and system for suppressing fluctuations in electrolysis equipment, which can solve the problems mentioned in the background art.
[0007] To solve the above-mentioned technical problems, this application provides the following technical solution: In a first aspect, this application provides a battery flexible control method for suppressing fluctuations in electrolysis equipment, comprising: acquiring the real-time current of the battery, calculating compensation for the fluctuation amplitude of the real-time current, and generating a current compensation value; Obtain the power requirement of the electrolysis equipment, identify the fluctuation type based on the current compensation value and the power requirement of the electrolysis equipment, and generate a current change limit value based on the fluctuation type and the current compensation value; According to the fluctuation type, a power allocation ratio is selected from the preset control parameter library, the actual change amplitude of the real-time current of the battery is calculated, and the power allocation ratio is adjusted according to the actual change amplitude and the current change limit value. The target output power of the battery is generated based on the power allocation ratio and the power requirements of the electrolysis equipment. After the target output power of the battery is corrected based on the current compensation value, it is output to the battery converter.
[0008] Preferably, the generated current compensation value includes: The real-time current of the battery is continuously acquired at a fixed sampling period, and the current difference between the current value in the current sampling period and the current value in the previous sampling period is calculated. The absolute value of the current difference is taken to determine the fluctuation range of the real-time current of the battery within the corresponding sampling interval; Based on the fluctuation amplitude and the preset compensation coefficient, a compensation calculation is performed to generate a current compensation value.
[0009] Preferably, the fluctuation type is identified based on the current compensation value and the power demand of the electrolysis equipment, including: Obtain the current compensation value of the current sampling period and the two consecutive sampling periods before it, determine whether the sign states of the three current compensation values are consistent, and generate a sign consistency result; Obtain the power demand of the electrolysis equipment in the current sampling period and the power demand of the electrolysis equipment in the previous sampling period, calculate the difference between the two and take the absolute value to generate the absolute value of the difference between adjacent periods. If the symbol consistency result is true and the absolute value of the difference between adjacent periods is greater than a first preset threshold, the fluctuation type is identified as a step fluctuation. If the symbol consistency result is true and the absolute value of the difference between adjacent periods is less than or equal to the first preset threshold and greater than the second preset threshold, the fluctuation type is identified as a ramp fluctuation. If the symbol consistency result is false, the fluctuation type is identified as random disturbance fluctuation.
[0010] Preferably, the generation of symbol consistency results includes: The sign status of the current compensation value of the current sampling period, the current compensation value of the previous sampling period, and the current compensation value of the two previous sampling periods are determined sequentially. If the sign states of the three current compensation values are all positive or all negative, the sign consistency result is set to true. If the sign states of the three current compensation values are different, the sign consistency result is set to false.
[0011] Preferably, the current variation limit value is generated based on the fluctuation type and the current compensation value, including: According to the fluctuation type, the corresponding limiting coefficient is retrieved from the preset type coefficient mapping table, wherein the limiting coefficient corresponding to step fluctuation is greater than the limiting coefficient corresponding to slope fluctuation, and the limiting coefficient corresponding to slope fluctuation is greater than the limiting coefficient corresponding to random disturbance fluctuation. The current compensation value and the limiting coefficient are used to calculate the current change limiting value.
[0012] Preferably, adjusting the power allocation ratio includes: The actual change range of the real-time current of the battery is compared with the current change limit. If the actual change range of the real-time current of the battery is greater than the current change limit, an over-limit status indicator is generated. If the actual change range of the real-time current of the battery is less than or equal to the current change limit, a safety status indicator is generated. In response to the over-limit status indicator and the fluctuation type being a step fluctuation, the power allocation ratio is calculated with the first preset ratio value to generate an adjusted power allocation ratio; In response to the over-limit status indicator and the fluctuation type being either a ramp fluctuation or a random disturbance fluctuation, the power allocation ratio is calculated with the second preset ratio value to generate the adjusted power allocation ratio; In response to the safety status indicator, the power allocation ratio remains unchanged.
[0013] Preferably, in response to the over-limit status indicator and the fluctuation type being a step-type fluctuation, the power allocation ratio is calculated with a first preset ratio value to generate an adjusted power allocation ratio, further comprising: The target output power of the battery is obtained by multiplying the power requirement of the electrolysis equipment by the adjusted power allocation ratio, and the battery command current is calculated by dividing the target output power of the battery by the battery terminal voltage. The absolute value of the difference between the battery command current in the current sampling period and the previous sampling period is calculated as the command change amplitude, and the command change amplitude is compared with the current change limit value. If the magnitude of the instruction change is greater than the current change limit and the fluctuation type is a step fluctuation, the adjusted power allocation ratio is multiplied by a third preset ratio value to generate a suppressed power allocation ratio. If the magnitude of the change in the command is greater than the current change limit and the fluctuation type is a ramp fluctuation or a random disturbance fluctuation, the adjusted power allocation ratio is multiplied by a fourth preset ratio value to generate the suppressed power allocation ratio.
[0014] Preferably, the battery target output power is corrected before being output to the battery converter, including: The current compensation value is injected as a feedforward component into the power command link; The compensation polarity is determined based on the working mode of the electrolysis equipment and the sign of the current compensation value. When the working mode of the electrolysis equipment is hydrogen production mode and the current compensation value is positive, the compensation polarity is set to positive. When the working mode of the electrolysis equipment is shutdown mode and the current compensation value is positive, the compensation polarity is set to negative. The feedforward component and the feedback component are superimposed to generate the corrected target output power of the battery, and the corrected target output power of the battery is divided by the battery terminal voltage to generate a current command, which is then output to the battery converter.
[0015] Preferably, the method of superimposing the feedforward component and the feedback component to generate the corrected target battery output power further includes: In response to the feedforward component amplitude continuously exceeding the preset ratio of the feedback component, a secondary adjustment of the power allocation ratio is triggered; The secondary adjustment is suspended until the temperature of the electrolytic cell stabilizes.
[0016] Secondly, this application also provides a battery flexible control system for suppressing fluctuations in electrolysis equipment, including: a current compensation calculation module, which collects the real-time current of the battery, performs compensation calculation on the fluctuation amplitude of the real-time current, and generates a current compensation value. The fluctuation type identification module obtains the power requirement of the electrolysis equipment, identifies the fluctuation type based on the current compensation value and the power requirement of the electrolysis equipment, and generates a current change limit value based on the fluctuation type and the current compensation value. The power allocation adjustment module selects a power allocation ratio from a preset control parameter library according to the fluctuation type, calculates the actual change amplitude of the real-time current of the battery, and adjusts the power allocation ratio according to the actual change amplitude and the current change limit value. The power correction output module generates a target output power for the battery based on the power allocation ratio and the power requirements of the electrolysis equipment, and outputs the target output power to the battery converter after correcting it according to the current compensation value.
[0017] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps: The real-time current of the battery is collected, and the fluctuation amplitude of the real-time current is compensated and calculated to generate a current compensation value. Obtain the power requirement of the electrolysis equipment, identify the fluctuation type based on the current compensation value and the power requirement of the electrolysis equipment, and generate a current change limit value based on the fluctuation type and the current compensation value; According to the fluctuation type, a power allocation ratio is selected from the preset control parameter library, the actual change amplitude of the real-time current of the battery is calculated, and the power allocation ratio is adjusted according to the actual change amplitude and the current change limit value. The target output power of the battery is generated based on the power allocation ratio and the power requirements of the electrolysis equipment. After the target output power of the battery is corrected based on the current compensation value, it is output to the battery converter.
[0018] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps: The real-time current of the battery is collected, and the fluctuation amplitude of the real-time current is compensated and calculated to generate a current compensation value. Obtain the power requirement of the electrolysis equipment, identify the fluctuation type based on the current compensation value and the power requirement of the electrolysis equipment, and generate a current change limit value based on the fluctuation type and the current compensation value; According to the fluctuation type, a power allocation ratio is selected from the preset control parameter library, the actual change amplitude of the real-time current of the battery is calculated, and the power allocation ratio is adjusted according to the actual change amplitude and the current change limit value. The target output power of the battery is generated based on the power allocation ratio and the power requirements of the electrolysis equipment. After the target output power of the battery is corrected based on the current compensation value, it is output to the battery converter.
[0019] Implementing this application will have the following beneficial effects: This application provides a battery flexible control method and system for suppressing fluctuations in electrolysis equipment. 1. This application acquires the real-time current of the battery and generates a current compensation value. This allows for the identification of fluctuation types and the generation of current change limits before the power demand of the electrolysis equipment changes significantly. The current compensation value is then used as a feedforward component to correct the target output power of the battery. In contrast, existing technologies often only perform feedback adjustments after detecting power deviations. By combining the current compensation value with fluctuation type identification, battery output regulation is initiated at the initial stage of disturbance, thereby reducing the phase lag of regulation and lowering the amplitude of DC bus voltage fluctuations in the electrolysis equipment.
[0020] 2. This application performs two verifications when adjusting the power allocation ratio. First, the power allocation ratio is adjusted based on the comparison between the actual change in real-time battery current and the current change limit to prevent current changes from exceeding the safety boundary. Second, after generating the battery command current, it verifies whether there is a risk of exceeding the limit and performs graded suppression according to the fluctuation type. This eliminates current over-limit and system oscillation caused by improper adjustment of the power allocation ratio or sudden changes in fluctuation characteristics, improving the accuracy of battery output control and the stability of system operation. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is an overall flowchart of a battery flexible control method for suppressing fluctuations in electrolysis equipment, which is involved in this application; Figure 2 This is a diagram illustrating an application method for a battery flexible control system for suppressing fluctuations in electrolysis equipment, as described in this application. Figure 3 This is a schematic diagram of the overall structure of a battery flexible control method for suppressing fluctuations in electrolysis equipment, which relates to this application. Figure 4 This is a computer device diagram of a battery flexible control method for suppressing fluctuations in electrolysis equipment, which is involved in this application. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0024] In one exemplary embodiment, such as Figure 1 As shown, a battery flexible control method for suppressing fluctuations in electrolysis equipment is provided, comprising: S100: Collect the real-time current of the battery, calculate the compensation for the fluctuation amplitude of the real-time current, and generate a current compensation value. It should be noted that, in the context of electrolysis equipment fluctuation suppression, "battery" refers to an energy storage unit used to smooth fluctuations in the electrolysis hydrogen production power, "electrolysis equipment" refers to off-grid or grid-connected water electrolysis hydrogen production devices, and "real-time current" refers to the charging and discharging current flowing through the battery. Traditional flexible control methods typically only passively adjust the battery output after detecting a sudden change in electrolysis power, making it difficult to cope with rapid power disturbances caused by weak grid support or severe fluctuations in renewable energy in special scenarios such as high-altitude uninhabited areas. This application uses the fluctuation amplitude of the real-time current as a preliminary sensing basis, initiating compensation calculations before the power demand of the electrolysis equipment changes significantly. By generating current compensation values, it predicts fluctuation trends in advance and uses this to drive subsequent fluctuation type identification and dynamic adjustment of power allocation ratios, thereby achieving proactive and flexible control of battery output in the early stages of fluctuations.
[0025] Step S110: Calculate the current difference between adjacent sampling periods based on the real-time current of the battery.
[0026] Understandably, the real-time current of the battery is continuously acquired at a fixed sampling period. The difference between the current value of the current sampling period and the current value of the previous sampling period is obtained to represent the change in current over a short period of time. The method for calculating the difference is the discrete differential approximation method commonly used in existing technologies, which will not be elaborated here.
[0027] Step S120: Determine the fluctuation range of the real-time current based on the current difference.
[0028] It is easy to understand that the absolute value of the current difference is taken as the fluctuation amplitude of the real-time current within the corresponding sampling interval; if the sampling frequency is high enough, the fluctuation amplitude can effectively reflect the intensity of the instantaneous current disturbance.
[0029] Step S130: Based on the fluctuation amplitude and the preset compensation coefficient, perform compensation calculation to generate current compensation value.
[0030] It is easy to understand that the current compensation value is obtained by multiplying the fluctuation amplitude by a preset compensation coefficient; the preset compensation coefficient is a constant pre-calibrated according to the operating characteristics of the electrolysis equipment, used to adjust the compensation intensity and ensure that the compensation value matches the actual disturbance level.
[0031] Preferably, steps S110 to S130, through the three-step linkage of difference calculation, fluctuation quantization and proportional compensation, convert the original current signal into a current compensation value that can be used for pre-control, thus avoiding the adjustment delay caused by relying solely on the power demand lag response.
[0032] Preferably, in the off-grid electrolysis hydrogen production scenario in high-altitude uninhabited areas, step S100 can detect in advance the sudden changes in battery current caused by wind and solar power generation fluctuations and generate a forward-looking current compensation value, providing a reliable basis for subsequent fluctuation type identification and power allocation ratio adjustment.
[0033] S200: Obtain the power requirement of the electrolysis equipment, identify the fluctuation type based on the current compensation value and the power requirement of the electrolysis equipment, and generate a current change limit value based on the fluctuation type and the current compensation value; It should be noted that in the context of electrolysis equipment fluctuation suppression, electrolysis equipment refers to off-grid or grid-connected water electrolysis hydrogen production devices, batteries refer to energy storage units used to smooth power fluctuations, the power demand of electrolysis equipment refers to the real-time power input command corresponding to the current hydrogen production task, and the current compensation value is a quantitative parameter characterizing the intensity of current disturbance generated by the pre-amplification fluctuation sensing stage. Traditional flexible control methods typically adjust battery output based solely on the deviation or rate of change of the electrolysis equipment's power demand, without distinguishing the source and characteristics of the disturbance. This makes it difficult to balance response speed and system stability in scenarios with weak power grids or strong fluctuations, such as in high-altitude uninhabited areas. This application uses the combined characteristics of the current compensation value and the power demand of the electrolysis equipment as the basis for fluctuation type identification. It completes disturbance classification before the power demand has significantly shifted, and generates a current change limit value that matches the disturbance characteristics accordingly. This allows for differentiated constraints to be applied in the early stages of different types of disturbances, avoiding insufficient suppression or overly conservative approaches caused by uniform limits.
[0034] In some embodiments, step S200 includes steps S210 to S230, as follows: Step S210: Obtain the power requirements of the electrolysis equipment, including receiving a real-time power setting command issued by the electrolysis cell controller, and performing a three-point moving average filter on the real-time power setting command to generate a smooth power requirements for the electrolysis equipment.
[0035] Among them, the three-point moving average filter calculates the arithmetic mean of the real-time power setting commands of the current sampling point, the previous sampling point, and the next sampling point.
[0036] Furthermore, the electrolyzer controller sends the real-time power setting command to the battery at a fixed period; the three-point moving average filter acquires the power setting values at the current moment, the previous moment, and the next moment within the sampling period, and calculates the average of the three as the smoothed power demand of the electrolysis equipment; the filtering operation can effectively suppress high-frequency noise caused by fluctuations in renewable energy power generation in off-grid electrolysis hydrogen production. For example, in electrolysis stations deployed in high-altitude uninhabited areas, when the photovoltaic array is blocked by clouds, causing significant instantaneous fluctuations in the power setting command, the fluctuation amplitude is effectively suppressed after three-point moving average filtering, avoiding misjudgment of power demand change trends due to noise interference.
[0037] Step S220: Based on the current compensation value and the power demand of the electrolysis equipment, identify the fluctuation type, including calculating the sign consistency of the current compensation value in three consecutive sampling periods, and logically combining the sign consistency result with the absolute value of the difference between adjacent periods of the power demand of the electrolysis equipment to determine whether the fluctuation type is step type, ramp type or random disturbance type.
[0038] In some embodiments, step S220 is specifically implemented by steps S221 to S223: Step S221: Calculate the sign consistency of the current compensation value over three consecutive sampling periods.
[0039] It should be noted that the sign consistency characterizes whether the sign state of the current compensation value is consistent within three consecutive sampling periods. The sign state includes positive and negative signs.
[0040] Furthermore, the current compensation values for the current sampling period and the two consecutive sampling periods preceding it are obtained, and the sign state of each current compensation value is determined sequentially. If the sign states of all three current compensation values are positive or all are negative, then the sign consistency is true; if the sign states of the three current compensation values are different, then the sign consistency is false. The sign consistency calculation is completed in real time within the sampling period of the battery control system, providing a basic criterion for subsequent disturbance classification.
[0041] Step S222: Calculate the absolute value of the difference between adjacent cycles of the power demand of the electrolysis equipment.
[0042] It should be noted that the absolute value of the difference between adjacent periods represents the magnitude of the change in the power demand of the electrolysis equipment during two adjacent sampling periods.
[0043] Furthermore, the power demand of the electrolysis equipment in the current sampling period and the power demand of the electrolysis equipment in the previous sampling period are obtained, and the difference between the two is calculated. The absolute value of the difference is taken to generate the absolute value of the difference between adjacent periods. The calculation of the absolute value of the difference between adjacent periods is performed in real time in the off-grid electrolysis hydrogen production system to quantify the instantaneous change intensity of power demand.
[0044] Step S223: Based on the symbol consistency, the absolute value of the difference and the preset threshold range, perform a hierarchical determination to identify the fluctuation type as step type, ramp type or random disturbance type.
[0045] It should be noted that the preset threshold range includes a first preset threshold and a second preset threshold, with the first preset threshold being greater than the second preset threshold. Both are preset based on the operating characteristics of the electrolyzer. The first preset threshold is used to distinguish between step-type fluctuations and ramp-type fluctuations, corresponding to the critical point of sudden power demand changes during the start-up and shutdown of the electrolyzer. The second preset threshold is used to distinguish between ramp-type fluctuations and random disturbance-type fluctuations, corresponding to the critical point of gradual power demand changes when renewable energy changes slowly. The setting of the first and second preset thresholds is based on offline test data of the electrolyzer's electrochemical response characteristics. By injecting power disturbances of different amplitudes during the operation of the electrolyzer, the corresponding power demand change amplitudes are recorded. The minimum power change amplitude that causes the electrolyzer voltage fluctuation to exceed the safe range is used as the initial value of the first preset threshold, and the minimum power change amplitude that causes the electrolyzer temperature fluctuation to exceed the stable operating range is used as the initial value of the second preset threshold. After fine-tuning according to the actual operating environment, these values are then fixed in the non-volatile memory of the battery control system.
[0046] Furthermore, the state of the sign consistency is first determined: if the sign consistency is true, the absolute value of the difference is further compared with a preset threshold range; if the absolute value of the difference is greater than the first preset threshold, the fluctuation type is identified as step type; if the absolute value of the difference is less than or equal to the first preset threshold and greater than the second preset threshold, the fluctuation type is identified as slope type; if the sign consistency is false, the fluctuation type is directly identified as random disturbance type. In the off-grid electrolysis hydrogen production scenario in high-altitude uninhabited areas, this hierarchical judgment logic, through the coupling relationship between sign consistency and the absolute value of the difference, distinguishes between step disturbances caused by the start-up and shutdown of the electrolyzer, slope disturbances caused by slow changes in renewable energy, and random disturbances caused by cloud cover, avoiding the misclassification problem of the traditional single threshold method in weak grid environments.
[0047] It should be noted that steps S221 to S223 achieve accurate identification of disturbance types through the organic combination of symbol consistency calculation, absolute value quantization of difference, and hierarchical judgment rules. The symbol consistency calculation only relies on three consecutive sampling points, and the hierarchical judgment does not require historical data or complex model support. The overall solution is executed efficiently on the edge controller, significantly improving the accuracy of fluctuation classification, providing a reliable basis for the generation of subsequent current change limit values, and ensuring that battery output adjustment takes into account both response speed and system stability in weak grid scenarios.
[0048] Step S230: Generate a current change limit value based on the fluctuation type and the current compensation value, including retrieving the corresponding limit coefficient from a preset type coefficient mapping table based on the fluctuation type, and multiplying the current compensation value by the limit coefficient to generate the current change limit value.
[0049] The preset type coefficient mapping table stores the limiting coefficients corresponding to step type, ramp type and random disturbance type respectively. The limiting coefficient of step type is greater than that of ramp type, and the limiting coefficient of ramp type is greater than that of random disturbance type.
[0050] It is understood that the preset type coefficient mapping table is pre-configured in the battery control system; the current compensation value is multiplied by the corresponding limiting coefficient to obtain the current change limit value; the current change limit value represents the maximum allowable change in the battery output current per unit time. For example, when a step disturbance is identified, a larger limiting coefficient is selected to generate a larger current change limit value, allowing the battery to respond quickly to large disturbances; when a random disturbance is identified, a smaller limiting coefficient is selected to generate a smaller current change limit value, limiting the battery's action range to maintain system stability.
[0051] Preferably, steps S210 to S230 eliminate high-frequency noise through three-point moving average filtering, disturbance classification based on sign consistency, and type-bound coefficient mapping mechanism, achieving precise coupling between disturbance characteristics and control parameters in off-grid electrolytic hydrogen production scenarios. Among them, the three-point moving average filtering completes data smoothing within a short period, the sign consistency judgment only relies on three consecutive sampling points, and the preset type coefficient mapping table avoids complex online calculations. The overall solution can be executed efficiently on the edge controller, significantly improving the accuracy of fluctuation type identification, which is superior to the traditional threshold determination method, while ensuring that battery output adjustment takes into account both response speed and system stability.
[0052] S300: Select a power allocation ratio from a preset control parameter library according to the fluctuation type, calculate the actual change amplitude of the real-time current of the battery, and adjust the power allocation ratio according to the actual change amplitude and the current change limit value; It should be noted that in the scenario of suppressing fluctuations in electrolysis equipment, the fluctuation type refers to the disturbance category determined by the pre-identification step, such as step-type, ramp-type, or random disturbance. The preset control parameter library stores the initial power allocation ratio corresponding to each fluctuation type. The power allocation ratio defines the weighting between the battery output power and the power demand of the electrolysis equipment. The real-time current of the battery is the charging and discharging current signal flowing through the battery, and the actual change amplitude is the absolute value of the change in the real-time current during adjacent sampling cycles. The current change limit is a threshold parameter generated by S200 to constrain the rate of current change. Traditional flexible control methods usually use a fixed power allocation ratio or adjust the ratio only based on the power demand deviation, without combining the actual current change amplitude with the preset limit for correction. This leads to situations in weak power grid scenarios such as high-altitude uninhabited areas where the disturbance characteristics change abruptly, causing the battery output current change to exceed the allowable range and trigger system oscillation, or the adjustment amplitude to be too small, resulting in power mismatch of the electrolysis equipment. This application first selects an initial power allocation ratio from a preset control parameter library based on the fluctuation type, then calculates the actual change amplitude of the real-time current of the battery, compares the actual change amplitude with the current change limit value, and corrects the power allocation ratio based on the comparison result, thereby strictly constraining the current change rate within a safe boundary during the disturbance development process, while ensuring stable tracking of the power demand of the electrolysis equipment.
[0053] In some embodiments, step S300 is specifically implemented by steps S310 to S330: Step S310: Select an initial power allocation ratio from the preset control parameter library according to the fluctuation type.
[0054] It should be noted that the preset control parameter library stores the initial power allocation ratios corresponding to step type, ramp type and random disturbance type, respectively. The initial power allocation ratio defines the proportion and weight of the battery output power to the power demand of the electrolysis equipment.
[0055] Furthermore, the preset control parameter library is queried, and the initial power allocation ratio that matches the fluctuation type is output. The preset control parameter library is pre-configured in the battery control system. The initial power allocation ratio corresponding to the step type is greater than the initial power allocation ratio corresponding to the ramp type, and the initial power allocation ratio corresponding to the ramp type is greater than the initial power allocation ratio corresponding to the random disturbance type.
[0056] Furthermore, the initial power allocation ratio is selected within a single sampling period, providing a benchmark value for subsequent dynamic adjustments.
[0057] Step S320: Calculate the actual change in real-time battery current.
[0058] It should be noted that the actual change magnitude characterizes the intensity of the change in battery current during adjacent sampling cycles.
[0059] Furthermore, the real-time battery current value is obtained for the current sampling period and the previous sampling period.
[0060] Furthermore, the absolute value of the difference between the real-time battery current value in the current sampling period and the real-time battery current value in the previous sampling period is calculated to generate the actual change amplitude.
[0061] Understandably, the sampling period of battery control is completed in real time through hardware differential circuits, which is a conventional technical method in the field of power electronics.
[0062] Step S330: Calculate the actual change range of the real-time battery current, and adjust the initial power allocation ratio based on the comparison result between the actual change range and the current change limit value.
[0063] In some embodiments, step S330 is specifically implemented by steps S331 to S333: Step S331: Compare the actual change range with the current change limit value.
[0064] It should be noted that the comparison results are used to determine whether the battery current change exceeds the safety boundary.
[0065] Furthermore, if the actual change amplitude is greater than the current change limit value, an over-limit status indicator is generated; Furthermore, if the actual change is less than or equal to the current change limit, a safety status indicator is generated. Understandably, the comparison operation is executed in real time by the hardware comparator of the microcontroller, which is a standard technical means in the field of power electronic control.
[0066] Step S332: Determine the adjustment intensity level based on the fluctuation type and the status identifier.
[0067] It should be noted that adjusting the intensity level represents the degree of scaling of the power distribution ratio.
[0068] Furthermore, when the status identifier is an out-of-limit status identifier: If the fluctuation type is step-type, then the adjustment intensity level is determined to be the first level; If the fluctuation type is a slope type or a random disturbance type, then the adjustment intensity level is determined to be the second level; Furthermore, when the status identifier is a safe status identifier, the adjustment intensity level is determined to be no adjustment level; The scaling ratio corresponding to the first level is greater than that corresponding to the second level.
[0069] Step S333: Adjust the initial power allocation ratio based on the adjusted intensity level.
[0070] It should be noted that the adjustment operation achieves dynamic adaptation through proportional scaling.
[0071] Furthermore, when the intensity level is adjusted to the first level, the initial power allocation ratio is multiplied by the first preset ratio value to generate the final power allocation ratio; Furthermore, when the intensity level is adjusted to the second level, the initial power allocation ratio is multiplied by the second preset ratio value to generate the final power allocation ratio; When the intensity level is adjusted to no adjustment level, the initial power allocation ratio remains unchanged; Wherein, both the first preset ratio value and the second preset ratio value are less than 1, and the first preset ratio value is greater than the second preset ratio value; the first preset ratio value and the second preset ratio value are pre-calibrated according to the electrochemical stability boundary of the electrolytic cell.
[0072] Understandably, the preset ratio value is stored in non-volatile memory, and the calibration process is completed through offline step response testing, which is a standard procedure for commissioning an electrolytic hydrogen production system.
[0073] In some embodiments, after adjusting the power allocation ratio in step S300, this application further includes: Step E1: Calculate the battery command current based on the power allocation ratio and the power requirements of the electrolysis equipment.
[0074] It should be noted that the battery command current is the theoretical target current value that the battery converter needs to execute.
[0075] Further, the power allocation ratio is multiplied by the power requirement of the electrolysis equipment to obtain the target output power of the battery; Furthermore, the battery command current is calculated based on the ratio of the battery target output power to the battery terminal voltage; It is understandable that the battery terminal voltage is obtained in real time through the battery management system. This method of obtaining the voltage is a standard communication protocol for energy storage systems and will not be elaborated upon here.
[0076] Step E2: Verify the risk of exceeding limits based on the battery command current and the current change limit value.
[0077] It should be noted that the adjusted power allocation ratio, even after the over-limit risk characterization, may still lead to current over-limit.
[0078] Furthermore, the absolute value of the difference between the battery command current in the current sampling period and the previous sampling period is calculated as the command change amplitude; Furthermore, the magnitude of the command change is compared with the current change limit: if the magnitude of the command change is greater than the current change limit, it is determined that there is a risk of exceeding the limit; otherwise, it is determined that there is no risk of exceeding the limit. Understandably, the comparison operation is performed by the digital comparator of the microcontroller, which is a standard technical means of power electronic control.
[0079] Step E3: When there is a risk of exceeding the limit, suppress the power allocation ratio according to the fluctuation type.
[0080] It should be noted that graded suppression ensures system stability through differentiated proportional coefficients.
[0081] Furthermore, when it is determined that there is a risk of exceeding the limit: If the fluctuation type is step type, the power allocation ratio is multiplied by a third preset ratio value to generate a suppressed power allocation ratio. If the fluctuation type is a ramp type or a random disturbance type, the power allocation ratio is multiplied by a fourth preset ratio value to generate a suppressed power allocation ratio. Furthermore, when it is determined that there is no risk of exceeding the limit, the power allocation ratio remains unchanged; The third preset ratio value and the fourth preset ratio value are both less than 1, and the third preset ratio value is greater than the fourth preset ratio value; the third preset ratio value and the fourth preset ratio value are pre-calibrated according to the electrochemical response characteristics of the electrolyzer.
[0082] Understandably, the preset ratio value is stored in non-volatile memory, and the calibration process is completed through offline perturbation injection testing, which is a standard procedure for commissioning an electrolytic hydrogen production system.
[0083] It should be noted that steps E1 to E3 employ a triple mechanism of command current inversion, over-limit risk verification, and type-based suppression to perform secondary safety verification after the power allocation ratio is adjusted. The battery command current is directly derived from the power allocation ratio output by S300, the over-limit risk judgment reuses the current change limit value generated by S200, and the grade-based suppression rule is bound to the fluctuation type identified by S200. The entire scheme is completed on the edge controller with a single-cycle computational load. In the off-grid electrolysis hydrogen production system in high-altitude uninhabited areas, the elimination rate of secondary over-limit events is increased to over 95%, while avoiding the accumulation of power tracking errors caused by excessive suppression.
[0084] S400: Generate the target output power of the battery according to the power allocation ratio and the power requirements of the electrolysis equipment, and output the target output power of the battery to the battery converter after correcting it according to the current compensation value.
[0085] It should be noted that in the scenario of suppressing fluctuations in the electrolysis equipment, the power allocation ratio is a battery output weight parameter dynamically adjusted by the preceding step S300. The power demand of the electrolysis equipment is the current power input command required by the water electrolysis hydrogen production device. The target output power of the battery is the theoretical power value that the battery needs to provide. The current compensation value is a pre-correction amount generated by S100 that characterizes the intensity of current disturbance. The battery converter is a power electronic interface device connecting the battery and the electrolysis equipment. Traditional battery flexible control methods usually generate the target output power directly based on the power demand, or only perform hysteresis correction after the power deviation exceeds a threshold. This leads to situations in weak grid scenarios such as high-altitude uninhabited areas where the battery output cannot match the rate of disturbance change in time when encountering severe fluctuations in renewable energy or rapid start-up and shutdown of the electrolyzer, causing system oscillations or a decrease in hydrogen production efficiency. This application first generates a basic target output power based on the dynamically adjusted power allocation ratio and the power demand of the electrolysis equipment. Then, it uses the current compensation value pre-calculated by S100 to perform feedforward correction on the target output power of the battery, so that the corrected power command is injected with compensation components in the early stage of current disturbance. This achieves active suppression of fluctuations at the execution level of the battery converter, avoids the phase lag problem of traditional feedback control schemes in weak grid environments, and significantly improves the power tracking accuracy and operational stability of the off-grid electrolysis hydrogen production system.
[0086] In some embodiments, step S400 is specifically implemented by steps S410 to S430: Step S410: Calculate the target output power of the base battery based on the power allocation ratio and the power requirements of the electrolysis equipment.
[0087] It should be noted that the base battery target output power is the initial setting value of the battery output.
[0088] Understandably, traditional methods calculate battery output commands using a fixed ratio without distinguishing disturbance characteristics. This application uses a power allocation ratio adjusted by S300, which integrates the fluctuation type identification result with current safety boundary constraints. The calculation process is completed in the digital signal processor through a hardware multiplier. Under step-type disturbances, the power allocation ratio approaches the upper limit, and the target output power of the base battery quickly tracks the electrolysis demand. Under random disturbances, the power allocation ratio automatically decreases, and the target output power of the base battery changes smoothly, suppressing the risk of oscillation.
[0089] Step S420: Correct the target output power of the base battery according to the current compensation value to generate the corrected target output power of the battery.
[0090] In some embodiments, step S420 includes steps S421 to S423, as follows: Step S421: Inject the current compensation value directly into the power command link as a feedforward component.
[0091] It should be noted that the feedforward component injection operation breaks the timing constraints of the traditional cascade control architecture.
[0092] Understandably, the inherent delay in current loop regulation under weak grid conditions cannot suppress initial disturbance energy. This application couples the current compensation value to the power command generation stage via a direct hardware connection, ensuring that the timing of feedforward compensation strictly matches the electrochemical response boundary of the electrolyzer. This timing match ensures that power correction is completed before disturbance energy is injected into the electrolyzer. For example, when an off-grid electrolytic hydrogen production system in a high-altitude uninhabited area experiences a step disturbance caused by sudden changes in wind and solar power generation, traditional solutions cause a significant voltage drop in the electrolyzer due to delays. This application, through a direct hardware connection, injects a feedforward component at the initial stage of the disturbance, suppressing voltage fluctuations within a safe range.
[0093] Step S422: Determine the compensation polarity based on the working mode of the electrolysis equipment and the sign of the current compensation value.
[0094] It should be noted that the polarity correction operation solves the problem of misjudgment of direction caused by sudden changes in impedance of weak power grids.
[0095] It is understandable that fluctuations in grid impedance under weak grid conditions can cause the sign of the current compensation value to be inconsistent with the actual direction of the disturbance. This application introduces the operating mode of the electrolysis equipment as the basis for polarity determination: when the electrolysis equipment is in hydrogen production mode and the current compensation value is positive, the compensation polarity is set to positive; when the electrolysis equipment is in shutdown mode and the current compensation value is positive, the compensation polarity is set to negative. The polarity determination logic is established based on measured data of the electrochemical characteristics of the electrolyzer, which can avoid polarity misjudgment caused by sudden changes in grid impedance. For example, when a sudden change in grid impedance occurs in Nagqu, Tibet Autonomous Region, the traditional solution triggers protection shutdown due to polarity error, while this application maintains continuous system operation.
[0096] Step S423: Superimpose the feedforward component and the feedback component to generate the corrected target output power of the battery.
[0097] It should be noted that the component superposition operation establishes a timing coordination relationship between feedforward and feedback.
[0098] It is understandable that the feedback component is responsible for steady-state accuracy, while the feedforward component is responsible for transient compensation. When the amplitude of the feedforward component continuously exceeds the preset ratio of the feedback component, it indicates that the disturbance energy is continuously accumulating, triggering a secondary adjustment of the power allocation ratio. The triggering condition for the secondary adjustment is set based on the thermal inertia characteristics of the electrolyzer, avoiding excessive adjustment of the power allocation ratio before the electrolyzer temperature stabilizes. For example, when encountering continuous random disturbances during off-grid power plant testing, traditional solutions cause significant fluctuations in hydrogen production efficiency due to frequent adjustments. This application compresses the fluctuations to an allowable range through a timing coordination mechanism.
[0099] Preferably, steps S421 to S423 achieve a breakthrough in disturbance suppression performance through a triple innovation of timing compression injection, working mode-bound polarity correction, and thermal inertia triggering coordination. The feedforward injection timing strictly matches the electrochemical response boundary of the electrolyzer, the polarity correction logic is established based on the measured impedance characteristics of the weak power grid, and the secondary adjustment trigger condition is bound to the thermal inertia parameters of the electrolyzer. The overall solution is executed on the edge controller with a fixed amount of computation, suppressing the current overshoot within a safe range in high-altitude uninhabited areas, while avoiding protection shutdown events. Traditional control architectures cannot achieve this effect.
[0100] Step S430: Convert the corrected target output power of the battery into a current command and output it to the battery converter.
[0101] It should be noted that the current command is the direct control signal for the battery converter to perform regulation.
[0102] Understandably, traditional methods use preset battery voltage parameters for power-to-current conversion, ignoring the impact of changes in state of charge. This application acquires the battery terminal voltage in real time and divides the corrected target battery output power by the battery terminal voltage to generate a current command. When the battery state of charge changes significantly, the battery terminal voltage deviates. Traditional methods, due to fixed voltage parameters, lead to increased output power deviation. This application maintains power accuracy through real-time voltage correction. The battery terminal voltage is acquired through the isolated acquisition circuit of the battery management system. This circuit uses a differential input structure to suppress electromagnetic interference.
[0103] Preferably, steps S410 and S430 construct a precise power execution link through the collaborative design of disturbance characteristic adaptation power calculation and real-time voltage correction current conversion; the power allocation ratio is derived from the disturbance characteristic identification result, and the battery terminal voltage reflects the real-time status of the energy storage unit; the fluctuation of battery output power in weak grid scenarios is significantly reduced, and the stability of the DC bus voltage of the electrolytic cell is effectively improved; traditional fixed parameter methods cannot achieve this performance level.
[0104] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0105] Based on the same inventive concept, this application also provides a flexible battery control system for suppressing fluctuations in electrolysis equipment. The solution provided by this system is similar to the solution described in the above method. Therefore, the specific limitations of one or more embodiments of the flexible battery control system for suppressing fluctuations in electrolysis equipment provided below can be found in the limitations of the flexible battery control method for suppressing fluctuations in electrolysis equipment described above, and will not be repeated here.
[0106] In one exemplary embodiment, such as Figure 3 As shown, a flexible battery control system for suppressing fluctuations in an electrolysis device is provided, comprising: The current compensation calculation module collects the real-time current of the battery, performs compensation calculations on the fluctuation range of the real-time current, and generates a current compensation value. The fluctuation type identification module obtains the power requirement of the electrolysis equipment, identifies the fluctuation type based on the current compensation value and the power requirement of the electrolysis equipment, and generates a current change limit value based on the fluctuation type and the current compensation value. The power allocation adjustment module selects a power allocation ratio from a preset control parameter library according to the fluctuation type, calculates the actual change amplitude of the real-time current of the battery, and adjusts the power allocation ratio according to the actual change amplitude and the current change limit value. The power correction output module generates a target output power for the battery based on the power allocation ratio and the power requirements of the electrolysis equipment, and outputs the target output power to the battery converter after correcting it according to the current compensation value.
[0107] Each module in the aforementioned battery flexible control system for suppressing fluctuations in electrolysis equipment can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the computer device's memory as software, so that the processor can call and execute the corresponding operations of each module.
[0108] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a flexible battery control method for suppressing fluctuations in electrolytic equipment. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0109] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0110] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0111] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0112] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0113] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0114] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0115] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0116] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A battery flexible control method for suppressing fluctuations in electrolysis equipment, characterized in that, include: The real-time current of the battery is collected, and the fluctuation amplitude of the real-time current is compensated and calculated to generate a current compensation value. Obtain the power requirement of the electrolysis equipment, identify the fluctuation type based on the current compensation value and the power requirement of the electrolysis equipment, and generate a current change limit value based on the fluctuation type and the current compensation value; According to the fluctuation type, a power allocation ratio is selected from the preset control parameter library, the actual change amplitude of the real-time current of the battery is calculated, and the power allocation ratio is adjusted according to the actual change amplitude and the current change limit value. The target output power of the battery is generated based on the power allocation ratio and the power requirements of the electrolysis equipment. After the target output power of the battery is corrected based on the current compensation value, it is output to the battery converter.
2. The battery flexible control method for suppressing fluctuations in electrolysis equipment according to claim 1, characterized in that, The generated current compensation value includes: The real-time current of the battery is continuously acquired at a fixed sampling period, and the current difference between the current value in the current sampling period and the current value in the previous sampling period is calculated. The absolute value of the current difference is taken to determine the fluctuation range of the real-time current of the battery within the corresponding sampling interval; Based on the fluctuation amplitude and the preset compensation coefficient, a compensation calculation is performed to generate a current compensation value.
3. The battery flexible control method for suppressing fluctuations in electrolysis equipment according to claim 1, characterized in that, Identify the fluctuation type based on the current compensation value and the power demand of the electrolysis equipment, including: Obtain the current compensation value of the current sampling period and the two consecutive sampling periods before it, determine whether the sign states of the three current compensation values are consistent, and generate a sign consistency result; Obtain the power demand of the electrolysis equipment in the current sampling period and the power demand of the electrolysis equipment in the previous sampling period, calculate the difference between the two and take the absolute value to generate the absolute value of the difference between adjacent periods. If the symbol consistency result is true and the absolute value of the difference between adjacent periods is greater than a first preset threshold, the fluctuation type is identified as a step fluctuation. If the symbol consistency result is true and the absolute value of the difference between adjacent periods is less than or equal to the first preset threshold and greater than the second preset threshold, the fluctuation type is identified as a ramp fluctuation. If the symbol consistency result is false, the fluctuation type is identified as random disturbance fluctuation.
4. The battery flexible control method for suppressing fluctuations in electrolysis equipment according to claim 3, characterized in that, The generated symbol consistency results include: The sign status of the current compensation value of the current sampling period, the current compensation value of the previous sampling period, and the current compensation value of the two previous sampling periods are determined sequentially. If the sign states of the three current compensation values are all positive or all negative, the sign consistency result is set to true. If the sign states of the three current compensation values are different, the sign consistency result is set to false.
5. The battery flexible control method for suppressing fluctuations in electrolysis equipment according to claim 1, characterized in that, Generate a current variation limit value based on the fluctuation type and the current compensation value, including: According to the fluctuation type, the corresponding limiting coefficient is retrieved from the preset type coefficient mapping table, wherein the limiting coefficient corresponding to step fluctuation is greater than the limiting coefficient corresponding to slope fluctuation, and the limiting coefficient corresponding to slope fluctuation is greater than the limiting coefficient corresponding to random disturbance fluctuation. The current compensation value and the limiting coefficient are used to calculate the current change limiting value.
6. The battery flexible control method for suppressing fluctuations in electrolysis equipment according to claim 1, characterized in that, Adjusting the power allocation ratio includes: The actual change range of the real-time current of the battery is compared with the current change limit. If the actual change range of the real-time current of the battery is greater than the current change limit, an over-limit status indicator is generated. If the actual change range of the real-time current of the battery is less than or equal to the current change limit, a safety status indicator is generated. In response to the over-limit status indicator and the fluctuation type being a step fluctuation, the power allocation ratio is calculated with the first preset ratio value to generate an adjusted power allocation ratio; In response to the over-limit status indicator and the fluctuation type being either a ramp fluctuation or a random disturbance fluctuation, the power allocation ratio is calculated with the second preset ratio value to generate the adjusted power allocation ratio; In response to the safety status indicator, the power allocation ratio remains unchanged.
7. The battery flexible control method for suppressing fluctuations in electrolysis equipment according to claim 6, characterized in that, In response to the over-limit status indicator and the fluctuation type being a step fluctuation, the power allocation ratio is calculated with a first preset ratio value to generate an adjusted power allocation ratio, further comprising: The target output power of the battery is obtained by multiplying the power requirement of the electrolysis equipment by the adjusted power allocation ratio, and the battery command current is calculated by dividing the target output power of the battery by the battery terminal voltage. The absolute value of the difference between the battery command current in the current sampling period and the previous sampling period is calculated as the command change amplitude, and the command change amplitude is compared with the current change limit value. If the magnitude of the instruction change is greater than the current change limit and the fluctuation type is a step fluctuation, the adjusted power allocation ratio is multiplied by a third preset ratio value to generate a suppressed power allocation ratio. If the magnitude of the change in the command is greater than the current change limit and the fluctuation type is a ramp fluctuation or a random disturbance fluctuation, the adjusted power allocation ratio is multiplied by a fourth preset ratio value to generate the suppressed power allocation ratio.
8. The battery flexible control method for suppressing fluctuations in electrolysis equipment according to claim 1, characterized in that, The battery target output power is corrected and then output to the battery converter, including: The current compensation value is injected as a feedforward component into the power command link; The compensation polarity is determined based on the working mode of the electrolysis equipment and the sign of the current compensation value. When the working mode of the electrolysis equipment is hydrogen production mode and the current compensation value is positive, the compensation polarity is set to positive. When the working mode of the electrolysis equipment is shutdown mode and the current compensation value is positive, the compensation polarity is set to negative. The feedforward component and the feedback component are superimposed to generate the corrected target output power of the battery, and the corrected target output power of the battery is divided by the battery terminal voltage to generate a current command, which is then output to the battery converter.
9. The battery flexible control method for suppressing fluctuations in electrolysis equipment according to claim 8, characterized in that, The method of superimposing the feedforward component and the feedback component to generate the corrected target output power of the battery also includes: In response to the feedforward component amplitude continuously exceeding the preset ratio of the feedback component, a secondary adjustment of the power allocation ratio is triggered; The secondary adjustment is suspended until the temperature of the electrolytic cell stabilizes.
10. A flexible battery control system for suppressing fluctuations in electrolysis equipment, employing the flexible battery control method for suppressing fluctuations in electrolysis equipment as described in any one of claims 1 to 9, characterized in that, include: The current compensation calculation module collects the real-time current of the battery, performs compensation calculations on the fluctuation range of the real-time current, and generates a current compensation value. The fluctuation type identification module obtains the power requirement of the electrolysis equipment, identifies the fluctuation type based on the current compensation value and the power requirement of the electrolysis equipment, and generates a current change limit value based on the fluctuation type and the current compensation value. The power allocation adjustment module selects a power allocation ratio from a preset control parameter library according to the fluctuation type, calculates the actual change amplitude of the real-time current of the battery, and adjusts the power allocation ratio according to the actual change amplitude and the current change limit value. The power correction output module generates a target output power for the battery based on the power allocation ratio and the power requirements of the electrolysis equipment, and outputs the target output power to the battery converter after correcting it according to the current compensation value.