Battery charging control method and device, vehicle and medium

By dividing the charging interval and using an optimization function to determine the minimum value of the battery charging control method, the problem of low efficiency in determining the charging time is solved, and the effect of quickly calculating the shortest charging time is achieved.

CN119928661BActive Publication Date: 2026-08-04GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGZHOU AUTOMOBILE GROUP CO LTD
Filing Date
2025-01-15
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

In existing technologies, the determination of charging time is inefficient, and the shortest charging time cannot be accurately calculated. Furthermore, as the charging order increases, the sample size of orthogonal experiments increases significantly.

Method used

By determining multiple charging orders and target state of charge (SOC) intervals, a set of charging intervals is divided, and an optimization function is used to determine the minimum value. This is combined with charging boundary capabilities to control battery charging, replacing traditional orthogonal experiments.

Benefits of technology

It improves the efficiency of determining the shortest charging time for batteries, and the more charging stages there are, the more obvious the effect. It can quickly calculate and compare the shortest charging time for different charging stages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119928661B_ABST
    Figure CN119928661B_ABST
Patent Text Reader

Abstract

The application discloses a battery charging control method and device, a vehicle and a medium, and relates to the technical field of vehicles. The method comprises the following steps: determining a plurality of charging steps and a target soc interval, wherein the charging steps are at least one; determining a plurality of charging interval sets according to the charging steps and the target soc interval, wherein the charging interval set comprises at least one charging interval; determining a corresponding target function according to the charging boundary capability and each charging interval set; determining the minimum value of the plurality of target functions based on the optimization function, and determining a target charging interval set according to the minimum value; and performing charging control on the battery according to the target charging interval set and the charging boundary capability corresponding to each charging interval in the target charging interval set. The control method can replace the orthogonal experiment, improve the determination efficiency of the shortest charging time of the battery, and the more the charging steps are, the more obvious the effect is. Not only can the shortest charging time be calculated, but also the shortest charging times of different charging steps can be compared quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle technology, and in particular to a battery charging control method, a battery charging control device, a computer-readable storage medium, and a vehicle. Background Technology

[0002] In related technologies, given the determined charging boundary capabilities and charging strategies, it is sufficient to calculate whether the charging time meets the requirements, but it is impossible to determine whether the charging time that meets the requirements is the shortest. Furthermore, as the charging order increases, the sample size of the orthogonal experiment increases significantly. Summary of the Invention

[0003] This application aims to at least partially address one of the technical problems in related technologies. To this end, the first objective of this application is to propose a battery charging control method. The method includes determining multiple charging orders and a target state of charge (SOC) interval, where the charging order is at least 1; determining multiple sets of charging intervals based on the charging order and the target SOC interval, each set including at least one charging interval; determining a corresponding objective function based on the charging boundary capability and each set of charging intervals; determining the minimum value of the multiple objective functions based on the optimization function, and determining the target charging interval set based on the minimum value; and controlling the battery charging based on the target charging interval set and the charging boundary capability corresponding to each charging interval in the target charging interval set. The control method of this application can replace orthogonal experiments, improving the efficiency of determining the shortest charging time for the battery. The effect is more pronounced with more charging orders, and it can not only calculate the shortest charging time but also quickly compare the shortest charging times for different charging orders.

[0004] The second objective of this application is to provide a battery charging control device.

[0005] The third objective of this application is to provide a computer-readable storage medium.

[0006] The fourth objective of this application is to propose a vehicle.

[0007] To achieve the above objectives, a first aspect of this application proposes a battery charging control method, the method comprising: determining multiple charging orders and target state of charge (SOC) intervals, wherein the charging order is at least 1; determining multiple charging interval sets based on the charging order and target SOC interval, wherein each charging interval set includes at least one charging interval; determining a corresponding objective function based on the charging boundary capability and each charging interval set; determining the minimum value of the multiple objective functions based on the optimization function, and determining a target charging interval set based on the minimum value; and performing battery charging control based on the target charging interval set and the charging boundary capability corresponding to each charging interval in the target charging interval set.

[0008] According to one embodiment of this application, the optimization function includes constraints, wherein the constraints include inequality constraints and equality constraints.

[0009] According to one embodiment of this application, each charging interval includes a first upper boundary and a first lower boundary. The method further includes: determining that the inequality constraint condition is satisfied when the difference between the first lower boundary and the first upper boundary of each charging interval is less than or equal to a first preset value.

[0010] According to one embodiment of this application, the target SOC interval includes a second upper boundary and a second lower boundary. The method further includes: obtaining a first difference between the first upper boundary of the last charging interval in the charging interval set and the first lower boundary of the first charging interval in the charging interval set; obtaining a second difference between the second upper boundary of the target SOC interval and the second lower boundary of the target SOC interval; and determining that the equality constraint condition is satisfied when the first difference and the second difference are equal.

[0011] According to one embodiment of this application, determining multiple charging interval sets based on the charging order and the target SOC interval includes: randomly generating multiple SOC point sets based on the charging order and the target SOC interval, wherein the number of SOC points in the SOC point set is the sum of the charging order and a second preset value, wherein the second preset value is 1; and determining multiple charging interval sets based on the multiple SOC point sets.

[0012] According to one embodiment of this application, the above method further includes: determining the charging boundary capability corresponding to each charging interval in the charging interval set by interpolation calculation based on the charging boundary capability and the set of SOC points.

[0013] According to one embodiment of this application, the optimization function is the fmincon function.

[0014] To achieve the above objectives, a second aspect of this application provides a battery charging control device, comprising: a first determining module for determining multiple charging orders and target state of charge (SOC) intervals, wherein the charging order is at least 1; a second determining module for determining multiple charging interval sets based on the charging orders and target SOC intervals, wherein each charging interval set includes at least one charging interval; a third determining module for determining a corresponding objective function based on the charging boundary capability and each charging interval set; a fourth determining module for determining the minimum value of multiple objective functions based on the optimization function, and determining the target charging interval set based on the minimum value; and a control module for controlling the battery charging based on the target charging interval set and the charging boundary capability corresponding to each charging interval in the target charging interval set.

[0015] To achieve the above objectives, a third aspect of this application provides a computer-readable storage medium storing a battery charging control program thereon, which, when executed by a processor, implements the aforementioned battery charging control method.

[0016] To achieve the above objectives, a fourth aspect of this application provides a vehicle including a memory, a processor, and a battery charging control program stored in the memory and executable on the processor. When the processor executes the battery charging control program, it implements the aforementioned battery charging control method.

[0017] According to the battery charging control method, apparatus, vehicle, and medium of this application embodiment, multiple charging orders and target state of charge (SOC) intervals are determined, with the charging order being at least 1; multiple charging interval sets are determined based on the charging order and target SOC intervals, each charging interval set including at least one charging interval; a corresponding objective function is determined based on the charging boundary capability and each charging interval set; the minimum value of multiple objective functions is determined based on the optimization function, and a target charging interval set is determined based on the minimum value; and battery charging control is performed based on the target charging interval set and the charging boundary capability corresponding to each charging interval in the target charging interval set. The control method of this application can replace orthogonal experiments, improving the efficiency of determining the shortest battery charging time, and the effect is more significant with more charging orders. It can not only calculate the shortest charging time but also quickly compare the shortest charging times of different charging orders. Attached Figure Description

[0018] Figure 1 This is a flowchart of a battery charging control method according to some embodiments of this application;

[0019] Figure 2 This is a schematic diagram of the charging boundary capability curve according to some embodiments of this application;

[0020] Figure 3 This is a flowchart of a battery charging control method according to other embodiments of this application;

[0021] Figure 4 A block diagram of a battery charging control device according to some embodiments of this application;

[0022] Figure 5 This is a block diagram of a vehicle according to some embodiments of this application. Detailed Implementation

[0023] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0024] The charging control method, apparatus, vehicle, and medium of the battery according to embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0025] Figure 1 This is a flowchart of a battery charging control method according to some embodiments of this application. (Refer to...) Figure 1 The battery charging control method of this application embodiment may include the following steps:

[0026] S110, determine multiple charging stages and target SOC ranges, with the charging stage being at least 1.

[0027] Specifically, the target SOC range refers to the range of battery capacity from the initial SOC value to the target SOC value during the charging process. For example, the target SOC range can be [0%-100%], meaning the current charging goal is to charge the battery from 0% to 100%. The charging order divides the target SOC range into several consecutive charging intervals during the battery charging process. For example, if the charging order is 3, then the target SOC range is divided into 3 charging intervals.

[0028] S120, determine multiple sets of charging intervals based on the charging order and the target SOC interval, wherein each set of charging intervals includes at least one charging interval.

[0029] For example, in the following description, the target SOC range is [0%-100%] and the charging stage is 3, but this is not intended to limit the scope of this application. When the charging stage is 3, the target SOC range [0%-100%] can be divided into multiple charging range sets, such as charging range set 1, charging range set 2, ..., charging range set n. Each charging range set contains 3 charging ranges. For example, charging range set 1 contains charging range 11, charging range 12 and charging range 13, charging range set 2 contains charging range 21, charging range 22 and charging range 23, and charging range set n contains charging range n1, charging range n2 and charging range n3.

[0030] It should be noted that when the charging order is 1, the target SOC range [0%-100%] can be divided into a set of charging ranges, which includes one charging range.

[0031] S130, determine the corresponding objective function based on the charging boundary capability and the set of each charging interval.

[0032] Specifically, refer to Figure 2 The charging boundary capability can be pre-calibrated according to actual conditions, and different charging rates correspond to different charging boundary capabilities. The objective function for each charging interval set is the sum of the charging times of each charging interval in that set. The charging time of a charging interval can be determined by the ratio of the difference between the upper and lower boundaries of the charging interval to the charging rate of that charging interval, where the charging rate of the charging interval is determined based on the charging boundary capability corresponding to that charging interval.

[0033] For example, when the charging order is 3, let's take the determination of the objective function of charging interval set 1 as an example. Charging interval set 1 includes charging interval 11, charging interval 12, and charging interval 13. Assume that charging interval 11 is [0, 20%], and the difference between its upper and lower boundaries is 20%; charging interval 12 is (20%, 80%), and the difference between its upper and lower boundaries is 60%; charging interval 13 is (80%, 100%), and the difference between its upper and lower boundaries is 20%. Based on the charging boundary capabilities, the charging rate of charging interval 11 can be determined as a, the charging rate of charging interval 12 as b, and the charging rate of charging interval 13 as c. Then, the objective function of charging interval set 1 is as follows:

[0034]

[0035] It should be noted that multiplying by 60 means that the charging time is in minutes, while multiplying by 3600 means that the charging time is in seconds.

[0036] S140, determine the minimum value of multiple objective functions based on the optimization function, and determine the set of target charging intervals based on the minimum value.

[0037] Specifically, multiple charging orders can be set within the target SOC interval. By finding the minimum value of the objective function based on the optimization function, the target charging order set within the target SOC interval can be determined. The target charging interval set found among the multiple charging interval sets corresponding to the target charging order can minimize the objective function, i.e., minimize the charging time.

[0038] S150, performs charging control on the battery based on the target charging interval set and the charging boundary capability corresponding to each charging interval in the target charging interval set.

[0039] Specifically, after determining the target charging set, multiple charging intervals can be defined to divide the target SOC range, and the charging boundary capabilities corresponding to each charging interval can be determined. During the charging process, the charging boundary capability corresponding to a charging interval can be determined by querying a two-dimensional mapping table between the charging interval and the charging boundary capability. This two-dimensional mapping table includes multiple charging intervals and the charging boundary capability corresponding to each charging interval. Then, the battery charging is controlled according to the charging interval and its corresponding charging boundary capability to minimize the battery charging time.

[0040] The control method of this application can replace orthogonal experiments, improve the efficiency of determining the shortest charging time of the battery, and the more charging stages there are, the more obvious the effect. It can not only calculate the shortest charging time, but also quickly compare the shortest charging time of different charging stages.

[0041] In some embodiments, the optimization function includes constraints, wherein the constraints include inequality constraints and equality constraints.

[0042] In some embodiments, each charging interval includes a first upper boundary and a first lower boundary. The method further includes: determining that an inequality constraint condition is satisfied if the difference between the first lower boundary and the first upper boundary of each charging interval is less than or equal to a first preset value. The first preset value is 0.

[0043] Specifically, when using optimization functions to find the minimum value of the objective function, inequality constraints must be satisfied.

[0044] For example, suppose the charging interval set 1 includes charging interval 11, charging interval 12 and charging interval 13. Charging interval 11 is [0%, 20%], charging interval 12 is (20%, 80%], and charging interval 13 is (80%, 100%). The difference between the first lower boundary and the first upper boundary of charging interval 11 is -20%, the difference between the first lower boundary and the first upper boundary of charging interval 12 is -60%, and the difference between the first lower boundary and the first upper boundary of charging interval 13 is -20%. It can be seen that all three differences are less than or equal to 0, so the inequality constraint condition is satisfied.

[0045] Thus, by setting the above inequality constraints, the charging interval corresponding to the shortest charging time obtained by the optimization function can be within a reasonable range, and the search process of the optimization function can be made more orderly, which helps the optimization function converge to the optimal solution more quickly.

[0046] In some embodiments, the target SOC interval includes a second upper boundary and a second lower boundary, and the method further includes: obtaining a first difference between the first upper boundary of the last charging interval in the charging interval set and the first lower boundary of the first charging interval in the charging interval set; obtaining a second difference between the second upper boundary of the target SOC interval and the second lower boundary of the target SOC interval; and determining that the equality constraint condition is satisfied if the first difference and the second difference are equal.

[0047] Specifically, when using optimization functions to find the minimum value of the objective function, equality constraints must also be satisfied.

[0048] For example, suppose the target soc interval is [0%-100%], the second upper boundary of the target soc interval is 100%, the second lower boundary of the target soc interval is 0%, and the second difference between the second upper boundary and the second lower boundary of the target soc interval is 100%.

[0049] Assume that charging interval set 1 includes charging interval 11, charging interval 12, and charging interval 13. Charging interval 11 is [0, 20%], charging interval 12 is (20%, 80%], and charging interval 13 is (80%, 100%). The last charging interval in charging interval set 1 is charging interval 13, whose first upper boundary is 100%. The first charging interval in charging interval set 1 is charging interval 11, whose first lower boundary is 0%. The first difference between the first upper boundary of charging interval 13 and the first lower boundary of charging interval 11 is 100%. Therefore, the first difference (100%) is equal to the second difference (100%), which confirms that the equality constraint condition is satisfied.

[0050] Thus, by setting the above-mentioned equality constraints, it can be ensured that the entire charging process matches the changes in the charging interval and the target SOC interval. To a certain extent, this avoids the problem of unstable solution results caused by the optimization function jumping between unreasonable combinations of charging intervals and target SOC intervals, thereby improving the stability of the solution and thus improving the overall performance and reliability of the charging system.

[0051] In some embodiments, determining multiple sets of charging intervals based on the charging order and the target SOC interval includes: randomly generating multiple sets of SOC points based on the charging order and the target SOC interval, wherein the number of SOC points in the SOC point set is the sum of the charging order and a second preset value, wherein the second preset value is 1; and determining multiple sets of charging intervals based on the multiple sets of SOC points.

[0052] Specifically, after determining the charging order, the number of SOC points can be determined based on the charging order. For example, if the charging order is determined to be 3, then the number of SOC points can be determined to be 4. That is to say, the set of randomly generated SOC points within the target SOC interval can be SOC point set 1, SOC point set 2, ..., SOC point set n. Each SOC point set includes 4 SOC points. For example, SOC point set 1 includes SOC11, SOC12, SOC13, and SOC14; SOC point set 2 includes SOC21, SOC22, SOC23, and SOC24; and SOC point set n includes SOC1, SOC2, SOC3, and SOC4.

[0053] For example, assuming the target soc range is [0%-100%], and soc point set 1 has soc11 at 0%, soc12 at 20%, soc13 at 80%, and soc14 at 100%, then charging interval set 1 can be determined based on soc point set 1. Charging interval 11 of charging interval set 1 is [soc11, soc12], charging interval 12 is (soc12, soc13], and charging interval 13 is (soc13, soc14).

[0054] In some embodiments, the method further includes: determining the charging boundary capability corresponding to each charging interval in the charging interval set by interpolation calculation based on the charging boundary capability and the set of SOC points.

[0055] Specifically, interpolation calculations can be linear interpolation, polynomial interpolation, Lagrange interpolation, etc., without further limitations. For example, refer to... Figure 2 The charging boundary capability of each charging interval in the charging interval set corresponding to SOC point set 1 is different from that of each charging interval in the charging interval set corresponding to SOC point set 2, and their corresponding charging rates are also different.

[0056] In this way, by interpolating the charging boundary capability to correspond to the charging range, the appropriate charging boundary capability can be accurately determined for each charging range, adapting to changes in battery characteristics and improving the safety and stability of the charging process.

[0057] In some embodiments, the optimization function is the fmincon function.

[0058] Specifically, when the optimization function is fmincon, the inequality constraint is A·x≤b, and the equality constraint is Aeq·x=beq.

[0059] For example, taking a charging stage of 3 as an example, then A is... x is b is Aeq is [-1 0 0 1], and beq is the second difference between the second upper boundary and the second lower boundary of the target soc interval.

[0060] In other words, the following formula can be determined based on A·x≤b:

[0061]

[0062] soc11-soc12≤0

[0063] soc12-soc13≤0

[0064] soc13-soc14≤0

[0065] Based on Aeq·x=beq, the following formula can be determined:

[0066]

[0067] soc14-soc11 = Second difference

[0068] Therefore, using the fmincon function as the optimization function to solve for the shortest charging time has low hardware resource requirements, fast solution speed, and good repeatability.

[0069] As a specific example, refer to Figure 3 The battery charging control method may also include the following steps:

[0070] S301, Begin.

[0071] S302, set the charging stage n and the target SoC range.

[0072] S303, randomly generate n+1 soc points and sort them.

[0073] S304 introduces charging boundary capability (charging rate in different SoC ranges).

[0074] S305 sets equality and inequality constraints related to the SOC point.

[0075] S306, set the charging time as the objective function.

[0076] S307 calls fmincon to calculate charging time.

[0077] S308, determine if the charging time is stable. If yes, proceed to S309; ​​otherwise, proceed to S303.

[0078] S309, End.

[0079] In summary, the control method of this application can replace orthogonal experiments, improve the efficiency of determining the shortest charging time of the battery, and the more charging stages there are, the more obvious the effect. It can not only calculate the shortest charging time, but also quickly compare the shortest charging time of different charging stages.

[0080] Corresponding to the above embodiments, this application also proposes a battery charging control device.

[0081] Reference Figure 4 The battery charging control device 400 includes: a first determining module 410, a second determining module 420, a third determining module 430, a fourth determining module 440, and a control module 450.

[0082] The first determining module 410 is used to determine multiple charging orders and target SOC intervals, where the charging order is at least 1. The second determining module 420 is used to determine multiple sets of charging intervals based on the charging orders and target SOC intervals, where each set includes at least one charging interval. The third determining module 430 is used to determine a corresponding objective function based on the charging boundary capability and each set of charging intervals. The fourth determining module 440 is used to determine the minimum value of multiple objective functions based on the optimization function, and to determine the target charging interval set based on the minimum value. The control module 450 is used to control the battery charging based on the target charging interval set and the charging boundary capability corresponding to each charging interval in the target charging interval set.

[0083] According to one embodiment of this application, the optimization function includes constraints, wherein the constraints include inequality constraints and equality constraints.

[0084] According to one embodiment of this application, each charging interval includes a first upper boundary and a first lower boundary. If the difference between the first lower boundary and the first upper boundary of each charging interval is less than or equal to a first preset value, it is determined that the inequality constraint condition is satisfied.

[0085] According to one embodiment of this application, the target SOC interval includes a second upper boundary and a second lower boundary. A first difference is obtained between the first upper boundary of the last charging interval in the charging interval set and the first lower boundary of the first charging interval in the charging interval set; a second difference is obtained between the second upper boundary of the target SOC interval and the second lower boundary of the target SOC interval; if the first difference and the second difference are equal, it is determined that the equality constraint condition is satisfied.

[0086] According to one embodiment of this application, the second determining module is specifically used to: randomly generate multiple sets of SOC points based on the charging order and the target SOC interval, wherein the number of SOC points in the SOC point set is the sum of the charging order and a second preset value, wherein the second preset value is 1; and determine multiple sets of charging intervals based on the multiple sets of SOC points.

[0087] According to one embodiment of this application, the charging boundary capability corresponding to each charging interval in the charging interval set is determined by interpolation calculation based on the charging boundary capability and the set of SOC points.

[0088] According to one embodiment of this application, the optimization function is the fmincon function.

[0089] It should be noted that the above-described embodiments and explanations of the beneficial effects of the battery charging control method also apply to the battery charging control device of the present application embodiments. To avoid redundancy, they will not be elaborated in detail here.

[0090] Corresponding to the above embodiments, this application also proposes a computer-readable storage medium.

[0091] The computer-readable storage medium of this application stores a battery charging control program thereon, which, when executed by a processor, implements the aforementioned battery charging control method.

[0092] It should be noted that the above-described embodiments and explanations of the beneficial effects of the battery charging control method are also applicable to the computer-readable storage medium of the embodiments of this application. To avoid redundancy, they will not be elaborated in detail here.

[0093] Corresponding to the above embodiments, this application also proposes a vehicle.

[0094] See Figure 5 As shown, the vehicle 500 of this application includes a memory 510, a processor 520, and a battery charging control program stored in the memory 510 and executable on the processor 520. When the processor executes the battery charging control program, it implements the aforementioned battery charging control method.

[0095] It should be noted that the above-described embodiments and explanations of the beneficial effects of the battery charging control method are also applicable to the vehicles described in the embodiments of this application. To avoid redundancy, they will not be elaborated in detail here.

[0096] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0097] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0098] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0099] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0100] In this application, unless otherwise expressly specified and limited, the terms "installation," "connection," "joining," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise expressly limited. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0101] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.

Claims

1. A method for controlling the charging of a battery, characterized in that, The method includes: Multiple charging orders and target SOC ranges are determined, wherein the charging order is at least 1; Multiple sets of charging intervals are determined based on the charging order and the target SOC interval, and the sets of charging intervals include at least one charging interval. A corresponding objective function is determined based on the charging boundary capability and each set of charging intervals; the objective function is the sum of the charging times of each charging interval in the set of charging intervals; the charging boundary capability is the charging rate of the charging interval. The minimum value of multiple objective functions is determined based on the optimization function, and the set of target charging intervals is determined based on the minimum value; The battery is charged according to the target charging interval set and the charging boundary capability corresponding to each charging interval in the target charging interval set; Multiple sets of charging intervals are determined based on the charging order and the target SOC interval, including: Multiple sets of SOC points are randomly generated based on the charging order and the target SOC interval. The number of SOC points in each SOC point set is the sum of the charging order and a second preset value, where the second preset value is 1. Multiple sets of charging intervals are determined based on the multiple sets of SOC points. The charging boundary capability corresponding to each charging interval in the charging interval set is determined by interpolation calculation based on the charging boundary capability and the set of SOC points.

2. The battery charging control method according to claim 1, characterized in that, The optimization function includes constraints, which include inequality constraints and equality constraints.

3. The battery charging control method according to claim 2, characterized in that, Each of the charging intervals includes a first upper boundary and a first lower boundary, and the method further includes: If the difference between the first lower boundary and the first upper boundary of each charging interval is less than or equal to a first preset value, the inequality constraint condition is determined to be satisfied.

4. The battery charging control method according to claim 3, characterized in that, The target soc interval includes a second upper boundary and a second lower boundary, and the method further includes: Obtain the first difference between the first upper boundary of the last charging interval in the charging interval set and the first lower boundary of the first charging interval in the charging interval set; Obtain the second difference between the second upper boundary of the target soc interval and the second lower boundary of the target soc interval; If the first difference is equal to the second difference, the equality constraint condition is determined to be satisfied.

5. The battery charging control method according to claim 1, characterized in that, The optimization function is the fmincon function.

6. A battery charging control device, characterized in that, The device includes: The first determining module is used to determine multiple charging stages and a target SOC range, wherein the charging stage is at least 1; The second determining module is used to determine a set of multiple charging intervals based on the charging order and the target SOC interval, wherein the set of charging intervals includes at least one charging interval. The third determining module is used to determine a corresponding objective function based on the charging boundary capability and each set of charging intervals; the objective function is the sum of the charging times of each charging interval in the set of charging intervals; the charging boundary capability is the charging rate of the charging interval; The fourth determining module is used to determine the minimum value of multiple objective functions based on the optimization function, and to determine the target charging interval set based on the minimum value; The control module is used to control the charging of the battery based on the target charging range set and the charging boundary capability corresponding to each charging range in the target charging range set; The second determining module is specifically used to: randomly generate multiple sets of SOC points based on the charging order and the target SOC interval, wherein the number of SOC points in the SOC point set is the sum of the charging order and a second preset value, wherein the second preset value is 1; and determine multiple sets of charging intervals based on the multiple sets of SOC points. The charging boundary capability corresponding to each charging interval in the charging interval set is determined by interpolation calculation based on the charging boundary capability and the set of SOC points.

7. A computer-readable storage medium, characterized in that, It stores a battery charging control program, which, when executed by a processor, implements the battery charging control method according to any one of claims 1-5.

8. A vehicle, characterized in that, The method includes a memory, a processor, and a battery charging control program stored in the memory and executable on the processor. When the processor executes the battery charging control program, it implements the battery charging control method according to any one of claims 1-5.