A mobile charging vehicle service scheduling method based on deep reinforcement learning

Optimizing mobile charging vehicle service scheduling through deep reinforcement learning solves the problem of long charging time for electric vehicles and difficulty in meeting peak demand at fixed charging stations, achieves efficient allocation of charging resources and reduces waiting time, and improves the charging service efficiency of electric vehicles. .

CN114077972BActive Publication Date: 2024-09-10NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111388007.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-22
Publication Date
2024-09-10
Estimated Expiration
2041-11-22

AI Technical Summary

Technical Problem

The charging time of electric vehicles is long and fixed charging stations are difficult to meet the charging demand during peak periods. Existing research simplifies the service scheduling of mobile charging vehicles and fails to effectively consider the multi-objective needs of electric vehicles.

Method used

Using a mobile charging vehicle service scheduling method based on deep reinforcement learning, by constructing a relationship network model and a neural network model, comprehensively considering the information of mobile charging vehicles and electric vehicles, optimizing the charging sequence and charging amount, maximizing charging revenue and minimizing waiting time .

Benefits of technology

It improves the efficiency of charging services for electric vehicles, rationally allocates charging resources, reduces waiting time, improves power utilization, and solves the problem of long charging times in fixed charging piles and battery swapping projects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114077972B
    Figure CN114077972B
Patent Text Reader

Abstract

The present invention discloses a mobile charging vehicle service scheduling method based on deep reinforcement learning, which is used to optimize the service order and charging amount decision-making problems faced when using a mobile charging vehicle to provide charging services to a number of electric vehicles. The method mainly uses the network topology of the social relationship between the mobile charging vehicle, the electric vehicle and the control center, and according to their respective location information and charging demand information, uses them as the input of a neural network based on deep reinforcement learning, and the neural network of the control center calculates the optimal strategy to achieve service scheduling. The method of the present invention comprehensively considers the decision-making influences between the mobile charging vehicle, the electric vehicle and the control center, and finally realizes an efficient service scheduling strategy. The optimal service order and charging quantity under different conditions are obtained through the neural network, so as to consume the least time and the shortest distance, and maximize the overall charging benefits, thereby achieving the purpose of saving energy and protecting the environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to charging service deployment technology, and in particular to a mobile charging vehicle service scheduling method based on deep reinforcement learning. Background Art

[0002] Compared with traditional internal combustion engine vehicles using gasoline or diesel, electric vehicles have shown higher energy utilization and lower harmful gas emissions. However, compared with traditional vehicles, electric vehicles have advantages such as energy saving and environmental protection, fast power acceleration, but they are also difficult to charge. Compared with the refueling time of fuel vehicles, the charging time of electric vehicles is relatively slow and takes longer. During peak travel periods, there is often a problem of long queues.

[0003] Existing technologies, such as fast charging piles and battery replacement technology, can alleviate such problems to a certain extent; however, the corresponding huge investment costs are prohibitive for some areas with only a few electric vehicles. In addition, due to mobility issues, randomly distributed electric vehicles may have different charging needs in time or space, and such needs seriously affect the quality of charging services provided by fixed charging stations. Moreover, the limited charging piles at fixed charging stations cannot cope with the charging needs during peak periods, that is, during peak periods, the charging needs of many electric vehicles cannot be met, and they may have to wait for several hours at fixed charging stations.

[0004] In order to meet the different charging needs of electric vehicles in time and space, mobile charging services are regarded as an alternative to some current mainstream charging methods (such as fixed charging stations, fast charging piles, battery replacement technology, etc.). This type of service is provided by mobile charging vehicles, which have their own energy storage system and can provide charging services for a certain number of electric vehicles. Its mobility, affordable price and easy placement help to meet the charging needs of different electric vehicles well and quickly, whether in peak or off-peak periods.

[0005] However, most current studies have simplified the service provision of mobile charging vehicles, using simple queuing models to determine the charging order. And they often only consider a single demand of electric vehicles, such as charging revenue. However, in reality, such problems are often multi-objective problems that require considering different requirements of electric vehicles at the same time. Summary of the invention

[0006] Purpose of the invention: In order to optimize the charging revenue and waiting time of electric vehicles, achieve an overall improvement in the efficiency of charging services, and achieve optimal allocation, the present invention provides a mobile charging vehicle service scheduling method based on deep reinforcement learning.

[0007] Technical solution: A mobile charging vehicle service scheduling method based on deep reinforcement learning, which calculates the service order and charging amount of the mobile charging vehicle based on the charging demand information submitted by the electric vehicle to the control center, including the following steps:

[0008] (1) Constructing a relationship network model, including establishing the network topology structure of the social relationship between mobile charging vehicles, electric vehicles, and the control center;

[0009] (2) determining an overall benefit function based on the charging service information of the mobile charging vehicle and the charging demand information of the electric vehicle, wherein the charging service information includes the battery capacity information and current location information of the mobile charging vehicle, and the charging demand information includes the location information, battery capacity information, initial power, remaining power information, and minimum required power information of the electric vehicle, and the overall benefit function is determined by the average charging income and the average service time;

[0010] (3) Constructing and training a neural network model, taking charging service information and charging demand information as input, and outputting the charging service sequence of the mobile charging vehicle for the electric vehicle through neural network calculation;

[0011] (4) The control center dispatches mobile charging vehicles to provide charging services for electric vehicles and determines the specific charging amount based on the overall benefit function to complete the charging task.

[0012] Furthermore, in the relationship network model described in step (1), the mobile charging vehicle, the electric vehicle and the control center exchange information through a bidirectional communication line, including the sending and receiving of instructions. The electric vehicle sends charging demand information to the control center, and the mobile charging vehicle issues a charging service instruction to the electric vehicle based on the charging service information of the mobile charging vehicle at the control center. Specifically, each electric vehicle provides its own location information, the minimum required power and the remaining power to the control center, and the control center calculates the charging sequence and the power provided to each electric vehicle based on this information and the location of the mobile charging vehicle. Therefore, there is no direct connection between the mobile charging vehicle and the electric vehicle, and it only provides charging services.

[0013] In the assumed environment, there is a service area, a mobile charging vehicle and N electric vehicles, as well as a control center and a station for recharging the mobile charging vehicle. The control center decides how to arrange the charging task based on the corresponding information.

[0014] Furthermore, in step (2), X = {x 1 ,…,x N} represents the charging demand information of N electric vehicles, each Represents the static information s of the i-th electric car i With dynamic information The static information si Represents information that does not change during the entire charging process, including the location, battery capacity, initial power, and minimum required power of the i-th electric vehicle; dynamic information Indicates information that changes during the entire charging process, mainly referring to the remaining required power at time t. The initial remaining required power is equal to the minimum required power. After the minimum required power of the electric vehicle is met, the remaining required power will become 0.

[0015] The charging service information of the mobile charging vehicle is represented as It also contains static information and dynamic information. Static information s mcv is the battery capacity of the mobile charging vehicle, It includes the current location of the mobile charging vehicle and the remaining battery capacity. Unlike electric vehicles, the location information of the mobile charging vehicle will change over time.

[0016] Consider using a mobile charging vehicle to serve multiple electric vehicles, and use two objective functions to judge the quality of service completion, namely the average charging benefit and the average service time. The formula for the average charging benefit is as follows:

[0017]

[0018] Constraint expressions include:

[0019]

[0020]

[0021] in represents the battery capacity of the kth electric car, represents the initial charge of the kth vehicle, represents the actual charge of the k-th vehicle, represents the minimum charge of the kth vehicle.

[0022] In the present invention, it is assumed that each electric vehicle that needs charging service will propose a minimum required power, and the mobile charging vehicle must charge at least the kth vehicle with the minimum required power. However, the electric vehicle can also accept more power provided above this.

[0023] The formula for average service time is as follows:

[0024]

[0025] in indicates the time when the request arrives, and The time for charging to be completed needs to be obtained according to the service order of the mobile charging vehicle. The calculation formula is:

[0026]

[0027] Where dist(ρ(j), ρ(j+1)) represents the moving distance from the charging target ρ(j) to the charging target ρ(j+1), v represents the moving speed of the mobile charging vehicle, and ε represents the charging speed of the mobile charging vehicle providing charging services.

[0028] Therefore, the goal of the present invention is to minimize the average waiting time of all electric vehicles waiting to receive charging services while maximizing the average benefits of all objectives. This goal can be expressed as follows:

[0029]

[0030] in Represents the actual amount of electricity received by all electric vehicles.

[0031] Furthermore, the neural network described in step (3) sets weights for maximizing average revenue and minimizing average waiting time based on the overall benefit function and the objective function. The structure and training process of the neural network are as follows:

[0032] (31) Set a set of weights λ 1 ,…,λ M ,q where represents the weight of average return, Indicates the weight of the average waiting time;

[0033] (32) The objective function solution problem is converted into M optimization sub-problems. The M sub-problems are cooperatively calculated through a neighbor-based parameter migration strategy. During the training process, the training parameters of the previous neural network are used as the initial parameters of the next neural network.

[0034] (33) The entire charging sequence decision problem is decomposed into M sub-problems and solved by deep reinforcement learning, including constructing sub-problems through a pointer network and using an Actor-Critic algorithm to train the network;

[0035] The input of the network is X = {x 1 ,…,x N}, the output is the access sequence of all electric vehicles and charging stations Y = {ρ t ,t=0,1,…,T} and the actual charge amount for each vehicle Where T represents the length of the decision step, ρ t It can represent an electric car or a charging station;

[0036] Among them, input X tIt will change with the update of the decision-making steps, and the changing part is the power demand of different electric vehicles and the power of the mobile charging vehicle itself;

[0037] (34) Based on the decision analysis of the pointer network, the probability chain rule is used to obtain the next target to be visited. The expression of the target is as follows:

[0038]

[0039] Since the access order of the previous step is ρ1,…,ρ t The decoding network adopts RNN structure, in which the hidden layer d of the decoding network t Contains previously visited targets ρ1,…,ρ t information, plus the input coded information They are used together to calculate the probability P(Y|X0) of the next target to be visited. The number of the next target to be visited is obtained by the attention mechanism, and the target with the greatest correlation will become the next target to be visited. The calculation formula is as follows:

[0040]

[0041] P(ρ t+1 |ρ1,…,ρ t ,X t )=softmax(u t )

[0042] where v, W1 and W2 are trainable parameters.

[0043] In step (4), the control center obtains the next charging target and needs to determine the specific charging amount based on the benefit function of the charging target, which specifically includes the following calculation process:

[0044] Every electric vehicle EV k Will provide its initial power Battery capacity Minimum power required Actual charge capacity Will be arrive In order to obtain the best actual charge amount, the calculation is as follows:

[0045]

[0046] Among them, w1 and w2 represent the weights of charging benefits and waiting time respectively, ε represents the charging rate of the mobile charging vehicle, and l represents the number of electric vehicles waiting to be charged;

[0047] Then, by deriving the above equation, we get the following solution:

[0048]

[0049] in,

[0050] Beneficial effect: Compared with the prior art, the method of the present invention is used for scheduling mobile charging vehicles to provide charging services for electric vehicles. The method comprehensively considers the charging service information of the mobile charging vehicle and the charging demand information of the electric vehicle. The algorithm based on the control center is used to achieve the objective function of dual balance of charging time and revenue. Compared with the existing fixed charging piles or battery replacement projects, the problems of full charge or queuing time are significantly solved, the utilization rate of electric energy is improved, and the charging services are reasonably allocated. That is, the charging demand of the electric vehicle is also weighed in combination with the requested charging amount and the subsequent waiting sorting time of other vehicles. The scheduling is carried out by using its own remaining power, which can also alleviate the problem of subsequent electric vehicles waiting for a long time due to partial charging. The method of the present invention proposes an effective and reasonable allocation and scheduling method. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a schematic diagram of the process of the method of the present invention;

[0052] Figure 2 Schematic diagram of the application model for charging demand of electric vehicles;

[0053] Figure 3 A schematic diagram of the relationship between the mobile charging vehicle, the electric vehicle and the control center in the present invention;

[0054] Figure 4 A schematic diagram of charging path planning for a mobile charging vehicle in an embodiment of the present invention;

[0055] FIG5( a ) is a schematic diagram showing the comparison of the Pareto front obtained by the trained neural network and the NSGA-II algorithm in the case of 10 electric vehicles;

[0056] FIG5( b ) is a schematic diagram showing the comparison of the Pareto front obtained by the trained neural network and the NSGA-II algorithm in the case of 20 electric vehicles;

[0057] FIG6( a ) is a schematic diagram showing the comparison of the Pareto fronts obtained by the trained neural network and the MOEA / D algorithm in the case of 10 electric vehicles;

[0058] FIG6( b ) is a schematic diagram showing the comparison of the Pareto front obtained by the trained neural network and the MOEA / D algorithm in the case of 20 electric vehicles; DETAILED DESCRIPTION

[0059] In order to explain the technical solution disclosed by the present invention in detail, the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0060] The present invention provides a mobile charging vehicle service scheduling method based on deep reinforcement learning, which is mainly used to solve the problem of providing efficient and convenient charging services by relying on mobile charging vehicles.

[0061] According to data from the China Association of Automobile Manufacturers in 2020, new energy vehicles accounted for 5.4% of China's total, while traditional vehicles accounted for 94.6%. In 2020, China's new energy vehicle sales were 1.367 million units, a year-on-year increase of 13.3%; China's new energy vehicle production was 1.366 million units, a year-on-year increase of 10%. According to statistics from the China Electric Charging Infrastructure Promotion Alliance, since 2019, the scale of construction of electric vehicle swap stations has continued to increase nationwide. At the end of 2020, the number reached 555; as of April 2021, there were 617 swap stations nationwide. From the regional distribution of swap stations, as of April 2021, swap facilities are mainly distributed in economically developed provinces, among which Beijing, Zhejiang Province and Guangdong Province lead the country in terms of swap facilities. From the provincial and municipal distribution of swap stations, as of April 2021, Beijing is far ahead in the number of swap stations, reaching 214. From this data, it can be seen that electric vehicles are developing well, but the regional distribution of charging facilities is uneven, mainly concentrated in economically developed regions such as Beijing, Shanghai and Guangzhou. Therefore, we have to consider how to provide more convenient charging services for electric vehicles in areas with underdeveloped charging facilities, and how to use mobile charging vehicles to alleviate the problem of long waiting times for electric vehicles during peak charging periods in areas with dense electric vehicles.

[0062] The mobile charging vehicle service scheduling method based on deep reinforcement learning considers maximizing the charging benefits of all electric vehicles waiting for charging services on the one hand, and minimizing the waiting time of electric vehicles on the other hand. In order to solve this multi-objective problem, the method described in the present invention is an efficient and convenient mobile charging vehicle service scheduling system and its implementation method. The present invention determines the charging order and charging amount of all electric vehicles based on the location information of all electric vehicles, the minimum required power, the location information of the mobile charging vehicle itself, and the remaining power, and finally designs an efficient service scheduling strategy to achieve the purpose of saving energy and protecting the environment while maximizing the interests of all parties as much as possible.

[0063] The implementation process of the technical solution provided by the present invention is described in detail below.

[0064] The method described in the present invention is to realize the decision of charging sequence and charging amount. It mainly includes a control center, an electric vehicle and a mobile charging vehicle. The control center collects information of the electric vehicle and the mobile charging vehicle, and is responsible for the scheduling of the mobile charging vehicle; the electric vehicle puts forward charging requirements to the control center, and waits for the charging service of the mobile charging vehicle; the mobile charging vehicle accepts the scheduling of the control center and provides charging services for the electric vehicle.

[0065] The main implementation process of the method of the present invention is as follows Figure 1 As shown, based on the above technical solution, further detailed description is made in the embodiment, which specifically includes the following steps:

[0066] (1) constructing a relationship network model, including establishing a network topology structure of social relationships between a mobile charging vehicle, an electric vehicle, and a control center; the mobile charging vehicle provides charging services for the electric vehicle, and the control center calculates a charging scheduling sequence and a charging amount for the mobile charging vehicle;

[0067] (2) Determine the information of mobile charging vehicles and electric vehicles and the overall benefit function respectively;

[0068] (3) Using the above information as input, the next charging target is obtained through a neural network;

[0069] (4) The control center obtains the next charging target and determines the specific charging amount based on the benefit function of the charging target;

[0070] (5) When the access order and charging capacity of all electric vehicles are determined, the mobile charging vehicle goes to complete the charging task.

[0071] In actual applications, for step (1), the first step is to establish a social relationship network in the radiating area based on the region and geographical location, including mobile charging vehicles, electric vehicles and control centers, and use this network to establish a relationship network among the three, and realize mutual communication, including the sending and receiving of time commands, and establish a scheduling mechanism.

[0072] Further combination of Figure 2 As shown, this step is based on the above relationship. Considering the relationship between the charging module of a mobile charging vehicle and the connected electric vehicle, the mobile charging vehicle can charge the connected electric vehicle, and the electric vehicles waiting for the mobile charging vehicle service are distributed in different locations on the map and have different charging requirements. The decision that the control center needs to make is to determine how to arrange the charging service sequence and the charging amount for each vehicle to minimize its own cost. The implementation process is described in detail below.

[0073] 1. Determine the location information and charging needs of electric vehicles

[0074] In the present invention, the control center provides services to electric vehicles according to their needs. Under the assumption, each vehicle will provide a battery capacity of Remaining power And the minimum power required The mobile charging vehicle must provide it with electricity that is not less than the minimum required amount of electricity Since the service aims to maximize the charging benefits of all EVs while minimizing the waiting time of all EVs, too little charging Will damage the charging benefits, and excessive charging This will result in longer waiting time. How to balance these two goals is the difficulty of this problem.

[0075] Use X = {x 1 ,…,x N} represents the charging demand information of N electric vehicles, each Represents the static information s of the i-th electric car i With dynamic information The static information s i Represents information that does not change during the entire charging process, including the location, battery capacity, initial power, and minimum required power of the i-th electric vehicle; dynamic information Indicates information that changes during the entire charging process, mainly referring to the remaining required power at time t. The initial remaining required power is equal to the minimum required power. After the minimum required power of the electric vehicle is met, the remaining required power will become 0.

[0076] The charging service information of the mobile charging vehicle is It also contains static information and dynamic information. Static information s mcv is the battery capacity of the mobile charging vehicle, It includes the current location of the mobile charging vehicle and the remaining battery capacity. Unlike electric vehicles, the location information of the mobile charging vehicle will change over time.

[0077] Consider using a mobile charging vehicle to serve multiple electric vehicles, and use two objective functions to judge the quality of service completion, namely the average charging benefit and the average service time. The formula for the average charging benefit is as follows:

[0078]

[0079] Constraint expressions include:

[0080]

[0081]

[0082] in represents the battery capacity of the kth electric car, represents the initial charge of the kth vehicle, represents the actual charge of the k-th vehicle, Indicates the minimum amount of charge for the k-th vehicle. In the present invention, it is assumed that each electric vehicle that needs charging service will propose a minimum amount of power required, and the mobile charging vehicle must at least charge the k-th vehicle with the minimum amount of power required, but more power can be provided above this, which the electric vehicle can also accept.

[0083] The formula for average service time is as follows:

[0084]

[0085] in indicates the time when the request arrives, and The time for charging to be completed needs to be obtained according to the service order of the mobile charging vehicle. The calculation formula is:

[0086]

[0087] Where dist(ρ(j), ρ(j+1)) represents the moving distance from the charging target ρ(j) to the charging target ρ(j+1), v represents the moving speed of the mobile charging vehicle, and ε represents the charging speed of the mobile charging vehicle providing charging services.

[0088] Therefore, the goal of this method is to minimize the average waiting time of all electric vehicles waiting to receive charging services while maximizing the average benefits of all objectives. This goal can be expressed as follows:

[0089]

[0090] in Represents the actual amount of electricity received by all electric vehicles.

[0091] 2. Establishing a network model based on parameter migration method and Actor-Critic algorithm

[0092] The algorithm model is to solve a multi-objective problem. The neural network needs to make a trade-off between maximizing the average benefit and minimizing the average waiting time. Therefore, a set of weights λ can be set first. 1 ,…,λ M ,q where represents the weight of average return, Represents the weight of the average waiting time. Then, the original problem is converted into M optimization sub-problems, and a different neural network is constructed to solve each sub-problem.

[0093] (21) The present invention relies on parameter migration method to accelerate the training of network model

[0094] During the training process, after the i-th neural network is trained, the parameters of the i-th neural network are used as the initial parameters of the i+1-th neural network to accelerate the training speed of the i+1-th neural network. Similarly, the optimal parameters of the i+1-th neural network will also be used as the initial parameters of the i+2-th neural network.

[0095] (22) For the i-th optimization subproblem, the Actor-Critic algorithm is used to train the above network model. The input of the network is X = {x 1 ,…,x N}, the output is the access sequence of all electric vehicles and charging stations Y = {ρ t ,t=0,1,…,T} and the actual charge amount for each vehicle Where T represents the length of the decision step, ρ t It can represent an electric car or a charging station.

[0096] After decomposing the entire charging order decision problem into M sub-problems, each sub-problem will be solved using deep reinforcement learning. A modified pointer network will be used to construct the sub-problems, and the Actor-Critic algorithm will be used to train the network.

[0097] The input of the network is X = {x 1 ,…,x N}, the output is the access sequence of all electric vehicles and charging stations Y = {ρ t ,t=0,1,…,T} and the actual charge amount for each vehicle Where T represents the length of the decision step, ρ t It can represent an electric car or a charging station.

[0098] Where input X t It will change with the update of the decision step. The main changes are the power requirements of different electric vehicles and the power of the mobile charging vehicle. The entire decision process will continue until the charging needs of all electric vehicles are met. Use the probability chain rule to get the next target to visit. The formula is as follows:

[0099]

[0100] The basic structure of the pointer network used in the present invention is a model from sequence to sequence, that is, mapping from one sequence to another sequence. The whole model consists of two RNNs (recurrent neural networks), namely an encoding network and a decoding network. The encoding network encodes the input into a code vector containing the input information, and the decoding network decodes the vector into the sequence required by the present invention. However, since the arrangement order of different electric vehicles in the present invention does not affect the final access order, the encoding network is replaced by an embedding layer, which will not affect the result of the method and can also reduce the computational complexity.

[0101] Since the access order of the previous step is ρ1,…,ρ t It has an impact on the current access target, so the decoding network still uses the RNN structure. The hidden layer d of the decoding network t Contains previously visited targets ρ1,…,ρ t information, plus the input coded information They are used together to calculate the probability of the next target to be visited P(Y|X0). The number of the next target to be visited is obtained by the attention mechanism, which is a structure that processes inputs and can extract relevant information from the inputs. In the end, the target with the greatest relevance will become the next target to be visited. The calculation formula is as follows:

[0102]

[0103] P(ρ t+1 |ρ1,…,ρ t ,X t )=softmax(u t ), (6)

[0104] where v, W1 and W2 are trainable parameters.

[0105] The above is the data processing and calculation process of the control center. According to the input of the mobile charging vehicle, the next charging target is calculated and determined. The specific charging amount needs to be determined according to the benefit function of the charging target. As mentioned above, each electric vehicle EV k Will provide its initial power Battery capacity Minimum power required Actual charge capacity Will be arrive In order to obtain the optimal actual charge, the next question needs to be calculated first:

[0106]

[0107] Among them, w1 and w2 represent the weights of charging benefits and waiting time respectively, ε represents the charging rate of the mobile charging vehicle, and l represents the number of electric vehicles waiting to be charged. By deriving the equation, the following solution can be obtained:

[0108]

[0109] in,

[0110] 3. Use the trained network model to obtain the charging sequence and charging amount;

[0111] After the neural network training is completed, neural networks with different weight groups are selected according to the actual situation to obtain the charging sequence and charging amount.

[0112] 4. The mobile charging vehicle goes to provide service according to the charging order and charging amount obtained.

[0113] The interaction between systems is as follows Figure 3 As shown, first the electric vehicle submits a charging request to the control center, then the control center plans the charging sequence and charging amount based on the location information and charging needs of all electric vehicles waiting for service, and finally the mobile charging vehicle goes to complete the charging service according to the arrangement of the control center.

[0114] Example 2

[0115] In the process of implementing Example 2 according to the present invention, the technical means that are the same as those in the above-mentioned embodiments are not described in detail. The following mainly describes the differences of the present invention in Example 2 and the technical effects produced thereby.

[0116] A mobile charging vehicle is set at a 30*30km 2 Charging services are provided in an area where electric vehicles are randomly distributed and have different charging requirements. The parking station for the mobile charging vehicle is located in the center of the map. The mobile charging vehicle waits at the parking station at the beginning. After the control center calculates the charging order and charging amount, the mobile charging vehicle goes to provide charging services. This implementation case takes 10 electric vehicles as an example to make charging demands. The initial power and total battery capacity of each vehicle are 5kWh and 50kWh, and the minimum required power varies randomly between 5kWh and 15kWh. The battery capacity of the mobile charging vehicle is 200kWh, the average moving speed is 30km / h, and the charging efficiency is 60kW.

[0117] like Figure 4As shown in the figure, 10 electric vehicles are randomly distributed in different locations of the map. The method proposed in the present invention and two swarm intelligence optimization algorithms NSGA-II and MOEAD for comparison are used to plan the charging sequence and decide the specific charging amount. Both swarm intelligence optimization algorithms are trained for 500 rounds. From the results, it only takes 3.2 seconds for the neural network to obtain the charging sequence and charging amount, while NSGA-II and MOEA / D take 3.5 seconds and 15.4 seconds. When the weights of the two charging targets are both (0.5, 0.5), the Pareto optimal results obtained by the three methods are (3:35, 4:55), (3:30, 5:09) and (3:59, 4:90) respectively. This result shows that the results obtained by the method based on deep reinforcement learning are not only stronger than the two swarm intelligence optimization algorithms in terms of average waiting time, but also better than the MOEA / D method in terms of charging benefits, and not weaker than the NSGA-II method.

[0118] from Figure 4 From the displayed action trajectory, it can be seen that the method based on deep reinforcement learning chooses to charge 7 electric vehicles first, then returns to a parking station for a recharge, and then charges the remaining three vehicles. Among them, the average charging amount for the first 7 vehicles is 26.5kWh, and the average charging amount for the last three vehicles is 45kWh. In contrast, NSGA-II and MOEA / D both choose to charge 5 electric vehicles before returning to the parking station for the first time, and then charge the remaining 5 electric vehicles. The average charging amount for the first 5 vehicles is 35.4kWh and 29.4kWh respectively, and the average charging amount for the last 5 vehicles is 37.8kWh and 36.8kWh. As mentioned in the above content of the embodiment, more charging amount will lead to longer waiting time. How to balance the charging amount and waiting time is the biggest challenge to be solved by the present invention. This embodiment illustrates that the method of the present invention can better meet two goals, while maximizing the charging benefits, minimizing the waiting time of all electric vehicles.

[0119] As shown in Figures 5 and 6, the Pareto frontiers obtained by training the neural network with 10 electric vehicles and 20 electric vehicles are compared with the other two swarm intelligence optimization algorithms, and the training rounds of the two swarm intelligence optimization algorithms are 500, 1000, 2000 and 4000 respectively. It can be seen that the method of the present invention shows better results in terms of the scalability and diversity of the Pareto frontier and the comparison of the two objectives.

Claims

1. A mobile charging vehicle service scheduling method based on deep reinforcement learning, characterized in that: The method calculates the service sequence and charging amount of the mobile charging vehicle for the electric vehicle based on the charging demand information submitted by the electric vehicle to the control center, and includes the following steps: (1) Constructing a relationship network model, including establishing the network topology structure of the social relationship between mobile charging vehicles, electric vehicles, and the control center; (2) determining an overall benefit function based on the charging service information of the mobile charging vehicle and the charging demand information of the electric vehicle, wherein the charging service information includes the battery capacity information and current location information of the mobile charging vehicle, and the charging demand information includes the location information, battery capacity information, initial power, remaining power information, and minimum required power information of the electric vehicle, and the overall benefit function is determined by the average charging income and the average service time; The objective function f corresponding to the overall benefit function described in step (2) is expressed as follows: in represents the actual amount of electricity received by all electric vehicles, ρ represents the charging target, f1 represents the average charging benefit, and f2 represents the average service time; The expression of the average charging benefit f1 is as follows: Constraint expressions include: in represents the battery capacity of the kth electric car, represents the initial charge of the kth vehicle, represents the actual charge of the k-th vehicle, represents the minimum charge of the k-th vehicle; The formula for the average service time is as follows: in indicates the time when the request arrives, and The time for charging to be completed needs to be obtained according to the service order of the mobile charging vehicle. The calculation formula is: Where dist(ρ(j), ρ(j+1)) represents the moving distance from the charging target ρ(j) to the charging target ρ(j+1), v represents the moving speed of the mobile charging vehicle, and ε represents the charging speed of the mobile charging vehicle providing charging services; In the step (2), X = {x 1 , …, x N } represents the charging demand information of N electric vehicles, Represents the static information s of the i-th electric car i With dynamic information The static information s i Represents information that does not change during the entire charging process, including the location, battery capacity, initial power, and minimum required power of the i-th electric vehicle; dynamic information Indicates information that changes during the entire charging process, indicating the remaining required power at time t; the initial remaining required power is equal to the minimum required power, and after the minimum required power of the electric vehicle is met, the remaining required power will become 0; The charging service information of the mobile charging vehicle is represented as It includes static information and dynamic information. Static information mcv is the battery capacity of the mobile charging vehicle, Contains the current location of the mobile charging vehicle and the remaining battery capacity, and the location information of the mobile charging vehicle changes over time; (3) Constructing and training a neural network model, taking charging service information and charging demand information as input, and outputting the charging service sequence of the mobile charging vehicle for the electric vehicle through neural network calculation; The neural network described in step (3) sets weights for maximizing average revenue and minimizing average waiting time based on the overall benefit function and the objective function. The structure and training process of the neural network are as follows: (31) Set a set of weights λ 1 , …, λ M , q where represents the weight of average return, Indicates the weight of the average waiting time; (32) The objective function solution problem is converted into M optimization sub-problems. The M sub-problems are cooperatively calculated through a neighbor-based parameter migration strategy. During the training process, the training parameters of the previous neural network are used as the initial parameters of the next neural network. (33) The entire charging sequence decision problem is decomposed into M sub-problems and solved by deep reinforcement learning, including constructing sub-problems through a pointer network and using an Actor-Critic algorithm to train the network; The input of the network is X = {x 1 , …, x N }, the output is the access sequence of all electric vehicles and charging stations Y = {ρ t , t=0,1,…,T} and the actual charge amount for each vehicle Where T represents the length of the decision step, ρ t Indicates an electric car or a charging station; Among them, input X t It will change with the update of the decision-making steps, and the changing part is the power demand of different electric vehicles and the power of the mobile charging vehicle itself; (34) Based on the pointer network decision analysis, the probability chain rule is used to determine the next target to be visited. The target expression is as follows: Since the access order of the previous step is ρ1,…,ρ t The decoding network adopts RNN structure, in which the hidden layer d of the decoding network t Contains previously visited targets ρ1,…,ρ t information, plus the input coded information They are used together to calculate the probability P(Y|X0) of the next target to be visited. The number of the next target to be visited is obtained by the attention mechanism, and the target with the greatest correlation will become the next target to be visited. The calculation formula is as follows: P(ρ t+1 |ρ1,…,ρ t ,X t )=softmax(u t ) Where v, W1 and W2 are trainable parameters; (4) The control center dispatches mobile charging vehicles to provide charging services for electric vehicles and determines the specific charging amount based on the overall benefit function to complete the charging task.

2. The mobile charging vehicle service scheduling method based on deep reinforcement learning according to claim 1 is characterized in that: In the relationship network model described in step (1), the mobile charging vehicle, the electric vehicle and the control center exchange information through a bidirectional communication line, including the sending and receiving of instructions. The electric vehicle sends charging demand information to the control center, and the mobile charging vehicle issues a charging service instruction to the electric vehicle at the control center based on the charging service information of the mobile charging vehicle.

3. The mobile charging vehicle service scheduling method based on deep reinforcement learning according to claim 1 is characterized in that: The basic structure of the pointer network used in step (34) is a sequence-to-sequence model, and the pointer network model consists of two recurrent neural networks, namely an embedding layer and a decoding network.

4. The mobile charging vehicle service scheduling method based on deep reinforcement learning according to claim 1 is characterized in that: In step (4), the control center obtains the next charging target and needs to determine the specific charging amount based on the benefit function of the charging target, which specifically includes the following calculation process: Every electric vehicle EV k Will provide its initial power Battery capacity Minimum power required Actual charge capacity Will be arrive In order to obtain the best actual charge amount, the calculation is as follows: Among them, w1 and w2 represent the weights of charging benefits and waiting time respectively, ε represents the charging rate of the mobile charging vehicle, and l represents the number of electric vehicles waiting to be charged; Then, by deriving the above equation, we get the following solution: in,