Electric vehicle charging scheduling method considering charging queuing balance
By improving the particle swarm algorithm and Lyapunov optimization technology, combined with the traffic network model and the spatiotemporal distribution of charging demand, the charging schedule of electric vehicles is optimized, which solves the problem of mismatch of interests between charging station operators and car owners, and achieves charging station load balancing and The reduction of user time costs promotes the development of smart grids.
Patent Information
- Application Number
- CN202410728022.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-01
AI Technical Summary
Existing electric vehicle charging scheduling methods lack comprehensive consideration of the interests of charging station operators and car owners, and the uncertainty of charging demand makes it difficult to make decisions that are beneficial to long-term profits, resulting in a mismatch between the number of charging stations and the number of electric vehicles.
Using improved particle swarm algorithm and Lyapunov optimization technology, combined with the traffic network model and the spatiotemporal distribution of charging demand, the particle swarm algorithm of dynamic parameters and speed disturbance is designed to optimize the operation and management of charging stations, forming a virtual power plant to balance the load of the power grid, and through Lyapunov drift plus penalty strategy optimizes the operation of charging stations to ensure long-term revenue maximization and queue stability of charging stations.
It realizes the planning of driving routes and charging stations with the shortest waiting time for electric vehicles while ensuring the long-term revenue maximization of charging stations and stable queues, alleviating users' charging anxiety, and forming a virtual power plant through charging scheduling to balance charging stations and The load of nearby power grids promotes the development of smart grids.
Smart Images

Figure CN118735168A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electricity service, and relates to an electric vehicle charging scheduling optimization method under a smart grid, and in particular to an electric vehicle charging scheduling method considering charging queue balance. Background Art
[0003] Due to the long construction period of charging stations, many investors are in a wait-and-see attitude, and the current number of charging stations does not match the number of electric vehicles. Therefore, many researchers use smart grids to collect users' charging needs and behaviors to reasonably dispatch electric vehicles and make full use of existing charging facility resources. There are many solutions for electric vehicle charging scheduling, among which particle swarm algorithms are widely used due to their strong search and convergence capabilities. However, most existing particle swarm algorithms set algorithm parameters to fixed values, which seriously affects the ability of the algorithm. In addition, the uncertainty of charging demand makes it difficult for charging station operators to make decisions that are beneficial to long-term benefits.
[0004] Therefore, it is particularly important to fully consider the charging demand in the region, coordinate and optimize the interests of charging station operators and electric vehicle owners, and plan the best charging scheduling optimization plan. Summary of the invention
[0005] In order to solve the above problems, the present invention proposes an electric vehicle charging scheduling method taking charging queue balance into consideration.
[0006] The electric vehicle charging scheduling method combining the improved particle swarm algorithm and Lyapunov optimization includes the following steps:
[0007] S1: Considering the congested road conditions in the traffic network model, a traffic network model is established using graph theory;
[0008] S2: Considering the spatiotemporal distribution of electric vehicle charging demand in the region, a joint optimization framework for charging station operation and electric vehicle charging scheduling based on smart grid is proposed. While optimizing the waiting queue and load of the charging station, the charging scheduling of electric vehicles is optimized with the goal of minimizing the user's driving and waiting time;
[0009] S3: Design a particle swarm algorithm with dynamic parameters and speed perturbations. This strategy improves the ability of particles to jump out of local optimality in high dimensions and obtains a set of optimal electric vehicle charging planning solutions.
[0010] S4: Use Lyapunov optimization technology to optimize the operation and management of charging stations, establish a charging station queuing model to form a virtual power plant to promote the load balance of the power grid, and increase the revenue of charging stations while meeting the charging needs of users;
[0011] S5: A charging scheduling method for electric vehicles that considers charging queue balance is proposed to solve the problem of electric vehicle charging scheduling, reduce the time cost of car owners and balance the grid load.
[0012] Furthermore, in S1, a directed traffic network diagram is established based on graph theory as follows:
[0013] G={N,E,W} (1)
[0014] N=N0∪N1 (2)
[0015] Among them, N represents the node set, which consists of the charging station node set N1 and the non-charging station node set N0. E represents the edge set, that is, the road section between two intersections. W represents the edge weight set, that is, the length of the road section. The traffic network model G is represented in the form of an adjacency matrix:
[0016]
[0017] Where n represents the number of nodes in the road network. i,j Represents the weight between two nodes i and j, and its value is as follows:
[0018]
[0019] When there is a path between nodes i and j, the weight of the edge is equal to the length of the road segment; when there is no path, its weight is infinite.
[0020] Furthermore, in S1, after considering the traffic network congestion, the travel time from node i to node j is calculated as follows:
[0021]
[0022] Among them, τ is the driving time per kilometer of electric vehicles on open roads. η is the congestion factor with a value range of [0,1]. When η is 0, it means that the road condition is very good and there is no congestion. When η is close to 1, it means that the road condition is seriously congested and vehicles are moving slowly.
[0023] Furthermore, in S2, based on the probability distribution characteristics of the travel time, location and remaining state of charge (SOC) of electric vehicles, the Monte Carlo method is used to simulate the charging demand of electric vehicles in the planning area. The travel distribution of electric vehicles at each node is calculated through the historical travel data recorded by the smart grid. The number of travel records from node i to node j is represented as O ij , define event Y s The starting point of the trip is s, and the event Y f The end point of the trip is f. Event Y s Probability of occurrence, event Y s and event Y fThe probability of simultaneous occurrence is as follows:
[0024]
[0025] From the definition of conditional probability, we know that when the starting point of a trip is determined to be s, the probability that its end point is f is:
[0026]
[0027] Furthermore, in S2, it is assumed that the initial charge state of each vehicle is Normal distribution:
[0028]
[0029] Where μ is The mean value, σ 2 is the variance. Since too high or too low a charge level in an electric vehicle battery will cause irreversible damage to the battery life, the state of charge should be kept within a safe range:
[0030] SOC min ≤SOC v ≤SOC max (9)
[0031] Furthermore, in S2, after the travel time and space distribution and charge status of electric vehicles are simulated by the Monte Carlo method, it is determined whether each vehicle needs to be charged. The calculation steps are as follows:
[0032] a. Simulate the starting point s and end point f of the electric car v, and the shortest path from the starting point to the end point Calculated using Dijkstra algorithm. The amount of electricity consumed by an electric vehicle per kilometer is α, so the amount of electricity consumed from the starting point to the end point is E v :
[0033]
[0034] b.According to and the maximum battery capacity E max Calculate the difference between the trip power consumption and the current power:
[0035]
[0036] c. Finally, the charging demand of electric vehicle v is calculated as follows:
[0037]
[0038] The spatiotemporal distribution charging demand matrix of the road network is obtained by calculation, and its dimension is determined by the number of road network nodes and the number of time points, which is n·24.
[0039] Furthermore, in S2, K charging stations are built in the road network G, where k is the number of the charging station. Each charging station has L charging piles, and the maximum power of each charging pile is P l .
[0040] k∈{1,2,…,K},K=|N1| (13)
[0041] Furthermore, in S2, since the electricity purchase price and charging demand of the charging station are random, this is a stochastic optimization problem. The Lyapunov optimization technology is introduced to decompose the operations taken to meet the long-term constraints into each time slot t for decision making. First, a dynamic charging demand queue is established for each charging station to form a virtual power plant, and charging services are provided according to the "first come, first served" standard:
[0042] Q k (t+1)=max{Q k (t)-B k (t), 0}+A k (t) (14)
[0043] t∈{1,2,…,T}(15)
[0044] In the formula, A k (t) is the total charging demand arriving at charging station k at time t, B k (t) is the total amount of electricity provided to electric vehicles by charging station k at time t. The charging station revenue indicator with long-term constraints is decomposed into each time slice, so as to directly optimize the objective function, that is, the revenue of the charging station, while keeping the charging demand queue stable.
[0045] Furthermore, in S2, the instantaneous revenue of the charging station at time t can be expressed as:
[0046]
[0047] B k (t) = P l b k (t), b k (t)∈{1, 2, …, L} (17)
[0048] Among them, S k (t) represents the electricity price sold by charging station k at time t, and C(t) represents the price of electricity purchased from the power grid at time t. k (t) is a decision variable, which indicates the number of charging piles opened at charging station k at time t.
[0049] Redefine the above problem as a long-term revenue maximization (RM) problem:
[0050]
[0051] S min ≤S k (t)≤S max A k (t)≤A max ≤P l ·L (20)
[0052] Among them, the decision variable set of the RM problem is At the beginning of each time slot, the data set It can be observed by the charging station platform and regarded as a constant value. The constraint condition of formula (19) is satisfied, which ensures the stability of the charging demand queue.
[0053] Furthermore, in S2, the Lyapunov function is a scalar, non-negative description of the reserve of all queues in the current time slice. The entire queue is represented by a vector:
[0054]
[0055] The Lyapunov function and drift are defined as follows:
[0056]
[0057] By continuously reducing the value of △[Q(t)], the Lyapunov function can be moved toward the direction of low congestion, that is, in this way, the queue can be kept in a stable state and the constraints can be met. In order to optimize the RM problem at the same time, the drift plus penalty strategy is adopted to use the objective function as the penalty function, as shown below:
[0058] △[Q(t)]-HE[R(t)Q(t)](24)
[0059] Among them, H is the input parameter of the algorithm selected by the charging station platform so that the charging station platform can make a trade-off between the user queuing delay and the profit obtained. In summary, the charging station operation management model with maximum long-term benefits and limited queuing volume is obtained.
[0060] Furthermore, in S2, under the conditions of maximizing the long-term profit of the charging station and stabilizing the queue, with the goal of minimizing the time cost of the car owner, a charging station that meets the interests of both parties is planned for each electric car with charging needs in time period t. The objective function of the problem model is as follows:
[0061]
[0062] Among them, V tRepresents the total number of vehicles that need to be dispatched at time t. This paper divides the total time cost into two parts: driving time and charging waiting time. β1 and β2 represent the driving time sensitivity and waiting time sensitivity respectively, and their values vary between [0,1], β1+β2=1. If the owner prefers to choose a trip with a short driving time, β1 is close to 1.
[0063] Furthermore, in S2, the driving time of the electric car is v from the starting point s to n k and n k The travel time of each section is calculated by combining the travel time calculation formula:
[0064]
[0065] Furthermore, in S2, by solving the RM problem Q k (t) and b k (t), the charging demand of electric vehicle v is q v , then the waiting time in the queue at charging station k is:
[0066]
[0067] Furthermore, in S3, the particle swarm algorithm is used to solve the optimal charging station allocation for each vehicle in each time slot t. The speed and position are defined as D-dimensional vectors, whose numerical value is equal to V t The position of particle γ The value of each dimension in corresponds to the number of the charging station that the car is heading to, which is an integer between [1, K]. Therefore, a particle represents V t The matching relationship between the vehicle and K charging stations. The update of its speed and position is defined as:
[0068]
[0069] In the formula, and are the flying speed and position of particle γ in the mth iteration. w is the inertia weight of the particle, which determines the influence of the current speed of the particle on the speed of the next generation. c1 and c2 are the individual learning factor and social learning factor of the particle, respectively. rand is a random number in the range [0,1].
[0070] Furthermore, in S3, since different inertia weights w have different effects on the next generation, setting the parameter w to be dynamically updated is beneficial to the search of particles. When the number of iterations is m, the value of w is:
[0071]
[0072] In the formula, w minis the minimum weight, w max is the maximum weight. M is the maximum number of iterations. In the early stage, the inertia weight decreases slowly, which ensures the search ability of the particles. As the number of iterations increases, the particles gradually shift from global search to local search for the optimal solution, ensuring the convergence of the problem.
[0073] Furthermore, in S3, the learning factor is dynamically changed by asynchronous updating:
[0074]
[0075] Among them, c min and c max are the minimum and maximum values of the learning factor. A relatively large value tends to perform a wider search, which helps to increase the diversity of the search and prevent the algorithm from falling into a local optimal solution too early. Gradually decreasing, social cognitive learning factor Gradually increases, making particles pay more attention to the historical optimal position of the group.
[0076] Furthermore, in S3, the velocity perturbation method is used to make the particles jump out of the local optimum. The variance S of the fitness value of each particle in the Zth generation is calculated separately. 2 . 2 For individuals whose velocity is less than θ, the velocity perturbation is performed. The perturbation formula is as follows:
[0077]
[0078] Where rp is the disturbance factor and e is the disturbance amplitude. rand generates a random probability. When it is less than the ratio of the current number of iterations to the maximum number of iterations, the particle's speed search direction will be immediately turned. The new position update formula is as follows:
[0079]
[0080] Furthermore, in S4, in order to enable each charging station to obtain higher profits while forming a virtual power plant to achieve grid load balance, the Lyapunov drift plus penalty strategy is used to solve the decision variable S k (t) and b k (t). The process is as follows:
[0081]
[0082] in, is a constant, B k (t) = P l b k (t) is determined by variable b k(t) is determined. The above formula can be rearranged to obtain:
[0083]
[0084] In order to find the optimal strategy corresponding to the minimum value of drift plus penalty, the above inequality is converted to solve the minimum value of two sub-problems at the same time, where each sub-problem has an independent decision variable, as shown below:
[0085]
[0086] The number of charging piles in working state at each charging station at time t is obtained from sub-problem 1 and brought into the objective function to solve the waiting time cost. The electricity price obtained from sub-problem 2 is used to calculate the instantaneous revenue of the charging station. k (t), the trade-off factor H and the set Ω k (t) are all known quantities, so both sub-problems are linear. In summary, the Lyapunov optimization is used to decouple the complex stochastic optimization problem into solving two linear problems, which reduces the complexity of the problem.
[0087] Furthermore, in S5, the specific method of the electric vehicle charging scheduling method is as follows:
[0088] S5.1: Starting from the current time slot, count the vehicles that need to charge, set the relevant parameters of the algorithm, and initialize the particle population.
[0089] S5.2: For each electric vehicle, the time cost is calculated according to the charging station assigned by the particle swarm algorithm. First, the driving time is calculated, and the time from the starting point to the charging station and from the charging station to the end point is accumulated to get the driving time. Then the waiting time is calculated according to the results of the Lyapunov optimization strategy.
[0090] S5.3: Accumulate the time cost of each car to get the fitness value of the particle, compare it with the historical optimal fitness value, and keep the solution with the smallest fitness value. Update the status of all particles in the population;
[0091] S5.4: When the number of population evolutions reaches the set upper limit, the algorithm iteration is completed and the scheduling plan for each vehicle in the current time slot is recorded. Otherwise, return to execute S5.2.
[0092] S5.5: When the last time slot vehicle scheduling is completed, the scheduling plan for all vehicles is output. Otherwise, the next time slot is scheduled and the execution returns to S5.1.
[0093] The beneficial effects of the present invention are:
[0094] The existing methods lack comprehensive consideration of the impact of the interests of operators and electric vehicle owners on charging scheduling planning. The present invention fully considers the above problems and proposes an electric vehicle charging scheduling method that considers charging queue balance. While ensuring the maximization of long-term revenue of charging stations and the stability of queues, it plans driving routes and charging stations with the shortest waiting time for electric vehicles. This method not only alleviates users' charging anxiety, but also balances the load of charging stations and nearby power grids through charging scheduling to form a virtual power plant, promoting the development of smart grids. BRIEF DESCRIPTION OF THE DRAWINGS
[0095] Figure 1 A workflow diagram of an embodiment of the present invention;
[0096] Figure 2 Performance comparison chart for the improved algorithms;
[0097] Figure 3 The comparison diagram of the time and space load of the charging station under the two strategies;
[0098] Figure 4 Comparison chart of total time cost of each user in each time slot under two strategies; DETAILED DESCRIPTION
[0099] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0100] The following is a further detailed description of the present invention in conjunction with the urban road topology map of Xi'an as a planning scenario for electric vehicle charging stations to optimize the electric vehicle charging scheduling scheme.
[0101] Aiming at the problem of optimizing charging scheduling for electric vehicles, a charging scheduling method for electric vehicles that considers charging queue balance is proposed. This method aims to minimize the driving and waiting time of electric vehicle users, while optimizing the waiting queue and load of charging stations. First, the road network model, electric vehicle model and charging station model are established according to the characteristics and constraints of the problem. Secondly, the Lyapunov optimization technology is used to establish a queue model for each charging station. At the beginning of a time slot, electric vehicles are scheduled according to the queue situation of the charging station. Each particle in the population represents a charging plan. Finally, the optimal scheduling plan that meets the goal is found through continuous iteration of particles. For the specific workflow, please refer to Figure 1 The electric vehicle charging scheduling method combining the improved particle swarm algorithm and Lyapunov optimization in this embodiment specifically includes the following steps:
[0102] (1) Considering the congested road conditions in the traffic network model, the traffic network model is established using graph theory;
[0103] (2) Considering the spatiotemporal distribution of electric vehicle charging demand in the region, a joint optimization framework for charging station operation and electric vehicle charging scheduling based on smart grid is proposed. While optimizing the waiting queue and load of the charging station, the charging scheduling of electric vehicles is optimized with the goal of minimizing the user's driving and waiting time;
[0104] (3) Design a particle swarm algorithm that uses dynamic parameters and speed perturbations to improve the ability of particles to escape local optimality in high dimensions and obtain a set of optimal electric vehicle charging planning solutions;
[0105] (4) Adopt Lyapunov optimization technology to optimize the operation and management of charging stations, establish a charging station queuing model to form a virtual power plant to promote the load balance of the power grid, and increase the revenue of charging stations while meeting the charging needs of users;
[0106] (5) A charging scheduling method for electric vehicles that takes into account charging queue balance is proposed to solve the charging scheduling problem of electric vehicles, reduce the time cost of car owners and balance the grid load.
[0107] Specifically, in step (1), a directed traffic network graph is established based on graph theory as follows:
[0108] G={N,E,W} (40)
[0109] N=N0∪N1 (41)
[0110] Among them, N represents the node set, which consists of the charging station node set N1 and the non-charging station node set N0. E represents the edge set, that is, the road section between two intersections. W represents the edge weight set, that is, the length of the road section. The traffic network model G is represented in the form of an adjacency matrix:
[0111]
[0112] Where n represents the number of nodes in the road network. i,j Represents the weight between two nodes i and j, and its value is as follows:
[0113]
[0114] When there is a path between nodes i and j, the weight of the edge is equal to the length of the road segment; when there is no path, its weight is infinite.
[0115] In real traffic networks, road congestion is also an important factor affecting travel time. After considering the congestion, the travel time from node i to j is calculated as follows:
[0116]
[0117] Among them, τ is the driving time per kilometer of electric vehicles on open roads. η is the congestion factor with a value range of [0,1]. When η is 0, it means that the road condition is very good and there is no congestion. When η is close to 1, it means that the road condition is seriously congested and vehicles are moving slowly.
[0118] Based on the probability distribution characteristics of electric vehicle travel time, location and remaining charge state SOC, the Monte Carlo method is used to simulate the charging demand of electric vehicles in the planning area. The travel distribution of electric vehicles at each node is calculated through the historical travel data recorded by the smart grid. The number of travel records from node i to node j is represented as O ij , define event Y s The starting point of the trip is s, and the event Y f The end point of the trip is f. Event Y s Probability of occurrence, event Y s and event Y f The probability of simultaneous occurrence is as follows:
[0119]
[0120] From the conditional probability, we can get that when the starting point of the trip is determined to be s, the probability that its end point is f is:
[0121]
[0122] Specifically, in step (2), it is assumed that the initial charge state of each vehicle is Normal distribution:
[0123]
[0124] Where μ is The mean value, σ 2 is the variance. Since too high or too low a charge level in an electric vehicle battery will cause irreversible damage to the battery life, the state of charge should be kept within a safe range:
[0125] SOC min ≤SOC v ≤SOC max (48)
[0126] After simulating the travel time and space distribution and charge status of electric vehicles by Monte Carlo method, it is determined whether each vehicle needs to be charged. The calculation steps are as follows:
[0127] a. Simulate the starting point s and end point f of the electric car v, and the shortest path from the starting point to the end point Calculated using Dijkstra algorithm. The amount of electricity consumed by an electric vehicle per kilometer is α, so the amount of electricity consumed from the starting point to the end point is E v :
[0128]
[0129] b.According to and the maximum battery capacity E max Calculate the difference between the trip power consumption and the current power:
[0130]
[0131] c. Finally, the charging demand of electric vehicle v is calculated as follows:
[0132]
[0133] The above calculations lead to the spatial and temporal distribution charging demand matrix of the road network, whose dimension is determined by the number of road network nodes and the number of time points, which is n·24.
[0134] K charging stations are built in the road network G, where k is the number of the charging station. Each charging station has L charging piles, and the maximum power of each charging pile is P l .
[0135] k∈{1,2,…,K},K=|N1| (52)
[0136] Since the electricity purchase price and charging demand of charging stations are random, this is a stochastic optimization problem. Lyapunov optimization technology is introduced to decompose the operations taken to meet long-term constraints into each time slot t for decision making. First, a dynamic charging demand queue is established for each charging station to form a virtual power plant, and charging services are provided according to the "first come, first served" standard:
[0137] Q k (t+1)=max{Q k (t)-B k (t),0}+A k (t) (53)
[0138] t∈{1,2,…,T} (54)
[0139] In the formula, A k (t) is the total charging demand arriving at charging station k at time t, B k (t) is the total power provided by charging station k to electric vehicles at time t. The charging station revenue indicator with long-term constraints is decomposed into each time slice, and then the objective function, that is, the revenue of the charging station, is directly optimized under the condition of keeping the charging demand queue stable.
[0140] The instantaneous revenue of the charging station at time t can be expressed as:
[0141]
[0142] Among them, S k (t) represents the electricity price sold by charging station k at time t, and C(t) represents the price of electricity purchased from the power grid at time t. k (t) is a decision variable, which indicates the number of charging piles opened at charging station k at time t.
[0143] Redefine the above problem as a long-term revenue maximization (RM) problem:
[0144]
[0145] Among them, the decision variable set of the RM problem is At the beginning of each time slot, the data set It can be observed by the charging station platform and regarded as a constant value. The constraint condition of formula (19) is satisfied, which ensures the stability of the charging demand queue.
[0146] The Lyapunov function is a scalar, non-negative description of the reserve of all queues in the current time slice. The entire queue is represented by a vector:
[0147]
[0148] The Lyapunov function and drift are defined as follows:
[0149]
[0150] By continuously reducing the value of △[Q(t)], the Lyapunov function can be moved toward the direction of low congestion, that is, in this way, the queue can be kept in a stable state and the constraints can be met. In order to optimize the RM problem at the same time, the drift plus penalty strategy is adopted to use the objective function as the penalty function, as shown below:
[0151] △[Q(t)]-HE[R(t)Q(t)](63)
[0152] Among them, H is the input parameter of the algorithm selected by the charging station platform so that the charging station platform can make a trade-off between the user queuing delay and the profit obtained. In summary, the charging station operation management model with maximum long-term benefits and limited queuing volume is obtained.
[0153] Under the conditions of maximizing the long-term profit of the charging station and stabilizing the queue, with the goal of minimizing the time cost of the car owner, a charging station that meets the interests of both parties is planned for each electric car with charging needs in time period t. The objective function of the problem model is as follows:
[0154]
[0155] Among them, V tRepresents the total number of vehicles that need to be dispatched at time t. This paper divides the total time cost into two parts: driving time and charging waiting time. β1 and β2 represent the driving time sensitivity and waiting time sensitivity respectively, and their values vary between [0,1], β1+β2=1. If the owner prefers to choose a trip with a short driving time, β1 is close to 1.
[0156] The driving time of an electric car is v from the starting point s to n k and n k The travel time of each section is calculated by combining the travel time calculation formula:
[0157]
[0158] By solving the RM problem, Q k (t) and b k (t), the charging demand of electric vehicle v is q v , then the waiting time in the queue at charging station k is:
[0159]
[0160] Specifically, in step (3), the particle swarm algorithm is used to solve the optimal charging station allocation for each vehicle in each time slot t. The speed and position are defined as D-dimensional vectors, whose numerical value is equal to V t The position of particle γ The value of each dimension in corresponds to the number of the charging station that the car is heading to, which is an integer between [1, K]. Therefore, a particle represents V t The matching relationship between the vehicle and K charging stations. The update of its speed and position is defined as:
[0161]
[0162] In the formula, and are the flying speed and position of particle γ in the mth iteration. w is the inertia weight of the particle, which determines the influence of the current speed of the particle on the speed of the next generation. c1 and c2 are the individual learning factor and social learning factor of the particle, respectively. rand is a random number in the range [0,1].
[0163] Since different inertia weights w have different effects on the next generation, setting the parameter w to be dynamically updated is beneficial to the search of particles. When the number of iterations is m, the value of w is:
[0164]
[0165] In the formula, w min is the minimum weight, w maxis the maximum weight. M is the maximum number of iterations. In the early stage, the inertia weight decreases slowly, which ensures the search ability of the particles. As the number of iterations increases, the particles gradually shift from global search to local search for the optimal solution, ensuring the convergence of the problem.
[0166] Dynamically change the learning factor by asynchronous update:
[0167]
[0168] Among them, c min and c max are the minimum and maximum values of the learning factor. A relatively large value tends to perform a wider search, which helps to increase the diversity of the search and prevent the algorithm from falling into a local optimal solution too early. Gradually decreasing, social cognitive learning factor Gradually increases, making particles pay more attention to the historical optimal position of the group.
[0169] Use velocity perturbation to make particles jump out of the local optimum. Calculate the variance S of the fitness value of each particle in Z generations 2 . 2 For individuals whose velocity is less than θ, the velocity perturbation is performed. The perturbation formula is as follows:
[0170]
[0171] Where rp is the disturbance factor and e is the disturbance amplitude. rand generates a random probability. When it is less than the ratio of the current number of iterations to the maximum number of iterations, the particle's speed search direction will be immediately turned. The new position update formula is as follows:
[0172]
[0173] Specifically, in step (4), in order to enable each charging station to obtain higher profits while forming a virtual power plant to achieve grid load balance, the Lyapunov drift plus penalty strategy is used to solve the decision variable S k (t) and b k (t). The process is as follows:
[0174]
[0175] in, is a constant, B k (t) = P l b k (t) is determined by variable b k (t) is determined. The above formula can be rearranged to obtain:
[0176]
[0177] In order to solve the optimal strategy corresponding to the minimum value of drift plus penalty, the above inequality is converted to solving the minimum value of two sub-problems at the same time, where each sub-problem has a decision variable independently, as shown below:
[0178]
[0179] The number of charging piles in working state at each charging station at time t is obtained from sub-problem 1 and brought into the objective function to solve the waiting time cost. The electricity price obtained from sub-problem 2 is used to calculate the instantaneous revenue of the charging station. k (t), the trade-off factor H and the set Ω k (t) are all known quantities, so both sub-problems are linear. In summary, the Lyapunov optimization is used to decouple the complex stochastic optimization problem into solving two linear problems, which reduces the complexity of the problem.
[0180] Specifically, in step (5), the specific method of the electric vehicle charging scheduling method is as follows:
[0181] S5.1: Starting from the current time slot, count the vehicles that need to charge, set the relevant parameters of the algorithm, and initialize the particle population.
[0182] S5.2: For each electric vehicle, the time cost is calculated according to the charging station assigned by the particle swarm algorithm. First, the driving time is calculated, and the time cost from the starting point to the charging station and from the charging station to the end point is accumulated to get the driving time. Then the waiting time is calculated according to the results of the Lyapunov optimization strategy.
[0183] S5.3: Accumulate the time cost of each car to get the fitness value of the particle, compare it with the historical optimal fitness value, and keep the solution with the smallest fitness value. Update the status of all particles in the population;
[0184] S5.4: When the number of population evolutions reaches the set upper limit, the algorithm iteration is completed and the scheduling plan for each vehicle in the current time slot is recorded. Otherwise, return to execute S5.2.
[0185] S5.5: When the last time slot vehicle scheduling is completed, the scheduling plan for all vehicles is output. Otherwise, the next time slot is scheduled and the execution returns to S5.1.
[0186] The effects of the present invention are further described below in conjunction with experiments and accompanying drawings of experimental results:
[0187] In this embodiment, the car dispatching scenario uses a traffic network containing 36 nodes and 59 roads as the planning area. Five charging stations are built in the planning area, located at nodes [9, 18, 20, 24, 34], each charging station is equipped with 30 charging piles, and the power of each charging pile is 60kW. According to real-time traffic information, the road congestion state is divided into three states: normal traffic, moderate congestion and severe congestion. The congestion factors η are 0, 0.5 and 0.8 respectively. The battery capacity of the electric vehicle is 60kWh, and the energy consumption per 100 kilometers is 16kWh. The initial SOC obeys a normal distribution with a mean and variance of 0.35 and 0.04. The safe charge state range of the battery is [0.2, 0.8]. The Monte Carlo method is used to simulate the travel of 5,000 electric vehicles, including the starting point, end point, initial power and departure time of the trip. Among them, about 3,000 records have charging needs.
[0188] In order to verify the effectiveness of the proposed improved particle swarm algorithm (IPSO), three algorithms are tested and compared under the same model: traditional particle swarm algorithm (PSO), IPSO algorithm and genetic algorithm (GA). GA algorithm uses decimal coding. Taking the dispatch of electric vehicles at 12 o'clock as an example, there are a total of 110 vehicles with charging needs, so the dimension D of the particle is set to 110. The value of each dimension satisfies the set {1,2,3,4,5}. The parameters of the three algorithms are shown in Table 1.
[0189] Table 1
[0190] parameter PSO IPSO GA Population size 100 100 100 Iterations 500 500 500 Inertia Weight <![CDATA[w min =0.5]]> <![CDATA[w min =0.5,in max =0.8]]> / Learning Factor <![CDATA[c1=c2=1.49]]> <![CDATA[c min =0.5,c max =2.5]]> / Dimension size 110 110 110
[0191] Figure 1 The figure shows the optimization convergence of the three algorithms with the total time cost of the user as the target. As can be seen from the figure, the IPSO algorithm performs better than other algorithms and can find the scheduling solution with the lowest time cost. Although the convergence curve of the PSO algorithm decreases quickly in the early stage, it falls into the local optimum in the high-dimensional particle state. The GA algorithm performed the worst in the test. This is because when the number of genes in the chromosome is too large, simple crossover and mutation are difficult to jump out of the local optimum. Compared with GA, the IPSO algorithm converges faster and improves the accuracy of particles in the search process, so as to quickly find the optimal solution. As the number of iterations changes, adaptive parameters and speed perturbations help particles avoid falling into local optimality, ensuring the diversity and convergence of the population. In short, the IPSO algorithm has better performance than other algorithms in solving the electric vehicle charging scheduling problem.
[0192] Since there is no literature with the same problem as the present invention, the charging scheduling strategy (OurStrategy) adopted by the present invention is compared with a baseline method. The baseline method is the nearest charging station strategy (NearCS), that is, the platform assigns the nearest charging station to the electric vehicle. Figure 2 The temporal and spatial distribution of loads for the two scheduling strategies during the day are shown. It can be seen that the load distribution obeys the bimodal characteristics of charging demand, with the highest load at 8-9 am and 6-7 pm. However, the peak load is significantly reduced after the scheduling of the optimization strategy in this paper. For example, at 7 pm at the second charging station, the charging demand queue obtained by the NearCS strategy is 5435kWh, while the charging demand queue of the Our Strategy strategy is 1330kWh. Moreover, in each time period, the load of each charging station is relatively balanced after optimization using Our Strategy. For example, at 8 am, comparing the charging demand of the five charging stations, the left figure shows that the charging demand of the third charging station reaches its peak, while the right figure is relatively flat. See Table 2 for detailed data.
[0193] Table 2
[0194] Charging station number NearCS Our Strategy 1 4433 2385 2 4753 2469 3 4753 2469 4 2371 2281 5 2548 2564
[0195] The two strategies are compared from the user's perspective, that is, the total time cost of all users in each time slot is compared. Figure 3 It can be seen that in the initial stage, the backlog of electric vehicle charging queues is small, so the total user time cost under the two strategies is not much different. However, after the first peak of charging demand, the total user time cost under Our Strategy dropped significantly, while the total user time cost under the NearCS strategy remained high. In short, compared with the baseline strategy that does not consider waiting time, Our Strategy has a clear advantage in reducing the total user time cost.
Claims
1. A charging scheduling method for electric vehicles considering charging queue balance, characterized in that: The steps include: S1: Considering the congested road conditions in the traffic network model, a traffic network model is established using graph theory; S2: Considering the spatiotemporal distribution of electric vehicle charging demand in the region, a joint optimization framework for charging station operation and electric vehicle charging scheduling based on smart grid is proposed. While optimizing the waiting queue and load of charging stations, the charging scheduling of electric vehicles is optimized with the goal of minimizing the user's driving and waiting time. S3: Design a particle swarm algorithm with dynamic parameters and speed perturbations to improve the ability of particles to jump out of local optimality in high dimensions and obtain a set of optimal electric vehicle charging planning solutions; S4: Lyapunov optimization technology is used to optimize the operation and management of charging stations. A charging station queuing model is established to form a virtual power plant to promote the load balance of the power grid, thereby meeting the charging needs of users and increasing the revenue of charging stations. S5: A charging scheduling method for electric vehicles that considers charging queue balance is proposed to solve the problem of electric vehicle charging scheduling, reduce the time cost of car owners and balance the grid load.
2. The electric vehicle charging scheduling method considering charging queue balance according to claim 1 is characterized by: In S1, the directed traffic network diagram is established based on the graph theory method as follows: G={N,E,W} (1) N=N0∪N1 (2) Among them, N represents the node set, which consists of the charging station node set N1 and the non-charging station node set N0, E represents the edge set, that is, the road section between two intersections, W represents the edge weight set, that is, the length of the road section, and the traffic network model G is represented in the form of an adjacency matrix: Where n represents the number of nodes in the road network, w i,j Represents the weight between two nodes i and j, and its value is as follows: When there is a path between nodes i and j, the weight of the edge is equal to the length of the road segment; when there is no path, its weight is infinite.
3. The electric vehicle charging scheduling method considering charging queue balance according to claim 1 is characterized by: In S1, road congestion is an important factor affecting travel time. After considering the congestion, the travel time from node i to j is calculated as follows: Among them, τ is the driving time of electric vehicles per kilometer on open roads, η is the congestion factor with a value range of [0,1]. When η is 0, it means that the road condition is very good and there is no congestion. When η is close to 1, it means that the road condition is seriously congested and vehicles are moving slowly.
4. The electric vehicle charging scheduling method considering charging queue balance according to claim 1 is characterized by: In S2, based on the probability distribution characteristics of the travel time, location and remaining state of charge (SOC) of electric vehicles, the Monte Carlo method is used to simulate the charging demand of electric vehicles in the planning area. The travel distribution of electric vehicles at each node is calculated through the historical travel data recorded by the smart grid. The number of travel records from node i to node j is expressed as O ij , define event Y s The starting point of the trip is s, and the event Y f The destination of the trip is f, and the event Y s Probability of occurrence, event Y s and event Y f The probability of simultaneous occurrence is as follows: From the conditional probability, we can get that when the starting point of the trip is determined to be s, the probability that its end point is f is:
5. The electric vehicle charging scheduling method considering charging queue balance according to claim 1 is characterized by: In S2, it is assumed that the initial charge state of each vehicle is Normal distribution: Where μ is The mean value, σ 2 is the variance. If the battery charge of an electric vehicle is too high or too low, it will cause irreversible damage to the battery life, so the charge state should be kept within a safe range: SOC min ≤SOC v ≤SOC max (9) 6. The electric vehicle charging scheduling method considering charging queue balance according to claim 1 is characterized by: In S2, after the Monte Carlo method is used to simulate the travel time and space distribution and charge status of electric vehicles, it is determined whether each vehicle needs to be charged. The calculation steps are as follows: a. Simulate the starting point s and end point f of the electric car v, and the shortest path from the starting point to the end point Using the Dijkstra algorithm, we can calculate that the amount of electricity consumed by an electric vehicle per kilometer is α, so the amount of electricity consumed from the starting point to the end point is E v : b.According to and the maximum battery capacity E max Calculate the difference between the trip power consumption and the current power: c. Finally, the charging demand of electric vehicle v is calculated as follows: The spatiotemporal distribution charging demand matrix of the road network is obtained by calculation, and its dimension is determined by the number of road network nodes and the number of time points, which is n·24.
7. The electric vehicle charging scheduling method considering charging queue balance according to claim 1 is characterized by: In S2, K charging stations are built in the road network G, where k is the number of the charging station. Each charging station has L charging piles, and the maximum power of each charging pile is P l : k∈{1,2,…,K},K=|N1| (13) 8. The electric vehicle charging scheduling method considering charging queue balance according to claim 1 is characterized by: In S2, since the electricity purchase price and charging demand of the charging station are random, this is a stochastic optimization problem. The Lyapunov optimization technology is introduced to decompose the operations taken to meet the long-term constraints into each time slot t for decision making. First, a dynamic charging demand queue is established for each charging station to form a virtual power plant, and charging services are provided according to the "first come, first served" standard: Q k (t+1)=max{Q k (t)-B k (t),0}+A k (t) (14) t∈{1,2,…,T} (15) In the formula, A k (t) is the total charging demand arriving at charging station k at time t, B k (t) is the total amount of electricity provided by charging station k to electric vehicles at time t. The charging station revenue indicator with long-term constraints is decomposed into each time slice, so as to directly optimize the objective function, that is, the revenue of the charging station, while keeping the charging demand queue stable.
9. The electric vehicle charging scheduling method considering charging queue balance according to claim 1 is characterized by: In S2, the instantaneous revenue of the charging station at time t can be expressed as: B k (t)=P l ·b k (t),b k (t)∈{1,2,…,L} (17) Among them, S k (t) represents the electricity price sold by charging station k at time t, C(t) represents the price of electricity purchased from the power grid at time t, and b k (t) is a decision variable, which indicates the number of charging piles opened at charging station k at time t; Redefine the above problem as a long-term revenue maximization (RM) problem: S min ≤S k (t)≤S max A k (t)≤A max ≤P l ·L (20) Among them, the decision variable set of the RM problem is At the beginning of each time slot, the data set It can be observed by the charging station platform and regarded as a constant value, satisfying the constraint of formula (19), which ensures the stability of the charging demand queue.
10. The electric vehicle charging scheduling method considering charging queue balance according to claim 1 is characterized by: In S2, the Lyapunov function is a scalar, non-negative description of the reserve of all queues in the current time slice, and the entire queue is represented by a vector: The Lyapunov function and drift are defined as follows: By continuously reducing the value of Δ[Θ(t)], the Lyapunov function can be moved toward the direction of low congestion. In other words, this method can ensure that the queue is in a stable state and meets the constraints. In order to optimize the RM problem at the same time, the drift plus penalty strategy is adopted to use the objective function as the penalty function, as shown below: Δ[Θ(t)]-HE[R(t)|Θ(t)] (24) Among them, H is the input parameter of the algorithm selected by the charging station platform so that the charging station platform can make a trade-off between user queuing delay and the profit obtained.
11. The electric vehicle charging scheduling method considering charging queue balance according to claim 1 is characterized by: In S2, under the conditions of maximizing the long-term profit of the charging station and stabilizing the queue, with the goal of minimizing the time cost of the car owner, a charging station that meets the interests of both parties is planned for each electric car with charging needs in time period t. The objective function of the problem model is as follows: Among them, V t Represents the total number of vehicles that need to be dispatched at time t. This paper divides the total time cost into two parts: driving time and charging waiting time. β1 and β2 represent the driving time sensitivity and waiting time sensitivity respectively, and their values vary between [0,1]. β1+β2=1. If the owner prefers to choose a route with a short driving time, β1 is close to 1.
12. The electric vehicle charging scheduling method considering charging queue balance according to claim 1, characterized in that: In S2, the travel time of electric vehicle v is from starting point s to n k and n k The time composition of the two journeys to the end point f, combined with the travel time calculation formula, the travel time cost of v is:
13. The electric vehicle charging scheduling method considering charging queue balance according to claim 1 is characterized by: In S2, by solving the RM problem Q k (t) and b k (t), the charging demand of electric vehicle v is q v , then the waiting time in the queue at charging station k is:
14. The electric vehicle charging scheduling method considering charging queue balance according to claim 1 is characterized by: In S3, the particle swarm algorithm is used to solve the optimal charging station allocation scheme for each vehicle in time slot t, and the speed and position are defined as D-dimensional vectors, whose numerical value is equal to V t , the position of particle γ The value of each dimension in corresponds to the number of the charging station that the car is heading to, which is an integer between [1, K]. Therefore, a particle represents V t The matching relationship between the vehicle and K charging stations, the update formula of its speed and position is: In the formula, and are the flying speed and position of particle γ in the mth iteration, respectively; w is the inertia weight of the particle, which determines the influence of the current speed of the particle on the speed of the next generation; c1 and c2 are the individual learning factor and social learning factor of the particle, respectively; rand is a random number in the range of [0,1].
15. The electric vehicle charging scheduling method considering charging queue balance according to claim 1, characterized in that: In S3, since different inertia weights w have different effects on the next generation, setting the parameter w to be dynamically updated is beneficial to the search of particles. When the number of iterations is m, the value of w is: In the formula, w min is the minimum weight, w max is the maximum weight, M is the maximum number of iterations. In the early stage, the inertia weight decreases slowly, which ensures the search ability of the particles. As the number of iterations increases, the particles gradually shift from global search to local search for the optimal solution, ensuring the convergence of the problem.
16. The electric vehicle charging scheduling method considering charging queue balance according to claim 1, characterized in that: In S3, the learning factor is dynamically changed by asynchronous update: Among them, c min and c max are the minimum and maximum values of the learning factor, respectively. In the initial stage of the algorithm, the individual cognitive learning factor Relatively large, tends to conduct a wider search, helps to increase the diversity of the search, and prevents the algorithm from falling into the local optimal solution too early. As the number of iterations increases Gradually decreasing, social cognitive learning factor Gradually increases, making particles pay more attention to the historical optimal position of the group.
17. The electric vehicle charging scheduling method considering charging queue balance according to claim 1 is characterized by: In S3, the velocity perturbation method is used to make high-dimensional particles jump out of the local optimum, and the variance S of the fitness value of each particle in the Zth generation is calculated respectively. 2 , S 2 For individuals whose velocity is less than θ, the velocity perturbation is performed, and the perturbation formula is as follows: Among them, rp represents the disturbance factor, ε is the disturbance amplitude, and rand generates a random probability. When it is less than the ratio of the current number of iterations to the maximum number of iterations, the particle's speed search direction is immediately turned, and the new position update formula is as follows:
18. The electric vehicle charging scheduling method considering charging queue balance according to claim 1, characterized in that: In S4, in order to make each charging station obtain higher profits and form a virtual power plant to achieve grid load balance, the Lyapunov drift plus penalty strategy is used to solve the decision variable S k (t) and b k (t), the process is as follows: in, is a constant, B k (t) = P l b k (t) is determined by variable b k (t) is determined, and the above formula is rearranged to obtain: In order to solve the optimal strategy corresponding to drift plus penalty, the above inequality is converted to solve the minimum value of two sub-problems at the same time, where each sub-problem has an independent decision variable, as shown below: The number of charging piles in working state at each charging station at time t is obtained from sub-problem 1 and brought into the objective function to solve the waiting time cost. The electricity price obtained from sub-problem 2 is used to calculate the instantaneous revenue of the charging station. k (t), the trade-off factor H and the set Ω k (t) are all known quantities, so both sub-problems are linear.
19. The electric vehicle charging scheduling method considering charging queue balance according to claim 1, characterized in that: In S5, the specific method of the electric vehicle charging scheduling method is as follows: S5.1: Starting from the current time slot, count the vehicles that need to charge, set the relevant parameters of the algorithm, and initialize the particle population. S5.2: For each electric vehicle, the time cost is calculated according to the charging station assigned by the particle swarm algorithm. First, the travel time is calculated, and the travel time is obtained by adding the time from the starting point to the charging station and from the charging station to the end point. Then, the waiting time is calculated according to the result of the Lyapunov optimization strategy. S5.3: Accumulate the time cost of each vehicle to get the fitness value of the particle, compare it with the historical optimal fitness value, keep the solution with the smallest fitness value, and update the status of all particles in the population; S5.4: When the number of population evolutions reaches the set upper limit, the algorithm iteration is completed and the scheduling plan for each vehicle in the current time slot is recorded. Otherwise, return to execute S5.2; S5.5: When the last time slot vehicle scheduling is completed, the scheduling plan for all vehicles is output. Otherwise, the next time slot is scheduled and the execution returns to S5.1.
Citation Information
Cited By
Robot energy consumption optimization method based on improved particle swarm optimization
CN119347852A
Operation management platform for automobile charging service
CN120338726A
An operation and management platform for automobile charging and battery swapping services
CN120338726B
Ordered charging strategy optimization method, system and equipment for electric vehicle and medium
CN120806291A
A method, system, device, and medium for optimizing orderly charging strategies for electric vehicles.
CN120806291B
