A power supply control method and related device

CN122533374APending Publication Date: 2026-08-07CHINA NUCLEAR POWER ENGINEERING COMPANY LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610482348.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-04-13
Publication Date
2026-08-07

AI Technical Summary

Technical Problem

[0005]基于上述技术现状,本申请提供一种电源控制方法和相关设备,用于解决制氢电源的控制容易出现超调以及震荡的问题

Benefits of technology

[0020]第五方面,本申请提供了一种计算机程序产品,所述计算机程序在被处理器执行时,实现如上所述的电源控制方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122533374A_ABST
    Figure CN122533374A_ABST
Patent Text Reader

Abstract

The application provides a power supply control method and related equipment. The power supply control method comprises the following steps: acquiring an actual current value of a hydrogen production power supply at a current time, and determining an expected current value of the hydrogen production power supply under a first-order inertia step response according to the actual current value; determining a predicted current value of the hydrogen production power supply at a next time according to the expected current value; performing rolling optimization on the predicted current value to obtain a target current value, and determining a target current adjustment value according to the target current value; and adjusting a current value output by the hydrogen production power supply at the current time according to the target current adjustment value. In the application, the overshoot and oscillation phenomena commonly seen in PI control are effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power supply technology, and in particular to a power supply control method and related equipment. Background Technology

[0002] The hydrogen production power supply is a core component of the hydrogen production system. Its main function is to provide stable, high-quality DC power to the electrolyzer. During hydrogen production, the power supply needs to meet the requirements of low voltage and high current output, and be able to adapt to the operating needs of the electrolyzer over a wide power range. Simultaneously, to ensure the efficient, safe, and stable operation of the hydrogen production system, extremely high requirements are placed on the power quality (such as current ripple and steady-state accuracy) and dynamic response speed of the power supply.

[0003] Currently, hydrogen production power supplies generally employ the traditional current PI (proportional-integral) control method. This method involves real-time acquisition of the power supply output current, comparison with a set current value, generation of an error signal, and then calculation by the PI controller to generate drive pulses for adjusting the power supply switching devices.

[0004] However, PI controllers are single-loop feedback controllers, and their response speed is limited by the controller bandwidth. When faced with rapid power fluctuations or sudden load changes, the dynamic response of PI control lags and is prone to overshoot or oscillation. In other words, the control of hydrogen production power supply is prone to overshoot and oscillation, which cannot meet the requirements of hydrogen production system for rapid response. Summary of the Invention

[0005] Based on the above-mentioned technological status, this application provides a power supply control method and related equipment to solve the problems of overshoot and oscillation that easily occur in the control of hydrogen production power supplies.

[0006] To achieve the above-mentioned technical objectives, this application proposes the following technical solution: In a first aspect, this application provides a power control method, including: Obtain the actual current value of the hydrogen production power source at the current moment, and determine the expected current value of the hydrogen production power source under the first-order inertial step response based on the actual current value. The predicted current value of the hydrogen production power source at the next moment is determined based on the expected current value. The predicted current value is optimized by rolling to obtain the target current value, and the target current adjustment value is determined based on the target current value; Adjust the current value currently output by the hydrogen production power source according to the target current adjustment value.

[0007] In some implementations, determining the predicted current value of the hydrogen production power source at the next moment based on the desired current value includes: The current value of the hydrogen production power source at the next moment is predicted based on the expected current value, and used as an intermediate current value to determine the prediction current error. Based on the predicted current error, the intermediate current value is compensated to obtain the predicted current value of the hydrogen production power source at the next moment.

[0008] In some implementations, determining the predicted current error includes: A reference current value is determined based on the current adjustment value of the hydrogen production power source and the smoothness of the desired current value. The predicted current error is determined based on the difference between the intermediate current value and the reference current value.

[0009] In some implementations, compensating for the intermediate current value based on the predicted current error includes: Obtain the compensation matrix; The intermediate current value is compensated based on the product of the compensation matrix and the predicted current error to obtain the predicted current value of the hydrogen production power source at the next moment.

[0010] In some implementations, the step of performing rolling optimization on the predicted current value to obtain the target current value includes: Obtain the displacement matrix corresponding to the current rolling; The predicted current value is optimized by rolling based on the displacement matrix to obtain the target current value.

[0011] In some implementations, the step of performing rolling optimization on the predicted current value based on the displacement matrix to obtain the target current value includes: The predicted current value is optimized by rolling based on the displacement matrix to obtain the current value to be determined. The current dynamic matrix of the hydrogen production power source is determined, and the target current value is determined based on the current value to be determined and the dynamic matrix.

[0012] In some embodiments, determining the current dynamic matrix of the hydrogen production power source includes: When the electrolyzer powered by the hydrogen production power source is in steady-state operation, a step signal is applied to the current output by the hydrogen production power source to obtain multiple electrolyzer current values. Based on the current values ​​of each electrolyzer, a current dynamic matrix of the hydrogen production power source is constructed.

[0013] In some implementations, determining the target current adjustment value based on the target current value includes: Obtain the steady-state constraints of the hydrogen production power source; Based on the constraints, construct an objective function relationship between the desired current value, the predicted current value, and the target current adjustment; The target current adjustment value is determined based on the objective function relationship, the desired current value, and the predicted current value.

[0014] In some implementations, determining the target current adjustment value based on the objective function relationship, the desired current value, and the predicted current value includes: The objective function relationship is transformed into matrix form to obtain the intermediate function relationship; Based on the expected current value and the predicted current value, the optimal solution of the intermediate function relationship is determined to obtain the target current adjustment value.

[0015] In some implementations, determining the optimal solution for the intermediate function relationship based on the expected current value and the predicted current value includes: Based on the expected current value and the predicted current value, the optimal solution is obtained for the intermediate function relationship, and the optimal output matrix is ​​obtained. Obtain the first output element in the optimal output matrix, and determine the target current adjustment value based on the output element and the current adjustment value of the hydrogen production power source at the previous moment.

[0016] In some embodiments, the constraints include: the steady-state error value of the hydrogen production power source is less than a preset error value and / or the energy required by the hydrogen production power source in steady state is less than a preset energy.

[0017] Secondly, this application provides a power control device, comprising: The acquisition module is used to acquire the actual current value of the hydrogen production power supply at the current moment, and determine the expected current value of the hydrogen production power supply under the first-order inertial step response based on the actual current value. A determination module is used to determine the predicted current value of the hydrogen production power source at the next moment based on the expected current value; An optimization module is used to perform rolling optimization on the predicted current value to obtain a target current value, and to determine a target current adjustment value based on the target current value; An adjustment module is used to adjust the current value currently output by the hydrogen production power source according to the target current adjustment value.

[0018] Thirdly, this application provides a hydrogen production power source, including a memory and a processor, wherein, The memory is connected to the processor and is used to store programs; The processor is used to implement the power control method described above by running the program in the memory.

[0019] Fourthly, this application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the power control method described above.

[0020] Fifthly, this application provides a computer program product, which, when executed by a processor, implements the power control method described above.

[0021] This application provides a power supply control method and related equipment. The method acquires the actual current value of a hydrogen production power supply at the current moment, determines the desired current value of the hydrogen production power supply under the first-order inertial step response based on the actual current value, determines the predicted current value of the hydrogen production power supply at the next moment based on the desired current value, performs rolling optimization on the predicted current value to obtain a target current value, determines a target current adjustment value based on the target current value, and finally adjusts the current value currently output by the hydrogen production power supply using the target current adjustment value. In this application, by using the desired current under the first-order inertial step response and performing rolling optimization on the predicted current, the current rise process can be accurately planned, effectively avoiding overshoot and oscillation phenomena common in PI control, and significantly improving the dynamic performance and stability of the hydrogen production system. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0023] Figure 1 A flowchart of a power control method provided in this application embodiment Figure 1 .

[0024] Figure 2 A flowchart of a power control method provided in this application embodiment Figure 2 .

[0025] Figure 3 A flowchart of a power control method provided in this application embodiment Figure 3 .

[0026] Figure 4 A flowchart of a power control method provided in this application embodiment Figure 4 .

[0027] Figure 5A flowchart of a power control method provided in this application embodiment Figure 5 .

[0028] Figure 6 This is a schematic diagram of the functional modules of a power control device provided in an embodiment of this application.

[0029] Figure 7 This is a schematic diagram of a hydrogen production power source provided in an embodiment of this application. Detailed Implementation

[0030] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0031] The hydrogen production power supply is a core component of the hydrogen production system. Its main function is to provide stable, high-quality DC power to the electrolyzer. During hydrogen production, the power supply needs to meet the requirements of low voltage and high current output, and be able to adapt to the operating needs of the electrolyzer over a wide power range. Simultaneously, to ensure the efficient, safe, and stable operation of the hydrogen production system, extremely high requirements are placed on the power quality (such as current ripple and steady-state accuracy) and dynamic response speed of the power supply.

[0032] Currently, hydrogen production power supplies generally employ the traditional current PI (proportional-integral) control method. This method involves real-time acquisition of the power supply output current, comparison with a set current value, generation of an error signal, and then calculation by the PI controller to generate drive pulses for adjusting the power supply switching devices.

[0033] However, PI controllers are single-loop feedback controllers, and their response speed is limited by the controller bandwidth. When faced with rapid power fluctuations or sudden load changes, the dynamic response of PI control lags and is prone to overshoot or oscillation. In other words, the control of hydrogen production power supply is prone to overshoot and oscillation, which cannot meet the requirements of hydrogen production system for rapid response.

[0034] To address the aforementioned technical problems, this application proposes a power control method. The following detailed description of the power control method is provided through various embodiments.

[0035] Reference Figure 1 , Figure 1 A flowchart of a power control method provided in this application embodiment Figure 1 .like Figure 1 As shown, the power control method provided in this embodiment includes: Step S101: Obtain the actual current value of the hydrogen production power supply at the current moment, and determine the expected current value of the hydrogen production power supply under the first-order inertial step response based on the actual current value.

[0036] In this embodiment, the executing entity is a power control device. For ease of description, the term "device" will be used to refer to the power control device below. The device can be the hydrogen production power source itself, or a device used to control the hydrogen production power source. During the process of the hydrogen production power source providing current to the electrolyzer for hydrogen production, the device will collect the current value of the hydrogen production power source to the electrolyzer in real time, and use the currently collected current value as the actual current value of the hydrogen production power source at the current moment.

[0037] After obtaining the actual current value, the desired current value of the hydrogen production power supply under the first-order inertial step response is determined based on the actual current value. For example, for the step response of the electrolyzer current, it is desired that the electrolyzer current exhibits a dynamic change process of a first-order inertial element with no overshoot, no oscillation, and small steady-state error. Therefore, a first-order filter element is used to generate the desired trajectory. The desired trajectory is an output current change curve composed of P discrete desired current values ​​w(k+1) at time K. The desired trajectory can be expressed as: ,in, The smoothness of the desired trajectory (range 0~1). The smaller the value, the faster the expected trajectory response; The current setting value for the hydrogen production power supply. This is the actual current value.

[0038] Step S102: Determine the predicted current value of the hydrogen production power source at the next moment based on the expected current value.

[0039] After obtaining the desired current value, the predicted current value of the hydrogen production power source at the next moment is determined based on the desired current value. For example, the predicted current value I(k+1) = × +(1- )× , in, The attenuation coefficient is the attenuation coefficient. , This represents the desired current value.

[0040] Step S103: Perform rolling optimization on the predicted current value to obtain the target current value, and determine the target current adjustment value based on the target current value.

[0041] After determining the predicted current value, the target current value can be obtained by performing rolling optimization on the predicted current value. For example, the previous current adjustment value of the hydrogen production power source can be obtained, and the predicted current value can be compensated based on the previous current adjustment value to obtain the target current value. For example, the sum of the predicted current value and the current predicted current can be used as the target current value.

[0042] Once the target current value is determined, the target current adjustment value can be determined. For example, the difference between the target current value and the actual current value at the current moment is used as the target current adjustment value.

[0043] Step S104: Adjust the current value currently output by the hydrogen production power supply according to the target current adjustment value.

[0044] After determining the target current adjustment value, the current value currently output by the hydrogen production power supply is adjusted based on the target current adjustment value; that is, the target current adjustment value is added to the current output current value of the hydrogen production power supply. In this embodiment, the hydrogen production power supply is controlled based on the desired current of the step response of first-order inertia, which has a certain robustness to changes in the hydrogen production system and can maintain good control performance of the hydrogen production power supply under different operating conditions.

[0045] In this embodiment, the actual current value of the hydrogen production power supply at the current moment is obtained, and the expected current value of the hydrogen production power supply under the first-order inertial step response is determined based on the actual current value. The predicted current value of the hydrogen production power supply at the next moment is then determined based on the expected current value. The predicted current value is then subjected to rolling optimization to obtain the target current value. Based on the target current value, a target current adjustment value is determined, and finally, the current output value of the hydrogen production power supply is adjusted using the target current adjustment value. In this embodiment, by using the expected current under the first-order inertial step response and performing rolling optimization on the predicted current, the current rise process can be accurately planned, effectively avoiding overshoot and oscillation phenomena common in PI control, and significantly improving the dynamic performance and stability of the hydrogen production system.

[0046] Reference Figure 2 , Figure 2 A flowchart of a power control method provided in this application embodiment Figure 2 ,based on Figure 1 In the embodiment shown, step S102 includes: Step S201: Predict the current value of the hydrogen production power source at the next moment based on the expected current value, use it as an intermediate current value, and determine the prediction current error.

[0047] In this embodiment, the predicted current value of the hydrogen production power source at the next moment is first determined by the expected current value, and this value is used as an intermediate current value.

[0048] For example, the intermediate current value I(k+1) = × +(1- )× , in, The attenuation coefficient is the attenuation coefficient. , This represents the desired current value.

[0049] After determining the intermediate current value, the predicted current error is then determined. In one example, the predicted current error is obtained by subtracting the actual current value from the intermediate current value.

[0050] In another example, a reference current value is determined based on the current current adjustment value of the hydrogen production power source and the smoothness of the expected current value. The predicted current error is then determined by the difference between the intermediate current value and the reference current value. For example, the predicted current error... ,in, = , For smoothness, This is the current current adjustment value. This is the intermediate current value.

[0051] Step S202: Based on the predicted current error, the intermediate current value is compensated to obtain the predicted current value of the hydrogen production power source at the next moment.

[0052] After obtaining the predicted current error, the intermediate current value is compensated for by the predicted current error to obtain the predicted current value. In one example, the predicted current error is superimposed on the intermediate current value to obtain the predicted current value. In another example, a compensation matrix is ​​obtained, and the intermediate current value is supplemented based on the product of the compensation matrix and the predicted current error to obtain the predicted current value. For example, the predicted current value is represented as: , To supplement the coefficients, which take values ​​between 0 and 1, the matrix representation is as follows: ,in, Both are P×1 matrices. To predict current error.

[0053] In this embodiment, accurate predicted current values ​​are obtained through error compensation and trajectory correction, thereby improving the stability accuracy of the hydrogen production power supply and reducing current ripple.

[0054] Figure 3 A flowchart of a power control method provided in this application embodiment Figure 3 ,based on Figure 1 or Figure 2 In the embodiment shown, step S103 includes: Step S301: Obtain the displacement matrix corresponding to the current rolling.

[0055] In this embodiment, the device obtains the displacement matrix S corresponding to the current rolling. Matrix S is a preset matrix. For example, the displacement matrix S is represented as: .

[0056] Step S302: Perform rolling optimization on the predicted current value based on the displacement matrix to obtain the target current value.

[0057] After obtaining the displacement matrix, the predicted current value is optimized using a rolling process based on the displacement matrix to obtain the target current value. In one example, the product of the predicted current value and the displacement matrix is ​​determined as the target current value, such as: , Where S is the displacement matrix. For the target current value, To predict the current value.

[0058] In another example, the predicted current value is rolled over based on the displacement matrix to obtain the current value to be determined. Then, the dynamic matrix of the hydrogen production power source is determined. Based on the current value to be determined and the dynamic matrix, the target current value is determined. For example, the current value to be determined is: The dynamic matrix is ​​a preset matrix, therefore the target current value is: ,in, For the current dynamic matrix, The change in current that needs to be adjusted (this is an unknown parameter). The value of the current to be determined.

[0059] The current dynamic matrix A can be pre-stored based on actual measurements, and the device retrieves the current dynamic matrix from the storage area. When the electrolyzer powered by the hydrogen production power source is in steady-state operation, a step signal is applied to the current output by the hydrogen production power source to obtain the current values ​​of multiple electrolyzers. Based on the current values ​​of each electrolyzer, the current dynamic matrix of the hydrogen production power source is constructed.

[0060] For example, when the electrolyzer is operating in steady state, a step signal is applied to the current output by the hydrogen production power source to obtain the electrolyzer current step response curve, and the electrolyzer current values ​​a1, a2, a3, ..., a1 at P discrete sampling times are recorded. P Then, through the discrete values ​​of the step response a1, a2, a3, ..., a P Construct the eastward flow dynamic matrix A. The expression for matrix A is: Where P is the prediction step size and M is the control step size, M < P.

[0061] In this embodiment, the displacement matrix corresponding to the current rolling is obtained, and the predicted current value is rolled optimization based on the displacement matrix to accurately obtain the target current value.

[0062] Figure 4 A flowchart of a power control method provided in this application embodiment Figure 4 .based on Figures 1 to 3 In any of the embodiments shown, step S103 includes: Step S401: Obtain the steady-state constraints of the hydrogen production power source.

[0063] In this embodiment, the device obtains the steady-state constraints of the hydrogen production power source. The constraints include: the steady-state error value of the hydrogen production power source is less than a preset error value and / or the energy required by the hydrogen production power source in the steady-state state is less than a preset energy.

[0064] Step S402: Based on the constraints, construct the objective function relationship between the desired current value, the predicted current value, and the target current adjustment.

[0065] After obtaining the constraints, an objective function relationship is constructed between the desired current value, the predicted current value, and the target current adjustment value. For example, the objective function relationship is: Where q is the weighting factor for the system output tracking effect, and r is the weighting factor for the control quantity with the least energy. To predict the current value, The desired current value, This is the target current adjustment value.

[0066] Step S403: Determine the target current adjustment value based on the objective function relationship, the desired current value, and the predicted current value.

[0067] The target current adjustment value can be determined by using the objective function relationship, the desired current value, and the predicted current value. For example, under constraints, the objective function relationship is solved, that is, the constraint-satisfied value is obtained. As the target current adjustment value.

[0068] In this embodiment, the objective function relationship constructed based on constraints considers both output tracking accuracy and control energy, resulting in minimal current ripple and high steady-state accuracy in the hydrogen production system after reaching steady state, providing a high-quality and stable power supply for the electrolyzer. Furthermore, the objective function includes minimizing control energy waste (r*Δu²), meaning that the controller will minimize unnecessary control actions while ensuring performance, thereby reducing the control pressure on the hydrogen production power supply, lowering switching losses, and improving overall control efficiency.

[0069] Figure 5A flowchart of a power control method provided in this application embodiment Figure 5 .based on Figure 4 In the embodiment shown, step S403 includes: Step S501: Transform the objective function relationship into matrix form to obtain the intermediate function relationship.

[0070] In this embodiment, after determining the objective function relationship, the objective function relationship is transformed into matrix form. For example, the objective function relationship in matrix form is as follows: Where the Q matrix is ​​q×E p×p The R matrix is ​​r×E M×M E is the identity matrix. The objective function relation in matrix form is defined as the intermediate function relation.

[0071] Step S502: Based on the desired current value and the predicted current value, determine the optimal solution for the intermediate function relationship to obtain the target current adjustment value.

[0072] After obtaining the intermediate function relationship, the optimal solution of the intermediate function relationship is determined based on the expected current value and the predicted current value, and then the optimal solution is used as the target current value.

[0073] Furthermore, based on the desired and predicted current values, the optimal solution is obtained from the intermediate function relationship to arrive at the optimal output matrix. The first output element of the optimal output matrix is ​​then obtained, and the target current adjustment value is determined based on this output element and the current adjustment value of the hydrogen power supply at the previous moment. For example, the target current adjustment value is: Where ΔU(1,1) is the first output element of the optimal output matrix. It is the current adjustment value of the hydrogen production power source at the previous moment.

[0074] In this embodiment, the target current adjustment value is calculated more conveniently by performing a matrix transformation through the objective function relationship. Corresponding to the power control method described above, this application also provides a power control device. Figure 6 This is a schematic diagram of a power control device provided in an embodiment of this application. The power control device 600 provided in this embodiment includes: The acquisition module 610 is used to acquire the actual current value of the hydrogen production power supply at the current moment, and determine the expected current value of the hydrogen production power supply under the first-order inertial step response based on the actual current value. The determination module 620 is used to determine the predicted current value of the hydrogen production power source at the next moment based on the expected current value; The optimization module 630 is used to perform rolling optimization on the predicted current value to obtain the target current value, and to determine the target current adjustment value based on the target current value; The adjustment module 640 is used to adjust the current value currently output by the hydrogen production power supply according to the target current adjustment value.

[0075] In some implementations, the power control device 600 is also used for: The current value of the hydrogen production power source at the next moment is predicted based on the expected current value, and used as an intermediate current value to determine the prediction current error. Based on the predicted current error, the intermediate current value is compensated to obtain the predicted current value of the hydrogen production power source at the next moment.

[0076] In some implementations, the power control device 600 is also used for: The reference current value is determined based on the current adjustment value of the hydrogen production power source and the smoothness of the desired current value. The predicted current error is determined based on the difference between the intermediate current value and the reference current value.

[0077] In some implementations, the power control device 600 is also used for: Obtain the compensation matrix; The intermediate current value is compensated based on the product of the compensation matrix and the predicted current error to obtain the predicted current value of the hydrogen production power source at the next moment.

[0078] In some implementations, the power control device 600 is also used for: Obtain the displacement matrix corresponding to the current rolling; The target current value is obtained by performing rolling optimization on the predicted current value based on the displacement matrix.

[0079] In some implementations, the power control device 600 is also used for: The predicted current value is optimized by rolling based on the displacement matrix to obtain the current value to be determined. Determine the current dynamic matrix of the hydrogen production power source, and determine the target current value based on the current value to be determined and the dynamic matrix.

[0080] In some implementations, the power control device 600 is also used for: When the electrolyzer powered by the hydrogen production power supply is in steady-state operation, a step signal is applied to the current output by the hydrogen production power supply to obtain the current values ​​of multiple electrolyzers. Based on the current values ​​of each electrolyzer, a dynamic current matrix for the hydrogen production power source is constructed.

[0081] In some implementations, the power control device 600 is also used for: Obtain the steady-state constraints of the hydrogen production power source; Based on the constraints, construct an objective function relationship between the desired current value, the predicted current value, and the target current adjustment; The target current adjustment value is determined based on the objective function relationship, the expected current value, and the predicted current value.

[0082] In some implementations, the power control device 600 is also used for: The intermediate function relationship is obtained by transforming the objective function relationship into matrix form. Based on the desired current value and the predicted current value, the optimal solution of the intermediate function relationship is determined, and the target current adjustment value is obtained.

[0083] In some implementations, the power control device 600 is also used for: Based on the expected current value and the predicted current value, the optimal solution is obtained by solving the intermediate function relationship to obtain the optimal output matrix; Obtain the first output element in the optimal output matrix, and determine the target current adjustment value based on the output element and the current adjustment value of the hydrogen power supply at the previous moment.

[0084] In some implementations, the constraints include: the steady-state error value of the hydrogen production power source is less than a preset error value and / or the energy required by the hydrogen production power source in steady state is less than a preset energy.

[0085] The power control device and the power control method provided in the above embodiments of this application belong to the same concept and can execute the power control method provided in any of the above embodiments of this application. They have the corresponding functional modules and beneficial effects for executing the power control method. Technical details not described in detail in this embodiment can be found in the specific processing content of the power control method provided in the above embodiments of this application, and will not be repeated here.

[0086] The functions implemented by each module in the power control device can be implemented by the same or different processors, and this application embodiment does not limit this.

[0087] It should be understood that the modules in the above power control device can be implemented by a processor calling firmware. For example, the system includes a processor connected to a memory containing instructions. The processor calls the instructions stored in the memory to implement any of the above methods or to implement the functions of each module of the device. The processor can be a general-purpose processor, such as a CPU or microprocessor, and the memory can be internal to the device or external to the system. Alternatively, the modules in the system can be implemented as hardware circuits. By designing the hardware circuits, some or all of the module functions can be implemented. The hardware circuit can be understood as one or more processors. For example, in one implementation, the hardware circuit is an ASIC, and the functions of some or all of the above modules are implemented by designing the logical relationships of the components within the circuit. In another implementation, the hardware circuit can be implemented by a PLD, such as an FPGA, which can include a large number of logic gates. The connection relationships between the logic gates are configured through configuration files to implement the functions of some or all of the above modules. All modules of the above power control device can be implemented entirely by a processor calling firmware, entirely by hardware circuits, or partially by a processor calling firmware with the remaining parts implemented by hardware circuits.

[0088] In this application embodiment, a processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction reading and execution capabilities, such as a CPU, microprocessor, GPU, or DSP. In another implementation, the processor can implement certain functions through the logical relationships of hardware circuits. These logical relationships are fixed or reconfigurable. For example, the processor may be a hardware circuit implemented as an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and configuring the hardware circuit can be understood as the processor loading instructions to implement the functions of some or all of the above modules. Furthermore, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as an NPU, TPU, or DPU.

[0089] As can be seen, each module in the above power control device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor types.

[0090] Furthermore, the modules in the above power control device can be integrated in whole or in part, or they can be implemented independently. In one implementation, these modules are integrated together and implemented in the form of a System-on-Chip (SoC). The SoC may include at least one processor for implementing any of the above methods or implementing the functions of the modules of the device. The at least one processor can be of different types, such as CPU and FPGA, CPU and artificial intelligence processor, CPU and GPU, etc.

[0091] This application provides a schematic diagram of a hydrogen production power source, see [link]. Figure 7 As shown, the hydrogen production power source includes a memory 700 and a processor 710; wherein, the memory 700 is connected to the processor 710 and is used to store programs; the processor 710 is used to implement the power control method disclosed in any of the above embodiments by running the programs stored in the memory 700.

[0092] Specifically, the aforementioned hydrogen production power supply may further include: a bus, a communication interface 720, an input device 730, and an output device 740. The hydrogen production power supply may also include a data transceiver module, an image monitoring module, and a signal monitoring module.

[0093] The processor 710, memory 700, communication interface 720, input device 730, and output device 740 are interconnected via a bus. Among them: The bus may include a pathway for transmitting information between various components in the hydrogen production power source.

[0094] The processor 710 can be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present invention. It can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0095] The processor 710 may include a main processor, as well as a baseband chip, modem, etc.

[0096] The memory 700 stores a program that executes the technical solution of this invention, and may also store an operating system and other key business functions. Specifically, the program may include program code, which includes computer operation instructions. More specifically, the memory 700 may include read-only memory (ROM), other types of static storage devices capable of storing static information and instructions, random access memory (RAM), other types of dynamic storage devices capable of storing information and instructions, disk storage, flash memory, etc.

[0097] Input device 730 may include a device for receiving data and information input by a user, such as a keyboard, mouse, camera, scanner, light pen, voice input device, touch screen, pedometer, or gravity sensor.

[0098] Output device 740 may include devices that allow information to be output to a user, such as a display screen, printer, speaker, etc.

[0099] The communication interface 720 may include a device that uses any transceiver to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.

[0100] The processor 710 executes the program stored in the memory 700 and calls other devices, which can be used to implement the various steps of any of the power control methods provided in the above embodiments of this application.

[0101] In addition to the methods and apparatus described above, embodiments of this application may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the steps in the power control methods according to various embodiments of this application as described in any of the above embodiments of this specification.

[0102] Computer program products can be written in any combination of one or more programming languages ​​to perform the operations of the embodiments of this application. The programming languages ​​include object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the power device, as a standalone firmware package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0103] Furthermore, embodiments of this application may also be storage media storing computer programs, which are executed by a processor to perform the steps of the power control methods according to various embodiments of this application described in any of the above embodiments of this specification, specifically implementing the steps of the power control methods described above.

[0104] For the foregoing method embodiments, in order to simplify the description, they are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because according to this application, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0105] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For apparatus embodiments, since they are basically similar to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0106] The steps in the methods of the various embodiments of this application can be adjusted, merged, or deleted in order according to actual needs, and the technical features described in each embodiment can be replaced or combined.

[0107] The units of the apparatus in the various embodiments of this application can be merged, divided, and deleted according to actual needs.

[0108] It should be understood that the disclosed terminals, devices, and methods can be implemented in other ways, given the several embodiments provided in this application. For example, the terminal embodiments described above are merely illustrative. For instance, the division of modules or sub-modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple sub-modules or modules may be combined or integrated into another module, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.

[0109] The modules or submodules described as separate components may or may not be physically separate. The components that constitute a module or submodule may or may not be physical modules or submodules; that is, they may be located in one place or distributed across multiple network modules or submodules. Some or all of the modules or submodules can be selected to achieve the purpose of this embodiment's solution, depending on actual needs.

[0110] Furthermore, the functional modules or sub-modules in the various embodiments of this application can be integrated into one processing module, or each module or sub-module can exist physically separately, or two or more modules or sub-modules can be integrated into one module. The integrated modules or sub-modules described above can be implemented in hardware or as firmware functional modules or sub-modules.

[0111] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer firmware, or a combination of both. To clearly illustrate the interchangeability of hardware and firmware, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or firmware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0112] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly using hardware, firmware units executed by a processor, or a combination of both. The firmware unit can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0113] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.

[0114] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A power supply control method, characterized in that, include: Obtain the actual current value of the hydrogen production power source at the current moment, and determine the expected current value of the hydrogen production power source under the first-order inertial step response based on the actual current value. The predicted current value of the hydrogen production power source at the next moment is determined based on the expected current value. The predicted current value is optimized by rolling to obtain the target current value, and the target current adjustment value is determined based on the target current value; Adjust the current value currently output by the hydrogen production power source according to the target current adjustment value.

2. The power control method according to claim 1, characterized in that, Determining the predicted current value of the hydrogen production power source at the next moment based on the expected current value includes: The current value of the hydrogen production power source at the next moment is predicted based on the expected current value, and used as an intermediate current value to determine the prediction current error. Based on the predicted current error, the intermediate current value is compensated to obtain the predicted current value of the hydrogen production power source at the next moment.

3. The power control method according to claim 2, characterized in that, The determination of the predicted current error includes: A reference current value is determined based on the current adjustment value of the hydrogen production power source and the smoothness of the desired current value. The predicted current error is determined based on the difference between the intermediate current value and the reference current value.

4. The power control method according to claim 2, characterized in that, The step of compensating the intermediate current value based on the predicted current error includes: Obtain the compensation matrix; The intermediate current value is compensated based on the product of the compensation matrix and the predicted current error to obtain the predicted current value of the hydrogen production power source at the next moment.

5. The power control method according to claim 1, characterized in that, The step of performing rolling optimization on the predicted current value to obtain the target current value includes: Obtain the displacement matrix corresponding to the current rolling; The predicted current value is optimized by rolling based on the displacement matrix to obtain the target current value.

6. The power control method according to claim 5, characterized in that, The step of performing rolling optimization on the predicted current value based on the displacement matrix to obtain the target current value includes: The predicted current value is optimized by rolling based on the displacement matrix to obtain the current value to be determined. The current dynamic matrix of the hydrogen production power source is determined, and the target current value is determined based on the current value to be determined and the dynamic matrix.

7. The power control method according to claim 6, characterized in that, Determining the current dynamic matrix of the hydrogen production power source includes: When the electrolyzer powered by the hydrogen production power source is in steady-state operation, a step signal is applied to the current output by the hydrogen production power source to obtain multiple electrolyzer current values. Based on the current values ​​of each electrolyzer, a current dynamic matrix of the hydrogen production power source is constructed.

8. The power control method according to claim 1, characterized in that, Determining the target current adjustment value based on the target current value includes: Obtain the steady-state constraints of the hydrogen production power source; Based on the constraints, construct an objective function relationship between the desired current value, the predicted current value, and the target current adjustment; The target current adjustment value is determined based on the objective function relationship, the desired current value, and the predicted current value.

9. The power control method according to claim 8, characterized in that, Determining the target current adjustment value based on the objective function relationship, the desired current value, and the predicted current value includes: The objective function relationship is transformed into matrix form to obtain the intermediate function relationship; Based on the expected current value and the predicted current value, the optimal solution of the intermediate function relationship is determined to obtain the target current adjustment value.

10. The power control method according to claim 9, characterized in that, The step of determining the optimal solution for the intermediate function relationship based on the expected current value and the predicted current value includes: Based on the expected current value and the predicted current value, the optimal solution is obtained for the intermediate function relationship, and the optimal output matrix is ​​obtained. Obtain the first output element in the optimal output matrix, and determine the target current adjustment value based on the output element and the current adjustment value of the hydrogen production power source at the previous moment.

11. The power control method according to claim 8, characterized in that, The constraints include: the steady-state error value of the hydrogen production power source is less than a preset error value and / or the energy required by the hydrogen production power source in steady state is less than a preset energy.

12. A power control device, characterized in that, include: The acquisition module is used to acquire the actual current value of the hydrogen production power supply at the current moment, and determine the expected current value of the hydrogen production power supply under the first-order inertial step response based on the actual current value. A determination module is used to determine the predicted current value of the hydrogen production power source at the next moment based on the expected current value; An optimization module is used to perform rolling optimization on the predicted current value to obtain a target current value, and to determine a target current adjustment value based on the target current value; An adjustment module is used to adjust the current value currently output by the hydrogen production power source according to the target current adjustment value.

13. A hydrogen production power source, characterized in that, Including memory and processor, among which, The memory is connected to the processor and is used to store programs; The processor is used to implement the power control method as described in any one of claims 1-11 by running the program in the memory.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the power control method as described in any one of claims 1-11.

15. A computer program product, characterized in that, When the computer program is executed by the processor, it implements the power control method as described in any one of claims 1-11.