Electric vehicle charging station MARL dynamic pricing method with drainage mechanism
Through multi-agent reinforcement learning methods and diversion mechanisms, the uncertainty and coordination problems of dynamic pricing strategies in electric vehicle charging networks are solved, collaborative decision-making and user preference optimization between charging stations are realized, and the overall efficiency of the charging network is improved. and earnings.
Patent Information
- Application Number
- CN202410777828.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-18
AI Technical Summary
There are uncertainties in the market and user behavior in the electric vehicle charging network, it is difficult to capture the impact of user preferences, and there are non-stationary and coordination issues between charging stations, which makes it difficult to effectively implement dynamic pricing strategies and affects the stability of the power grid and the revenue of charging stations.
A multi-agent reinforcement learning method is used to realize collaborative decision-making between charging stations through a centralized training framework. Combined with user preferences and charging station congestion, a drainage mechanism is designed to optimize charging resource allocation and pricing strategies to maximize team benefits.
It increased the average daily revenue of charging stations, enhanced the overall efficiency and user satisfaction of the charging network, and verified through simulation experiments that the team's average daily revenue increased by 23.56% and 8.78%.
Smart Images

Figure CN118799003A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a multi-agent reinforcement learning method, belonging to the technical field of dynamic pricing of electric vehicle charging stations, and specifically to a MARL dynamic pricing method for electric vehicle charging stations with a drainage mechanism. Background Art
[0002] Today's society pays more and more attention to energy and environmental issues. Traditional cars are usually driven by internal combustion engines and mainly rely on fuel as energy. They will produce a large amount of carbon dioxide, accelerate the greenhouse effect and eventually lead to the depletion of energy resources. Therefore, electric vehicles have attracted much attention as the main clean energy solution. Its advantages such as clean and environmental protection, high efficiency and energy saving, low noise and high comfort are supported and promoted by governments of various countries. However, the impact of electric vehicle charging methods on grid load, transformer life and network loss cannot be ignored. Orderly charging can enable electric vehicles to participate in grid auxiliary services and optimize grid operation, but disorderly charging may increase the peak-valley difference of load and affect the stability of the grid. Therefore, formulating a reasonable and effective charging pricing strategy has important theoretical significance and practical value in guiding electric vehicle users to change their charging habits and reduce the negative impact on the grid. When discussing electric vehicle charging strategies, it is necessary to recognize the importance of dynamic pricing. The dynamic pricing strategy aims to allow electric vehicles to charge at variable prices based on electricity market demand, supply and other factors, and encourage users to charge at appropriate times, participate in power resource management, promote the effective use of power resources, and help balance the grid load and reduce energy waste by providing energy feedback rewards, intelligent charging scheduling and demand response pricing.
[0003] The formulation of dynamic pricing strategies for charging networks currently faces the following three challenges.
[0004] (1) Uncertainty in the market and user behavior. The uncertainty in the market regarding electricity demand and energy supply makes it difficult for charging station operators to accurately estimate reasonable electricity prices. In addition, the uncertainty in user charging behavior also increases the difficulty for charging station operators to set electricity prices. When pricing is too high, users will tend to go to other charging stations with lower prices, while when pricing is too low, excessive users will lead to a shortage of charging resources. One way to solve this problem is to adopt dynamic pricing and flexible resource allocation strategies to adapt to changes in real-time demand. However, traditional static models have difficulty capturing the random joining and leaving behavior patterns of users. Reinforcement learning can improve dynamic pricing and flexible resource allocation strategies by continuously learning user behavior patterns.
[0005] (2) User preferences. It is unrealistic to assume that users are just passive recipients of prices. Users are influenced by their preferences, and their feedback and behavior to different pricing schemes are different. Therefore, it is necessary to consider the user's response to price changes, flexibly adjust the pricing strategy to better match market demand, and find a balance between user preferences and the benefits of charging stations.
[0006] (3) Non-stationarity and coordination issues among charging stations. A charging network usually contains multiple charging stations. Since the pricing strategies of each station influence each other, the entire system may exhibit non-stationarity, which makes it difficult to coordinate joint strategies. Therefore, it is necessary to consider formulating the pricing strategy of the entire charging network through coordinated decision-making so that charging stations can maximize team benefits through cooperation. Summary of the invention
[0007] Technical issues:
[0008] To solve the above problems, the present invention discloses a MARL dynamic pricing method for electric vehicle charging stations with a diversion mechanism. For the dynamic pricing problem (CSDP) based on electric vehicles in the charging network, the present invention adopts a centralized training framework to achieve collaborative decision-making among multiple agents. Specifically, each charging station is set as an agent in the charging environment. Through collaborative training, the agents learn how to obtain the optimal common strategy under cooperation to maximize the team's income. In addition, the model also considers the impact of user preferences on price setting, and users will make charging decisions based on their preferences. For users who are not served, the present invention designs a diversion mechanism based on LSTM traffic prediction to divert them to charging stations with lower congestion.
[0009] Technical solution:
[0010] A MARL dynamic pricing method for electric vehicle charging stations with a traffic diversion mechanism includes the following steps:
[0011] S1: Modeling the electric vehicle intelligent charging network system model. It usually consists of power companies, network control centers, charging stations, and electric vehicle users. As the power supplier of the entire charging network, the power company is responsible for providing electricity. The network control center is the central hub responsible for coordinating and managing the entire charging network, responsible for monitoring power demand and resource allocation. By installing two-way communication equipment, it communicates with the charging stations in real time, understands the charging needs, and achieves a comprehensive observation of the entire network. In addition, it also provides real-time information and guidance to electric vehicle users. The network control center not only monitors the status of each charging station, but also obtains real-time information from each station, providing a large amount of data support for system decision-making. This centralized management and monitoring helps optimize the overall efficiency and performance of the charging network. Charging stations are able to take into account global information and overall system needs when setting prices, so as to better adapt to market changes and user behavior. As a place for electric vehicles to charge, charging stations are responsible for providing charging services and implementing dynamic pricing. They coordinate with the network control center to receive power distribution plans. They also communicate with electric vehicle users, receive charging requests and provide charging services. Electric vehicle users, as end users of the charging network, use charging services. The present invention models three types of electric vehicle users based on real-world scenarios: emergency users, ordinary users, and residential users. They have different energy needs and user preferences.
[0012] S2: Establishing electric vehicle user model. The present invention models three user types according to the types of electric vehicles in the real world, including emergency type, ordinary type and residential type. They have different initial energy states. Battery capacity E i 、Charging time R i And the charging power P i , which constitutes the user’s private information. The energy state of user i is the battery capacity E i With charging status S o C i The product of o E i =E i ·S o C i Before starting charging, user i has a minimum energy requirement By taking the Cartesian product of all user action sets y=(y1,y2,…,y m ) obtains the possible action combinations of the entire system, where m represents a group of electric vehicle users, y m Represents the possible actions that the mth user may take in the entire system.
[0013] In order to achieve system optimization and user satisfaction, the preferences of electric vehicle users are considered in the dynamic pricing process of electric vehicle charging stations. In this invention, user preferences are composed of user energy demand, charging cost and congestion level of charging stations. The valuation function v i (d,θ) means: Where d represents demand and θ represents user type. In a charging network, the valuation function means that users are more willing to pay more when the battery power is low. In the real world, it is difficult to accurately model the user's valuation function. In this invention, based on the practical feasibility of practical problems, an energy demand valuation function that follows a logarithmic function is adopted:
[0014]
[0015] Among them, θ i,t represents the type of user i, E i represents the electric vehicle capacity of user i, α i Represents the random factor, SoC i,t Indicates the charging status of user i;
[0016] In order to simulate the diversity of user demand configuration, a random factor α is introduced into the valuation function i By randomly drawing α from a continuous uniform distribution i , so that the demand configurations between users are different, making the model more consistent with the diversity of users in the real world. It is randomly drawn from a continuous uniform distribution [0,0.2], which is set based on the commercial charging price of $0.13 / kWh in the real world. The user's charging cost includes electricity and parking fees, which can be expressed as
[0017]
[0018] in, represents the electricity price of charging station n at time t, Indicates parking fee.
[0019] In the real world, most users usually prefer to charge their electric vehicles at charging stations that are less crowded. Therefore, the congestion status of charging stations is incorporated into the calculation of user preferences. In summary, the preference of user i can be defined as
[0020]
[0021] Among them, α is a hyperparameter used to adjust the user's acceptance of charging station congestion, represents the predicted congestion level of charging station n at time t.
[0022] Best responses from electric car users It refers to the behavior of adjusting charging demand to maximize user preference while considering factors such as user type, charging station price and congestion level. The optimal user demand that maximizes user preference is defined as the utility obtained by the current charging demand. Should be greater than or equal to the maximum utility that can be achieved by other potential charging demands It can be expressed as:
[0023]
[0024] S3: Build an electric vehicle charging station model. In a smart charging network, from the perspective of any charging station, the environment is non-stationary. Charging stations need to explore user preference information through flexible pricing and adapt to the behavior of other charging stations to maximize collective revenue and build a long-term robust charging network.
[0025] The charging station first sets the energy price per unit power represents the cost of charging service provided by charging station n at the current time t, where and The charging stations then publish these prices to electric vehicle users, letting them know the charging costs during the current time period.
[0026] Subsequently, electric vehicle user i pays the energy price according to the set energy price. The charging station responds and decides whether to charge. Based on the user's response, the charging station starts the charging process of the electric vehicle and provides the corresponding charging power according to the user type. Finally, the revenue at the end of t is observed. Therefore, the revenue obtained by charging station n per hour can be calculated using the following formula:
[0027]
[0028] in, represents the total power demand of charging station n at time t, represents a group of users arriving at charging station n at time t. represents the revenue generated by electric energy, Indicates the revenue generated by the user's parking. In addition, the overload cost in the power grid is considered. Specifically, when the total demand at a certain moment exceeds the power supply capacity of the power grid, G t , the charging network must pay a unit price of τ e The overload cost is set to be borne equally by each charging station in the charging network.
[0029] These steps constitute the hourly operation process of the charging station, in which pricing, user response, charging operation and result observation are interrelated links, and calculating revenue is the summary of the whole process. The effective execution of this process helps to maximize the revenue of the charging station and provide efficient electric vehicle charging services.
[0030] S4: Interaction between electric vehicle users and charging stations. In the interaction between charging stations and users, users communicate with charging stations in real time through smart devices such as smartphones to achieve two-way information exchange. The various characteristics of charging stations and users such as charging needs and preferences are mapped to the relationship between charging price and demand, where Θ i represents the type of user i, represents the demand of user i to ensure that the pricing strategy attracts users while guaranteeing the benefits of the charging station, thereby maximizing the overall social welfare. The charging station then provides energy according to the user's demand and observes the corresponding benefits at the end of the current moment. Finally, the charging station transmits its current state to the network controller to plan a new charging price for the next moment. The whole process proceeds sequentially, with the charging station first determining the charging price and the user then making a charging decision based on these prices.
[0031] S5: Cooperation between charging stations. Charging stations learn collaboratively and work to develop joint pricing strategies to maximize the overall benefits of the team. In the charging network, the cooperation between these stations is regarded as a partially observable Markov decision process, which consists of a set of elements Composition, of which Represents an intelligent agent, represents the state space, represents the observation space, represents the action space, represents the state transition probability, represents the reward and γ represents the discount factor.
[0032] S6: Establish a user diversion mechanism based on LSTM charging station congestion level prediction. The LSTM model of each charging station uses the number of users served in the past as input to predict the number of service users of the corresponding charging station at the current moment as the congestion level of the charging station. The congestion coefficient is introduced to adjust the user's acceptance of the congestion of the charging station in the user preference function. In the process of charging decision-making, users will consider the congestion level of the charging station. When the predicted congestion level of the current charging station is too high, users usually choose to leave the station. Then, the user diversion mechanism proposed in the present invention diverts users who are not served at time t to the charging station with the lowest congestion level predicted at time t+1. In essence, at time t+1, the number of arriving users at each charging station consists of two parts: (1) the number of arriving users sampled from the real electric vehicle charging market data; (2) the number of users diverted from other charging stations at time t.
[0033] S7: Strategy learning. The charging network studied in this invention contains multiple charging stations, and its goal is to maximize the overall revenue by coordinating the pricing strategy of each charging station. Therefore, in the charging network environment, all agents exhibit a cooperative relationship. In order to coordinate the learning of the optimal action strategy between agents, a framework of decentralized execution and centralized training is adopted, which consists of four networks: an actor network responsible for generating agent action strategies, a critic network for evaluating the effectiveness of strategies, and a target actor and target critic network for stabilizing the learning process. In the training phase, the experience data of all agents are collected centrally and used to train a shared global policy network. However, in the execution phase, each agent independently executes its own strategy based on its own observations and environmental information without knowing the specific action strategies of other agents. The actor network is updated as follows:
[0034]
[0035] in, is the policy gradient, μ n is the strategy of agent n, o t Represents joint observation, agent n in action a n Update its strategy μ n To maximize the critic Q n (o,a), given by Function parameterization;
[0036] The update goal of the critic network is to minimize the mean square error between the temporal difference (TD) target and the critic network prediction, which can be expressed as:
[0037]
[0038] in, represents the target value of agent n, which is usually calculated by the Bellman equation:
[0039]
[0040] in, is the reward obtained by agent i at time t+1, γ is the discount factor, Q′ n (o t+1 ,μ θ (o t+1 )) indicates the use The output of the target critic network of parameterized agent n, μ θ (o t+1 ) is used The output of the target actor network for the parameterized agent n.
[0041] In order to fully explore the environment, a decaying Gaussian noise with zero mean and variance decaying from 1 to 0 is added to the agent's actions:
[0042] a n,t =μ n (o n,t-1 )+∈ n,t
[0043] in, is the attenuated noise.
[0044] Beneficial effects:
[0045] The present invention comprehensively models the interaction process between stations and between users and stations. The user preference function is used to ensure that multiple important user preference factors are considered in the user's charging decision-making process. In addition, this scheme also designs a user diversion mechanism to ensure resource utilization between charging stations. Finally, the pricing strategy of each charging station is optimized using a multi-agent reinforcement learning framework. Based on real electric vehicle charging market data, simulation experiments were carried out to verify the effectiveness of the proposed scheme. The experimental results show that compared with the time-of-use electricity price scheme and the dynamic pricing scheme without a diversion mechanism, the team's average daily revenue increased by 23.56% and 8.78% respectively. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 These are the training curves for three schemes (the present invention, the TOU algorithm, and the dynamic pricing algorithm without a drainage mechanism) with five intelligent agents.
[0047] Figure 2 An example of a drainage mechanism for a day.
[0048] Figure 3 is the average number of three types of electric vehicle users arriving every hour of every day.
[0049] Figure 4 are the average demand and price. (a) The present invention (b) Time-of-use electricity price strategy.
[0050] Figure 5 The penalty for overload is 0.8 USD / kWh for average demand and price.
[0051] Figure 6 is the average number of users and price curve.
[0052] Figure 7 It is the average price curve under different congestion coefficients. DETAILED DESCRIPTION
[0053] The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the following specific embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention.
[0054] The MARL dynamic pricing method for electric vehicle charging stations with a traffic diversion mechanism described in the present invention comprises the following steps:
[0055] S1: Establish an electric vehicle intelligent charging network system model.
[0056] The entire electric vehicle smart charging network consists of power companies, network control centers, charging stations, and electric vehicle users. Specifically, a 24-hour day is defined as an operation cycle, where T = 1, 2, ..., 24, t∈T. The charging network consists of 5 charging stations, each of which contains 25 charging plugs, and the index of each charging station is represented by n. At time t, charging station n generates a pricing strategy and determines the charging price based on local observations and the global information collected by the network controller at time t-1 The pricing strategy of each charging station is trained using the algorithm in S7. Subsequently, the user submits a charging request q to the charging station at time t. t , responds to the price and decides whether to charge there. If the user decides to charge there, the charging station meets the user's energy needs and observes a benefit at the end of t. If the user chooses not to charge at this charging station, then depending on the congestion situation, the user may be redirected to another charging station with a lower predicted congestion level. Finally, charging station n sends its current state to the network controller to plan the price for the next time step at time t+1.
[0057] S2: Proposed electric vehicle user model.
[0058] The present invention models three user types based on the real-world electric vehicle types, including emergency type, ordinary type and residential type. They have different initial energy states. Battery capacity E i 、Charging time Ri And the charging power P i , which constitute the user’s private information, as shown in Table 1. The energy state of user i is the battery capacity E i With charging status S o C i The product of o E i =E i ·S o C i Before starting charging, user i has a minimum energy requirement
[0059] Table 1 Basic attributes of each electric vehicle user type
[0060] User Type Emergency Common Residential Battery capacity (kWh) 30 40 50 Charging power (kW) (15,20) (10,15) (5,12) Charging time (h) (1,2) (2,3) (3,4) Initial remaining power (%) (30,40) (50,60) (30,50)
[0061] In order to achieve system optimization and user satisfaction, the preferences of electric vehicle users are considered in the dynamic pricing process of electric vehicle charging stations. In this invention, user preferences are composed of user energy demand, charging cost and congestion level of charging stations. The valuation function v i (d,θ) means: Where d represents demand and θ represents user type. In a charging network, the valuation function means that users are more willing to pay more when the battery power is low. In the real world, it is difficult to accurately model the user's valuation function. In this invention, based on the practical feasibility of practical problems, an energy demand valuation function that follows a logarithmic function is adopted:
[0062]
[0063] Among them, θ i,t represents the type of user i, E i represents the electric vehicle capacity of user i, α i Represents the random factor, SoC i,t Indicates the charging status of user i;
[0064] In order to simulate the diversity of user demand configuration, a random factor α is introduced into the valuation function i By randomly drawing α from a continuous uniform distribution i , so that the demand configurations between users are different, making the model more consistent with the diversity of users in the real world. It is randomly drawn from a continuous uniform distribution [0,0.2], which is set based on the commercial charging price of $0.13 / kWh in the real world. The user's charging cost includes electricity and parking fees, which can be expressed as:
[0065]
[0066] in, represents the electricity price of charging station n at time t, Indicates parking fee.
[0067] In the real world, most users usually prefer to charge their electric vehicles at charging stations that are less crowded. Therefore, the congestion status of charging stations is incorporated into the calculation of user preferences. In summary, the preference of user i can be defined as
[0068]
[0069] Among them, α is a hyperparameter used to adjust the user's acceptance of charging station congestion, represents the predicted congestion level of charging station n at time t.
[0070] Best responses from electric car users It refers to the behavior of adjusting charging demand to maximize user preference while considering factors such as user type, charging station price and congestion level. The optimal user demand that maximizes user preference is defined as the utility obtained by the current charging demand. Should be greater than or equal to the maximum utility that can be achieved by other potential charging demands It can be expressed as:
[0071]
[0072] The user will terminate charging in the following two situations:
[0073] Condition 1: If continuing to charge causes the user preference value to be less than zero (<0), it indicates that continuing to charge will not bring additional marginal value to the user, and the user will stop charging.
[0074] Condition 2: If the battery’s state of charge (SoC) reaches the electric vehicle battery capacity, i.e., reaches the maximum value, the user will also stop charging.
[0075] From the above conditions, it can be seen that the user's optimal charging demand is not predetermined, nor is it necessarily the maximum demand at time t. The user's optimal charging demand depends on the user's preference.
[0076] S3: Establish a model of electric vehicle charging station.
[0077] The charging station first sets the energy price per unit power represents the cost of charging service provided by charging station n at the current time t, where and The charging stations then publish these prices to electric vehicle users, letting them know the charging costs during the current time period.
[0078] Subsequently, electric vehicle user i pays the energy price according to the set energy price. The charging station responds and decides whether to charge. Based on the user's response, the charging station starts the charging process of the electric vehicle and provides the corresponding charging power according to the user type. Finally, the revenue at the end of t is observed. Therefore, the revenue obtained by charging station n per hour can be calculated using the following formula:
[0079]
[0080] in, represents the total power demand of charging station n at time t, represents a group of users arriving at charging station n at time t. represents the revenue generated by electric energy, Indicates the revenue generated by the user's parking. In addition, the overload cost in the power grid is considered. Specifically, when the total demand at a certain moment exceeds the power supply capacity of the power grid, G t , the charging network must pay a unit price of τ e The overload cost is set to be borne equally by each charging station in the charging network.
[0081] S4: Interaction between EV users and charging stations.
[0082] In the interaction between the charging station and the user, the user communicates with the charging station in real time through smart devices such as smartphones to achieve two-way information exchange. Within the framework of mechanism design and game theory, the social choice function f is used to express the collective intention or preference of the entire system or group for different decisions.
[0083] use The various characteristics of charging stations and users such as charging needs and preferences are mapped to the relationship between charging price and demand, where Θ i represents the type of user i, Represents the demand of user i to ensure that the pricing strategy attracts users while guaranteeing the benefits of the charging station, thereby maximizing the overall social welfare. During the interaction between users and charging stations, users observe the charging price and flexibly adjust their charging demand on an hourly basis.
[0084] The charging station then provides energy according to the user's demand and observes the corresponding benefits at the end of the current time step. The charging station then transmits its current state to the network controller to plan a new charging price for the next time step. The whole process is carried out sequentially, with the charging station first determining the charging price and the user then making a charging decision based on these prices. The user preference function is defined in S2, including the user's energy demand valuation, the charging cost, and the congestion level of the charging station. The best response of user i is the decision made by the user that maximizes the user's preference based on the current charging station price and congestion level. However, when the charging cost and congestion level exceed the user's energy demand valuation, the user preference function will produce a negative value, and the user will choose not to charge here according to condition 1 set in S2. Subsequently, the user goes to the charging station with the lowest congestion level based on the congestion level information of other charging stations received by the smart device, and interacts with the charging station again.
[0085] S5: Cooperation between charging stations.
[0086] Charging stations learn collaboratively and work to develop joint pricing strategies to maximize the overall revenue of the team. In the charging network, the collaboration between these stations is regarded as a partially observable Markov decision process, which consists of a set of elements composition.
[0087] Agent Each charging station As an agent, n represents the index of the charging station.
[0088] State Space At time t, the state space of the system can be represented as a tuple: They represent the number of occupied charging piles at the charging station, the number of newly arrived electric vehicles, the basic load and the total demand of the charging network at the current moment.
[0089] Observation Space The state of the environment is partially observable to the agent, The observed value of each charging station n at time t It can be represented by a tuple: The elements represent the occupancy number of the nth charging station, the number of new electric vehicles arriving at the nth charging station, and the total demand of the nth charging station.
[0090] Action Space The action space of the agent is defined as: Charging request for electric vehicle users t , charging station n takes action at time t According to the observation value at the end of the previous moment Provide charging prices to users Joint action space A t Defined as the set of all agent actions: According to the charging demand x of electric vehicle users at time t i,n,t Response, update observations and state S t The price belongs to the continuous space, and its value range is: in Indicates higher prices during peak hours, Indicates lower prices during off-peak hours.
[0091] State transition probability In MDP, state transition refers to the state transition function The environment is based on the state S at time t. t and the joint action space A t , at time t+1, transition from the current state to the next state S t+1 .
[0092] award At time t, the reward of each agent is is defined as the hourly revenue of the charging station. According to the definition of charging station revenue in S3, the reward function of agent n is defined as:
[0093]
[0094] The team reward at time t It is defined as the sum of rewards of all agents in the charging network, which can be expressed as:
[0095]
[0096] The operation cycle of the charging network is defined as T = 24, which represents 24 hours, corresponding to one day. The accumulated team rewards in one day are defined as:
[0097]
[0098] Discount factor γ: The discount factor γ∈[0,1] is a parameter that determines the present value of future rewards in the decision-making process. It represents the value of future rewards relative to immediate rewards.
[0099] S6: Establish a user diversion mechanism based on LSTM charging station congestion level prediction.
[0100] The present invention adopts the LSTM model to predict the congestion level of each charging station. Since it is impossible to directly obtain the data set for training the LSTM model, data collection is performed in the initial 200 rounds of training. Subsequently, after 200 rounds, the collected data is used to start training the LSTM prediction model for each charging station. In the initialization stage, the algorithm records the occupancy of the charging station every hour as a training data set. After the initialization is completed, these data sets are used to train a separate LSTM network for each charging station. The network uses the number of occupied charging piles in the charging station at the previous 24 moments as input to predict the occupancy of the charging piles in the charging station at the next moment. In addition, in each subsequent iteration, the algorithm records the occupancy of the current charging station to update the input of the LSTM. In order to illustrate the operating logic of the drainage mechanism, this application records the relevant data for one day and visualizes it, such as Figure 2 As shown in the figure. The line graph represents the number of charging users at each charging station predicted by the LSTM module, and the bar graph represents the diverted users. For example, at time t = 8, the number of departures from the five charging stations is 21. Each LSTM network uses the charging data of the corresponding station in the past 24 time steps as input to predict the charging demand in the next time step. Figure 3 It can be seen that at time t = 9, the predicted congestion levels of charging stations 1 and 4 are the lowest. The diversion mechanism evenly distributes each type of user to these two stations. If uniform distribution is not feasible, the remaining part is randomly distributed to one of the stations.
[0101] S7: Strategy learning.
[0102] When modeling the charging network environment, a dataset collected from the real world is used to simulate the arrival of electric vehicles every hour. This dataset records the number of vehicles arriving at the Richards Avenue station near downtown Davis every 30 seconds. In order to make the dataset match the actual charging scenario, the following preprocessing steps are performed on the data:
[0103] (1) Data are upsampled from 30-second intervals to 60-minute intervals and recorded in hours.
[0104] (2) The data is divided into boxes to make the number of users reaching the target more consistent with the actual scenario. Figure 3 In the figure, we can observe the hourly arrival counts of the three types of electric vehicles, as well as the total number for the whole day.
[0105] In order to increase the size of the data set and introduce randomness in the training process, each agent randomly extracts one day (24 hours) of data for training in each round of training. In the charging network, it consists of five agents (charging stations), each of which contains 25 chargers and supports Level 2 AC charging (240 volts). 50% of the real commercial load data is multiplied by 5 as the basic load. If the charging load exceeds this limit, an overload cost of $0.4 / kWh will be incurred. At the same time, the lower limit of the charging price is set to $0.05 / kWh and the upper limit is set to $0.4 / kWh.
[0106] In the constructed actor-critic architecture, the actor network (Actor) is responsible for outputting action strategies, while the critic network (Critic) evaluates the effects of actions. Both the actor network and the critic network contain two hidden layers, each with 100 nodes, and use rectified linear units (ReLU) as activation functions. The output layer of the actor network uses the hyperbolic tangent function (tanh), while the output layer of the critic network uses the identity function. The input of the actor network is the environment state, and the input of the critic network is the environment state and action. These network structures are implemented using the PyTorch library. In addition, all experiments are conducted in an environment equipped with an NVIDIA GeForce RTX 3060Ti GPU. The hyperparameter settings for training are shown in Table 2.
[0107] Table 2 Training hyperparameter settings
[0108] Training Hyperparameters set up Learning Rate 0.001 Soft Update 0.01 Discount Factor 0.95 Batch size 300 Replay buffer size 12000 Noise Type Gaussian noise Noise intensity 1
[0109] In order to comprehensively analyze the overall performance, this application conducted experiments. Figure 1 The training results of the present invention, the dynamic pricing scheme without a drainage mechanism, and the time-of-use electricity price scheme are shown, with a total of 2000 iterations. It can be observed that after 750 rounds, the strategy trained by the present invention gradually outperforms the TOU strategy. In addition, compared with the scheme without a drainage mechanism, the present invention is always able to generate higher daily team income. In order to obtain the average daily team income, we repeatedly run the strategies trained from each scheme for 2000 days. The experimental results show that the team income of the proposed scheme (US$1684.83) is 23.56% higher than that of the TOU scheme (US$1363.61). In addition, compared with the team income of the scheme without a drainage mechanism (US$1548.83), the team income of the proposed scheme also increased by 8.78%
[0110] We use the strategy of this application and the time-of-use electricity price strategy to calculate the average demand and price of each agent in 2000 days, as follows: Figure 4(a) and (b). In the time-of-use electricity pricing strategy, charging stations may set higher prices during peak demand periods. However, this unilateral high price setting may lead to another demand peak. Figure 4 As shown in (b), when the time-of-use electricity pricing strategy is used, overloading occurs between 3 am and 6 am and between 5 pm and 12 pm as users are attracted by low prices. During peak and off-peak hours, charging stations have excess capacity due to low charging demand. Although the time-of-use electricity pricing strategy can help users charge during periods of low electricity prices, it also limits the flexibility of users' charging time. If users can only charge during specific periods, charging congestion and inconvenience may occur when demand exceeds the supply capacity during that period. In addition, due to the increase in electricity prices during peak and mid-peak periods, users are reluctant to charge, which also affects the revenue of charging stations.
[0111] The pricing strategy proposed in this invention allows intelligent agents to cooperate with each other and coordinate pricing strategies. By setting appropriate electricity prices, charging stations can stagger charging peak hours to maximize the benefits of the charging network. Figure 4 As shown in (a), at t=15 and t=16, charging station 5 serves more electric vehicles than the other four stations, but reduces the charging price to attract more users and generate greater profits. Agent 4 has the highest price at t=21, but the peak demand occurs at t=15. This cooperation can maximize the benefits of the charging network while avoiding peak demand. In addition, since the trained policy allows for moderate overload, slight overloads may occur in some periods, such as Figure 4 (a) As shown. Finally, in order to prevent overloading, the charging network controller can adjust the electricity price by increasing the overload cost to influence the user's charging decision. The strategy is trained by increasing the overload penalty from $0.4 / kWh to $0.8 / kWh, and the obtained strategy is repeatedly run for 2000 days to draw the average demand and price curves of the five charging stations, as shown in Figure 5 As shown. Figure 4 (a) It can be seen that between 5pm and 8pm, the charging station increased the price, resulting in a decrease in charging demand and effectively alleviating the overload.
[0112] Figure 6 The average number of users and price curves for five charging stations that were repeatedly operated for 2000 days using the strategy proposed in this application are shown. Obviously, the strategy proposed in this application, with the cooperation between charging stations, encourages more users to stay at charging stations during peak hours, thereby improving the utilization rate of the charging station network. Although the strategy proposed in this application attracts fewer users during off-peak hours, it offers higher prices, thereby helping to increase revenue.
[0113] In the user preference function, the congestion coefficient α is introduced to adjust the user's acceptance of charging station congestion. Three strategies are trained using different congestion coefficients (α = 0.01, α = 0.05, α = 0.1). Figure 7 The average price curves after 2000 days of repeated operation of the agent under the three strategies. It can be seen from the figure that when α is low, it indicates that the user has a higher tolerance for congestion and the impact of congestion on the price is minimal. On the contrary, when the α value is high, it indicates that the user has a lower tolerance for congestion and the impact of congestion on the price is greater. Therefore, it can be concluded that strategies trained with low congestion coefficients generally lead to higher average prices for agents compared to strategies trained with high congestion coefficients. This shows that the setting of the congestion coefficient α in the user preference function plays a vital role in adjusting the user's sensitivity to congestion and ultimately affects the price of the agent.
[0114] in, Figure 1 The training results of the present invention, the dynamic pricing scheme without the diversion mechanism, and the time-of-use electricity price scheme are shown, with a total of 2000 iterations. It can be observed that after 750 rounds, the strategy trained by the present invention gradually outperforms the TOU strategy. In addition, compared with the scheme without the diversion mechanism, the present invention can always generate higher daily team income.
[0115] It should be noted that the above content only illustrates the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. For ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications all fall within the protection scope of the claims of the present invention.
Claims
1. A MARL dynamic pricing method for electric vehicle charging stations with a traffic diversion mechanism, characterized by: The following steps are involved: S1: Establish an electric vehicle intelligent charging network system model; S2: Establish an electric vehicle user model; S3: Establish an electric vehicle charging station model; S4: Interaction between EV users and charging stations; S5: Cooperation between charging stations; S6: Establish a user diversion mechanism based on LSTM charging station congestion level prediction; S7: Strategy learning.
2. The MARL dynamic pricing method for electric vehicle charging stations with a traffic diversion mechanism according to claim 1 is characterized by: The step S1 is specifically as follows: The electric vehicle intelligent charging network system consists of a power company, a network control center, charging stations, and electric vehicle users; the power company is used to provide electricity to the entire charging network; the network control center is used to monitor power demand and distribution, and by installing two-way communication equipment, communicate with the charging stations in real time to understand the charging demand, achieve a comprehensive observation of the entire charging network, and provide real-time information and guidance to electric vehicle users; the network control center is used to monitor the status of each charging station and obtain information from each station in real time to provide sufficient data support for system decision-making; the charging station is used to provide charging services and formulate dynamic pricing, coordinate with the network control center, receive power distribution plans, communicate with electric vehicle users, receive charging requests, and provide charging services; the electric vehicle users use charging services, and are modeled as three types of electric vehicle users, namely emergency, ordinary and residential, with different charging needs and user preferences.
3. The MARL dynamic pricing method for electric vehicle charging stations with a traffic diversion mechanism according to claim 2 is characterized by: The step S2 is specifically as follows: The emergency type, ordinary type and residential type electric vehicle users have different initial energy states Battery capacity E i 、Charging time R i And the charging power P i , which constitute the user's private information; the energy state of user i is the battery capacity E i With charging status S o C i The product of o E i =E i ·S o C i ; Before starting charging, user i has a minimum energy requirement By taking the Cartesian product of all user action sets The possible action combinations of the entire system are obtained, where m represents a group of electric vehicle users, y m Represents the possible actions that the mth user may take in the entire system; To achieve system optimization and user satisfaction, user preferences are taken into account in the dynamic pricing process of electric vehicle charging stations; among them, user preferences are composed of user valuation, charging cost and congestion level of charging stations.
4. The MARL dynamic pricing method for electric vehicle charging stations with a traffic diversion mechanism according to claim 3 is characterized by: User i's demand The valuation function v i (d,θ) means: Where d represents demand and θ represents user type. In the charging network, the valuation function means that users are more willing to pay more when the battery power is low. In the real world, the user's valuation function is difficult to model accurately, so an energy demand valuation function that follows a logarithmic function is used: Among them, θ i,t represents the type of user i, E i represents the electric vehicle capacity of user i, α i Represents the random factor, SoC i,t Indicates the charging status of user i; In order to simulate the diversity of user demand configuration, a random factor α is introduced into the valuation function i ; By randomly drawing α from a continuous uniform distribution i , which makes the demand configurations between users different, making the model more consistent with the diversity of users in the real world; it is randomly drawn from a continuous uniform distribution [0,0.2]; the user's charging cost includes electricity and parking fees, expressed as: in, represents the electricity price of charging station n at time t, Indicates parking fee; The congestion status of the charging station is incorporated into the calculation of user preference; in summary, the user preference of user i is defined as: Among them, β is a hyperparameter used to adjust the user's acceptance of charging station congestion. represents the predicted congestion level of charging station n at time t; Best responses from electric car users It refers to the behavior of adjusting charging demand to maximize user preference while considering factors such as user type, charging station price and congestion level. The optimal user demand that maximizes user preference is defined as the utility obtained by the current charging demand. Should be greater than or equal to the maximum utility that can be achieved by other potential charging demands It can be expressed as:
5. The MARL dynamic pricing method for electric vehicle charging stations with a traffic diversion mechanism according to claim 4 is characterized by: The step S3 is specifically as follows: The charging station first sets the energy price per unit power represents the cost of charging service provided by charging station n at the current time t, where and The charging stations then announce these prices to electric vehicle users, letting them know the cost of charging during the current time period. Subsequently, electric vehicle user i pays the energy price according to the set energy price. The charging station responds and decides whether to charge. According to the user's response, the charging station starts the charging process of the electric vehicle and provides the corresponding charging power according to the user type. Finally, its profit at the end of t is observed; therefore, the profit obtained by the charging station n per hour is calculated by the following formula: in, represents the total power demand of charging station n at time t, represents a group of users arriving at charging station n at time t; represents the revenue generated by electric energy, Indicates the revenue generated by the user's parking. Indicates parking fee; In addition, when the total demand at a certain moment exceeds the power supply capacity of the power grid G t , the charging network must pay a unit price of τ e The overload cost is calculated and each charging station in the charging network is set to bear the cost on average.
6. The MARL dynamic pricing method for electric vehicle charging stations with a traffic diversion mechanism according to claim 5 is characterized by: The step S4 is specifically as follows: In the interaction between the charging station and the user, the user communicates with the charging station in real time through the smart device to achieve two-way information exchange; using f: The charging demand and preference characteristics of charging stations and users are mapped to the relationship between charging price and demand, where Θ i represents the user type of the i-th user, represents the charging demand of the i-th user to ensure that the pricing strategy attracts users while guaranteeing the benefits of the charging station, thereby maximizing the overall social welfare; then, the charging station provides energy according to the user's demand and observes the corresponding benefits at the end of the current moment; finally, the charging station transmits its current state to the network controller to plan a new charging price for the next moment; the whole process proceeds sequentially, the charging station first determines the charging price, and the user then makes a charging decision based on these prices.
7. The MARL dynamic pricing method for electric vehicle charging stations with a traffic diversion mechanism according to claim 6 is characterized by: The step S5 is specifically as follows: Charging stations learn collaboratively and work to develop joint pricing strategies to maximize the overall revenue of the team; in the charging network, the collaboration between these stations is regarded as a partially observable Markov decision process, which consists of a set of elements Composition, of which Represents an intelligent agent, represents the state space, represents the observation space, represents the action space, represents the state transition probability, represents the reward and γ represents the discount factor.
8. The MARL dynamic pricing method for electric vehicle charging stations with a traffic diversion mechanism according to claim 7 is characterized by: The step S6 is specifically as follows: The LSTM model of each charging station uses the number of users served in the past as input to predict the number of users served by the corresponding charging station at the current moment as the congestion level of the charging station; the congestion coefficient is introduced to adjust the user's acceptance of the congestion of the charging station in the user preference function; when the user makes a charging decision, he will consider the congestion level of the charging station. When the predicted congestion level of the current charging station is too high, the user will usually choose to leave the station; then, the proposed user diversion mechanism diverts the unserved users at time t to the charging station with the lowest congestion level predicted at time t+1; essentially, at time t+1, the number of arriving users at each charging station consists of two parts: (1) the number of arriving users sampled from the real electric vehicle charging market data; and (2) the number of users diverted from other charging stations at time t.
9. The MARL dynamic pricing method for electric vehicle charging stations with a traffic diversion mechanism according to claim 8 is characterized by: The step S7 is specifically as follows: In the constructed charging network environment, all agents show a cooperative relationship; in order to coordinate the learning of the optimal action strategy among agents, a framework of decentralized execution and centralized training is adopted, which consists of four networks: an actor network responsible for generating agent action strategies, a critic network for evaluating the effectiveness of strategies, and a target actor and target critic network for stabilizing the learning process; in the training phase, the experience data of all agents are collected centrally and used to train a shared global strategy network; in the execution phase, each agent independently executes its own strategy based on its own observations and environmental information without knowing the specific action strategies of other agents.
10. A MARL dynamic pricing method for electric vehicle charging stations with a traffic diversion mechanism according to claim 9, characterized in that: The actor network is updated as follows: in, is the policy gradient, μ n is the strategy of agent n, o t Represents joint observation, agent n in action a n Update its strategy μ n To maximize the critic Q n (o,a), given by Function parameterization; The update target of the critic network is to minimize the mean square error between the temporal difference target and the critic network prediction, which is expressed as: in, represents the target value of agent n, calculated by the Bellman equation: in, is the reward obtained by agent i at time t+1, γ is the discount factor, Q′ n (o t+1 ,μ θ (o t+1 )) indicates the use The output of the target critic network of parameterized agent n, μ θ (o t+1 ) is used The output of the target actor network for parameterized agent n; In order to fully explore the environment, a decaying Gaussian noise with zero mean and variance decaying from 1 to 0 is added to the agent's actions: a n,t =μ n (the n,t-1 )+∈ n,t in, is the attenuated noise.
Citation Information
Cited By
Multi-charging-station dynamic pricing method and system based on user behavior response and storage medium
CN121883082A
