Sine and cosine algorithm-based self-adjusting control method for secondary harmonic compensator of hybrid battery system

By using the second harmonic current compensator with the self-regulation control of the positive cosine algorithm in a two-stage single-phase DC-AC inverter, the problem of the second harmonic current affecting the efficiency of the battery and fuel cell is solved, and better results are achieved The tracking and compensation performance improves system stability and robustness.

CN118971649AActive Publication Date: 2024-11-15HARBIN INSTITUTE OF TECHNOLOGY (SHENZHEN) (INSTITUTE OF SCIENCE AND TECHNOLOGY INNOVATION HARBIN INSTITUTE OF TECHNOLOGY SHENZHEN)

Patent Information

Application Number
CN202411039711.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-15
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

In a two-stage single-phase DC-AC inverter, the second harmonic current propagates from the pre-stage DC-DC converter to the DC input source, affecting the energy conversion efficiency of the battery and fuel cell, and causing the DC-DC converter to The current stress of medium power devices increases, the conduction loss increases, and the existing compensators have poor tracking and compensation effects under complex operating conditions.

Method used

Using a self-regulation control method based on the positive cosine algorithm, the voltage loop signal and the second harmonic current tracking signal are calculated by connecting the second harmonic current compensator, including inductor Ls, capacitor Cs and switch tubes, and the objective function is designed as time and The integral function of error is used to optimize parameters using PI regulator and cosine algorithm to adjust the duty cycle of the switch tube to achieve self-regulation control.

Benefits of technology

Effectively reduce the generation of second harmonic current, improve the tracking and compensation performance of the compensator, reduce the second harmonic content in the system, improve stability and robustness, and extend the service life of batteries and fuel cells. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118971649A_ABST
    Figure CN118971649A_ABST
Patent Text Reader

Abstract

The invention discloses a self-adjusting control method of a secondary harmonic compensator of a hybrid battery system based on a sine and cosine algorithm, and belongs to the technical field of harmonic compensator control. The method aims at solving the problem that in secondary harmonic current suppression of a two-stage single-phase DC-AC inverter, an existing secondary harmonic current compensator is poor in tracking and compensation effect due to parameter disturbance under complex working conditions. Comprising the following steps: taking a calculated error e as a current loop input signal of a second harmonic current compensator; designing an objective function, adopting a current loop PI regulator to regulate the error e based on the objective function, calculating PI regulation parameters of the current loop PI regulator based on sine and cosine algorithm iterative optimization, reducing transient response oscillation by minimizing the fitness value of the objective function, and further calculating to obtain the duty ratio d of a switching tube of the second harmonic current compensator. And the self-regulation control of the second harmonic current compensator is realized. The method is used for second harmonic current suppression of the hybrid battery system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a self-regulating control method of a secondary harmonic compensator of a hybrid battery system based on a sine-cosine algorithm, and belongs to the technical field of harmonic compensator control. Background Art

[0002] The second harmonic current suppression technology in the front-stage DC-DC converter of a two-stage single-phase DC-AC inverter has attracted widespread attention from enterprises and academia due to its broad application prospects and significant advantages, such as in application scenarios such as new energy vehicles and photovoltaic systems, and has become a research hotspot in the field of power electronics technology.

[0003] In a two-stage single-phase DC-AC inverter, the pulsating instantaneous power at the AC port is twice the frequency of the AC voltage. This results in the generation of a second harmonic current at twice the frequency of the AC voltage in the intermediate DC bus port. The second harmonic current is supplied by the preceding DC-DC converter and the intermediate bus capacitor. Once the second harmonic current is introduced into the preceding DC-DC converter, it propagates to the DC input source, including batteries and fuel cells. This flow can adversely affect the energy conversion efficiency of batteries and fuel cells, which may shorten their service life. At the same time, the second harmonic current increases the current stress of the power devices in the DC-DC converter, resulting in increased conduction losses and reduced energy conversion efficiency. Using a second harmonic current compensator without an electrolytic capacitor is a suitable method to maintain system stability and effectively suppress second harmonic current. The control method of the second harmonic current compensator is the key to effectively suppress the second harmonic current, and different control methods have a significant impact on the tracking and compensation effect of the second harmonic current compensator.

[0004] Due to the complex actual working conditions, the second harmonic current compensator may be disturbed to varying degrees. Using an optimization algorithm to iteratively adjust the control parameters of the second harmonic current compensator in a timely manner is an effective method to deal with the parameter disturbance of the second harmonic current compensator. In order to improve the practicality of the second harmonic current suppression technology, it is of great theoretical significance and application value to study the second harmonic compensator of the hybrid system with fuel cells and batteries coexisting, which has a small size, good second harmonic current suppression effect, and the ability to self-adjust parameters. Summary of the invention

[0005] Aiming at the problem that the existing second harmonic current compensator has poor tracking and compensation effects due to parameter disturbance in the second harmonic current suppression of a two-stage single-phase DC-AC inverter under complex working conditions, the present invention provides a self-regulating control method for the second harmonic compensator of a hybrid battery system based on a sine-cosine algorithm.

[0006] A self-regulating control method of a second harmonic compensator of a hybrid battery system based on a sine-cosine algorithm of the present invention comprises:

[0007] A second harmonic current compensator is connected in parallel at the DC-DC converter and the intermediate bus of the DC-AC converter of the two-stage single-phase DC-AC inverter; the second harmonic current compensator includes an inductor L s , capacitor C s , switch tube S1 and switch tube S2; determine the inductor L s and capacitor C s The value of

[0008] The self-regulating control method comprises:

[0009] Based on the capacitor voltage signal Calculate the voltage loop signal of the second harmonic current compensator;

[0010] Based on the intermediate bus current i inv The second harmonic current tracking signal is obtained by calculation;

[0011] The error e calculated according to the voltage loop signal, the second harmonic current tracking signal and the inductor current of the second harmonic current compensator is used as the current loop input signal of the second harmonic current compensator;

[0012] An objective function is designed, where the objective function is an integral function of time and the absolute value of the error e. A current loop PI regulator is used to adjust the error e based on the objective function, and the PI adjustment parameters of the current loop PI regulator are iteratively optimized and calculated based on the sine-cosine algorithm. The transient response oscillation is reduced by minimizing the fitness value of the objective function, and then the duty cycle d of the switch tube of the second harmonic current compensator is calculated to achieve self-regulating control of the second harmonic current compensator.

[0013] According to the self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm of the present invention, the fitness value W of the objective function is:

[0014]

[0015] Where t is time.

[0016] According to the self-regulating control method of the hybrid battery system second harmonic compensator based on the sine-cosine algorithm of the present invention, the PI regulating parameters include the proportional coefficient K p and the integral coefficient K i ; Take parameter X as the proportional coefficient K p and the integral coefficient K i The method for iteratively updating the sine-cosine algorithm includes:

[0017]

[0018] In the formula is the current solution of the ith dimension position of parameter X during the nth iteration, r1, r2, r3 and r4 are the four random factors of the sine-cosine algorithm, P i n-1 is the i-th dimension position target solution of parameter X in the n-1th iteration process; when i = 1, Corresponding to K p ; when i = 2, X i n Corresponding to K i ;

[0019] The current solution obtained in each iteration process The number of is the set number.

[0020] According to the self-regulating control method of the hybrid battery system second harmonic compensator based on the sine-cosine algorithm of the present invention, the random factor r1 is used to represent the current solution In the previous solution Inside or outside the target solution:

[0021]

[0022] Where a is a constant and N is the maximum number of iterations;

[0023] The random factor r2 is a random number between 0 and 2π, indicating the current solution The distance to the target solution;

[0024] The random factor r3 is a random number between 0 and 2, indicating the weight of the target solution; r3>1 indicates emphasis, and r3<1 indicates the opposite;

[0025] The random factor r4 is a random number between 0 and 2π representing an equivalent transformed sine and cosine function.

[0026] According to the self-regulating control method of the hybrid battery system second harmonic compensator based on the sine-cosine algorithm of the present invention, the initial value X0 of the setting number of the parameter X is determined according to the following formula:

[0027] X0=lb+rand*(ub-lb),

[0028] Where ub represents the upper bound of parameter X, and lb represents the lower bound of parameter X.

[0029] According to the self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm of the present invention, the process of optimizing the PI adjustment parameters includes:

[0030] Determine the current global optimal solution according to the fitness value: adjust the error e using all current solutions of parameter X as candidate solutions, and then calculate the fitness value of the objective function based on the adjusted error e; select the candidate solution corresponding to the minimum value of the current fitness value as the current determined solution and the current global optimal solution; determine whether the current global optimal solution is greater than or equal to the corresponding target solution:

[0031] If so, determine the range of candidate solutions in the next round of iteration based on the current determined solution, and determine the initial value of the set number in the next round of iteration within the range of candidate solutions according to the formula of the initial value X0; calculate the set number fitness value of the next round of iteration based on the initial value of the set number in the next round of iteration, and determine the next round of determined solutions in the next round of iteration; if the next round of determined solution is less than the current determined solution, update the current global optimal solution to the next round of determined solution; and determine whether the current global optimal solution is greater than the corresponding target solution; until n=N, the final current global optimal solution is used as the proportional coefficient K p and the integral coefficient K i The optimal solution of

[0032] Otherwise, the initial value of the current iterative process is re-determined, and the process returns to the step of determining the current global optimal solution according to the fitness value.

[0033] According to the self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm of the present invention, the second harmonic current compensator is a Boost type power electronic converter;

[0034] Capacitor C s The method for determining the value of is:

[0035] Capacitor C s The energy formula for half-cycle charging or discharging is:

[0036]

[0037]

[0038] In the formula is the capacitance C s The energy of half-cycle charging or discharging, t0 is the starting time of charging or discharging, T ac is a 50Hz alternating current cycle, i SHCC is the inductor current of the second harmonic current compensator, V bus is the bus voltage, V ac is the output voltage amplitude of the DC-AC inverter, I ac is the output current amplitude of the DC-AC inverter, ω ac is the angular frequency of 50Hz AC power, p0 is the output power of DC-AC inverter;

[0039] is the capacitance C s The maximum charging capacitance, is the capacitance C s The minimum charging capacitance, is the capacitance C s The average voltage of half cycle charge or discharge, is the capacitance C s Voltage fluctuation value of half-cycle charging or discharging;

[0040]

[0041]

[0042] According to formula (1) and (2), we can get:

[0043]

[0044] According to the self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm of the present invention, the inductor L s The method for determining the value of is:

[0045] According to the second balance principle of Boost type power electronic converter, we can get:

[0046]

[0047] Where d S1 (t) is the duty cycle of the switch tube S1;

[0048] The inductor ripple expression of the Boost type power electronic converter is:

[0049]

[0050] Where Δi L is the inductance L s The current change, T is the period of the switch tube, D is the amplitude of the switch tube duty cycle, is the inductance L s The voltage signal;

[0051] According to formulas (4) and (5), we can get:

[0052]

[0053] According to the self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm of the present invention, the capacitor voltage signal With capacitor voltage reference value After the difference is made, the voltage loop signal is obtained through the PI regulator.

[0054] According to the self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm of the present invention, a 100 Hz bandpass filter is used to control the intermediate bus current i inv Filtering to obtain the second harmonic current tracking signal;

[0055] The sum of the voltage loop signal and the second harmonic current tracking signal is subtracted from the inductor current i of the second harmonic current compensator. SHCC , and get the error e.

[0056] Beneficial effects of the invention: The method of the invention generates multiple initial random candidate solutions based on the mathematical model of sine and cosine, and makes them fluctuate outside the optimal solution or towards the optimal solution. At the same time, multiple random variables and adaptive variables are used to calculate the position of the current solution. It has a unique optimization principle and good optimization potential.

[0057] The method of the present invention absorbs the second harmonic current through the second harmonic current compensator during the operation of the two-stage single-phase DC-AC inverter; the optimal K is obtained by iteratively calculating the PI parameters using the sine-cosine algorithm. p and K i , and then through K p and K i The determined current loop PI regulator obtains the duty cycle d of the second harmonic current compensator switch and performs switch control.

[0058] The method of the present invention adopts a sine-cosine algorithm to self-regulate and control the second harmonic current compensator, so that the second harmonic current with twice the frequency of the AC voltage generated in the intermediate DC bus port due to the pulsating instantaneous power of twice the frequency of the AC voltage at the AC port is greatly reduced, and the second harmonic current compensator is guaranteed to have good tracking and compensation performance for the second harmonic current when the parameters are perturbed. The practicality of the method of the present invention is improved. After experimental verification, the output power results show that under the conditions of parameter perturbation and full load operation, the second harmonic current content in the fuel cell front-stage DC-DC converter is 0.056%, and the fuel cell current ripple is 3.52%; the battery current changes from being completely affected by the second harmonic current to being basically stable at a stable output value, and the iterative process reaches the optimum at the 44th time,

[0059] The method of the present invention can effectively remove the intermediate bus electrolytic capacitor required in the traditional method or reduce the voltage fluctuation of the intermediate bus capacitor, thereby improving the application value of the hybrid system in which the fuel cell and the battery coexist.

[0060] The method of the present invention requires sampling of the circuit signal. By sampling and processing the circuit signal, the second harmonic current tracking signal can be obtained and used for closed-loop control of the second harmonic current compensator. Compared with the traditional second harmonic current suppression method, the method of the present invention can effectively reduce the content of the second harmonic in the system, effectively improve the stability of the system, and greatly improve the application scenarios and use value of the second harmonic compensator.

[0061] The method of the present invention adds a self-regulating control method based on the sine-cosine algorithm to the current loop of the second harmonic current compensator, which can effectively deal with the problem of parameter perturbation of the second harmonic current compensator in actual complex working conditions, and improve the stability and robustness of the system. The method of the present invention has a good second harmonic current suppression effect, has the ability to self-regulate parameters, and improves the practicality of the second harmonic current suppression technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 The overall block diagram of the control method of the present invention is a second harmonic current compensator connected in parallel at the intermediate bus of the DC-DC converter and the DC-AC converter of the two-stage single-phase DC-AC inverter; SHCC in the figure is the second harmonic current compensator; V dc is the fuel cell supply voltage, I dc is the input current of the DC-DC converter, C bus is the bus capacitance, i ac is the DC-AC inverter output current, v ac is the DC-AC inverter output voltage;

[0063] Figure 2 It is a schematic diagram of the circuit structure of a Boost type power electronic converter;

[0064] Figure 3 It is the overall block diagram of the hybrid system where fuel cells and batteries coexist and the second harmonic current compensator;

[0065] Figure 4 It is a block diagram of a self-regulating control method of a second harmonic current compensator based on a sine-cosine algorithm; in the figure, SCA stands for sine-cosine algorithm;

[0066] Figure 5 It is a schematic diagram of the influence of random factor r1 on position update. In the figure, P represents the target solution.

[0067] Figure 6 It is a schematic diagram of the effect of sine or cosine function on position update;

[0068] Figure 7 It is a flow chart of the self-regulating control of the second harmonic current compensator based on the sine-cosine algorithm;

[0069] Figure 8is the convergence curve of the sine-cosine algorithm;

[0070] Fig. 9 It is a schematic diagram of the input current of a two-stage single-phase DC-AC inverter in steady state;

[0071] Fig.10 is a schematic diagram of the fuel cell output current of the second harmonic current compensator;

[0072] Fig.11 This is a schematic diagram of the second harmonic content of the output current of a fuel cell of a second harmonic current compensator. In the figure, DC represents the direct current, and THD represents the harmonic content.

[0073] Fig.12 This is a schematic diagram of the battery output current of the second harmonic current compensator;

[0074] Fig.13 This is a schematic diagram of the intermediate bus voltage of the second harmonic current compensator;

[0075] Fig.14 It is the schematic diagram of the inductor current of the second harmonic current compensator in steady state;

[0076] Fig.15 This is a schematic diagram of the capacitor voltage of the second harmonic current compensator in steady state. DETAILED DESCRIPTION

[0077] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0078] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0079] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.

[0080] Specific implementation method 1. Combination Figures 1 to 7 As shown, the present invention provides a self-regulating control method of a second harmonic compensator of a hybrid battery system based on a sine-cosine algorithm, comprising:

[0081] A second harmonic current compensator is connected in parallel at the DC-DC converter and the intermediate bus of the DC-AC converter of the two-stage single-phase DC-AC inverter; the second harmonic current compensator includes an inductor L s , capacitor C s , switch tube S1 and switch tube S2; determine the inductor Ls and capacitor C s The value of

[0082] The self-regulating control method comprises:

[0083] Based on the capacitor voltage signal v Cs Calculate the voltage loop signal of the second harmonic current compensator;

[0084] Based on the intermediate bus current i inv The second harmonic current tracking signal is obtained by calculation;

[0085] The error e calculated according to the voltage loop signal, the second harmonic current tracking signal and the inductor current of the second harmonic current compensator is used as the current loop input signal of the second harmonic current compensator;

[0086] An objective function is designed, where the objective function is an integral function of time and the absolute value of the error e. A current loop PI regulator is used to adjust the error e based on the objective function, and the PI adjustment parameters of the current loop PI regulator are iteratively optimized and calculated based on the sine-cosine algorithm. The transient response oscillation is reduced by minimizing the fitness value of the objective function, and then the duty cycle d of the switch tube of the second harmonic current compensator is calculated to achieve self-regulating control of the second harmonic current compensator.

[0087] This embodiment aims at the current and voltage dual closed-loop control of the second harmonic current compensator due to the inductance L s and capacitor C s Parameter perturbation causes the second harmonic current tracking and compensation effect in the two-stage single-phase DC-AC inverter to deteriorate and the error to increase. The duty cycle d of the second harmonic current compensator switch is calculated by the second harmonic current compensator under the sine-cosine algorithm set according to the objective function, which is used in the control of the second harmonic current compensator to realize the self-regulating control of the power electronic second harmonic compensator.

[0088] The second harmonic current compensator in this embodiment tracks and absorbs the second harmonic current of the DC-AC converter, which can prevent the second harmonic current from flowing into the previous DC-DC converter and the battery, and further prevent the second harmonic current from flowing into the fuel cell.

[0089] Further, combined with Figure 4 As shown in the figure, a module based on the sine-cosine algorithm is added to the current loop. The objective function of the sine-cosine algorithm is designed as the time multiplied by the absolute error integral function, which makes the transient response of the control system less oscillatory and has good selectivity for parameters. The tuning of the system is reduced to calculating the unknown parameters in the control system to minimize the objective function.

[0090] The objective function fitness value W is:

[0091]

[0092] Where t is time.

[0093] The sine-cosine algorithm module generates multiple initial random candidate solutions based on the mathematical model of sine and cosine, and makes them fluctuate outward or toward the optimal solution. It uses multiple random variables and adaptive variables to calculate the position of the current solution, which is very different from population-based optimization.

[0094] The optimization process of the sine-cosine algorithm can be divided into two stages. In the exploration stage, the optimization algorithm quickly finds a feasible area in the search space among all random solutions by combining a random solution. In the development stage, the random solution changes gradually, and the rate of change of the random solution is lower than that in the exploration stage. In the sine-cosine algorithm, the candidate solution is first randomly initialized, and then the value of the current solution in each dimension is updated according to the sine or cosine function and combined with the random factor.

[0095] In this embodiment, the PI adjustment parameters include the proportional coefficient K p and the integral coefficient K i ; Take parameter X as the proportional coefficient K p and the integral coefficient K i The method for iteratively updating the sine-cosine algorithm includes:

[0096]

[0097] In the formula is the current solution of the ith dimension position of parameter X during the nth iteration, r1, r2, r3 and r4 are the four random factors of the sine-cosine algorithm, P i n-1 is the i-th dimension position target solution of parameter X in the n-1th iteration process; when i = 1, Corresponding to K p ; when i = 2, Corresponding to K i ;

[0098] The current solution obtained in each iteration process The number of is the set number.

[0099] Among them, the random factor r1 is used to represent the current solution In the previous solution Whether it is inside or outside the target solution, a smaller r1 value helps to enhance the local development ability of the algorithm, and a larger r1 value helps to improve the global exploration ability of the algorithm. In order to balance the local development and global search capabilities of the algorithm, r1 can be expressed as:

[0100]

[0101] Where a is a constant and N is the maximum number of iterations;

[0102] The random factor r2 is a random number between 0 and 2π, indicating the current solution X i n The distance to the target solution;

[0103] The random factor r3 is a random number between 0 and 2, indicating that a random weight is given to the target solution, and the role of the target solution is randomly emphasized or not emphasized when defining the moving distance of the candidate solution; r3>1 indicates emphasis, and r3<1 indicates the opposite;

[0104] The random factor r4 is a random number between 0 and 2π, indicating equal conversion of sine and cosine functions, that is, the probability of taking sine and cosine is the same, and switching is performed with equal probability.

[0105] Combination Figure 5 and Figure 6 As shown in the figure, when the value of the cosine function r1cosr2 or the value of the sine function r1sinr2 is greater than 1 or less than -1, the sine-cosine algorithm tends to perform global exploration. When the values ​​of the cosine and sine functions are less than 1, the sine-cosine algorithm tends to perform local development. The parameters r1 and r2 have an impact on the values ​​of the cosine and sine functions. But because r1 is outside the sine and cosine functions, its value is more decisive for the balance between global search and local development.

[0106] Going a step further, combined Figure 7 , initialize the parameters and positions, and then randomly set the initial value of each solution. The initial value X0 of the set number of parameter X is determined according to the following formula:

[0107] X0=lb+rand*(ub-lb),

[0108] Where ub represents the upper bound of parameter X, and lb represents the lower bound of parameter X.

[0109] In this implementation, the process of optimizing the PI adjustment parameters includes:

[0110] Determine the current global optimal solution according to the fitness value: adjust the error e using all current solutions of parameter X as candidate solutions, and then calculate the fitness value of the objective function based on the adjusted error e; select the candidate solution corresponding to the minimum value of the current fitness value as the current determined solution and the current global optimal solution; determine whether the current global optimal solution is greater than or equal to the corresponding target solution:

[0111] If so, determine the range of candidate solutions in the next round of iteration based on the current determined solution, and determine the initial value of the set number in the next round of iteration within the range of candidate solutions according to the formula of the initial value X0; calculate the set number fitness value of the next round of iteration based on the initial value of the set number in the next round of iteration, and determine the next round of determined solutions in the next round of iteration; if the next round of determined solution is less than the current determined solution, update the current global optimal solution to the next round of determined solution; and determine whether the current global optimal solution is greater than the corresponding target solution; until n=N, the final current global optimal solution is used as the proportional coefficient K p and the integral coefficient K i The optimal solution of

[0112] Otherwise, the initial value of the current iterative process is re-determined, and the process returns to the step of determining the current global optimal solution according to the fitness value.

[0113] The above iterative process can ensure that the duty cycle d of the second harmonic current compensator switch is obtained, which makes the system stable and can accurately track and compensate the second harmonic current when the parameters of the second harmonic current compensator are perturbed.

[0114] According to the sine-cosine algorithm after setting the objective function, the PI parameter K in the current loop is p and K i Optimization iterations are performed to adapt to parameter perturbations of the inductor and capacitor in the second harmonic current compensator, ensuring that the second harmonic current compensator can still accurately track and compensate for the second harmonic current in the hybrid system under parameter perturbations, thereby improving the stability of the system.

[0115] As an example, combining Figure 2 As shown, the second harmonic current compensator is a Boost type power electronic converter;

[0116] According to the energy conservation formula, the inductance L of the second harmonic current compensator is calculated. s and capacitor C s Parameter calculation.

[0117] Capacitor C s The method for determining the value of is:

[0118] Capacitor C s The energy formula for half-cycle charging or discharging is:

[0119]

[0120]

[0121] In the formula is the capacitance C s The energy of half-cycle charging or discharging, t0 is the starting time of charging or discharging, T acis a 50Hz alternating current cycle, i SHCC is the inductor current of the second harmonic current compensator, V bus is the bus voltage, V ac is the output voltage amplitude of the DC-AC inverter, I ac is the output current amplitude of the DC-AC inverter, ω ac is the angular frequency of 50Hz AC, p0 is the output power of DC-AC inverter, p0=V ac I ac is the output power of the DC-DC converter of the two-stage single-phase converter;

[0122] is the capacitance C s The maximum charging capacitance, is the capacitance C s The minimum charging capacitance, is the capacitance C s The average voltage of half cycle charge or discharge, is the capacitance C s Voltage fluctuation value of half-cycle charging or discharging;

[0123]

[0124]

[0125] According to formula (1) and (2), we can get:

[0126]

[0127] Inductance L s The method for determining the value of is:

[0128] According to the second balance principle of Boost type power electronic converter, we can get:

[0129]

[0130] Where d S1 (t) is the duty cycle of the switch tube S1;

[0131] The inductor ripple expression of the Boost type power electronic converter is:

[0132]

[0133] Where Δi L is the inductance L s The current change, T is the period of the switch tube, D is the amplitude of the switch tube duty cycle, is the inductance L s The voltage signal;

[0134] According to formulas (4) and (5), we can get:

[0135]

[0136] In this embodiment, the capacitor voltage signal With capacitor voltage reference value After the difference is made, the voltage loop signal is obtained through the PI regulator; it is used to generate compensation current to compensate for the power loss of the second harmonic current compensator.

[0137] A 100Hz bandpass filter is used to filter the intermediate bus current i inv Filtering to obtain the second harmonic current tracking signal;

[0138] The sum of the voltage loop signal and the second harmonic current tracking signal is subtracted from the inductor current i of the second harmonic current compensator. SHCC , and get the error e.

[0139] The beneficial effects of the present invention are verified by specific embodiments below: Specific embodiment:

[0141] In order to verify the effectiveness of the method of the present invention for hybrid systems, the hybrid system, second harmonic current compensator and sine-cosine algorithm self-regulating module topology were implemented in Simulink. The fuel cell was replaced by a voltage source connected to a two-phase staggered parallel boost DC-DC converter. The battery was modeled with a voltage source and a resistor, and the load was modeled with a current source. The operation of the second harmonic current compensator of the hybrid system under the sine-cosine algorithm self-regulating module was simulated.

[0142] The component parameters in the simulation model of the second harmonic current compensator are set as follows: the output power p0 of the front-stage converter of the two-stage single-phase converter is 3kW, and the average voltage V of the capacitor of the second harmonic current compensator during half-cycle charging or discharging is Cs_av The voltage fluctuation range of the second harmonic current compensator capacitor during half-cycle charging or discharging is 150V. is 100V, the second harmonic current compensator inductor L s The second harmonic current compensator capacitor C is 163.2uF (1±5%). s is 0.6mF (1±5%). Assume that the PFC of the single-phase inverter is 1 and the initial phase is 0. The capacitor voltage is initially set to 200V. The sine-cosine algorithm search agent is 10 and the maximum number of iterations is 150.

[0143] Figures 8 to 15 The simulation results of the performance of a hybrid battery system when applying a second harmonic current compensator module based on a self-regulated control using a sine-cosine algorithm are presented.

[0144] Figure 8As shown in the figure, after the parameters of the second harmonic current compensator in the hybrid battery system are perturbed, the optimal value of the objective function is 0.030386 in 150 iterations; the optimal PI parameter K of the current loop is obtained according to the sine-cosine algorithm. p and K i They are 0.00223367 and 65 respectively, and converged to the optimal parameters in the 44th iteration.

[0145] Fig. 9 Shown is the input current to the inverter.

[0146] Depend on Fig.10 and Fig.11 As shown, the Fourier transform results clearly show that the second harmonic current compensator can still accurately track and compensate the second harmonic current in the fuel cell output current in the case of parameter disturbance, and the second harmonic current content is 0.056%.

[0147] Depend on Fig.12 As shown, the battery output current is flat in the case of parameter perturbations.

[0148] Fig.13 The DC bus voltage waveform of the hybrid system using the self-adjusting second harmonic current compensator module based on the sine-cosine algorithm under parameter disturbance is shown, and the DC bus voltage ripple is 0.002%.

[0149] Depend on Fig.14 As shown in Figure 2, the second harmonic current compensator port can accurately track the second harmonic current from the inverter load; Fig.15 It indicates that the capacitor voltage ripple of the second harmonic current compensator is consistent with the design value and the capacitor voltage is stable. Figures 8 to 15 The effectiveness and robustness of the second harmonic current compensation based on the second harmonic current compensator module under the self-regulating control of the sine-cosine algorithm are demonstrated.

[0150] Although the present invention is described herein with reference to specific embodiments, it should be understood that these embodiments are merely examples of the principles and applications of the present invention. It should therefore be understood that many modifications may be made to the exemplary embodiments and that other arrangements may be devised without departing from the spirit and scope of the present invention as defined by the appended claims. It should be understood that the various dependent claims and features described herein may be combined in a manner different from that described in the original claims. It should also be understood that the features described in conjunction with a single embodiment may be used in other described embodiments.

Claims

1. A self-regulating control method for a second harmonic compensator of a hybrid battery system based on a sine-cosine algorithm, characterized in that: include: A second harmonic current compensator is connected in parallel at the DC-DC converter of the two-stage single-phase DC-AC inverter and the intermediate bus of the DC-AC converter; The second harmonic current compensator includes an inductor L s , capacitor C s , switch tube S1 and switch tube S2; determine the inductor L s and capacitor C s The value of The self-regulating control method comprises: Based on the capacitor voltage signal Calculate the voltage loop signal of the second harmonic current compensator; Based on the intermediate bus current i inv The second harmonic current tracking signal is obtained by calculation; The error e calculated according to the voltage loop signal, the second harmonic current tracking signal and the inductor current of the second harmonic current compensator is used as the current loop input signal of the second harmonic current compensator; An objective function is designed, where the objective function is an integral function of time and the absolute value of the error e. A current loop PI regulator is used to adjust the error e based on the objective function, and the PI adjustment parameters of the current loop PI regulator are iteratively optimized and calculated based on the sine-cosine algorithm. The transient response oscillation is reduced by minimizing the fitness value of the objective function, and then the duty cycle d of the switch tube of the second harmonic current compensator is calculated to achieve self-regulating control of the second harmonic current compensator.

2. The self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm according to claim 1 is characterized in that: The objective function fitness value W is: Where t is time.

3. The self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm according to claim 2 is characterized in that: PI adjustment parameters include the proportional coefficient K p and the integral coefficient K i ; Take parameter X as the proportional coefficient K p and the integral coefficient K i The method for iteratively updating the sine-cosine algorithm includes: In the formula is the current solution of the ith dimension position of parameter X during the nth iteration, r1, r2, r3 and r4 are the four random factors of the sine-cosine algorithm, P i n-1 is the i-th dimension position target solution of parameter X in the n-1th iteration process; when i = 1, Corresponding to K p ; when i = 2, Corresponding to K i ; The current solution obtained in each iteration process The number of is the set number.

4. The self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm according to claim 3 is characterized in that: The random factor r1 is used to represent the current solution In the previous solution and inside or outside the target solution: Where a is a constant and N is the maximum number of iterations; The random factor r2 is a random number between 0 and 2π, indicating the current solution The distance to the target solution; The random factor r3 is a random number between 0 and 2, indicating the weight of the target solution; r3>1 indicates emphasis, and r3<1 indicates the opposite; The random factor r4 is a random number between 0 and 2π representing an equivalent transformed sine and cosine function.

5. The self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm according to claim 4 is characterized in that: The initial value X0 of the setting number of parameter X is determined according to the following formula: X0=lb+rand*(ub-lb), Where ub represents the upper bound of parameter X, and lb represents the lower bound of parameter X.

6. The self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm according to claim 5 is characterized in that: The process of optimizing PI adjustment parameters includes: Determine the current global optimal solution according to the fitness value: adjust the error e using all current solutions of parameter X as candidate solutions, and then calculate the fitness value of the objective function based on the adjusted error e; select the candidate solution corresponding to the minimum value of the current fitness value as the current determined solution and the current global optimal solution; determine whether the current global optimal solution is greater than or equal to the corresponding target solution: If so, determine the range of candidate solutions in the next round of iteration based on the current determined solution, and determine the initial value of the set number in the next round of iteration within the range of candidate solutions according to the formula of the initial value X0; calculate the set number fitness value of the next round of iteration based on the initial value of the set number in the next round of iteration, and determine the next round of determined solutions in the next round of iteration; if the next round of determined solution is less than the current determined solution, update the current global optimal solution to the next round of determined solution; and determine whether the current global optimal solution is greater than the corresponding target solution; until n=N, the final current global optimal solution is used as the proportional coefficient K p and the integral coefficient K i The optimal solution of Otherwise, the initial value of the current iterative process is re-determined, and the process returns to the step of determining the current global optimal solution according to the fitness value.

7. The self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm according to claim 1 is characterized in that: The second harmonic current compensator is a Boost type power electronic converter; Capacitor C s The method for determining the value of is: Capacitor C s The energy formula for half-cycle charging or discharging is: In the formula is the capacitance C s The energy of half-cycle charging or discharging, t0 is the starting time of charging or discharging, T ac is a 50Hz alternating current cycle, i SHCC is the inductor current of the second harmonic current compensator, V bus is the bus voltage, V ac is the output voltage amplitude of the DC-AC inverter, I ac is the output current amplitude of the DC-AC inverter, ω ac is the angular frequency of 50Hz AC power, p0 is the output power of DC-AC inverter; is the capacitance C s The maximum charging capacitance, is the capacitance C s The minimum charging capacitance, is the capacitance C s The average voltage of half cycle charge or discharge, is the capacitance C s Voltage fluctuation value of half-cycle charging or discharging; According to formula (1) and (2), we can get:

8. The self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm according to claim 7 is characterized in that: Inductance L s The method for determining the value of is: According to the second balance principle of Boost type power electronic converter, we can get: Where d S1 (t) is the duty cycle of the switch tube S1; The inductor ripple expression of the Boost type power electronic converter is: Where Δi L is the inductance L s The current change, T is the period of the switch tube, D is the amplitude of the switch tube duty cycle, is the inductance L s The voltage signal; According to formulas (4) and (5), we can get:

9. The self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm according to claim 8 is characterized in that: Capacitor voltage signal With capacitor voltage reference value After the difference is made, the voltage loop signal is obtained through the PI regulator.

10. The self-regulating control method of the second harmonic compensator of the hybrid battery system based on the sine-cosine algorithm according to claim 9 is characterized in that: A 100Hz bandpass filter is used to filter the intermediate bus current i inv Filtering to obtain the second harmonic current tracking signal; The sum of the voltage loop signal and the second harmonic current tracking signal is subtracted from the inductor current i of the second harmonic current compensator. SHCC , and get the error e.

Citation Information

Patent Citations

  • Method for generating excitation signal and keeping amplitude of feedback signal stable

    CN115833660A

  • Method for setting parameters of phase-shifted full-bridge converter controller based on improved sine and cosine algorithm

    CN117454112A

  • Torque controller

    JP1990206382A

  • IPT system Anti-offset parameter optimization method and system and computer device

    WO2022127462A1

Cited By

  • Online parameter self-optimization method for network-building converter

    CN121485505A

  • A method for automatically adjusting inductance compensation of current loop control parameters of an inverter

    CN122890839A