Dual-mode charging method, system, device and medium for portable emergency power supply

By establishing a lithium battery status evaluation model and thermal safety margin constraints in the power emergency power supply, and using the starry sky evolution optimization algorithm to optimize the charging current, the problems of environmental pollution and low energy efficiency of the diesel generator are solved, and an efficient and environmentally friendly dual-use system is achieved. Mode charging to adapt to different charging needs.

CN118589663BActive Publication Date: 2024-10-22STATE GRID ZHEJIANG ELECTRIC POWER CO LTD HANGZHOU QIANTANG DISTRICT POWER SUPPLY CO +4
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411087720.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-10-22
Estimated Expiration
2044-08-09

AI Technical Summary

Technical Problem

Existing emergency power supplies for emergency repairs mainly use diesel generators, which have problems such as environmental pollution, low energy efficiency, high fuel reserve costs, and inconvenient transportation. There is an urgent need for an efficient, environmentally friendly, dual-mode charging method for portable emergency repair power supplies.

Method used

By establishing a lithium battery state evaluation model based on Kirchhoff's law, constructing dual-mode charging constraints considering thermal safety margin, using the starry sky evolution optimization algorithm to solve the lithium battery fast charging target optimization model, and obtaining each charging stage in the dual charging mode charging current to achieve fast charging and thermal safety management of lithium batteries.

Benefits of technology

This method improves the flexibility and reliability of the power supply, enables fast charging in emergencies, protects battery life under normal conditions, meets different charging needs, supports photovoltaic, vehicle-mounted and mains charging, and reduces environmental pollution and energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118589663B_ABST
    Figure CN118589663B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of electric power systems, and in particular to a dual-mode charging method, system, device and medium for a portable emergency power supply, including establishing a lithium battery state assessment model based on Kirchhoff's law, taking the shortest total charging time of all charging stages as the objective function, and constructing a dual-mode charging constraint condition considering the thermal safety margin to establish a lithium battery fast charging target optimization model; using a starry sky evolution optimization algorithm to solve the lithium battery fast charging target optimization model to obtain the charging current of the dual charging mode in each charging stage. The dual-mode charging method with thermal safety margin proposed in the present invention solves the charging current of each charging stage in the dual charging mode through the starry sky evolution optimization algorithm, and can meet different charging requirements in emergency and normal situations according to different charging requirements and safety boundaries, thereby achieving optimization and flexibility of the battery charging process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power systems, and in particular to a dual-mode charging method, system, device and medium for a portable emergency power supply. Background Art

[0002] When a sudden failure or natural disaster occurs in the power system, a portable emergency repair power supply is a device that can provide temporary power support for maintenance personnel or disaster-stricken people. It has the characteristics of strong mobility and easy operation. It can quickly respond to repair tasks, reduce the impact of power outages on social production and life, and ensure the stability and reliability of power supply.

[0003] At present, domestic power repair emergency power supplies mainly use diesel generators. Diesel generators have the advantages of large capacity, fast start-up and high stability, and have been widely used in the field of emergency power supply. However, there are still some defects in using diesel generators as power repair emergency power supplies. First, the use of diesel generators will produce a large amount of exhaust gas, wastewater and waste residue, which is not conducive to environmental protection; secondly, diesel generators use fossil energy as fuel, resulting in relatively low energy efficiency, which is not conducive to energy security; in addition, the fuel reserve cost is high and the transportation is inconvenient, which brings certain difficulties to the use and management. Therefore, there is an urgent need to provide a dual-mode charging method for an efficient and environmentally friendly portable emergency repair power supply. Summary of the invention

[0004] The purpose of the present invention is to provide a dual-mode charging method, system, device and medium for a portable emergency power supply, which solves the charging current of each charging stage under the dual charging mode through a starry sky evolution optimization algorithm to meet different charging needs in emergency and normal situations.

[0005] In order to solve the above technical problems, the present invention provides a dual-mode charging method, system, device and medium for a portable emergency power supply.

[0006] In a first aspect, the present invention provides a dual-mode charging method for a portable emergency power supply, the dual-mode charging method comprising the following steps:

[0007] Based on Kirchhoff's law, a lithium battery state evaluation model is established; the lithium battery state evaluation model includes a lithium battery equivalent circuit model and a battery thermal balance model;

[0008] Based on the lithium battery state assessment model, the shortest total charging time in all charging stages is taken as the objective function, and the dual-mode charging constraint condition considering the thermal safety margin is constructed to establish a lithium battery fast charging target optimization model;

[0009] The starry sky evolution optimization algorithm is used to solve the lithium battery fast charging target optimization model to obtain the charging current in each charging stage under the dual charging mode.

[0010] In a further embodiment, the objective function is specifically expressed as:

[0011]

[0012]

[0013]

[0014] In the formula, represents the objective function; represents the charging time of the i-th charging stage; represents the capacity to be charged in the i-th charging stage; represents the charging current of the i-th charging stage; represents the difference in battery state of charge between the i-th charging stage and the (i-1)-th charging stage; Indicates the total capacity of the battery; represents the battery state of charge at the i-th charging stage.

[0015] In a further embodiment, the dual-mode charging constraint condition considering the thermal safety margin includes a thermal safety margin constraint condition, a battery charging current constraint condition, and a battery open circuit voltage constraint condition, wherein the thermal safety margin constraint condition is specifically:

[0016]

[0017] in,

[0018]

[0019] The battery charging current constraint condition is specifically:

[0020]

[0021] The battery open circuit voltage constraint condition is specifically:

[0022]

[0023] In the formula, Indicates thermal safety boundary; Indicates the thermal runaway temperature of the lithium battery at time k; Indicates thermal safety margin; represents the thermal safety factor fitted at the i-th charging stage; represents the battery state of charge at the i-th charging stage; represents the bias term; represents the battery charging current at time k; , Respectively represent the minimum charging current and the maximum charging current; represents the open circuit voltage of the battery at time k; , Represent the minimum open circuit voltage and the maximum open circuit voltage respectively.

[0024] In a further embodiment, the step of using the starry sky evolution optimization algorithm to solve the lithium battery fast charging target optimization model to obtain the charging current of each charging stage in the dual charging mode includes:

[0025] Initialize the stars, determine the initial positions of the stars, and randomly generate a number of stars. Consider each star as a set of charging current target solutions, and consider the star brightness as the total charging time.

[0026] Calculate the current star brightness of each star at the current position according to the lithium battery fast charging target optimization model, and traverse each star in turn, and calculate the sum of the star brightness weighted distances between each star and the remaining stars according to the current star brightness;

[0027] Determine the new position of each star according to the sum of the star brightness weighted distances, and calculate the latest brightness value of each star at the new position according to the lithium battery fast charging target optimization model;

[0028] Compare the latest brightness value with the current brightness of the star, if the latest brightness value is higher than the current brightness of the star, move the star to a new position, otherwise keep the position of the star unchanged;

[0029] The above steps are repeated iteratively, and in each iterative search for the optimal charging current target solution, a preset number of stars are randomly selected to be discarded for iterative update operations until a preset iteration termination condition is reached.

[0030] In a further embodiment, the new position of each star is calculated as:

[0031]

[0032] in,

[0033]

[0034] In the formula, represents the new position of star x; Indicates the current position of star x; represents the current position of the jth star except star x; represents a vector randomly generated from a normal distribution; represents the sum of the star brightness weighted distances of star x; Indicates the current star brightness of star x at the current position; Indicates the current star brightness of the jth star except star x; represents the sign function; X represents the total number of stars.

[0035] In a further embodiment, the charging current of the randomly generated stars at each charging stage should satisfy:

[0036]

[0037] In the formula, represents the charging current of the xth star in the i-th charging stage; , Respectively represent the minimum charging current and the maximum charging current; Represents a random number between 0 and 1.

[0038] In a further embodiment, the portable emergency power supply includes a photovoltaic solar panel, a maximum power tracking module, a discharge gun, an AC / DC converter, a DC / DC converter, a lithium battery pack, a controller and a PWM output module; wherein the controller is used to control the dual-mode charging of the portable emergency power supply using the dual-mode charging method;

[0039] One end of the DC / DC converter is connected in parallel to the maximum power tracking module, the discharge gun and the AC / DC converter, and the other end of the DC / DC converter is connected in series with the lithium battery pack, the controller and the PWM output module in sequence to form a loop;

[0040] The other end of the maximum power tracking module is connected to the photovoltaic solar panel, the other end of the AC / DC converter is connected to the power grid, and the other end of the discharge gun is connected to the vehicle.

[0041] In a second aspect, the present invention provides a dual-mode charging system for a portable emergency power supply, the system comprising:

[0042] A battery model building module is used to build a lithium battery state evaluation model based on Kirchhoff's law; the lithium battery state evaluation model includes a lithium battery equivalent circuit model and a battery thermal balance model;

[0043] The optimization model building module is used to establish a lithium battery fast charging target optimization model based on the lithium battery state evaluation model, taking the shortest total charging time in all charging stages as the objective function, and constructing dual-mode charging constraints considering thermal safety margin;

[0044] The optimization model solving module is used to solve the lithium battery fast charging target optimization model using the starry sky evolution optimization algorithm to obtain the charging current of each charging stage under the dual charging mode.

[0045] In a third aspect, the present invention further provides a computer device, comprising a processor and a memory, wherein the processor is connected to the memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory so that the computer device performs the steps of implementing the above method.

[0046] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the steps of the above method when executed by a processor.

[0047] The present invention provides a dual-mode charging method, system, device and medium for a portable emergency power supply. The method is based on Kirchhoff's law, establishes a lithium battery state assessment model, and takes the shortest total charging time of all charging stages as the objective function. At the same time, a dual-mode charging constraint condition considering thermal safety margin is constructed to establish a lithium battery fast charging target optimization model; the starry sky evolution optimization algorithm is used to solve the lithium battery fast charging target optimization model to obtain the charging current of the dual charging mode in each charging stage. Compared with the prior art, the method uses the starry sky evolution optimization algorithm to optimize and solve the charging current of each charging stage of the two charging modes. It can provide emergency charging energy for the equipment by supporting multiple charging methods and introducing a dual-mode charging method with thermal safety margin. It can support photovoltaic charging, vehicle-mounted charging and mains charging, improve the flexibility and reliability of the equipment, and better meet the different charging needs in emergency repair environments and normal environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a schematic flow chart of a dual-mode charging method of a portable emergency power supply provided by an embodiment of the present invention;

[0049] Figure 2 This is a structural block diagram of a portable emergency power supply provided by an embodiment of the present invention;

[0050] Figure 3 It is a schematic diagram of the flow of the starry sky evolution optimization algorithm provided by an embodiment of the present invention;

[0051] Figure 4 It is a block diagram of a dual-mode charging system of a portable emergency power supply provided by an embodiment of the present invention;

[0052] Figure 5 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0053] The following specifically illustrates the implementation mode of the present invention in conjunction with the accompanying drawings. The embodiments are provided for illustrative purposes only and cannot be understood as limiting the present invention. The accompanying drawings are provided for reference and illustration only and do not constitute a limitation on the scope of patent protection of the present invention, because many changes can be made to the present invention without departing from the spirit and scope of the present invention.

[0054] refer to Figure 1 The embodiment of the present invention provides a dual-mode charging method for a portable emergency power supply, which can be applied to all products including a portable emergency power supply. Figure 2 This is a structural block diagram of a portable emergency power supply. The portable emergency power supply specifically includes a photovoltaic solar panel, a maximum power point tracking module (MPPT), a discharge gun, an AC / DC converter, a DC / DC converter, a lithium battery pack, a controller and a PWM output module; one end of the DC / DC converter is connected in parallel to the maximum power tracking module, the discharge gun and the AC / DC converter, and the other end of the DC / DC converter is connected in series with the lithium battery pack, the controller and the PWM output module in sequence to form a loop.

[0055] In this embodiment, in order to realize multi-mode power supplement of photovoltaic, vehicle-mounted and mains, the other end of the maximum power tracking module is connected to the photovoltaic solar panel, and the photovoltaic solar panel is controlled by the MPPT module to achieve maximum power output, and the voltage output is connected to the DC bus; the other end of the discharge gun is connected to the vehicle, for example: the electric car can be connected to the DC bus through the discharge gun, and the DC bus is simultaneously connected to the DC / DC converter and the lithium battery pack to realize convenient vehicle charging; the other end of the AC / DC converter is connected to the power grid, and this embodiment outputs the charging mode of MPPT, discharge gun and mains to the DC bus, and keeps the output voltage equal; at the same time, the controller monitors and estimates the lithium battery in real time through the sensor The voltage, current and temperature signals of the group are used to grasp the battery capacity in real time. The control algorithm uses the dual-mode charging method to control the dual-mode charging of the portable emergency power supply based on the monitoring results, and adjusts the duty cycle of the PWM module output, thereby controlling the charging voltage of the DC / DC converter to supply the emergency power supply. Through the portable emergency power supply design of this embodiment, various charging methods such as photovoltaic, vehicle-mounted and city power can monitor the battery capacity in real time, and dynamically adjust through the control algorithm to meet different charging needs. This embodiment uses MPPT to control photovoltaic solar panels, integrates various charging methods and outputs them to the DC bus, and realizes the flexibility and reliability of multi-mode power replenishment through DC / DC converters and charging controllers.

[0056] In the face of different demands for charging speed in emergency repair and normal environment, in order to realize two charging modes in emergency repair and normal environment, such as Figure 1 As shown, the dual-mode charging method of the portable emergency power supply proposed in the embodiment of the present invention includes the following steps:

[0057] S1. Based on Kirchhoff's law, a lithium battery status assessment model is established; the lithium battery status assessment model includes a lithium battery equivalent circuit model and a battery thermal balance model.

[0058] This embodiment can establish a lithium battery equivalent circuit model based on Kirchhoff's first law (KCL) and Kirchhoff's second law (KVL). The lithium battery equivalent circuit model is specifically:

[0059]

[0060] In the formula, represents polarized capacitance; Indicates the battery polarization voltage; represents polarization resistance; Indicates the battery charging and discharging current; Indicates the battery terminal voltage; Indicates the battery open circuit voltage; Represents the ohmic internal resistance; It should be noted that, in the lithium battery equivalent circuit model, the polarization capacitance, ohmic internal resistance and polarization resistance are parameters that need to be measured and estimated. In order to obtain the accurate values ​​of these parameters, the present embodiment can use the coyote optimization algorithm for experiments and calculations. The specific implementation process of the coyote optimization algorithm will not be repeated. The present embodiment can calculate the polarization voltage of the battery by establishing the lithium battery equivalent circuit equation. By calculating the polarization voltage of the battery, the performance and response characteristics of the battery under different working conditions can be better understood. The polarization voltage of the battery is specifically expressed as:

[0061] ;

[0062] From this, the open circuit voltage of the lithium battery at time t can be estimated:

[0063] .

[0064] At the same time, the battery thermal balance model is established:

[0065]

[0066] Where, M represents the weight of the battery core; Indicates the specific heat capacity of the battery core; Indicates battery temperature; Indicates the charging capacity.

[0067] S2. Based on the lithium battery state assessment model, the shortest total charging time in all charging stages is taken as the objective function, and a dual-mode charging constraint condition considering the thermal safety margin is constructed to establish a lithium battery fast charging target optimization model.

[0068] This embodiment performs a capacity test on a lithium battery. First, constant current charging is performed to charge the battery to a cut-off voltage. Next, constant voltage charging is performed to keep the battery voltage near the cut-off voltage. The charging current will gradually decrease until the cut-off current is reached, indicating that charging is completed. After charging is completed, a constant current discharge process is started. The discharge current is controlled at twice the cut-off current until the battery voltage drops to the lowest safe voltage. When the battery voltage drops to the lowest safe voltage, the discharge capacity Q, i.e., the battery capacity test result, can be obtained. In order to better describe the state change during the charging process, this embodiment divides the SOC during the charging process into n stages. , Indicates the SOC of the initial state, and constant current charging is adopted in each stage , SOC (State of Charge) represents the battery capacity ratio of the initial state of each stage. Through this division method, this embodiment can better understand the charging characteristics and reaction of the battery under different SOCs, where, , , are equal, where the SOC value of the i-th charging stage at the k-th sampling time Specifically:

[0069] ;

[0070] In this embodiment, the charging time of the i-th charging stage is The specific expression is:

[0071]

[0072] In the formula, represents the charging current of the i-th charging stage; represents the capacity to be charged in the i-th charging stage; represents the difference in battery state of charge between the i-th charging stage and the (i-1)-th charging stage; Indicates the total capacity of the battery; represents the battery state of charge at the i-th charging stage.

[0073] Then calculate the sum of the charging time of the i-th charging stage to get the total charging time of n stages. for:

[0074]

[0075] Thus, the objective function of the lithium battery fast charging target optimization model can be constructed: .

[0076] This embodiment considers the thermal safety margin to establish dual-mode charging constraints, wherein the dual-mode charging constraints considering the thermal safety margin include thermal safety margin constraints, battery charging current constraints, and battery open circuit voltage constraints. In the process of establishing the dual-mode charging constraints, this embodiment considers that the traditional constant current and constant voltage charging method is simple, easy to implement, and helps to extend the life of the battery. However, in the second stage of the traditional constant current and constant voltage charging method, it takes a long time for the current to drop to the cut-off current, which cannot meet the demand for rapid charging during emergency repairs. Therefore, in order to meet the different charging requirements of the portable emergency repair power supply under normal and emergency repair conditions, this embodiment proposes a dual-mode charging constraint considering the thermal safety margin. This embodiment first selects different parameters to calculate the dual-mode charging constraint. , a fitting relationship table between thermal runaway temperature and SOC (State of Charge, battery capacity ratio) was established. Table 1 is the thermal runaway temperature table for different SOCs:

[0077] Table 1

[0078]

[0079] The thermal runaway temperature is obtained by measuring the thermal runaway temperature of the lithium battery. In this embodiment, the thermal safety boundary can be obtained by polynomial fitting of the SOC and the thermal runaway temperature in Table 1. In this way, the thermal safety boundary can fully consider the thermal characteristics of the battery at different SOCs to ensure that thermal runaway does not occur during the charging process. The thermal safety boundary is specifically expressed as:

[0080]

[0081] In the formula, Indicates thermal safety boundary; represents the thermal safety factor fitted at the i-th charging stage; represents the battery state of charge at the i-th charging stage; Represents the bias term.

[0082] In this embodiment, the thermal safety margin is introduced into the constraint during the optimization process to establish the thermal safety margin constraint condition:

[0083]

[0084] In the formula, Indicates the thermal runaway temperature of the lithium battery at time k; It indicates the thermal safety margin. It should be noted that the thermal safety margin in this embodiment can be adjusted in dual modes according to different charging requirements and safety margins. For example, in this embodiment, the thermal safety margin can be adjusted in emergency repair situations. It is set to half of the original value, reducing the battery life to achieve fast charging, and setting the thermal safety margin to a larger value during normal charging to extend the battery life. By considering the dual-mode charging constraint conditions of the thermal safety margin, it is possible not only to achieve optimization and flexibility in controlling the battery charging process according to different charging needs and safety boundaries during normal and emergency repairs, but also to help meet the needs of fast charging of portable emergency repair power supplies and ensure thermal safety during battery charging.

[0085] For other battery charging current constraints and battery open circuit voltage constraints, in this embodiment, the battery charging current constraints are specifically:

[0086]

[0087] The battery open circuit voltage constraint condition is specifically:

[0088]

[0089] In the formula, Indicates thermal safety boundary; Indicates the thermal runaway temperature of the lithium battery at time k; Indicates thermal safety margin; represents the battery state of charge at the i-th charging stage; represents the battery charging current at time k; , Respectively represent the minimum charging current and the maximum charging current; represents the open circuit voltage of the battery at time k; , Represent the minimum open circuit voltage and the maximum open circuit voltage respectively.

[0090] S3. Use the starry sky evolution optimization algorithm to solve the lithium battery fast charging target optimization model to obtain the charging current in each charging stage in the dual charging mode.

[0091] Since the distance between stars in the night sky will change over time, this embodiment is inspired by the different positions and brightness of stars in the sky, assuming that stars will move to the position with the highest brightness, and designs a starry sky evolution optimization algorithm to solve the charging current of n stages, taking the brightness of the stars as the evaluation standard. The higher the brightness, the smaller the objective function value. In this embodiment, the step of using the starry sky evolution optimization algorithm to solve the lithium battery fast charging target optimization model and obtaining the charging current of each charging stage in the dual charging mode includes:

[0092] Initialize the stars, determine the initial positions of the stars, and randomly generate a number of stars. Consider each star as a set of charging current target solutions, and consider the star brightness as the total charging time.

[0093] Calculate the current star brightness of each star at the current position according to the lithium battery fast charging target optimization model, and traverse each star in turn, and calculate the sum of the star brightness weighted distances between each star and the remaining stars according to the current star brightness;

[0094] Determine the new position of each star according to the sum of the weighted distances of the star brightness, and calculate the latest brightness value of each star at the new position according to the lithium battery fast charging target optimization model;

[0095] Compare the latest brightness value with the current brightness of the star, if the latest brightness value is higher than the current brightness of the star, move the star to a new position, otherwise keep the position of the star unchanged;

[0096] The above steps are repeated iteratively, and in each iterative search for the optimal charging current target solution, a preset number of stars are randomly selected to be discarded for iterative update operations until a preset iteration termination condition is reached.

[0097] Specifically, Figure 3 As shown, in this embodiment, the stars are first initialized. The process of initializing the stars may include determining the initial position, brightness and other properties of the stars, and then randomly generating X stars by using a random algorithm. Each star represents a solution for a set of charging currents. The brightness of the star represents the total charging time. The higher the brightness, the shorter the total charging time. The X stars have different brightness, that is, the total charging time. The initialization of the stars is specifically expressed as:

[0098]

[0099] In the formula, Represents the charging current in the i-th charging stage.

[0100] The specific expression of randomly generating X number of stars is:

[0101]

[0102] In the formula, Indicates the current position of star x; represents the charging current of the xth star in the i-th charging stage. In this embodiment, the charging current of the randomly generated star in each charging stage should satisfy:

[0103]

[0104] In the formula, represents the charging current of the xth star in the i-th charging stage; , Respectively represent the minimum charging current and the maximum charging current; Represents a random number between 0 and 1.

[0105] Then, this embodiment calculates the brightness of stars according to the lithium battery fast charging target optimization model established in step S2. , and calculate the sum of the star brightness weighted distances of each star to other stars :

[0106]

[0107] In the formula, represents the sum of the star brightness weighted distances of star x; Indicates the current position of star x; Indicates the current star brightness of star x at the current position; represents the current position of the jth star except star x; Indicates the current star brightness of the jth star except star x; represents the sign function; X represents the total number of stars.

[0108] In this embodiment, each star needs to calculate the distance moved in the search space, that is, the brightness weighted distance. Each star decides in which direction to move based on the difference between the brightness of other stars and its own brightness. For example, assuming that there are three stars on a one-dimensional axis, star A has a coordinate of 1 and a brightness of 2; star B has a coordinate of 2 and a brightness of 3; star C has a coordinate of 4 and a brightness of 4 (the coordinates are the charging current values ​​and the brightness is the charging time), then the sum of the brightness weighted distances of star A, star B and star C is 2.33.

[0109] This embodiment determines the new position of each star according to the sum of the weighted distances of the star brightness, and calculates the latest brightness value of each star at the new position according to the lithium battery fast charging target optimization model, wherein the calculation formula for the new position of each star is:

[0110]

[0111] In the formula, represents the new position of star x; Indicates the current position of star x; express A vector with dimensions and elements between 0 and 1 that is randomly generated from a normal distribution; Represents the sum of the star brightness weighted distances of star x.

[0112] This embodiment compares whether the latest brightness value of the new position is higher than the brightness of the star at the original position (current star brightness). If the latest brightness value is higher than the current star brightness, the star is moved to the new position and the star position is replaced with the new position. Otherwise, it remains unchanged. Specifically, it is expressed as:

[0113]

[0114] At the same time, in each iteration process, in order to improve the global search capability of the algorithm, this embodiment simulates the stars being blocked by clouds and dust, and randomly discards y stars and regenerates them in each iteration process, that is:

[0115]

[0116] In the formula, Represents a regenerated star.

[0117] Repeat the above steps iteratively to determine whether the termination conditions of the algorithm optimization are met. If the target optimization requirements are met and the maximum number of algorithm iterations is reached, the iteration loop is exited and the star with the highest current brightness is output, that is, the solution with the shortest charging time. If not, repeat the iterative update.

[0118] The embodiment of the present invention provides a dual-mode charging method for a portable emergency power supply. The method is based on Kirchhoff's law, establishes a lithium battery state evaluation model, takes the shortest total charging time of all charging stages as the objective function, constructs dual-mode charging constraints considering thermal safety margin, and establishes a lithium battery fast charging target optimization model; uses the starry sky evolution optimization algorithm to solve the lithium battery fast charging target optimization model to obtain the charging current of the dual charging mode in each charging stage. In view of the charging needs of the device in emergency and normal conditions, this embodiment proposes a dual-mode charging method for a portable emergency power supply. The method uses the starry sky evolution optimization algorithm to solve the charging current of the dual charging mode in each charging stage, and adopts strategies such as adjusting the thermal safety margin, so that the device can achieve optimization and flexibility in controlling the battery charging process in normal and emergency repair according to different charging needs and safety boundaries, and provide rapid charging capabilities in emergency conditions, thereby realizing a dual-mode charging method that supports multiple charging methods and introduces thermal safety margins.

[0119] It should be noted that the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0120] In one embodiment, Figure 4 As shown, an embodiment of the present invention provides a dual-mode charging system for a portable emergency power supply, the system comprising:

[0121] The battery model building module 101 is used to build a lithium battery state evaluation model based on Kirchhoff's law; the lithium battery state evaluation model includes a lithium battery equivalent circuit model and a battery thermal balance model;

[0122] The optimization model building module 102 is used to establish a lithium battery fast charging target optimization model based on the lithium battery state evaluation model, taking the shortest total charging time in all charging stages as the objective function, and constructing a dual-mode charging constraint condition considering the thermal safety margin;

[0123] The optimization model solving module 103 is used to solve the lithium battery fast charging target optimization model using the starry sky evolution optimization algorithm to obtain the charging current of each charging stage in the dual charging mode.

[0124] For the specific definition of a dual-mode charging system for a portable emergency power supply, please refer to the above-mentioned definition of a dual-mode charging method for a portable emergency power supply, which will not be repeated here. A person of ordinary skill in the art will appreciate that the various modules and steps described in conjunction with the embodiments disclosed in this application can be implemented in hardware, software, or a combination of both. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0125] The embodiment of the present invention provides a dual-mode charging system for a portable emergency power supply. The battery model building module of the system builds a lithium battery state evaluation model based on Kirchhoff's law; the optimization model building module is based on the lithium battery state evaluation model, takes the shortest total charging time of all charging stages as the objective function, and constructs a dual-mode charging constraint condition considering the thermal safety margin to establish a lithium battery fast charging target optimization model; the optimization model solving module uses the star evolution optimization algorithm to solve the lithium battery fast charging target optimization model to obtain the charging current of each charging stage under the dual charging mode. Compared with the prior art, the dual-mode charging control method proposed in this application can select different charging modes according to charging requirements and safety boundaries, realize optimization and flexibility of the battery charging process, adopt constant current and constant voltage charging under normal conditions to protect the battery and extend its life, and adopt a fast charging mode in emergency repair situations to meet the demand for rapid power acquisition, can adapt to different charging requirements, and improve the safety and stability of the battery.

[0126] Figure 5A computer device provided by an embodiment of the present invention includes a memory, a processor and a transceiver, which are connected via a bus; the memory is used to store a set of computer program instructions and data, and can transmit the stored data to the processor, and the processor can execute the program instructions stored in the memory to perform the steps of the above method.

[0127] The memory may include a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories; the processor may be a central processing unit, a microprocessor, an application-specific integrated circuit, a programmable logic device, or a combination thereof. By way of example but not limitation, the programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.

[0128] Additionally, the memory may be a physically separate unit or may be integrated with the processor.

[0129] It can be understood by those skilled in the art that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have the same component arrangement.

[0130] In one embodiment, the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented.

[0131] The embodiments of the present invention provide a dual-mode charging method, system, device and medium for a portable emergency power supply. The dual-mode charging method for a portable emergency power supply can meet the demand for quickly obtaining charging power in an emergency situation by supporting multiple charging methods and introducing a dual-mode charging method with a thermal safety margin, thereby effectively improving the charging speed of the power supply. At the same time, according to different charging needs and safety boundaries, a constant current and constant voltage charging method is adopted under normal conditions to protect the battery, extend its life, and achieve optimization and flexibility of the battery charging process.

[0132] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., an SSD), etc.

[0133] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods.

[0134] The above-mentioned embodiments only express several preferred implementation modes of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in the technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention, and these improvements and substitutions should also be regarded as the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be based on the protection scope of the claims.

Claims

1. A dual-mode charging method for a portable emergency power supply, characterized in that: The dual-mode charging method includes the following steps: Based on Kirchhoff's law, a lithium battery state evaluation model is established; the lithium battery state evaluation model includes a lithium battery equivalent circuit model and a battery thermal balance model; Based on the lithium battery state assessment model, the shortest total charging time in all charging stages is taken as the objective function, and the dual-mode charging constraint condition considering the thermal safety margin is constructed to establish a lithium battery fast charging target optimization model; The starry sky evolution optimization algorithm is used to solve the lithium battery fast charging target optimization model to obtain the charging current of each charging stage in the dual charging mode; Wherein, the objective function is specifically expressed as: In the formula, represents the objective function; represents the charging time of the i-th charging stage; represents the capacity to be charged in the i-th charging stage; represents the charging current of the i-th charging stage; represents the difference in battery state of charge between the i-th charging stage and the (i-1)-th charging stage; Indicates the total capacity of the battery; represents the battery state of charge at the i-th charging stage; The dual-mode charging constraint condition considering the thermal safety margin includes a thermal safety margin constraint condition, a battery charging current constraint condition, and a battery open circuit voltage constraint condition, wherein the thermal safety margin constraint condition is specifically: in, The battery charging current constraint condition is specifically: The battery open circuit voltage constraint condition is specifically: In the formula, Indicates thermal safety boundary; Indicates the thermal runaway temperature of the lithium battery at time k; Indicates thermal safety margin; represents the thermal safety factor fitted at the i-th charging stage; represents the battery state of charge at the i-th charging stage; represents the bias term; represents the battery charging current at time k; , Respectively represent the minimum charging current and the maximum charging current; represents the open circuit voltage of the battery at time k; , Represent the minimum open circuit voltage and the maximum open circuit voltage respectively; The step of using the starry sky evolution optimization algorithm to solve the lithium battery fast charging target optimization model to obtain the charging current of each charging stage in the dual charging mode includes: Initialize the stars, determine the initial positions of the stars, and randomly generate a number of stars. Consider each star as a set of charging current target solutions, and consider the star brightness as the total charging time. Calculate the current star brightness of each star at the current position according to the lithium battery fast charging target optimization model, and traverse each star in turn, and calculate the sum of the star brightness weighted distances between each star and the remaining stars according to the current star brightness; Determine the new position of each star according to the sum of the weighted distances of the star brightness, and calculate the latest brightness value of each star at the new position according to the lithium battery fast charging target optimization model; Compare the latest brightness value with the current brightness of the star, if the latest brightness value is higher than the current brightness of the star, move the star to a new position, otherwise keep the position of the star unchanged; The above steps are repeated iteratively, and in each iterative search for the optimal charging current target solution, a preset number of stars are randomly selected to be discarded for iterative update operations until a preset iteration termination condition is reached.

2. A dual-mode charging method for a portable emergency power supply as claimed in claim 1, characterized in that: The new position of each star is calculated as: in, In the formula, represents the new position of star x; Indicates the current position of star x; represents the current position of the jth star except star x; represents a vector randomly generated from a normal distribution; represents the sum of the star brightness weighted distances of star x; Indicates the current star brightness of star x at the current position; Indicates the current star brightness of the jth star except star x; represents the sign function; X represents the total number of stars.

3. A dual-mode charging method for a portable emergency power supply as claimed in claim 1, characterized in that: The charging current of the randomly generated stars at each charging stage should meet the following requirements: In the formula, represents the charging current of the xth star in the i-th charging stage; , Respectively represent the minimum charging current and the maximum charging current; Represents a random number between 0 and 1.

4. The dual-mode charging method of a portable emergency power supply according to claim 1, characterized in that: The portable emergency power supply includes a photovoltaic solar panel, a maximum power tracking module, a discharge gun, an AC / DC converter, a DC / DC converter, a lithium battery pack, a controller and a PWM output module; wherein the controller is used to control the dual-mode charging of the portable emergency power supply using the dual-mode charging method; One end of the DC / DC converter is connected in parallel to the maximum power tracking module, the discharge gun and the AC / DC converter, and the other end of the DC / DC converter is connected in series with the lithium battery pack, the controller and the PWM output module in sequence to form a loop; The other end of the maximum power tracking module is connected to the photovoltaic solar panel, the other end of the AC / DC converter is connected to the power grid, and the other end of the discharge gun is connected to the vehicle.

5. A dual-mode charging system for a portable emergency power supply, characterized in that: The system comprises: A battery model building module is used to build a lithium battery state evaluation model based on Kirchhoff's law; the lithium battery state evaluation model includes a lithium battery equivalent circuit model and a battery thermal balance model; The optimization model building module is used to establish a lithium battery fast charging target optimization model based on the lithium battery state evaluation model, taking the shortest total charging time in all charging stages as the objective function, and constructing dual-mode charging constraints considering thermal safety margin; An optimization model solving module is used to solve the lithium battery fast charging target optimization model using a starry sky evolution optimization algorithm to obtain the charging current at each charging stage in the dual charging mode; Wherein, the objective function is specifically expressed as: In the formula, represents the objective function; represents the charging time of the i-th charging stage; represents the capacity to be charged in the i-th charging stage; represents the charging current of the i-th charging stage; represents the difference in battery state of charge between the i-th charging stage and the (i-1)-th charging stage; Indicates the total capacity of the battery; represents the battery state of charge at the i-th charging stage; The dual-mode charging constraint condition considering the thermal safety margin includes a thermal safety margin constraint condition, a battery charging current constraint condition, and a battery open circuit voltage constraint condition, wherein the thermal safety margin constraint condition is specifically: in, The battery charging current constraint condition is specifically: The battery open circuit voltage constraint condition is specifically: In the formula, Indicates thermal safety boundary; Indicates the thermal runaway temperature of the lithium battery at time k; Indicates thermal safety margin; represents the thermal safety factor fitted at the i-th charging stage; represents the battery state of charge at the i-th charging stage; represents the bias term; represents the battery charging current at time k; , Respectively represent the minimum charging current and the maximum charging current; represents the open circuit voltage of the battery at time k; , Represent the minimum open circuit voltage and the maximum open circuit voltage respectively; The optimization model solving module is specifically used for: Initialize the stars, determine the initial positions of the stars, and randomly generate a number of stars. Consider each star as a set of charging current target solutions, and consider the star brightness as the total charging time. Calculate the current star brightness of each star at the current position according to the lithium battery fast charging target optimization model, and traverse each star in turn, and calculate the sum of the star brightness weighted distances between each star and the remaining stars according to the current star brightness; Determine the new position of each star according to the sum of the weighted distances of the star brightness, and calculate the latest brightness value of each star at the new position according to the lithium battery fast charging target optimization model; Compare the latest brightness value with the current brightness of the star, if the latest brightness value is higher than the current brightness of the star, move the star to a new position, otherwise keep the position of the star unchanged; The above steps are repeated iteratively, and in each iterative search for the optimal charging current target solution, a preset number of stars are randomly selected to be discarded for iterative update operations until a preset iteration termination condition is reached.

6. A computer device, characterized in that: The computer device comprises a processor and a memory, wherein the processor is connected to the memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the computer device executes the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 4 is implemented.