Modeling method based on fractional order equivalent circuit
By establishing a second-order equivalent battery model based on the fractional-order equivalent circuit modeling method and using the fractional-order Kalman filtering method, the accuracy problem of lithium-ion battery SOC estimation is solved, and the accuracy and battery life prediction of the battery management system are improved. ability.
Patent Information
- Application Number
- CN202410205846.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-26
- Publication Date
- 2024-08-30
AI Technical Summary
It is difficult to accurately estimate the state of charge (SOC) of lithium-ion power batteries with existing technology, which affects the battery service life and vehicle control performance. Moreover, the accuracy of power battery modeling is insufficient, which affects driving range prediction.
A modeling method based on fractional-order equivalent circuit is adopted, by establishing a second-order equivalent battery model, using genetic algorithm to optimize model parameters, and combining stochastic theory and G-L definition for discretization and differential description, and finally using fractional-order Kalman filtering method to estimate Battery status variable.
It improves the accuracy of lithium-ion battery SOC estimation, extends battery life, reduces the risk of safety accidents, and achieves accurate prediction of cruising range.
Smart Images

Figure CN118566740A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit modeling, and in particular to a modeling method based on fractional-order equivalent circuit. Background Art
[0002] The state of charge (SOC) estimation of on-board lithium-ion power batteries has always been the core of battery management systems. SOC is the main parameter reflecting the operating status of the battery and can provide a basis for the vehicle control strategy. Its accurate estimation can extend the service life of the battery pack and is of great significance to the improvement of the vehicle control performance and the prediction of driving range. At the same time, establishing an accurate lithium-ion battery equivalent circuit model can effectively improve the estimation accuracy of SOC. Modeling of power batteries is an indispensable part of electric vehicle power system analysis and control, and it is also one of the difficulties in power system control. Summary of the invention
[0003] The object of the present invention is to provide a modeling method based on a fractional-order equivalent circuit to solve the problems raised in the above background technology.
[0004] To achieve the above object, the present invention provides the following technical solution: a modeling method based on a fractional-order equivalent circuit, comprising the following steps:
[0005] S1. Establish a fractional-order battery model based on a second-order equivalent circuit, and optimize the order of the fractional-order battery model through a genetic algorithm;
[0006] S2, discretize the fractional-order battery model according to stochastic theory;
[0007] S3. Based on the GL definition, the discretized fractional-order battery model is described by fractional-order differentials, and the fractional-order battery model is described by discrete equations based on the fractional-order differential description, where the GL definition is as follows:
[0008]
[0009]
[0010] in, represents fractional calculus operation, α and t represent the upper and lower limits of integration respectively, h represents the step size, and r represents the fractional order;
[0011] S4. The fractional-order Kalman filtering method is used to estimate the state variables of the battery based on the fractional-order battery model described by fractional-order differential description and discrete equation description.
[0012] Preferably, in step S1, establishing a fractional-order battery model based on a second-order equivalent circuit comprises the following steps:
[0013] S101. Calculate the terminal current and the voltage across the battery internal resistance according to Thevenin's theorem, where the terminal current expression is as follows:
[0014]
[0015] Wherein, I represents the terminal current, C1 represents the first polarized capacitor, D represents the fractional calculus operation, V1 represents the voltage division at the parallel connection of the first polarized resistor and the first polarized capacitor, R1 represents the first polarized resistor, C2 represents the second polarized capacitor, V2 represents the voltage division at the parallel connection of the second polarized resistor and the second polarized capacitor, and R2 represents the second polarized resistor;
[0016] The voltage expression across the battery internal resistance is as follows:
[0017] R -IR
[0018] Among them, V R Represents the voltage across the battery’s internal resistance, and R represents the battery’s internal resistance;
[0019] S102. The method of combining the Shepherd model and the Nerst model approximately describes the relationship between the battery open circuit voltage and the SOC, wherein the relationship between the battery open circuit voltage and the battery state variable is expressed as follows:
[0020]
[0021] Among them, V ocv represents the open circuit voltage of the battery, k0, k1, k2, k3 represent the parameters to be optimized, and SOC represents the state variable of the battery;
[0022] S103, optimizing the parameters k0, k1, k2, k3 in step S102 by using a genetic algorithm, wherein the genetic algorithm includes the following steps:
[0023] Step 1: Chromosome encoding;
[0024] Step 2: Initialization is performed for a number of times T=0;
[0025] Step 3: Initialize the group;
[0026] Step 4: Calculate the fitness value of each individual;
[0027] Step 5: Copy the operator;
[0028] Step 6: Crossover operator;
[0029] Step 7: Mutation operator;
[0030] Step 8: Form a new generation of groups;
[0031] Step 9: Determine whether the convergence condition is met. If so, end the process. Otherwise, increase the number of purification times and execute step 4.
[0032] S104, construct a circuit fractional-order model by combining the terminal current, the voltage across the battery internal resistance, and the relationship between the battery open-circuit voltage and the battery state variable, wherein the circuit fractional-order model is as follows:
[0033] V0=V OCV -V R -V1-V2
[0034]
[0035] Among them, V0 represents the terminal voltage, Q N Indicates the battery capacity;
[0036] S105. Construct a state space equation of a battery fractional-order model based on the circuit fractional-order model, wherein the state space equation of the battery fractional-order model is as follows:
[0037]
[0038]
[0039]
[0040] n=[1 n1 n2] T x=[SOC V1 V2] T y=[V0]
[0041]
[0042] Preferably, in step S2, the fractional-order battery model is discretized according to stochastic theory, wherein the discretized fractional-order battery model is as follows:
[0043]
[0044] Among them, I k represents the battery terminal current input at time k, y k represents the battery terminal voltage output at time k, w k represents the process noise in the state space, υ k represents the measurement noise in the state space, x k and x k+1 Represents the state variables of x at time k and time k+1, and x=[SOC,V1,V2].
[0045] Preferably, in step S3, a fractional-order differential description is performed on the discretized fractional-order battery model based on the GL definition, and a discrete equation description is performed on the fractional-order battery model based on the fractional-order differential description, wherein the fractional-order differential description is as follows:
[0046]
[0047] Among them, T s represents the system sampling time, and T s =0.1s;
[0048] The discrete equation is described as follows:
[0049]
[0050]
[0051]
[0052] Preferably, the step S4, estimating the state variables of the battery using a fractional-order Kalman filtering method according to a fractional-order battery model described by fractional-order differentials and discrete equations, comprises the following steps:
[0053] S401, assuming the estimated value of the initial state and the covariance of the initial state error, where the estimated value of the initial state is expressed as follows:
[0054]
[0055] The covariance expression of the initial state error is as follows:
[0056]
[0057] in, represents the estimated value of the initial state, P0 represents the covariance of the initial state error, and E[·] represents the expected value;
[0058] S402, the state and error covariance matrix at time k is updated in time by the state and error covariance matrix at time k-1, and the expression is as follows:
[0059]
[0060]
[0061] S403, using the measured output value at time k to measure and update the state and error covariance matrix, the expression is as follows:
[0062]
[0063] P k=(IL k C)P k|k-1
[0064] in, and They are respectively expressed as the estimated matrices of the state and state error covariance at time k based on the first k-1 data, L k represents the Kalman gain matrix, and L k =P k|k-1 C T (CP k|k-1 C T +R k-1 ).
[0065] Compared with the prior art, the present invention has the following beneficial effects:
[0066] 1. The fractional-order model based on the second-order equivalent circuit and the fractional-order Kalman filter algorithm proposed in the present invention not only provide an accurate and reliable modeling method, but also provide a way to effectively improve the accuracy of SOC estimation in the battery management system;
[0067] 2. The present invention solves the problems of accuracy in modeling power batteries and monitoring state of charge of new energy vehicles, prolongs battery life, reduces the risk of safety accidents, and can more accurately predict the range. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 A schematic diagram of the overall method provided by an embodiment of the present invention;
[0069] Figure 2 A flowchart of step S1 provided in an embodiment of the present invention;
[0070] Figure 3 A flowchart of step S4 provided in an embodiment of the present invention;
[0071] Figure 4 A flowchart of a genetic algorithm provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0072] 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.
[0073] See also Figure 1-4 The present invention provides a technical solution: a modeling method based on a fractional-order equivalent circuit, comprising the following steps:
[0074] S1. Establish a fractional-order battery model based on a second-order equivalent circuit, and optimize the order of the fractional-order battery model through a genetic algorithm;
[0075] See also Figure 4 In this embodiment, the genetic algorithm includes the following steps:
[0076] Step 1: Chromosome encoding;
[0077] Step 2: Initialization is performed for a number of times T=0;
[0078] Step 3: Initialize the group;
[0079] Step 4: Calculate the fitness value of each individual;
[0080] Step 5: Copy the operator;
[0081] Step 6: Crossover operator;
[0082] Step 7: Mutation operator;
[0083] Step 8: Form a new generation of groups;
[0084] Step 9: Determine whether the convergence condition is met. If so, end the process. Otherwise, increase the number of purification times and execute step 4.
[0085] S2, discretize the fractional-order battery model according to stochastic theory;
[0086] S3. Based on the GL definition, a fractional-order differential description is performed on the discretized fractional-order battery model, and a discrete equation description is performed on the fractional-order battery model based on the fractional-order differential description;
[0087] In this embodiment, GL is defined as follows:
[0088]
[0089]
[0090] in, represents fractional calculus operation, α and t represent the upper and lower limits of integration respectively, h represents the step size, and r represents the fractional order;
[0091] S4. The fractional-order Kalman filtering method is used to estimate the state variables of the battery based on the fractional-order battery model described by fractional-order differential description and discrete equation description.
[0092] In step S1, a fractional-order battery model based on a second-order equivalent circuit is established, including the following steps:
[0093] S101. Calculate the terminal current and the voltage across the battery internal resistance according to Thevenin's theorem, where the terminal current expression is as follows:
[0094]
[0095] Wherein, I represents the terminal current, C1 represents the first polarized capacitor, D represents the fractional calculus operation, V1 represents the voltage division at the parallel connection of the first polarized resistor and the first polarized capacitor, R1 represents the first polarized resistor, C2 represents the second polarized capacitor, V2 represents the voltage division at the parallel connection of the second polarized resistor and the second polarized capacitor, and R2 represents the second polarized resistor;
[0096] The voltage expression across the battery internal resistance is as follows:
[0097] t IR
[0098] Among them, V R Represents the voltage across the battery’s internal resistance, and R represents the battery’s internal resistance;
[0099] S102. The method of combining the Shepherd model and the Nerst model approximately describes the relationship between the battery open circuit voltage and the SOC, wherein the relationship between the battery open circuit voltage and the battery state variable is expressed as follows:
[0100]
[0101] Among them, V ocv represents the open circuit voltage of the battery, k0, k1, k2, k3 represent the parameters to be optimized, and SOC represents the state variable of the battery;
[0102] S103, optimizing the parameters k0, k1, k2, k3 in step S102 by using a genetic algorithm;
[0103] S104, construct a circuit fractional-order model by combining the terminal current, the voltage across the battery internal resistance, and the relationship between the battery open-circuit voltage and the battery state variable, wherein the circuit fractional-order model is as follows:
[0104] V0=V OCV -V R -V1-V2
[0105]
[0106] Among them, V0 represents the terminal voltage, Q N Indicates the battery capacity;
[0107] S105. Construct a state space equation of a battery fractional-order model based on the circuit fractional-order model, wherein the state space equation of the battery fractional-order model is as follows:
[0108]
[0109]
[0110]
[0111] n=[1 n1 n2] T x=[SOC V1 V2] T y=[V0]
[0112]
[0113] In step S2, the fractional-order battery model is discretized according to the stochastic theory, wherein the discretized fractional-order battery model is as follows:
[0114]
[0115] Among them, I k represents the battery terminal current input at time k, y k represents the battery terminal voltage output at time k, w k represents the process noise in the state space, υ k represents the measurement noise in the state space, x k and x k+1 represents the state variable x at time k and time k+1, and x=[SOC,V1,V2];
[0116] In step S3, a fractional-order differential description is performed on the discretized fractional-order battery model based on the GL definition, and a discrete equation description is performed on the fractional-order battery model based on the fractional-order differential description, wherein the fractional-order differential description is as follows:
[0117]
[0118] Among them, T s represents the system sampling time, and T s =0.1s;
[0119] The discrete equation is described as follows:
[0120]
[0121]
[0122]
[0123] Step S4, estimating the state variables of the battery using a fractional-order Kalman filter method according to a fractional-order battery model described by fractional-order differentials and discrete equations, including the following steps:
[0124] S401, assuming the estimated value of the initial state and the covariance of the initial state error, where the estimated value of the initial state is expressed as follows:
[0125]
[0126] The covariance expression of the initial state error is as follows:
[0127]
[0128] in, represents the estimated value of the initial state, P0 represents the covariance of the initial state error, and E[·] represents the expected value;
[0129] S402, the state and error covariance matrix at time k is updated in time by the state and error covariance matrix at time k-1, and the expression is as follows:
[0130]
[0131]
[0132] S403, using the measured output value at time k to measure and update the state and error covariance matrix, the expression is as follows:
[0133]
[0134] P k =(IL k C)P k|k-1
[0135] in, and They are respectively expressed as the estimated matrices of the state and state error covariance at time k based on the first k-1 data, L k represents the Kalman gain matrix, and L k =P k|k-1 C T (CP k|k-1 C T +R k-1 ).
[0136] Working principle: The present invention first establishes a fractional-order battery model based on a second-order equivalent circuit, uses a genetic algorithm to identify the order, and then uses a fractional-order Kalman filter algorithm to estimate the battery SOC. The fractional-order model based on the second-order equivalent circuit and the fractional-order Kalman filter algorithm proposed in the present invention not only provide an accurate and reliable modeling method, but also provide a way to effectively improve the accuracy of SOC estimation in the battery management system.
[0137] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0138] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A modeling method based on fractional-order equivalent circuit, characterized in that: The following steps are involved: S1. Establish a fractional-order battery model based on a second-order equivalent circuit, and optimize the order of the fractional-order battery model through a genetic algorithm; S2, discretize the fractional-order battery model according to stochastic theory; S3. Based on the GL definition, a fractional-order differential description is performed on the discretized fractional-order battery model, and a discrete equation description is performed on the fractional-order battery model based on the fractional-order differential description; S4. The fractional-order Kalman filtering method is used to estimate the state variables of the battery based on the fractional-order battery model described by fractional-order differential description and discrete equation description.
2. The fractional-order equivalent circuit modeling method according to claim 1, characterized in that: In step S1, establishing a fractional-order battery model based on a second-order equivalent circuit includes the following steps: S101. Calculate the terminal current and the voltage across the battery internal resistance according to Thevenin's theorem, where the terminal current expression is as follows: Wherein, I represents the terminal current, C1 represents the first polarized capacitor, D represents the fractional calculus operation, V1 represents the voltage division at the parallel connection of the first polarized resistor and the first polarized capacitor, R1 represents the first polarized resistor, C2 represents the second polarized capacitor, V2 represents the voltage division at the parallel connection of the second polarized resistor and the second polarized capacitor, and R2 represents the second polarized resistor; The voltage expression across the battery internal resistance is as follows: VR=IR Among them, V R Represents the voltage across the battery’s internal resistance, and R represents the battery’s internal resistance; S102. The method of combining the Shepherd model and the Nerst model approximately describes the relationship between the battery open circuit voltage and the SOC, wherein the relationship between the battery open circuit voltage and the battery state variable is expressed as follows: Among them, V ocv represents the open circuit voltage of the battery, k0, k1, k2, k3 represent the parameters to be optimized, and SOC represents the state variable of the battery; S103, optimizing the parameters k0, k1, k2, k3 in step S102 by using a genetic algorithm; S104, construct a circuit fractional-order model by combining the terminal current, the voltage across the battery internal resistance, and the relationship between the battery open-circuit voltage and the battery state variable, wherein the circuit fractional-order model is as follows: V0=V OCV -V R -V1-V2 Among them, V0 represents the terminal voltage, Q N Indicates battery capacity; S105. Construct a state space equation of a battery fractional-order model based on the circuit fractional-order model, wherein the state space equation of the battery fractional-order model is as follows: <h2 style=";text-align:left;direction:ltr">n=[1 n1 n2]<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> x=[SOC V1 V2]<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> y=[V0] D=[-R]。 3. The fractional-order equivalent circuit modeling method according to claim 2, characterized in that: In step S2, the fractional-order battery model is discretized according to the stochastic theory, wherein the discretized fractional-order battery model is as follows: Among them, I k represents the battery terminal current input at time k, y k represents the battery terminal voltage output at time k, w k represents the process noise in the state space, υ k represents the measurement noise in the state space, x k and x k+1 Represents the state variables of x at time k and time k+1, and x=[SOC,V1,V2].
4. The modeling method based on fractional-order equivalent circuit according to claim 1 is characterized in that: In the step S3, a fractional-order differential description is performed on the discretized fractional-order battery model based on the GL definition, and a discrete equation description is performed on the fractional-order battery model based on the fractional-order differential description, wherein the fractional-order differential description is as follows: Among them, T s represents the system sampling time, and T s =0.1s; The discrete equation is described as follows:
5. The modeling method based on fractional-order equivalent circuit according to claim 1, characterized in that: The step S4, estimating the state variables of the battery using a fractional-order Kalman filter method according to a fractional-order battery model described by fractional-order differentials and discrete equations, comprises the following steps: S401, assuming the estimated value of the initial state and the covariance of the initial state error, where the estimated value of the initial state is expressed as follows: The covariance expression of the initial state error is as follows: in, represents the estimated value of the initial state, P0 represents the covariance of the initial state error, and E[·] represents the expected value; S402, the state and error covariance matrix at time k is updated in time by the state and error covariance matrix at time k-1, and the expression is as follows: S403, using the measured output value at time k to measure and update the state and error covariance matrix, the expression is as follows: P k =(I-L k C)P k|k-1 in, and They are respectively expressed as the estimated matrices of the state and state error covariance at time k based on the first k-1 data, L k represents the Kalman gain matrix, and L k =P k|k-1 C T (CP k|k-1 C T +R k-1 ).
