Electric micro travel vehicle battery swap station recommendation and charge and discharge scheduling collaborative optimization method and system

Through the multi-agent level deep reinforcement learning algorithm, the battery swap station recommendation and charge and discharge scheduling model is constructed, which solves the problem of uneven resource utilization of battery swap stations and the spatiotemporal heterogeneity of user needs, realizes the collaborative optimization of battery swap stations, and improves energy utilization efficiency. and user experience.

CN118735043APending Publication Date: 2024-10-01SOUTHEAST UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410745609.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The traditional power swap model leads to uneven utilization of power swap station resources and spatiotemporal heterogeneity of user power swap needs, resulting in insufficient service capabilities or idle resources. In a Battery to Grid environment, the battery capacity of a single power swap station is limited, making it difficult to achieve effective collaboration. optimization.

Method used

A multi-agent hierarchical deep reinforcement learning algorithm is used to build a battery swap station recommendation model and a charge and discharge scheduling model for electric micro-mobility vehicles, optimizing the total time cost and operating income of battery swaps, and realizing swapping through the Markov decision-making process of macro and micro time steps. Collaborative optimization between power stations.

Benefits of technology

It improves energy utilization efficiency, optimizes cost management, enhances system stability and user experience, improves the operating efficiency and user satisfaction of battery swap stations, and has good scalability and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735043A_ABST
    Figure CN118735043A_ABST
Patent Text Reader

Abstract

The invention discloses an electric micro-trip vehicle battery swap station recommendation and charge and discharge scheduling collaborative optimization method and system. The method comprises the following steps: acquiring electric micro-trip vehicle battery swap station data and electric micro-trip vehicle operation data; constructing an electric micro travel vehicle battery swap station recommendation model; constructing a charging and discharging scheduling model of the battery swap station; constructing a partially observable Markov decision process; a multi-agent-based hierarchical depth gradient algorithm is constructed, and the comprehensive scheduling problem of charging and discharging scheduling and recommendation service of the battery swap station is solved. According to the method, a micro-level battery swap station recommendation model and a macro-level battery swap station charging and discharging scheduling model of the electric micro travel vehicle are respectively constructed, collaborative optimization of battery swap station service is realized through a multi-agent level deep reinforcement learning algorithm, and powerful support is provided for development of electric vehicle battery swap service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a comprehensive dispatching optimization method for electric micro-mobility vehicle battery swap stations, and in particular to a collaborative optimization method for battery swap station recommendation and charge and discharge scheduling, belonging to the field of urban transportation technology. Background Art

[0002] With the popularity of electric micromobility vehicles (EMV), battery swap stations, as one of its important charging infrastructures, are becoming an important support for urban travel. However, the traditional battery swap model has some challenges, such as limited range of electric vehicles and long charging time, which limit the further popularization and use of electric vehicles. In order to solve these problems, a new charging mode, namely the battery swap mode, has been proposed in recent years, that is, electric vehicles with exhausted batteries drive into the battery swap station and replace the batteries with fully charged batteries to achieve rapid energy replenishment and ensure the continuous travel of electric vehicles. Compared with the traditional charging method, the battery swap mode is more efficient and flexible, so it has been valued and promoted by the government and industry. However, there are some problems with the current battery swap mode, such as uneven resource utilization between battery swap stations and spatiotemporal heterogeneity of user battery swap demand. The traditional disordered battery swap mode leads to resource competition between battery swap stations, resulting in insufficient service capacity of some battery swap stations during peak hours, and idle resources during off-peak hours. Therefore, how to achieve coordinated optimization between battery swap stations and improve the overall operational efficiency and benefits of battery swap stations has become an urgent problem to be solved. At the same time, with the development of battery technology in battery swap stations, the concept of battery to grid (B2G) has gradually become a reality. In a B2G environment, battery swap stations can not only provide battery swap services for electric vehicles, but also transfer the electric energy stored in the battery back to the grid to achieve additional benefits. Although the battery capacity of a single battery swap station is limited, the benefits brought by the B2G model will be considerable if the battery swap station network in the region operates in coordination. Summary of the invention

[0003] Purpose of the invention: The operation and management of battery swap stations for electric micro-mobility vehicles faces a series of challenges and opportunities. The purpose of the present invention is to propose a method and system for collaborative optimization of battery swap station recommendation and charge and discharge scheduling for electric micro-mobility vehicles, respectively construct a battery swap station recommendation model at the micro level for electric micro-mobility vehicles, and a charge and discharge scheduling model for battery swap stations at the macro level, and through a multi-agent hierarchical deep reinforcement learning algorithm, realize the collaborative optimization of battery swap station services, and provide strong support for the development of electric vehicle battery swap services.

[0004] Technical solution: To achieve the above-mentioned invention purpose, the present invention provides a method for collaboratively optimizing the recommendation of battery swap stations and charge-discharge scheduling for electric micro-mobility vehicles (electric micro-mobility vehicles mainly refer to electric bicycles, electric mopeds and electric scooters, which can be divided into private electric vehicles and delivery electric vehicles according to their functions. The present invention includes battery swap stations for two types of vehicles. Hereinafter, electric micro-mobility vehicles are also referred to as electric vehicles). Specifically, the method comprises the following steps:

[0005] Obtain data on battery swap stations for electric micro-mobility vehicles and operation data of electric micro-mobility vehicles;

[0006] Construct a recommendation model for battery swap stations for electric micro-mobility vehicles. The model optimization goal is to minimize the total time cost of battery swapping for electric vehicles, including detour time and waiting time costs, and consider the penalty for battery swap failure;

[0007] Construct a charging and discharging scheduling model for battery swap stations. The optimization goal of the model is to maximize the operating revenue of the battery swap station considering the battery state conversion, including the difference between the revenue generated when the battery swap is successful and the revenue generated when the battery is discharged and the penalty for the charging cost and the number of charging and discharging state conversions.

[0008] Construct a partially observable Markov decision process with multiple macro time steps and micro time steps. Each battery swap station acts as an independent agent. When the macro time step is turned on, it observes the current environmental state and takes corresponding charging and discharging scheduling actions. When there is a demand for battery swapping, it enters the micro time step control process. Some activated battery swap station agents continue to observe the current environmental state and make actions to recommend battery swapping values.

[0009] Based on a multi-agent hierarchical deep reinforcement learning algorithm, the comprehensive scheduling problem of charging and discharging scheduling and recommendation services of battery swap stations is solved, and the coordinated optimization of macro charging and discharging scheduling and micro battery swap recommendation actions is achieved.

[0010] Preferably, the optimization objective of the electric micro-mobility vehicle battery swap station recommendation model is expressed as:

[0011] Total cost t,τ =Cost detour,t,τ +Cost wait,t,τ +Penalty fail,t,τ +Penalty threshold,t,τ

[0012] Among them, Total cost t,τ Cost is the total cost. detour,t,τ and Cost wait,t,τ They represent the time value cost of detour time and waiting time, Penalty fail,t,τ and Penalty threshold,t,τare the penalties for battery replacement failure and waiting time exceeding the threshold, respectively. The subscripts t and τ mark the macro time step and micro time step, respectively.

[0013] Preferably, the constraints of the electric micro-mobility vehicle battery swap station recommendation model include the nearest station selection constraint, the battery swap recommendation value maximization constraint, the battery capacity constraint of the battery swap station, and the battery swap service effectiveness constraint, which are respectively expressed as:

[0014] Closest site selection constraint

[0015] A=argmin j∈S,|A|=n D(i, j)

[0016] Constraints on maximizing the recommended value of battery swapping

[0017] j * = argmax j∈A R(j)

[0018] Battery capacity constraints of battery swap stations

[0019] C≥D lock

[0020] Constraints on the effectiveness of battery swapping services

[0021] E b ≥E th %

[0022] Where A is the set of n nearest battery swap stations determined based on the distance to the location where the electric vehicle battery swap is required; D(i, j) represents the distance from the location where the electric vehicle battery swap is required to the battery swap station j, S represents the set of all battery swap stations, and n is the number of the nearest battery swap stations; j * is the battery swap station with the maximum recommended battery swap value selected from these stations, R(j) represents the recommended battery swap value of battery swap station j; C represents the total battery capacity of the battery swap station, D lock Indicates the scheduled battery replacement demand; E b Indicates the real-time power of the recommended battery when replacing the battery. In order to ensure the user's satisfaction with the battery replacement, it is necessary to ensure that the power of the recommended battery at least reaches the predetermined threshold E th %.

[0023] Preferably, the optimization objective of the battery swap station charging and discharging scheduling model is expressed as:

[0024] Revenue swapping,t =P servtce,t ×N swapping,t

[0025] Cost charging,b,t =Price electricity,t ×P t,b ×η ch×Δt ifP t,b >0

[0026] Revenue discharging,b,t =Price electricity,t ×|P t,b |×η dis ×Δt if P t,b <0

[0027]

[0028] Among them, Revenue swapping,t represents the revenue generated when the battery is successfully replaced, B is the total number of batteries; P service,t is the battery replacement service fee, N swapping,t Cost is the number of successful battery swaps, which is counted after each macro time step t. charging,b,t Revenue is the cost of charging batteries at the battery swap station. dischargin,b,t The revenue from the battery of the battery swap station discharging to the grid, Price electricity,t is the electricity price at time step t, P t,b is the charge and discharge power, Δt is the duration of the macro time step, η ch and η disc The efficiency of charging and discharging power is defined respectively; Penalty transitions,t is an additional penalty due to excessive state transitions; Total Revenue t The overall operating income of the battery swap station.

[0029] Preferably, the constraints of the battery swap station charge and discharge scheduling model include the SOC boundary of the battery, ensuring that each battery operates within a safe charge and discharge range, and limiting the number of battery state transitions.

[0030] As a preference, in the partially observable Markov decision process, the observation o of each intelligent agent of the power station in the macro time step is i,t,macro is a combination of a series of features, including the features at the swap station level and the battery level. The features at the swap station level include electricity price information, battery status and quantity, battery status conversion times and battery swap demand information. The features at the battery level include the power, status, expected full time and charging and discharging history information of each battery. The observation o of the micro-time step agent i,t,τ,micro There is m*n a dimensions, m represents the number of features, n a Indicates the number of activated battery swap stations. The characteristics of each activated battery swap station include detour distance, battery status and quantity, and battery swap demand within a preset time in the future.

[0031] Preferably, in the partially observable Markov decision process, for actions, in the macro time step, the action of the battery swap station is to determine the charging and discharging power of each battery; for each battery at each station, its action is represented by a continuous power value, ranging from discharge to charging, and the power value of no operation is 0; the micro time step occurs within the macro time step, and for each specific battery swap demand, each battery swap demand is regarded as a micro decision event, and the system needs to start from the activated n a The recommended value is a continuous variable reflecting the priority of selecting each activated station.

[0032] Preferably, the multi-agent hierarchical deep reinforcement learning algorithm adopts the multi-agent hierarchical deep deterministic policy gradient H-MADDPG algorithm, which combines the framework of centralized training and distributed execution CTDE. Each agent is equipped with two dedicated macro and micro actor networks, which are used to guide the effective execution of macro charging and discharging scheduling and micro battery replacement recommendation actions respectively. All agents share these two macro and micro critic networks.

[0033] A computer system includes a memory, a processor, and a computer program / instruction stored in the memory and executable on the processor. When the computer program / instruction is executed by the processor, the steps of a method for collaboratively optimizing electric micro-mobility vehicle battery replacement station recommendation and charge and discharge scheduling are implemented.

[0034] A computer program product includes a computer program / instruction, which, when executed by a processor, implements the steps of a method for collaboratively optimizing electric micro-mobility vehicle battery replacement station recommendation and charge and discharge scheduling.

[0035] Beneficial effects: Compared with the prior art, the present invention has the following advantages:

[0036] (1) Improve energy efficiency: By co-optimizing battery swap station recommendations and charge and discharge scheduling, the present invention can more effectively manage the energy flow of the battery, including the charging of the battery by the grid (G2B), the discharge of the battery to the grid (B2G), and the process of the battery swap station providing fully charged batteries for electric bicycles. This significantly improves energy efficiency and reduces energy waste.

[0037] (2) Optimize cost management: Through intelligent decision-making, the present invention enables battery swap stations to charge when electricity prices are low and discharge when electricity prices are high, thereby minimizing costs. This not only reduces the operating costs of battery swap stations, but also brings additional benefits to battery swap stations through the B2G model.

[0038] (3) Enhanced system stability: The application of a multi-agent hierarchical reinforcement learning framework enables each battery swap station to make independent decisions based on real-time conditions while also achieving collaborative work at the macro level. This distributed decision-making mechanism enhances the stability and robustness of the entire battery swap network system.

[0039] (4) Improve user experience: Through the battery swap recommendation strategy, the present invention can ensure that users can obtain fully charged batteries in a timely manner, reduce waiting time, and thus improve user experience. At the same time, due to the optimization of charging and discharging scheduling, the battery swap station can provide services more stably, further enhancing user satisfaction.

[0040] (5) Scalability and flexibility: The method proposed in this invention has good scalability and flexibility, and can be easily expanded to a larger-scale battery swap network. At the same time, it can also adapt to changes in different electricity price mechanisms, battery swap demands, etc., providing strong support for the sustainable development of the battery swap network. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 Schematic diagram of macro and micro time steps in an embodiment of the present invention.

[0042] Figure 2 Schematic diagram of state transition in an embodiment of the present invention.

[0043] Figure 3 Schematic diagram of the training reward function in an embodiment of the present invention.

[0044] Figure 4 Graph showing performance results of related indicators of training results in an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that these embodiments are for illustration only.

[0046] The embodiment of the present invention discloses a method for collaboratively optimizing battery swap station recommendation and charge and discharge scheduling for electric micro-mobility vehicles, which mainly includes the following steps:

[0047] S1. Obtain the data of battery swap stations for electric micro-mobility vehicles and the operation data of electric micro-mobility vehicles:

[0048] In this embodiment, based on the operation data of urban electric vehicle battery replacement stations and the driving data of electric vehicles (or related data randomly generated based on simulation modeling), the spatiotemporal characteristics of the electric vehicle battery replacement demand are statistically analyzed.

[0049] S2. Construct a recommended model for electric micro-mobility vehicle battery swap stations:

[0050] The optimization goal is to minimize the total time cost of electric vehicle battery replacement, including detour time and waiting time cost, and consider the penalty of battery replacement failure. The formula is as follows:

[0051] Total cost t,τ =Cost detour,t,τ +Cost wait,t,τ +Penalty fail,t,τ +Penalty threshold,t,τ

[0052] Among them, Total cost t,τ Cost is the total cost. detour,t,τ and Cost wait,t,τ They represent the cost of detour time and waiting time, Penalty fail,t,τ and Penalty threshold,t,τ They are the penalties for battery replacement failure and waiting time exceeding the threshold.

[0053] The constraints include the nearest station selection constraint, the battery swap recommendation value maximization constraint, the battery capacity constraint of the battery swap station, and the battery swap service effectiveness constraint, which are expressed in the following formulas:

[0054] Closest site selection constraint

[0055] A=argmin j∈S,|A|=n D(i,j)

[0056] Constraints on maximizing the recommended value of battery swapping

[0057] j * = argmax j∈A R(j)

[0058] Battery capacity constraints of battery swap stations

[0059] C≥D lock

[0060] Constraints on the effectiveness of battery swapping services

[0061] E b ≥E th %

[0062] Where A is the set of n nearest battery swap stations determined based on the distance to the location where the electric vehicle battery swap is required. D(i, j) represents the distance from the location where the electric vehicle battery swap is required to the battery swap station j, S represents the set of all battery swap stations, and n is the number of the nearest battery swap stations. * is the battery swap station with the maximum recommended battery swap value selected from these stations, R(j) represents the recommended battery swap value of battery swap station j. C represents the total battery capacity of the battery swap station, D lockIndicates the scheduled battery replacement demand, that is, the number of batteries locked in the micro time step to be replaced. E b Indicates the real-time power of the recommended battery when replacing the battery. In order to ensure the user's satisfaction with the battery replacement, it is necessary to ensure that the power of the recommended battery reaches at least E th %, such as 90%.

[0063] S3. Construct charging and discharging scheduling model for battery swap stations:

[0064] The optimization goal is to maximize the operating income of the battery swap station considering the battery state conversion, including the difference between the income generated when the battery swap is successful and the income generated when discharging and the charging cost and the penalty for the number of charge and discharge state conversions. The formula is as follows:

[0065] Revenue swapping,t =P service,t ×N swapping,t

[0066] Cost charging,b,t =Price electricity,t ×P t,b ×η ch ×Δt if P t,b >0

[0067] Revenue discharging,b,t =Price electricity,t ×|P t,b |×η disch ×Δt if P t,b <0

[0068]

[0069] Among them, Revenue swapping,t represents the revenue generated when the battery is successfully replaced, B is the total number of batteries; P service,t is the battery replacement service fee, N swapping,t Cost is the number of successful battery swaps, which is counted after each macro time step t. charging,b,t Revenue is the cost of charging batteries at the battery swap station. dischargin,b,t The revenue from the battery of the battery swap station discharging to the grid, Price electricity,t is the electricity price at time step t, P t,b is the charge and discharge power, Δt is the duration of the macro time step, η ch and η disc The efficiency of charging and discharging power is defined respectively; Penalty transitions,t is an additional penalty due to excessive state transitions; Total Revenue t The overall operating income of the battery swap station.

[0070] The constraints of the battery swap station charging and discharging scheduling model include the battery SOC boundary, which ensures that each battery operates within a safe charging and discharging range, and the limit on the number of battery state transitions, which prevents the battery from frequently switching from charging to discharging or vice versa, thereby protecting the battery life.

[0071] S4. Constructing partially observable Markov decision processes;

[0072] The operation and management of a battery swap station can be effectively described as a partially observable Markov decision process with multiple macro time steps (charging and discharging scheduling) and micro time steps (battery swap station recommendation). In this framework, each battery swap station is regarded as an independent agent, which observes the current state of the environment when the macro time step is turned on and takes corresponding charging and discharging scheduling actions. Subsequently, when the demand for battery swapping occurs, these agents enter the control process of the micro time step, during which some of the activated battery swap station agents continue to observe the current state and take actions with recommended battery swap values. The environment then provides a reward signal based on the action taken by the agent to evaluate the effectiveness of the action. The agent needs to make decisions based on partially observable environmental information, while taking into account the complex state interactions and transitions between macro and micro time steps. For example, the charging and discharging scheduling actions of the macro time step will affect the battery swap recommendation decision of the micro time step, and the battery swap decision of the micro time step in turn affects the operation state of the macro time step.

[0073] States and observations: The observations of each intelligent agent in the macro time step o i,t,macro It is a combination of a series of features, including the features at the swap station level (mainly including electricity price information, battery status and quantity, battery status conversion times, swap demand information, etc.) and the battery level (mainly including the power, status, expected full time, charge and discharge history of each battery, etc.). i,t,τ,micro There is m*n a dimensions, m represents the number of features, n a Indicates the number of activated battery swap stations. In this embodiment, 6 features are selected for each activated battery swap station. For example, the feature combination observed in the macro time step and micro time step is specifically expressed as follows:

[0074] o i,t,macro

[0075] = {P e,t , B i,t,avail , B i,t,locked , C i,t,trans , U i,t,avg , D t , C b,t , L b,t , T b,t,full , H b,t,cdisc}

[0076] o i,t,micro = {R i,t,τ,d , B i,t,τ,avail , B i,t,τ,locked , U i,t,τ,avg , D i,t,τ,future , B i,t,τ,unfull}

[0077] Among them, P e,t is the electricity price information, B i,t,avail is the number of available batteries, B i,t,locked is the number of locked batteries, C i,t,trans is the number of battery state transitions, U i,t,avg is the average capacity of the unavailable battery, D t is the battery replacement demand at the current macro time step. In addition, detailed information of each battery (such as the current charge C b,t , Battery lock status L b,t , Estimated time to fully charge T b,t,full and the charge and discharge history H b,t,cdisc ) are also taken into account. i,t,τ,d is the detour distance, B i,t,τ,avail is the number of available batteries, B i,t,τ,locked is the number of locked batteries, U i,t,τ,avg is the average capacity of the unavailable battery, D i,t,τ,future For the battery replacement demand in the next 15 minutes, B i,t,τ,unfull The number of batteries that could not be fully charged that day.

[0078] Action: In the macro time step, the action of the battery swap station determines the charge and discharge power of each battery. For each battery in each station, its action can be expressed as a continuous power value ranging from -0.3kW (discharge) to +0.3kW (charge), and the power value of inaction is 0. There are N battery swap stations, each with B batteries. The action of each station can be expressed as a vector Where n is the number of the battery swap station. Represents the action of the bth battery at the nth station. The action of the battery can be charging, discharging, or remaining unchanged, and the value range is [-0.3, 0.3] kW. The micro time step occurs within the macro time step, for each specific battery swap demand. Each battery swap demand can be regarded as a micro decision event, and the system needs to start from the activated n a The recommended value is a continuous variable ranging from 0 to 1. For each battery swap demand d, the system action can be expressed as rec i represents the recommended value of the ith activated battery swap station, and its value range is [0, 1]. These recommended values ​​reflect the priority of selecting each activated station.

[0079] The actions of the macro and micro time steps are interdependent, forming an interactive decision-making environment. The charge and discharge actions of the macro time step determine the state of the battery at each time point, including the power level and the charge and discharge status. This state information is the key basis for the battery swap recommendation decision at the micro time step. The battery swap recommendation at the micro time step reflects the satisfaction of the actual battery swap demand. The satisfaction of the battery swap demand affects the actual usage of the battery, which in turn affects the future battery status and availability. In this way, the coordination and consistency between the battery management strategy of the macro time step and the battery swap recommendation of the micro time step becomes crucial to ensure the efficient operation and good responsiveness of the entire system. Correct coordination can improve the overall operational efficiency of the battery swap station while ensuring that electric vehicle users receive timely and high-quality battery swap services.

[0080] State transfer: The macro time step transfers to the next macro time step, and the micro time step transfers to the next micro time step in the same macro time step. During the duration of a macro time step, multiple micro time steps may occur. These micro time steps will not directly lead to the end of the macro time step when processing their respective battery replacement needs, but will affect the state at the end of the macro time step. Therefore, each micro time step can be regarded as a series of decisions and updates made within the macro time step, and the end of the macro time step is the summary of these continuous decisions and the update of the final state. Decisions of macro time steps a macro Affects the initial observation o of the microscopic time step micro,initial , and the series of decisions and results a at the micro time step micro This in turn affects the reward calculation R at the macro time step macro and observe the update o′ macro This interactive state transfer design enables the model to respond to environmental changes at different time scales, while considering both long-term and short-term operational effects. In addition, given an action a t , the system state has probability P(o t+1 |o t , a t ) from o t becomes o t+1 The state transition is not only affected by the current observations and actions, but also by various random factors, including the dynamic changes of real-time electricity prices, load consumption, and user behaviors.

[0081] Reward: Reward function R t According to the different characteristics of macro and micro time steps, targeted calculation methods are adopted to maximize the operating cost and minimize the battery swap travel cost respectively. At the macro time step t, the reward function mainly focuses on the operating income of the battery swap station, R macro,t =Total Revenue tAt the micro time step τ, the reward focuses on minimizing the total time cost of battery replacement for electric vehicles, R micro,t =Total cost t,τ °

[0082] S5. Based on the multi-agent hierarchical deep reinforcement learning algorithm, the comprehensive scheduling problem of charging and discharging scheduling and recommendation services of battery swap stations is solved, and the coordinated optimization of macro charging and discharging scheduling and micro battery swap recommendation actions is achieved.

[0083] In this embodiment, the Hierarchical Multi-Agent Deep Deterministic Policy Gradient (H-MADDPG) algorithm is adopted, which combines the framework of centralized training and distributed execution (CTDE). As a widely used method in multi-agent reinforcement learning, CTDE can effectively solve complex distributed decision-making problems. Each agent is equipped with two dedicated macro and micro actor networks, which are used to guide the effective execution of macro charging and discharging scheduling and micro battery replacement recommendation actions. In addition, all agents also share the two macro and micro critic networks, which are responsible for evaluating the value of the agent in macro and micro hierarchical decision-making, thereby improving the learning efficiency of the agent.

[0084] In this framework, the concepts of Graph Attention Network (GAT) and Multi-Task Learning (MTL) are further integrated. The uniqueness of GAT is that it learns the interactions between battery swap stations through the attention mechanism, thereby optimizing the decision-making process of the entire network. Each battery swap station is regarded as an intelligent agent with unique status and observation data, such as charging demand, station capacity, battery status, etc. GAT enables each agent to dynamically adjust the strength of the relationship with other agents based on its own status and information about neighboring agents. The introduction of GAT enhances the communication efficiency between agents, enabling agents to more accurately understand and respond to environmental conditions and the behavior of other agents. Multi-task learning allows the model to optimize multiple objectives at the same time, improving the overall learning efficiency and generalization ability.

[0085] The multi-agent hierarchical deep reinforcement learning algorithm can solve the comprehensive scheduling problem of charging and discharging scheduling and recommendation services of battery swap stations. In the learning stage, a centralized environment is used to train the model to ensure that the agents can learn from each other and share information. After learning, the model is executed in a distributed environment, and each agent makes independent decisions based on its own network, thereby improving execution efficiency and reducing computational burden. This design not only improves the performance of the algorithm, but also improves its feasibility and efficiency in practical applications.

[0086] A central urban area of ​​a city and its deployed battery swap stations were selected as cases for simulation experiments. There are 215 traffic nodes in the area, and it is assumed that there are 60 battery swap stations. To ensure the operability of the study, it is assumed that each battery swap station is equipped with the same number of battery swap cabinets, and each battery swap cabinet is equipped with 10 backup batteries. Random number generation was used to simulate the demand data for electric vehicle battery swaps for two weeks as samples for experimental training and testing. In the selected study area, there are a total of 300,000 ordinary electric vehicles and 1,200 delivery electric vehicles. Assuming that the battery swap penetration rates of ordinary and delivery electric vehicles are 1% and 50% respectively, this is equivalent to about 3,000 ordinary electric vehicles and 600 delivery electric vehicles participating in the battery swap service. Based on this calculation, the average daily demand for battery swaps in the area is about 2,073 times, of which the demand for battery swaps for delivery electric vehicles is 1,403 times and the demand for battery swaps for ordinary electric vehicles is 670 times.

[0087] Figure 3 The changing trends of rewards at the macro and micro levels are shown. At the macro level, the main task of the agent is to formulate reasonable charging and discharging strategies in a dynamically changing market electricity price environment to maximize revenue. Figure 3 (a) shows that during the training process, the fluctuation range of the macro reward gradually decreases, and the decision-making of the agent gradually tends to be stable. This shows that while adapting to the fluctuation of market electricity prices, the agent can more accurately adjust the charging and discharging behavior, effectively achieving a balance between cost and benefit.

[0088] The goal of the intelligent agent at the micro level is to minimize the cost of battery swapping, including detour and queuing time, and consider the penalty for battery swapping failure. Figure 3 The gradual increase in micro-rewards in (b) shows that the intelligent agent has made significant progress in optimizing the battery swap recommendation strategy, effectively reducing users' travel costs and waiting time.

[0089] Figure 4 It further demonstrates the impact of actions at both the macro and micro levels on the overall performance of the system. Figure 4(a) shows the changes in the detour time, queue time, battery swap success rate, and battery swap demand rate of the battery swap station in various time periods of the day. The peaks of detour time and queue time usually correspond to the peak hours of battery swap demand, and the service capacity during these periods becomes the focus of optimization. The battery swap success rate drops after noon, which may reflect the situation where users give up battery swapping due to insufficient battery supply or increased queue time. At the same time, the battery swap station needs to dynamically adjust the battery swap recommendation strategy according to the changes in the battery swap demand rate to reduce users' detour and queue time and improve the battery swap success rate.

[0090] Figure 4 (b) shows the real-time power changes of charging and discharging of the battery swap station and the corresponding time-of-use electricity price during the day. The results show that the charging power increases in the morning and midnight when the electricity price is low, indicating that the battery swap station actively charges when the electricity price is low to provide sufficient battery supply for high-demand periods. On the contrary, in the early morning and evening when the electricity price is higher, the discharge power increases significantly, reflecting that the battery swap station uses the peak electricity price to discharge to maximize its profits. This strategy shows the adaptability of the intelligent agent to electricity price fluctuations and its responsiveness to market dynamics. It also shows that while ensuring the battery swap service, the battery swap station operation strategy successfully optimizes the economic benefits.

[0091] In summary, the intelligent charging and discharging scheduling strategy proposed in the present invention effectively responds to the fluctuation of market electricity prices. By charging during the low electricity price period and discharging during the peak electricity price period, the operating cost is optimized and the benefits are maximized. At the same time, at the micro level, although the intelligent body's battery replacement recommendation strategy needs to be improved in meeting the demand for battery replacement during peak hours, it has generally demonstrated the ability to respond quickly to user needs and market dynamics.

[0092] Based on the same inventive concept, an embodiment of the present invention also discloses a computer system, including a memory, a processor, and a computer program / instructions stored in the memory and executable on the processor. When the computer program / instructions are executed by the processor, the steps of the method for collaborative optimization of electric micro-mobility vehicle battery replacement station recommendation and charge and discharge scheduling are implemented.

[0093] Based on the same inventive concept, an embodiment of the present invention also discloses a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of a method for collaboratively optimizing electric micro-mobility vehicle battery replacement station recommendation and charge and discharge scheduling.

Claims

1. A collaborative optimization method for battery swap station recommendation and charging and discharging scheduling for electric micro-mobility vehicles, It is characterized in that The steps include: Obtain data on battery swap stations for electric micro-mobility vehicles and operation data of electric micro-mobility vehicles; Construct a recommendation model for battery swap stations for electric micro-mobility vehicles. The model optimization goal is to minimize the total time cost of battery swapping for electric vehicles, including detour time and waiting time costs, and consider the penalty for battery swap failure; Construct a charging and discharging scheduling model for battery swap stations. The optimization goal of the model is to maximize the operating revenue of the battery swap station considering the battery state conversion, including the difference between the revenue generated when the battery swap is successful and the revenue generated when the battery is discharged and the penalty for the charging cost and the number of charging and discharging state conversions. Construct a partially observable Markov decision process with multiple macro time steps and micro time steps. Each battery swap station acts as an independent agent. When the macro time step is turned on, it observes the current environmental state and takes corresponding charging and discharging scheduling actions. When there is a demand for battery swapping, it enters the micro time step control process. Some activated battery swap station agents continue to observe the current environmental state and make actions to recommend battery swapping values. Based on a multi-agent hierarchical deep reinforcement learning algorithm, the comprehensive scheduling problem of charging and discharging scheduling and recommendation services of battery swap stations is solved, and the coordinated optimization of macro charging and discharging scheduling and micro battery swap recommendation actions is achieved.

2. A method for collaboratively optimizing battery swap station recommendation and charge and discharge scheduling for electric micro-mobility vehicles according to claim 1, It is characterized in that The optimization objective of the electric micro-mobility vehicle battery swap station recommendation model is expressed as: Total cost t,τ =Cost detour,t,τ +Cost wait,t,τ +Penalty fail,t,τ +Penalty threshold,t,τ Among them, Total cost t,τ Cost is the total cost. detour,t,τ Cost wait,t,τ They represent the time value cost of detour time and waiting time, Penalty fail,t,τ and Penalty threshold,t,τ are the penalties for battery replacement failure and waiting time exceeding the threshold, respectively. The subscripts t and τ mark the macro time step and micro time step, respectively.

3. A method for collaboratively optimizing battery swap station recommendation and charge-discharge scheduling for electric micro-mobility vehicles according to claim 1, It is characterized in that The constraints of the electric micro-mobility vehicle battery swap station recommendation model include the nearest station selection constraint, the battery swap recommendation value maximization constraint, the battery capacity constraint of the battery swap station, and the battery swap service effectiveness constraint, which are respectively expressed as: Closest site selection constraint A=argmin j∈S,|A|=n D(i,j) Constraints on maximizing the recommended value of battery swapping j * =argmax j∈A R(j) Battery capacity constraints of battery swap stations C≥D lock Constraints on the effectiveness of battery swapping services AND b ≥E th % Where A is the set of n nearest battery swap stations determined based on the distance to the location where the electric vehicle battery swap is required; D(i, j) represents the distance from the location where the electric vehicle battery swap is required to the battery swap station j, S represents the set of all battery swap stations, and n is the number of the nearest battery swap stations; j * is the battery swap station with the maximum recommended battery swap value selected from these stations, R(j) represents the recommended battery swap value of battery swap station j; C represents the total battery capacity of the battery swap station, D lock Indicates the scheduled battery replacement demand; E b Indicates the real-time power of the recommended battery when replacing the battery. In order to ensure the user's satisfaction with the battery replacement, it is necessary to ensure that the power of the recommended battery at least reaches the predetermined threshold E th %.

4. A method for collaboratively optimizing battery swap station recommendation and charge-discharge scheduling for electric micro-mobility vehicles according to claim 1, It is characterized in that The optimization objective of the battery swap station charging and discharging scheduling model is expressed as: Revenue swapping,t =P service,t ×N swapping,t Cost charging,b,t =Price electricity ,t×P t,b ×η ch ×Δt if P t,b >0 Revenue dischargin,b,t =Price electricity,t ×|P t,b |×η disc ×Δt if P t,b <0 Among them, Revenue swapping,t represents the revenue generated when the battery is successfully replaced, B is the total number of batteries; P service,t is the battery replacement service fee, N swapping,t Cost is the number of successful battery swaps, which is counted after each macro time step t. charging,b,t Revenue is the cost of charging batteries at the battery swap station. discharging,b,t The revenue from the battery of the battery swap station discharging to the grid, Price electricity,t is the electricity price at time step t, P t,b is the charge and discharge power, Δt is the duration of the macro time step, η ch and η disch The efficiency of charging and discharging power is defined respectively; Penalty transitions,t is an additional penalty due to excessive state transitions; Total Revenue t The overall operating income of the battery swap station.

5. A method for collaboratively optimizing battery swap station recommendation and charge-discharge scheduling for electric micro-mobility vehicles according to claim 4, It is characterized in that The constraints of the battery swap station charging and discharging scheduling model include the battery SOC boundary, ensuring that each battery operates within a safe charging and discharging range, and the limit on the number of battery state transitions.

6. A method for collaboratively optimizing battery swap station recommendation and charge-discharge scheduling for electric micro-mobility vehicles according to claim 1, It is characterized in that In the partially observable Markov decision process, the observation o of each intelligent agent in the macro time step i,t,macro is a combination of a series of features, including the features at the swap station level and the battery level. The features at the swap station level include electricity price information, battery status and quantity, battery status conversion times and battery swap demand information. The features at the battery level include the power, status, expected full time and charging and discharging history information of each battery. The observation o of the micro-time step agent i,t,τ,micro There is m*n a dimensions, m represents the number of features, n a Indicates the number of activated battery swap stations. The characteristics of each activated battery swap station include detour distance, battery status and quantity, and battery swap demand within a preset time in the future.

7. A method for collaboratively optimizing battery swap station recommendation and charge-discharge scheduling for electric micro-mobility vehicles according to claim 1, It is characterized in that In the partially observable Markov decision process, for actions, in the macro time step, the action of the battery swap station is to determine the charging and discharging power of each battery; for each battery in each station, its action is represented by a continuous power value, ranging from discharge to charging, and the power value of no operation is 0; the micro time step occurs within the macro time step, and for each specific battery swap demand, each battery swap demand is regarded as a micro decision event, and the system needs to start from the activated n a The recommended value is a continuous variable reflecting the priority of selecting each activated station.

8. A method for collaborative optimization of battery swap station recommendation and charge-discharge scheduling for electric micro-mobility vehicles according to claim 1, It is characterized in that The multi-agent hierarchical deep reinforcement learning algorithm adopts the multi-agent hierarchical deep deterministic policy gradient H-MADDPG algorithm, which combines the framework of centralized training and distributed execution CTDE. Each agent is equipped with a dedicated macro and micro actor network, which is used to guide the effective execution of macro charging and discharging scheduling and micro battery replacement recommendation actions respectively. All agents share these two macro and micro critic networks.

9. A computer system comprising a memory, a processor and a computer program / instructions stored in the memory and executable on the processor, It is characterized in that When the computer program / instructions are executed by the processor, the steps of a method for collaborative optimization of battery swap station recommendation and charge and discharge scheduling for electric micro-mobility vehicles according to any one of claims 1 to 8 are implemented.

10. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instructions are executed by the processor, the steps of a method for collaborative optimization of battery swap station recommendation and charge and discharge scheduling for electric micro-mobility vehicles according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Vehicle scheduling method and system based on linked cyclic transportation, medium and product

    CN121094495A