Battery charging method and device for battery swap station, battery swap station and storage medium
By optimizing the charging decision-making quantity of battery swap stations, combining time-of-use electricity prices and total battery swapping demand, and using a linear programming solver to optimize the charging of each charging bay, the problem of high charging costs at battery swap stations is solved, and charging costs are reduced and resources are used efficiently.
Patent Information
- Application Number
- CN202310532209.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-11
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2043-05-11
AI Technical Summary
The charging cost of battery swap stations increases due to the large price difference between the peak and trough periods of the power grid's time-of-use electricity prices. Existing technologies make it difficult to effectively optimize charging decisions to reduce total charging costs.
By obtaining time-of-use electricity prices and charging parameters, combined with the total battery replacement demand, the charging decision-making quantity of the charging warehouse is optimized. With the goal of minimizing the total charging cost, the optimization granularity is refined to each charging warehouse, and the optimization solution is performed using Python's pulp linear programming solver to determine the charging decision-making quantity of each charging warehouse in each time period.
It achieves precise control of the charging cost of battery swap stations, reduces charging costs, ensures that each battery swap vehicle has a battery to swap, avoids waste of charging resources, and reduces charging volume during peak electricity price periods to reduce total costs.
Smart Images

Figure CN116476665B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of new energy, and in particular to a battery charging method and device for a battery swap station, a battery swap station, and a storage medium. Background Art
[0002] With the development of battery technology, electric vehicles and electric engineering vehicles have occupied an increasingly larger share of the market. The charging demand that could originally be met by charging piles has gradually evolved into a "come and go" battery replacement demand. Specifically, a battery swap station is set up with multiple charging bays, which are used to charge the batteries. When there is a need for battery replacement, the battery on the vehicle is placed in the charging bay and the charged battery is taken out from the charging bay to quickly achieve battery replacement. Since the price difference between the peak and trough periods of the power grid's time-of-use electricity price is more than 3 times, if the charging bays are concentrated in the peak period of electricity prices, the charging cost of the battery swap station will be greatly increased. Therefore, the charging cost of the battery swap station has become an urgent problem to be solved. Summary of the Invention
[0003] In view of this, the present invention provides a battery charging method and device for a battery swap station, a battery swap station, and a storage medium to solve the charging cost problem of the battery swap station.
[0004] In a first aspect, the present invention provides a battery charging method for a battery swap station, the method comprising:
[0005] Obtaining time-of-use electricity prices and charging parameters of the battery swap station, wherein the charging parameters include charging power, the number of charging bays, and charging decision quantities of the charging bays;
[0006] Obtaining the total battery swapping demand of the battery swapping station within a preset time period;
[0007] Determining the total charging amount and total charging cost of the battery swap station within the preset time period based on the charging parameters and the time-of-use electricity price;
[0008] Taking the relationship between the total battery replacement demand and the total charging amount as the first constraint, and taking the lowest total charging cost as the goal, the charging decision amount of the charging bin is optimized to charge the battery in the charging bin based on the optimization result.
[0009] The battery charging method for the battery swap station provided in the embodiment of the present invention combines time-of-use electricity prices and charging parameters to obtain the total charging amount and total charging cost within a preset time period. With the optimization goal of ensuring the lowest total charging cost, the charging decision quantity of each charging compartment in the battery swap station is optimized, and the optimization granularity is refined to each charging compartment, thereby reducing the optimization granularity and thereby reducing the charging cost of the battery swap station.
[0010] In some optional embodiments, determining the total charging cost of the battery swap station within a preset time period based on the charging parameters and the time-of-use electricity price includes:
[0011] Based on the time-of-use electricity price, determining the electricity price for each unit time period within the preset time period;
[0012] For each unit time period, determining a unit charging cost of the charging bin based on a product of the charging decision amount of the charging bin, the charging power, and the electricity price;
[0013] Based on the number of the charging bays and the number of the unit time periods, the unit charging costs of the charging bays are accumulated to determine the total charging cost.
[0014] The battery charging method for a battery swap station provided in an embodiment of the present invention divides a preset time period into multiple unit time periods, and then determines the unit charging cost for each unit time period, further refining and optimizing the granularity. Subsequently, optimizing the charging decision amount on this basis can further reduce the charging cost of the battery swap station.
[0015] In some optional embodiments, determining the unit charging cost of the charging bin based on the product of the charging decision amount of the charging bin, the charging power, and the electricity price includes:
[0016] Obtaining the charging efficiency and cost parameters of the battery swap station, wherein the cost parameters include a tax rate;
[0017] determining a cost coefficient term based on the charging efficiency and the cost parameter;
[0018] The unit charging cost is determined based on the product of the cost coefficient item, the charging decision amount of the charging bin, the charging power, and the electricity price.
[0019] The battery charging method for a battery swap station provided in an embodiment of the present invention introduces charging efficiency and cost coefficient items to determine the unit charging cost, so that the calculation of the unit charging cost is more in line with the actual usage scenario and the accuracy of the obtained unit charging cost is improved.
[0020] In some optional embodiments, the optimization of the charging decision amount of the charging warehouse with the relationship between the total battery replacement demand and the total charging amount as the first constraint and the minimum total charging cost as the goal includes:
[0021] Determining the first constraint as that the total charge amount in any time period is greater than or equal to the total battery replacement demand in the any time period, where the any time period is a time period from the start of the preset time period to any unit time period;
[0022] Based on the first constraint, with the goal of minimizing the charging cost, the charging decision amount of the charging warehouse in each unit time period is optimized, and the charging decision amount is charging or not charging.
[0023] The battery charging method for a battery swap station provided in an embodiment of the present invention divides a preset time period into unit time periods for optimization, thereby obtaining the charging decision amount of each charging compartment in each unit time period, thereby realizing precise charging control of the charging compartment.
[0024] In some optional embodiments, the optimizing the charging decision amount of the charging warehouse in each unit time period based on the first constraint and aiming at minimizing the charging cost includes:
[0025] Obtaining the number of battery swapping vehicles associated with the battery swap station within the unit time period and the battery status of the charging compartment within the unit time period, where the battery status is determined based on the battery power or the charging decision amount of the charging compartment;
[0026] Determining a second constraint based on the number of battery-swapping vehicles and the battery status;
[0027] Based on the first constraint and the second constraint, with the goal of minimizing the charging cost, the charging decision amount of the charging warehouse in each unit time period is optimized.
[0028] The battery charging method for a battery swap station provided in an embodiment of the present invention also introduces the number of battery swap vehicles and the battery status as a second constraint in the scenario where the number of battery swap vehicles is determined. Combined with the first constraint and the second constraint, the charging decision amount is optimized, thereby improving the accuracy of the obtained charging decision amount.
[0029] In some optional implementations, determining the second constraint based on the number of battery-swapping vehicles and the battery status includes:
[0030] For any unit time period, the demand for battery replacement batteries is determined using the number of battery replacement vehicles;
[0031] Determining the amount of replaceable batteries at the battery swap station based on the relationship between the amount of power in the battery in the charging compartment and a preset amount of power;
[0032] Determining the second constraint includes that the amount of replaceable batteries in any unit time period is greater than or equal to the required amount of replaceable batteries.
[0033] The battery charging method for a battery swap station provided in an embodiment of the present invention determines the second constraint based on the number of replaceable batteries at the battery swap station and the demand for replaceable batteries, ensuring that each battery swap vehicle has a replaceable battery.
[0034] In some optional implementations, determining the second constraint based on the number of battery-swapping vehicles and the battery status includes:
[0035] For any unit time period, the number of rechargeable batteries of the battery swap station is determined using the charging strategy of the charging warehouse;
[0036] Determining the second constraint includes that the amount of replaceable batteries in any unit time period is greater than or equal to the required amount of replaceable batteries.
[0037] The battery charging method for the battery swap station provided in an embodiment of the present invention constrains the number of replaceable batteries to be greater than or equal to the demand for replacement batteries, ensuring that within each unit time period, the maximum number of replaceable batteries is the demand for replacement batteries, avoiding waste of charging resources and further reducing charging costs.
[0038] In some optional embodiments, the optimizing the charging decision amount of the charging warehouse in each unit time period based on the first constraint and the second constraint and with the goal of minimizing the charging cost includes:
[0039] If the charging power is less than the preset power threshold, the number of batteries to be charged simultaneously in the battery swap station is determined to be the preset number of batteries;
[0040] Determining the preset number of batteries as a third constraint;
[0041] Based on the first constraint, the second constraint and the third constraint, the charging decision amount of the charging warehouse is optimized with the goal of minimizing the total charging cost.
[0042] The battery charging method for a battery swap station provided by an embodiment of the present invention only charges batteries with a preset battery output at the same time when the current charging power is less than a preset power threshold, thereby ensuring the safety of power grid operation.
[0043] In a second aspect, an embodiment of the present invention further provides a battery charging device for a battery swap station, the device comprising:
[0044] A charging parameter acquisition module is used to obtain the time-of-use electricity price and the charging parameters of the battery swap station, wherein the charging parameters include the charging power, the number of charging compartments, and the charging decision amount of the charging compartments;
[0045] A battery swap demand acquisition module is used to obtain the total battery swap demand of the battery swap station within a preset time period;
[0046] A charging amount and charging cost determination module, configured to determine the total charging amount and total charging cost of the battery swap station within the preset time period based on the charging parameters and the time-of-use electricity price;
[0047] The charging decision quantity optimization module is used to optimize the charging decision quantity of the charging bin with the relationship between the total battery replacement demand and the total charging quantity as the first constraint and the minimum total charging cost as the goal, so as to charge the battery in the charging bin based on the optimization result.
[0048] In a third aspect, an embodiment of the present invention further provides a battery swap station, including:
[0049] Charging compartment, used to charge the battery;
[0050] A controller is connected to the charging compartment, and the controller controls the charging of the battery in the charging compartment by executing the battery charging method of the battery swap station described in the first aspect or any corresponding embodiment thereof.
[0051] In a fourth aspect, the present invention provides a computer device comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the battery charging method for a battery swap station according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0052] In a fifth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the battery charging method for a battery swap station according to the first aspect or any corresponding embodiment thereof.
[0053] It should be noted that the corresponding beneficial effects of the battery charging device, battery charging station, computer equipment and computer-readable storage medium provided in the embodiments of the present invention can be found in the description of the corresponding beneficial effects of the battery charging method of the battery charging station above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0055] Figure 1 is a flow chart of a battery charging method at a battery swap station according to an embodiment of the present invention;
[0056] Figure 2 is a flow chart of a battery charging method at another battery swap station according to an embodiment of the present invention;
[0057] Figure 3is a flow chart of a battery charging method at another battery swap station according to an embodiment of the present invention;
[0058] Figure 4 is a schematic diagram of a charging scheduling result according to an embodiment of the present invention;
[0059] Figure 5 is a structural block diagram of a battery charging device of a battery swap station according to an embodiment of the present invention;
[0060] Figure 6 Schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0061] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0062] The battery charging method for a battery swap station provided in an embodiment of the present invention is used to control the charging of batteries in each charging bay in the battery swap station. Specifically, with the lowest total charging cost as the optimization goal and the relationship between the total battery swapping demand and the total charging volume at the battery swap station within a preset time period as the first constraint, the charging decision quantity within the total charging cost is optimized to obtain the charging decision quantity for each charging bay within the preset time period. This method refines the optimization granularity to each charging bay in the battery swap station, reducing charging costs by optimizing the charging decision quantity of each charging bay.
[0063] An embodiment of the present invention further provides a battery swap station, comprising a charging bay and a controller, wherein the controller is connected to the charging bay. The battery swap station comprises at least two charging bays, and the specific number of charging bays is set according to actual needs and is not limited herein. Each charging bay is used to place and charge batteries, and whether the batteries in the charging bay need to be charged is controlled by the controller. The controller controls the charging of the batteries in the charging bay based on the charging decision amount obtained by the above optimization, thereby reducing the charging cost of the battery swap station.
[0064] Embodiments of the present invention also provide a computer processing device, such as a server. The computer processing device is connected to at least one battery swap station and is configured to perform cluster control of the battery swap stations. For example, the server controls charging at multiple battery swap stations, optimizes the charging decision quantity for each charging bay at each battery swap station, and then controls charging for the corresponding charging bays at the corresponding battery swap stations based on the charging decision quantity.
[0065] Based on this, the application scenario of the battery charging method for a battery swap station provided by the embodiment of the present invention can be that each battery swap station independently controls the batteries in its own charging compartment, or that a server performs cluster control of multiple battery swap stations, etc. The specific application scenario is set according to actual needs and is not limited here.
[0066] According to an embodiment of the present invention, an embodiment of a battery charging method for a battery swap station is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0067] In this embodiment, a battery charging method for a battery swap station is provided, which can be used in a controller or computer device in the above-mentioned battery swap station. Figure 1 FIG. 1 is a flow chart of a battery charging method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0068] Step S101, obtaining the time-of-use electricity price and charging parameters of the battery swap station.
[0069] Among them, the charging parameters include charging power, the number of charging compartments, and the charging decision amount of the charging compartments.
[0070] Time-of-use electricity prices are set by the power departments of each region and are divided into low-peak and high-peak periods. Accordingly, prices are lower during low-peak periods and higher during high-peak periods. Low-peak and high-peak periods correspond to specific times of day. For example, peak electricity consumption is from 7:00 PM to 9:00 PM daily, while the rest of the day is low-peak. Of course, the time divisions for low-peak and high-peak periods can vary depending on the season, and this is not a limitation here.
[0071] For example, if 24 hours a day is divided into four electricity consumption intervals, the electricity price of each electricity consumption interval is different. Accordingly, the time-of-use electricity price is shown in formula (1):
[0072]
[0073] in, is the electricity price in time period j, Time period j belongs to the electricity consumption interval T g The electricity price at that time, Time period j belongs to the electricity consumption interval T p The electricity price at that time, Time period j belongs to the electricity consumption interval T f The electricity price at that time, Time period j belongs to the electricity consumption interval TJ The electricity price at that time.
[0074] The number of charging bays is related to the battery swap station. The number of charging bays in different battery swap stations may be the same or different, and there is no limitation on this.
[0075] The charging power is related to the battery swap station. The configurable charging power includes but is not limited to 240kw, 260kw, and 280kw. The specific value is set according to actual needs and is not limited here. For example, the charging power is set to a constant power of 260kw.
[0076] The charging decision quantity of the charging station includes, but is not limited to, whether to charge the charging station or the power used for charging, etc. The specific amount of the charging decision quantity is not limited here. For example, the charging decision quantity of the charging station can be charging or not charging. If the charging decision quantity is 1, it means charging; if the charging decision quantity is 0, it means not charging.
[0077] Step S102: Obtain the total battery swapping demand of the battery swap station within a preset time period.
[0078] The preset time period is the cycle of charging decision-making. If the preset time period is 24 hours, the battery charging method optimizes the charging decision amount of each charging compartment within 24 hours.
[0079] The total demand for battery replacement can be obtained through a power consumption prediction model, which is trained by collecting a large amount of charging sample data. The input of the model is a preset time period, and the output is the total demand for battery replacement.
[0080] Alternatively, when the fleet corresponding to the battery swap station is known, the fleet's historical battery swap order data, fleet transportation order data, and daily, weekly, and monthly time characteristics are used to build a model, predict the battery swap demand for the next day, and obtain the total battery swap demand of the fleet in the next day.
[0081] Of course, other methods may also be used to predict the total charging demand within a preset time period, and no limitation is imposed on the specific prediction method.
[0082] Step S103: Based on the charging parameters and the time-of-use electricity price, determine the total charging amount and the total charging cost of the battery swap station within a preset time period.
[0083] The total charge capacity at a battery swap station within a preset time period is the sum of the charge capacities of each charging bay within that time period. The charge capacity of a charging bay is the product of its charging duration and charging power. Charging duration is related to the charging decision metric. Therefore, the total charge capacity of the battery swap station obtained here is a variable related to the charging decision metric.
[0084] The total charging cost is the product of the amount charged during a preset time period and the corresponding electricity price. The electricity price varies at different times within the preset time period. Therefore, we combine the electricity price for each time period with the time-of-use electricity price. This, combined with the amount charged during each time period, yields the total charging cost for the battery swap station during the preset time period.
[0085] Step S104, taking the relationship between the total battery replacement demand and the total charging amount as the first constraint and the lowest total charging cost as the goal, optimize the charging decision quantity of the charging bin to charge the battery in the charging bin based on the optimization result.
[0086] To meet the total demand for battery swapping, the total charging capacity of the battery swap station must be greater than or equal to the total demand for battery swapping to ensure charging demand. Therefore, with the above relationship between the total demand for battery swapping and the total charging capacity as the first constraint and the lowest total charging cost as the optimization goal, the charging decision-making component of the total charging cost is optimized to obtain the optimization result.
[0087] The total charge amount is a variable related to the charging decision-making amount, and the total charging cost is also a variable related to the charging decision-making amount. Among them, the pulp linear programming solver in Python can be used to optimize and solve to obtain the optimization result.
[0088] As described above, the battery charging method is used to predict the charging decision quantity of the charging compartment within a preset time period in the future. After the above optimization process, the charging decision quantity is obtained, and the charging of the battery in the charging compartment is controlled based on the charging decision quantity within the preset time period in the future.
[0089] The battery charging method for the battery swap station provided in this embodiment combines time-of-use electricity prices and charging parameters to obtain the total charging amount and total charging cost within a preset time period. With the optimization goal of ensuring the lowest total charging cost, the charging decision quantity of each charging compartment in the battery swap station is optimized, and the optimization granularity is refined to each charging compartment, thereby reducing the optimization granularity and thereby reducing the charging cost of the battery swap station.
[0090] In this embodiment, a battery charging method for a battery swap station is provided, which can be used in a controller or computer device in the above-mentioned battery swap station. Figure 2 FIG. 1 is a flow chart of a battery charging method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0091] Step S201, obtaining the time-of-use electricity price and the charging parameters of the battery swap station.
[0092] The charging parameters include charging power, the number of charging bays, and the charging decision volume of the charging bays. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0093] Step S202: Obtain the total demand for battery swapping at the battery swap station within a preset time period. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0094] Step S203: Based on the charging parameters and the time-of-use electricity price, determine the total charging amount and the total charging cost of the battery swap station within a preset time period.
[0095] Specifically, the above step S203 includes:
[0096] Step S2031: Based on the time-of-use electricity price, determine the electricity price of each unit time period within a preset time period.
[0097] The preset time period is divided into multiple unit time periods, using the unit time period as the minimum time unit. For example, if the preset time period is 24 hours a day, then the unit time period is 1 hour. Of course, the unit time period can also be 30 minutes, 2 hours, etc. There is no limitation here, and it is set according to actual needs.
[0098] The time-of-use electricity price is described in detail above. By comparing each unit time period with the above-mentioned electricity consumption interval, the electricity consumption interval to which each unit time period belongs is determined. Then, the electricity price of each unit time period can be obtained by combining the electricity prices of each electricity consumption interval.
[0099] Step S2032: For each unit time period, the unit charging cost of the charging warehouse is determined based on the product of the charging decision amount, charging power and electricity price of the charging warehouse.
[0100] Taking the unit time period as the minimum statistical time length, calculate the product of the charging decision quantity, charging power and the electricity price obtained in the above step S2031 of the charging warehouse within the corresponding unit time period to obtain the unit charging cost of each charging warehouse.
[0101] For example, taking the charging power of 260kw as an example, the unit charging cost of each charging warehouse is expressed by formula (2):
[0102]
[0103] Among them, f ij is the unit charging cost of charging station i in unit time period j, x ij is the charging decision quantity of charging warehouse i in unit time period j, p ij is the charging power of charging compartment i in unit time period j, is the electricity price of charging station i in unit time period j, x ij is the charging decision amount of charging warehouse i in unit time period j, x ij =0 means that charging station i is not charging in unit time period j, xij =1 indicates that charging compartment i is charged in unit time period j.
[0104] In some optional implementations, step S2032 includes:
[0105] Step a1: Obtain the charging efficiency and cost parameters of the battery swap station, where the cost parameters include the tax rate.
[0106] Step a2: determining a cost coefficient item based on the charging efficiency and the cost parameter.
[0107] Step a3: Determine the unit charging cost based on the product of the cost coefficient item, the charging decision quantity of the charging compartment, the charging power, and the electricity price.
[0108] Charging efficiency is related to the battery swap station. The specific value can be constant or decrease with the length of time the battery swap station is used. Based on this, charging efficiency can be a fixed value or a variable that changes over time, and can be set according to actual needs.
[0109] Cost parameters include tax rates and other parameters, which are used to represent the parameters used for fee settlement. Since the charging efficiency and cost parameters are consistent for each charging station, to simplify the calculation, the charging efficiency and cost parameters are combined into a cost coefficient term, which is used to calculate the unit charging cost.
[0110] For example, the cost coefficient term is expressed using formula (4):
[0111]
[0112] Where μ is the cost coefficient term, η is the charging efficiency, For the tax rate.
[0113] Based on equations (2) to (4), the unit charging cost f ij ' can be expressed using formula (5):
[0114]
[0115] Among them, f ij ′ is the unit charging cost of charging compartment i in unit time period j.
[0116] By introducing charging efficiency and cost coefficient items to determine the unit charging cost, the calculation of the unit charging cost is more in line with the actual usage scenario, and the accuracy of the obtained unit charging cost is improved.
[0117] Step S2033: Based on the number of charging bays and the number of unit time periods, the unit charging costs of the charging bays are accumulated to determine the total charging cost.
[0118] Taking the preset time period as 24 and the existence of N charging bays in the battery swap station as an example, the total charging cost is expressed by formula (6):
[0119]
[0120] Among them, z is the total charging cost, and N is the number of charging bays in the battery swap station.
[0121] Step S204: Taking the relationship between the total battery replacement demand and the total charging capacity as the first constraint and the lowest total charging cost as the goal, optimize the charging decision quantity of the charging compartment, so as to charge the batteries in the charging compartment based on the optimization results. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.
[0122] The battery charging method for the battery swap station provided in this embodiment divides the preset time period into multiple unit time periods, and then determines the unit charging cost for the unit time period, further refining the optimization granularity. Subsequently, optimizing the charging decision amount on this basis can further reduce the charging cost of the battery swap station.
[0123] In this embodiment, a battery charging method for a battery swap station is provided, which can be used in a controller or computer device in the above-mentioned battery swap station. Figure 3 FIG. 1 is a flow chart of a battery charging method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0124] Step S301, obtaining the time-of-use electricity price and the charging parameters of the battery swap station.
[0125] The charging parameters include charging power, the number of charging bays, and the charging decision volume of the charging bays. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0126] Step S302: Obtain the total demand for battery swapping at the battery swap station within a preset time period. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0127] Step S303: Based on the charging parameters and the time-of-use electricity price, determine the total charging capacity and total charging cost of the battery swap station within the preset time period. Figure 2 Step S203 of the illustrated embodiment will not be described in detail here.
[0128] Step S304, taking the relationship between the total battery replacement demand and the total charging amount as the first constraint and the lowest total charging cost as the goal, optimize the charging decision quantity of the charging bin to charge the battery in the charging bin based on the optimization result.
[0129] Specifically, the above step S304 includes:
[0130] Step S3041, determine that the first constraint is that the total charging amount in any time period is greater than or equal to the total battery replacement demand in any time period.
[0131] The arbitrary time period is a time period from the beginning of the preset time period to an arbitrary unit time period.
[0132] If the preset time period is from 0:00 to 24:00, the unit time period is 1 hour, unit time period 1 is from 0:00 to 1:00, unit time period 2 is from 1:00 to 2:00, and so on.
[0133] The first constraint is expressed using formula (7):
[0134]
[0135] Among them, x ik is the charging decision quantity of charging warehouse i in unit time period k, D k is the demand for battery replacement within the unit time period K.
[0136] Step S3042: Based on the first constraint and with the goal of minimizing the charging cost, optimize the charging decision amount of the charging warehouse in each unit time period.
[0137] The charging decision amount is charging or not charging.
[0138] First constraint:
[0139] Target:
[0140] Optimization object: x ij ;
[0141] Use Python's pulp linear programming solver to optimize and solve x ij The value of , that is, the charging decision amount of charging warehouse i in unit time period j is obtained.
[0142] In some optional implementations, step S3042 includes:
[0143] Step b1, obtain the number of battery swapping vehicles related to the battery swapping station within a unit time period and the battery status of the charging compartment within a unit time period, where the battery status is determined based on the battery power or the charging decision amount of the charging compartment.
[0144] Step b2: Determine the second constraint based on the number of battery-swapping vehicles and the battery status.
[0145] Step b3: Based on the first constraint and the second constraint, with the goal of minimizing the charging cost, optimize the charging decision amount of the charging warehouse in each unit time period.
[0146] In some application scenarios, battery swap stations correspond to fleets, and the number of vehicles in the fleet is known. For example, by modeling the fleet's historical battery swap order data, fleet transportation order data, and daily, weekly, and monthly time characteristics, we can predict battery swap demand for the next day and determine the number of battery swap vehicles in the fleet every hour for the next 24 hours.
[0147] The battery status of the charging compartment within a unit time period can be determined based on the battery's charge level. This is done by comparing the battery's charge level with a threshold. The battery can only be used if the charge level exceeds the threshold. The battery status can also be determined based on a charging decision metric. If the charging decision metric is 0, the battery status is uncharged; if the charging decision metric is 1, the battery status is charging.
[0148] The number of battery-swap vehicles and the battery status determine the second constraint, including but not limited to the number of battery-swap vehicles being less than or equal to the number of available batteries, or the number of rechargeable batteries in the charging compartment being less than or equal to the number of battery-swap vehicles.
[0149] Combining the first and second constraints, with the goal of minimizing charging cost, the charging decision amount of the charging warehouse in each unit time period is optimized.
[0150] In the scenario where the number of battery-swap vehicles is determined, the number of battery-swap vehicles and the battery status are introduced as the second constraint. Combined with the first constraint and the second constraint, the charging decision quantity is optimized, thereby improving the accuracy of the obtained charging decision quantity.
[0151] In some optional implementations, the above step b2 includes:
[0152] Step b211: For any unit time period, the demand for battery replacement batteries is determined using the number of battery replacement vehicles.
[0153] Step b212: Determine the number of replaceable batteries at the battery swap station based on the relationship between the battery power in the charging compartment and the preset power.
[0154] Step b213, determine that the second constraint includes that the amount of replaceable batteries in any unit time period is greater than or equal to the demand for replaceable batteries.
[0155] The number of replaceable batteries in any unit time period is greater than or equal to the demand for replacement batteries, which is expressed using the following formula:
[0156] K j ≥Q j Formula (8)
[0157]
[0158]
[0159] Among them, K j is the number of replaceable batteries at the battery swap station within unit time period j, Q j is the demand for battery replacement within unit time period j, a ij Is the battery in charging station i able to be used as a replaceable battery within unit time period j? ij is the battery capacity of charging compartment i in unit time period j, and M is the preset capacity.
[0160] The second constraint is determined by the number of replaceable batteries at the battery swap station and the demand for battery swaps to ensure that each battery swap vehicle has a replaceable battery.
[0161] In some optional implementations, the above step b2 includes:
[0162] Step b221: For any unit time period, the charging strategy of the charging compartment is used to determine the number of rechargeable batteries in the battery swap station.
[0163] Step b222, determine that the second constraint includes that the number of rechargeable batteries in any unit time period is less than or equal to the demand for replacement batteries.
[0164] Here, the charging process is simplified to the battery being fully charged within a unit time period. That is, the number of rechargeable batteries within each unit time period is related to the battery swap vehicle, while the batteries that were not fully charged in the previous unit time period are ignored. At the end of each unit time period, it is assumed that all rechargeable batteries within that unit time period have been fully charged. Based on this, the number of rechargeable batteries in any unit time period is less than or equal to the battery swap demand, which is expressed using the following formula:
[0165]
[0166] The constraint is that the number of replaceable batteries is greater than or equal to the demand for replacement batteries, ensuring that in each unit time period, the maximum number of replaceable batteries is the demand for replacement batteries, avoiding waste of charging resources and further reducing charging costs.
[0167] When optimizing the charging decision amount, only the content shown in equations (8) to (10) can be used as the second constraint, only the content shown in equation (11) can be used as the second constraint, or both can be used as the second constraint.
[0168] In some optional implementations, the above step b3 includes:
[0169] Step b31: If the charging power is less than the preset power threshold, the number of batteries that are charged simultaneously in the battery swap station is determined to be the preset number of batteries.
[0170] Step b32: determining the preset number of batteries as the third constraint.
[0171] Step b33, based on the first constraint, the second constraint and the third constraint, with the goal of minimizing the total charging cost, optimize the charging decision amount of the charging warehouse.
[0172] When the charging power is less than the preset power threshold, only batteries with a preset battery output are charged at the same time to ensure the safety of the power grid operation. For example, the charging power during peak power consumption is less than the charging power during low power consumption. Therefore, based on the division of power consumption intervals of time-of-use electricity prices, the peak power consumption period and the low power consumption period are determined. The preset power threshold corresponds to the charging power during low power consumption, and during peak power consumption, the number of batteries that can be charged simultaneously in the battery swap station is limited to the preset number of batteries. Among them, the specific value of the preset number of batteries is set according to actual needs and is not limited here.
[0173] The preset number of batteries is determined as the third constraint. Combined with the first and second constraints, the charging decision quantity of the charging warehouse is optimized with the goal of minimizing the total charging cost, and the charging decision quantity of charging warehouse i in unit time period j is obtained.
[0174] The battery charging method of the battery swap station provided in this embodiment divides the preset time period into unit time periods for optimization, thereby obtaining the charging decision amount of each charging compartment in each unit time period, and realizing precise charging control of the charging compartment.
[0175] As a specific application example of an embodiment of the present invention, the application scenario is an electric dump truck fleet for short-distance transportation at a steel plant at a dock. The transportation company sends the steel plant transportation order to the electric dump truck fleet. The fleet dispatches vehicles according to the workload, departs from the parking area with full charge, goes to the dock loading area to load materials, and then goes to the steel plant building to unload materials. After unloading, if the power is sufficient, it will continue to work back and forth. When the power is no longer able to complete a trip of loading and unloading (SOC is lower than 30%), it will go to the battery swap station for battery swapping. The battery swap station provides the charged battery to the electric dump truck, continues to charge the replaced battery, and settles the electricity price according to the SOC difference between the battery replaced by the vehicle and the battery provided by the battery swap station. For the battery swap station, it is necessary to optimize the charging decision quantity of the battery in the charging bin to obtain whether the battery in the charging bin i will be charged in the jth hour in the next day.
[0176] Specifically, the goals are:
[0177] Optimization object: x ij ;
[0178] The constraints include the first constraint, the second constraint, and the third constraint mentioned above.
[0179] Use Python's pulp linear programming solver to optimize and solve x ij The value of , that is, whether the charging compartment i is charged at the jth hour.
[0180] Figure 4 A schematic diagram showing the charging scheduling results is shown. Figure 4 As can be seen, during the off-peak period (00:00-8:00), the battery swap station basically charges the low-charged batteries as long as there are vehicles coming to swap batteries. During the peak period (19:00-21:00), when electricity costs are higher, the charging bays at the battery swap station simply stop charging and use the excess power charged during the previous period to meet the battery swap demand during this period, ultimately achieving peak-valley charging scheduling and reducing charging costs.
[0181] In this embodiment, a battery charging device for a battery swap station is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments. The details that have been described will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and conceivable.
[0182] This embodiment provides a battery charging device for a battery swap station, such as Figure 5 Shown, including:
[0183] The charging parameter acquisition module 501 is used to obtain the time-of-use electricity price and the charging parameters of the battery swap station. The charging parameters include charging power, the number of charging compartments, and the charging decision amount of the charging compartments.
[0184] The battery swap demand acquisition module 502 is used to obtain the total battery swap demand of the battery swap station within a preset time period.
[0185] The charging amount and charging cost determination module 503 is used to determine the total charging amount and total charging cost of the battery swap station within a preset time period based on the charging parameters and the time-of-use electricity price.
[0186] The charging decision quantity optimization module 504 is used to optimize the charging decision quantity of the charging bin with the relationship between the total battery replacement demand and the total charging amount as the first constraint and the lowest total charging cost as the goal, so as to charge the battery in the charging bin based on the optimization result.
[0187] In some optional implementations, the charging amount and charging cost determination module 503 includes:
[0188] An electricity price determining unit, configured to determine the electricity price for each unit time period within the preset time period based on the time-of-use electricity price;
[0189] a unit charging cost determining unit, configured to determine, for each unit time period, a unit charging cost of the charging bin based on a product of the charging decision amount of the charging bin, the charging power, and the electricity price;
[0190] The total charging cost determining unit is configured to accumulate the unit charging costs of the charging bins based on the number of the charging bins and the number of the unit time periods to determine the total charging cost.
[0191] In some optional implementations, the unit charging cost determination unit includes:
[0192] a parameter acquisition subunit, configured to acquire the charging efficiency and cost parameters of the battery swap station, wherein the cost parameters include a tax rate;
[0193] a cost coefficient item determination subunit, configured to determine a cost coefficient item based on the charging efficiency and the cost parameter;
[0194] The unit charging cost determination subunit is used to determine the unit charging cost based on the cost coefficient item, the charging decision amount of the charging bin, the charging power and the product of the electricity price.
[0195] In some optional implementations, the charging decision quantity optimization module 504 includes:
[0196] a first constraint determination unit, configured to determine that the first constraint is that a total charge amount within any time period is greater than or equal to a total battery swapping demand within the any time period, where the any time period is a time period from the start of the preset time period to any unit time period;
[0197] An optimization unit is used to optimize the charging decision amount of the charging warehouse in each unit time period based on the first constraint and with the goal of minimizing the charging cost, where the charging decision amount is to charge or not to charge.
[0198] In some optional embodiments, the optimization unit includes:
[0199] A battery status acquisition subunit, configured to acquire the number of battery swapping vehicles associated with the battery swap station within the unit time period and the battery status of the charging compartment within the unit time period, wherein the battery status is determined based on the battery power or the charging decision amount of the charging compartment;
[0200] A second constraint determination subunit, configured to determine a second constraint based on the number of battery-swapping vehicles and the battery status;
[0201] The optimization subunit is used to optimize the charging decision amount of the charging warehouse in each unit time period based on the first constraint and the second constraint, with the goal of minimizing the charging cost.
[0202] In some optional implementations, the second constraint determination subunit includes:
[0203] A battery replacement demand determination subunit, configured to determine the battery replacement demand using the number of battery replacement vehicles for any unit time period;
[0204] A replaceable battery quantity determination subunit, configured to determine the replaceable battery quantity of the battery swap station based on a relationship between the power level of the battery in the charging compartment and a preset power level;
[0205] The second constraint sub-unit of the battery demand is used to determine that the second constraint includes that the amount of replaceable batteries in any unit time period is greater than or equal to the battery demand.
[0206] In some optional implementations, the second constraint determination subunit includes:
[0207] a rechargeable battery quantity determination subunit, configured to determine the quantity of rechargeable batteries in the battery swap station using the charging strategy of the charging bin for any unit time period;
[0208] The second constraint subunit for the number of rechargeable batteries is used to determine that the second constraint includes that the number of rechargeable batteries in any unit time period is less than or equal to the required number of replacement batteries.
[0209] In some optional embodiments, the optimization subunit includes:
[0210] A subunit for determining the number of batteries to be charged simultaneously, configured to determine that the number of batteries to be charged simultaneously in the battery swap station is a preset number of batteries if the charging power is less than a preset power threshold;
[0211] a third constraint determination subunit, configured to determine the preset number of batteries as a third constraint;
[0212] The charging decision amount optimization subunit is used to optimize the charging decision amount of the charging warehouse based on the first constraint, the second constraint and the third constraint, with the goal of minimizing the total charging cost.
[0213] The battery charging device of the battery swap station in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0214] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0215] The embodiment of the present invention also provides a computer device having the above Figure 5 The battery charging device of the battery swap station is shown.
[0216] See also Figure 6 , Figure 6 is a structural diagram of a computer device provided by an optional embodiment of the present invention, such as Figure 6 As shown, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components utilize different buses to communicate with each other and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in the memory or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Equally, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.
[0217] The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. 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.
[0218] The memory 20 stores instructions that can be executed by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0219] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0220] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0221] The computer device further includes a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0222] The embodiment of the present invention also provides a computer-readable storage medium. The above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.
[0223] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A battery charging method for a battery swap station, characterized in that: The method comprises: Obtaining time-of-use electricity prices and charging parameters of the battery swap station, wherein the charging parameters include charging power, the number of charging bays, and charging decision quantities of the charging bays; Obtaining the total battery swapping demand of the battery swapping station within a preset time period; Determining the total charging amount and total charging cost of the battery swap station within the preset time period based on the charging parameters and the time-of-use electricity price; Taking the relationship between the total battery replacement demand and the total charging amount as the first constraint and minimizing the total charging cost as the goal, optimizing the charging decision quantity of the charging bin, so as to charge the battery in the charging bin based on the optimization result; The optimization of the charging decision amount of the charging warehouse with the relationship between the total battery replacement demand and the total charging amount as the first constraint and the minimum total charging cost as the goal includes: Determining the first constraint as that the total charge amount in any time period is greater than or equal to the total battery replacement demand in the any time period, where the any time period is a time period from the start of the preset time period to any unit time period; Based on the first constraint, with the goal of minimizing the charging cost, optimizing the charging decision amount of the charging warehouse in each unit time period, where the charging decision amount is charging or not charging; The step of optimizing the charging decision amount of the charging warehouse in each unit time period based on the first constraint and aiming at minimizing the charging cost includes: Obtaining the number of battery swapping vehicles associated with the battery swap station within the unit time period and the battery status of the charging compartment within the unit time period, where the battery status is determined based on the battery power or the charging decision amount of the charging compartment; Determining a second constraint based on the number of battery-swapping vehicles and the battery status; Based on the first constraint and the second constraint, with the goal of minimizing the charging cost, the charging decision amount of the charging warehouse in each unit time period is optimized.
2. The method according to claim 1, characterized in that Determining the total charging cost of the battery swap station within a preset time period based on the charging parameters and the time-of-use electricity price includes: Based on the time-of-use electricity price, determining the electricity price for each unit time period within the preset time period; For each unit time period, determining a unit charging cost of the charging bin based on a product of the charging decision amount of the charging bin, the charging power, and the electricity price; Based on the number of the charging bays and the number of the unit time periods, the unit charging costs of the charging bays are accumulated to determine the total charging cost.
3. The method according to claim 2, characterized in that The determining the unit charging cost of the charging bin based on the product of the charging decision amount of the charging bin, the charging power, and the electricity price includes: Obtaining the charging efficiency and cost parameters of the battery swap station, wherein the cost parameters include a tax rate; determining a cost coefficient term based on the charging efficiency and the cost parameter; The unit charging cost is determined based on the product of the cost coefficient item, the charging decision amount of the charging bin, the charging power, and the electricity price.
4. The method according to claim 1, wherein The determining of the second constraint based on the number of battery-swapping vehicles and the battery status includes: For any unit time period, the demand for battery replacement batteries is determined using the number of battery replacement vehicles; Determining the amount of replaceable batteries at the battery swap station based on the relationship between the amount of power in the battery in the charging compartment and a preset amount of power; Determining the second constraint includes that the amount of replaceable batteries in any unit time period is greater than or equal to the required amount of replaceable batteries.
5. The method according to claim 4, characterized in that The determining of the second constraint based on the number of battery-swapping vehicles and the battery status includes: For any unit time period, the number of rechargeable batteries of the battery swap station is determined using the charging strategy of the charging warehouse; Determining the second constraint includes that the number of rechargeable batteries in any unit time period is less than or equal to the required number of replacement batteries.
6. The method according to claim 5, characterized in that The optimizing the charging decision amount of the charging warehouse in each unit time period based on the first constraint and the second constraint and aiming at minimizing the charging cost includes: If the charging power is less than the preset power threshold, the number of batteries to be charged simultaneously in the battery swap station is determined to be the preset number of batteries; Determining the preset number of batteries as a third constraint; Based on the first constraint, the second constraint and the third constraint, the charging decision amount of the charging warehouse is optimized with the goal of minimizing the total charging cost.
7. A battery charging device for a battery swap station, characterized in that: The device comprises: A charging parameter acquisition module is used to obtain the time-of-use electricity price and the charging parameters of the battery swap station, wherein the charging parameters include the charging power, the number of charging compartments, and the charging decision amount of the charging compartments; A battery swap demand acquisition module is used to obtain the total battery swap demand of the battery swap station within a preset time period; A charging amount and charging cost determination module, configured to determine the total charging amount and total charging cost of the battery swap station within the preset time period based on the charging parameters and the time-of-use electricity price; a charging decision quantity optimization module, configured to optimize the charging decision quantity of the charging bin with the relationship between the total battery replacement demand and the total charging quantity as a first constraint and with the minimum total charging cost as a goal, so as to charge the battery in the charging bin based on the optimization result; The optimization of the charging decision amount of the charging warehouse with the relationship between the total battery replacement demand and the total charging amount as the first constraint and the minimum total charging cost as the goal includes: Determining the first constraint as that the total charge amount in any time period is greater than or equal to the total battery replacement demand in the any time period, where the any time period is a time period from the start of the preset time period to any unit time period; Based on the first constraint, with the goal of minimizing the charging cost, optimizing the charging decision amount of the charging warehouse in each unit time period, where the charging decision amount is charging or not charging; The step of optimizing the charging decision amount of the charging warehouse in each unit time period based on the first constraint and aiming at minimizing the charging cost includes: Obtaining the number of battery swapping vehicles associated with the battery swap station within the unit time period and the battery status of the charging compartment within the unit time period, where the battery status is determined based on the battery power or the charging decision amount of the charging compartment; Determining a second constraint based on the number of battery-swapping vehicles and the battery status; Based on the first constraint and the second constraint, with the goal of minimizing the charging cost, the charging decision amount of the charging warehouse in each unit time period is optimized.
8. A battery swap station, characterized in that: include: Charging compartment, used to charge the battery; A controller is connected to the charging compartment, and the controller controls the charging of the battery in the charging compartment by executing the battery charging method of the battery swap station according to any one of claims 1 to 6.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the battery charging method of any one of claims 1 to 6 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the battery charging method for the battery swap station according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for determining battery charging strategy of battery replacing station
CN110015115A
Battery charging method and device of battery swap station, storage medium and electronic equipment
CN113459871A