Hybrid intelligent optimization strategy of battery swapping station for electric vehicles based on reinforcement learning
수소연료전지 · (6) PEM(고분자전해질막)
기본 정보
- 저자
- DOI
- 10.1007/s43762-025-00166-0
- 저널
- Computational Urban Science
- 발행년도
- 2025
- 발행기관
- Springer Nature
- 피인용수
- 4
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1007/s43762-025-00166-0
- 토픽
- Electric and Hybrid Vehicle Technologies
- OpenAlex ID
- W4407132361
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (6) PEM(고분자전해질막)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > PEM(고분자전해질막)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 42,044자
본문 펼치기
섹션 본문 79문단 · 40,075자
(제목 없음)
1Smart transportation is an important application scenario in the field of urban computing.As the popularity of electric vehicles increases, the demand for fast charging is growing rapidly.In response to this, battery swapping stations are being proposed as a solution, but their operational efficiency is challenged by factors such as battery life, vehicle queues, and grid load management.In this paper, a mixed intelligent optimization strategy combining the proximal policy optimization (PPO) algorithm from reinforcement learning and the goat swarm optimization (GSO) algorithm is proposed.The GSO-PPO algorithm is constructed, where PPO algorithm learns the optimal scheduling strategy for the battery swapping station in a dynamic environment, and the GSO algorithm optimizes the hyperparameters of PPO and adjusts the weight of the reward function to achieve the multi-objective optimization of minimizing battery life, shortening vehicle waiting time, and efficiently managing grid load.The experimental results show that compared with random strategies and traditional PPO algorithms, GSO-PPO reduces vehicle waiting time and improves service efficiency, making the overall operation of the battery swapping station more stable.The study demonstrates the potential of combining reinforcement learning and swarm intelligence algorithms in smart energy infrastructure and solving multi-objective optimization problems.
Introduction
2Urban computing (Zheng et al., 2014) is a frontier field that solves complex problems in urban development by using technological means such as big data, artificial intelligence, and Internet of things, covering many aspects such as urban planning, transportation, and energy management.It can help cities manage resources more efficiently, optimize operation, improve the quality of life of citizens, and promote the realization of smart cities (Fan & Loo, 2021).The rapid popularization of electric vehicle (EV) is one of the typical scenarios of urban computing applications.Electric vehicle (EV) offers several advantages, including environmental protection, energy conservation, high energy efficiency, lower operating costs, and better driving experience (Wei et al., 2023;Sprei et al., 2024), which make EV highly competitive in the automotive market.In response to this, China's Ministry of Industry and Information Technology issued the New Energy Vehicle Industry Development Plan (2021)(2022)(2023)(2024)(2025)(2026)(2027)(2028)(2029)(2030)(2031)(2032)(2033)(2034)(2035), which emphasizes expanding the deployment of BSS to improve the operational efficiency of public transportation grid (Liang & Zhang., 2018).With the rapid popularization of electric vehicles, how to efficiently supplement their energy has become a key issue.The traditional charging mode faces many problems, such as long charging time, reduced battery life and high load pressure of power grid during peak periods.In contrast, BSS provides key benefits, including significantly reduced recharge times and balanced grid load, positioning them as a promising solution to these challenges.Moreover, BSS play an essential role in advancing smart city development.At present, the scheduling and optimization strategy of BSS, battery charging strategy, battery life management, BSS scale and location, and renewable energy integration are the research hotspots.How to optimize the user experience, improve the battery swap efficiency and improve the overall economic benefits has become the key issue for the BSS to achieve sustainable development.
Related work
3In the existing literature, several methodologies have been employed to optimize various problems within converter stations, including linear optimization, heuristic algorithm, reinforcement learning (RL) and mixedmethod approaches.Each of these methods is applied to optimize various problems in the BSS.Paterakis et al. (2016) controls EV charging power through mixed integer linear programming (MILP) to minimize total energy procurement cost and improve resource utilization efficiency.However, it is highly dependent on the precise setting and stability of system parameters, and it is not suitable for dynamic complex situations such as random arrival of vehicles, real-time changes of battery status and load fluctuations of the power grid in the BSS.Esmailirad et al. (2021) constructs an extended M/G/K queuing model to analyze and maximize the profits of multi-service EV charging stations.Although it can deal with uncertainty in complex systems to some extent, it often relies on specific problem structures and prior knowledge to design heuristic rules, and lacks the ability to adapt to environmental changes.Moreover, its optimization results may only be local optimal solutions, which cannot guarantee that the best performance can be achieved in all cases.Sun et al. (2019) proposes a dynamic fluid model to describe the system dynamics of an EV BSS and simulate the average value of the EV arrival process to solve optimization problems related to battery inventory control and production.The multiobjective balance is not flexible enough, and it is difficult to accurately respond to the demand changes of multiobjective conflict scenarios such as battery cost, charging waiting cost, grid load and service quality, which limits the practical application effect and universality.Tao et al. (2022) proposes an EV-oriented on-demand energy supplementary planning system, which aims to provide a variety of charging and battery swap services, and adopts hybrid recommendation algorithm and joint incentive mechanism to optimize scheduling algorithm, so as to reduce power grid load and improve overall efficiency.In terms of multi-objective balance, although it aims at reducing grid load and improving efficiency, it does not deeply explore the complex trade-off relationship between multi-objectives.
4In contrast, reinforcement learning, with its characteristics of independent learning, dynamic adaptation and flexible handling of multi-objective optimization, can break through the limitations of traditional methods when dealing with the complex, changeable and uncertain operating environment of BSS, and explore potential optimal strategies through continuous trial and error and learning.Reinforcement learning has the advantages of adapting to the environment and real-time decision making (Zhang et al., 2024), which has become a new research method for BSS scheduling, and has shown remarkable potential in BSS scheduling strategy.There have been The paper using reinforcement learning to optimize the operation efficiency and service quality of the power station by constructing Markov decision process.The two-channel heuristic strategy initialization RL method (DHPIRL method) proposed in (Asadi et al., 2021) performs better than the standard approximation iterative method and the simple heuristic benchmark strategy on large-scale problems, but this strategy cannot completely overcome the "dimensional curse" problem.Gao et al. (2020) established a BSS model considering uncertainty.The scheme based on deep deterministic strategy gradient method (DDPG) solved the operation problem of BSS under the dual uncertainty of electricity market price and demand, but discretization of continuous variables led to an increase in cost.Zhang et al. (2022a) adopts modelfree approach, constantly adjusts strategies through interaction with the environment, and adopts Monte Carlo real-time scheduling strategy optimization method to ensure more discharge benefits under the condition of service availability of BSS, which can also be continuously applied in a long time scale.Tan et al. (2023) developed a two-layer optimization algorithm based on deep reinforcement learning, which effectively dealt with uncertainty and enhanced the model's adaptability to real-time changes.Shalaby et al. (2023) introduced dual buffer depth certainty strategy gradient (DB-DDPG) and delayed dual DQN (TD3) to achieve optimal control of BSS operation, taking into account factors such as battery status, replacement time and battery aging in actual operation of BSS, so as to make the results more realistic and effective.Jin et al. (2023) integrated the optimal priority rule LDF into the near-end policy optimization (PPO), and allocated the total power of each time slot to each charging station, which greatly improved the learning efficiency and made the model converge faster.
5In addition,the training process of reinforcement learning usually requires a lot of computing resources and time, especially when dealing with complex BSS models, which may face the problem of slow or even non-convergence.Moreover, the performance of reinforcement learning algorithms highly depends on the design of the reward function.If the reward function cannot accurately reflect the actual optimization objective, the learned policy may not be optimal.
6The unique application value of reinforcement learning in the scenario of BSS lies in its ability to comprehensively consider multiple conflicting objectives and find a balance in a dynamic environment.The operation of a BSS involves multiple stakeholders, including car owners, grid operators and BSS managers, each with different needs and goals.Through continuous exploration and learning, reinforcement learning can meet the needs of car owners for fast charging and short waiting time, while taking into account battery life management and grid load balancing, so as to optimize the overall operational efficiency battery charging rates, and discusses how to take into account the overall long-term and short-term benefits of BSS.The optimization strategy based on reinforcement learning proposed in this paper achieves the purpose of replenishing batteries with different charging rates.
7Although the RL method has been skillfully applied to optimize the operation of random vehicles arriving at battery exchange stations, random electricity price research, renewable resource power generation and other problems (Fang et al., 2020;Zhang et al., 2022b;Jin et al., 2020;Jiang et al., 2021), but the procurement cost of BSS batteries is higher (Tan & Qu, 2017).So the number of batteries is always limited.Since the battery change time is usually significantly shorter than the charging time, the battery change time of electric vehicles in BSS is ignored.For the charging process of BSS, the method of not setting charging power limit or setting charging power limit for each charging slot is adopted (Liu et al., 2018;Liu et al., 2020;Wu et al., 2022).The charging power limit of a battery usually depends on its battery current, terminal voltage and SoC.This paper assumes that the SoC of the vehicle replacing the battery uses different battery charging rates, and discusses how to take into account the overall long-term and short-term benefits of BSS.The optimization strategy based on reinforcement learning proposed in this paper achieves the purpose of replenishing batteries with different charging rates.
8At present, the scheduling strategy of most BSS is not real-time, but time-sharing scheduling, which leads to the lack of correlation between the decisions of adjacent periods, and easy to produce decision shocks and other problems.In addition, due to the complexity of BSS operation management, it is easy to produce the problem of dimensional curse, and the lack of attention to user experience and satisfaction, there is no fine division of user demand for batteries, resulting in range anxiety.The existing charging strategy is not enough to balance the cost of waiting time and power demand.How to balance battery management and solve the problem of resource allocation and queue management has also become a research hotspot.The balance between these key characteristics also presents additional challenges to the design of the methods presented in this paper.
9To solve the above problems, this paper solves the problem of how to manage a small BSS by constructing a battery swap model.The BSS model makes the following contributions:
101.The model considers the charging form of EV batteries and the battery swap mode of BSS, and establishes the BSS battery swap model.On the premise of considering the operation condition of BSS, the power grid load and the battery charging type, the model matches the battery type required by the user according to the user's wishes, so as to optimize the battery charging scheme in the station.
112. Consider the impact on the power grid load and battery life, focus on long-term benefits, improve the operational efficiency of BSS, and optimize the power grid load management.
123. From the perspective of BSS decision-makers, this paper discusses how to optimize the multi-objective, balance the synergies among the conflicting objectives of user waiting time, grid load and battery life, and solve the problems faced by BSS.
13The rest of the article is as follows: In Section 3, the system model is introduced.In Section 4, the model is modeled as Markov decision process (MDP), and the corresponding relationship of each part of the model in reinforcement learning framework is clarified.In Section 5, the mathematical expression of real-time scheduling strategy for BSS is introduced.In Section 6, the effectiveness of the proposed model is verified by analyzing the simulation results in different scenarios.
Model construction
14Consider the BSS scheme model shown in Fig. 1, whose main structure consists of two-level Battery swapping platform and a power battery storage room.Twolevel Battery swapping platform respectively transfer the low-charge electric vehicle (EV) battery after battery swap operation to the power battery storage room for charging.For the sake of analysis, it is assumed that the charge of these rechargeable batteries is 20% of the full charge state (Gaton, 2023).The BSSbattery storage room is equipped with two types of charging facilities: a fast charger that can charge the battery to 80% in 1 time step, and a slow charger that requires much more than 1 time step to charge the battery to 100% (Sharma, 2024).When the battery is charged, the system will automatically disconnect the charging connection for EV battery swap use.The rate at which the charger in the power battery storage bin charges the battery can be adjusted, and the load pressure fed back to the grid changes accordingly.The two level changer stations provide a fast charging but not fully charged battery, and a slow charging but fully charged battery.Considering the limited battery and charging facility conditions, more EV battery swap needs, fast charging can reduce the battery swap waiting time of EV, and slow charging provides a fully charged battery to improve the battery swap service quality.EV owners choose to queue on the corresponding level changer platform according to actual needs, so as to obtain differentiated battery swap services.
15In the model, it is assumed that the BSS has enough chargers to provide any form of charging service for the battery.Therefore, among all the influencing factors, the number of fast charging and slow charging batteries, the number of EV to be battery swap, the willingness of EV to replace what kind of battery, and the maximum vehicle length allowed to queue are the main considerations, which will affect the battery swap service efficiency of BSS and the satisfaction of customers.Of course, BSS to charge the battery will correspondingly bring pressure to the power grid, how to cut the peak and fill the valley is also worth studying.Unlimited full charging not only consumes more time, but also has irreversible damage to the life of each battery (Department of Energy Conservation and Comprehensive Utilization, 2023), which will bring more maintenance costs to BSS.How to optimize operation services and improve benefits of BSS is also the direction discussed in this paper.
16Sample body text.
Algorithm description
17In this paper, reinforcement learning method is used to optimize the battery swap models.Reinforcement learning is a method of machine learning, which mainly includes elements such as agent, environment, state, action, reward and policy.In reinforcement learning, an agent interacts with an environment by choosing an action in its current state, and the environment feeds back a reward and updates the state based on that action.The goal of the agent is to maximize the cumulative reward by learning a policy.In this process, the agent needs to balance the relationship between "exploration" and "exploitation", that is, when discovering strategies with potential higher rewards, the agent does not ignore the existing high-reward options (Sutton et al., 2018;Otterlo et al., 2012, Szepesvári et al., 1996).As an advanced reinforcement learning algorithm, PPO has excellent ability to adapt to dynamic environment and real-time decision making.It is able to constantly learn and adjust strategies through interaction with the environment to maximize cumulative rewards.In the complex operating environment of BSS, PPO can quickly make reasonable charging strategy decisions based on real-time vehicle arrival, battery status and grid load information, effectively shorten vehicle waiting time and improve service efficiency of BSS.For example, during peak hours, the PPO can dynamically select the appropriate charging power and battery replacement sequence based on vehicle queue length and battery remaining power to optimize the overall operating process.
18However, when PPO deals with complex multi-objective optimization problems, the selection of hyperparameters has a great impact on the performance of the algorithm, and it is difficult to find the optimal hyperparameter combination through its own mechanism.At this time, the advantages of Goat Swarm Optimization (GSO) (De, 2023) are reflected.GSO is an optimization algorithm based on swarm intelligence, which simulates the behavior of goat group foraging, and can find the best solution in the complex search space through the information exchange and cooperation between the groups.GSO algorithm has a powerful global search ability in optimizing hyperparameters, and can explore a wider parameter space to find a more suitable combination of hyperparameters for PPO, thereby improving the performance of PPO.
19Figure 2 shows how optimal control of BSS operations can be achieved by combining Proximal Policy Optimization (PPO) and Goat Swarm Optimization (GSO), known as GSO-PPO.The specific part is as follows: the state space is a set of all possible conditions describing the BSS and its environment.In this paper, the state can include the following six variables: the number of batteries in the current full battery queue, the number of batteries in the current partially charged battery queue, the number of vehicles in the current waiting queue, the number of batteries in the current charging queue, the number of vehicles in the current exchange queue, and the number of current time steps.The action space defines all the possible actions that the BSS can take.The BSS can take different actions (0 slow charge, 1 standard, 2 fast charge, 3 super fast charge) and charge with different powers to meet the requirements of battery swap.The reward function is a key indicator used to guide BSS to optimize operational efficiency, economic benefit and service quality in reinforcement learning, and helps to learn the optimal strategy by quantifying the immediate effect of each action.The reward function in this paper guides BSS to optimize the following aspects: reducing vehicle waiting time, optimizing battery charging rate, optimizing grid load, balancing queue resources, and extending battery life.In the BSS scheduling model in this paper, PPO is used to learn and optimize scheduling strategy in real time.PPO can adapt to dynamic demand changes in the complex BSS scheduling environment and optimize scheduling decisions in real time.The policy neural network consists of three fully connected layers.In the model construction, Bayesian optimization was used to optimize the hyperparameters.First, the value range of the number of neurons at each layer is defined and the multi-objective comprehensive evaluation such as the average waiting time of vehicles is taken as the objective function.A Bayesian model such as the Gaussian process model is constructed to describe the relationship between the hyperparameters and the objective function.The model is updated through the iterative sampling evaluation of the calculation of expected improvement, and the model is trained and evaluated according to the prior distribution.Until the stop criteria are met, the final number combination of neurons that makes the model perform optimally (or nearly optimally) in the battery replacement station scheduling task is determined (128,64,4).First of all, the state information of BSS is relatively complex, including the number of battery queues, vehicle queues, grid loads and time steps.We hope that the neural network can fully capture the complex relationship between these information, so we choose a network structure with a certain complexity.The first layer of 128 neurons is set up in order to be able to learn and represent these complex state information broadly at the initial stage.As information moves through the network, a second layer of 64 neurons is set up to further extract and refine features to reduce redundant information and focus on key features to better guide strategic decisions.The last layer is equipped with 4 neurons corresponding to four charging strategies of the BSS (slow charge, standard charge, fast charge, super fast charge) in order to output a suitable action probability distribution.In the scheduling optimization of BBS in this paper, GSO combined with reinforcement learning ability enables BSS to flexibly select the best charging power and scheduling scheme according to the current battery inventory, vehicle demand and grid load, so as to ensure more reasonable battery allocation and efficient utilization of charging resources, providing an innovative and effective solution for multi-objective balancing of scheduling strategies.
Mathematical expression of optimization strategy of battery swapping station
20The research on the optimal strategy of BSS firstly describes the logical rules of state transition after the interaction between state and environment, and then describes the specific calculation process of reward function according to the parameters of each part of BSS.
State transition of the battery
21Suppose we have the following state variables: F t denotes the number of fully charged batteries at time t.P t denotes the number of unfully charged batter- ies at time t.W f ,t denotes the number of vehicles wait- ing for a full battery at time t.W p,t denotes the number of vehicles waiting for an uncharged battery at time t.C t denotes the number of batteries in charge at time t.S t denotes the number of batteries that are being bat- tery swap at time t.
22The following equation describes the battery transition between different states: Update expression for the number of fully charged batteries:
23Where, S f ,t denotes the number of batteries taken from the fully charged battery queue at time t.C t denotes the number of batteries that are fully charged at time t.Update expression of the number of unfully charged batteries:
24Where, S p,t denotes the number of batteries taken from the unfully charged battery queue at time t.C partial f ,t denotes the number of batteries that become undercharged at time t.
25The number of batteries in charge is expressed as follows:
26Where, S f ,t and S p,t denote the number of batteries taken for recharging from the vehicles on the full and unfull battery queues, respectively.C full f ,t denotes the number of partially charged batteries that are full at time t.C partial f ,t denotes the number of batteries that change from fully charged to partially charged at time t.
Service capacity
27Service capacity usually refers to the total number of vehicles successfully served by the BSS during a specific period of time.It can be expressed by the following formula:
28Where, N served denotes the number of vehicles success- fully served during the time period.η service denotes the service efficiency.N arrived denotes the total number of vehicles arriving during the time period.
29(1)
Vehicle waiting time
30The waiting time of the vehicle refers to the time interval from the arrival of the vehicle at the BSS until it begins to be served.The average wait time can be expressed as:
31Where, T avg wait denotes the average waiting time.
32wait denotes the waiting time of the ith vehicle.N served denotes the number of vehicles successfully served during the time period.
Damage quantification of battery life
33The DoD (Deep of Discharge) and Crate (Charge rate) of the battery in the aging test were quantified by the following formula (Li et al., 2022):
34Where, SoC 0 and SoC d are the initial and final SoC values of the battery in the investigated discharge cycle, respectively.Since discharge is not considered in the model in this paper, there is no active selection of discharge feedback to the grid.Therefore, it is assumed that the vehicle is used to 20% after the battery is replaced, and then the next battery swap is carried out.When the average SoC surplus of the vehicle is 20%, the battery swap is carried out at the BSS.
35For the case of charging to full power (full charged queue):
36For the case of 80% charging state (unfully charged queue):
37The charging rate (Crate) is still calculated by dividing the charging power by the rated capacity of the battery:
38Where SoC 0 is the initial power state, P c harge is the charging power, and Q b at is the rated capacity of the bat- tery.Using Eqs. ( 10) and ( 11) in the article to adjust, only considering the effect of charging rate: Eq. ( 10) is used to describe the battery cycle life at different depths of discharge:
39(5)
40Equation ( 11) is used to describe the battery cycle life correction factor at different charging rates: Equation ( 12) is used to quantify the battery life loss under different depth discharge and charging rates.The quantification of battery life loss is as follows:
Grid load
41The grid load L grid is defined as the total load of the grid in the charging process, which can be expressed as follows:
42Where N is the number of batteries charged at the same time.P (i) charge is the charging power of the ith battery.To integrate the grid load into the optimization objective, a new penalty term can be introduced.
Integrated optimization objectives
43The charging strategy was optimized by combining the user waiting time and the target power demand.User satisfaction can be defined as a combination of waiting time and target charging amount:
44Where α and β are weighting factors, T wait is the waiting time, T max is the maximum waiting time, and SoC target is the target charging state.Considering both battery life loss and user satisfaction, the optimization objective can be expressed as follows:
45Where δ and γ are the weighting factors to balance battery life loss and user satisfaction.µ is a weight factor used to balance the impact of grid load on the overall target.In this way, battery life, user satisfaction and grid load can be considered at the same time when optimizing the charging strategy, so as to find a balance point and achieve the overall optimal BSS battery charging strategy.
46(11
Experiments analysis
47In order to verify the effectiveness of the scheduling strategy proposed in this paper, the following experiments are designed: Comparison group: ① The model adds the comparison of PPO, DQN and random strategy (randomly select the charging power for battery charging), to see whether the PPO has superiority and robustness compared with the other two strategies.② The Goat Swarm Optimization is used to find the optimal reward function weight ratio (GSO-PPO vs. PPO) to see if the balance of several contradictory objectives is achieved, including service efficiency, customer satisfaction, battery life, and grid load, and whether there is an improvement in some aspect.
Experimental setup for different strategies
48In this paper, a small BSS is selected as an example, and the following assumptions are made: ① Only EV batteries are charged in the BSS, without discharging operation; ② The remaining EV power of battery swap at the station is 20% by default; ③ The required time for EV battery swap replacement is ignored, so the actual average waiting time is the average waiting time in the queue; ④ The number of EVs arriving at the BSS at each time step is a random variable of the Poisson distribution P ( ). ⑤ The initial number of batteries is fixed to a total of N, respectively N/2 fully charged batteries and N/2 uncharged batteries for battery swap.⑥ The initial willingness to choose is P, and P changes as the queue changes.
49The specific parameters of the BSS and the probability distribution of the number of EV arriving at the station are shown in the following Table 1.
50In order to balance the influence of different optimization objectives, the experiment adjusted each weight appropriately, so that different factors could play a role in the same order of magnitude.By weight adjustment, the effects of battery life, user waiting time, and grid load are kept within reasonable limits and given proper attention in the same optimization process.
Battery selection method
51When the BSS receives the action command, the power battery bin will select the action according to the situation.Similarly, the charging power is the same and its SOC is different, which also affects the battery charging time.
52(1) Reinforcement learning action space The selection action of reinforcement learning mode is which action the BSS takes (0 slow charge 1 Standard 2 fast charge 3 super fast charge) to charge at different powers.
53(2) Random strategy Random strategy refers to the random selection of the action that needs to be charged by the battery exchange station after receiving the battery charging instruction.
54For the policy network update, PPO was used, the learning rate was set to 0.001, the discount factor was set to 0.99, the number of rounds of optimization was 100, the pruning parameter was 0.15, and the weight attenuation was 0.01.The other hyperparameters are the default values in the table.
55The maximum number of iterations is chosen to be 500 for training, and the average training reward function of the trajectory is shown in Figure .In order to better present the trend of the reward function change, the noise can be smoothed and the moving average reward can be set.
56The maximum number of iterations is chosen to be 500 for training, and the average training reward function of the trajectory is shown in Figure .In order to better present the trend of the reward function change, the noise can be smoothed and the moving average reward can be set.
57From Fig. 3, we can see how the reward function changes for the PPO policy (blue curve) and the DQN policy (green curve) random policy (orange curve) when the number of batteries N=30:
58The reward of PPO policy increases rapidly from the beginning and shows the best performance almost from the beginning.After about 100 rounds, the rewards of the PPO policy tend to stabilize, and although there are still some small fluctuations in the later stage, they generally remain at a high level.
Parameters Value
59Initial power SoC (of total power) 20%
60The arrival rate of the vehicles There are 3, 5, and 7 vehicles in the time division PPO can adjust the policy stably and explore and exploit the environment effectively.The PPO strategy is able to find the optimal or near-optimal policy and thus outperforms the other two strategies in the long run.DQN performs action selection through Q-value network and is good at learning in discrete action space.DQN performs better than random policies in complex tasks, but it often requires more training time to achieve optimal performance because it relies on Q-network updates and experience replay.Random strategies do not effectively explore optimal strategies and perform poorly in the long run because they do not have a clear optimization direction and rely entirely on random selection.The PPO policy performs the best among all policies and converges to the highest reward value, which proves that PPO can effectively learn the optimal or near-optimal policy in the environment.
61The comparison of error bar chart of average queuing waiting time is shown in Fig. 4. The blue, orange, and green bars represent the PPO policy, random policy, and DQN policy, respectively.The figure shows that the average waiting time of the PPO policy is very low, and the bars show that it is around 0.05.The error bars show that the fluctuation range of PPO strategy is also very small, which indicates that PPO strategy can not only effectively reduce the waiting time, but also its performance is relatively stable and does not change much in multiple experiments.PPO has the best performance in the optimization of waiting time, the shortest average waiting time, and stable performance with small error.The random strategy cannot effectively optimize the waiting time because the actions are chosen completely at random, and its performance is extremely unstable, and the variance of the average waiting time is very large.Although DQN does not show the optimal waiting time like PPO, it can still effectively reduce the waiting time, and its performance is stable, and it is much better than the random strategy.Taken together, the average waiting time of PPO strategy is the lowest and the most stable, indicating that it is the most effective strategy among the three.
The basic principle of GSO
62The principle of the GSO is based on the information exchange and location update mechanism between individuals (goats) in the population.During algorithm initialization, a certain number of individuals are randomly generated, each representing a set of possible solutions.In a BSS scheduling scenario, for example, representing different combinations of hyperparameters or reward function weight Settings.Each individual has a position vector and a fluorescein value, which reflects the quality or fitness of the individual's current position.When an individual moves in the search space, it will adjust its moving direction and step size according to its own fluorescein value and the fluorescein value of neighboring individuals.Specifically, individuals tend to move toward neighboring individuals with higher fluorescein values (indicating better solutions), and are also influenced by their own historical optimal location.In this way, the individuals in the group constantly influence and collaborate with each other, and gradually converge towards the region where the global optimal solution resides.In the BSS scheduling scenario, the individual position vector can correspond to the hyperparameters of PPO (such as learning rate, discount factor, etc.) or the weight parameters in the reward function.Through the iterative optimization process of GSO algorithm, the parameter combination that makes the overall performance of the BSS optimal can be found.
63Compared with PSO, (De, 2023) GA, LOA and other algorithms, GSO has unique advantages in dealing with multi-modal optimization problems with singularity regions such as BSS.In related studies, the standard deviation of optimal design variable of GSO is higher (0.841837E-06), indicating that it is more flexible.In the face of singularity region (such as battery state change, system resource limit and other special points), GSO's jumping strategy can be effectively explored, while other algorithms may fail.For example, when the battery SOC approaches the extreme value or the service facilities reach the limit, GSO can find a better solution through individual special mobility.When optimizing the scheduling strategy of the BSS, it can better balance multiobjectives, adapt to complex environmental changes, and achieve efficient and stable operation.
Parameter setting of the example
64The GSO-PPO is set as follows:
65Initial position weights are set: battery life (delta weighs) is between 800 and 1200, and waiting time (gamma weights) is between 0.5 and 1.5, which are positive to minimize waiting time.The grid load has a negative weight (mu weights) ranging from −0.05 to −0.01, which is used to minimize the load.The velocity vector of each goat is randomly generated between −1 and 1 to control its movement toward the global and its own best position.
66Optimization parameters: The number of iterations is set to 5, the population size is 30, and in the learning rate parameters, the cognitive coefficient alpha is 0.1 and the social coefficient beta is 0.7.The initial stock N of batteries is 30.
Example implementation process
67The position of each goat is evaluated by an evaluation function, and the fitness value is calculated based on three objective functions: battery life damage, waiting time, and grid load.The goal of GSO is to find the optimal combination of these weights such that the loss of each objective is minimized, so as to achieve the overall balance.
68Figure 5 illustrates the distribution of the weight optimization, where each partition in the figure represents the proportion of contribution of different goats to the overall solution during the optimization process.Goat 11 has a contribution of 4.6%, which is the largest contribution of all goats.It means that the Pareto solution found by it is relatively excellent, conforms to the requirements of multi-objective optimization, and achieves a good balance between the three objectives.The corresponding optimal parameters (weights δ=1183.1792,weights γ =0.6637, weights µ =−0.0484, taken four decimal places) were found.The optimal solution was found under this parameter, and the specific comparison with PPO is as follows:
69Table 2 shows that the service capacity of GSO-PPO is 3.5565, which is slightly higher than the service capacity of PPO of 3.5505.The average waiting time of GSO-PPO is 0.0185, while the average waiting time of PPO is 0.0204.This shows that the GSO-PPO can not only improve the service capability of BSS, but also better optimize the battery swap experience of users, so that the BSS can be improved in terms of efficient operation and user satisfaction.
70GSO-PPO uses the GSO to externally optimize the weight parameters in the reward function, so as to find a suitable combination of parameters.In the table, the reduction in waiting time means that the combination of weights found by GSO can better solve the problem of queuing optimization and also achieve a better balance.
Conclusion
71In this paper, a model is proposed to classify the batteries of BSS according to the demand, and the real-time scheduling optimization strategy of BSS for electric vehicles is based on the reinforcement learning PPO.The optimal parameters are found through GSO and the effectiveness is verified by detailed experiments.The conclusions are as follows:
721. Improve operation efficiency.Experimental results show that the scheduling strategy based on PPO significantly optimizes service efficiency and vehicle queuing time, and improves the overall operation efficiency of BSS.
732. The algorithm based on GSO enhances the service capability.This strategy can find the best balance point among multiple objectives, balance the weights among several contradictory objectives, and improve the service capability and overall service quality of BSS.
743. The scheduling strategy based on GSO-PPO shows strong environmental adaptability and dynamic scheduling ability, and can operate stably in various situations.By optimizing the expected long-term reward of the policy, the GSO-PPO is suitable for application scenarios that need to balance long-term benefits (such as battery life and user satisfaction) with short-term benefits (such as fast charging to meet immediate demand).
75This research, which combines deep reinforcement learning and swarm intelligence optimization algorithms (GSO), is not only significant for improving the operational efficiency of electric vehicle infrastructure, but also promotes the deep integration of artificial intelligence and urban computing.
Fig. 1
76Fig. 1 Battery swapping station structure
Fig. 2
77Fig. 2 Reinforcement learning structure of battery swapping station
Fig. 3
78Fig. 3 Graphs of the reward function for the three strategy methods
Fig. 5
79Fig. 5 Distribution of optimal solutions of goat swarm optimization
참고문헌 26건
- Reinforcement Learning and Markov Decision Processes Adaptation, learning, and optimization · Springer Nature · 2012 10.1007/978-3-642-27645-3_1
- Generalized Markov Decision Processes: Dynamic-programming and Reinforcement-learning Algorithms 1996
- Coordinated Operation of a Neighborhood of Smart Households Comprising Electric Vehicles, Energy Storage and Distributed Generation IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2016 10.1109/tsg.2015.2512501
- Optimal Scheduling of Battery Charging Station Serving Electric Vehicles Based on Battery Swapping IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2017 10.1109/tsg.2017.2764484
- Battery swap pricing and charging strategy for electric taxis in China Energy · Elsevier BV · 2018 10.1016/j.energy.2018.01.082
- Distributed Operation Management of Battery Swapping-Charging Systems IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2018 10.1109/tsg.2018.2880449
- Optimal battery purchasing and charging strategy at electric vehicle battery swap stations European Journal of Operational Research · Elsevier BV · 2019 10.1016/j.ejor.2019.06.019
- Dynamic Pricing for Electric Vehicle Extreme Fast Charging IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2020 10.1109/tits.2020.2983385
- Deep Reinforcement Learning Based Optimal Schedule for a Battery Swapping Station Considering Uncertainties IEEE Transactions on Industry Applications · Institute of Electrical and Electronics Engineers · 2020 10.1109/tia.2020.2986412
- Operation Management of Multiregion Battery Swapping–Charging Networks for Electrified Public Transportation Systems IEEE Transactions on Transportation Electrification · Institute of Electrical and Electronics Engineers · 2020 10.1109/tte.2020.3001400
- Optimal Policy Characterization Enhanced Actor-Critic Approach for Electric Vehicle Charging Scheduling in a Power Distribution Network IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2020 10.1109/tsg.2020.3028470
- A stochastic scheduling, allocation, and inventory replenishment problem for battery swap stations Transportation Research Part E Logistics and Transportation Review · Elsevier BV · 2021 10.1016/j.tre.2020.102212
- An Extended M/M/K/K Queueing Model to Analyze the Profit of a Multiservice Electric Vehicle Charging Station IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2021 10.1109/tvt.2021.3063887
- Street life and pedestrian activities in smart cities: opportunities and challenges for computational urban science Computational Urban Science · Springer Nature · 2021 10.1007/s43762-021-00024-9
- Data-Driven Coordinated Charging for Electric Vehicles With Continuous Charging Rates: A Deep Policy Gradient Approach IEEE Internet of Things Journal · Institute of Electrical and Electronics Engineers · 2021 10.1109/jiot.2021.3135977
- Data-driven on-demand energy supplement planning for electric vehicles considering multi-charging/swapping services Applied Energy · Elsevier BV · 2022 10.1016/j.apenergy.2022.118632
- State of power estimation of power lithium-ion battery based on an equivalent circuit model Journal of Energy Storage · Elsevier BV · 2022 10.1016/j.est.2022.104538
- A Deep RL-Based Algorithm for Coordinated Charging of Electric Vehicles IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2022 10.1109/tits.2022.3170000
- Evaluating Environmental Benefits from Driving Electric Vehicles: The Case of Shanghai, China SSRN Electronic Journal · Social Science Electronic Publishing · 2022 10.2139/ssrn.4199827
- Bi-level optimization of charging scheduling of a battery swap station based on deep reinforcement learning Engineering Applications of Artificial Intelligence · Elsevier BV · 2022 10.1016/j.engappai.2022.105557
- The goat search algorithms Artificial Intelligence Review · Springer Science+Business Media · 2022 10.1007/s10462-022-10341-y
- Aging Mitigation for Battery Energy Storage System in Electric Vehicles IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2022 10.1109/tsg.2022.3210041
- Optimal Priority Rule-Enhanced Deep Reinforcement Learning for Charging Scheduling in an Electric Vehicle Battery Swapping Station IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2023 10.1109/tsg.2023.3250505
- Model-Free Dynamic Operations Management for EV Battery Swapping Stations: A Deep Reinforcement Learning Approach IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2023 10.1109/tits.2023.3264437
- Mental models guide electric vehicle charging Energy · Elsevier BV · 2024 10.1016/j.energy.2024.130430
- A survey on applications of reinforcement learning in spatial resource allocation Computational Urban Science · Springer Nature · 2024 10.1007/s43762-024-00127-z