Logistics electric vehicle scheduling optimization method, device, equipment and medium

By using the EV-VRPTW model based on the VRPTW model and a hybrid heuristic algorithm, the charging and discharging time window and route planning of logistics electric vehicles are optimized. Combined with the electricity pricing mechanism, the problem of insufficient scheduling efficiency of logistics electric vehicles is solved, and cost optimization and energy-efficient utilization are achieved.

CN119047779APending Publication Date: 2024-11-29GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411196816.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

Existing technologies fail to effectively consider the scheduling benefits of electric vehicles during the charging and discharging process, resulting in insufficient optimization of logistics costs.

Method used

An EV-VRPTW model based on the VRPTW model and a hybrid heuristic algorithm is adopted to optimize the scheduling of electric vehicles for logistics by optimizing the charging and discharging time window and route planning, combined with the electricity pricing mechanism.

Benefits of technology

It reduces the operating costs of electric logistics vehicles, improves the efficiency of route planning and energy utilization, and meets the requirements of green logistics and sustainable development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119047779A_ABST
    Figure CN119047779A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a logistics electric vehicle scheduling optimization method and device, equipment and a medium, and the method comprises the steps: obtaining a target operation total cost function needed for calculating the cost of a logistics electric vehicle and a constraint condition corresponding to the target vehicle operation total cost function, and enabling the target operation total cost function and the constraint condition to serve as a vehicle path optimization model with a time window of the logistics electric vehicle; and for configuration parameters in the vehicle path optimization model with the time window, calculating the vehicle path optimization model with the time window until a set cost condition of the logistics electric vehicle is reached, so as to determine a target parameter value of the configuration parameters, and scheduling the logistics electric vehicle based on the target parameter value. The configuration parameters at least comprise an electric vehicle charging and discharging time window. By using the method, an EV-VRPTW model based on a hybrid heuristic algorithm is provided based on the VRPTW model and the characteristics of the logistics electric vehicle, and the logistics cost is reduced by using the charge and discharge scheduling benefits in the route planning and operation optimization process of the logistics electric vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent transportation technology, and in particular to a logistics electric vehicle scheduling optimization method, device, equipment and medium. Background Art

[0002] With the global climate change and the increasing awareness of environmental protection, the application of electric vehicles (EV) in the logistics industry has become increasingly widespread, becoming one of the important means to achieve green logistics and reduce carbon emissions. However, compared with traditional fuel vehicles, electric vehicles have obvious differences in terms of cruising range, dependence on charging facilities and charging time. These characteristics have brought new challenges to the vehicle routing problem for logistics electric vehicles (EV-VRP). The traditional vehicle routing problem with time windows (VRPTW) has been widely studied. The vehicle routing problem belongs to NP-Hard problems and is usually solved by heuristic algorithms. NP-Hard problems refer to problems that all non-deterministic polynomial (NP) problems can be reduced to within the polynomial time complexity. Some scholars have added the constraints of the maximum tolerance time for vehicle waiting and the maximum transportation time on the basis of the VRP model, and established a dual-objective mathematical model with the shortest total driving path and the minimum number of vehicles used. Some scholars have established a model using the minimum logistics cost as the objective function, added constraints on vehicle loading and time windows, improved the premature phenomenon through the simulated annealing algorithm, and used data provided by enterprises for simulation.

[0003] In addition, with the development of smart grids and distributed energy, collaboration between operators has become increasingly important. Some scholars have designed an energy sharing operation mechanism based on the Stackelberg game theory, and established a game model with virtual power plant operators as leaders, prosumers and cloud energy storage service providers as followers, to achieve a balance between leaders pursuing maximum benefits and followers pursuing maximum utility. The Stackelberg model is a non-cooperative game model. Some scholars have studied the optimization model of electricity price formulation based on demand response on the user side, and used price control to control multiple subjects to respond to demand in order to improve the economic benefits of park operators; some scholars have studied the multi-microgrid energy sharing transaction mechanism, using cooperative games to coordinate energy deviations to reduce the energy costs of multiple subjects on the demand side and improve the economic benefits of park operators. Some scholars have studied the energy optimization model of energy storage participating in micro-energy systems under peak and valley time-of-use electricity prices, and achieved maximum investment benefits while meeting the load demand and energy consumption of micro-energy systems. Some literatures have considered the problem of charging logistics electric vehicles, such as the problem of the "last mile" of logistics; some scholars have discussed the uncertainty of user demand and vehicle energy consumption under nonlinear energy consumption models based on actual scenario needs. However, there is no comprehensive study on the dispatching benefits of logistics electric vehicles during the charging and discharging process. In summary, the current research on logistics electric vehicle route planning and operation optimization has not yet deeply considered its dispatching benefits during the charging and discharging process, which has considerable potential for cost optimization under the logistics iceberg theory. Summary of the invention

[0004] The embodiments of the present invention provide a method, device, equipment and medium for optimizing the scheduling of electric vehicles for logistics, which utilize the benefits of charging and discharging scheduling to reduce logistics costs.

[0005] In a first aspect, this embodiment provides a method for optimizing logistics electric vehicle scheduling, the method comprising:

[0006] Obtaining a target total operating cost function required for calculating the cost of the logistics electric vehicle and constraints corresponding to the target total vehicle operating cost function as a vehicle path optimization model with a time window for the logistics electric vehicle;

[0007] With respect to the configuration parameters in the vehicle path optimization model with time windows, the vehicle path optimization model with time windows is calculated until the set cost conditions of the logistics electric vehicle are reached to determine the target parameter values ​​of the configuration parameters, and the logistics electric vehicle is scheduled based on the target parameter values, wherein the configuration parameters include at least the charging and discharging time windows of the electric vehicles.

[0008] In a second aspect, this embodiment provides a logistics electric vehicle scheduling optimization device, which includes:

[0009] A model acquisition module, used to acquire a target total operating cost function required for calculating the cost of a logistics electric vehicle and constraints corresponding to the target total operating cost function, as a vehicle path optimization model with a time window for the logistics electric vehicle;

[0010] A parameter solving module is used to calculate the vehicle path optimization model with a time window according to the configuration parameters in the vehicle path optimization model with a time window until the set cost conditions of the logistics electric vehicle are reached, so as to determine the target parameter values ​​of the configuration parameters, and schedule the logistics electric vehicle based on the target parameter values, wherein the configuration parameters at least include the electric vehicle charging and discharging time window.

[0011] In a third aspect, this embodiment provides an electronic device, including:

[0012] at least one processor; and

[0013] a memory communicatively connected to the at least one processor; wherein,

[0014] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the logistics electric vehicle scheduling optimization method described in any embodiment of the present invention.

[0015] In a fourth aspect, this embodiment provides a computer-readable storage medium, and the computer program is executed by the at least one processor so that the at least one processor can execute the logistics electric vehicle scheduling optimization method described in any embodiment of the present invention.

[0016] The embodiment of the present invention provides a method, device, equipment and medium for optimizing the scheduling of logistics electric vehicles. The method includes: obtaining the target total operating cost function required for calculating the cost of logistics electric vehicles and the constraint conditions corresponding to the target total vehicle operating cost function as the vehicle path optimization model with time window for the logistics electric vehicle; for the configuration parameters in the vehicle path optimization model with time window, calculating the vehicle path optimization model with time window until the set cost conditions of the logistics electric vehicle are reached to determine the target parameter values ​​of the configuration parameters, and scheduling the logistics electric vehicle based on the target parameter values, wherein the configuration parameters at least include the charging and discharging time window of the electric vehicle. The above technical scheme, based on the VRPTW model and the characteristics of logistics electric vehicles, proposes an EV-VRPTW model based on a hybrid heuristic algorithm. In the process of path planning and operation optimization of logistics electric vehicles, the charging and discharging scheduling benefits are used to reduce logistics costs.

[0017] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 A flow chart of a method for optimizing logistics electric vehicle scheduling provided in the first embodiment of the present invention;

[0020] Figure 2 A schematic diagram of an EV-VRPTW model provided in the first embodiment of the present invention;

[0021] Figure 3 A schematic diagram of constructing a client-distance time window provided in the first embodiment of the present invention;

[0022] Figure 4 A flow chart of a method for optimizing logistics electric vehicle scheduling provided in the second embodiment of the present invention;

[0023] Figure 5 A schematic diagram of the process of solving the EV-VRPTW optimization model provided in the second embodiment of the present invention;

[0024] Figure 6 A schematic diagram of a basic architecture of a master-slave game model provided in Embodiment 2 of the present invention;

[0025] Figure 7 An example flow chart of a master-slave game algorithm between a power grid operator and a logistics operator provided in the second embodiment of the present invention;

[0026] Figure 8 A schematic diagram of the structure of a logistics electric vehicle scheduling optimization device provided in Embodiment 3 of the present invention;

[0027] Fig. 9 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "original", "target", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any other variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] Embodiment 1

[0031] Figure 1 A flow chart of a method for optimizing the scheduling of logistics electric vehicles is provided in accordance with the first embodiment of the present invention. The method can be applied to the situation of optimizing the scheduling of logistics electric vehicles. The method can be executed by a logistics electric vehicle scheduling optimization device. The logistics electric vehicle scheduling optimization device can be implemented in the form of hardware and / or software and is generally integrated in an electronic device.

[0032] like Figure 1 As shown, a logistics electric vehicle scheduling optimization method provided in this embodiment may specifically include the following steps:

[0033] S101. Obtain the target total operating cost function required to calculate the logistics electric vehicle cost and the constraints corresponding to the target vehicle total operating cost function as a vehicle path optimization model with a time window for the logistics electric vehicle.

[0034] It should be noted that the EV-VRPTW model is used in this embodiment to optimize the scheduling of logistics electric vehicles. The EV-VRPTW model is recorded as a vehicle path optimization model with a time window for logistics electric vehicles. First, the EV-VRPTW model is introduced. EV-VRPTW is an important topic in the field of operations research and logistics management. The problem aims to determine the optimal vehicle path that meets a series of customer delivery needs while fully considering the inherent characteristics of electric vehicles and the specific service time window requirements of each customer point. For example, Figure 2 This is a schematic diagram of an EV-VRPTW model provided in Example 1 of the present invention. Figure 2 As shown, logistics electric vehicles, logistics centers, charging piles and customers realize logistics transportation.

[0035] In the field of logistics, a time window refers to a specific time period set to complete a service or task. It is a key constraint in the EV-VRPTW model. According to the different time elasticity, time windows can be divided into two types: soft time windows and hard time windows. When discussing the application of electric vehicles in the field of logistics, the core goal of EV-VRPTW is to minimize the total cost of logistics electric vehicle operations, which covers the key charging cost, potential waiting cost, and cost due to overtime. Because logistics electric vehicles have the flexibility of battery charging and endurance, they can meet the strict delivery time window requirements while also enjoying a certain degree of time freedom. This flexibility enables logistics electric vehicles to take advantage of the flexibility of their power load, effectively adjust their load distribution by reasonably arranging travel time, and then participate in the load regulation of the power system. By in-depth research on the challenging and practical EV-VRPTW problem, more efficient distribution solutions can be provided for logistics companies, which will not only help the green transformation of the logistics industry, but also promote its sustainable development.

[0036] In this embodiment, it is necessary to implement the construction and solution of the EV-VRPTW model. When constructing the EV-VRPTW model, the concept of customer-distance time window is introduced, and the objective function and key constraints of the model are clarified. In order to solve this complex optimization problem, this embodiment is based on a hybrid heuristic algorithm and uses a distributed optimization strategy to solve the EV-VRPTW model, thereby improving the solution efficiency while ensuring the quality of the solution.

[0037] It should be clear that in order to simplify the model and facilitate research, the following assumptions are used in the research of the logistics electric vehicle EV-VRPTW model in this embodiment:

[0038] 1) Vehicle homogeneity assumption: All electric vehicles used for delivery have the same cargo capacity, driving speed, battery range and fixed cost. This assumption is intended to simplify the complexity of vehicle selection, allowing the model to focus more on the core issue of route planning. 2) Customer demand certainty assumption: The delivery demand of each customer point is known and certain, and does not change with time and other factors. This means that when planning the route, there is no need to consider the volatility and uncertainty of customer demand. 3) Service time fixed assumption: The service time of the vehicle at each customer point is fixed and does not change with arrival time or other factors. This assumption helps to simplify the calculation process of service time and makes the model easier to handle. 4) Time window constraint assumption: Each customer point has a clear service time window set, and the vehicle must arrive and complete the service within the specified time range. This assumption reflects the time requirements in real logistics operations, making the model closer to actual operations. 5) Vehicle driving independence assumption: Each electric vehicle acts independently during the delivery process and is not affected by other vehicles. This assumption excludes the interaction and coordination factors between vehicles, allowing the model to focus more on the path planning problem of a single vehicle. 6) Assumption of static nature of road network: The structure and traffic conditions of the road network remain unchanged during the planning cycle. This assumption simplifies the uncertainty factors in path planning, allowing the model to focus more on the optimization goal itself without considering the impact of real-time traffic changes. 7) Assumption of availability of charging facilities: Charging facilities are available during the planning cycle, and the charging time, charging cost, and layout of charging stations are known, and charging facilities support bidirectional power transmission. This assumption helps to simplify the handling of electric vehicle charging needs, allowing the model to focus more on the path planning problem itself. 8) Assumption that charging and discharging benefits are better than distance loss: When planning a path, when the charging station is located on or close to the optimal path, the charging and discharging benefits obtained by electric vehicles going to the charging station are generally greater than the additional cost or time loss incurred by increasing the driving distance.

[0039] These assumptions reasonably simplify and approximate the complex factors in actual logistics operations when constructing the EV-VRPTW model of logistics electric vehicles. Through this simplification, the research can focus on how to optimize the distribution path of electric vehicles under the premise of strictly following key constraints such as time windows and power limits, thereby minimizing operating costs. These assumptions not only reduce the complexity of model solution and improve computational efficiency, but also make the research results clearer and more intuitive, which is convenient for subsequent analysis and application. Secondly, the setting of the charging and discharging time window under the EV-VRPTW model. When establishing the EV-VRPTW model, the setting of the charging and discharging time window is a crucial link. This setting not only directly affects the endurance and operating efficiency of electric vehicles, but also affects the regulation and stability of the power load of the power grid. Reasonable setting of the charging and discharging time window can ensure that electric vehicles can not only meet customer needs during the distribution process, but also participate in the load regulation of the power system, so as to achieve efficient use of energy and stable operation of the power grid. Therefore, when constructing the EV-VRPTW model, the setting of the charging and discharging time window must be fully considered to optimize the distribution path and charging and discharging plan of electric vehicles and maximize the overall benefits.

[0040] In this embodiment, a lightweight calculation strategy for the charging and discharging time window is adopted. In this embodiment, the charging and discharging time window is defined as the time period during which the logistics electric vehicle can be charged and discharged at the charging station. The selection of the charging and discharging time window directly determines the efficiency of the logistics electric vehicle scheduling. However, considering that there is significant uncertainty in both time and quantity of the charging and discharging time window, this increases the complexity of directly exploring its influencing factors and constraints. In order to simplify the determination and calculation process of the charging and discharging time window, other time windows that are complementary to the charging and discharging time window are also introduced.

[0041] In the delivery service of logistics electric vehicles, the customer time window refers to the time period for customers to receive or send goods. The distance time window is the estimated driving time of logistics electric vehicles calculated based on driving distance, vehicle speed, actual road conditions, etc. Logistics operators will formulate an operation schedule for logistics electric vehicles based on actual needs such as traffic, policies, and vehicle maintenance, and define the actual operating time period selected by logistics electric vehicles according to the schedule as the driving time window. Obviously, the charging and discharging time windows, customer time windows, and distance time windows of logistics electric vehicles have a strong complementary relationship. Under ideal conditions, the driving time window of logistics electric vehicles can be regarded as the result of a simple addition or combination of the three time windows: customer time window, charging and discharging time window, and distance time window. The relationship between the windows is as follows:

[0042] T 0 W =T 1 W +T 2W +T 3 W (1)

[0043] Among them, T 0 W is the driving time window, T 1 W is the charge and discharge time window, T 2 W is the customer time window, T 3 W is the distance time window.

[0044] It can be understood that it is not difficult to see from the above formula that the window length of the driving time window is closely related to customer service needs, driving distance, and various constraints faced by logistics electric vehicles during operation. On the basis of ensuring that these conditions are met, the driving planning of logistics electric vehicles has a certain flexibility and can be adjusted in time according to actual conditions. In view of the fact that the window lengths of customer time windows and distance time windows can be more easily analyzed and predicted according to customer needs and driving distances than the charging and discharging time windows, the present invention utilizes the complementary relationship between them and the charging and discharging time windows, and estimates the charging and discharging time windows by indirect calculation, thereby simplifying the determination and calculation process of the charging and discharging time windows. In order to further optimize the calculation process of the charging and discharging time windows, the following strategy is adopted in this embodiment: Under the relevant constraints of the customer time windows and the distance time windows, if there is no charging and discharging time window between some customer time windows and the distance time windows, then the customer time windows and the distance time windows of the part can be merged into a comprehensive time window, namely the customer-distance time window. The relationship between the windows after optimization is as follows:

[0045]

[0046] in, The above merging operation effectively reduces the number of time windows, thereby reducing the complexity of subsequent calculations and realizing lightweight calculation of charging and discharging time windows.

[0047] Following the above description, we need to analyze the uncertainty of the time window. Although the above successfully transforms the problem of solving the charging and discharging time window into the problem of solving the driving time window and the customer-distance time window through the complementary relationship of the time window, there are still certain uncertainties in the transformed time window, which need to be further solved. In order to meet customer needs and relevant regulations, the window length of the driving time window has the following relationship with the customer-distance time window and the allowed operating time of logistics electric vehicles:

[0048]

[0049] in, Allow operating hours for logistics electric vehicles.

[0050] In the customer-distance time window, the length of the customer time window depends on customer demand. Generally speaking, it can be directly determined through historical order data, customer preference surveys, etc.; the distance time window solution is more complicated. Considering that logistics electric vehicles may increase the driving distance when going to charging stations, additional trips need to be considered. Since the locations of customer points and charging stations are determined, it is possible to consider calculating the charging station distance matrix before calculating the EV-VRPTW model, and pre-solve the charging stations that are close enough and can correspond to the possible driving path segments between each customer point. If there is still no suitable charging station beyond a certain distance, when the logistics electric vehicle drives to the driving path segment, the additional cost and time loss caused by the increase in driving distance are too large, and going to the charging station to obtain scheduling benefits is not considered.

[0051] It should be noted that there are special scenarios for the EV-VRPTW model. In view of the geographical location characteristics that charging stations are usually located between customer points, the two ends of the charging and discharging time window are naturally connected to the distance time window, thereby dividing the original distance time window into two independent but continuous time periods. In order to facilitate subsequent discussion and analysis, the distance time window after such division is simply referred to as the left window and the right window. After the charging station is introduced into the driving route planning of logistics electric vehicles, on the one hand, it may lead to an increase in additional driving distance costs, and on the other hand, it may take up more operating time. The increase in operating time may make the originally feasible path planning scheme infeasible, thereby reducing the feasible solution set of the EV-VRPTW model and may reduce the quality of the optimal solution. In this embodiment, this special scenario is analyzed and discussed in depth, aiming to broaden the scope of application of the EV-VRPTW model and make it closer to actual operating conditions.

[0052] Figure 3 A schematic diagram of constructing a client-distance time window provided in the first embodiment of the present invention. Figure 3 The changes of customer time window and distance time window in the route planning of logistics electric vehicles before and after considering the charging station, during the driving process from customer 1 to customer 2, are shown. Since logistics electric vehicles have increased the driving distance to the charging station, if the time requirements of customers 1 and 2 are still to be met, the right and left distance time windows will inevitably overlap, which violates the basic assumption of the time window constraint of the EV-VRPTW model mentioned above.

[0053] In order to avoid the above scenario and exclude the path planning from the feasible solution set of the EV-VRPTW model, this paper proposes an adjustment strategy: in the driving path segment under the above scenario, give up going to the charging station to obtain scheduling benefits, and The customer time window, distance time window and logistics electric vehicle parking waiting time in this scenario are combined into the customer-distance time window. Since the time requirements of customer 1 and customer 2 are fixed, the customer time window T 2 W The corresponding time is a fixed value. Therefore, the combined customer-distance time window There is a minimum fixed value that depends on the time requirements of Customer 1 and Customer 2, and is:

[0054]

[0055] in, The increment generated by adding the parking waiting time of logistics electric vehicles to the customer-distance time window.

[0056] In order to minimize the logistics electric vehicle operating costs of logistics operators, the charging and discharging time window T 1 W It should be as large as possible, so as to provide more sufficient charging and discharging time periods for logistics electric vehicles without affecting normal operations, thereby achieving higher scheduling benefits. From formula (2), we can see that the customer-distance time window On the basis of strictly following the customer time requirements and not changing the length of the customer time window and distance time window, we should strive to minimize them. Therefore, the minimum value that meets the above requirements is finally selected as the customer-distance time window The actual value of .

[0057] The following describes the EV-VRPTW model architecture, including the EV-VRPTW model objective function and constraints. The EV-VRPTW model objective is to minimize the total cost of logistics electric vehicle operations, which mainly includes the total cost of logistics electric vehicle driving distance, total cost of operating time, total charging cost at the distribution center, total charging cost and total discharge profit at the charging station, total cost of time penalty fees, and vehicle use cost.

[0058] Define a directed graph G = {N, E}, where N is a node set, and N = A ∪ B, and E is an edge set, and E = L. A is a set of customers and distribution centers, A = {i|i = 0, 1, 2, ..., n}, where i = 0 represents a distribution center; B is a set of charging stations that provide charging and discharging services for logistics electric vehicles, B = {b|0, 1, 2, ..., ξ}; L is a set of paths, L = {l|l = 0, 1, 2, ..., m}, and H is a set of vehicles, H = {0, 1, 2, ..., k}. Since each vehicle takes only one path, |H| = |L|, and |H| and |L| correspond to the number of elements in the vehicle set and the path set, respectively; in a specific logistics electric vehicle distribution path, S represents the set of elements of the selected customer and distribution center set, |S| represents the number of customers selected in the set S; d ij is the distance from customer i to customer j, V is the distance from customer i to the nearby charging station and then to customer j; max The maximum allowable loading capacity of logistics electric vehicles; ET i ,LT i are the earliest service time and the latest service time expected by the customer, CT i , DT i are the earliest service time and the latest service time that the customer can accept, and In this embodiment, a soft time window is used to set up, and a time penalty coefficient is introduced to impose corresponding penalties on early arrival or overtime arrival.

[0059] Following the above description, this setting can handle time window constraints more flexibly and make the model closer to actual operation conditions; arr,i is the time when the logistics electric vehicle arrives at customer point i, T is the actual operating time of a logistics electric vehicle in a day; W is the real-time power of a logistics electric vehicle, W p Indicates the charging power of the logistics electric vehicle, W d Indicates the amount of electricity consumed by the logistics electric vehicle, W 0 Represents the initial power of the logistics electric vehicle, W end It represents the power of the logistics electric vehicle after the operation is completed, W max Indicates the maximum real-time power of the logistics electric vehicle, W Δ,max represents the maximum change in the real-time power of the logistics electric vehicle; M is the penalty coefficient for not delivering at the expected time; α is the distance electricity price conversion coefficient; β is the time cost conversion coefficient; γ is the power cost conversion coefficient; ζ is the vehicle cost conversion coefficient; η is the distance power conversion coefficient; m is the maximum allowable load of the vehicle; C 1 , C 2 are the total charging cost and total discharge profit of a logistics electric vehicle at all charging stations, respectively. The target operation total cost function is expressed as:

[0060]

[0061] in, is the total cost of the logistics electric vehicle driving distance, is the total cost of the time penalty for logistics electric vehicles, is the total operating time cost of logistics electric vehicles, is the total charging cost of logistics electric vehicles in the distribution center, and are the total charging cost and total discharging profit of logistics electric vehicles at charging stations, is the vehicle use cost, is the decision variable for the vehicle from customer i to customer j under path l, represents the initial power of the logistics electric vehicle l, Indicates the amount of electricity after the operation of a logistics electric vehicle is completed.

[0062] Among them, the constraints corresponding to the target total operating cost function include: logistics constraints, electric vehicle constraints, and charging and discharging time window constraints. Among them, the logistics constraints of the EV-VRPTW model include:

[0063] Defining decision variables and for:

[0064]

[0065]

[0066] Among them, the logistics constraints of the EV-VRPTW model are as follows:

[0067]

[0068]

[0069]

[0070]

[0071]

[0072]

[0073]

[0074]

[0075]

[0076] Among them, equations (8) and (9) ensure that the logistics electric vehicle starts from the logistics center and finally returns to the logistics center to form a closed-loop path. Equations (10), (11), and (12) stipulate that each customer point can only be assigned to a unique pickup path to ensure the specificity of the service. Equation (13) ensures that all customer points are visited to meet the distribution needs. During the service process, equation (14) ensures that the number of vehicles visiting and leaving the customer point is equal, achieving continuity and efficiency of the service. In addition, equation (15) avoids the generation of sub-loops and optimizes the distribution path. Equation (16) limits the pickup and delivery volume of each logistics electric vehicle to not exceed its maximum loading capacity to ensure driving safety.

[0077] Among them, the electric vehicle constraints of the EV-VRPTW model are as follows:

[0078] Defining decision variables for:

[0079]

[0080] Specifically, the charging station distance matrix D needs to be mapped to the charging station set B, with the following corresponding relationship:

[0081]

[0082] Before calculating the EV-VRPTW model, it is necessary to calculate the charging station distance matrix D in advance. The matrix D(i,j) corresponds to the nearest charging station b from customer i to customer j. If there is still no suitable charging station after a certain distance, the corresponding element is marked with INF (infinity), indicating that no suitable charging station can be found nearby for charging and discharging.

[0083] The electric vehicle constraints of the EV-VRPTW model are as follows:

[0084]

[0085]

[0086]

[0087]

[0088]

[0089]

[0090] Among them, formula (19) ensures that the vehicle can leave the charging station in time after completing charging and discharging, thereby ensuring that the number of vehicles visiting and leaving each charging station remains balanced. Formula (20) ensures that the real-time power of logistics electric vehicles always meets their energy needs during driving. Formula (21) Logistics electric vehicles should be in the best power state when they depart from the distribution center. Formula (22) establishes the relationship between the power consumed by logistics electric vehicles and the driving distance. Formula (23) defines the real-time power of logistics electric vehicles. Formula (24) ensures that the power of logistics electric vehicles changes smoothly.

[0091] In this embodiment, the EV-VRPTW charging and discharging time window constraints are as follows:

[0092] When establishing the EV-VRPTW model, adjusting the charging and discharging time window is a key strategy to achieve the efficiency of logistics electric vehicle scheduling. For a certain route l, the starting time of the charging and discharging time window is defined as the left window T 1 W_left , the end time is the right window T 1 W_right , the charge and discharge time windows are numbered in chronological order starting from 1, C is the set of charge and discharge time windows, B = {k|0,1,2,…,k max};have:

[0093] T 1 W_leftk 、T 1 W_rightk ∈[0,24),k∈C (25)

[0094] T 1 W_right k -T 1 W_left k =T 1 W k ,k∈C (26)

[0095] T 1 W_left k+1 >T 1 W_right k ,k∈C (27)

[0096] CT k ≤T 1 W_left k ≤DT k ,k∈C (28)

[0097]

[0098]

[0099]

[0100]

[0101] Among them, formula (25) ensures that the left window T of the charge and discharge time window 1 W_left The left and right windows are limited to a day. Formula (26) defines the window length of the charging and discharging time window and ensures that the left window is always earlier than the right window. Formula (27) ensures that there is no overlap between different charging and discharging time windows. Formula (28) ensures that logistics electric vehicles arrive within the service time acceptable to customers, improving customer satisfaction. Formulas (29) and (30) ensure that the power consumed by logistics electric vehicles and the charging power only change within the customer-distance time window and the charging and discharging time window, respectively. Formula (31) defines the operating time of logistics electric vehicles. Formula (32) introduces the customer-distance time window Simplified charge and discharge time window T 1 W Calculation.

[0102] The above describes the construction of the EV-VRPTW model, including the target total operating cost function required to calculate the logistics electric vehicle cost and the constraints corresponding to the target vehicle total operating cost function.

[0103] S102. For the configuration parameters in the vehicle path optimization model with time windows, the vehicle path optimization model with time windows is calculated until the set cost conditions of the logistics electric vehicles are reached to determine the target parameter values ​​of the configuration parameters, and the logistics electric vehicles are scheduled based on the target parameter values.

[0104] Among them, the configuration parameters at least include the charging and discharging time window of electric vehicles. The configuration parameters can be specifically understood as parameters related to logistics electric vehicle scheduling, such as driving routes, selected customers, distribution centers, charging stations, charging and discharging time windows, etc. Setting cost conditions means that the cost is the minimum total operating cost of the target.

[0105] In this embodiment, in view of the complexity of solving the EV-VRPTW model, a method based on a hybrid heuristic algorithm is used to solve the problem. In the hybrid heuristic algorithm, the ε-greedy strategy is integrated into the selection mechanism of the genetic algorithm to optimize the selection process of the number of logistics electric vehicles, thereby improving the solution efficiency. In the actual solution of the EV-VRPTW model, although it is feasible to directly use the above-mentioned constraints to optimize the operating costs of logistics electric vehicles, this method is often difficult to find a high-quality solution within a limited time. Therefore, in this embodiment, a step-by-step optimization strategy is used to solve the EV-VRPTW model. By decomposing the problem into two sub-goals, the complexity of each sub-problem can be reduced, making it easier to solve. Each sub-goal focuses on meeting specific constraints, thereby simplifying the consideration process of global constraints. It should be clear that in the actual operation of logistics, in the planning stage, it is first necessary to ensure that logistics electric vehicles can complete the task according to the scheduled time and route, and then consider how to further reduce operating costs. The simplified way of this problem is also in line with the actual operation logic of meeting basic needs first and then considering economic efficiency.

[0106] In this embodiment, when solving the first sub-goal, the influence of the electricity price mechanism is ignored, that is, without considering the impact of adjusting the charging and discharging time window on the operating cost of logistics electric vehicles, it is ensured that logistics electric vehicles can still meet all the constraints of the EV-VRPTW model after going to the charging station. These constraints will be implemented through a hybrid heuristic algorithm. After the goals of the first stage are achieved, the customer points that each logistics electric vehicle needs to serve will be clearly defined, and the service arrangements of these vehicles can meet the established constraints. At this time, some elements that were originally used as dynamic adjustment factors, such as driving paths and elements in each set, have been determined and converted into constants. Therefore, the original overall operating cost optimization problem can be converted into a single logistics electric vehicle operating cost optimization problem for solution, so that each vehicle can be optimized more carefully and efficiently in the second stage.

[0107] The goal of the second phase focuses on optimizing the driving plan of a single logistics electric vehicle, taking into full account the electricity price mechanism, and optimizing the operating costs of logistics electric vehicles by fine-tuning the charging and discharging time windows. The constraints of this sub-goal continue to cover all constraints that have not yet been solidified as constants within the EV-VRPTW optimization model framework and add the EV-VRPTW charging and discharging time window constraints, while its objective function is consistent with the optimization objective function of the EV-VRPTW optimization model. The goal of the second phase focuses on optimizing the driving plan of a single logistics electric vehicle, taking into full account the time-of-use electricity price mechanism, and optimizing the operating costs of logistics electric vehicles by fine-tuning the charging and discharging time windows.

[0108] An embodiment of the present invention provides a logistics electric vehicle scheduling optimization method. Based on the VRPTW model and the characteristics of logistics electric vehicles, an EV-VRPTW model based on a hybrid heuristic algorithm is proposed. In the process of path planning and operation optimization of logistics electric vehicles, the charging and discharging scheduling benefits are utilized to reduce logistics costs.

[0109] Embodiment 2

[0110] Figure 4 A flow chart of a logistics electric vehicle scheduling optimization method provided in Example 2 of the present invention. This embodiment is a further optimization of the above embodiment. In this embodiment, the optimization is further limited to "for the configuration parameters in the vehicle path optimization model with time window, the vehicle path optimization model with time window is calculated until the set cost conditions of the logistics electric vehicle are reached, so as to determine the target parameter values ​​of the configuration parameters".

[0111] like Figure 4 As shown, this embodiment 2 provides a logistics electric vehicle scheduling optimization method, which specifically includes the following steps:

[0112] S201. Obtain the target total operating cost function required to calculate the logistics electric vehicle cost and the constraints corresponding to the target vehicle total operating cost function as a vehicle path optimization model with a time window for the logistics electric vehicle.

[0113] S202: Decompose the target total operating cost function into a first operating cost function and a second operating cost function.

[0114] In this embodiment, in view of the complexity of solving the EV-VRPTW model, a method based on a hybrid heuristic algorithm is used to solve the problem. In the hybrid heuristic algorithm, the ε-greedy strategy is integrated into the selection mechanism of the genetic algorithm to optimize the selection process of the number of logistics electric vehicles, thereby improving the solution efficiency. When actually solving the EV-VRPTW model, although it is feasible to directly use the above-mentioned constraints to optimize the operating costs of logistics electric vehicles, this method is often difficult to find a high-quality solution within a limited time. Therefore, in this embodiment, a step-by-step optimization strategy is used to solve the EV-VRPTW model. By decomposing the problem into two sub-goals, the complexity of each sub-problem can be reduced, making it easier to solve. Each sub-goal focuses on meeting specific constraints, thereby simplifying the process of considering global constraints.

[0115] It should be clear that in the actual operation of logistics, in the planning stage, it is first necessary to ensure that logistics electric vehicles can complete the task according to the scheduled time and route, and then consider how to further reduce operating costs. The simplified way of this problem is also in line with the actual operation logic of first meeting basic needs and then considering economic efficiency. In this embodiment, the target operating total cost function is divided into two functions, which are respectively recorded as the first operating cost function and the second operating cost function. Specifically, the first operating cost function is expressed as:

[0116]

[0117] The second operating cost function is expressed as:

[0118]

[0119] The meaning of each letter in the formula can be found in the above text and will not be repeated here.

[0120] S203. Ignoring the electricity price mechanism, a hybrid heuristic algorithm is used to solve the first operating cost function until the value of the first operating cost function is minimized while satisfying the logistics constraint and the electric vehicle constraint in the constraint conditions, and the configuration parameter value corresponding to the minimum value of the first operating cost function is used as the target parameter value of the first configuration parameter.

[0121] In this embodiment, when solving the first sub-goal, that is, the first operating cost function, the influence of the electricity price mechanism is ignored, that is, without considering the impact of adjusting the charging and discharging time window on the operating cost of logistics electric vehicles, it is ensured that logistics electric vehicles can still meet all the constraints of the EV-VRPTW model after going to the charging station. These constraints will be implemented through a hybrid heuristic algorithm. After the goals of the first stage are achieved, the customer points that each logistics electric vehicle needs to serve will be clearly defined, and the service arrangements of these vehicles can meet the established constraints. At this time, some elements that were originally used as dynamic adjustment factors, such as driving paths and elements in each set, have been determined and converted into constants. Therefore, the original overall operating cost optimization problem can be converted into a single logistics electric vehicle operating cost optimization problem for solution, so that each vehicle can be optimized more carefully and efficiently in the second stage.

[0122] Among them, the configuration parameter determined by solving the first operating cost function is recorded as the first configuration parameter, and the configuration parameter value corresponding to the minimum value of the first operating cost function is recorded as the target parameter value of the first configuration parameter. It should be clear that the first operating cost function is solved by a hybrid heuristic algorithm until the value of the first operating cost function is minimized while satisfying the logistics constraint condition and the electric vehicle constraint condition in the constraint condition, and the configuration parameter value corresponding to the minimum value of the first operating cost function is used as the target parameter value of the first configuration parameter. For example, the first configuration parameter can be a driving path, a selected customer, a distribution center, a charging station, etc.

[0123] For example, Figure 5 A flow chart of the EV-VRPTW optimization model solution process provided in the second embodiment of the present invention is shown in FIG. Figure 5 As shown in Figure 1, in the first stage, the logistics electric vehicle parameters, genetic parameters, and ε-greedy strategy parameters are initialized, and the initialization population is constructed based on these settings, and the logistics electric vehicle operation cost C of the logistics operator corresponding to the initialization population is calculated. LO , where each individual defines the number of selected vehicles, serial numbers, and driving paths. Then, the fitness Fit of each individual in the group is calculated as follows:

[0124] Fit=1 / C LO (35)

[0125] When performing selection calculations, individuals are selected according to the individual fitness Fit through the roulette wheel rule. When performing crossover calculations, partially mapped crossover (PMX) is used to generate new vehicle numbers and serial numbers, and self-crossing is used with a certain probability to generate new paths. When performing mutation calculations, the ε-greedy strategy is used to mutate new vehicle numbers and serial numbers, and new paths are randomly generated. C is calculated for the new population after crossover mutation. LO , and give corresponding rewards accordingly. This reward mechanism is designed to guide the subsequent mutation process to generate more with higher C LO The number of vehicles is configured and the sequence number is sorted. If the current number of iterations does not reach the preset maximum number of iterations, the above process will be continued to be executed, that is, the fitness of the new population Fit is recalculated, and the next round of selection, crossover, and mutation operations are performed based on the new fitness Fit. Once the maximum number of iterations is reached, the goal of the first stage is considered to be achieved, and the optimal solution is output.

[0126] S204: Substitute the first configuration parameter into the constraint condition corresponding to the target vehicle operating total cost function to obtain the constraint condition corresponding to the updated target vehicle operating total cost function.

[0127] Continuing from the above description, the goal of the second stage focuses on optimizing the driving plan of a single logistics electric vehicle, taking full account of the electricity price mechanism, and optimizing the operating costs of logistics electric vehicles by fine-tuning the charging and discharging time windows. The constraints of this sub-goal continue to cover all constraints that have not yet been solidified as constants within the EV-VRPTW optimization model framework and add the EV-VRPTW charging and discharging time window constraints, while its objective function is consistent with the EV-VRPTW optimization model optimization objective function. Specifically, the first configuration parameter is substituted into the constraint corresponding to the target vehicle operating total cost function to obtain the constraint corresponding to the updated target vehicle operating total cost function.

[0128] S205. Taking the electricity price mechanism into consideration, solve the second operating cost function until the value of the second operating cost function is minimized while satisfying the constraints corresponding to the updated target vehicle operating total cost function, and use the configuration parameter value corresponding to the minimum value of the second operating cost function as the target parameter value of the second configuration parameter, and schedule logistics electric vehicles based on the target parameter value.

[0129] Among them, the electricity price mechanism adopts a time-of-use electricity price mechanism or a game electricity price mechanism.

[0130] In this embodiment, the goal of the second stage focuses on optimizing the driving plan of a single logistics electric vehicle, taking full account of the electricity price mechanism, and optimizing the operating cost of logistics electric vehicles by finely adjusting the charging and discharging time window. The constraints of this sub-goal continue to cover all constraints that have not been solidified as constants within the EV-VRPTW optimization model framework and add the EV-VRPTW charging and discharging time window constraints, while its objective function is consistent with the optimization objective function of the EV-VRPTW optimization model.

[0131] Continue to refer Figure 5 In this embodiment, in the process of solving the second stage target, the distance of each driving section of each vehicle is first measured one by one, and the feasible charging stations in the driving path are determined based on these distance data. Subsequently, the customer-distance time window corresponding to each vehicle is calculated. When setting the constraints, the charging and discharging time window constraints in the EV-VRPTW optimization model and the constraints closely related to logistics, electric vehicles, time and power in the model are comprehensively considered, and the corresponding objective function is set for each vehicle according to the objective function of the EV-VRPTW optimization model. Finally, the electricity price mechanism is introduced, and the optimal path planning and charging and discharging strategy under given conditions are calculated by the solver.

[0132] It should be noted that the electricity price mechanism can adopt a time-of-use electricity price mechanism or a game electricity price mechanism. In addition to analyzing the dispatching benefits of electric vehicle charging and discharging in the time-of-use electricity price scenario, it can also deeply optimize energy utilization and reduce operating costs from the perspective of energy sharing and demand response mechanism, that is, analyze the dispatching benefits of electric vehicle charging and discharging under the game electricity price scenario.

[0133] The above technical solution first proposes an EV-VRPTW model based on a hybrid heuristic algorithm based on the VRPTW model and the characteristics of logistics electric vehicles, and adopts a step-by-step optimization strategy to analyze the scheduling benefits that can be achieved by logistics electric vehicles under the time-of-use electricity price strategy. At the same time, a strategy that merges multiple customer time windows and distance time windows into customer-distance time windows is proposed to simplify the charging and discharging time window constraints.

[0134] As an optional embodiment of the present invention, based on the above embodiment, when the electricity price mechanism adopts the game electricity price mechanism, the method further includes:

[0135] a1) Establish a master-slave game model in which the interests of power grid operators and logistics operators are coordinated in each time period. The master-slave game model includes a power grid operator dynamic pricing game model that maximizes the power grid operator's revenue and a logistics operator energy management game model that minimizes the logistics operator's operating costs.

[0136] In order to further improve the dispatching efficiency of electric vehicle charging and discharging, in this embodiment, according to the master-slave game relationship between the power grid operator (Power Grid Operator, PGO) and the logistics operator (Logistics Operator, LO), a dynamic pricing game model of the power grid operator and an energy management game model of the logistics operator based on the EV-VRPTW optimization model architecture are constructed respectively. Figure 6 A schematic diagram of the basic architecture of a master-slave game model provided in the second embodiment of the present invention is shown in FIG. Figure 6 As shown in the figure, in the master-slave game model, the grid operator, as the leader, is responsible for summarizing the purchase and sale of electricity reported by the logistics operator. Combining the on-grid electricity price and the grid electricity price, and taking into account the price response behavior of the logistics operator, the grid operator sets the transaction electricity price for the logistics operator with the goal of maximizing its own profits. As a follower, the logistics operator receives the transaction electricity price set by the grid operator, and sets the amount of electricity traded with the grid operator with the goal of minimizing the operating cost. The leader grid operator and the follower logistics operator form a Stackelberg structure through sequential games. This master-slave game structure helps to achieve the optimized operation of the power grid and logistics system while safeguarding the interests of all parties.

[0137] Among them, the dynamic pricing game model of the power grid operator includes the utility function of the power grid operator and the constraints corresponding to the utility function of the power grid operator.

[0138] In this embodiment, the power grid operator adopts a tiered electricity price strategy and sets electricity purchase prices λ for logistics operators in different time periods. PGO,b and electricity price λ PGO,s This electricity price strategy aims to guide logistics operators to choose more reasonable charging and discharging times for logistics electric vehicles, so as to maximize profits. With the maximization of net profit as the game goal, the utility function of the power grid operator is expressed as:

[0139]

[0140] Among them, C PGO For the benefit of the grid operator, and are the on-grid electricity price and grid electricity price of the power market at time t, and are the electricity purchase price and electricity sales price of the logistics operator at time t, and They represent the amount of electricity purchased and sold by the logistics operator from the power grid operator at time t, P t PGO,s and P t PGO,b are the amount of electricity sold and purchased by the power grid operator to the power market at time t, respectively, and N is the total number of logistics operators;

[0141] The constraints corresponding to the utility function of the power grid operator include: supply and demand balance conditions among logistics operators and power purchase and sales price constraints.

[0142] To ensure the balance between supply and demand among logistics operators, and The following relationship should be satisfied:

[0143]

[0144] Where P t PGO The grid operator aggregates the total electricity traded with the power market after the logistics operators purchase and sell electricity. The above constraints constitute the strategy space Ω PGO .

[0145] In order to ensure that logistics operators are willing to trade with power grid operators, the electricity purchase and sales prices should meet the following constraints:

[0146]

[0147] In the formula, and are the on-grid electricity price and grid electricity price of the power market at time t, and are the electricity purchase price and electricity sales price of the logistics operator at time t respectively.

[0148] Among them, the energy management game model of logistics operators includes the utility function of logistics operators and the constraints corresponding to the utility function of logistics operators.

[0149] In this embodiment, the game strategy of the logistics operator is that the output plan for each period includes the power P sold to the operator. t LO,s and the amount of electricity purchased P t LO,b The utility function of the logistics operator is to minimize the operating cost of the logistics electric vehicle. The utility function of the logistics operator is expressed as:

[0150]

[0151] in, The operating costs of logistics operators, and are the electricity purchase price and electricity sales price of the logistics operator at time t, and They represent the amount of electricity purchased and sold by the logistics operator from the grid operator at time t. The constraints of the energy management game model of the logistics operator include the power balance constraints and the constraints corresponding to the total cost function of the target vehicle operation.

[0152] In this embodiment, when the logistics operator responds to the price, it needs to meet the corresponding constraints to ensure power balance, namely:

[0153]

[0154] By optimizing the charging and discharging plans of logistics electric vehicles through refined energy management, logistics operators hope to reduce the operating costs of logistics electric vehicles and improve efficiency. These constraints constitute the strategy space Ω LO,P Given that only through the strategy space Ω LO,P It cannot meet the actual operation requirements of logistics electric vehicles. Here, the strategy space of the EV-VRPTW optimization model mentioned above is introduced, and new constraints are added to combine the two strategy spaces more organically, namely:

[0155]

[0156] By introducing the large M method, the charge and discharge power P is determined LO,s , P LO,bHere, M, T W are all 0-1 variable matrices, which reflect the working status of the corresponding variables. Considering the flexibility in actual operation, the present invention allows logistics electric vehicles to not perform charging and discharging operations during part of the time they stay at the charging station. W The setting of equality constraints ensures that the charging and discharging process of logistics electric vehicles is within the driving time window T 0 W Within and only within the client-distance time window In addition, it meets the delivery needs of logistics electric vehicles with time windows. The above constraint system together constitutes the energy management game model strategy space Ω of the logistics operator LO .

[0157] In this embodiment, based on the above conditions, a master-slave game model between the power grid operator and multiple logistics operators is established:

[0158]

[0159] In the formula, express When taking the minimum value, Represents the value of an independent variable: Indicates any logistics operator LO j The meanings of other letters can be found above and will not be repeated here.

[0160] Both power grid operators and logistics operators formulate strategies with the goal of maximizing profits and reducing expenses. When the difference between the purchase and sale prices of electricity increases, the amount of electricity shared by logistics operators increases, thereby increasing the profits of power grid operators. However, the response of logistics operators to electricity prices also directly affects the profitability of power grid operators: when the purchase price of electricity rises, the amount of electricity purchased by logistics operators decreases; when the selling price of electricity decreases, the amount of electricity sold by logistics operators decreases, resulting in a decrease in the amount of electricity shared among logistics operators. Therefore, there is a game of interests between power grid operators and logistics operators. In order to maximize profits, power grid operators need to consider the price response of logistics operators and formulate the best electricity price strategy by finding the Nash equilibrium solution. Nash equilibrium is a concept of a solution in game theory, which refers to a strategy combination that satisfies the following properties: any player unilaterally changing his strategy under this strategy combination (other players' strategies remain unchanged) will not increase his own profits.

[0161] b1) Iteratively solve the master-slave game model to obtain the game electricity price.

[0162] In this embodiment, when studying the master-slave game model between power grid operators and logistics operators, the 0-1 variable problem in the energy management game model is encountered. This type of variable makes it impossible to directly derive equivalent KKT conditions, making traditional optimization methods no longer applicable. Among them, KKT conditions are an important tool for solving constrained optimization problems. At the same time, although intelligent algorithms have potential applicability in dealing with such problems, they are often accompanied by problems such as high computational complexity and long operation time. Therefore, it is necessary to seek a more efficient and less computationally intensive alternative. To this end, a solution algorithm based on the Kriging metamodel is proposed in this embodiment. Kriging is a regression algorithm for spatial modeling and prediction (interpolation) of random processes / random fields based on covariance functions.

[0163] In this embodiment, the electricity selling price and electricity purchasing price data of 24 periods are collected, and the electricity selling price λ of 24 periods is used as the PGO,s and the electricity purchase price λ PGO,b As input, the transaction power of each logistics operator in 24 periods For output, a Kriging model is constructed. The specific construction process is as follows:

[0164]

[0165] Based on this, the master-slave game model can be converted into:

[0166]

[0167] In this embodiment, an initial Kriging model is established based on an appropriate amount of sample data. Each set of electricity prices is brought into the energy management model of the logistics operator, and the transaction electricity volume of each logistics operator corresponding to each set of transaction electricity prices can be calculated. Trading electricity prices and transaction volume Constructing the initial sample data set Based on this, the initial Kriging model of each logistics operator was constructed, and according to the sample data set X j Solving the utility function Finally, the optimal solution to the optimization problem is obtained.

[0168] As a specific implementation method, the master-slave game model is iteratively solved to obtain the game electricity price, including:

[0169] b11) Generate initial sample points using the set sampling method.

[0170] For example, Figure 7 The flowchart of the master-slave game algorithm between the power grid operator and the logistics operator provided in the second embodiment of the present invention is as follows: Figure 7As shown, in this embodiment, the system parameters are initialized, and then the initial sample points are generated by Latin hypercube sampling (LHS). When generating the initial sample points, in order to ensure the uniformity and rationality of the sampling, the Latin hypercube sampling method is used to generate n initial sample points. The coordinates of these sample points represent different transaction electricity price combinations, including the electricity selling price λ PGO,s and the electricity purchase price λ PGO,b The number of initial sample points is usually 9-10 times the number of variables to ensure the adequacy of the model fit.

[0171] b12) Generate transaction power based on the initial sample points and the energy management game model of logistics operators.

[0172] In this embodiment, based on these sample points, the transaction electricity amount is calculated through the energy management game model of the logistics operator.

[0173] b13) Construct a transaction power forecasting model and determine the objective function value of each initial sample point based on the grid operator’s dynamic pricing game model.

[0174] Then, a Kriging meta-model is constructed to predict the electricity consumption, and the dynamic electricity price game model is used to solve the objective function value of each sample point.

[0175] b14) Divide the key areas according to the objective function value.

[0176] In this embodiment, the key areas are further divided according to these objective function values. The approximate ability of the Kriging model is used to reduce the computational complexity, and the accuracy of the model is continuously improved through a dynamic update strategy. When dividing the key areas, the key areas are divided based on the sample data set X j Solving the utility function C of the dynamic pricing game model i PGO , thereby ensuring that in each area, the particle swarm algorithm and the fitted Kriging model are used to quickly optimize each key area.

[0177] b15) Use the particle swarm algorithm to optimize the key areas and obtain the equilibrium game electricity price.

[0178] In this embodiment, the particle swarm algorithm is used to quickly optimize the key areas, and finally the equilibrium electricity price is solved. When using the particle swarm algorithm to quickly optimize, the local optimal transaction electricity price and transaction electricity volume are quickly locked according to the divided key areas, so as to obtain the real transaction electricity volume under the transaction electricity price, and add it to the original sample data set, and modify the Kriging model to generate excellent sampling points, and eliminate the areas with low probability of optimal solutions, narrowing the search range of excellent sampling points, thereby improving the optimization efficiency and avoiding frequent calls to complex energy management game models. In order to ensure the accuracy of the solution, the energy management game model will be called based on the optimization results to calculate the real electricity volume and the upper objective function value. Through repeated iterations of this process, the accuracy of the Kriging model will continue to improve until the optimal solution to the optimization problem is finally obtained.

[0179] In order to further improve the dispatching efficiency of electric vehicle charging and discharging, the above technical scheme takes into account that the power grid operator can adjust the electricity price strategy according to the power market demand. From the perspective of master-slave game, the dynamic pricing model of the logistics operator and the energy management model of the power grid operator are constructed respectively, realizing the non-cooperative game win-win situation between the two. At the same time, this paper also introduces the Kriging metamodel to simplify the calculation of the game equilibrium solution and protect the operator's data privacy.

[0180] Embodiment 3

[0181] Figure 8 This is a schematic diagram of the structure of a logistics electric vehicle scheduling optimization device provided in the third embodiment of the present invention. The device can be applied to the situation of scheduling optimization of logistics electric vehicles. The logistics electric vehicle scheduling optimization device can be implemented in the form of hardware and / or software and is generally integrated in an electronic device. Figure 8 As shown, the system includes: a model acquisition module 31 and a parameter solution module 32; wherein the model acquisition module 31 is used to obtain the target total operating cost function required for calculating the cost of the logistics electric vehicle and the constraint conditions corresponding to the target total operating cost function, as a vehicle path optimization model with a time window for the logistics electric vehicle; the parameter solution module 32 is used to calculate the vehicle path optimization model with a time window for the configuration parameters in the vehicle path optimization model with a time window until the set cost conditions of the logistics electric vehicle are reached, so as to determine the target parameter value of the configuration parameter, and schedule the logistics electric vehicle based on the target parameter value. Among them, the configuration parameters at least include the charging and discharging time window of the electric vehicle.

[0182] Optionally, the target operating total cost function is expressed as:

[0183]

[0184] in, is the total cost of the logistics electric vehicle driving distance, and is the total cost of the time penalty for logistics electric vehicles, is the total operating time cost of logistics electric vehicles, is the total charging cost of logistics electric vehicles in the distribution center, and are the total charging cost and total discharging profit of logistics electric vehicles at charging stations, is the vehicle use cost, is the distance from customer i to the nearby charging station and then to customer j, is the decision variable for the vehicle from customer i to customer j under path l, ET i ,LT i are the earliest service time and the latest service time expected by the customer, respectively, arr,i is the time when the logistics electric vehicle arrives at customer point i, T is the actual operating time of a logistics electric vehicle in a day; W is the real-time power of a logistics electric vehicle, represents the initial power of the logistics electric vehicle l, represents the power of logistics electric vehicle l after the operation is completed, α is the distance electricity price conversion coefficient, M is the penalty coefficient when the delivery is not made within the expected time, β is the time cost conversion coefficient, γ is the power cost conversion coefficient, ζ is the vehicle cost conversion coefficient; η is the distance power conversion coefficient; m is the maximum allowable load of the vehicle, C 1 , C 2 are the total charging cost and total discharging profit of a logistics electric vehicle at all charging stations respectively; the constraints corresponding to the target operation total cost function include: logistics constraints, electric vehicle constraints, and charging and discharging time window constraints.

[0185] Optionally, for the configuration parameters in the vehicle routing optimization model with time windows, the vehicle routing optimization model with time windows is calculated until the set cost condition of the logistics electric vehicle is reached to determine the target parameter value of the configuration parameter, including:

[0186] The target total operating cost function is decomposed into a first operating cost function and a second operating cost function; while ignoring the electricity price mechanism, a hybrid heuristic algorithm is used to solve the first operating cost function until the value of the first operating cost function is minimized while satisfying the logistics constraint condition and the electric vehicle constraint condition in the constraint condition, and the configuration parameter value corresponding to the minimum value of the first operating cost function is used as the target parameter value of the first configuration parameter;

[0187] Substituting the first configuration parameter into the constraint condition corresponding to the target vehicle operation total cost function to obtain the constraint condition corresponding to the updated target vehicle operation total cost function;

[0188] Taking the electricity price mechanism into consideration, the second operating cost function is solved until the value of the second operating cost function is minimized while satisfying the constraints corresponding to the updated target automobile operating total cost function, and the configuration parameter value corresponding to the minimum value of the second operating cost function is used as the target parameter value of the second configuration parameter. The electricity price mechanism adopts a time-of-use electricity price mechanism or a game electricity price mechanism.

[0189] Optionally, when the electricity price mechanism adopts a game electricity price mechanism, the device further comprises: a game electricity price determination module, comprising: a model establishment unit, for establishing a master-slave game model in which the interests of the power grid operator and the logistics operator are coordinated with each other in each time period, the master-slave game model comprising a power grid operator dynamic pricing game model for maximizing the power grid operator's profit and a logistics operator energy management game model for minimizing the logistics operator's operating cost;

[0190] The model solving unit is used to iteratively solve the master-slave game model to obtain the game electricity price.

[0191] Optionally, the grid operator dynamic pricing game model includes a utility function of the grid operator and constraints corresponding to the utility function of the grid operator; the utility function of the grid operator is expressed as:

[0192]

[0193] For the benefit of the grid operator, and are the on-grid electricity price and grid electricity price of the power market at time t, and are the electricity purchase price and electricity sales price of the logistics operator at time t, and They represent the amount of electricity purchased and sold by the logistics operator from the power grid operator at time t, P t PGO,s and P t PGO,b are the amount of electricity sold and purchased by the power grid operator to the power market at time t, respectively, and N is the total number of logistics operators. The constraints corresponding to the utility function of the power grid operator include: the supply and demand balance conditions among the logistics operators and the purchase and sale electricity price constraints.

[0194] Optionally, the logistics operator energy management game model includes a utility function of the logistics operator and constraints corresponding to the utility function of the logistics operator; the utility function of the logistics operator is expressed as:

[0195] in, The operating costs of logistics operators, and are the electricity purchase price and electricity sales price of the logistics operator at time t, and They represent the amount of electricity purchased and sold by the logistics operator from the power grid operator at time t respectively; the constraints of the energy management game model of the logistics operator include the power balance constraints and the constraints corresponding to the total cost function of the target vehicle operation.

[0196] Optionally, the model solving unit is specifically used to: generate initial sample points using a set sampling method; generate trading electricity based on the initial sample points and the energy management game model of the logistics operator; construct a trading electricity prediction model, and determine the objective function value of each initial sample point based on the dynamic pricing game model of the power grid operator; divide the key areas according to the objective function values; and use a particle swarm algorithm to optimize the key areas to obtain a balanced game electricity price.

[0197] The logistics electric vehicle scheduling optimization device provided in the embodiment of the present invention can execute the logistics electric vehicle scheduling optimization method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0198] Embodiment 4

[0199] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The components, their connections and relationships, and their functions shown herein are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0200] like Fig. 9 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0201] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0202] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 41 executes the various methods and processes described above, such as a logistics electric vehicle scheduling optimization method.

[0203] In some embodiments, the logistics electric vehicle scheduling optimization method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the logistics electric vehicle scheduling optimization method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to execute the logistics electric vehicle scheduling optimization method in any other appropriate manner (e.g., by means of firmware).

[0204] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0205] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A logistics electric vehicle scheduling optimization method, characterized in that: include: Obtaining a target total operating cost function required for calculating the cost of the logistics electric vehicle and constraints corresponding to the target total vehicle operating cost function as a vehicle path optimization model with a time window for the logistics electric vehicle; With respect to the configuration parameters in the vehicle path optimization model with time windows, the vehicle path optimization model with time windows is calculated until the set cost conditions of the logistics electric vehicle are reached to determine the target parameter values ​​of the configuration parameters, and the logistics electric vehicle is scheduled based on the target parameter values, wherein the configuration parameters include at least the charging and discharging time windows of the electric vehicles.

2. The method according to claim 1, characterized in that: The target total operating cost function is expressed as: in, is the total cost of the logistics electric vehicle driving distance, and is the total cost of the time penalty for logistics electric vehicles, is the total operating time cost of logistics electric vehicles, is the total charging cost of logistics electric vehicles in the distribution center, and are the total charging cost and total discharging profit of logistics electric vehicles at charging stations, is the vehicle use cost, is the distance from customer i to the nearby charging station and then to customer j, is the decision variable for the vehicle from customer i to customer j under path l, ET i ,LT i are the earliest service time and the latest service time expected by the customer, respectively, arr,i is the time when the logistics electric vehicle arrives at customer point i, T is the actual operating time of a logistics electric vehicle in a day, W is the real-time power of a logistics electric vehicle, represents the initial power of the logistics electric vehicle l, represents the electricity consumption of a logistics electric vehicle l after the operation is completed, α is the distance electricity price conversion coefficient, M is the penalty coefficient when the delivery is not made within the expected time, β is the time cost conversion coefficient, γ is the electricity cost conversion coefficient, ζ is the vehicle cost conversion coefficient; η is the distance electricity conversion coefficient, m is the maximum allowable load of the vehicle, C1 and C2 are the total charging cost and total discharge profit of a logistics electric vehicle at all charging stations respectively; The constraints corresponding to the target total operating cost function include: logistics constraints, electric vehicle constraints, and charging and discharging time window constraints.

3. The method according to claim 1, characterized in that The step of calculating the configuration parameters in the vehicle path optimization model with a time window until the set cost condition of the logistics electric vehicle is reached to determine the target parameter value of the configuration parameter includes: Decomposing the target total operating cost function into a first operating cost function and a second operating cost function; Ignoring the electricity price mechanism, using a hybrid heuristic algorithm to solve the first operating cost function until the value of the first operating cost function is minimized while satisfying the logistics constraint condition and the electric vehicle constraint condition among the constraint conditions, and taking the configuration parameter value corresponding to the minimum value of the first operating cost function as the target parameter value of the first configuration parameter; Substituting the first configuration parameter into the constraint condition corresponding to the target vehicle operation total cost function to obtain the constraint condition corresponding to the updated target vehicle operation total cost function; Taking the electricity price mechanism into consideration, the second operating cost function is solved until the value of the second operating cost function is minimized while satisfying the constraints corresponding to the updated target automobile operating total cost function, and the configuration parameter value corresponding to the minimum value of the second operating cost function is used as the target parameter value of the second configuration parameter. The electricity price mechanism adopts a time-of-use electricity price mechanism or a game electricity price mechanism.

4. The method according to claim 3, characterized in that When the electricity price mechanism adopts the game electricity price mechanism, it also includes: Establishing a master-slave game model in which the interests of power grid operators and logistics operators are coordinated in each time period, wherein the master-slave game model includes a power grid operator dynamic pricing game model to maximize the power grid operator's revenue and a logistics operator energy management game model to minimize the logistics operator's operating costs; The master-slave game model is iteratively solved to obtain the game electricity price.

5. The method according to claim 4, characterized in that The grid operator dynamic pricing game model includes a utility function of the grid operator and constraints corresponding to the utility function of the grid operator; The utility function of the grid operator is expressed as: Among them, C PGO For the benefit of the grid operator, and are the on-grid electricity price and grid electricity price of the power market at time t, and are the electricity purchase price and electricity sales price of the logistics operator at time t, and They represent the amount of electricity purchased and sold by the logistics operator to the power grid operator at time t, and are the amount of electricity sold and purchased by the power grid operator to the power market at time t, respectively, and N is the total number of logistics operators; The constraints corresponding to the utility function of the power grid operator include: supply and demand balance conditions among logistics operators and purchase and sale electricity price constraints.

6. The method according to claim 4, characterized in that The logistics operator energy management game model includes a utility function of the logistics operator and constraints corresponding to the utility function of the logistics operator; The utility function of the logistics operator is expressed as: in, The operating costs of logistics operators, and are the electricity purchase price and electricity sales price of the logistics operator at time t, and They represent the amount of electricity purchased and sold by the logistics operator to the power grid operator at time t respectively; The constraints of the logistics operator energy management game model include power balance constraints and constraints corresponding to the target vehicle operation total cost function.

7. The method according to claim 4, characterized in that The iterative solution of the master-slave game model to obtain the game electricity price includes: Generate each initial sample point by setting the sampling method; Generate transaction power according to the initial sample point and the energy management game model of the logistics operator; Constructing a transaction power forecasting model, and determining the objective function value of each of the initial sample points based on the dynamic pricing game model of the power grid operator; Dividing the key areas according to the objective function value; The particle swarm algorithm is used to optimize the key area to obtain a balanced game electricity price.

8. A logistics electric vehicle scheduling optimization device, characterized in that: include: A model acquisition module, used to acquire a target total operating cost function required for calculating the cost of a logistics electric vehicle and constraints corresponding to the target total operating cost function, as a vehicle path optimization model with a time window for the logistics electric vehicle; A parameter solving module is used to calculate the vehicle path optimization model with a time window according to the configuration parameters in the vehicle path optimization model with a time window until the set cost conditions of the logistics electric vehicle are reached, so as to determine the target parameter values ​​of the configuration parameters, and schedule the logistics electric vehicle based on the target parameter values, wherein the configuration parameters at least include the electric vehicle charging and discharging time window.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the logistics electric vehicle scheduling optimization method described in any one of claims 1-7.

10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions, when executed by a computer processor, are used to execute the logistics electric vehicle scheduling optimization method as described in any one of claims 1-7.

Citation Information

Cited By

  • Charging facility planning method and device based on machine learning and medium

    CN120317719A

  • A charging facility planning method, device and medium based on machine learning

    CN120317719B