[go: up one dir, main page]

CN118894004A - Battery charging control method, storage medium, electronic device and battery replacement station - Google Patents

Battery charging control method, storage medium, electronic device and battery replacement station Download PDF

Info

Publication number
CN118894004A
CN118894004A CN202410956205.0A CN202410956205A CN118894004A CN 118894004 A CN118894004 A CN 118894004A CN 202410956205 A CN202410956205 A CN 202410956205A CN 118894004 A CN118894004 A CN 118894004A
Authority
CN
China
Prior art keywords
battery
charging
cost
period
control method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410956205.0A
Other languages
Chinese (zh)
Inventor
栗子豪
黄俊峰
周恩光
王逸飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NIO Co Ltd
Original Assignee
NIO Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NIO Co Ltd filed Critical NIO Co Ltd
Priority to CN202410956205.0A priority Critical patent/CN118894004A/en
Publication of CN118894004A publication Critical patent/CN118894004A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60LPROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
    • B60L53/00Methods of charging batteries, specially adapted for electric vehicles; Charging stations or on-board charging equipment therefor; Exchange of energy storage elements in electric vehicles
    • B60L53/60Monitoring or controlling charging stations
    • B60L53/62Monitoring or controlling charging stations in response to charging parameters, e.g. current, voltage or electrical charge
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60LPROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
    • B60L53/00Methods of charging batteries, specially adapted for electric vehicles; Charging stations or on-board charging equipment therefor; Exchange of energy storage elements in electric vehicles
    • B60L53/60Monitoring or controlling charging stations
    • B60L53/63Monitoring or controlling charging stations in response to network capacity
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60LPROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
    • B60L53/00Methods of charging batteries, specially adapted for electric vehicles; Charging stations or on-board charging equipment therefor; Exchange of energy storage elements in electric vehicles
    • B60L53/60Monitoring or controlling charging stations
    • B60L53/64Optimising energy costs, e.g. responding to electricity rates
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60LPROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
    • B60L53/00Methods of charging batteries, specially adapted for electric vehicles; Charging stations or on-board charging equipment therefor; Exchange of energy storage elements in electric vehicles
    • B60L53/80Exchanging energy storage elements, e.g. removable batteries
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application relates to the technical field of power exchange stations, in particular to a battery charging control method, a storage medium, electronic equipment and a power exchange station. The application aims to solve the problems of influence on user experience and insufficient optimization degree of the conventional battery charging planning algorithm. To this end, the present application provides a battery charge control method, a storage medium, an electronic device, and a battery exchange station, the battery charge control method including: acquiring probability distribution of arrival time periods of orders; determining the charging power of the battery in each period based on the probability distribution of the arrival period and a preset charging power planning model; the battery charge is controlled based on the charge power for each period. Under the condition of adopting the technical scheme, the probability that the vehicle arrives at the battery replacement station can be comprehensively considered, so that a battery charging planning algorithm is optimized, an optimal charging planning result in a desired sense is obtained, and then battery charging is controlled.

Description

电池充电控制方法、存储介质、电子设备及换电站Battery charging control method, storage medium, electronic device and battery replacement station

技术领域Technical Field

本发明涉及换电站技术领域,具体涉及一种电池充电控制方法、存储介质、电子设备及换电站。The present invention relates to the technical field of battery swap stations, and in particular to a battery charging control method, a storage medium, an electronic device and a battery swap station.

背景技术Background Art

合理规划换电站内电池充电有助于降低充电成本、提升换电站收益、提升充电效率、维持电池健康水平。对此,可以通过根据历史订单数据不断训练和学习,得到订单预测结果如接下来第某笔订单发生的时刻,进而根据订单预测结果来合理规划换电站内电池充电。Reasonable planning of battery charging in battery swap stations can help reduce charging costs, increase revenue, improve charging efficiency, and maintain battery health. To this end, we can continuously train and learn based on historical order data to obtain order prediction results, such as the time when the next order will occur, and then reasonably plan battery charging in battery swap stations based on order prediction results.

传统电池充电规划算法通常是预估未来某一换电订单发生时刻,从而对电池充电行为进行规划。但该电池充电规划算法存在两方面问题,一方面,若订单实际到达时间较预估到达时间提前,会造成用户等电池充满的情况,从而影响用户体验和换电站评价;另一方面,若订单实际到达时间较预估到达时间滞后,则会浪费优化空间。Traditional battery charging planning algorithms usually estimate the time when a battery swap order will occur in the future, thereby planning the battery charging behavior. However, this battery charging planning algorithm has two problems. On the one hand, if the actual arrival time of the order is earlier than the estimated arrival time, the user will have to wait for the battery to be fully charged, which will affect the user experience and the evaluation of the battery swap station; on the other hand, if the actual arrival time of the order is later than the estimated arrival time, it will waste optimization space.

发明内容Summary of the invention

为了解决现有技术中的上述至少一个问题,即为了解决现有的电池充电规划算法存在的影响用户体验、优化程度不足的问题,本申请提供了一种电池充电控制方法,该电池充电控制方法包括:In order to solve at least one of the above problems in the prior art, that is, to solve the problems of the existing battery charging planning algorithm affecting user experience and insufficient optimization, the present application provides a battery charging control method, which includes:

获取订单的抵达时段概率分布;Get the probability distribution of the order's arrival time period;

基于所述抵达时段概率分布和预设的充电功率规划模型,确定电池在各时段的充电功率;Determining the charging power of the battery in each time period based on the probability distribution of the arrival time period and a preset charging power planning model;

基于所述的各时段的充电功率,控制所述电池充电;Based on the charging power in each time period, controlling the charging of the battery;

其中,所述充电功率规划模型用于表征时段概率分布与各时段充电功率之间的对应关系。The charging power planning model is used to characterize the corresponding relationship between the time period probability distribution and the charging power in each time period.

采用上述技术方案的情况下,可以充分考虑车辆抵达换电站的概率,进而优化电池充电规划算法,得到期望意义上的最优充电规划结果,而后控制电池充电,保证用户体验。When the above technical solution is adopted, the probability of the vehicle arriving at the battery swap station can be fully considered, and then the battery charging planning algorithm can be optimized to obtain the optimal charging planning result in the desired sense, and then the battery charging can be controlled to ensure the user experience.

在上述电池充电控制方法的优选技术方案中,所述的基于所述抵达时段概率分布和预设的充电功率规划模型,确定电池在各时段的充电功率进一步包括:In the preferred technical solution of the above-mentioned battery charging control method, the determining of the charging power of the battery in each time period based on the arrival time period probability distribution and the preset charging power planning model further includes:

基于所述抵达时段概率分布和混合整数线性规划模型,确定所述电池在各时段的充电功率。Based on the arrival time period probability distribution and a mixed integer linear programming model, the charging power of the battery in each time period is determined.

采用上述技术方案的情况下,通过混合整数线性规划模型求解整数的充电功率,有利于更准确地控制充电过程中的电流和电压等因素。When the above technical solution is adopted, solving the integer charging power through a mixed integer linear programming model is conducive to more accurately controlling factors such as current and voltage during the charging process.

在上述电池充电控制方法的优选技术方案中,所述混合整数线性规划模型包括最小化充电成本目标函数和约束条件,所述控制方法进一步包括:In the preferred technical solution of the above battery charging control method, the mixed integer linear programming model includes a charging cost minimization objective function and constraints, and the control method further includes:

基于所述抵达时段概率分布、所述最小化充电成本目标函数和所述约束条件,确定所述电池在各时段的充电功率。The charging power of the battery in each time period is determined based on the arrival time period probability distribution, the minimization charging cost objective function and the constraint condition.

采用上述技术方案的情况下,通过以最小化充电成本为目标可以保证换电站收益,保证用户体验和充电成本的期望最优。When the above technical solution is adopted, the revenue of the battery swap station can be guaranteed by minimizing the charging cost, and the user experience and charging cost expectations can be optimized.

在上述电池充电控制方法的优选技术方案中,所述最小化充电成本目标函数以充电档位为优化变量,所述控制方法进一步包括:In the preferred technical solution of the above-mentioned battery charging control method, the objective function of minimizing the charging cost takes the charging gear as the optimization variable, and the control method further includes:

基于所述抵达时段概率分布、所述最小化充电成本目标函数和所述约束条件,确定所述电池在各时段的充电档位;Determining the charging gear of the battery in each time period based on the arrival time period probability distribution, the minimization charging cost objective function and the constraint condition;

基于所述充电档位和所述充电功率间的对应关系,确定所述电池在各时段的充电功率。Based on the corresponding relationship between the charging gear and the charging power, the charging power of the battery in each time period is determined.

在上述电池充电控制方法的优选技术方案中,所述最小化充电成本目标函数包括订单拒绝成本、订单电费成本、满电滞留成本、充电启停成本和先快后慢辅助成本。In the preferred technical solution of the above-mentioned battery charging control method, the objective function of minimizing charging cost includes order rejection cost, order electricity cost, full-charge retention cost, charging start-stop cost and fast-then-slow auxiliary cost.

采用上述技术方案的情况下,在保证换电站收益的情况下,通过考虑订单拒绝成本可以尽可能保证在车辆实际抵达时换电站内存在可更换电池,通过考虑满电滞留成本可以减少满电电池在换电站内的存放时间,从而提高换电站内的安全性,通过考虑充电启停成本和先快后慢辅助成本可以尽可能保证充电过程连续、防止电池过充,进而保证电池性能、延缓电池衰减。When adopting the above technical scheme, while ensuring the revenue of the battery swap station, by considering the order rejection cost, it is possible to ensure that there are replaceable batteries in the battery swap station when the vehicle actually arrives. By considering the full-charge retention cost, the storage time of fully charged batteries in the battery swap station can be reduced, thereby improving the safety in the battery swap station. By considering the charging start and stop cost and the auxiliary cost of first fast and then slow, the charging process can be guaranteed to be continuous as much as possible, preventing battery overcharging, thereby ensuring battery performance and delaying battery degradation.

在上述电池充电控制方法的优选技术方案中,所述订单拒绝成本基于如下方式确定:In the preferred technical solution of the above battery charging control method, the order rejection cost is determined based on the following method:

基于所述抵达时段概率分布,确定订单拒绝成本。An order rejection cost is determined based on the arrival time period probability distribution.

在上述电池充电控制方法的优选技术方案中,所述的基于所述抵达时段概率分布,确定订单拒绝成本进一步包括:In the preferred technical solution of the above battery charging control method, the determining of the order rejection cost based on the arrival time period probability distribution further includes:

基于订单等待时段个数,确定订单等待惩罚;Determine order waiting penalty based on the number of order waiting periods;

基于所述抵达时段概率分布和所述订单等待惩罚,确定所述订单拒绝成本。The order rejection cost is determined based on the arrival period probability distribution and the order waiting penalty.

采用上述技术方案的情况下,为最小化充电成本可以使得订单等待时段个数尽可能减少,保证车辆在实际抵达换电站内进行换电所需的等待时间减少,从而提高用户的换电体验。When the above technical solution is adopted, in order to minimize the charging cost, the number of order waiting periods can be reduced as much as possible, ensuring that the waiting time required for the vehicle to actually arrive at the battery swap station for battery swapping is reduced, thereby improving the user's battery swapping experience.

在上述电池充电控制方法的优选技术方案中,所述订单电费成本基于如下方式确定:In the preferred technical solution of the above battery charging control method, the order electricity cost is determined based on the following method:

基于各时段的电价,确定所述订单电费成本。The electricity cost of the order is determined based on the electricity price in each time period.

采用上述技术方案的情况下,可以通过考虑电价峰谷来降低充电成本。When the above technical solution is adopted, the charging cost can be reduced by considering the peak and valley of electricity prices.

在上述电池充电控制方法的优选技术方案中,所述的基于各时段的电价,确定所述订单电费成本进一步包括:In the preferred technical solution of the above battery charging control method, the determining of the order electricity cost based on the electricity price in each time period further includes:

基于单个时段内充电功率与充电侧度数的对应关系,确定各时段的充电侧度数;Based on the corresponding relationship between the charging power and the charging side degree in a single period, determine the charging side degree in each period;

基于所述各时段的电价和所述各时段的充电侧度数,确定所述订单电费成本。The order electricity cost is determined based on the electricity price in each time period and the charging-side power consumption in each time period.

采用上述技术方案的情况下,由于充电效率的存在,通过充电侧度数来计算电费可以确定出实际的功率消耗,从而精准确定订单电费成本。When the above technical solution is adopted, due to the existence of charging efficiency, the actual power consumption can be determined by calculating the electricity fee through the charging degree, thereby accurately determining the electricity cost of the order.

在上述电池充电控制方法的优选技术方案中,所述满电滞留成本基于如下方式确定:In the preferred technical solution of the above battery charging control method, the full-charge retention cost is determined based on the following method:

基于电池满电时段个数,确定所述满电滞留成本;Determining the full-charge retention cost based on the number of battery full-charge time periods;

并且/或者and/or

所述充电启停成本基于如下方式确定:The charging start-stop cost is determined based on the following method:

基于充电状态变化次数,确定所述充电启停成本。The charging start and stop cost is determined based on the number of charging state changes.

采用上述技术方案的情况下,为最小化充电成本可以使得满电电池在换电站内的存储时间和电池充电过程中的启停次数减少,从而保证换电站内的安全性和延缓电池衰减。When the above technical solution is adopted, in order to minimize the charging cost, the storage time of fully charged batteries in the battery swap station and the number of starts and stops during the battery charging process can be reduced, thereby ensuring the safety in the battery swap station and delaying battery degradation.

在上述电池充电控制方法的优选技术方案中,所述先快后慢辅助成本基于如下方式确定:In the preferred technical solution of the above battery charging control method, the first fast then slow auxiliary cost is determined based on the following method:

基于各时段和各时段内的电池能级升高数,确定所述先快后慢辅助成本。The fast-then-slow assistance cost is determined based on each time period and the number of battery energy level increases within each time period.

在上述电池充电控制方法的优选技术方案中,所述的基于所述抵达时段概率分布、最小化充电成本目标函数和约束条件,确定所述电池在各时段的充电功率进一步包括:In the preferred technical solution of the above-mentioned battery charging control method, the determination of the charging power of the battery in each time period based on the probability distribution of the arrival time period, the minimization of the charging cost objective function and the constraint conditions further includes:

基于所述抵达时段概率分布、所述最小化充电成本目标函数和所述约束条件,确定所述电池在各时段的电池能级升高数;Determining the number of battery energy level increases of the battery in each time period based on the arrival time period probability distribution, the minimization charging cost objective function and the constraint conditions;

基于所述各时段的电池能级升高数,确定所述电池在各时段内的充电功率。The charging power of the battery in each time period is determined based on the number of increases in the battery energy level in each time period.

采用上述技术方案的情况下,单时段内的电池能级升高数与该时段内的充电功率之间具有对应关系,为最小化充电成本,在所处时段数增大时对应的充电功率减小,从而保证在短时间内可以为电池充入大量电量,在接近满电时则可通过小功率充电来保护电池,延缓电池衰减。When the above technical solution is adopted, there is a corresponding relationship between the number of battery energy level increases in a single time period and the charging power in the time period. In order to minimize the charging cost, the corresponding charging power decreases when the number of time periods increases, thereby ensuring that a large amount of electricity can be charged into the battery in a short time. When it is close to full charge, low-power charging can be used to protect the battery and delay battery degradation.

在上述电池充电控制方法的优选技术方案中,所述约束条件包括电池荷电水平约束,所述控制方法进一步包括:In the preferred technical solution of the above battery charging control method, the constraint condition includes a battery charge level constraint, and the control method further includes:

基于电池类型和最小充电功率,确定电池能级个数;Determine the number of battery energy levels based on battery type and minimum charging power;

基于所述电池能级个数,确定所述电池荷电水平约束。The battery charge level constraint is determined based on the number of battery energy levels.

采用上述技术方案的情况下,通过划分电池能级可以对电池荷电水平进行精确建模,从而精准确定电池状态,为优化电池充电规划提供前提和基础。When the above technical solution is adopted, the battery charge level can be accurately modeled by dividing the battery energy levels, so as to accurately determine the battery status, providing the premise and basis for optimizing the battery charging plan.

在上述电池充电控制方法的优选技术方案中,所述控制方法还包括:In the preferred technical solution of the above battery charging control method, the control method further includes:

基于所述订单的顺序和所有电池的荷电水平,确定所述订单相对应的电池。Based on the sequence of the order and the charge levels of all batteries, the battery corresponding to the order is determined.

采用上述技术方案的情况下,可以将最近的订单与当前电量最高的电池进行匹配,从而提高换电站内的换电效率。When the above technical solution is adopted, the most recent order can be matched with the battery with the highest current power, thereby improving the battery replacement efficiency in the battery replacement station.

本申请还提供一种计算机可读存储介质,其中存储有多条程序代码,所述程序代码适于由处理器加载并运行以执行上述任一项所述的电池充电控制方法。The present application also provides a computer-readable storage medium, in which a plurality of program codes are stored, and the program codes are suitable for being loaded and run by a processor to execute any of the above-mentioned battery charging control methods.

本申请还提供一种电子设备,包括处理器和存储装置,所述存储装置适于存储多条程序代码,所述程序代码适于由所述处理器加载并运行以执行上述任一项所述的电池充电控制方法。The present application also provides an electronic device, comprising a processor and a storage device, wherein the storage device is suitable for storing a plurality of program codes, and the program codes are suitable for being loaded and run by the processor to execute any of the above-mentioned battery charging control methods.

本申请还提供一种换电站,所述换电站包括所述的电子设备。The present application also provides a battery swap station, which includes the electronic device described above.

采用上述技术方案的情况下,换电站可以通过充分考虑车辆抵达换电站的概率后优化的电池充电规划算法来控制电池充电。When the above technical solution is adopted, the battery swap station can control the battery charging by optimizing the battery charging planning algorithm after fully considering the probability of the vehicle arriving at the battery swap station.

方案1.一种电池充电控制方法,包括:Solution 1. A battery charging control method, comprising:

获取订单的抵达时段概率分布;Get the probability distribution of the order's arrival time period;

基于所述抵达时段概率分布和预设的充电功率规划模型,确定电池在各时段的充电功率;Determining the charging power of the battery in each time period based on the probability distribution of the arrival time period and a preset charging power planning model;

基于所述的各时段的充电功率,控制所述电池充电;Based on the charging power in each time period, controlling the charging of the battery;

其中,所述充电功率规划模型用于表征时段概率分布与各时段充电功率之间的对应关系。The charging power planning model is used to characterize the corresponding relationship between the time period probability distribution and the charging power in each time period.

方案2.根据方案1所述的电池充电控制方法,所述的基于所述抵达时段概率分布和预设的充电功率规划模型,确定电池在各时段的充电功率进一步包括:Solution 2. According to the battery charging control method of Solution 1, the determining of the charging power of the battery in each time period based on the probability distribution of the arrival time period and the preset charging power planning model further comprises:

基于所述抵达时段概率分布和混合整数线性规划模型,确定所述电池在各时段的充电功率。Based on the arrival time period probability distribution and a mixed integer linear programming model, the charging power of the battery in each time period is determined.

方案3.根据方案2所述的电池充电控制方法,所述混合整数线性规划模型包括最小化充电成本目标函数和约束条件,所述控制方法进一步包括:Solution 3. According to the battery charging control method of Solution 2, the mixed integer linear programming model includes a charging cost minimization objective function and constraints, and the control method further includes:

基于所述抵达时段概率分布、所述最小化充电成本目标函数和所述约束条件,确定所述电池在各时段的充电功率。The charging power of the battery in each time period is determined based on the arrival time period probability distribution, the minimization charging cost objective function and the constraint condition.

方案4.根据方案3所述的电池充电控制方法,所述最小化充电成本目标函数以充电档位为优化变量,所述控制方法进一步包括:Solution 4. According to the battery charging control method of Solution 3, the charging cost minimization objective function uses the charging gear as the optimization variable, and the control method further includes:

基于所述抵达时段概率分布、所述最小化充电成本目标函数和所述约束条件,确定所述电池在各时段的充电档位;Determining the charging gear of the battery in each time period based on the arrival time period probability distribution, the minimization charging cost objective function and the constraint condition;

基于所述充电档位和所述充电功率间的对应关系,确定所述电池在各时段的充电功率。Based on the corresponding relationship between the charging gear and the charging power, the charging power of the battery in each time period is determined.

方案5.根据方案3所述的电池充电控制方法,所述最小化充电成本目标函数包括订单拒绝成本、订单电费成本、满电滞留成本、充电启停成本和先快后慢辅助成本。Solution 5. According to the battery charging control method described in Solution 3, the objective function for minimizing charging cost includes order rejection cost, order electricity cost, full-charge retention cost, charging start-stop cost, and fast-then-slow auxiliary cost.

方案6.根据方案5所述的电池充电控制方法,所述订单拒绝成本基于如下方式确定:Solution 6. According to the battery charging control method of Solution 5, the order rejection cost is determined based on the following method:

基于所述抵达时段概率分布,确定订单拒绝成本。An order rejection cost is determined based on the arrival time period probability distribution.

方案7.根据方案6所述的电池充电控制方法,所述的基于所述抵达时段概率分布,确定订单拒绝成本进一步包括:Solution 7. According to the battery charging control method of Solution 6, determining the order rejection cost based on the arrival time period probability distribution further comprises:

基于订单等待时段个数,确定订单等待惩罚;Determine order waiting penalty based on the number of order waiting periods;

基于所述抵达时段概率分布和所述订单等待惩罚,确定所述订单拒绝成本。The order rejection cost is determined based on the arrival period probability distribution and the order waiting penalty.

方案8.根据方案5所述的电池充电控制方法,所述订单电费成本基于如下方式确定:Solution 8. According to the battery charging control method of Solution 5, the order electricity cost is determined based on the following method:

基于各时段的电价,确定所述订单电费成本。The electricity cost of the order is determined based on the electricity price in each time period.

方案9.根据方案8所述的电池充电控制方法,所述的基于各时段的电价,确定所述订单电费成本进一步包括:Solution 9. According to the battery charging control method of Solution 8, determining the order electricity cost based on the electricity price of each time period further includes:

基于单个时段内充电功率与充电侧度数的对应关系,确定各时段的充电侧度数;Based on the corresponding relationship between the charging power and the charging side degree in a single period, determine the charging side degree in each period;

基于所述各时段的电价和所述各时段的充电侧度数,确定所述订单电费成本。The order electricity cost is determined based on the electricity price in each time period and the charging-side power consumption in each time period.

方案10.根据方案5所述的电池充电控制方法,所述满电滞留成本基于如下方式确定:Solution 10. According to the battery charging control method of Solution 5, the full-charge retention cost is determined based on the following method:

基于电池满电时段个数,确定所述满电滞留成本;Determining the full-charge retention cost based on the number of battery full-charge time periods;

并且/或者and/or

所述充电启停成本基于如下方式确定:The charging start-stop cost is determined based on the following method:

基于充电状态变化次数,确定所述充电启停成本。The charging start and stop cost is determined based on the number of charging state changes.

方案11.根据方案5所述的电池充电控制方法,所述先快后慢辅助成本基于如下方式确定:Solution 11. According to the battery charging control method of Solution 5, the first fast then slow auxiliary cost is determined based on the following method:

基于各时段和各时段内的电池能级升高数,确定所述先快后慢辅助成本。The fast-then-slow assistance cost is determined based on each time period and the number of battery energy level increases within each time period.

方案12.根据方案11所述的电池充电控制方法,所述的基于所述抵达时段概率分布、最小化充电成本目标函数和约束条件,确定所述电池在各时段的充电功率进一步包括:Solution 12. According to the battery charging control method of Solution 11, determining the charging power of the battery in each time period based on the probability distribution of the arrival time period, the minimization of the charging cost objective function and the constraint conditions further includes:

基于所述抵达时段概率分布、所述最小化充电成本目标函数和所述约束条件,确定所述电池在各时段的电池能级升高数;Determining the number of battery energy level increases of the battery in each time period based on the arrival time period probability distribution, the minimization charging cost objective function and the constraint conditions;

基于所述各时段的电池能级升高数,确定所述电池在各时段内的充电功率。The charging power of the battery in each time period is determined based on the number of increases in the battery energy level in each time period.

方案13.根据方案3所述的电池充电控制方法,所述约束条件包括电池荷电水平约束,所述控制方法进一步包括:Solution 13. According to the battery charging control method of Solution 3, the constraint condition includes a battery charge level constraint, and the control method further includes:

基于电池类型和最小充电功率,确定电池能级个数;Determine the number of battery energy levels based on battery type and minimum charging power;

基于所述电池能级个数,确定所述电池荷电水平约束。The battery charge level constraint is determined based on the number of battery energy levels.

方案14.根据方案1所述的电池充电控制方法,所述控制方法还包括:Solution 14. The battery charging control method according to Solution 1, further comprising:

基于所述订单的顺序和所有电池的荷电水平,确定所述订单相对应的电池。Based on the sequence of the order and the charge levels of all batteries, the battery corresponding to the order is determined.

方案15.一种计算机可读存储介质,其中存储有多条程序代码,所述程序代码适于由处理器加载并运行以执行方案1至14中任一项所述的电池充电控制方法。Solution 15. A computer-readable storage medium storing a plurality of program codes, wherein the program codes are suitable for being loaded and executed by a processor to execute the battery charging control method according to any one of Solutions 1 to 14.

方案16.一种电子设备,包括处理器和存储装置,所述存储装置适于存储多条程序代码,Solution 16. An electronic device comprising a processor and a storage device, wherein the storage device is suitable for storing a plurality of program codes.

所述程序代码适于由所述处理器加载并运行以执行方案1至14中任一项所述的电池充电控制方法。The program code is suitable for being loaded and executed by the processor to execute the battery charging control method described in any one of Schemes 1 to 14.

方案17.一种换电站,所述换电站包括方案16所述的电子设备。Option 17. A battery swap station, comprising the electronic device described in Option 16.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

下面参照附图来描述本申请的电池充电控制方法。附图中:The battery charging control method of the present application is described below with reference to the accompanying drawings. In the accompanying drawings:

图1为本申请的一个实施例的电池充电控制方法的主要步骤流程图;FIG1 is a flowchart of the main steps of a battery charging control method according to an embodiment of the present application;

图2为本申请的一个实施例的基于抵达时段概率分布、最小化充电成本目标函数和约束条件,确定电池在各时段的充电功率的步骤流程图;FIG2 is a flowchart of the steps of determining the charging power of a battery in each time period based on the probability distribution of the arrival time period, the minimization of the charging cost objective function and the constraint conditions according to one embodiment of the present application;

图3为根据本申请的一个实施例的电子设备主要结构示意图。FIG3 is a schematic diagram of the main structure of an electronic device according to an embodiment of the present application.

附图标记列表Reference numerals list

301、处理器;302、存储装置。301. Processor; 302. Storage device.

具体实施方式DETAILED DESCRIPTION

下面参照附图来描述本申请的优选实施方式。本领域技术人员应当理解的是,这些实施方式仅仅用于解释本申请的技术原理,并非旨在限制本申请的保护范围。例如,虽然本实施方式是结合电池能级升高数确定电池在各时段的充电功率的,但是这并非旨在于限制本申请的保护范围,在不偏离本申请原理的条件下,本领域技术人员可以直接通过电池在各时段的充电档位来确定其对应的充电功率。The preferred embodiments of the present application are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the scope of protection of the present application. For example, although the present embodiment determines the charging power of the battery in each time period in combination with the number of battery energy level increases, this is not intended to limit the scope of protection of the present application. Without departing from the principles of the present application, those skilled in the art can directly determine the corresponding charging power by the charging gear of the battery in each time period.

在本申请的描述中,“处理器”可以包括硬件、软件或者两者的组合。处理器可以是中央处理器、微处理器、数字信号处理器或者其他任何合适的处理器。处理器具有数据和/或信号处理功能。处理器可以以软件方式实现、硬件方式实现或者二者结合方式实现。计算机可读存储介质包括任何合适的可存储程序代码的介质,比如磁碟、硬盘、光碟、闪存、只读存储器、随机存取存储器等等。In the description of this application, "processor" may include hardware, software or a combination of the two. The processor may be a central processing unit, a microprocessor, a digital signal processor or any other suitable processor. The processor has data and/or signal processing functions. The processor may be implemented in software, hardware or a combination of the two. Computer-readable storage media include any suitable medium that can store program code, such as a disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, etc.

如背景技术所述,合理规划换电站内电池充电有助于降低充电成本、提升换电站收益、提升充电效率、维持电池健康水平。对此,可以通过根据历史订单数据不断训练和学习,得到订单预测结果如接下来第某笔订单发生的时刻,进而根据订单预测结果来合理规划换电站内电池充电。As described in the background technology, reasonable planning of battery charging in battery swap stations helps reduce charging costs, increase battery swap station revenue, improve charging efficiency, and maintain battery health. To this end, we can continuously train and learn based on historical order data to obtain order prediction results such as the time when the next order will occur, and then reasonably plan battery charging in battery swap stations based on order prediction results.

传统电池充电规划算法通常是预估未来某一换电订单发生时刻,从而对电池充电行为进行规划。但该电池充电规划算法存在两方面问题,一方面,若订单实际到达时间较预估到达时间提前,会造成用户等电池充满的情况,从而影响用户体验和换电站评价;另一方面,若订单实际到达时间较预估到达时间滞后,则会浪费优化空间。Traditional battery charging planning algorithms usually estimate the time when a battery swap order will occur in the future, thereby planning the battery charging behavior. However, this battery charging planning algorithm has two problems. On the one hand, if the actual arrival time of the order is earlier than the estimated arrival time, the user will have to wait for the battery to be fully charged, which will affect the user experience and the evaluation of the battery swap station; on the other hand, if the actual arrival time of the order is later than the estimated arrival time, it will waste optimization space.

下面参阅图1对本申请的电池充电控制方法进行描述,图1为本申请的一个实施例的电池充电控制方法的主要步骤流程图。The battery charging control method of the present application is described below with reference to FIG1 , which is a flow chart of the main steps of the battery charging control method of one embodiment of the present application.

如图1所示,为了解决现有的电池充电规划算法存在的影响用户体验、优化程度不足的问题,本申请实施例中的电池充电控制方法主要包括以下步骤:As shown in FIG1 , in order to solve the problems of the existing battery charging planning algorithm affecting user experience and insufficient optimization, the battery charging control method in the embodiment of the present application mainly includes the following steps:

S101,获取订单的抵达时段概率分布;S101, obtaining the probability distribution of the arrival time of the order;

S102,基于抵达时段概率分布和预设的充电功率规划模型,确定电池在各时段的充电功率;S102, determining the charging power of the battery in each time period based on the probability distribution of the arrival time period and a preset charging power planning model;

S103,基于各时段的充电功率,控制电池充电;S103, controlling battery charging based on the charging power in each time period;

其中,充电功率规划模型用于表征时段概率分布与各时段充电功率之间的对应关系。Among them, the charging power planning model is used to characterize the corresponding relationship between the time period probability distribution and the charging power in each time period.

在本实施方式中,可以首先通过历史订单数据预测接下来某笔订单发生在各个时刻的概率,即预测车辆在某个时刻抵达换电站进行换电的概率,从而得出该订单的抵达时段概率分布。然后,将抵达时段概率分布输入充电功率规划模型中可以得出单块电池在各时段的充电功率,而后通过充电模块以得出的充电功率来控制对应电池充电。In this embodiment, the probability of a certain order occurring at various times can be predicted first through historical order data, that is, the probability of a vehicle arriving at a battery swap station for battery swapping at a certain time can be predicted, thereby obtaining the probability distribution of the arrival time period of the order. Then, the probability distribution of the arrival time period can be input into the charging power planning model to obtain the charging power of a single battery in each time period, and then the charging module can control the charging of the corresponding battery with the obtained charging power.

通过上述步骤S101至步骤S103所述的方法,可以充分考虑车辆抵达换电站的概率,进而优化电池充电规划算法,得到期望意义上的最优充电规划结果,而后控制电池充电,保证用户体验。Through the method described in steps S101 to S103 above, the probability of the vehicle arriving at the battery swap station can be fully considered, and the battery charging planning algorithm can be optimized to obtain the optimal charging planning result in the desired sense, and then the battery charging can be controlled to ensure user experience.

下面对本申请的具体实施方式进行详细介绍。The specific implementation methods of the present application are described in detail below.

在一些实施方式中,基于以下方式确定每个订单所对应的电池:In some implementations, the battery corresponding to each order is determined based on:

基于订单的顺序和所有电池的荷电水平,确定订单相对应的电池。Based on the order sequence and the charge levels of all batteries, the battery corresponding to the order is determined.

在本实施方式中,可以根据订单抵达的顺序与电池的荷电水平的高低来将接下来预测的某笔订单分配至对应的电池,从而基于该电池以及抵达时段概率分布和预设的充电功率规划模型得出对于该电池的各时段的充电功率,而后控制该电池进行充电。例如,对于即将抵达的订单,将该订单匹配至当前荷电水平最高即电量最高的电池,而后根据该电池的荷电状态来确定接下来各时段的充电功率。当然,该种订单与电池的匹配方式并非是一成不变的,例如,若电池型号存在差异,则需综合考虑电池型号与电池的荷电水平来对订单与电池进行匹配;再如,若换电站已设置保底值即换电站内需要具备多少块满电电池,在未达到保底值时,也可控制当前荷电水平最高的电池尽快充满以达到需求,此时将该订单匹配至当前荷电水平较低的电池,而后根据该电池的状态来确定接下来各时段的充电功率。In this embodiment, the next predicted order can be allocated to the corresponding battery according to the order of order arrival and the charge level of the battery, so as to obtain the charging power for each time period of the battery based on the battery and the probability distribution of the arrival time period and the preset charging power planning model, and then control the battery to charge. For example, for an order that is about to arrive, the order is matched to the battery with the highest current charge level, that is, the highest power, and then the charging power for the next time period is determined according to the charge state of the battery. Of course, this kind of order and battery matching method is not static. For example, if there are differences in battery models, the order and the battery need to be matched by comprehensively considering the battery model and the charge level of the battery; for another example, if the battery swap station has set a minimum value, that is, how many fully charged batteries are required in the battery swap station, when the minimum value is not reached, the battery with the highest current charge level can also be controlled to be fully charged as soon as possible to meet the demand. At this time, the order is matched to the battery with the lower current charge level, and then the charging power for the next time period is determined according to the state of the battery.

在一些实施方式中,步骤S102“基于抵达时段概率分布和预设的充电功率规划模型,确定电池在各时段的充电功率”进一步包括:In some embodiments, step S102 “determining the charging power of the battery in each time period based on the probability distribution of the arrival time period and a preset charging power planning model” further includes:

基于抵达时段概率分布和混合整数线性规划模型,确定电池在各时段的充电功率。Based on the probability distribution of arrival time periods and the mixed integer linear programming model, the charging power of the battery in each time period is determined.

在本实施方式中,采用混合整数线性规划模型可以求解出整数的充电功率,通过整数的充电功率控制电池充电有利于更准确地控制充电过程中的电流和电压等因素。当然,混合整数线性规划模型的设置也并非是必须的,本领域技术人员可以根据需求选择目标模型如混合整数非线性规划模型、多目标优化模型等,只要能综合考虑订单的抵达概率分布即可。In this embodiment, the mixed integer linear programming model can be used to solve the integer charging power. Controlling the battery charging by the integer charging power is conducive to more accurately controlling factors such as the current and voltage during the charging process. Of course, the setting of the mixed integer linear programming model is not necessary. Those skilled in the art can select a target model such as a mixed integer nonlinear programming model, a multi-objective optimization model, etc. according to needs, as long as the arrival probability distribution of the order can be comprehensively considered.

一种可能的实施方式中,混合整数线性规划模型包括最小化充电成本目标函数和约束条件,步骤“基于抵达时段概率分布和混合整数线性规划模型,确定电池在各时段的充电功率”进一步包括:In one possible implementation, the mixed integer linear programming model includes a charging cost minimization objective function and constraints, and the step of "determining the charging power of the battery in each time period based on the arrival time period probability distribution and the mixed integer linear programming model" further includes:

基于抵达时段概率分布、最小化充电成本目标函数和约束条件,确定电池在各时段的充电功率。以下分别对上述各部分进行介绍。Based on the probability distribution of arrival time, the objective function of minimizing charging cost and constraints, the charging power of the battery in each time period is determined. The following is an introduction to each of the above parts.

1.最小化充电成本目标函数1. Minimize the charging cost objective function

下面首先对本申请的最小化充电成本目标函数进行介绍,一种可能的实施方式中,最小化充电成本目标函数为:The following first introduces the objective function of minimizing the charging cost of the present application. In a possible implementation, the objective function of minimizing the charging cost is:

其中,为订单拒绝成本,为订单电费成本,λ2tLt为满电滞留成本,λ3tUt为充电启停成本,为先快后慢辅助成本,t为时段,k为充电档位。in, is the order rejection cost, is the order electricity cost, λ 2t L t is the full-charge retention cost, λ 3t U t is the charging start-stop cost, is the auxiliary cost of fast first and slow later, t is the time period, and k is the charging gear.

下面分别对五种成本进行介绍:The five types of costs are introduced below:

1.1订单拒绝成本1.1 Order rejection cost

为订单拒绝成本,其中,pt(实数常数)为订单发生在t时段的概率,表示订单的抵达时段概率分布中t时段对应的概率,存在∑tpt=1,(实数变量)为订单等待惩罚,表示订单发生在t时段,订单到来时电池未充满惩罚。 is the order rejection cost, where p t (real constant) is the probability of an order occurring in period t, and represents the probability corresponding to period t in the probability distribution of the order’s arrival period. There exists ∑ t p t = 1, (real variable) is the order waiting penalty, which means the penalty for the battery not being fully charged when the order arrives if the order occurs in period t.

在本实施方式中,订单拒绝成本基于如下方式确定:In this embodiment, the order rejection cost is determined based on the following method:

基于订单等待时段个数,确定订单等待惩罚;Determine order waiting penalty based on the number of order waiting periods;

基于抵达时段概率分布和订单等待惩罚,确定订单拒绝成本。Determine the order rejection cost based on the arrival time probability distribution and order waiting penalty.

需要解释的是,订单拒绝成本为订单到来时电池未充满所设置的惩罚成本,由于电池未充满可能导致该笔订单交易失败,或者由于用户等待时间过长导致影响换电站评价,因此最小化充电成本目标函数包括订单拒绝成本的设置可以尽量减少用户的等待时间。另外,单时段可以设置为如5min、10min等,以营业时长为10h、单时段为10min为例,总时段数则为60。It should be explained that the order rejection cost is the penalty cost set when the battery is not fully charged when the order arrives. Since the battery is not fully charged, the order transaction may fail, or the user's waiting time is too long, which affects the evaluation of the battery swap station. Therefore, the setting of the order rejection cost in the objective function of minimizing the charging cost can minimize the user's waiting time. In addition, the single time period can be set to 5min, 10min, etc. For example, the business hours are 10h and the single time period is 10min, and the total number of time periods is 60.

在本实施方式中,可以通过订单每等待一个时段增加一个单位订单等待惩罚的方式来确定最终的订单等待惩罚,其中,订单等待惩罚以元为计量单位,通过各时段内的订单抵达概率与订单等待惩罚的乘积的求和可以得出期望意义上的订单拒绝成本,从而实现对于用户等待换电时间的综合考虑。当然上述单时段及订单等待惩罚的设置并非是一成不变的,本领域技术人员根据需求进行更改,另外,本领域技术人员可以通过更改单位订单等待惩罚的设置来改变订单拒绝成本在整个最小化充电成本目标函数中的权重。In this embodiment, the final order waiting penalty can be determined by adding a unit order waiting penalty for each waiting period, wherein the order waiting penalty is measured in yuan, and the order rejection cost in the desired sense can be obtained by summing the product of the order arrival probability in each period and the order waiting penalty, thereby achieving a comprehensive consideration of the user's waiting time for battery replacement. Of course, the above-mentioned single period and order waiting penalty settings are not static, and those skilled in the art can change them according to needs. In addition, those skilled in the art can change the weight of the order rejection cost in the entire minimization of charging cost objective function by changing the setting of the unit order waiting penalty.

1.2订单电费成本1.2 Order electricity cost

为订单电费成本,其中,(实数常数)为t时段电价,Pk(实数常数)为电池处于k档位时单时段内的充电侧度数,为0-1变量,若t时段内电池处于k档位则取1,否则取0。 is the electricity cost of the order, where (real constant) is the electricity price in period t, P k (real constant) is the charging degree in a single period when the battery is in gear k, It is a 0-1 variable. If the battery is in the k position during the t period, it takes 1, otherwise it takes 0.

在本实施方式中,订单电费成本基于如下方式确定:In this embodiment, the order electricity cost is determined based on the following method:

基于各时段的电价,确定订单电费成本。Determine the electricity cost of the order based on the electricity price in each time period.

具体地,基于单个时段内充电功率与充电侧度数的对应关系,确定各时段的充电侧度数;基于各时段的电价和各时段的充电侧度数,确定订单电费成本。Specifically, based on the corresponding relationship between the charging power and the charging-side kilowatt-hour in a single time period, the charging-side kilowatt-hour in each time period is determined; based on the electricity price in each time period and the charging-side kilowatt-hour in each time period, the order electricity cost is determined.

需要解释的是,充电档位k用于表征充电功率,在本实施方式中充电档位与充电功率之间存在对应关系,例如,1档对应的充电功率为10kw,2档为20kw等。订单电费成本为充电过程中产生的电网内电费成本,为t时段内的充电侧度数,公式意义大致为t时段内电池所处档位提升的充电侧度数。在电池充电过程中,一般通过AC/DC模块为电池进行充电,由于充电效率的存在,AC/DC模块放出的电量无法完全被电池吸收,在本实施方式中,充电侧度数是指充电模块侧产生的度数,表示充电模块侧放出的实际电量,通过充电侧度数来确定电费可以将充电效率纳入考虑,从而精准确定充电过程中产生的电网内电费成本。其中,充电效率和充电侧度数的具体数值可以通过实验进行测定,在确定出充电功率即电池侧的充电功率后,可以通过充电效率来进一步确认充电模块侧的放电功率。It should be explained that the charging gear k is used to represent the charging power. In this embodiment, there is a corresponding relationship between the charging gear and the charging power. For example, the charging power corresponding to gear 1 is 10kw, gear 2 is 20kw, etc. The order electricity cost is the electricity cost in the power grid generated during the charging process. is the degree of the charging side in the t period, and the meaning of the formula is roughly the degree of the charging side that is increased by the gear position of the battery in the t period. During the battery charging process, the battery is generally charged by an AC/DC module. Due to the existence of charging efficiency, the amount of electricity discharged by the AC/DC module cannot be completely absorbed by the battery. In this embodiment, the degree of the charging side refers to the degree generated on the charging module side, which represents the actual amount of electricity discharged on the charging module side. The charging efficiency can be taken into consideration when determining the electricity fee by the degree of the charging side, so as to accurately determine the electricity fee cost in the power grid generated during the charging process. Among them, the specific values of the charging efficiency and the degree of the charging side can be determined by experiments. After determining the charging power, that is, the charging power on the battery side, the discharge power on the charging module side can be further confirmed by the charging efficiency.

采用上述技术方案的情况下,通过各时段内电价与充电侧度数的乘积的求和可以得出电池充电过程中电网内实际产生的电费成本,最小化充电成本目标函数包括订单电费成本的设置使得可以综合考虑电价峰谷对充电成本的影响,为最小化充电成本可以实现在电价高的时段多充、在电价低的时段少充的充电策略。另外,通过充电侧度数来确认订单电费成本的设置并非是必须的,例如,本领域技术人员可以将充电模块侧的放电功率视作电池侧的充电功率,但在考虑到精准确定订单电费成本的情况下,通过充电侧度数来确认订单电费成本是一种较优的选择。此外,上述充电档位的设置并非是一成不变的,本领域技术人员也可根据需求更改充电档位与充电功率的对应关系。In the case of adopting the above technical solution, the actual electricity cost incurred in the power grid during the battery charging process can be obtained by summing the product of the electricity price and the charging side degree in each time period. The setting of the order electricity cost can be included in the minimization of the charging cost objective function so that the impact of the peak and valley of electricity prices on the charging cost can be comprehensively considered. In order to minimize the charging cost, a charging strategy of charging more in the period of high electricity prices and less in the period of low electricity prices can be implemented. In addition, it is not necessary to confirm the setting of the order electricity cost by the charging side degree. For example, those skilled in the art can regard the discharge power on the charging module side as the charging power on the battery side, but considering the accurate determination of the order electricity cost, confirming the order electricity cost by the charging side degree is a better choice. In addition, the setting of the above charging gear is not fixed, and those skilled in the art can also change the corresponding relationship between the charging gear and the charging power according to needs.

1.3满电滞留成本1.3 Fully charged retention cost

λ2ΣtLt为满电滞留成本,其中,λ2(实数常数,单位:元/时段)为电池满电惩罚,Lt为0-1变量,若t时段内电池处于满电状态则取1,否则取0。λ 2 Σ t L t is the full-charge retention cost, where λ 2 (real constant, unit: yuan/period) is the battery full-charge penalty, and L t is a 0-1 variable, which takes the value of 1 if the battery is fully charged within the t period, otherwise it takes the value of 0.

在本实施方式中,满电滞留成本基于如下方式确定:In this embodiment, the full-charge retention cost is determined based on the following method:

基于电池满电时段个数,确定满电滞留成本。Based on the number of battery full-charge periods, the full-charge retention cost is determined.

需要解释的是,满电滞留成本为订单到来前电池提前充满所设置的惩罚成本,∑tLt为电池满电时段个数。在本实施方式中,通过电池满电惩罚和电池满电时段个数乘积的求和可以得出满电滞留成本。由于电池满电时段个数的增加一方面会影响换电站的换电效率和换电收益,另一方面换电站内满电电池个数的增加在理论上增加了发生火灾或爆炸的风险,进而导致换电站内安全性降低。因此,最小化充电成本目标函数包括满电滞留成本的设置可以尽量减少满电电池的存储时间,提高换电站的换电效率、换电收益和换电站内的安全性。当然,本领域技术人员可以通过更改λ2即电池满电惩罚的数值来改变订单拒绝成本在整个最小化充电成本目标函数中的权重。It should be explained that the full-charge retention cost is the penalty cost set for fully charging the battery in advance before the order arrives, and ∑ t L t is the number of battery full-charge time periods. In this embodiment, the full-charge retention cost can be obtained by summing the product of the battery full-charge penalty and the number of battery full-charge time periods. On the one hand, the increase in the number of battery full-charge time periods will affect the battery replacement efficiency and battery replacement revenue of the battery replacement station. On the other hand, the increase in the number of fully charged batteries in the battery replacement station theoretically increases the risk of fire or explosion, which in turn leads to reduced safety in the battery replacement station. Therefore, the setting of the full-charge retention cost in the objective function of minimizing the charging cost includes that the setting of the full-charge retention cost can minimize the storage time of the fully charged battery, improve the battery replacement efficiency, battery replacement revenue and safety of the battery replacement station. Of course, those skilled in the art can change the weight of the order rejection cost in the entire minimization of the charging cost objective function by changing λ 2 , that is, the value of the battery full-charge penalty.

1.4充电启停成本1.4 Charging start-stop cost

λ3ΣtUt为充电启停成本,其中,λ3(实数常数,单位:元/次)为电池充电启停惩罚,Ut为0-1变量,若t时段内电池处于充电状态则取1,否则取0。λ 3 Σ t U t is the charging start-stop cost, where λ 3 (real constant, unit: yuan/time) is the battery charging start-stop penalty, and U t is a 0-1 variable, which takes the value of 1 if the battery is in a charging state within the t period, otherwise it takes the value of 0.

在本实施方式中,充电启停成本基于如下方式确定:In this embodiment, the charging start-stop cost is determined based on the following method:

基于充电状态变化次数,确定充电启停成本。Determine the charging start and stop cost based on the number of charging state changes.

需要解释的是,充电启停成本为电池启停导致的电池充电状态变化所设置的惩罚成本,∑tUt为充电状态变化次数。在本实施方式中,通过电池充电启停惩罚和充电状态变化次数乘积的求和得出充电启停成本。由于在电池充电过程中频繁启停可能对电池使用寿命产生不利影响,即加快电池衰减。因此,最小化充电成本目标函数包括充电启停成本的设置可以尽量减少充电状态变化次数,延缓电池衰减、保证电池安全性能。当然,本领域技术人员可以通过更改λ3即电池充电启停惩罚的数值来改变充电启停成本在整个最小化充电成本目标函数中的权重。It should be explained that the charging start-stop cost is the penalty cost set for the battery charging state change caused by the battery start-stop, and ∑ t U t is the number of charging state changes. In this embodiment, the charging start-stop cost is obtained by summing the product of the battery charging start-stop penalty and the number of charging state changes. Since frequent starts and stops during battery charging may have an adverse effect on the battery life, that is, accelerate battery decay. Therefore, the setting of the charging start-stop cost in the objective function of minimizing the charging cost includes minimizing the number of charging state changes, delaying battery decay, and ensuring battery safety performance. Of course, those skilled in the art can change the weight of the charging start-stop cost in the entire minimizing charging cost objective function by changing λ 3 , that is, the value of the battery charging start-stop penalty.

1.5先快后慢辅助成本1.5 Fast first then slow auxiliary cost

为先快后慢辅助成本,其中,λ4(实数常数,单位:元/次段)为电池充电先快后慢惩罚,Gk(整数常数)为电池处于k档位时单时段内的能级升高数,为0-1变量,若t时段内电池处于k档位则取1,否则取0。 is the auxiliary cost of charging fast first and then slowing down, where λ 4 (real constant, unit: yuan/time segment) is the penalty of charging the battery fast first and then slowing down, G k (integer constant) is the number of energy level increases in a single time period when the battery is in gear k, It is a 0-1 variable. If the battery is in position k during time period t, it takes the value 1, otherwise it takes the value 0.

在本实施方式中,先快后慢辅助成本基于如下方式确定:In this embodiment, the first fast then slow auxiliary cost is determined based on the following method:

基于各时段和各时段内的电池能级升高数,确定先快后慢辅助成本。Based on each time period and the number of battery energy level increases within each time period, the fast-then-slow assistance cost is determined.

需要解释的是,先快后慢辅助成本为考虑对电池先快后慢进行充电所设置的惩罚成本,为电池在t时段内所处挡位带来的电池能级升高数,其中,单时段内的能级升高数与充电功率具有对应关系。通过所处时段与所处时段内的电池能级升高数乘积的求和得出先快后慢辅助成本,有利于对充电过程中不同时段的充电功率进行限制。举例来说,处于充电过程后期时,t取值越大,为最小化充电成本,的取值越小,t时段对应的充电功率越小,而为保证电池充满则会同时要求t取值越小时,的取值越大,从而实现了对电池进行先快后慢充电的充电策略,实现延缓电池衰减的效果。另外,本领域技术人员可以通过更改λ4即电池充电先快后慢惩罚的数值来改变先快后慢辅助成本在整个最小化充电成本目标函数中的权重。It should be explained that the auxiliary cost of charging the battery first quickly and then slowly is the penalty cost set for charging the battery first quickly and then slowly. is the number of battery energy level increases caused by the gear position of the battery in the time period t, where the number of energy level increases in a single time period has a corresponding relationship with the charging power. The first fast and then slow auxiliary cost is obtained by summing the time period and the product of the battery energy level increase in the time period, which is conducive to limiting the charging power in different periods of the charging process. For example, in the later stage of the charging process, the larger the value of t is, the greater the charging cost is, The smaller the value of is, the smaller the charging power corresponding to the t period is. To ensure that the battery is fully charged, the smaller the value of t is required to be. The larger the value of is, the faster the battery is charged first and then the slower the battery is charged, and the slower the battery degradation is achieved. In addition, those skilled in the art can change the weight of the faster-then-slow auxiliary cost in the entire minimization charging cost objective function by changing λ 4, i.e., the value of the battery charging faster-then-slow penalty.

一种可能的实施方式中,首先确定出电池能级个数,而后根据电池能级个数确定出电池能级升高数,其中,电池能级个数基于如下方式确定:In a possible implementation, the number of battery energy levels is first determined, and then the number of battery energy level increases is determined based on the number of battery energy levels, wherein the number of battery energy levels is determined based on the following method:

基于电池类型和最小充电功率,确定电池能级个数。Determine the number of battery energy levels based on the battery type and minimum charging power.

在本实施方式中,单个时段可以设置为5min,最小充电功率设置为10kw,对于一种规格为150度的电池,在单时段内以最小功率充电时,电池充入度数为5/6度,以该充入度数为单能级所对应的充入度数,则对于该类型电池来说,电池能级数为150/(5/6)=180。充电功率为10kw时对应的电池能级升高数为1,充电功率为20kw时对应的电池能级升高数为2,以此类推可以得到所有充电功率在单时段内对应的电池能级升高数。In this embodiment, a single time period can be set to 5 minutes, and the minimum charging power is set to 10kw. For a battery with a specification of 150 degrees, when charging at the minimum power in a single time period, the battery charging degree is 5/6 degrees. Taking this charging degree as the charging degree corresponding to a single energy level, for this type of battery, the battery energy level number is 150/(5/6)=180. When the charging power is 10kw, the corresponding battery energy level increase number is 1, and when the charging power is 20kw, the corresponding battery energy level increase number is 2. By analogy, the battery energy level increase number corresponding to all charging powers in a single time period can be obtained.

2.约束条件2. Constraints

下面结合最小化充电成本目标函数和电池能级来分别对各项约束条件进行介绍:The following introduces each constraint condition in combination with the objective function of minimizing charging cost and battery energy level:

2.1电池能级跃迁约束2.1 Battery energy level transition constraints

其中,Bt(整数变量)为t时段开始时的电池能级,为t时段内所处档位带来的电池能级升高数,Gk(整数常数)为电池处于k档位时单时段内的能级升高数,为0-1变量,若t时段内电池处于k档位则取1,否则取0。Where Bt (integer variable) is the battery energy level at the beginning of period t, is the number of battery energy level increases caused by the gear position in the t period, G k (integer constant) is the number of energy level increases in a single period when the battery is in the k gear position, It is a 0-1 variable. If the battery is in the k position during the t period, it takes 1, otherwise it takes 0.

2.2电池初始能级约束2.2 Battery initial energy level constraints

Bt=1=B0(2)Bt =1B0 (2)

其中,B0(整数常数)为电池初始能级。Wherein, B 0 (integer constant) is the initial energy level of the battery.

2.3电池能级上下限约束2.3 Battery energy level upper and lower limit constraints

1≤Bt≤S+1(3)1≤B t ≤S+1(3)

其中,Bt(整数变量)为t时段开始时的电池能级,S为电池能级个数-1。Wherein, B t (integer variable) is the battery energy level at the beginning of period t, and S is the number of battery energy levels - 1.

2.4电池满电状态约束2.4 Battery Fully Charged State Constraints

Bt-S≤Lt≤Bt/(S+1) (5)B t -S≤L t ≤B t /(S+1) (5)

其中,Lt为0-1变量,若t时段内电池处于满电状态则取1,否则取0。Wherein, Lt is a 0-1 variable, which takes the value of 1 if the battery is fully charged during the period t, and takes the value of 0 otherwise.

需要解释的是,通过电池所处能级与电池能级升高数来对电池充电过程进行描述有利于对电池SOC(state ofcharge,剩余电量)进行精确建模,从而精准确定电池荷电水平即电池剩余电量,为优化电池充电模型提供前提和基础。在本实施方式中,可以基于电池能级个数,确定电池荷电水平约束,其中,电池荷电水平约束包括电池能级上下限约束和电池满电状态约束。采用上述技术方案的情况下,有利于从电池所处能级的角度来判断电池是否充满。例如,电池能级个数为180时,电池最低能级为1,最高能级为180,在电池处于最高能级时则判定电池处于满电状态,此时Lt取1,否则均取0。It should be explained that describing the battery charging process by the energy level of the battery and the number of battery energy level increases is conducive to accurately modeling the battery SOC (state of charge), so as to accurately determine the battery charge level, that is, the remaining battery power, and provide the premise and basis for optimizing the battery charging model. In this embodiment, the battery charge level constraints can be determined based on the number of battery energy levels, wherein the battery charge level constraints include the upper and lower limit constraints of the battery energy level and the battery full charge state constraints. When the above technical solution is adopted, it is conducive to judging whether the battery is full from the perspective of the battery energy level. For example, when the number of battery energy levels is 180, the lowest energy level of the battery is 1, and the highest energy level is 180. When the battery is at the highest energy level, it is determined that the battery is in a fully charged state. At this time, Lt takes 1, otherwise it takes 0.

2.5电池充电档位状态约束2.5 Battery charging status constraints

其中,Yt为0-1变量,若t时段内电池在充电则取1,否则取0,为0-1变量,若t时段内电池处于k档位则取1,否则取0。Where Yt is a 0-1 variable, which takes the value 1 if the battery is charging during the period t, and takes the value 0 otherwise. It is a 0-1 variable. If the battery is in the k position during the t period, it takes 1, otherwise it takes 0.

2.6电池充电状态变化约束2.6 Battery charging state change constraints

Ut≥Yt-Yt-1(6)U t ≥ Y t -Y t-1 (6)

Ut≥Yt-1-Yt(7)U t ≥ Y t-1 -Y t (7)

其中,Ut为0-1变量,若t-1时段至t时段内电池充电状态发生变化则取1,否则取0。Wherein, Ut is a 0-1 variable, which takes the value of 1 if the battery charging state changes from period t-1 to period t, and takes the value of 0 otherwise.

2.7订单等待惩罚约束2.7 Order waiting penalty constraints

其中,为0-1变量,若t时段订单抵达且电池处于满电状态则取0,否则取1,T(实数常数)为总时段数,Lt为0-1变量,若t时段内电池处于满电状态则取1,否则取0,M(实数常数)取Tλ1,λ1(实数常数,元/时段)为单位订单等待惩罚,(实数变量)为订单等待惩罚。in, is a 0-1 variable. If the order arrives in time period t and the battery is fully charged, it takes 0, otherwise it takes 1. T (real constant) is the total number of time periods. L t is a 0-1 variable. If the battery is fully charged in time period t, it takes 1, otherwise it takes 0. M (real constant) takes Tλ 1 , λ 1 (real constant, yuan/time period) is the unit order waiting penalty. (real variable) is the order waiting penalty.

需要解释的是,上述约束条件仅为一种实施例的约束条件的设置方法,本领域技术人员可以根据其他等式或不等式来对部分变量进行约束,例如,以对进行约束为例,通过同样可以起到对来说最小值为0、最大值为Tλ1的约束目的。It should be explained that the above constraint conditions are only a method for setting constraint conditions of an embodiment. Those skilled in the art can constrain some variables according to other equations or inequalities, for example, For example, by It can also play a role in For example, the minimum value is 0 and the maximum value is Tλ 1 .

本领域技术人员理解的是,最小化充电成本目标函数的设置并非是一成不变的,一种可替换实施方式中,混合整数线性规划模型可以包括最大化换电站收益目标函数及其对应的约束条件。另外,一种可能的实施方式中,λ1(单位订单等待惩罚)取值为1000,λ2(电池满电惩罚)和λ3(电池充电启停惩罚)均取值为0.1,λ4(电池充电先快后慢惩罚)取值为0.0005,但该取值设置并非是固定的,本领域技术人员可以根据需求进行更改来实现每项的权重调节,或者通过将λ2(电池满电惩罚)、λ3(电池充电启停惩罚)或λ4(电池充电先快后慢惩罚)取值为0来去除该项影响。此外,本领域技术人员可以根据需求更改各项成本的具体计算方法,只要不影响最小化充电成本效果的正常实现即可。It is understood by those skilled in the art that the setting of the objective function of minimizing the charging cost is not static. In an alternative implementation, the mixed integer linear programming model may include the objective function of maximizing the revenue of the battery swap station and its corresponding constraints. In addition, in a possible implementation, the value of λ 1 (unit order waiting penalty) is 1000, the value of λ 2 (battery full charge penalty) and λ 3 (battery charging start and stop penalty) are both 0.1, and the value of λ 4 (battery charging fast first and then slow penalty) is 0.0005, but the value setting is not fixed. Those skilled in the art can change it according to the needs to adjust the weight of each item, or remove the influence of this item by setting λ 2 (battery full charge penalty), λ 3 (battery charging start and stop penalty) or λ 4 (battery charging fast first and then slow penalty) to 0. In addition, those skilled in the art can change the specific calculation method of each cost according to the needs, as long as it does not affect the normal realization of the effect of minimizing the charging cost.

在一些实施方式中,将确定出的订单的抵达概率分布代入最小化充电成本目标函数中,并以式(1)-(10)为约束条件进行求解,从而确定出电池在各时段的充电功率。In some embodiments, the determined arrival probability distribution of the order is substituted into the objective function of minimizing the charging cost, and is solved with equations (1)-(10) as constraints to determine the charging power of the battery in each time period.

下面参阅图2,图2为本申请的一个实施例的基于抵达时段概率分布、最小化充电成本目标函数和约束条件,确定电池在各时段的充电功率的步骤流程图。Please refer to Figure 2 below, which is a flowchart of the steps of determining the charging power of the battery in each time period based on the probability distribution of the arrival time period, the minimization of the charging cost objective function and the constraints of an embodiment of the present application.

如图2所示,一种可能的实施方式中,通过以下步骤确定电池在各时段的充电功率:As shown in FIG2 , in a possible implementation manner, the charging power of the battery in each time period is determined by the following steps:

S201,基于抵达时段概率分布、最小化充电成本目标函数和约束条件,确定电池在各时段的电池能级升高数;S201, determining the number of battery energy level increases of the battery in each time period based on the probability distribution of the arrival time period, the objective function of minimizing the charging cost and the constraint conditions;

S202,基于各时段的电池能级升高数,确定电池在各时段内的充电功率。S202, determining the charging power of the battery in each time period based on the number of battery energy level increases in each time period.

在本实施方式中,结合上述充电档位和能级划分方式来看,充电档位为1档时,充电功率为10kw,对应的单时段内的电池能级升高数为1;充电档位为2档时,充电功率为20kw,对应的单时段内的电池能级升高数为2。因此可以得出,单时段内的电池能级升高数与所处档位具有对应关系即两者在数值上相同,因此在求解电池在各时段的充电功率时,可直接输出各时段内的电池能级升高数,并将此视作对应时段内的充电档位,而后控制电池以充电档位对应的充电功率进行充电。例如,直接输出各个时段的其取值等同于各时段内的充电档位,根据充电档位与充电功率间的对应关系,来确定各时段内的充电功率。In this embodiment, combined with the above-mentioned charging gear and energy level division method, when the charging gear is gear 1, the charging power is 10kw, and the corresponding battery energy level increase number in a single period is 1; when the charging gear is gear 2, the charging power is 20kw, and the corresponding battery energy level increase number in a single period is 2. Therefore, it can be concluded that the battery energy level increase number in a single period has a corresponding relationship with the gear position, that is, the two are numerically the same. Therefore, when solving the charging power of the battery in each period, the battery energy level increase number in each period can be directly output, and this can be regarded as the charging gear in the corresponding period, and then the battery can be controlled to charge with the charging power corresponding to the charging gear. For example, directly outputting the energy level of each period Its value is equivalent to the charging gear in each time period. The charging power in each time period is determined according to the corresponding relationship between the charging gear and the charging power.

但上述确定电池在各时段内的充电功率的方式并非是必须的,另一种可能的实施方式中,最小化充电成本目标函数以充电档位k为优化变量,此时可基于以下步骤确定电池在各时段的充电功率:However, the above method of determining the charging power of the battery in each time period is not necessary. In another possible implementation, the charging cost minimization objective function takes the charging gear k as the optimization variable. In this case, the charging power of the battery in each time period can be determined based on the following steps:

基于抵达时段概率分布、最小化充电成本目标函数和约束条件,确定电池在各时段的充电档位;Determine the charging level of the battery in each time period based on the probability distribution of the arrival period, the objective function of minimizing the charging cost and the constraints;

基于充电档位和充电功率间的对应关系,确定电池在各时段的充电功率。Based on the corresponding relationship between the charging gear and the charging power, the charging power of the battery in each time period is determined.

在本实施方式中,在求解电池在各时段的充电功率时可直接输出最优的各时段的充电档位,例如,在最小化充电成本目标函数中去掉先快后慢辅助成本该项时,无法直接输出各时段内的电池能级升高数,此时则直接确定各时段内的充电档位,例如,基于来进一步确定t时段内电池所处的充电档位。In this embodiment, when solving the charging power of the battery in each time period, the optimal charging gear for each time period can be directly output. For example, when the auxiliary cost of first fast and then slow is removed from the objective function of minimizing the charging cost, the number of battery energy level increases in each time period cannot be directly output. In this case, the charging gear in each time period is directly determined. For example, based on To further determine the charging position of the battery during time period t.

需要解释的是,虽然在本实施方式中的最小化充电成本目标函数以实现电池在订单抵达前充满为目的而进行设置,但其设置并非是必须的,例如,在电量不足时,可能由于换电站定价策略的影响,用户选择首先在电价高峰时段中少换电来维持车辆运行,在电价低谷时段中再来换取满电电池来实现总换电价格的降低。因此,本领域技术人员可以根据需求确定电池可被更换的状态,该状态则对应本实施方式中的满电状态。It should be explained that, although the objective function of minimizing charging cost in this embodiment is set for the purpose of fully charging the battery before the order arrives, its setting is not necessary. For example, when the battery is insufficient, due to the pricing strategy of the battery swap station, the user may choose to first swap less batteries during the peak electricity price period to maintain vehicle operation, and then exchange for fully charged batteries during the low electricity price period to reduce the total battery swap price. Therefore, those skilled in the art can determine the state in which the battery can be replaced according to the needs, and this state corresponds to the fully charged state in this embodiment.

本领域技术人员能够理解的是,本发明实现上述一实施例的方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读存储介质可以包括:能够携带上述计算机程序代码的任何实体或装置、介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器、随机存取存储器、电载波信号、电信信号以及软件分发介质等。It is understood by those skilled in the art that the present invention implements all or part of the processes in the method of the above embodiment, and can also be completed by instructing the relevant hardware through a computer program, and the above computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of each of the above method embodiments can be implemented. Among them, the above computer program includes computer program code, and the above computer program code can be in source code form, object code form, executable file or some intermediate form. The above computer-readable storage medium can include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium, etc. that can carry the above computer program code.

进一步,本申请还提供了一种电子设备。参阅附图3,图3是根据本申请的一个实施例的电子设备主要结构示意图。如图3所示,本申请实施例中的电子设备主要包括处理器301和存储装置302,存储装置302可以被配置成存储执行上述方法实施例的电池充电控制方法的程序,处理器301可以被配置成用于执行存储装置302中的程序,该程序包括但不限于执行上述方法实施例的电池充电控制方法的程序。为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。Furthermore, the present application also provides an electronic device. Refer to Figure 3, which is a schematic diagram of the main structure of an electronic device according to an embodiment of the present application. As shown in Figure 3, the electronic device in the embodiment of the present application mainly includes a processor 301 and a storage device 302. The storage device 302 can be configured to store a program for executing the battery charging control method of the above method embodiment, and the processor 301 can be configured to execute the program in the storage device 302, which includes but is not limited to the program for executing the battery charging control method of the above method embodiment. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application.

在本申请的一些可能的实施方式中,电子设备可以包括多个处理器301和多个存储装置302。而执行上述、方法实施例的程序启动的控制方法的程序可以被分割成多段子程序,每段子程序分别可以由处理器301加载并运行以执行上述方法实施例的程序启动的控制方法的不同步骤。具体地,每段子程序可以分别存储在不同的存储装置302中,每个处理器301可以被配置成用于执行一个或多个存储装置302中的程序,以共同实现上述方法实施例的电池充电控制方法,即每个处理器301分别执行上述方法实施例的程序启动的控制方法的不同步骤,来共同实现上述方法实施例的电池充电控制方法。In some possible implementations of the present application, the electronic device may include multiple processors 301 and multiple storage devices 302. The program for executing the program-initiated control method of the above-mentioned method embodiment may be divided into multiple subprograms, and each subprogram may be loaded and run by the processor 301 to execute different steps of the program-initiated control method of the above-mentioned method embodiment. Specifically, each subprogram may be stored in different storage devices 302, and each processor 301 may be configured to execute the programs in one or more storage devices 302 to jointly implement the battery charging control method of the above-mentioned method embodiment, that is, each processor 301 executes different steps of the program-initiated control method of the above-mentioned method embodiment to jointly implement the battery charging control method of the above-mentioned method embodiment.

上述多个处理器301可以是部署于同一个设备上的处理器,例如上述电子设备可以是由多个处理器组成的高性能设备,上述多个处理器301可以是该高性能设备上配置的处理器。此外,上述多个处理器301也可以是部署于不同设备上的处理器,例如上述电子设备可以是服务器集群,上述多个处理器301可以是服务器集群中不同服务器上的处理器。The above-mentioned multiple processors 301 may be processors deployed on the same device. For example, the above-mentioned electronic device may be a high-performance device composed of multiple processors, and the above-mentioned multiple processors 301 may be processors configured on the high-performance device. In addition, the above-mentioned multiple processors 301 may also be processors deployed on different devices. For example, the above-mentioned electronic device may be a server cluster, and the above-mentioned multiple processors 301 may be processors on different servers in the server cluster.

进一步,本发明还提供了一种计算机可读存储介质。在根据本发明的一个计算机可读存储介质实施例中,计算机可读存储介质可以被配置成存储执行上述方法实施例的电池充电控制方法的程序,该程序可以由处理器加载并运行以实现上述电池充电控制方法。为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该计算机可读存储介质可以是包括各种电子设备形成的存储装置设备,可选的,本申请实施例中计算机可读存储介质是非暂时性的计算机可读存储介质。Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium can be configured to store a program for executing the battery charging control method of the above-mentioned method embodiment, and the program can be loaded and run by the processor to implement the above-mentioned battery charging control method. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present application is a non-temporary computer-readable storage medium.

进一步,本发明还提供了一种换电站。在根据本发明的一个换电站的实施例中,换电站可以包括上述电子设备实施例中的电子设备。Furthermore, the present invention also provides a battery swap station. In an embodiment of a battery swap station according to the present invention, the battery swap station may include the electronic device in the above electronic device embodiment.

采用上述技术方案的情况下,换电站可以通过充分考虑车辆抵达换电站的概率后优化的电池充电规划算法来控制电池充电。When the above technical solution is adopted, the battery swap station can control the battery charging by optimizing the battery charging planning algorithm after fully considering the probability of the vehicle arriving at the battery swap station.

本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本申请的范围之内并且形成不同的实施例。例如,在本申请的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims of the present application, any one of the claimed embodiments may be used in any combination.

至此,已经结合附图所示的优选实施方式描述了本申请的技术方案,但是,本领域技术人员容易理解的是,本申请的保护范围显然不局限于这些具体实施方式。在不偏离本申请的原理的前提下,本领域技术人员可以对相关技术特征作出等同的更改或替换,这些更改或替换之后的技术方案都将落入本申请的保护范围之内。So far, the technical solutions of the present application have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present application.

Claims (10)

1. A battery charge control method, characterized by comprising:
Acquiring probability distribution of arrival time periods of orders;
determining the charging power of the battery in each period based on the arrival period probability distribution and a preset charging power planning model;
Controlling the battery to charge based on the charging power of each period;
The charging power planning model is used for representing the corresponding relation between the time interval probability distribution and the charging power of each time interval.
2. The battery charge control method of claim 1, wherein determining the charge power of the battery at each time interval based on the arrival time interval probability distribution and a preset charge power planning model further comprises:
and determining the charging power of the battery in each period based on the arrival period probability distribution and a mixed integer linear programming model.
3. The battery charge control method of claim 2, wherein the mixed integer linear programming model includes a minimization of a charge cost objective function and constraints, the control method further comprising:
determining a charging power of the battery at each time period based on the arrival time period probability distribution, the minimized charging cost objective function, and the constraint condition.
4. The battery charge control method according to claim 3, wherein the minimized charge cost objective function uses a charge gear as an optimization variable, the control method further comprising:
determining a charging gear of the battery in each period based on the arrival period probability distribution, the minimized charging cost objective function and the constraint condition;
And determining the charging power of the battery in each period based on the corresponding relation between the charging gear and the charging power.
5. The battery charge control method of claim 3, wherein the minimized charge cost objective function comprises an order rejection cost, an order electric charge cost, a full charge retention cost, a charge start-stop cost, and a fast-then-slow auxiliary cost.
6. The battery charge control method according to claim 5, wherein the order rejection cost is determined based on:
And determining order rejection cost based on the arrival period probability distribution.
7. The battery charge control method of claim 6, wherein said determining an order rejection cost based on said arrival period probability distribution further comprises:
determining an order wait penalty based on the number of order wait periods;
The order rejection cost is determined based on the arrival period probability distribution and the order wait penalty.
8. The battery charge control method according to claim 5, wherein the order electric charge cost is determined based on:
And determining the electricity fee cost of the order based on the electricity prices of the time periods.
9. The battery charge control method according to claim 8, wherein said determining the order charge cost based on the electricity prices for each period further comprises:
Determining the charging side degree of each period based on the corresponding relation between the charging power and the charging side degree in the single period;
and determining the electricity charge cost of the order based on the electricity price of each period and the charging side degree of each period.
10. The battery charge control method according to claim 5, wherein the full-power retention cost is determined based on:
Determining the full-power retention cost based on the number of full-power periods of the battery;
And/or
The charging start-stop cost is determined based on the following mode:
and determining the charge start-stop cost based on the charge state change times.
CN202410956205.0A 2024-07-16 2024-07-16 Battery charging control method, storage medium, electronic device and battery replacement station Pending CN118894004A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410956205.0A CN118894004A (en) 2024-07-16 2024-07-16 Battery charging control method, storage medium, electronic device and battery replacement station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410956205.0A CN118894004A (en) 2024-07-16 2024-07-16 Battery charging control method, storage medium, electronic device and battery replacement station

Publications (1)

Publication Number Publication Date
CN118894004A true CN118894004A (en) 2024-11-05

Family

ID=93269070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410956205.0A Pending CN118894004A (en) 2024-07-16 2024-07-16 Battery charging control method, storage medium, electronic device and battery replacement station

Country Status (1)

Country Link
CN (1) CN118894004A (en)

Similar Documents

Publication Publication Date Title
CN113410900B (en) Micro-grid HESS optimization configuration method and system based on self-adaptive difference whale optimization
CN112671022B (en) Method, system, terminal and storage medium for optimizing capacity configuration of photovoltaic charging station
US20230148201A1 (en) Method and system for supplying power to device, and related device
TWI712243B (en) Charge and discharge control apparatus and method for an energy storage system
CN112491039A (en) Control method for power exchange between main network and household optical storage system
Cui et al. Optimal control of PEVs for energy cost minimization and frequency regulation in the smart grid accounting for battery state-of-health degradation
CN117559410A (en) User-side energy storage system revenue calculation and control method and device
CN119863255A (en) Time-interval composite operation method and system for independent energy storage power station based on target optimization
CN118651110A (en) Electric vehicle charging strategy generation method and related device considering carbon emissions
CN109245155A (en) The credible capacity evaluating method of power distribution network broad sense power supply power transformation based on uncertain theory
CN119891157A (en) Source network load storage collaborative planning method, device and medium considering safe operation of power distribution network
CN109921464A (en) Power distribution network broad sense power supply power transformation is credible capacity evaluating method, device and calculating equipment
CN118211983A (en) A pricing method for shared energy storage considering new energy consumption and energy storage participation in frequency regulation
CN115186962A (en) User side energy storage scheduling optimization method, device and system considering demand
CN119341063B (en) Charging and discharging method of energy storage system, energy storage system and storage medium
CN118894004A (en) Battery charging control method, storage medium, electronic device and battery replacement station
CN120546085A (en) Light storage and charge power coordination optimization regulation and control method and device for residential power distribution area
CN118894005A (en) Battery charging and discharging control method, storage medium, electronic device and battery replacement station
CN116404683A (en) Energy regulation method, device, terminal and medium of a flexible direct interconnection system
CN117010707A (en) Lithium battery-based power load benefit assessment methods, systems, equipment and media
CN115912665A (en) Multi-type energy storage selection method, device, equipment and medium
CN118894000A (en) Energy management control method, storage medium, electronic device and battery replacement station
CN118889436B (en) Power consumption control method of power equipment integrated system based on demand side response model
CN118894003A (en) Battery charging control method, system, storage medium, electronic device and battery replacement station
CN110768255A (en) Load regulation method, system and storage medium considering safe state of charging facility

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination