Wind and light storage and charging station self-consistent optimization regulation and control method based on deep reinforcement learning
Through the deep reinforcement learning method, combined with traffic flow prediction and Markov game model, the problem of 'source-load' mismatch in highway charging stations is solved, and the efficient, economical and self-consistent operation of charging stations and low-carbon performance improvement are achieved.
Patent Information
- Application Number
- CN202410820139.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-15
AI Technical Summary
Due to the dual uncertainty of new energy sources such as wind power and photovoltaics and the arrival of electric vehicles at highway charging stations, the 'source and load' mismatch results in problems such as wind and light abandonment and poor economic efficiency. Traditional optimization algorithms are difficult to effectively solve.
A self-consistent optimization and control method for wind and solar storage and charging stations based on deep reinforcement learning is adopted, including establishing a traffic flow prediction model of the CNN-BiLSTM network, using the M/M/Nsum/C queuing model to calculate the charging power, and using the whale optimization algorithm and Markov The game model performs day-ahead and intra-day optimization and control, and uses a multi-agent double-delay depth deterministic decision-making gradient algorithm to adjust the power of charging piles and energy storage systems in real time.
It achieves efficient and economical self-consistent operation of charging stations, guides users to charge in an orderly manner through price incentives, regulates charging station loads to be consistent with new energy power distribution, improves the self-consistent rate and low-carbon performance of charging stations, and reduces carbon emissions and environmental impact. Dependence on the power grid.
Smart Images

Figure CN118783501A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optimized operation of wind, solar, battery and charging stations, and in particular to a self-consistent optimization and control method of wind, solar, battery and charging stations based on deep reinforcement learning. Background Art
[0002] New energy charging stations use photovoltaic (PV) and wind power (WP) power generation systems to charge electric vehicles (EV). New energy charging stations can be divided into urban charging stations and highway charging stations. At present, urban charging stations are mainly photovoltaic energy storage charging stations. Photovoltaic power generation is closely related to the weather environment and has a large randomness. Charging stations are equipped with energy storage systems to achieve energy storage and release, improve the absorption rate of photovoltaics, and obtain economic profits through "low storage and high generation". Compared with urban charging stations, highway charging stations are located in remote areas and do not have a complete power system. The reliability of power supply is low, similar to an "island". At the same time, compared with the characteristics of concentrated stay and long duration of electric vehicles in urban areas, the entry into the station is more random, the stay time at the charging station is shorter, and the station is usually dominated by fast charging piles, which has a large demand for electricity.
[0003] However, due to the dual uncertainty of new energy sources such as wind power and photovoltaic power and the entry of EVs into highway charging stations, the "source-load" mismatch of highway charging stations has caused derivative problems such as wind and solar power abandonment and poor economy. At present, research mainly focuses on the site selection planning and capacity configuration of highway charging stations, and there is little research on the optimization and regulation of highway charging stations. At the same time, in terms of solving optimization and regulation problems, traditional optimization algorithms and heuristic algorithms are difficult to fully cope with the nonlinear non-convex real-time optimization problems of new energy charging stations. The present invention proposes a charging station optimization and regulation method to deal with the derivative problems caused by the "source-load" mismatch and realize the efficient and economical self-consistent operation of the charging station. Summary of the invention
[0004] In order to solve the problem that traditional new energy charging stations are not self-consistent in energy and have poor economy, the present invention proposes a self-consistent optimization and control method for wind, solar and storage charging stations based on deep reinforcement learning to solve the above problems.
[0005] The present application discloses a self-consistent optimization and control method for a wind-solar-storage-charging station based on deep reinforcement learning, comprising the following steps:
[0006] S1. Establish a traffic flow prediction model based on CNN-BiLSTM network and obtain traffic flow prediction results;
[0007] S2, based on the traffic flow prediction results obtained in S1, using M / M / N sum / C queuing model calculates the charging power of the charging station;
[0008] S3. Use the charging power obtained in S2 to establish a day-ahead optimization model, and use the whale optimization algorithm to solve the day-ahead optimization model to obtain a 24-hour price incentive for real-time user guidance at the charging station during the day.
[0009] S4. Establish an intraday optimization model with charging pile power and battery energy storage system power as control variables, and transform the intraday optimization model into a Markov game model;
[0010] S5. Use the multi-agent double-delay deep deterministic decision gradient algorithm to solve the Markov game model and obtain the power of the charging pile and energy storage system in real time.
[0011] Preferably, the S1 comprises the following steps:
[0012] S11. Collect historical traffic flow data and perform normalization processing;
[0013] S12, split 0 to 23 points into 24 groups, each group includes data from m-1 days to md days: [m-1,...,m-d] ,…,twenty three [m -1,...,m-d] , m means the traffic flow forecast for m days before the day, d means the number of historical days used;
[0014] S13, establish 24 CNN-BiLSTM networks, input the 24 sets of data obtained in S12 into the corresponding CNN-BiLSTM networks, train and output the traffic flow prediction results Y tra (t).
[0015] Preferably, S2 comprises the following steps:
[0016] The time interval between charging users’ arrival follows a Poisson distribution with parameter λ, and the charging time follows a negative exponential distribution with parameter μ. Each charging pile is independent of each other.
[0017] The probability of a user joining a queue and the probability of a user leaving a queue are:
[0018]
[0019]
[0020] z j,t =x j,t +b j ;
[0021]
[0022] Among them, λ k The probability of a user joining the queue, μ kis the probability of the user leaving the queue, k is the queue leader, C is the space capacity of the charging station, N sum is the total number of charging piles, β is the sensitivity parameter, δ is the sensitivity parameter reflecting the probability of leaving, P j,t is the user's response probability to the price, and the Sigmoid function is used as its response probability model. In the Sigmoid function, z j,t Composed of stimulus price and price sensitivity, x j,t To stimulate prices, b j is the price sensitivity, a is the number of vehicles entering the charging station per 100 vehicles;
[0023] The average number of charging piles in use is:
[0024]
[0025] Among them, p 0 is the probability that the number of customers is zero, and x is the summation variable;
[0026] The charging power of the charging station in each time period is:
[0027] P cs (t) = N ch (t)P rated,avg ;
[0028] Among them, P rated,avg is the average value of the charging pile power.
[0029] Preferably, the day-ahead optimization model in S3 includes an objective function and constraints;
[0030] The objective function of the day-ahead optimization model is:
[0031]
[0032] Among them, K sum is the revenue of the charging station, E c is carbon emissions, S pw is the self-consistency rate, Q s Penalty for exceeding parking capacity. λ and ω are weight coefficients;
[0033] The benefits of a charging station are:
[0034] K sum =K ps +K e -C g ;
[0035]
[0036] Among them, K psis the charging income, K e is the income from electricity sales, C g is the electricity purchase cost for the charging station, c r (t) is the electricity price at time t, c s (t) is the charging service fee at time t, c a (t) is the subsidy price at time t, T s is the unit time duration, T sum is the total duration, P out (t) is the power sold to the grid at time t, P g (t) is the power input from the power grid to the charging station at time t;
[0037] The carbon emissions of the charging station purchasing electricity from the grid are:
[0038]
[0039] in, is the carbon dioxide emissions per unit of electricity;
[0040] The self-consistency calculation formula is:
[0041]
[0042] Among them, P wind (t) is the wind power at time t, P pv (t) is the photovoltaic power at time t;
[0043] The penalty for exceeding the parking capacity of the charging station is:
[0044]
[0045] Among them, k is the queue leader and C is the space capacity of the charging station.
[0046] Preferably, the constraints of the day-ahead optimization model include electric vehicle constraints, charging time constraints, and battery energy storage system constraints;
[0047] The electric vehicle constraints are as follows:
[0048]
[0049]
[0050] Among them, P ev_i (t) is the power of the ev_ith electric car at time t, P p1,min is the minimum charging power of the ultra-fast charging pile, P p2,min is the minimum charging power of the fast charging pile, P p1,rated is the rated power of the ultra-fast charging pile, P p2,ratedis the rated power of the fast charging pile, R p1 For electric vehicles connected to ultra-fast charging stations, R p2 A collection of electric vehicles connected to a charging station. is the outgoing power of the ev_ith electric vehicle at time t, C ev_i is the battery capacity of the ev_ith electric car, E ev_i is the power consumption per 100 kilometers of the ev_i-th electric car, d ev_i The estimated travel distance for the next trip of the ev_i electric car;
[0051] The charging time constraints are as follows:
[0052]
[0053] Among them, t ev_i is the charging time of the ev_ith electric car, T ev,max Maximum charging time for electric vehicles;
[0054] The battery energy storage system constraints are as follows:
[0055] -P es,rated ≤P es (t)≤P es,rated ;
[0056] SOC es,min ≤SOC es (t)≤SOC es,max ;
[0057] Among them, SOC es (t) is the SOC of the energy storage system, SOC es,min is the minimum SOC value of the energy storage system, SOC es,max is the maximum SOC of the energy storage system.
[0058] Solving the day-ahead optimization model using the whale optimization algorithm includes the following steps:
[0059] S31, initializing parameters including the size of the whale group and the position of individual whales, and setting the number of iterations to 1;
[0060] S32. According to the objective function formula of the day-ahead optimization model, the fitness function of the whale algorithm is set;
[0061] S33, according to the fitness function, calculate the fitness value of the individual whales, and record the current optimal whale;
[0062] S34, updating the position of the whale group, calculating the whale fitness value again, and comparing it with the optimal whale;
[0063] S35, determine whether the preset number of cycles is reached. If not, repeat steps S33-S34. If the preset number of cycles is reached, output the final optimization result.
[0064] Preferably, S4 comprises the following steps:
[0065] S41. Establish an intraday optimization model in the intraday real-time control stage. The intraday optimization model includes a control object and a control target. The control object consists of the power of each charging pile and the power of the battery energy storage system. The control target is the revenue, low carbon, self-consistency, congestion and battery loss cost of the charging pile in the intraday real-time control stage.
[0066] S42. Convert the intraday real-time control problem into a Markov decision process, and expand the Markov decision process into a Markov game model, use the control object described in S1 as the action space of the Markov game model, and use the control target described in S1 as the reward function of the Markov game model;
[0067] The Markov game model uses a set of multivariate groups {S 1 …S i …S n ,A 1 …A i …A n ,P,R 1 …R i …R n ,R g ,γ} means, where {S 1 …S i …S n} represents the state space observed by n agents, {A 1 …A i …A n} represents the action space of n agents, P represents the state transition probability, {R 1 …R i …R n} represents the reward space of n agents, R g represents the global reward of all agents, and γ represents the reward discount factor.
[0068] Preferably, the Markov game model is as follows:
[0069] The state space of the Markov game model is as follows:
[0070]
[0071] The action space of the Markov game model is as follows:
[0072]
[0073] The reward function of the Markov game model is as follows:
[0074]
[0075] Among them, R n′ (t) is the charging pile reward function, R es (t) is the energy storage agent reward function, α 1 , α 2 , α 3 , α 4 , β 1 and β 2 is the weight coefficient, K s ' um is the charging station revenue during the day, C loss,s The cost of battery loss;
[0076] The revenue of the charging station during the intraday period is:
[0077]
[0078] Among them, P c,n (t) is the charging power of the nth charging pile at time t, N sum is the total number of charging piles;
[0079] Battery loss cost C loss,s for:
[0080]
[0081] Among them, c over P is the penalty cost per unit of overcharge or overdischarge of the battery. over (t) is the overcharge and overdischarge power of the battery energy storage system at time t, P es (t) is the power of the battery energy storage system at time t, c es It is the unit charge and discharge cost of the battery.
[0082] Preferably, the MATD3 includes multiple agents, each of which has two centralized critic networks and one actor network;
[0083] Preferably, S5 comprises the following steps:
[0084] S51, initialize two critic networks and one actor network for each agent, initialize the parameters of the two critic networks and the parameters of one actor network, and initialize the experience revisit pool;
[0085] S52. For each agent i, take a random action A i~π i (S i )+ε i Act on the environment, and then the environment will output a new state and reward value. i is the strategy of the ith agent, which can make corresponding actions according to the state value, S i is the state value of the ith agent, ε i The action noise of the i-th agent is used to improve the agent's exploration ability;
[0086] S53. Prioritize sampling of the most useful experience to train the agent. The usefulness of the experience is determined by the TD error |δt|. The priority of the experience is pt = |δt| + ∈, where ∈ is an infinitesimal positive number. The larger |δt| is, the higher the priority of the experience is. The probability of the experience being selected is:
[0087]
[0088] Among them, μ(t) is the sampling weight factor, which indicates the influence of priority on sampling probability;
[0089] S54, summarize the sampled experience and use it to update the target value y i :
[0090]
[0091] Among them, R i is the reward value of agent i, γ is the conversion factor, S′ is the state S′ 1 To state S' n The set of S′ 1 and S′ n are the states of the first and nth agents, respectively, π φ,1 and π φ,n are the algorithm strategies of the first and nth agents respectively, ε is Gaussian noise, is the critic network, cr is the network number, according to the target value y i Update the two critic network parameters θ i,1 and θ i,2 ;
[0092] Thus, the action parameters, target value network parameters and policy network parameters are updated according to the policy gradient;
[0093] S55. If the experience pool is full, new experience is used to replace old experience according to its usefulness;
[0094] S56, repeat S51-S55N times until convergence, train i agents to make the best action;
[0095] S57. Regulate the power of each charging pile and energy storage system based on the optimal action of the intelligent agent.
[0096] Beneficial effects of the present invention:
[0097] (1) The present invention formulates charging subsidies at various times of the day in the day-ahead stage to guide users to charge in an orderly manner, efficiently and reasonably utilize charging resources in the station, use prices to guide the arrival rate of electric vehicles to prevent congestion at highway charging stations, and indirectly transfer the load of the charging station so that the load is consistent with the distribution of new energy power;
[0098] (2) The intraday real-time optimization and control of the present invention performs real-time control on the charging piles and energy storage systems, realizing the re-transfer of the load of the transfer charging station, providing a second guarantee for the consistency of the load and the power distribution of new energy, thereby realizing efficient and economical self-consistent operation of the charging station;
[0099] (3) The present invention models the complex in-station multi-agent and multi-objective non-convex control problem into a multi-agent multi-agent Markov game model, and uses the MATD3 algorithm to solve it, thereby improving the ability to solve intraday real-time complex optimization models under the dual uncertainties of electric vehicles and renewable energy power generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0100] Figure 1 This is a flow chart of a self-consistent optimization and control method for a wind-solar-storage-charging station based on deep reinforcement learning according to an embodiment of the present invention;
[0101] Figure 2 This is a schematic diagram of the structure of a wind-solar-storage integrated DC charging station according to an embodiment of the present invention;
[0102] Figure 3 Schematic diagram of a traffic flow prediction model based on CNN-BiLSTM according to an embodiment of the present invention;
[0103] Figure 4 It is a schematic diagram of a day-ahead and intraday dual-stage self-consistent optimization model according to an embodiment of the present invention;
[0104] Figure 5 This is a flow chart of solving the day-ahead optimization model based on the whale optimization algorithm according to an embodiment of the present invention;
[0105] Figure 6 The intraday optimization control model based on the MATD3 algorithm of the embodiment of the present invention;
[0106] Figure 7(a) is a schematic diagram of related indicators of charging stations in the intraday stage of the rule allocation control method without the guidance of day-ahead subsidies;
[0107] Figure 7(b) is a schematic diagram of related indicators of charging stations in the intra-day stage of the dual-stage control method based on day-ahead subsidy guidance and rule allocation;
[0108] FIG. 7( c ) is a schematic diagram of relevant indicators of charging stations in the intraday real-time control stage according to an embodiment of the present invention. DETAILED DESCRIPTION
[0109] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and examples.
[0110] The embodiment of the present application discloses a self-consistent optimization and control method for a wind-solar-storage-charging station based on deep reinforcement learning. The method flow chart is as follows: Figure 1 As shown, the following steps are included:
[0111] S1. Establish a traffic flow prediction model based on the CNN-BiLSTM network and obtain the traffic flow prediction results.
[0112] like Figure 2 The figure shows the structure of a wind, solar and storage integrated DC charging station, which consists of a wind power system, a photovoltaic system, a charging pile, a converter and an energy storage system. Photovoltaic and wind power systems can provide electricity for electric vehicles, and the energy storage system can store excess energy and provide electricity to the grid when prices are high. The charging station can sell and purchase electricity from the grid, while meeting the charging needs of electric vehicles and increasing the overall income of the charging station.
[0113] First, build a basic power model of the wind, solar, storage and charging station. According to wind power, photovoltaic, charging power and energy storage SOC, the power balance formula of the charging station can be divided into three parts.
[0114] Part 1: When the wind power and photovoltaic power are greater than the total charging power, the charging power is provided by wind power and photovoltaic power. When the difference between the wind power and photovoltaic power and the charging power is greater than the rated power of the energy storage system, the energy storage system is charged according to the rated power, and the remaining power is transmitted to the grid:
[0115]
[0116] Among them, P out (t) is the power sold to the grid at time t, P c,n (t) is the charging power of the n′th charging pile at time t, P es,rated is the rated power of the energy storage system, P wind (t) is the wind power at time t, P pv (t) is the photovoltaic power at time t, N sum is the total number of charging piles.
[0117] If the difference between wind power and photovoltaic power and charging power is greater than the rated power of the energy storage system, the charging power of the energy storage system is the difference between wind power and photovoltaic power and charging power:
[0118]
[0119] Among them, P es (t) is the output power of the energy storage system at time t.
[0120] When the energy storage system is overcharged, the excess power is directly delivered to the grid:
[0121]
[0122] Part 2: When the difference between wind power and photovoltaic power and charging power is between 0 and -P es,rated When charging, the charging power is provided by wind power, photovoltaic and energy storage systems.
[0123]
[0124] When the battery energy storage system is over-discharged, the charging power is provided by wind power, photovoltaic power and the power grid.
[0125]
[0126] Part 3: When the sum of the rated powers of wind power, photovoltaic power and battery energy storage systems is less than the total charging power, the charging power is first provided by wind power, photovoltaic power, battery energy storage system and power grid.
[0127]
[0128] Among them, P g (t) is the power input from the power grid to the charging station at time t.
[0129] Model the charging and discharging process of the battery energy storage system. The charging process model of the battery energy storage system is:
[0130]
[0131] Among them, SOC es (t+1) and SOC es (t) are the SOC of the battery energy storage system at time t+1 and time t, respectively. es (t) is the capacity of the battery energy storage system at time t, η ch is the charging efficiency of the battery energy storage system at time t, T s is the unit period.
[0132] The discharge process model of the battery energy storage system is:
[0133]
[0134] Among them, η dis It is the discharge process model of the battery energy storage system.
[0135] Traffic flow prediction based on CNN-BiLSTM network Figure 3 As shown, y 0 、x 0 are the output and input of the first group of CNN-BiLSTM networks, y 1 、x 1 They are the output and input of the second group of CNN-BiLSTM networks, and so on. m represents 0 o'clock on the mth day (0 o'clock in time), 0 m-1 Indicates the 0 o'clock of the m-1th day (0 o'clock in time), and so on. Considering that traffic flow data contains rich temporal and spatial information, the model uses the CNN-BiLSTM network to predict traffic flow, including the following steps:
[0136] S11. Collect historical traffic flow data and perform normalization processing;
[0137] S12. The model needs to make a day-ahead traffic flow forecast for m days (24 points, i.e. 24 hours a day), but the forecast dimension is high, and rolling and multi-step forecasts will add errors, making it difficult to guarantee the forecast accuracy. Since the traffic flow is regular every day, points 0 to 23 are divided into 24 groups, each of which includes data from m-1 days to md days: [m-1,...,m-d] ,…,twenty three [m-1,...,m-d] , d represents the number of historical days of utilization;
[0138] S13, establish 24 CNN-BiLSTM networks, input the 24 sets of data obtained in S12 into the corresponding CNN-BiLSTM networks, train and output the traffic flow prediction results Y tra (t).
[0139] S2, based on the traffic flow prediction results obtained from S1, using the user's psychological M / M / N sum / C queuing model calculates the charging power of the charging station.
[0140] The time interval between charging users follows a Poisson distribution with parameter λ, and the charging time follows a negative exponential distribution with parameter μ. Each charging pile is independent of each other. The charging rule of the charging station queuing model follows the first-come-first-served principle, and the user's psychology is considered in the M / M / Nsum / C queuing theory.
[0141] The probability of a user joining a queue and the probability of a user leaving a queue are:
[0142]
[0143] z j,t =x j,t +b j ;
[0144]
[0145] Among them, λ k The probability of a user joining the queue, μ k is the probability of the user leaving the queue, k is the queue leader, C is the space capacity of the charging station, β is the sensitivity parameter, which represents the speed of probability decrease (β≥0), and δ is the sensitivity parameter reflecting the probability of leaving. As the queue lengthens, the probability of the user choosing to queue will decrease rapidly. Therefore, in λ k In the settings, choose an exponential function with base e. j,t The Sigmoid function is used as the response probability model for electric vehicle users to prices. Considering that different users have different sensitivity to prices, the z in the Sigmoid function is j,t Composed of stimulus price and price sensitivity, x j,t To stimulate prices, i.e. price subsidies, b j For price sensitivity.
[0146] The average number of charging piles in use is:
[0147]
[0148] Among them, p 0 is the probability that the number of customers is zero, and x is the summation variable;
[0149] According to the average number of charging piles in use, the charging power of the charging station in each time period is calculated as:
[0150] P cs (t) = N ch (t)P rated,avg ;
[0151] Among them, P rated,avg is the average value of the charging pile power.
[0152] like Figure 4 The figure shows a schematic diagram of the day-ahead-intraday two-stage self-consistent optimization model of an embodiment of the present application. The day-ahead-intraday two-stage self-consistent optimization model is mainly divided into day-ahead optimization and control and intraday real-time optimization and control. Day-ahead optimization and control uses the 24-hour stimulus price as the control variable. The CNN-BiLSTM algorithm and queuing theory are used to predict the 24-hour traffic flow and load, and the 24-hour optimization results are solved according to the day-ahead optimization target, with a sampling time of 1 hour. Intraday real-time optimization and control uses the charging power of the charging pile and the power of the energy storage system as control variables. The reward function is set during the day and multi-agent deep reinforcement learning is used to control the charging pile and the energy storage system, with a sampling time of 15 minutes.
[0153] S3. Use the charging power obtained in S2 to establish a day-ahead optimization model, and use the whale optimization algorithm to solve the day-ahead optimization model to obtain the 24-hour price incentive. The sampling time is 1 hour, and the 24-hour price incentive acts on the real-time user guidance of the charging station during the day. The day-ahead optimization model includes objective functions and constraints.
[0154] In the day-ahead optimization and regulation, considering the benefits, low carbon, self-consistency and congestion of the charging station, the objective function of the day-ahead optimization model is established as:
[0155]
[0156] Among them, K sum is the revenue of the charging station, E c is carbon emissions, S pw is the self-consistency rate, Q s Penalty for exceeding parking capacity. λ and ω are weight coefficients;
[0157] The revenue of a charging station includes charging income, electricity sales income and the cost of purchasing electricity for the charging station:
[0158] K sum =K ps +K e -C g ;
[0159]
[0160] Among them, K ps is the charging income, K e is the income from electricity sales, C g is the electricity purchase cost for the charging station, c r (t) is the electricity price at time t, c s (t) is the charging service fee at time t, c a (t) is the subsidy price at time t, T s is the unit time duration, T sum is the total duration, P out (t) is the power sold to the grid at time t, P g (t) is the power input from the power grid to the charging station at time t.
[0161] The carbon emissions of the charging station purchasing electricity from the grid are:
[0162]
[0163] in, is the carbon dioxide emissions per unit of electricity (taking a coal-fired generator as an example).
[0164] The self-consistency calculation formula is:
[0165]
[0166] Among them, P wind (t) is the wind power at time t, P pv (t) is the photovoltaic power at time t.
[0167] High-speed highway charging stations need to ensure that there are parking spaces for low-power electric vehicles, and electric vehicles cannot be parked on the highway. Therefore, penalty limits are set for exceeding the parking capacity of charging stations:
[0168]
[0169] Among them, k is the queue leader and C is the space capacity of the charging station.
[0170] The constraints of the day-ahead optimization model include electric vehicle constraints, charging time constraints, and battery energy storage system constraints.
[0171] The electric vehicle constraints are as follows:
[0172]
[0173] Among them, P ev_i (t) is the power of the ev_ith electric car at time t, P p1,min is the minimum charging power of the ultra-fast charging pile, P p2,min is the minimum charging power of the fast charging pile, P p1,rated is the rated power of the ultra-fast charging pile, P p2,rated is the rated power of the fast charging pile, R p1 For electric vehicles connected to ultra-fast charging stations, R p2 A collection of electric vehicles connected to a charging station. is the outgoing power of the ev_ith electric vehicle at time t, C ev_i is the battery capacity of the ev_ith electric car, E ev_i is the power consumption per 100 kilometers of the ev_i-th electric car, d ev_i The estimated travel distance for the next trip of the ev_i electric car;
[0174] The charging time constraints are as follows:
[0175]
[0176] Among them, t ev_i is the charging time of the ev_ith electric car, T ev,max The maximum charging time for electric vehicles is determined based on the historical charging time of highway charging stations.
[0177] The constraints of the battery energy storage system are as follows:
[0178] -P es,rated ≤P es (t)≤P es,rated ;
[0179] SOC es,min ≤SOC es (t)≤SOC es,max ;
[0180] Among them, SOC es (t) is the SOC of the energy storage system, SOC es,min is the minimum SOC value of the energy storage system, SOC es,max is the maximum SOC of the energy storage system.
[0181] like Figure 5 As shown in the figure, solving the day-ahead optimization model using the whale optimization algorithm includes the following steps:
[0182] S31, initializing parameters including the size of the whale group and the position of individual whales, and setting the number of iterations to 1;
[0183] S32. According to the objective function formula of the day-ahead optimization model, the fitness function of the whale algorithm is set;
[0184] S33. Calculate the fitness value of individual whales according to the fitness function, and record the current optimal whale, that is, the global optimal solution of this round;
[0185] S34, updating the position of the whale group, calculating the whale fitness value again, and comparing it with the optimal whale;
[0186] S35, judging whether the preset number of cycles (optimization times) is reached, in this embodiment, the preset number of cycles is 200. If the preset number of cycles is not reached, repeating steps S33-S34, if the preset number of cycles is reached, outputting the final optimization result, i.e., the electricity price.
[0187] S4. Establish an intraday optimization model with charging pile power and battery energy storage system power as control variables, and transform the intraday optimization model into a Markov game model.
[0188] S41. Establish an intraday optimization model in the intraday real-time control stage. The intraday optimization model includes a control object and a control target. The control object consists of the power of each charging pile and the power of the battery energy storage system. The control target is the revenue, low carbon, self-consistency, congestion and battery loss cost of the charging pile in the intraday real-time control stage.
[0189] S42. The intraday real-time control problem is transformed into a Markov decision process (MDP). At the same time, the control of multiple charging piles and energy storage systems in a charging station is a complex multi-agent multi-objective optimization problem. Therefore, the multi-objective optimization problem is transformed into a game process between multiple agents, and the original MDP is expanded to a Markov game model (MGM) to reduce the computational complexity of a single agent, where the control object is the action space of the MGM and the control target is the reward function of the MGM.
[0190] The Markov game model uses a set of multivariate groups {S 1 …S i …S n ,A 1 …A i …A n ,P,R 1 …R i …R n ,R g ,γ} means, where {S 1 …S i …S n} represents the state space observed by n agents, {A 1 …A i …A n} represents the action space of n agents, P represents the state transition probability, {R 1 …R i …R n} represents the reward space of n agents, R g represents the global reward of all agents, and γ represents the reward discount factor.
[0191] The Markov game model is as follows:
[0192] State Space:
[0193] For the wind, solar, storage and charging station, the state space consists of purchased power, sold power, photovoltaic power, wind power, charging pile charging power, electric vehicle SOC, battery energy storage system power and SOC. The state space of the Markov game model is as follows:
[0194]
[0195] Action Space:
[0196] After observing the state of the environment, the agent selects an action according to the strategy π. The action space consists of the power of each charging pile and the power of the battery energy storage system. The action space of the Markov game model is as follows:
[0197]
[0198] Reward function:
[0199] The agent needs to determine its own update direction and amplitude based on the reward value returned by the external environment. The numbers are:
[0200]
[0201] Among them, R n′ (t) is the charging pile reward function, R es (t) is the energy storage agent reward function, α 1 , α 2 , α 3 , α 4 , β 1 and β 2 is the weight coefficient, K′ sum is the charging station revenue during the day, C loss,s The cost of battery loss;
[0202] The revenue of the charging station during the intraday period is:
[0203]
[0204] Among them, P c,n (t) is the charging power of the n′th charging pile at time t;
[0205] The battery energy storage equipment in the charging station undergoes multiple charge and discharge cycles, and may be overcharged or over-discharged. If the cost of battery charging and discharging and the loss cost of overcharging and over-discharging on battery life are considered, the battery loss cost C loss,s for:
[0206]
[0207] Among them, c over P is the penalty cost per unit of overcharge or overdischarge of the battery. over (t) is the overcharge and overdischarge power of the battery energy storage system at time t, P es (t) is the power of the battery energy storage system at time t, c es It is the unit charge and discharge cost of the battery.
[0208] S5. Use the Multi-agent twin delayeddeterministic policy gradient (MATD3) algorithm to solve the Markov game model and obtain the power of the charging pile and energy storage system in real time. Figure 6The figure shows the intraday optimization and control model based on the MATD3 algorithm. MATD3 uses a centralized training and decentralized execution framework. MATD3 includes multiple agents, each of which has two centralized critic networks and one actor network. During training, the two critic networks of each agent can access the actions, state quantities, rewards and strategies of all agents. The two critic networks complete the task of centralized training, that is, the two critic networks evaluate the value of their own actions not only based on their own situation, but also consider the behavioral status of other agents, while the actor network performs decentralized execution according to the strategy, that is, the actor network only needs to consider its own state to make corresponding actions. By utilizing the collaboration between each agent in MATD3, the power of each charging pile and energy storage system can be optimized and controlled.
[0209] The MATD3 algorithm adopts a centralized training and decentralized execution mode, setting a policy network and a target value network for each agent. During centralized training, the two critic networks of each agent can access the actions, states, rewards and strategies of all agents from the experience pool, thereby realizing the interaction between agents; during decentralized execution, the actor network of each agent performs decentralized execution tasks according to the strategy, and the actor network only needs to consider its own state to make corresponding actions.
[0210] The specific steps of the MATD3 algorithm are as follows:
[0211] Initialize the two critic networks and actor networks of each agent and their parameters, and initialize the experience revisit pool.
[0212] For each agent i, take a random action a i ~π i (s i )+ε i Act on the environment, and then the environment will output a new state and reward value. i is the strategy of the ith agent, which can make corresponding actions according to the state value, s i is the state value of the ith agent, ε i The action noise of the i-th agent is used to improve the agent's exploration ability.
[0213] Prioritize sampling of the most useful experience to train the agent. The usefulness of the experience is determined by the TD error |δt|. The priority of the experience is pt = |δt| + ∈, where ∈ is an infinitesimal positive number. The larger |δt| is, the higher the priority of the experience is. The probability of the experience being selected is:
[0214]
[0215] Among them, μ(t) is the sampling weight factor, which indicates the influence of priority on the sampling probability.
[0216] Then the sampled experience is summarized to update the target value y i :
[0217]
[0218] Among them, R i is the reward value of agent i, γ is the conversion factor, S′ is the state S 1 ' to state S n ′, S 1 ′ and S n ′ are the states of the first and nth agents, respectively, π φ,1 and π φ,n are the algorithm strategies of the first and nth agents respectively, ε is Gaussian noise, is the critic network, cr is the network number, according to the target value y i Update the two critic network parameters θ i,1 and θ i,2 . Thus, the action parameters, target value network and policy network parameters are updated according to the policy gradient.
[0219] If the experience pool is full, new experience is used to replace old experience according to its usefulness.
[0220] Repeat these steps N times until convergence, and train i agents to perform optimal actions.
[0221] Finally, the intelligent agent makes the best action to control the power of each charging pile and energy storage system.
[0222] The pseudo code of the MATD3 algorithm is shown in Table 1.
[0223] Table 1 Pseudocode of MATD3 algorithm
[0224]
[0225]
[0226] In a specific embodiment, the relevant indicators of the charging stations in the intra-day phase using different methods are compared, and the comparison results are as follows: Figure 7(a) , 7(b) and 7(c).
[0227] At 6-20h, the excess number of charging stations on highways without optimized charging subsidies is greater than 0, while the excess number of charging stations under optimized charging subsidies is 0. As can be seen from Table 2, the 24-hour overflow number without optimized charging subsidies is 277, and 277 electric vehicles that need to be charged cannot enter the charging station, which may cause congestion at the charging station or even stop in the emergency lane. Under the guidance of optimized charging subsidies, the 24-hour overflow number is 0, and there is no overcrowding of highway charging stations.
[0228] Table 2 Overall evaluation indicators of the intraday stage under different methods
[0229]
[0230] As can be seen from Table 2, the total income of 56,214 yuan of the method of this application is significantly greater than that of other methods, which shows that the method of this application can well regulate the orderly charging of electric vehicles and the energy storage system to increase the income of charging stations. At the same time, the self-consistency rate Spw = 96.71% of the method of this application is greater than that of several other methods, which also proves that the method proposed in this application can better utilize the regulation of electric vehicle charging and energy storage system charging and discharging to achieve self-consistency.
[0231] Among these methods, the carbon emission of the method of this application is the smallest, Ec = -16245kg, which means that the method proposed in this application achieves zero carbon emission in the station, provides clean energy to the power grid, and reduces external carbon emission by 16245kg. The results show that this application can improve the self-consistency rate of charging stations and reduce carbon emissions, reduce dependence on and pressure on the power grid, and use prices to guide the arrival rate of electric vehicles to prevent congestion at highway charging stations.
[0232] In summary, in order to address the problem of mismatch between the time dimension of "source and load", this application proposes a two-stage model of day-ahead optimization guided by price incentives and intraday optimization with flexible power adjustment. Different from the traditional day-ahead charging plan (mandatory control plan), the day-ahead stage formulates charging subsidies at various times of the day to guide users to charge in an orderly manner (efficient and reasonable use of charging resources in the station), and uses prices to guide the arrival rate of electric vehicles to prevent congestion at highway charging stations. At the same time, the load of the charging station is indirectly transferred to keep the load consistent with the power distribution of new energy; taking into account the error between the day-ahead price guidance and the actual situation during the day, the real-time optimization and control during the day conducts real-time control of the charging piles and energy storage systems to achieve the re-transfer of the load of the charging station, providing a second guarantee for the consistency of the load with the power distribution of new energy, thereby improving the self-consistency rate of the charging station and reducing carbon emissions, and reducing dependence on and pressure on the power grid. Among them, traditional optimization algorithms and heuristic algorithms are difficult to fully cope with the nonlinear non-convex real-time optimization problems of new energy charging stations. The complex multi-agent and multi-objective non-convex control problems within the station are modeled into a multi-agent multi-agent Markov game model, and the MATD3 algorithm is used to solve it, thereby improving the ability to solve intraday real-time complex optimization models under the dual uncertainties of electric vehicles and new energy power generation.
[0233] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A self-consistent optimization control method for wind, solar, storage and charging stations based on deep reinforcement learning, characterized in that: The following steps are involved: S1. Establish a traffic flow prediction model based on CNN-BiLSTM network and obtain traffic flow prediction results; S2, based on the traffic flow prediction results obtained in S1, using M / M / N sum / C queuing model calculates the charging power of the charging station; S3. Use the charging power obtained in S2 to establish a day-ahead optimization model, and use the whale optimization algorithm to solve the day-ahead optimization model to obtain a 24-hour price incentive for real-time user guidance at the charging station during the day. S4. Establish an intraday optimization model with charging pile power and battery energy storage system power as control variables, and transform the intraday optimization model into a Markov game model; S5. Use the multi-agent double-delay deep deterministic decision gradient algorithm to solve the Markov game model and obtain the power of the charging pile and energy storage system in real time.
2. The self-consistent optimization control method of wind-solar-storage-charging station based on deep reinforcement learning according to claim 1 is characterized in that: The S1 comprises the following steps: S11. Collect historical traffic flow data and perform normalization processing; S12, split 0 to 23 points into 24 groups, each group includes data from m-1 days to md days: [m-1,…,m-d] ,…,twenty three [m -1,…,m-d] , m means the traffic flow forecast for m days before the day, d means the number of historical days used; S13, establish 24 CNN-BiLSTM networks, input the 24 sets of data obtained in S12 into the corresponding CNN-BiLSTM networks, train and output the traffic flow prediction results Y tra (t).
3. The self-consistent optimization control method of wind-solar-storage-charging station based on deep reinforcement learning according to claim 2 is characterized in that: The S2 comprises the following steps: The time interval between charging users’ arrival follows a Poisson distribution with parameter λ, and the charging time follows a negative exponential distribution with parameter μ. Each charging pile is independent of each other. The probability of a user joining a queue and the probability of a user leaving a queue are: z j,t =x j,t +b j ; Among them, λ k The probability of a user joining the queue, μ k is the probability of the user leaving the queue, k is the queue leader, C is the space capacity of the charging station, N sum is the total number of charging piles, β is the sensitivity parameter, δ is the sensitivity parameter reflecting the probability of leaving, P j,t is the user's response probability to the price, and the Sigmoid function is used as its response probability model. In the Sigmoid function, z j,t Composed of stimulus price and price sensitivity, x j,t To stimulate prices, b j is the price sensitivity, a is the number of vehicles entering the charging station per 100 vehicles; The average number of charging piles in use is: Among them, p0 is the probability that the number of customers is zero, and x is the summation variable; The charging power of the charging station in each time period is: P cs (t)=N ch (t)P rated,avg ; Among them, P rated,avg is the average value of the charging pile power.
4. The self-consistent optimization control method of wind-solar-storage-charging station based on deep reinforcement learning according to claim 3 is characterized in that: The day-ahead optimization model in S3 includes an objective function and constraints; The objective function of the day-ahead optimization model is: Among them, K sum is the revenue of the charging station, E c is carbon emissions, S pw is the self-consistency rate, Q s Penalty for exceeding parking capacity. λ and ω are weight coefficients; The benefits of a charging station are: K sum =K ps +K e -C g ; Among them, K ps is the charging income, K e is the income from electricity sales, C g is the electricity purchase cost for the charging station, c r (t) is the electricity price at time t, c s (t) is the charging service fee at time t, c a (t) is the subsidy price at time t, T s is the unit time duration, T sum is the total duration, P out (t) is the power sold to the grid at time t, P g (t) is the power input from the power grid to the charging station at time t; The carbon emissions of the charging station purchasing electricity from the grid are: in, is the carbon dioxide emissions per unit of electricity; The self-consistency calculation formula is: Among them, P wind (t) is the wind power at time t, P pv (t) is the photovoltaic power at time t; The penalty for exceeding the parking capacity of the charging station is: Among them, k is the queue leader and C is the space capacity of the charging station.
5. The self-consistent optimization control method of wind-solar-storage-charging station based on deep reinforcement learning according to claim 4 is characterized in that: The constraints of the day-ahead optimization model include electric vehicle constraints, charging time constraints, and battery energy storage system constraints; The electric vehicle constraints are as follows: Among them, P ev_i (t) is the power of the ev_ith electric car at time t, P p1,min is the minimum charging power of the ultra-fast charging pile, P p2,min is the minimum charging power of the fast charging pile, P p1,rated is the rated power of the ultra-fast charging pile, P p2,rated is the rated power of the fast charging pile, R p1 For electric vehicles connected to ultra-fast charging stations, R p2 A collection of electric vehicles connected to a charging station. is the outgoing power of the ev_ith electric vehicle at time t, C ev_i is the battery capacity of the ev_ith electric car, E ev_i is the power consumption per 100 kilometers of the ev_i-th electric car, d ev_i The estimated travel distance for the next trip of the ev_i electric car; The charging time constraints are as follows: Among them, t ev_i is the charging time of the ev_ith electric car, T ev,max Maximum charging time for electric vehicles; The battery energy storage system constraints are as follows: -P es,rated ≤P es (t)≤P es,rated ; SOC es,min ≤SOC es (t)≤SOC es,max ; Among them, SOC es (t) is the SOC of the energy storage system, SOC es,min is the minimum SOC value of the energy storage system, SOC es,max is the maximum SOC of the energy storage system.
6. The self-consistent optimization control method of wind-solar-storage-charging station based on deep reinforcement learning according to claim 5 is characterized in that: The method of solving the day-ahead optimization model using the whale optimization algorithm includes the following steps: S31, initializing parameters including the size of the whale group and the position of individual whales, and setting the number of iterations to 1; S32. According to the objective function formula of the day-ahead optimization model, the fitness function of the whale algorithm is set; S33, according to the fitness function, calculate the fitness value of the individual whales, and record the current optimal whale; S34, updating the position of the whale group, calculating the whale fitness value again, and comparing it with the optimal whale; S35, determine whether the preset number of cycles is reached. If not, repeat steps S33-S34. If the preset number of cycles is reached, output the final optimization result.
7. The self-consistent optimization control method of wind-solar-storage-charging station based on deep reinforcement learning according to claim 6 is characterized in that: The S4 comprises the following steps: S41. Establish an intraday optimization model in the intraday real-time control stage. The intraday optimization model includes a control object and a control target. The control object consists of the power of each charging pile and the power of the battery energy storage system. The control target is the revenue, low carbon, self-consistency, congestion and battery loss cost of the charging pile in the intraday real-time control stage. S42. Convert the intraday real-time control problem into a Markov decision process, and expand the Markov decision process into a Markov game model, use the control object described in S1 as the action space of the Markov game model, and use the control target described in S1 as the reward function of the Markov game model; The Markov game model uses a set of multivariate groups {S1…S i …S n ,A1…A i …A n ,P,R1…R i …R n ,R g ,γ} means that {S1…S i …S n } represents the state space observed by n agents, {A1…A i …A n } represents the action space of n agents, P represents the state transition probability, {R1…R i …R n } represents the reward space of n agents, R g represents the global reward of all agents, and γ represents the reward discount factor.
8. The self-consistent optimization control method of wind-solar-storage-charging station based on deep reinforcement learning according to claim 7 is characterized in that: The Markov game model is as follows: The state space of the Markov game model is as follows: The action space of the Markov game model is as follows: The reward function of the Markov game model is as follows: Among them, R n′ (t) is the charging pile reward function, R es (t) is the energy storage agent reward function, α1, α2, α3, α4, β1 and β2 are weight coefficients, K s ' um is the charging station revenue during the day, C loss,s The cost of battery loss; The revenue of the charging station during the intraday period is: Among them, P c,n (t) is the charging power of the nth charging pile at time t, N sum is the total number of charging piles; Battery loss cost C loss,s for: Among them, c over P is the penalty cost per unit of overcharge or overdischarge of the battery. over (t) is the overcharge and overdischarge power of the battery energy storage system at time t, P es (t) is the power of the battery energy storage system at time t, c es It is the unit charge and discharge cost of the battery.
9. The self-consistent optimization control method of wind-solar-storage-charging station based on deep reinforcement learning according to claim 8 is characterized in that: The MATD3 includes multiple agents, each of which has two centralized critic networks and one actor network.
10. The self-consistent optimization control method of wind-solar-storage-charging station based on deep reinforcement learning according to claim 9 is characterized in that: The S5 comprises the following steps: S51, initialize two critic networks and one actor network for each agent, initialize the parameters of the two critic networks and the parameters of one actor network, and initialize the experience revisit pool; S52. For each agent i, take a random action A i ~π i (S i )+ε i Act on the environment, and then the environment will output a new state and reward value. i is the strategy of the ith agent, which can make corresponding actions according to the state value, S i is the state value of the ith agent, ε i The action noise of the i-th agent is used to improve the agent's exploration ability; S53. Prioritize sampling of the most useful experience to train the agent. The usefulness of the experience is determined by the TD error |δt|. The priority of the experience is pt = |δt| + ∈, where ∈ is an infinitesimal positive number. The larger |δt| is, the higher the priority of the experience is. The probability of the experience being selected is: Among them, μ(t) is the sampling weight factor, which indicates the influence of priority on sampling probability; S54, summarize the sampled experience and use it to update the target value y i : Among them, R i is the reward value of agent i, γ is the conversion factor, S′1 is the state of agent 1, S′ n is the state of the nth agent, S′ is the state from S′1 to S′ n The set of π φ,1 is the algorithm strategy of agent No. 1, π φ,n is the algorithm strategy of the nth agent, ε is Gaussian noise, is the critic network, cr is the network number, according to the target value y i Update the two critic network parameters θ i,1 and θ i,2 ; Thus, the action parameters, target value network parameters and policy network parameters are updated according to the policy gradient; S55. If the experience pool is full, new experience is used to replace old experience according to its usefulness; S56, repeat S51-S55N times until convergence, train i agents to make the best action; S57. Regulate the power of each charging pile and energy storage system based on the optimal action of the intelligent agent.
Citation Information
Cited By
Urban rail transit passenger flow control and stop scheme collaborative optimization method based on deep reinforcement learning
CN119047665A
Resource scheduling method, device and equipment for charging station
CN119561130A
Data-driven super-multi-objective optimized electric vehicle charging space-time drainage method and device
CN120338330A
Expressway light storage and charging cooperative control method based on reinforcement learning
CN121689130A
Multi-agent-based charging guiding method and device, product and storage medium
CN121756962A
