Battery swapping network scheduling method

By using an agent model in the battery swapping network for electric heavy-duty trucks to optimize battery pack demand perception and scheduling, the problems of untimely and mismatched battery pack demand were solved, achieving efficient battery pack demand management and cost optimization.

CN123159762APending Publication Date: 2026-11-24NORTH CHINA ELECTRIC POWER UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611326760.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-30
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies make it difficult to effectively manage the battery swapping network for electric heavy-duty trucks, resulting in untimely and inaccurate perception of battery pack demand, mismatch between the dispatch direction of mobile energy storage vehicles and actual demand, and shortage of fully charged battery packs at some battery swapping stations.

Method used

By using a pre-trained proxy model, combined with real-time road network status, battery swapping station status, and vehicle status, the battery pack demand is estimated. With the goal of minimizing operating costs, the charging capacity of battery swapping stations and the driving routes and loading/unloading capacity of mobile energy storage vehicles are optimized to achieve timely and accurate perception of battery pack demand and reduce mismatch.

Benefits of technology

It improved the timeliness and accuracy of battery swapping demand, reduced the mismatch between the dispatch direction of mobile energy storage vehicles and actual demand, alleviated the battery pack shortage at some battery swapping stations, and optimized the operating cost of the battery swapping network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159762A_ABST
    Figure CN123159762A_ABST
Patent Text Reader

Abstract

This application discloses a scheduling method for a battery swapping network. It acquires the real-time road network status, the first state information of each battery swapping station, the second state information of each mobile energy storage vehicle, and the third state information of the target vehicle. The road network status and the state information of the battery swapping stations and target vehicles are input into a pre-trained surrogate model to obtain the battery pack demand of each battery swapping station in the predicted time domain. Based on the full-charge battery pack shortage of each battery swapping station and the state information of the battery swapping stations and mobile energy storage vehicles, with the goal of minimizing the operating cost of the battery swapping network, the method determines the number of battery packs to be charged at each battery swapping station, the travel path of each mobile energy storage vehicle, and the unloading quantities of fully charged and depleted battery packs. By rapidly extrapolating battery swapping demand through the surrogate model, it jointly optimizes in-station charging and inter-station transportation, utilizes the inventory differences between stations to achieve spatial mutual assistance, and reduces the operating cost of the battery swapping network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of battery swapping network scheduling technology, specifically to a scheduling method for a battery swapping network. Background Technology

[0002] As the application of electric heavy-duty trucks in port transportation, mining transportation, urban logistics, and long-haul freight continues to expand, the charging and battery swapping infrastructure for electric heavy-duty trucks is gradually evolving from single-site to multi-site networked operation. Compared to conventional plug-in charging, battery swapping can shorten vehicle refueling time by directly replacing standardized power battery packs, making it suitable for applications where electric heavy-duty trucks operate at high frequencies, continuously, and have high refueling time requirements.

[0003] Therefore, how to manage the charging network has become an urgent problem to be solved. Summary of the Invention

[0004] This application aims to provide a scheduling method and storage medium for a battery swapping network. It can deduce the battery pack demand of each battery swapping station in the predicted time domain based on the real-time road network status, battery swapping station status, and vehicle status. It can also perform rolling collaborative optimization of the demand with the mobile energy storage vehicle route and the charging amount in the battery swapping station, thereby improving the timeliness and accuracy of battery swapping demand perception, reducing the mismatch between the mobile energy storage vehicle dispatch direction and the actual demand, and alleviating the shortage of fully charged battery packs at some battery swapping stations.

[0005] According to a first aspect of this application, a scheduling method for a battery swapping network is provided, the battery swapping network including multiple battery swapping stations, multiple mobile energy storage vehicles, and a road network connecting the battery swapping stations; the battery swapping stations are used to provide battery swapping services to vehicles based on battery packs and to charge the battery packs; the mobile energy storage vehicles are used to transport battery packs between the battery swapping stations along the road network; the method includes:

[0006] The system acquires the real-time road network status, the first status information of each battery swapping station, the second status information of each mobile energy storage vehicle, and the third status information of target vehicles currently requiring energy replenishment. The first status information includes at least the inventory of fully charged battery packs, the inventory of depleted battery packs, and the battery swapping service price. The second status information includes at least the current location of each mobile energy storage vehicle, the number of fully charged battery packs it carries, and the number of depleted battery packs it carries. The third status information includes at least the current location of the vehicle and its remaining state of charge. The real-time road network status, the first state information, and the third state information of each of the battery swapping stations are input into a pre-trained proxy model to obtain the battery pack demand of each battery swapping station in the predicted time domain. The proxy model is trained using the station selection equilibrium solution of the vehicle among the candidate battery swapping stations as the training label, and the deviation of the equilibrium solution is included in the training loss. The station selection equilibrium solution is the station selection distribution when no vehicle can reduce its generalized charging cost by unilaterally changing the selected battery swapping station. Based on the full-charge battery pack shortage at each battery swapping station, the first status information of each battery swapping station, and the second status information of each mobile energy storage vehicle, a target scheduling scheme is determined with the goal of minimizing the operating cost of the battery swapping network. This scheme includes the first scheduling information of the battery swapping stations and the second scheduling information of each mobile energy storage vehicle. The full-charge battery pack shortage at each battery swapping station is determined based on the battery pack demand and the full-charge battery pack inventory. The first scheduling information includes at least the number of battery packs being charged at each battery swapping station. The second scheduling information includes at least the travel route, the amount of fully charged battery packs being unloaded at each battery swapping station, and the amount of depleted battery packs being unloaded.

[0007] According to a second aspect of this application, a scheduling device for a battery swapping network is provided, the battery swapping network including multiple battery swapping stations, multiple mobile energy storage vehicles, and a road network connecting the battery swapping stations; the battery swapping stations are used to provide battery swapping services to vehicles based on battery packs and to charge the battery packs; the mobile energy storage vehicles are used to transport battery packs between the battery swapping stations along the road network; the device includes: The acquisition module is used to acquire the real-time road network status of the road network, the first status information of each of the battery swapping stations, the second status information of each mobile energy storage vehicle, and the third status information of the target vehicle currently having energy replenishment needs; the first status information includes at least the inventory of fully charged battery packs, the inventory of depleted battery packs, and the battery swapping service price; the second status information includes at least the current location of each mobile energy storage vehicle, the number of fully charged battery packs it carries, and the number of depleted battery packs it carries; the third status information includes at least the current location of the vehicle and its remaining charge status; The demand prediction module is used to input the real-time road network status, the first state information and the third state information of each of the battery swapping stations into a pre-trained proxy model to obtain the battery pack demand of each battery swapping station in the prediction time domain. The proxy model is trained by using the station selection equilibrium solution of the vehicle among the candidate battery swapping stations as the training label and including the deviation of the equilibrium solution in the training loss. The station selection equilibrium solution is the station selection distribution when no vehicle can reduce its generalized charging cost by unilaterally changing the selected battery swapping station. The scheduling optimization module is used to determine a target scheduling scheme, including the first scheduling information of the battery swapping stations and the second scheduling information of each mobile energy storage vehicle, based on the full-charge battery pack shortage of each battery swapping station, the first status information of each battery swapping station, and the second status information of each mobile energy storage vehicle, with the goal of minimizing the operating cost of the battery swapping network. The full-charge battery pack shortage of each battery swapping station is determined based on the battery pack demand and the full-charge battery pack inventory. The first scheduling information includes at least the number of battery packs being charged at each battery swapping station. The second scheduling information includes at least the travel route, the unloading volume of fully charged battery packs and the unloading volume of depleted battery packs at each battery swapping station.

[0008] According to a third aspect of this application, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the scheduling method of the battery swapping network described in any of the above embodiments.

[0009] According to a fourth aspect of this application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute a scheduling method for a battery swapping network according to any of the above embodiments by executing the executable instructions.

[0010] This application provides a scheduling method and storage medium for a battery swapping network. The scheme inputs real-time road network status, battery swapping station status, and vehicle status into a pre-trained proxy model. The proxy model is trained using the site selection equilibrium solution as the training label and taking into account the equilibrium deviation. During online scheduling, the battery pack demand of each battery swapping station in the predicted time domain can be obtained through a single forward calculation. Based on this, the full-charge battery pack shortage of each battery swapping station is determined. The charging quantity of each battery swapping station and the driving path and loading / unloading volume of each mobile energy storage vehicle are determined with the goal of minimizing the operating cost of the battery swapping network. This makes the scheduling scheme match the site selection distribution formed by the vehicles in the site selection game, thereby improving the timeliness and accuracy of battery swapping demand perception and reducing the mismatch between the dispatch direction of mobile energy storage vehicles and the actual demand. Attached Figure Description

[0011] Figure 1 The diagram shown is an overall architecture diagram of a battery swapping network scheduling system provided in an embodiment of this application.

[0012] Figure 2 The diagram shown is a flowchart illustrating a scheduling method for a battery swapping network provided in an embodiment of this application.

[0013] Figure 3 The diagram shown is a flowchart of a battery swapping service load perception based on an agent model provided in an embodiment of this application.

[0014] Figure 4The diagram shown is a flowchart of a collaborative solution method for dynamic partitioning and adaptive large neighborhood search provided in an embodiment of this application.

[0015] Figure 5 The diagram shown is a system overall scheduling flowchart provided in an embodiment of this application. Detailed Implementation

[0016] Application Overview The battery swapping network consists of multiple swapping stations. Each station delivers a fully charged battery pack to arriving vehicles, retrieves depleted battery packs, and recharges them within the station. Battery swapping demand is unevenly distributed in time and space; therefore, mobile energy storage vehicles are deployed along the road network to transport battery packs between swapping stations, enabling cross-station deployment. The scheduling of these mobile energy storage vehicles must simultaneously consider factors such as battery swapping load, station inventory, charging capacity, road travel time, transport capacity, and driving energy consumption.

[0017] The relevant technologies address this problem primarily from the following aspects: Regarding battery swapping load forecasting, the estimated future number of vehicles for swapping is based on historical swapping probabilities, failing to account for feedback from vehicle competition for swapping stations under real-time road conditions, inventory, and price changes, making it difficult to identify demand migration between stations. Regarding in-station charging scheduling, adjusting the charging power and charging time of individual stations to meet forecasted demand does not utilize inter-station battery transportation as a regulatory mechanism, and cannot leverage inventory differences between stations to achieve spatial mutual assistance. Regarding vehicle-to-station matching, changing vehicle destination transfer demands cannot directly alter the spatial distribution of battery resources. Regarding the battery distribution network, fixed distribution areas are defined during the planning phase and cannot be dynamically adjusted according to demand changes.

[0018] To address the aforementioned issues, this application provides a scheduling method for a battery swapping network. Based on the status information of the road network, battery swapping stations, mobile energy storage vehicles, and vehicles awaiting replenishment, a pre-trained surrogate model is used to obtain the battery pack demand of each battery swapping station in the predicted time domain. This determines the shortage of fully charged battery packs, and, with the goal of minimizing operating costs, determines the charging volume of each battery swapping station and the travel routes and loading / unloading volumes of each mobile energy storage vehicle. This scheme, on the one hand, can extrapolate demand through a single online forward calculation using the surrogate model, resulting in low computational load and high speed; on the other hand, by jointly optimizing in-station charging and inter-station transportation with the goal of minimizing operating costs, it can leverage inventory differences between different stations to achieve spatial mutual assistance, reducing operating costs while maximizing the satisfaction of battery swapping demand.

[0019] After introducing the basic principles of this application, various non-limiting embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0020] Exemplary System Figure 1The diagram shows the overall architecture of a battery swapping network scheduling system provided in this application embodiment. The battery swapping network includes multiple battery swapping stations, multiple mobile energy storage vehicles, a road network connecting the various battery swapping stations, and a centralized scheduling platform. The diagram also illustrates how changes in the inventory of fully charged battery packs at battery swapping stations are influenced by four factors: in-station charging output, the inbound and outbound transport of mobile energy storage vehicles, vehicle battery swapping delivery, and vehicles selecting in-station charging services without consuming fully charged battery packs.

[0021] Battery swapping stations provide battery swapping services to arriving vehicles and charge depleted battery packs. Charging power is primarily supplied by on-site renewable energy generation units, with any shortfall purchased from the grid. Mobile energy storage vehicles transport battery packs along the road network between swapping stations, moving fully charged battery packs from stations with surplus capacity to those with shortages, or moving depleted battery packs from stations with limited charging capacity to those with ample charging capacity.

[0022] Based on their current location and remaining battery power, vehicles in the battery swapping network tend to choose battery swapping stations with shorter travel distances or lower service prices within their reach. The centralized dispatch platform collects status information on the road network, battery swapping stations, mobile energy storage vehicles, and vehicles to determine the charging capacity of each battery swapping station and the travel routes and loading / unloading volumes of each mobile energy storage vehicle, and issues dispatch instructions accordingly.

[0023] The centralized scheduling platform can be a single computer, a single server, or a combination of several servers, a virtualization platform, or a cloud computing service center. The agent model in the centralized scheduling platform can be trained offline, with only forward computation performed during the online scheduling phase. The offline training side and the online scheduling side can be deployed on the same physical device or on different physical devices. Those skilled in the art will understand that the number of battery swapping stations, mobile energy storage vehicles, and other vehicles can be multiple; this application does not limit these quantities.

[0024] Exemplary methods Figure 2 This is a flowchart illustrating a scheduling method for a battery swapping network provided in one embodiment of this application. The method is executed by a centralized scheduling platform.

[0025] In this embodiment, the battery swapping network includes multiple battery swapping stations, multiple mobile energy storage vehicles, and a road network connecting the battery swapping stations. The battery swapping stations provide battery swapping services to vehicles and charge battery packs; the battery swapping service involves delivering fully charged battery packs to vehicles and recovering depleted battery packs. The mobile energy storage vehicles transport battery packs, including fully charged and depleted battery packs, along the road network between the battery swapping stations.

[0026] like Figure 2As shown, the method includes the following: Step S210: Obtain the real-time road network status of the road network, the first status information of each of the battery swapping stations, the second status information of each mobile energy storage vehicle, and the third status information of the target vehicle currently having energy replenishment needs; The first status information includes at least the inventory of fully charged battery packs, the inventory of depleted battery packs, and the price of battery swapping services; the second status information includes at least the current location of each mobile energy storage vehicle, the number of fully charged battery packs it carries, and the number of depleted battery packs it carries; the third status information includes at least the current location of the vehicle and its remaining charge status.

[0027] The acquisition can be understood as the centralized scheduling platform collecting the above four types of information from various information sources and aligning data with different collection timestamps to the current scheduling time. The centralized scheduling platform can actively query according to a preset period, or each information source can actively push according to its own reporting period, or both can be used together. When a certain information source does not return data, the value of its previous scheduling time can be used or extrapolated.

[0028] Real-time road network status is used to characterize the current traffic conditions of each road segment in the road network: in some embodiments, it includes the actual traffic flow of each road segment during the current scheduling period; in other embodiments, it includes the traffic saturation of each road segment derived from the actual traffic flow; and in still other embodiments, it directly includes the dynamic travel time of each road segment.

[0029] Traffic saturation is the ratio of actual traffic flow to the maximum traffic flow of a road segment. A value closer to 1 indicates that the actual traffic flow of the segment is closer to its capacity limit. Dynamic travel time is the time required for a vehicle to traverse a road segment under current traffic conditions, and it increases as the traffic saturation of that segment rises. In some embodiments, dynamic travel time is directly estimated by the traffic information platform based on real-time travel times for each road segment; in other embodiments, dynamic travel time is obtained by dividing the segment length by the free-flow velocity and then correcting for traffic saturation.

[0030] The first status information is the status information of the battery swapping station, which includes at least the inventory of fully charged battery packs, the inventory of depleted battery packs, and the battery swapping service price: the inventory of fully charged battery packs is the number of battery packs currently stored at the station whose state of charge has reached a preset delivery threshold, representing the amount of resources that can be delivered immediately; the inventory of depleted battery packs is the number of battery packs whose state of charge is below the threshold; the battery swapping service price is the fee required for a vehicle to complete one battery swapping service. The battery swapping service price can be determined by each battery swapping station according to its own node electricity purchase price, or it can be uniformly published by the battery swapping network operator according to the time-of-use electricity price period, or it can be adjusted by the battery swapping station itself based on the current inventory of fully charged battery packs, increasing when the inventory is low and decreasing when it is high, and all of these can be reported to the centralized dispatch platform by the station control equipment.

[0031] The second state information is the state information of the mobile energy storage vehicle, which includes at least the current location of each mobile energy storage vehicle, the number of fully charged battery packs it carries, and the number of depleted battery packs it carries. The current location may be the node where the mobile energy storage vehicle is located in the road network, or the road segment it is on and its travel progress on that road segment. The sum of the number of fully charged and depleted battery packs does not exceed the maximum loading capacity of the mobile energy storage vehicle, indicating its current available transportation capacity and available battery pack resources. In some embodiments, the second state information also includes the remaining state of charge of the mobile energy storage vehicle's own power battery, the currently executing and unfinished transportation tasks and their expected completion time; in other embodiments, it also includes the time required for the loading and unloading mechanism to complete one battery pack unloading.

[0032] The target vehicles are those currently in need of recharging, specifically those whose onboard battery packs have insufficient remaining charge to support their subsequent transportation missions and require immediate entry into a battery swapping station to replace their batteries with fully charged ones. The determination methods include: the remaining state of charge being below a preset trigger threshold; the mileage that can be traveled with the remaining charge being less than the remaining mileage to the destination of the transportation mission; and the vehicle's onboard terminal actively reporting a recharging request.

[0033] The third state information is the target vehicle's state information, including at least the vehicle's current location and remaining state of charge: the former determines the vehicle's travel distance and time to each battery swapping station, while the latter is the ratio of the vehicle's current remaining battery charge to its rated capacity, determining the distance it can travel with the current charge. Together, they define the range of selectable battery swapping stations for the target vehicle. In some embodiments, the third state information also includes the target vehicle's prescribed transportation route, used to exclude battery swapping stations that deviate too far from the transportation route from the candidate stations; in other embodiments, it also includes the number of battery packs that the target vehicle needs to replace.

[0034] Step S220: Input the real-time road network status, the first state information and the third state information of each of the battery swapping stations into the pre-trained proxy model to obtain the battery pack demand of each battery swapping station in the predicted time domain; wherein, the proxy model is trained using the station selection equilibrium solution of the vehicle among the candidate battery swapping stations as the training label; the station selection equilibrium solution is the station selection distribution when no vehicle can reduce its generalized charging cost by unilaterally changing the selected battery swapping station.

[0035] The prediction time domain is a time interval consisting of several consecutive scheduling periods starting from the current scheduling time. The length can be set according to the time required for a mobile energy storage vehicle to complete a typical dispatch, so that the entire process of a mobile energy storage vehicle from departure to arrival at the target battery swapping station falls within the same prediction time domain. In some embodiments, the scheduling period length is 15 minutes, and in other embodiments it is 30 minutes.

[0036] Battery pack demand refers to the number of fully charged battery packs that a battery swapping station needs to deliver to arriving vehicles within a scheduling period. This is the number of fully charged battery packs expected to be delivered to the station during that period, not the number of battery swapping reservations already received by the station. This demand represents the consumption of the station's fully charged battery pack inventory during that period, and together with the number of battery packs that have completed charging and the number of fully charged battery packs transported in and out of mobile energy storage vehicles during that period, determines the fully charged battery pack inventory for the next period.

[0037] The surrogate model is a pre-trained data-driven surrogate model that takes the system operating state as input and the battery pack demand of each battery swapping station as output. Its function is to replace the iterative solution of the vehicle station selection game with the learned mapping relationship: the station selection process of a vehicle among candidate battery swapping stations can be abstracted as a game process. Directly iteratively solving this game process can yield the equilibrium number of vehicles arriving at each battery swapping station, but this is time-consuming. The surrogate model uses the station selection equilibrium solution of this game as training labels, and after offline training, provides an output close to the iterative solution result with a single forward computation. It should be noted that the surrogate model is not limited to a neural network model; any data-driven model that can learn the mapping relationship from the system operating state to the station selection equilibrium solution can be used as the surrogate model described in this application, such as neural networks, gradient boosting trees, random forests, or Gaussian process regression, etc. Among them, neural networks are a preferred implementation method, and its structural example is described later. The input can be understood as arranging the real-time road network status, first state information, and third state information into an input tensor according to the format agreed upon by the proxy model and sending it into the model; the result is that the model performs a forward calculation on the input and reads out the battery pack demand of each battery swapping station in each time period within the prediction time domain.

[0038] The input tensor can be arranged in several ways: the real-time road network status can be arranged into a matrix composed of the traffic saturation of each road segment; the first state information can be arranged into a matrix composed of the fully charged battery pack inventory, the depleted battery pack inventory, and the battery swapping service price of each battery swapping station; and the third state information can be arranged into a matrix composed of the current location code and the remaining charge state of each target vehicle. Alternatively, the third state information can not be arranged vehicle by vehicle, but instead, the target vehicles can be first classified into several partitions of the road network according to their current location, and then the number of target vehicles and the mean and quantiles of their remaining charge states in each partition can be counted and arranged into a partition-level statistical vector, so that the dimension of the input tensor does not change with the number of target vehicles. Alternatively, the topological relationship of the road network can be input together in the form of an adjacency matrix, and the surrogate model can use a graph neural network to extract the spatial correlation features.

[0039] The role of fully charged battery pack inventory and battery swapping service price as inputs to the proxy model is as follows: low inventory at battery swapping stations will cause arriving vehicles to wait for charging to be completed at the station, while high-priced battery swapping stations will increase the cost of vehicle recharging. Both of these factors inhibit vehicle inflow. Together with the travel time determined by the real-time road network status and the reachability determined by the third state information, they constitute the basis for vehicles to choose among various candidate battery swapping stations.

[0040] The generalized charging cost is the sum of all costs incurred by a vehicle to complete a recharge at a candidate battery swapping station, converted using a unified dimension. In some embodiments, this includes three categories: driving time, driving energy consumption, and queuing time, corresponding to the vehicle's time cost, energy consumption, and waiting cost, respectively. In other embodiments, the battery swapping service fee is also included. The conversion factors can be determined based on the unit time value of the vehicle carrier, electricity prices, and freight rates, or they can be determined by inverting historical station selection records.

[0041] A candidate battery swapping station is a battery swapping station that a vehicle can reach based on its current location and remaining charge state. A battery swapping station is listed as a candidate battery swapping station only if the vehicle's remaining charge, after deducting the energy consumption for traveling to a battery swapping station, is still not lower than the preset safe charge state limit.

[0042] The site selection distribution is a set of correspondences formed by the selected swapping stations of all target vehicles, or the number of vehicles selected for each swapping station obtained from the statistics of this correspondence. Unilaterally changing the selected swapping station refers to a vehicle changing its selected swapping station from the current swapping station to another swapping station in its candidate swapping station set, provided that the selections of all other vehicles remain unchanged.

[0043] The site selection equilibrium solution represents the site selection distribution when no vehicle can reduce its generalized charging cost by unilaterally changing its chosen battery swapping station. It depicts the steady-state after vehicle interactions: if a particular battery swapping station attracts a large number of vehicles due to its short travel time, ample inventory, or low price, its waiting time increases, and its generalized charging cost also rises. Consequently, some vehicles switch to other battery swapping stations, and this switching continues until no vehicle can improve its generalized charging cost. Using the site selection distribution under this steady-state as the training label, the surrogate model fits the mapping from the system state to this steady-state, taking into account the interactions between vehicles, rather than a mapping from the system state to the isolated site selection results of each vehicle.

[0044] In some embodiments, the station selection equilibrium solution is solved offline in an iterative manner: first, an initial battery swapping station is assigned to each vehicle based on its generalized charging cost when there is no interference from other vehicles; then, each vehicle is examined one by one, and, with the choices of other vehicles remaining unchanged, it is reselected to the battery swapping station that minimizes its own generalized charging cost; this examination process is repeated until no vehicle changes its selected battery swapping station in a round of examination. To avoid iterative oscillations between several sets of choices, each round only allows the number of vehicles changing their selected battery swapping station to not exceed a preset proportion, or applies an acceptance probability to the vehicle reselection that decreases with each iteration round. In other embodiments, the station selection process is represented as a potential function minimization problem of a congestion game, and the number of arriving vehicles at each battery swapping station in the equilibrium state is directly obtained by minimizing this potential function.

[0045] Training samples can be generated offline as follows: Keeping the road topology, battery swapping station locations, and basic configuration of mobile energy storage vehicles unchanged, the overall arrival scale of vehicles, traffic saturation of each road segment, fully charged battery pack inventory of each battery swapping station, and battery swapping service price of each battery swapping station are combined and perturbed, and local road congestion, local inventory shortage, and price perturbation states are constructed separately; for each set of perturbed states, the above-mentioned station selection equilibrium solution is solved, and the number of arriving vehicles, vehicle service type distribution, and corresponding battery pack demand of each battery swapping station under the equilibrium solution are used as the training labels of that set of states, and different scenario days are respectively assigned to the training set, validation set, and independent test set.

[0046] The total training loss of the surrogate model includes at least a loss term for fitting the training labels and an equilibrium deviation loss term: the loss term for fitting the training labels measures the difference between the surrogate model output and the training labels, and the equilibrium deviation loss term measures the distance between the site selection distribution corresponding to the surrogate model output and the equilibrium condition. In some embodiments, the loss term for fitting the training labels is the mean square error between the number of vehicles arriving at each battery swapping station output by the surrogate model and the training labels; in other embodiments, a cross-entropy loss is taken for the vehicle service type distribution and included together with the mean square error mentioned above.

[0047] The purpose of including the equilibrium deviation is as follows: Training samples can only cover a limited number of states. When fitting only to the training labels, the surrogate model's output on uncovered state combinations is unconstrained, potentially showing a distribution where a vehicle can reduce its generalized charging cost by switching to a different battery swapping station. After including the equilibrium deviation, this term takes a positive value in such states and is minimized, while the surrogate model's output remains constrained by the condition that no vehicle can reduce its generalized charging cost by switching to a different battery swapping station. In some embodiments, the weight coefficient of the equilibrium deviation loss term is set to a smaller value in the early stages of training to allow the model to fit the training labels first, and then gradually increases with each training iteration. In other embodiments, the weight coefficient is dynamically adjusted according to the ratio of the equilibrium deviation to the fitting error on the validation set.

[0048] One implementation of the proxy model includes a feature extraction layer and an output layer. The feature extraction layer consists of several fully connected layers and is used to extract nonlinear features from the input tensor. The output layer provides the expected number of vehicles arriving at each battery swapping station, and a soft-addition function is used to ensure that the output is always non-negative. In some embodiments, the feature extraction layer uses a graph neural network with the adjacency matrix of the road network as its graph structure. In other embodiments, the feature extraction layer uses an encoder with an attention mechanism, so that the output of a battery swapping station can reference the inventory and prices of other battery swapping stations according to attention weights.

[0049] After providing the expected number of arriving vehicles, the proxy model combines the probability of each service type to convert it into battery pack demand. The specific conversion method is described later. Figure 3 The diagram shown is a flowchart of a battery swapping service load perception based on an agent model provided in an embodiment of this application. The diagram illustrates the complete process from inputting real-time road network status, battery swapping station status and vehicle status into the agent model, to outputting the expected number of vehicles arriving at each battery swapping station and the probability of service type, and further converting them into the battery pack demand of each battery swapping station.

[0050] The proxy model is trained offline, and its parameters remain unchanged during online scheduling. Each scheduling moment in online scheduling only performs one or Hp forward calculations, without iteratively solving the station selection process. Therefore, the time spent estimating the battery pack demand of each battery swapping station does not increase iteratively with the increase in the number of vehicles and battery swapping stations, and can be completed within the allowable computation time limit of a scheduling period.

[0051] Step S230: Based on the battery pack demand of each battery swapping station, the first status information of each battery swapping station, and the second status information of each mobile energy storage vehicle, determine a target scheduling scheme that includes the first scheduling information of the battery swapping stations and the second scheduling information of each mobile energy storage vehicle, with the goal of minimizing the operating cost of the battery swapping network.

[0052] The first scheduling information includes at least the number of battery packs being charged at each battery swapping station; the second scheduling information includes at least the travel route, the amount of fully charged battery packs being unloaded at each battery swapping station, and the amount of depleted battery packs being unloaded.

[0053] The full-charge battery pack shortage is the portion of a battery swapping station's demand for full-charge battery packs within the predicted time period that exceeds its existing inventory. It represents the amount of battery packs the station still needs to replenish through in-station charging or by mobile energy storage vehicles. In some embodiments, the full-charge battery pack shortage is determined cumulatively over time periods within the predicted time period. In other embodiments, a preset safety stock limit is also considered in determining the shortage; that is, when the full-charge battery pack inventory is lower than this safety stock limit, even if the current demand has not exceeded the inventory, the difference between the safety stock limit and the inventory is included in the shortage calculation.

[0054] The role of fully charged and depleted battery pack inventory in the first state information in this step is to define the charging capacity boundary of each battery swapping station: the difference between the fully charged battery pack inventory and the battery pack demand is the fully charged battery pack gap, and the depleted battery pack inventory, together with the available charging energy of the battery swapping station in each period of the forecast time domain, defines the upper limit of the number of battery packs that can be charged in the battery swapping station; the battery swapping service price is related to the node electricity purchase price through the price transmission chain, indirectly affecting the selection of charging tasks for each battery swapping station. The current location in the second state information is used to define the range of battery swapping stations that each mobile energy storage vehicle can reach in the forecast time domain, and the number of fully charged and depleted battery packs it carries defines the upper limit of its feasible loading and unloading volume at each battery swapping station, and the number of fully charged battery packs it carries determines whether it can immediately replenish the full charged battery pack gap of the target battery swapping station upon arrival.

[0055] The determination can be understood as: within the feasible range defined by the three constraints of the delivery demand represented by the shortage of fully charged battery packs, the charging capacity boundary of the battery swapping station, and the transportation capacity boundary of the mobile energy storage vehicle, the process of finding a set of first scheduling information and second scheduling information that minimizes the operating cost of the battery swapping network.

[0056] The target scheduling scheme is a set of first and second scheduling information that minimizes the operating cost of the battery swapping network within the predicted time domain. The first scheduling information includes the number of charges at each battery swapping station in each time period, and the second scheduling information includes the travel routes of each mobile energy storage vehicle and the unloading volume of fully charged and depleted battery packs at each battery swapping station. The portion corresponding to the current scheduling period is distributed to each battery swapping station and mobile energy storage vehicle for execution, while the portion for subsequent time periods is updated on a rolling basis according to the newly collected status information at the next scheduling time.

[0057] The determination can be processed using scheduling algorithms, such as adaptive large neighborhood search algorithms and their improved versions, variable neighborhood search algorithms, or genetic algorithms. Each algorithm uses operating cost as a fitness function to search for target scheduling schemes within the feasible region defined by the gap in fully charged battery packs, the charging capacity boundary of battery swapping stations, and the capacity boundary of mobile energy storage vehicles. In some embodiments, an improved adaptive large neighborhood search algorithm is used, embedding dynamic traffic impedance and site energy margin information into the destruction and repair operators to guide the algorithm to enter the lower-cost region within a limited number of evaluations.

[0058] The first and second scheduling information are determined together in the same solution, rather than determining one first and then the other: the shortage of fully charged battery packs at a battery swapping station can be made up either by charging within the station itself or by having a mobile energy storage vehicle transport them from other stations; these two methods are interchangeable in terms of operating costs. For example, a battery swapping station with a higher electricity purchase price can have its batteries charged by a nearby station with ample photovoltaic power generation, and then transported by a mobile energy storage vehicle; its operating cost may be lower than if the station charges itself. Conversely, if the mobile energy storage vehicle's route passes through congested areas, increasing transportation costs, the operating cost of the station charging itself may be lower. These trade-offs can only be made by solving the same objective function together.

[0059] After determining the first scheduling information and the second scheduling information, the centralized scheduling platform will distribute the portion corresponding to the current scheduling period to the station control equipment of each battery swapping station and the vehicle-mounted terminal of each mobile energy storage vehicle. After the current scheduling period ends, steps S210 to S230 will be re-executed to redetermine the first scheduling information and the second scheduling information for the subsequent period based on the newly collected status information.

[0060] Since the battery pack demand obtained in step S220 is derived by the proxy model using the site selection equilibrium solution as the training label, it already takes into account the site selection results after the mutual influence between vehicles. This matches the site selection distribution formed by the vehicles themselves in the site selection game. Based on this, the determined full-charge gap corresponds to the inter-site distribution of the actual delivery demand to be supplemented, so that the charging quantity in each battery swapping station, the driving path of each mobile energy storage vehicle, and the loading and unloading volume all point to the battery swapping station with the actual gap. A mobile energy storage vehicle usually completes a cross-site transportation trip across several scheduling periods. If the demand perception is lagging, the demand at the station may have shifted by the time the battery pack arrives. This solution ensures that the battery pack arrives at the destination station with the actual demand, thereby reducing the mismatch between the mobile energy storage vehicle's dispatch direction and the actual demand, and alleviating the shortage of fully charged battery packs at local battery swapping stations. At the same time, the charging task and the dispatching task are uniformly configured in the same solution with the goal of minimizing operating costs, so that the battery swapping demand is met while the operating cost is kept at a low level.

[0061] Optionally, obtaining the battery pack demand of each battery swapping station in the predicted time domain includes: The proxy model outputs the expected number of vehicles arriving at each battery swapping station within the predicted time domain, as well as the probability of that station corresponding to each service type. Based on the probabilities of each service type, the mean and variance of the service type corresponding to that station are determined. The product of the expected number of vehicles arriving and the mean of the service type is used as the baseline demand. The square root of the product of the expected number of vehicles arriving and the variance of the service type is multiplied by a robust adjustment coefficient to obtain a safety margin. The sum of the baseline demand and the safety margin is used as the battery pack demand of that station in the corresponding time period.

[0062] The projected number of arriving vehicles is the number of vehicles expected to enter a specific battery swapping station during a given time period, output by the proxy model. This number is provided by the proxy model's output layer and reflects the number of vehicles heading towards that station during the station selection equilibrium process, considering the current road network status, station status, and vehicle status. The projected number of arriving vehicles at battery swapping station i in time period t is denoted as... The superscript ^ indicates that the value is the presumed value of the proxy model.

[0063] The service type represents the category of the number of battery packs replaced in a single charging session: a service type value of 1 indicates that one battery pack is replaced in a single charging session, a value of 2 indicates that two battery packs are replaced, and so on. Different vehicle models may correspond to different service types, and the same vehicle may also correspond to different service types under different transportation tasks. The service type value is an integer not less than 1, and its upper limit is the maximum number of battery packs that need to be replaced in a single charging session in the battery swapping network.

[0064] The probability of each service type is the proportion of vehicles expected to arrive at a battery swapping station and choose each service type, output by the proxy model for a given battery swapping station and a given time period. It reflects the preference distribution of vehicles with different energy replenishment needs for that battery swapping station under the current road network condition and the current battery swapping station condition. The sum of the probabilities of each service type is equal to one. In some embodiments, this probability is output by the service type mapping layer of the proxy model and obtained after normalization.

[0065] The service type mean is a weighted average of the number of battery packs corresponding to each service type, weighted by the probability of each service type. It represents the average number of battery packs that need to be replaced per vehicle arriving at the battery swapping station during that time period.

[0066] Service type variance represents the dispersion of the number of battery packs corresponding to each service type relative to the service type mean, characterizing the variability in the energy replenishment demand of vehicles arriving at the battery swapping station during that time period: a larger variance indicates that some arriving vehicles require fewer battery packs while others require more, resulting in higher demand uncertainty and a larger safety margin required. The service type variance of battery swapping station i in time period t is determined by the following formula:

[0067] In the formula, Let be the service type variance of battery swapping station i in time period t, with the superscript 2 indicating the square operation; B is the set of service types; b is the number of battery packs corresponding to service type b; Let i be the probability that a battery swapping station i corresponds to service type b in time period t; the first term B · The second term represents the expected square of the number of battery packs corresponding to each service type. B b · It is the square of the mean of the service types.

[0068] The baseline demand is the battery pack demand calculated based on the average demand level. It reflects the number of fully charged battery packs that the battery swapping station is expected to deliver during the period without considering service type uncertainty. It is equal to the product of the expected number of vehicles arriving at the battery swapping station during the period and the average service type.

[0069] Safety margin is an additional demand margin set to account for service type uncertainty. It reflects the possibility that the actual demand will exceed the average demand level due to fluctuations in the service type distribution of arriving vehicles. It is equal to the square root of the product of the expected number of arriving vehicles at the battery swapping station during the period and the service type variance, multiplied by the robust adjustment coefficient. The square root calculation reflects the scale effect of the number of vehicles. The more vehicles there are, the smaller the proportion of the total demand fluctuation relative to the average level.

[0070] The robustness adjustment coefficient is used to adjust the ratio of the safety margin to the baseline demand. A larger value results in a larger safety margin, a more conservative battery pack demand, and a lower likelihood of service interruptions at battery swapping stations due to underestimating demand. However, this also increases idle inventory. In some embodiments, the robustness adjustment coefficient is between 0.5 and 1.5. In other embodiments, the robustness adjustment coefficient is dynamically adjusted based on the historical demand forecasting error of the battery swapping station, with larger coefficients for stations with larger forecasting errors and smaller coefficients for stations with smaller forecasting errors. In still other embodiments, it is determined based on historical statistics of the difference between the actual number of vehicles arriving and the expected number of vehicles arriving, for example, the ratio of the standard deviation to the mean of the historical difference.

[0071] In this embodiment of the application, the battery pack demand of battery swapping station i in time period t is determined by the following formula:

[0072] In the formula, Let represent the battery pack demand of battery swapping station i during time period t. The superscript ^ indicates that this value is an estimated value from the surrogate model. Let be the expected number of vehicles arriving at battery swapping station i in time period t; B be the set of service types; b be the number of battery packs corresponding to service type b. Let be the probability that battery swapping station i corresponds to service type b in time period t; Bb · This represents the average value for each service type. This is the robust adjustment coefficient; Let the service type variance of battery swapping station i in time period t be denoted as i. · This is for rounding up; the subscript i is the index of the battery swapping station, and t is the index of the time period. In the above formula, the first term... · B b · For the projected average battery pack demand; the second item · A safety margin is set to account for the uncertainty of vehicle service type.

[0073] When all vehicles within the same battery swapping network replace a single battery pack during a single charging session, the service type set degenerates into a single-element set, and the service type variance... The value is zero, so the second term in the above equation is zero, indicating the battery pack requirement. That is equal to the expected number of vehicles arriving at the station. When multiple vehicle models coexist within the battery swapping network, and the number of battery packs required for each model to be replaced during a single charging session varies, the service type variance is not zero. The safety margin term then comes into play, making the obtained battery pack demand robust to fluctuations in the service type distribution. This reduces the risk of fully charged battery packs at swapping stations being depleted mid-session due to underestimated demand. By combining the demand baseline with the safety margin, this embodiment of the application allocates battery pack resources according to average demand levels while reserving a margin for service type uncertainties. This balances avoiding idle fully charged battery packs with mitigating the risk of full-charged battery pack shortages, thereby improving the ability of the obtained battery pack demand to support subsequent scheduling.

[0074] Optionally, obtaining the battery pack demand of each battery swapping station in the predicted time domain further includes: The battery swapping station is also used to provide on-site charging services to vehicles, wherein the on-site charging service is the direct charging of the vehicle's on-board battery pack by the battery swapping station; the service type also includes the on-site charging service, and the number of battery packs replaced in one charging session corresponding to the on-site charging service is zero; the generalized charging cost when a vehicle selects the on-site charging service includes the economic cost and time cost that the vehicle needs to pay to accept the on-site charging service.

[0075] In-station charging service involves the battery swapping station directly applying charging current to the onboard battery pack of an arriving vehicle to increase its state of charge, without removing and replacing the battery pack. The vehicle remains at the charging station throughout the charging process. Compared to battery swapping service: battery swapping service immediately removes the depleted battery pack and replaces it with a fully charged one upon arrival, resulting in a shorter and fixed charging time, but it consumes a fully charged battery pack; in-station charging service does not consume a fully charged battery pack at the station, but the charging time is longer and varies depending on the availability of charging resources at the station, as described later.

[0076] In addition to the service types corresponding to different numbers of battery packs, an additional service type, in-station charging service, is added to the service type set. The number of battery packs replaced per charging session for in-station charging is zero, meaning it contributes zero to the calculation of the average number of battery packs for each service type. When the probability of in-station charging service output by the proxy model is... At this time, these vehicles do not contribute to the demand for battery packs, and the demand for in-station charging services is automatically deducted from the demand for fully charged battery packs, without the need for additional decision variables. Therefore, when the inventory of fully charged battery packs in the station is tight, some vehicles can switch to in-station charging services to narrow the shortage of fully charged battery packs and expand the feasible domain of the scheduling model.

[0077] Whether a vehicle chooses battery swapping or in-station charging is determined by its own comparison of generalized charging costs. The centralized dispatch platform does not assign these services; it only outputs the probability of each battery swapping station corresponding to each service type. In this comparison, the generalized charging cost on the battery swapping side is included in the battery swapping service price of that station (the determination method is described later), while the in-station charging side includes economic and time costs. When the battery swapping service price of a station increases, its generalized charging cost on the battery swapping side also increases. This leads to a higher proportion of authorized vehicles switching to in-station charging, and some vehicles also switch to adjacent battery swapping stations with lower prices. Consequently, the demand for battery packs at that station decreases, resulting in a demand response and inter-station transfer driven by price changes.

[0078] Broadly defined charging costs are categorized into two types based on their nature: economic costs and time costs. Economic costs include direct expenses such as energy consumption and wear and tear on the vehicle while traveling to the battery swapping station, and fees paid for charging. Time costs include the equivalent economic losses corresponding to travel time, queuing time, and charging time. The difference between the two services lies in the calculation methods for charging costs and time: the cost of battery swapping service is the battery swapping service price, and the time spent is a fixed and relatively short battery swapping service time; the cost of in-station charging service is the charging fee, and the time spent is longer and varies depending on the availability of charging resources at the station. Compared to battery swapping service, the additional economic cost of choosing in-station charging service is the charging fee, and the additional time cost is the time loss corresponding to the extended charging time. In some embodiments, the broadly defined charging cost when vehicle n chooses the in-station charging service of battery swapping station i is determined by the following formula:

[0079] In the formula, , , These are the conversion factors for driving time, driving energy consumption, and queuing time, respectively. Let be the dynamic travel time of vehicle n from its current location to battery swapping station i; Let n be the energy consumption of vehicle n traveling to battery swapping station i. Let n be the estimated queuing time after vehicle n arrives at battery swapping station i; This is the conversion factor for economic costs; The price for charging services within the battery swapping station i. · Economic cost refers to the cost of charging a vehicle at an in-station charging service. This refers to the unit time value coefficient for electric heavy-duty trucks. The charging service time within the battery swapping station i; The battery swapping service time for battery swapping station i; · - The first three terms in the formula represent the vehicle's travel time to the battery swapping station, energy consumption, and waiting time; the last two terms represent the additional charging fee when the vehicle chooses the in-station charging service and the time cost incurred due to the extended charging time.

[0080] The economic cost is the fee that a vehicle pays to a battery swapping station to receive in-station charging services: in some embodiments, it is determined based on the energy deficit between the current state of charge of the vehicle's onboard battery pack and a preset delivery threshold, as well as the unit price of the charging service at the battery swapping station; in other embodiments, it is a fixed value, independent of the energy deficit; in still other embodiments, it is determined by the product of the charging service time and the unit price of the charging service.

[0081] Time cost is the equivalent economic loss corresponding to the extra time a vehicle occupies due to choosing in-station charging service. A fixed value is taken, determined by the time from when the vehicle enters the battery swapping station to when it leaves; the charging duration of the in-station charging service is the in-station charging service time. The difference between the two varies depending on the occupancy of charging resources within the station. - The time cost is calculated by multiplying the extra time occupied by the unit time value of the vehicle. · - The value per unit time can be determined based on the vehicle carrier's revenue per unit time, or it can be calculated based on the average timeliness requirements of the fleet.

[0082] The battery swapping service time is the time required for a battery swapping station to complete one battery swapping service. It is determined by the time from when the vehicle enters the battery swapping station to when it leaves, including the time spent on the three stages of battery pack unloading, storage, and loading. Within the same battery swapping station, the battery swapping service time Tswap takes a fixed value.

[0083] The in-station charging service time is the time required for a vehicle to receive in-station charging service from the start of charging to the completion of charging. It is determined by the vehicle's onboard battery pack energy deficit, the charging service power of the battery swapping station, the station's service capacity, and the demand of the battery swapping station during that time period. In some embodiments, the in-station charging service time Tichg(h) of battery swapping station i during time period h is determined by the following formula:

[0084] In the formula, The base charging time factor represents the baseline charging time under the average energy deficit of the vehicle's onboard battery pack. This represents the linear influence coefficient of demand on charging time. The battery pack demand of battery swapping station i during time period h; The effective energy required to complete a full charge of a single standard battery pack; The charging service power for battery swapping stations; This is used as a reference demand quantity to normalize the demand quantity; Based on the baseline queuing waiting time; This represents the secondary impact coefficient of demand on queuing time.

[0085] In the above formula, the first term is the charging time component, which varies with the battery pack's demand. The first term, representing a linear increase in demand, reflects the impact of increased charging resources on the charging time per vehicle when the number of vehicles replenishing the station increases. The second term, representing queuing time, increases twice with demand, reflecting the non-linear intensification of queuing congestion when vehicles are concentrated. Therefore, the charging service time at the station increases with the increase in demand during that period, forming a negative feedback mechanism: the longer the service time, the greater the time cost for subsequent vehicles choosing the station's charging service. · - The larger the battery capacity, the higher the overall charging cost becomes. Vehicles are more likely to choose battery swapping services or switch to other battery swapping stations, thereby avoiding service congestion caused by a large number of charging demands at the same battery swapping station at the same time.

[0086] By treating in-station charging service as a service type with zero packet swaps, the proxy model outputs the probability of in-station charging service along with the probability of each service type. This probability, given within the site selection equilibrium framework, already accounts for the difference in generalized charging costs between in-station charging services and battery swapping services, as well as the vehicle's choice between service types. Substituting this into the aforementioned demand conversion process allows for automatic deduction of the corresponding portion at the demand level. If all battery swapping demand is considered a rigid demand that must be met promptly by fully charged battery packs, then when a battery swapping station's inventory is insufficient and mobile energy storage vehicles cannot arrive in time due to road congestion, the scheduling model may not have a feasible solution, or it may only be able to maintain delivery through high-cost methods such as repeated round trips to congested areas. Allowing some vehicles to switch to in-station charging services means that this portion of demand does not consume fully charged battery packs, the gap narrows accordingly, and previously infeasible transportation solutions become feasible again, thus expanding the feasible domain. Service switching only occurs in small quantities during high-pressure periods when inventory is insufficient and transportation capacity is limited. This application converts some rigid battery swapping demand into an adjustable load boundary, coordinating decision-making with cross-site transportation and in-station charging production to achieve a chain of effects: "relaxed demand boundary—expanded feasible domain—reduced costs."

[0087] Optionally, the battery swapping station is equipped with a new energy power generation device; the electrical energy required for the battery swapping station to charge the battery pack is preferentially supplied by the new energy source. The power generation of the power generation device is provided, and any shortfall in the power generation is purchased from the grid, and the power purchased from the grid does not exceed the upper limit of the power purchase capacity of the battery swapping station; the first status information also includes the electricity purchase price of the node where the battery swapping station is located; the battery swapping service price is determined based on the electricity purchase price, and increases as the electricity purchase price increases relative to the benchmark electricity purchase price; the battery swapping service price includes the generalized charging cost when the vehicle selects the battery swapping station, and the generalized charging cost increases as the battery swapping service price increases.

[0088] The new energy power generation device is a device installed on or near the site of a battery swapping station that uses renewable energy to convert primary energy into electrical energy. In some embodiments, it is a photovoltaic power generation device, consisting of a photovoltaic module array, a support frame, an inverter, and a grid connection interface. It converts solar radiation into DC power and then into AC power via an inverter before inputting it into the charging bus of the battery swapping station. In other embodiments, it is a small wind power generation device. In still other embodiments, it is a photovoltaic and wind power complementary power generation system, in which the two can share the same energy storage buffer device.

[0089] During each scheduling period, the battery swapping station first uses the actual power generated by the renewable energy generation devices in that period to charge the battery packs within the station. The purchase cost of this portion of electricity is zero or significantly lower than the grid purchase cost. When the renewable energy generation is insufficient to charge the target number of battery packs, the shortfall is then purchased from the grid, which means "the insufficient power generation is purchased from the grid." This priority order allows the battery swapping station to complete charging at a lower cost during periods of high renewable energy output, while simultaneously reducing the total amount of electricity purchased from the grid by the battery swapping network.

[0090] A scheduling period includes Np photovoltaic power sampling points, with a time interval between each sampling point being... t, in some embodiments t is set to 5 minutes, and Np is set according to the length of the scheduling period. t and The ratio of t is determined. The photovoltaic energy available for battery swapping station i in time period t is determined by the following formula:

[0091] In the formula, iPV(t) represents the photovoltaic energy available to battery swapping station i during time period t, with the superscript PV indicating that the energy originates from photovoltaic power generation; PiPV(t,m) represents the photovoltaic power generation at the m-th sampling point of battery swapping station i during time period t; t is the time interval between adjacent sampling points; summation symbol =1Np indicates that the photovoltaic power generation of a total of Np sampling points within the scheduling period is accumulated; the subscript i is the index of the battery swapping station, and t is the index of the time period. The above calculation method corresponds to: discretizing the continuously changing photovoltaic power generation at each sampling point by multiplying the instantaneous power value with the sampling interval, and then summing the power generation of Np sampling points to obtain the usable photovoltaic energy within the time period.

[0092] In this embodiment of the application, the charging energy purchased by the battery swapping station i from the grid during time period t is determined by the following formula:

[0093] In the formula, This represents the charging energy purchased by battery swapping station i from the grid during time period t. The superscript grid indicates that this energy originates from the grid. This represents the average charging power drawn from the grid during that period. t is the length of a scheduling period. Power purchase limits must be met:

[0094] Pigrid,max represents the upper limit of the power purchase capacity of battery swapping station i, i.e., the maximum power that the station is allowed to purchase from the grid per unit time. Its value is determined jointly based on the transformer capacity, distribution access capacity, and the upper limit of the charging equipment power of the station. The purpose of setting the upper limit of the power purchase capacity is as follows: when a battery swapping station attracts a large number of vehicles due to its low battery swapping service price, its demand for battery packs increases accordingly. If the power purchase capacity is increased without restriction to expand the charging capacity within the station, it may exceed the carrying capacity of the transformer equipment and distribution lines. After imposing the constraint of the power purchase capacity upper limit, there is an upper limit to the number of fully charged battery packs that the station can produce per unit time period. The part exceeding the upper limit needs to be transported from other battery swapping stations by mobile energy storage vehicles.

[0095] The effective energy required for a single standard battery pack to complete a full charge depends on the battery pack's rated capacity and the upper and lower limits of its state of charge during charging, and is determined by the following formula:

[0096] In the formula, The effective energy required to complete a full charge of a single standard battery pack; The rated capacity of a single standard battery pack; The target state of charge when charging is complete; The initial state of charge (SOC) when the battery pack is put into charging can be determined based on the battery pack type and operating strategy. In some embodiments, Take 95%. Take 10%, then = • 0.85, which is the effective energy required to charge the battery pack from 10% to 95%.

[0097] In this embodiment of the application, considering that there may be residual energy from the previous scheduling period that is not enough to fully charge a battery pack, the total energy available for battery pack charging at battery swapping station i in time period t is determined by the following formula:

[0098] In the formula, The total energy available for charging the battery pack at battery swapping station i during time period t; Battery charging efficiency is the ratio of the effective energy input to the battery pack to the total energy consumed by the charging equipment during the charging process. Its value is less than one, and the difference is dissipated as heat during the charging process. iPV(t) represents the photovoltaic energy available during that period; This refers to the charging energy purchased from the grid during that period; This represents the remaining charging energy carried over from the previous period. The superscript rem indicates remaining energy, which is an abbreviation for residual. It represents the energy that was not fully charged into a battery pack at the end of the previous period and is carried over to this period for continued use. The subscript i is the index of the battery swapping station, and t is the index of the period.

[0099] In this embodiment of the application, the number of battery packs that battery swapping station i can charge during time period t satisfies the following relationship:

[0100] In the formula, Ri(t) represents the number of battery packs that battery swapping station i can charge in time period t, which is the largest integer not exceeding the quotient of Eichr(t) and E0; E0 is the effective energy required for a single standard battery pack to complete one full charge. The remaining portion of the energy that has not reached the charging capacity of a complete battery pack at the end of this time period is determined by the following formula:

[0101] In the formula, Eirem(t) represents the remaining charging energy carried over to the next scheduling period after the current period ends; Eichr(t) represents the total energy available for battery pack charging during this period; Ri(t) represents the number of battery packs that complete charging during this period; and E0 represents the effective energy required for a single standard battery pack to complete a full charge. This remaining energy is not discarded but carried over to the next scheduling period and included in the available charging energy of the next period. Through this carry-over, the situation of the same battery pack charging across time periods can be continuously expressed in the discrete time period model: the charging energy of a battery pack that starts charging in the previous period is included in the remaining energy of the previous period and continues to receive charging in the current period until it reaches E0, that is, it is counted as a battery pack that has completed charging in the current period.

[0102] The first status information also includes the electricity purchase price of the node where the battery swapping station is located, i.e., the cost that the power node where the battery swapping station is located needs to pay to purchase a unit of electricity from the grid during the current dispatch period, which is determined by the electricity market clearing price or the grid's time-of-use price catalog. The electricity purchase price of each node where a battery swapping station is located may be different. For example, a battery swapping station located in an industrial park and a battery swapping station located on the edge of a city may have different electricity purchase prices because their power supply lines are connected to different substations and distribution lines. In some embodiments, the electricity purchase price is obtained by the centralized dispatching platform from the grid's dispatch automation system or reported by the station control equipment of the battery swapping station; in other embodiments, it is obtained by querying the day-ahead time-of-use price table of the power supply area where the battery swapping station is located, and all battery swapping stations in the same power supply area take the same electricity purchase price.

[0103] The battery swapping service price is determined based on the electricity purchase price and increases as the electricity purchase price rises relative to the benchmark electricity purchase price: the battery swapping service price rises when the electricity purchase price rises and falls when it falls, with both moving in the same direction; the benchmark electricity purchase price is a pre-determined reference electricity purchase price under conditions of no price fluctuations. In some embodiments, the battery swapping service price of swapping station i in time period t is denoted as pisw(t) and determined by the following formula:

[0104] In the formula, This represents the battery swapping service price for battery swapping station i during time period t, with the superscript sw indicating the battery swapping service. The benchmark battery swapping service price is the price when the electricity purchase price equals the benchmark electricity purchase price. The effective energy required to complete a full charge of a single standard battery pack; Improve battery charging efficiency; The electricity purchase price of the node where the swapping station i is located in time period t; This is the benchmark electricity purchase price. As can be seen from the above formula, Follow and The price increases with the increase of the difference between the two, and decreases with the decrease, thus achieving the transmission of the electricity purchase price to the battery swapping service price. In some embodiments, the battery swapping service price is included in a fixed service fee item based on the above transmission relationship; in still other embodiments, the operator adds a preset price fluctuation upper and lower limit to ensure that it is neither lower than a preset minimum price nor higher than a preset maximum price. Regardless of the method used, All of these increase with the rise in electricity purchase prices.

[0105] The battery swapping service price is included in the generalized charging cost when a vehicle selects a battery swapping station. That is, when calculating the generalized charging cost for a vehicle traveling to each candidate battery swapping station, in addition to the three cost categories of driving time, driving energy consumption, and queuing time, an additional cost item related to the battery swapping service price is added. In some embodiments, the generalized charging cost when vehicle n selects battery swapping station i is determined by the following formula:

[0106] In the formula, s(t) represents the system state during time period t; Select stations for vehicles other than vehicle n; , , , These are the conversion factors for driving time, driving energy consumption, queuing time, and battery swapping service price, respectively. Let be the dynamic travel time of vehicle n from its current location to battery swapping station i; Let n be the energy consumption of vehicle n traveling to battery swapping station i. Let n be the estimated queuing time after vehicle n arrives at battery swapping station i, which is determined by the station's inventory of fully charged battery packs. The choice of stops varies depending on the vehicle's location; Let i be the battery swapping service price for battery swapping station i during time period t. The value can be determined according to the time value of money of the vehicle carrier, that is, the time value corresponding to each unit of money paid by the vehicle carrier, or it can be determined by inverting the elasticity relationship between price changes and changes in the number of vehicles arriving at the station in the historical station selection records.

[0107] All other things being equal, the larger the value of the battery swapping service price pisw(t) at battery swapping station i, the larger the value of Un,i. Vehicles choose the station with the minimum Un,i after comparing the generalized charging costs of each candidate battery swapping station. Nodes with lower electricity purchase prices have lower battery swapping service prices and lower generalized charging costs for arriving vehicles. In the station selection equilibrium, more vehicles are allocated to this station, leading to an increase in battery pack demand and a corresponding increase in the full-charge gap. The mobile energy storage vehicles are then directed towards this station. Conversely, nodes with higher electricity purchase prices have higher battery swapping service prices and higher generalized charging costs for arriving vehicles. The number of vehicles allocated to this station decreases, and the battery pack demand decreases accordingly. This transmission chain is a complete representation of the price channel, flowing step-by-step from input to output. Price signals enter the station selection equilibrium through this chain, influencing the demand distribution of each battery swapping station, and thus affecting the direction and quantity of mobile energy storage vehicles being transported.

[0108] Combining the aforementioned principles of prioritizing new energy sources, purchasing the remaining energy from the grid, and ensuring that the purchased power does not exceed the upper limit, the transmission chain operates as follows: Battery swapping stations with higher new energy output purchase less charging energy from the grid, resulting in lower electricity costs for producing fully charged battery packs. This leads to lower battery swapping service prices and lower overall vehicle charging costs. Consequently, more vehicles choose these stations during the station selection equilibrium, increasing battery pack demand and widening the full-charge gap. Mobile energy storage vehicles are then guided to these stations. Simultaneously, the upper limit on purchased power caps the maximum value of the station's purchased power. When the influx of vehicles reaches the station's charging capacity boundary corresponding to this upper limit, the full-charge gap exceeding the boundary must be filled by mobile energy storage vehicles transported from other battery swapping stations. This upper limit prevents price signals from attracting excessive demand to a single battery swapping station, exceeding its charging capacity, thus achieving a balance between price guidance and the upper limit constraint on purchased power for cross-station transportation.

[0109] In some embodiments, the differences in electricity purchase prices at each battery swapping station can be predicted before the scheduled date, and correspondingly, the differences in battery swapping service prices can also be predicted before the scheduled date. At each scheduling moment, the centralized dispatch platform inputs the battery swapping service prices of each station as first-state information into the proxy model. The proxy model incorporates the impact of price differences on vehicle station selection in its forward calculations, thus fully reflecting the impact of the three-tiered transmission chain on the spatial distribution of demand in the projected battery pack demand. The resulting mobile energy storage vehicle dispatch direction prioritizes transporting fully charged battery packs to battery swapping stations with lower battery swapping service prices (i.e., lower electricity purchase prices), concentrating battery pack charging tasks on stations with surplus renewable energy or lower electricity purchase prices. This reduces the overall battery production cost of the battery swapping network and increases the local consumption ratio of renewable energy generation.

[0110] Optionally, for vehicles that are not authorized to change their battery swapping service to the in-station charging service, the available service types do not include the in-station charging service; the probability of each battery swapping station corresponding to the in-station charging service output by the agent model does not exceed the authorization demand ratio of the battery swapping station in the corresponding time period; the authorization demand ratio is the proportion of the number of vehicles that the battery swapping station has authorized to change their battery swapping service to the in-station charging service in that time period to the number of vehicles expected to arrive at the battery swapping station in that time period.

[0111] Authorization is a pre-confirmation by the vehicle or its fleet management to the centralized dispatch platform. Upon arrival at a battery swapping station, the vehicle's charging method can be adjusted from immediate battery swapping to in-station charging, depending on the station's full-charge battery pack inventory. Authorization is a pre-confirmation, not a temporary decision upon arrival at the station; unauthorized vehicles cannot have their charging method adjusted. Authorization can be obtained based on the following conditions: the vehicle or its fleet has signed a flexible charging agreement, stipulating terms for accepting charging method adjustments during specific time periods or at specific battery swapping stations; the vehicle carrier has accepted corresponding service compensation, such as in-station charging fees being lower than battery swapping fees, with the difference compensating for the vehicle's extra waiting time; the vehicle's transport task has sufficient time leeway in the current time period, allowing for the completion of subsequent tasks as planned even after extended charging time; and the vehicle confirms acceptance of in-station charging services in real-time via its onboard terminal. These conditions can be agreed upon in advance by the operator and carrier, and the centralized dispatch platform updates the authorization demand ratio for each battery swapping station based on the vehicle's authorization status at each dispatch time.

[0112] For vehicles that are not authorized to adjust their charging method, at the input level of the proxy model, the set of service types available to them after arriving at the battery swapping station does not include in-station charging service, meaning they can only choose battery swapping service. At the output level, the service type probability is the proportion of all vehicles expected to arrive at the battery swapping station during that time period that choose each service type. The probability of in-station charging service only reflects the portion of authorized vehicles that may choose in-station charging service. Therefore, the in-station charging service probability output by the proxy model will not exceed the proportion of authorized vehicles among all expected arriving vehicles.

[0113] The authorized demand ratio is the proportion of vehicles authorized to switch from battery swapping to on-site charging services at a battery swapping station within a certain time period, relative to the total number of vehicles expected to arrive at the station during that time period. This ratio is calculated by the centralized dispatch platform based on the pre-authorization status and expected arrival time of each vehicle, timed by time. Because each vehicle's onboard terminal communicates with the centralized dispatch platform, if a vehicle cancels its authorization before the scheduled time or no longer has time margin due to a change in transportation tasks, the centralized dispatch platform will automatically reassign the vehicle. Remove from the middle. The value is updated accordingly.

[0114] When the proxy model outputs the probability of each battery swapping station corresponding to each service type, its output probability of in-station charging service is constrained by an upper limit on the authorized demand ratio, i.e., it cannot exceed the authorized demand ratio of that battery swapping station in the corresponding time period. This constraint, in terms of demand, can be expressed as:

[0115] In the formula, For battery swapping station i, the flexible fulfillment adjustment amount for switching from instant battery swapping service to in-station charging service during time period h; The proportion of authorized demand for battery swapping station i during time period h; The constraint is applied to the battery pack demand of battery swapping station i during time period h, and is applied separately to each battery swapping station during each time period. When the value is zero, it means that no vehicle is authorized to charge at the battery swapping station during that time period. It is also zero. The service type probability distribution output by the proxy model does not include in-station charging services. All expected arriving vehicles correspond to the battery swapping service type.

[0116] There are several ways to implement probabilistic constraints in a proxy model: In some embodiments, the service type probability output layer first calculates the initial probability value of each service type in an unconstrained manner, and then checks whether the initial probability of the in-station charging service exceeds the limit. If it exceeds the limit, it will be truncated to... The excess portion is then proportionally redistributed to the probabilities of each battery swapping service type, ensuring that the sum of the probabilities for all service types remains one; in other embodiments, As one of the input features of the battery swapping station during that time period, a dynamic state input is incorporated, allowing the proxy model to know the upper limit of the authorized ratio during the feature extraction stage, thereby automatically satisfying this constraint when outputting probabilities. In some other embodiments, the proxy model does not directly output the in-station charging service probability, but instead outputs the battery swapping service type probability after the centralized scheduling platform... The upper limit of the probability of charging service within the station is calculated separately, and together with the probabilities of other service types output by the proxy model, they are normalized to form a complete service type probability distribution.

[0117] The relationship between the authorized demand ratio and the charging service time within the station is as follows: when When the value is large, the battery swapping station has more authorized vehicles during that period. The agent model is not constrained by an upper limit when outputting a higher probability of in-station charging service, allowing more vehicles to choose in-station charging. This reduces the demand for fully charged battery packs at the demand level. Simultaneously, the demand for battery packs during that period... The corresponding amount is relatively large, and the charging service time at the station is relatively short. Consequently, the time cost item is extended. · - As the cost of charging increases, the generalized charging cost for subsequent vehicles rises. This negative feedback automatically suppresses the selection ratio of in-station charging services during the site selection equilibrium, without the need to set an upper limit in addition to probability constraints.

[0118] Conversely, when Even when the value is small or even zero, and the elastic fulfillment adjustment is very small, the in-station charging service time is only slightly longer than the battery swapping service time, and the time cost is very small, the probability of in-station charging service output by the proxy model cannot exceed [the specified value]. This means that the probability limit is capped by the authorization end. At this time, regardless of whether the vehicle tends to choose in-station charging service during the station selection process, its final choice is constrained by the authorization status. The available service types for unauthorized vehicles do not include in-station charging service, so they cannot automatically switch to in-station charging service due to the lower generalized charging cost.

[0119] The purpose of setting probabilistic constraints is to prevent the predicted demand for in-station charging services from exceeding the actual switchable capacity, thus rendering the scheduling plan unenforceable. Without probabilistic constraints, the probability of in-station charging services output by the proxy model may exceed the proportion of vehicles actually authorized at the battery swapping station during that period. Consequently, the deduction for in-station charging services in the calculated battery pack demand may be greater than the actual switchable capacity. When determining the full-charge gap and arranging the dispatch plan based on this deducted demand, only authorized vehicles can switch to in-station charging services in actual operation, while unauthorized vehicles still require battery swapping. This results in the actual consumption of fully charged battery packs exceeding the predicted value, leading to a shortage of fully charged battery packs during the execution of the scheduling plan. By applying probabilistic constraints, the probability of in-station charging services is limited to the actual authorized proportion, and the deduction matches the actual switchable capacity, thus ensuring the executability of the scheduling plan.

[0120] Optionally, determining the first scheduling information of the battery swapping station and the second scheduling information of each mobile energy storage vehicle includes: Generate an initial scheduling scheme; Obtain the current scheduling scheme; wherein the scheduling scheme includes the order of the battery swapping stations visited by each mobile energy storage vehicle and the travel path; according to the target removal method, remove some battery swapping stations from the travel path of the current scheduling scheme to obtain a first path; wherein the target removal method is determined according to the first weight corresponding to each preset removal method; according to the target insertion method, re-insert at least some of the removed battery swapping stations into the first path to obtain a second path; wherein the target insertion method is determined according to the second weight corresponding to each preset insertion method; with the goal of minimizing operating cost, determine the candidate scheduling scheme corresponding to the second path and the operating cost corresponding to the candidate scheduling scheme; according to the operating cost corresponding to the candidate scheduling scheme, the operating cost corresponding to the current scheduling scheme, and the preset acceptance criteria, determine whether to accept the candidate scheduling scheme to obtain the current scheduling scheme for the next execution; according to whether the candidate scheduling scheme is accepted, update the first weight corresponding to the target removal method and the second weight corresponding to the target insertion method; repeat the execution to obtain multiple candidate scheduling schemes until a preset termination condition is met; from the initial scheduling scheme and the obtained candidate scheduling schemes, determine the scheduling scheme with the lowest operating cost to obtain the target scheduling scheme.

[0121] The above solution process can be understood as an adaptive large neighborhood search algorithm: the travel path of the mobile energy storage vehicle and the order in which it visits battery swapping stations are used as the outer search objects. The algorithm searches the feasible path space by repeatedly removing and reinserting a portion of the visiting stations. The inner layer, with the outer path fixed, determines the number of battery packs charged at each battery swapping station, the loading and unloading volume of each mobile energy storage vehicle at each station, and calculates the corresponding operating costs. Each adjustment to the outer path triggers a recalculation of the inner energy allocation scheme, and the two are optimized collaboratively in the same search round. Figure 4 The diagram shown is a flowchart of a collaborative solution process for dynamic partitioning and adaptive large neighborhood search provided in an embodiment of this application. The diagram illustrates the collaborative solution process from the generation of an initial scheduling scheme through dynamic partitioning, to the removal and insertion of outer paths, optimization of inner energy, reception determination and weight update, and finally to the output of the target scheduling scheme.

[0122] The current scheduling scheme is the one held in the current iteration, including the order in which each mobile energy storage vehicle visits the battery swapping stations and its travel path. In the first iteration, the current scheduling scheme is the initial scheduling scheme; in subsequent iterations, it is the scheduling scheme accepted or maintained in the previous iteration. The travel path of each mobile energy storage vehicle is its complete route from its current location, sequentially visiting a series of battery swapping stations, and stopping at a specific battery swapping station after each visit. The battery swapping stations visited by different mobile energy storage vehicles can be the same or different. The same battery swapping station can be visited by multiple mobile energy storage vehicles in the same trip, with the order determined by the arrival times of each vehicle.

[0123] The removal method is a rule that selects and deletes several battery swapping station access nodes from the current scheduling plan's travel path. Several methods are pre-defined, each assigned a weight. The target removal method is the actual removal method used in the current iteration. It is determined based on the first weight of each removal method, using a roulette wheel selection, probability matching, or other random selection strategy. The higher the first weight, the greater the probability of the removal method being selected. The removed battery swapping stations, their pre-removal mobile energy storage vehicles, and insertion locations are all recorded for use in subsequent insertion steps. The vacant positions created after removal are not closed in the resulting first path, awaiting filling in the insertion step.

[0124] The first path is an intermediate path obtained after removing some battery swapping station access nodes from the current scheduling scheme's travel path. The number of battery swapping stations accessed by each mobile energy storage vehicle is less than the corresponding number in the current scheduling scheme. The first path is a path where some access nodes are missing. The goal of the subsequent insertion steps is to re-insert the removed battery swapping stations into reasonable access positions in the first path in order to construct a complete second path.

[0125] The insertion method is a rule for re-inserting a removed battery swapping station into the first path. Several methods are pre-defined, each assigned a weight. The target insertion method is the actual insertion method used in the current iteration. It is determined based on the second weight of each insertion method, using a roulette wheel selection, probability matching, or other random selection strategy. The higher the second weight, the greater the probability of the insertion method being selected.

[0126] The second path is the complete path obtained by re-inserting all or part of the removed battery swapping stations into the first path using the target insertion method. If all removed battery swapping stations are re-inserted, the number of battery swapping stations accessed by each mobile energy storage vehicle in the second path is the same as the current scheduling scheme, but the access order or the pairing relationship between battery swapping stations and mobile energy storage vehicles may be different. In other embodiments, the target insertion method allows only a portion of the removed battery swapping stations to be re-inserted. For example, when a battery swapping station is abandoned after being removed because all candidate insertion positions would lead to a significant increase in operating costs, the total number of battery swapping stations accessed by the mobile energy storage vehicle in the second path is less than the current scheduling scheme. The abandonment of insertion of a battery swapping station does not mean that its energy replenishment demand is canceled, but rather that it is met by charging within the station itself. The corresponding operating cost is reflected in the operating cost calculation of the candidate scheduling scheme.

[0127] The candidate scheduling scheme is a complete set of scheduling schemes obtained by solving the number of battery packs charged at each battery swapping station, the unloading volume of fully charged battery packs and the unloading volume of depleted battery packs of each mobile energy storage vehicle at each battery swapping station, while keeping the travel path of the second route unchanged. The solution aims to minimize the operating cost corresponding to the second route, and ensures that the number of battery packs charged at each battery swapping station in each time period does not exceed the upper limit of the number of charging completed corresponding to its available charging energy, that the sum of the number of fully charged battery packs and the number of depleted battery packs carried by any mobile energy storage vehicle in any time period does not exceed its maximum loading capacity, and that the unloading volume of fully charged battery packs of mobile energy storage vehicles at any battery swapping station does not exceed the full-charged battery pack inventory of that battery swapping station in the corresponding time period, and the unloading volume of depleted battery packs does not exceed the depleted battery pack inventory of that battery swapping station in the corresponding time period.

[0128] The acceptance criterion is a decision rule for whether to replace the current scheduling scheme with a candidate scheduling scheme, and it is a simulated annealing-type acceptance criterion. In some embodiments: if the operating cost of the candidate scheduling scheme is lower than that of the current scheduling scheme, the candidate scheduling scheme is accepted and used as the current scheduling scheme for the next iteration; if the operating cost of the candidate scheduling scheme is not lower than that of the current scheduling scheme, the candidate scheduling scheme is accepted with a preset probability, which gradually decreases as the number of iterations increases. The mechanism of accepting candidate scheduling schemes with higher costs allows the search process to escape from local optima, avoiding getting trapped in local optima in the early stages of the search and being unable to continue exploring feasible regions with lower costs.

[0129] The first weight represents the degree to which the corresponding removal method is favorably selected in the roulette wheel selection. Initially, the first weights of each removal method can be set to equal values, or empirically set to different initial values. After each iteration, the first weight of the removal method is updated based on the results of that iteration, including whether the candidate scheduling scheme generated by the removal method is accepted, whether it reduces operating costs, and whether it generates a new globally optimal solution. In some embodiments, for any removal method o, its weight is updated according to the following formula:

[0130] In the formula, The removal method is the weight before the weight update in round r; Let its weight be the weight after the weight update in the r-th round; This represents the cumulative score obtained by this removal method within the current weight update cycle; This represents the number of times the removal method is used within the current weight update cycle; max{1, Used to avoid zeroing in the denominator; This is the weight update coefficient, with a value between 0 and 1, used to control the speed at which weights are updated to recent scores. The larger the value, the faster the weight updates to recent results, and the stronger the adaptability to recent search results. The smaller the value, the stronger the weight's ability to maintain historical trends and the lower its sensitivity to single, accidental results.

[0131] The second weight is updated in the same way as the first weight; that is, for any insertion method o', its weight is updated using the same weighted average form as the above formula, where... 'r' represents the cumulative score of this insertion method within the current weight update period. 'r' indicates the number of times it is used.

[0132] The cumulative score is determined according to the following rules: Within each weight update cycle, if a candidate scheduling scheme corresponding to a removal or insertion method produces a new globally optimal solution, the highest score tier is added to that method; if it does not produce a new globally optimal solution, but its operating cost is lower than the operating cost of the current scheduling scheme and it is accepted, the intermediate score tier is added to that method; if it does not reduce operating cost but is accepted according to the acceptance criteria, the basic score tier is added to that method; if it is not accepted, the method does not add points in this cycle. These scoring rules ensure that removal and insertion methods that produce high-quality candidate solutions have a higher selection probability in subsequent iterations, thereby guiding the search towards more effective adjustment strategies.

[0133] The process described above—"obtaining the current scheduling scheme → removing the target → inserting the target → solving for the candidate scheduling scheme → receiving and determining the target → updating the weights → repeating the process"—can be iterated multiple times. The preset termination conditions can include any one or a combination of the following: the number of iterations reaches the preset maximum number of iterations; the computation time reaches the preset maximum computation time limit; the optimal operating cost has not decreased further in several consecutive iterations, i.e., the search has converged; or any combination of the above conditions.

[0134] After the iteration terminates, all feasible scheduling schemes that appeared during the solution process are backtracked, including the initial scheduling scheme and all candidate scheduling schemes generated in each iteration. The scheduling scheme with the minimum operating cost is selected as the final output target scheduling scheme, which includes the first scheduling information of each battery swapping station and the second scheduling information of each mobile energy storage vehicle.

[0135] The iterative solution described above involves two levels of search objects: the order in which mobile energy storage vehicles visit battery swapping stations and their travel paths are the outer search objects, adjusted round by round through removal and insertion operations; the number of charging sessions at each battery swapping station during each time period and the number of loading and unloading operations for each mobile energy storage vehicle at each battery swapping station are the inner solution objects, determined under the condition that the given path in the outer layer remains unchanged. After the inner layer completes the solution, the operating cost corresponding to this set of quantities is returned to the outer layer as the evaluation value of that path; if a path cannot find an energy allocation scheme that satisfies all physical constraints in the inner layer, then that path is considered infeasible. This collaborative approach decomposes the hybrid optimization problem, which couples discrete path variables with continuous energy variables, into two layers. The two layers are coordinated through operating cost feedback. Each outer-layer path adjustment only requires one inner-layer solution to obtain a complete evaluation, avoiding the huge computational burden of jointly searching all paths and energy allocation schemes in the complete road network. Adaptive weights concentrate removal and insertion operations towards the direction of generating high-quality candidate schemes in the near future. The acceptance criterion allows for the acceptance of candidate schemes with higher operating costs with a certain probability to escape local optima, enabling the search to enter the feasible region with lower operating costs within a preset number of evaluations or computation time limit.

[0136] Optionally, before obtaining the current scheduling scheme, the method further includes generating the initial scheduling scheme, which includes: Using the spatial location of each battery swapping station as the clustering object and the battery pack demand of that station within the predicted time domain as the clustering weight, the battery swapping network is divided into multiple service subdomains. For any service subdomain, the battery margin of that service subdomain is determined based on the fully charged battery pack inventory of each battery swapping station within that service subdomain, the expected number of battery packs to be charged, the battery pack demand, and the number of fully charged battery packs carried by the mobile energy storage vehicles located within that service subdomain. When the battery margin is not less than zero, candidate driving paths are generated for the mobile energy storage vehicles within that service subdomain. When the battery margin is less than zero, cross-subdomain candidate driving paths are generated from other service subdomains with positive battery margins leading to that service subdomain. Based on the generated candidate driving paths, the order of battery swapping stations visited by each mobile energy storage vehicle and the driving path are determined in the initial scheduling scheme.

[0137] The initial scheduling scheme is the first current scheduling scheme held before the adaptive large neighborhood search begins iterations. Its quality affects the convergence speed of subsequent iterations: if the initial scheme is already in a feasible region with low operating costs, subsequent iterations can start from that region to continue searching for a better scheme; if the initial scheme is infeasible or has extremely high operating costs, subsequent iterations will require more evaluation attempts to correct unreasonable paths in the initial scheme. Therefore, the generation of the initial scheduling scheme should utilize the spatial structure and demand distribution information of the battery swapping network, avoiding random generation within the complete road network.

[0138] A service subdomain is a subset of all battery swapping stations in the network, grouped according to their spatial location and battery pack demand. Each subset corresponds to a service subdomain. Battery swapping stations within the same service subdomain are relatively clustered in space and have a certain degree of coordination in terms of battery swapping demand. Mobile energy storage vehicles prioritize performing battery pack transportation tasks within their respective service subdomains.

[0139] The process of dividing the battery swapping network into multiple service subdomains by using the spatial location of each swapping station as the clustering object and the battery pack demand of that swapping station in the predicted time domain as the clustering weight can be understood as a demand-weighted spatial clustering process. Its objective is to minimize the sum of squared weighted distances from each swapping station to the centroid of its respective service subdomain.

[0140] In the formula, Jpart(t) is the objective function value of dynamic partitioning; C(t) is the set of centroid vectors of each service subdomain; M is the total number of service subdomains; m is the number of the service subdomain; Zm is the set of battery swapping stations included in the m-th service subdomain; and pi is the spatial coordinate vector of battery swapping station i. (t) is the centroid vector of the m-th service subdomain in time period t; |·| is the Euclidean norm; The battery pack demand of battery swapping station i in time period t is given by the proxy model in the aforementioned steps; The value is a preset small positive number. Its function is to ensure that when the battery pack demand of a certain battery swapping station is zero, the station retains a small spatial weight and will not completely lose its spatial affiliation due to zero demand. As can be seen from the above formula, the larger the battery pack demand of a battery swapping station, the greater its weighted distance contribution to the centroid and the stronger its influence on the location of the cluster centroid: when the demand of a certain battery swapping station increases significantly, its increased demand weight will pull the centroid of its service subdomain to move towards itself, and the spatial coverage will expand towards the high-demand battery swapping station; conversely, when the demand decreases, the pulling force weakens, and the spatial coverage shrinks accordingly.

[0141] The total number of service subdomains, M, can be determined comprehensively based on the total number of battery swapping stations in the battery swapping network, the number of mobile energy storage vehicles, and the calculation time limit requirements for each scheduling moment. The value of M should not be too large, otherwise the number of battery swapping stations in each service subdomain will be too small, the optional space of paths within the service subdomain will be too small, and cross-subdomain support will be frequently triggered; it should also not be too small, otherwise the number of battery swapping stations in each service subdomain will be too large, and the effect of dynamic partitioning to compress the search range will not be obvious.

[0142] Battery margin is a comprehensive indicator used to measure whether the fully charged battery pack resources within a service subdomain have a surplus or a shortfall after meeting the battery swapping needs within that subdomain. For the m-th service subdomain, its battery margin is determined by the following formula:

[0143] In the formula, Mm (t) represents the battery margin of the m-th service subdomain in time period t; Ripred(t) represents the fully charged battery pack inventory of swap station i in time period t; Ripred(t) represents the number of fully charged battery packs that swap station i is expected to be able to complete charging and production within the predicted time domain. Let represent the battery pack demand of battery swapping station i during time period t; summation symbol. Zm represents the summation of all battery swapping stations within the m-th service subdomain; m(t) represents the set of mobile energy storage vehicles currently located within this service subdomain or capable of reaching this service subdomain within the predicted time domain; NkF(t) represents the number of fully charged battery packs loaded by mobile energy storage vehicle k in time period t. (t) A value greater than zero indicates that the total resources of fully charged battery packs in this service subdomain are sufficient to support other service subdomains; a value equal to zero indicates that the internal supply and demand are exactly balanced; a value less than zero indicates that there is a shortage and that resources need to be transferred from other service subdomains.

[0144] When the fully charged battery pack resources in a service subdomain are sufficient to meet the battery swapping needs within that subdomain, cross-subdomain support is not triggered. The candidate travel paths for mobile energy storage vehicles are generated only between battery swapping stations within their respective service subdomains, thus reducing the node range for candidate path searching. If a service subdomain has two battery swapping stations, the number of possible combinations and sequences of battery swapping stations accessible to the mobile energy storage vehicle within that subdomain is far fewer than the number of searches conducted among the six battery swapping stations across the entire network. When generating candidate travel paths within a service subdomain, priority can be given to the battery swapping station with the largest full-charge battery pack shortage, the battery swapping station with the shortest dynamic travel time, or the task that can alleviate the largest full-charge battery pack shortage within a unit of transport time. Furthermore, mobile energy storage vehicle paths that were not executed in the previous scheduling cycle but are still feasible in the current state are also retained as candidate travel paths.

[0145] When the fully charged battery pack resources in a service subdomain are insufficient to meet the battery swapping demand within that subdomain, i.e., that service subdomain is a demand subdomain, a mobile energy storage vehicle is selected from other service subdomains with positive battery margins (i.e., surplus fully charged battery packs and available transport capacity). A cross-subdomain candidate travel path is generated for this vehicle, allowing it to travel from the surplus service subdomain to the battery swapping station within the demand subdomain. Cross-subdomain support prioritizes mobile energy storage vehicles that meet the following criteria: low road traffic impedance (i.e., their travel path from their current location to the battery swapping station within the demand subdomain does not pass through severely congested sections); a large number of fully charged battery packs are carried; and they can reach the target battery swapping station within the demand subdomain within the predicted timeframe. If no feasible support solution meets the above conditions, an infeasible cross-subdomain task is not forcibly generated. In this case, the shortage of fully charged battery packs in that service subdomain is alleviated by other feasible measures such as in-station charging production and flexible fulfillment.

[0146] Dynamic partitioning is used to organize the path search range of the initial scheduling scheme and reduce the number of candidate access nodes: when generating the initial scheduling scheme, candidate driving paths are generated first within each service subdomain, and cross-subdomain candidate paths are only supplemented from other service subdomains when battery margin is insufficient. Removal and insertion operations in subsequent iterations adjust the mobile energy storage vehicle paths within the complete road network, without being restricted by service subdomain boundaries. Dynamic partitioning does not change the complete road network, nor does it delete the originally feasible scheduling paths of the mobile energy storage vehicles; cross-subdomain candidate driving paths generated under the dynamic partitioning framework still need to have their travel time, energy consumption, and arrival time calculated on the complete dynamic road network, and must satisfy the same vehicle constraints, inventory constraints, and time constraints as intra-regional paths. Therefore, dynamic partitioning reduces the computational load required to generate feasible schemes for the first time by limiting the search starting point of the initial scheme without sacrificing the global feasibility of the scheduling scheme.

[0147] Based on the generated candidate travel paths, including candidate paths within each service subdomain and candidate paths across subdomains, the order of battery swapping stations visited by each mobile energy storage vehicle and the travel path are determined in the initial scheduling scheme. In some embodiments, the combination of paths that minimizes the operating cost is selected from all candidate travel paths as the initial scheduling scheme; in other embodiments, candidate travel paths are assigned to mobile energy storage vehicles one by one in a greedy manner. After each vehicle is assigned, the expected fully charged battery pack inventory of each battery swapping station is updated. The next vehicle selects its candidate travel path based on the assignment result of the previous vehicle, until all mobile energy storage vehicles have been assigned, and the path combination at this time is used as the initial scheduling scheme.

[0148] The initial scheduling scheme is generated by using the spatial structure and demand distribution information of the battery swapping network to determine the search starting point, enabling the adaptive large neighborhood search to start iterating from feasible areas with lower operating costs, reducing the number of evaluations used in subsequent iterations to correct unreasonable paths; the generation of battery margin-oriented intra-regional and cross-subdomain paths prioritizes the allocation of mobile energy storage vehicle capacity to service subdomains with tight supply and demand, improving the utilization efficiency of limited capacity in the initial scheme, and laying the foundation for subsequent iterations to converge to a scheduling scheme with lower operating costs.

[0149] Optionally, dividing the battery swapping network into multiple service subdomains includes: The centroids of each service subdomain obtained from the previous scheduling time are used as the initial centroids of the clustering at the current scheduling time. Based on the initial centroids, the centroids of each service subdomain are iteratively adjusted until the clustering converges, thus obtaining the service subdomain partitioning at the current scheduling time.

[0150] The centroid is the spatially weighted center of a service subdomain, determined by the spatial location of each battery swapping station and the demand for battery packs in demand-weighted dynamic partitioning. Stations with higher demand exert a greater pull on the centroid, causing it to shift towards those stations. When the spatial distribution of demand within the battery swapping network changes—for example, if demand at a certain area increases after several hours—the centroid of the corresponding service subdomain moves accordingly, and the spatial boundaries of the service subdomain adjust.

[0151] The rolling scheduling of the battery swapping network is re-executed every scheduling period, such as 15 minutes. Between two adjacent scheduling moments, road traffic conditions, the inventory of fully charged battery packs at swapping stations, and vehicle battery swapping demand typically change only slightly, and the spatial distribution centroid of battery swapping demand does not change significantly. If the clustering starts from a random initial centroid at each scheduling moment, even if the spatial distribution of demand does not change much, the clustering result may differ significantly from the partitioning result of the previous scheduling moment due to the randomness of the initial centroid. This can lead to unnecessary jumps in service subdomain boundaries between two adjacent moments. A change in partition boundaries means that a swapping station that was assigned to service subdomain A in the previous moment may be assigned to service subdomain B in the next moment, and the priority search range of the corresponding mobile energy storage vehicle changes. If a mobile energy storage vehicle is already performing a cross-service subdomain transfer task at this time, its task assignment and path may need to be re-evaluated after the partition change, increasing the discontinuity of the scheduling scheme between adjacent moments.

[0152] To address the aforementioned issues, this embodiment uses the centroids of each service subdomain converged at the previous scheduling time as the initial centroids for clustering at the current scheduling time. This inheritance relationship can be represented as:

[0153] In the formula, c is the initial centroid vector at the start of clustering at the current scheduling time t; (t - t) represents the previous scheduling time t - t is the centroid vector after convergence; t is the length of a scheduling period.

[0154] Starting from the initial centroid, perform clustering iteration: divide each battery swapping station into the service subdomain corresponding to the nearest centroid, and then update the centroid according to the weighted average of the battery swapping stations in each service subdomain. Repeat the above division and update process until the centroid position no longer changes or the change is less than the preset threshold, that is, the clustering converges, and the service subdomain division at the current scheduling time is obtained.

[0155] At the initial scheduling time, i.e., t=0, there is no convergence centroid from the previous scheduling time to inherit. At the initial time, the initial centroid can be determined by random initial centroid, initial centroid evenly distributed according to the spatial location of the battery swapping stations, or initial centroid determined by the weighted average of the spatial location of the battery swapping stations and the predicted demand. After multiple rounds of iteration and convergence, the service subdomain partition at the initial time is obtained. From the second scheduling time onwards, each scheduling time inherits the convergence centroid from the previous time as the initial centroid.

[0156] The aforementioned inheritance relationship reduces the computational cost of clustering iterations at the current scheduling moment. Since road traffic conditions, battery pack inventory at swapping stations, and vehicle swapping demand typically change only slightly between adjacent scheduling moments, the centroids of each service subdomain generally change slowly between adjacent scheduling moments. By using the centroid converged at the previous scheduling moment as the initial centroid, the iteration starting point is already close to the convergence point, and convergence usually occurs after only a few rounds of partitioning and updating. This reduces the computational cost required for each dynamic partition and shortens the generation time of the initial scheduling scheme. Simultaneously, the converged centroid position is close to the previous moment, the service subdomain boundaries remain stable, and the priority search range for mobile energy storage vehicles remains continuous between adjacent moments. If the spatial distribution of demand changes significantly, for example, due to the completion of a large transportation task leading to a sharp decrease in swapping station demand in one area while a sharp increase in demand in another area, the clustering iteration using the inherited centroid as the initial centroid will still converge to the new centroid distribution, and the service subdomain boundaries will adjust accordingly. Centroid inheritance reduces the computational cost of clustering iterations and maintains partition stability when demand fluctuates slightly, while allowing partitions to adjust even when demand changes significantly.

[0157] Optionally, determining the number of battery packs being charged at each battery swapping station and the unloading quantities of fully charged and depleted battery packs for each mobile energy storage vehicle at each battery swapping station includes: Under the condition that the travel paths of the candidate scheduling schemes remain unchanged, the number of battery packs charged by each battery swapping station in each time period within the predicted time domain is determined, such that the number of battery packs charged by each battery swapping station in each time period does not exceed the upper limit of the number of charging completed corresponding to the available charging energy of the battery swapping station in that time period; the unloading volume of fully charged battery packs and depleted battery packs of each mobile energy storage vehicle at each battery swapping station is determined, such that the sum of the number of fully charged battery packs and the number of depleted battery packs carried by any mobile energy storage vehicle in any time period does not exceed the maximum loading capacity of the mobile energy storage vehicle, and the unloading volume of fully charged battery packs of the mobile energy storage vehicle at any battery swapping station does not exceed the inventory of fully charged battery packs of the battery swapping station in the corresponding time period, and the unloading volume of depleted battery packs does not exceed the inventory of depleted battery packs of the battery swapping station in the corresponding time period; the operating cost of the battery swapping network is calculated based on the number of battery packs charged in each battery swapping station and the unloading volume of fully charged battery packs and depleted battery packs of each mobile energy storage vehicle at each battery swapping station.

[0158] The above constraints are the constraints for the inner-layer energy optimization. After the outer-layer path search of the adaptive large neighborhood search determines the travel path of each mobile energy storage vehicle and the estimated arrival time of each battery swapping station, the inner layer determines the number of charging battery packs in each battery swapping station for each time period and the number of mobile energy storage vehicles loaded and unloaded at each battery swapping station, under the condition that the path remains unchanged. It must meet the upper limit constraint of the number of charging completed, the carrying capacity constraint of the mobile energy storage vehicle, and the inventory constraint of each battery swapping station. Candidate scheduling schemes that violate any of the constraints are not accepted.

[0159] The number of battery packs charged at each battery swapping station during each time period shall not exceed the upper limit of the number of battery packs that can be charged corresponding to the available charging energy of that station during that time period. This can be understood as follows: the available charging energy Eichr(t) of battery swapping station i in time period t is jointly determined by the new energy generation energy, purchased energy, and the remaining charging energy carried over from the previous time period during that time period; the upper limit Ri(t) of the number of battery packs that the station can charge during that time period satisfies:

[0160] Where E0 is the effective energy required for a single standard battery pack to complete a full charge. The number of battery packs actually scheduled for charging at the swapping station during this period must not exceed this upper limit Ri(t); violating this constraint means that the charging task scheduled by the swapping station during this period exceeds the energy supply capacity of its charging equipment during this period, and the charging task cannot actually be completed.

[0161] The statement that the sum of the number of fully charged battery packs and the number of depleted battery packs carried by any mobile energy storage vehicle at any given time period does not exceed the maximum loading capacity of the mobile energy storage vehicle can be understood as follows: In any given time period h, the total number of all battery packs stored on the platform of mobile energy storage vehicle k, regardless of whether they are fully charged or depleted, does not exceed the maximum loading capacity designed for the mobile energy storage vehicle at the time of manufacture. ,Right now + When the mobile energy storage vehicle unloads its fully charged battery pack at a battery swapping station, By reducing the number of battery packs, the carrying platform frees up space, allowing for the loading of an equal or fewer depleted battery packs at the same battery swapping station. Conversely, unloading depleted battery packs allows for the loading of fully charged battery packs at the same station. Through the combined loading and unloading of fully charged and depleted battery packs at the same battery swapping station, the mobile energy storage vehicle maintains its carrying platform within its maximum loading capacity during operation, simultaneously completing the bidirectional transport of both fully charged and depleted battery packs.

[0162] The load status of mobile energy storage vehicle k in time period h is updated recursively based on the load status of its previous time period and the loading / unloading volume of the current time period:

[0163]

[0164] In the formula, , These represent the number of fully charged battery packs and the number of depleted battery packs loaded by the mobile energy storage vehicle k during time period h, respectively. This is a binary variable representing whether the mobile energy storage vehicle k stops at the battery swapping station i during time period h. The value is 1 when it stops and 0 otherwise. This represents the net exchange volume of fully charged battery packs between mobile energy storage vehicle k and battery swapping station i during time period h. Positive values ​​indicate loading, and negative values ​​indicate unloading. This refers to the net exchange volume of a depleted battery pack, with the same notation convention. This is a collection of battery swapping stations. The above recursive relationship accumulates the loading and unloading volumes of each time period to the load status, ensuring that the loading quantity of the carrying platform is continuous in time and avoiding a mismatch between the loading and unloading volume of mobile energy storage vehicles in a certain time period and the load status of the preceding and following time periods.

[0165] The statement that the unloading volume of fully charged battery packs by the mobile energy storage vehicle at any battery swapping station shall not exceed the inventory of fully charged battery packs at that station during the corresponding time period, and the unloading volume of depleted battery packs shall not exceed the inventory of depleted battery packs at that station during the corresponding time period, can be understood as: when the mobile energy storage vehicle k is loaded with a fully charged battery pack at battery swapping station i, i.e. Take a positive value, and the number loaded shall not exceed the fully charged battery pack inventory of the battery swapping station during that period. When the mobile energy storage vehicle unloads the fully charged battery pack, that is... Taking a negative value, the unloading quantity does not exceed the current capacity of the battery swapping station. However, unloading a fully charged battery pack to a station only increases its inventory without depleting it; this direction is not subject to the upper limit constraint of the fully charged battery pack inventory. The constraint on the unloading quantity of depleted battery packs is symmetrical: the loading quantity does not exceed the depleted battery pack inventory of the battery swapping station during that period. Unloading is not constrained by the inventory of depleted battery packs.

[0166] Mobile energy storage vehicles are only permitted to unload and reload battery packs when they are actually parked at a battery swapping station node. The constraint relationship between loading / unloading volume and stationary status is as follows:

[0167] In the formula, The value represents the net battery pack exchange volume between the mobile energy storage vehicle k and the battery swapping station i during time period h. The superscript f represents a fully charged battery pack (F) and a depleted battery pack (D). This is a binary variable representing whether the mobile energy storage vehicle k stops at the battery swapping station i during time period h. The value is 1 when it stops and 0 otherwise. This represents the maximum loading capacity of the mobile energy storage vehicle. When the mobile energy storage vehicle k does not remain at the battery swapping station i during time period h, When the value is 0, the right side of the above equation is zero, and the inequality forces the unloading volume of both fully charged and depleted battery packs of the mobile energy storage vehicle at the battery swapping station to be zero; when the mobile energy storage vehicle k stays at the battery swapping station i during time period h, The value is 1, and the loading and unloading volume is determined by the aforementioned carrying capacity constraint and inventory constraint. This constraint relationship ensures that the loading and unloading operation of the mobile energy storage vehicle is physically consistent with its spatial location.

[0168] The energy consumption of a mobile energy storage vehicle varies with the total number of battery packs it carries and the traffic saturation of the road segment it traverses. The energy consumption of mobile energy storage vehicle k through road segment (i,j) is determined by the following formula:

[0169] In the formula, Let k be the energy consumption of a mobile energy storage vehicle k as it travels through road segment (i,j) during time period t. Let (i,j) be the length of road segment (i,j). Energy consumption per unit distance traveled by a mobile energy storage vehicle under unloaded, free-flow conditions; The load energy consumption sensitivity coefficient reflects the percentage increase in energy consumption per unit distance traveled for every unit increase in the total number of battery packs; NkF(t) + Let k be the total number of battery packs carried by the mobile energy storage vehicle during time period t. The energy consumption sensitivity coefficient for road congestion reflects the percentage increase in driving energy consumption for each unit increase in traffic saturation. Let be the traffic saturation of road segment (i,j) in time period t. As can be seen from the above formula, the more battery packs the mobile energy storage vehicle carries, or the higher the traffic saturation of the road segment it passes through, the greater its energy consumption when traveling through that road segment. Loading and unloading schemes that meet the carrying capacity constraints help control driving energy consumption. Under overload conditions, driving energy consumption increases sharply, and the corresponding transportation costs rise, which will prompt the inner layer to select loading and unloading schemes with smaller loads or travel on more unobstructed road segments.

[0170] The calculation of the operating cost of the battery swapping network can be understood as follows: Given a fixed travel route, loading / unloading volume, and charging volume, the operating cost is calculated based on transportation and charging costs. The transportation cost is related to the mileage, energy consumption, and traffic conditions of each mobile energy storage vehicle, while the charging cost is related to the number of battery packs at each battery swapping station during different time periods, the electricity purchase price, and the amount of renewable energy generated. This operating cost is returned as an evaluation value for the candidate scheduling scheme to the outer path search for decision-making and weight updates.

[0171] Through the constraints of the upper limit on the number of charging completed, the carrying capacity constraint of mobile energy storage vehicles, and the inventory constraint of each battery swapping station, the charging quantity of each battery swapping station and the loading and unloading quantity of each mobile energy storage vehicle determined by the inner layer are physically executable: the charging tasks arranged by the battery swapping station during the time period do not exceed its energy supply capacity, the battery packs loaded by the mobile energy storage vehicles during the time period do not exceed their maximum loading capacity, and the loading and unloading quantities of fully charged battery packs and depleted battery packs at any battery swapping station do not exceed their corresponding inventory. Therefore, every candidate scheduling scheme returned to the outer layer through the inner layer solution corresponds to a set of practically executable charging and loading / unloading arrangements. The physical feasibility of the scheduling scheme is guaranteed at the execution level, avoiding discrepancies between operating cost calculations and actual execution.

[0172] Optionally, the operating cost of the battery swapping network includes the transportation cost of mobile energy storage vehicles in each time period within the prediction time domain, the charging cost of battery swapping stations, and the terminal status evaluation item at the end of the prediction time domain. The transportation cost of mobile energy storage vehicles is determined based on the length of the road segment traversed by the mobile energy storage vehicle and the driving energy consumption of the mobile energy storage vehicle in that road segment. The driving energy consumption increases with the increase of the number of battery packs carried by the mobile energy storage vehicle and the increase of the traffic saturation of the road segment determined based on the real-time road network status. The charging cost is determined based on the electricity consumed by the battery swapping station to charge the battery packs within the station and the electricity purchase price of the node where the battery swapping station is located. The terminal status evaluation item is used to guide mobile energy storage vehicles to stay near potentially high-demand battery swapping stations or carry sufficient fully charged battery packs at the end of the prediction time domain.

[0173] The operating cost of the battery swapping network is a target function minimized by the centralized scheduling platform when determining the target scheduling scheme. It consists of the accumulated transportation cost of mobile energy storage vehicles and the charging cost of battery swapping stations within the prediction time domain, as well as a terminal state evaluation term calculated only once at the end of the prediction time domain. When the battery swapping station also provides in-station charging services to vehicles, the operating cost also includes flexible energy supply costs, the specific form of which is described later. In some embodiments, the operating cost objective function is expressed as:

[0174] In the formula, y represents the path and dwell state variables of each mobile energy storage vehicle; R represents the decision variables such as charging output and battery pack unloading volume of each battery swapping station; Tp(t) is the set of all time periods in the prediction time domain starting from scheduling time t; Hp is the length of the prediction time domain; Jtrans is the transportation cost of the mobile energy storage vehicle; Jprod is the charging cost of the battery swapping station; and Jterm is the terminal state evaluation term. Among them, the transportation cost and charging cost are the actual operating expenditures or their equivalent economic quantification values ​​incurred in the prediction time domain, which are included in the optimization of each scheduling cycle by the centralized scheduling platform; the terminal state evaluation term does not correspond to the actual operating expenditures, but its role is to evaluate the impact of the candidate scheduling scheme's docking position at the end of the prediction time domain on subsequent scheduling cycles, and quantify this impact as an equivalent cost and include it in the objective function, thereby guiding the mobile energy storage vehicle to be in a state favorable to the next cycle at the end of the prediction time domain.

[0175] The transportation cost of a mobile energy storage vehicle is determined based on the length of the road segment traversed by the vehicle and its energy consumption during travel on that segment. In some embodiments, the transportation cost Jtrans(h) for time period h is determined by the following formula:

[0176] In the formula, The variable is a binary variable, representing whether the mobile energy storage vehicle k travels on road segment (i,j) during time period h. A value of 1 indicates that the vehicle is traveling, and a value of 0 indicates that the vehicle is not traveling. Let (i,j) be the length of road segment (i,j). This represents the cost of vehicle maintenance and mechanical wear per unit distance, reflecting expenses such as tire wear, lubrication consumption, and component depreciation. The equivalent electricity price for the energy consumption of mobile energy storage vehicles is used to convert the energy consumption of vehicles into equivalent costs. Let be the energy consumption of mobile energy storage vehicle k during time period h as it travels through road segment (i,j). The calculation method is described above; summation symbol. This represents the summation over all mobile energy storage vehicles. This represents the summation of all road segments traversed by the mobile energy storage vehicle k during time period h. As can be seen from the above formula, traversing longer road segments, road segments with high traffic saturation, or road segments where the vehicle carries a large number of battery packs will correspond to higher transportation costs. This structure enables route optimization to automatically avoid congested road segments and long detours in the set of feasible routes, and allows the mobile energy storage vehicle to travel in a lightly loaded state as much as possible while meeting the dispatching needs.

[0177] The charging cost is determined based on the amount of electricity required to charge the number of battery packs at the battery swapping station and the electricity purchase price at the node where the station is located. The battery swapping station prioritizes using local renewable energy generation to charge depleted battery packs. If the renewable energy generation is insufficient to meet the target charging quantity, the shortfall is purchased from the grid. In some embodiments, the charging cost Jprod(h) for time period h is determined by the following formula:

[0178] In the formula, pigrid(h) is the electricity purchase price of the node where the swap station i is located in time period h; Ri(h) is the number of battery packs that the swap station i can charge in time period h. Rated capacity of a single standard battery pack; Ri(h) The electrical energy required to complete this number of charges; PiPV(h) is the photovoltaic power generation of battery swapping station i during time period h; PiPV(h) · t represents the photovoltaic power generation energy during this period; max{0, ·} indicates taking the larger value between the expression within the parentheses and zero, meaning that the difference will only incur electricity purchase costs if the photovoltaic power generation energy is insufficient to cover the electrical energy required for charging. This represents a set of battery swapping stations. When the photovoltaic power generation of battery swapping station i is sufficient to cover all the electrical energy required for charging, the corresponding add-on for that station is zero, meaning the charging cost for that station during that period is zero. Through this structure, charging costs guide charging tasks to concentrate at battery swapping stations with lower electricity purchase prices and abundant photovoltaic power generation.

[0179] The terminal status evaluation term guides mobile energy storage vehicles to remain near potentially high-demand battery swapping stations or carry sufficient fully charged battery packs at the end of the forecast time domain. If only transportation and charging costs within the forecast time domain are considered, the optimization result might lead to mobile energy storage vehicles residing at battery swapping stations with lower transportation costs at the end of the forecast time domain, such as those located on the edge of the battery swapping network. However, this location is not conducive to quickly supporting battery swapping stations that will soon experience a shortage of fully charged battery packs in the next scheduling cycle, such as those located in the center of the battery swapping network where demand is about to increase. The terminal status evaluation term quantifies this opportunity cost into an equivalent economic indicator, ensuring that the location and number of battery packs carried by the mobile energy storage vehicle at the end of the forecast time domain not only minimize costs in the current forecast time domain but also reserve scheduling flexibility for the next scheduling cycle.

[0180] The number of mobile energy storage vehicles that will remain at battery swapping station i at the end of the predicted time domain is determined by the following formula:

[0181] In the formula, Niterm(t) represents the number of mobile energy storage vehicles staying at battery swapping station i at the end of the predicted time domain; xi,k(t+Hp) is a binary variable representing whether mobile energy storage vehicle k stays at battery swapping station i at the end of the predicted time domain, taking a value of 1 if staying, and 0 otherwise; K is the set of mobile energy storage vehicles. In some embodiments, the terminal state evaluation term Jterm is determined by the following formula:

[0182] In the formula, The weight is set to guide the terminal demand. Its value is set according to the importance that the battery swapping network operator attaches to the support capability for the next cycle. The larger the value, the greater the impact of the terminal status on the objective function value. The end position of the mobile energy storage vehicle tends to be closer to the potential high-demand battery swapping station. The battery pack demand of battery swapping station i in the last time period of the prediction time domain; Let max{1, ...} be the set of battery swapping stations; This is used to avoid zeroing the denominator when no mobile energy storage vehicle is stationed at swapping station i. When a mobile energy storage vehicle is stationed at swapping station i at the end of the prediction time domain... Not less than one, with the bracketed item set to zero, this battery swapping station is not included in the terminal penalty; when battery swapping station i has no mobile energy storage vehicle stationed at the end of the prediction time domain. If the value is zero, the item in square brackets is taken as one, and the battery swapping station will be penalized based on its battery pack demand.

[0183] The terminal status evaluation item is weighted according to the battery pack demand of each battery swapping station at the end of the forecast time domain: if no mobile energy storage vehicle is stationed at a battery swapping station at the end of the forecast time domain, this item is included in the terminal penalty based on the station's demand; if a mobile energy storage vehicle is stationed, this item is zero. If a candidate scheduling scheme parks a mobile energy storage vehicle at a battery swapping station that is about to experience a shortage of fully charged battery packs at the end of the forecast time domain, the terminal penalty of this scheme is smaller or even zero, and its total operating cost is lower, giving it an advantage in the scheme comparison; conversely, if the mobile energy storage vehicle is parked at a battery swapping station whose demand is already saturated or far from areas with high future demand, the terminal penalty of this scheme is larger, and it is eliminated in the scheme comparison. The number of fully charged battery packs carried by a mobile energy storage vehicle at the end of the forecast time domain is defined by the aforementioned carrying capacity constraint. Mobile energy storage vehicles carrying more fully charged battery packs and stationed at high-demand battery swapping stations can directly alleviate the shortage of fully charged battery packs at those stations in the next scheduling cycle. In summary, operating costs include transportation costs, charging costs, and terminal status evaluation items. By jointly optimizing these three items, the scheduling scheme can meet the battery swapping demand in the current predicted time domain while also taking into account the continuity and stability between adjacent scheduling cycles, thereby reducing the operating costs of the battery swapping network.

[0184] Optionally, the battery swapping station is also used to provide in-station charging services to vehicles, wherein the in-station charging service is the direct charging of the vehicle's on-board battery pack by the battery swapping station; the operating cost of the battery swapping network also includes flexible energy supply costs, which include time costs and economic costs; the time cost is determined based on the additional recharge time and queuing time added by switching from battery swapping services to in-station charging services, as well as the flexible fulfillment adjustment amount; the economic cost increases with the increase of the flexible fulfillment adjustment amount; the flexible fulfillment adjustment amount is the demand quantity of the battery swapping station switching from immediate battery swapping services to in-station charging services during the corresponding time period.

[0185] When the battery swapping station also provides in-station charging services for vehicles, the operating cost objective function incorporates flexible energy supply costs in addition to the transportation costs of mobile energy storage vehicles and the charging costs of the battery swapping station, i.e.:

[0186] In the formula, the meanings of y and R are the same as those described above; This refers to the flexible performance adjustment amount for each battery swapping station; It is the set of all time periods in the prediction time domain starting from scheduling time t; To predict the length of the time domain; , , The meaning is consistent with the above; To ensure flexible energy supply costs, the specific components are as follows. The loss for a single vehicle switching from instant battery swapping service to in-station charging service is determined by the following formula:

[0187] In the formula, This refers to the unit time value coefficient for electric heavy-duty trucks. The charging service time within the battery swapping station i during time period h; The time required for instant battery swapping service; max{0, ·} indicates that time loss is only included when the in-station charging service time exceeds the instant battery swapping service time. In some embodiments, the flexible energy supply cost for time period h is determined by the following formula:

[0188] In the formula, For battery swapping station i, the flexible fulfillment adjustment amount for switching from instant battery swapping service to in-station charging service during time period h; Penalty coefficient for centralized service switching; Let be the set of battery swapping stations. In the above formula, the first term is the time cost, used to quantify the equivalent economic loss caused by the increase in vehicle charging time and queuing time; the second term is the economic cost, namely the centralized service switching penalty, used to prevent the optimization model from uniformly converting too many immediate battery swapping demands to in-station charging services in the same battery swapping station and at the same time period in order to reduce battery transportation costs. Its value increases with the increase of the flexible fulfillment adjustment amount. The flexible fulfillment adjustment amount is automatically formed by the probability of in-station charging service output by the proxy model in the station selection equilibrium, that is, the portion of battery pack demand corresponding to the selection of in-station charging service, and does not exceed the upper limit defined by the product of the authorized demand ratio and the battery pack demand of the battery swapping station in that time period.

[0189] By providing in-station charging services, this embodiment of the application achieves flexible energy supply. Specifically, during the optimization process, the centralized dispatch platform automatically weighs the trade-off between vehicles turning to adjacent battery swapping stations and waiting to charge at the current station: when cross-station transportation costs are high, some battery swapping demand is handled by in-station charging services; when in-station charging services experience congestion, the supply of fully charged battery packs is guaranteed by cross-station transportation. Through these trade-offs, this embodiment of the application meets vehicle energy replenishment needs at a lower operating cost, thereby reducing the operating cost of the battery swapping network and improving the adaptability of the dispatching scheme to local supply-demand imbalances.

[0190] Optionally, the plurality of removal methods include: Randomly remove battery swapping stations from the current scheduling scheme's travel routes; remove battery swapping stations in descending order of the ratio of the dynamic travel time of the preceding road segment to the free travel time of that road segment; remove battery swapping stations in descending order of the ratio of the fully charged battery pack inventory of each battery swapping station to the battery pack demand of that battery swapping station in the corresponding time period.

[0191] The three removal methods described above identify, from different perspectives, battery swapping stations that should be removed from the current scheduling scheme and have their access vehicles or access order reassigned.

[0192] The random removal method indiscriminately selects several battery swapping station access nodes from the current scheduling route and removes them without relying on any road network status or battery swapping station status information. Its purpose is to maintain the diversity of the search: when other removal methods repeatedly remove the same batch of battery swapping stations due to reliance on specific status information, the random removal method can introduce a new path structure that deviates from the current search direction, avoiding the search from becoming too concentrated in a local area and missing out on lower-cost feasible solutions.

[0193] High traffic impedance removal method. For the target battery swapping station j in the current path, its immediate preceding road segment is denoted as (i,j), which is the road segment that the mobile energy storage vehicle just passed before visiting battery swapping station j. The dynamic traffic impedance penalty value of this road segment is determined by the following formula:

[0194] In the formula, The dynamic traffic impedance penalty value of the preceding road segment of the battery swapping station j; Let (i,j) be the dynamic travel time of road segment (i,j) in time period t; This represents the free-flow velocity of that road section; This is the length of the road segment. , This refers to the congestion impedance coefficient. This represents the traffic saturation of the road segment during time period t. When the road segment is currently free of congestion, Approaching zero The value is close to zero; when congestion occurs on this road section, Increase As the congestion increases, the more severe the congestion becomes. The larger.

[0195] The high traffic impedance removal method sorts all battery swapping stations to be evaluated from largest to smallest based on the Wimp(j) value of their preceding road segments, prioritizing the removal of stations with higher Wimp(j) values. This is because a higher ratio of the dynamic travel time of a mobile energy storage vehicle to the free-flow time of its preceding road segments indicates more severe congestion encountered by the vehicle on its way to the station, resulting in higher transportation costs for keeping the station on the current route. Removing the station from the current route allows it to be reassigned to another mobile energy storage vehicle, inserted into another location, or visited by the same vehicle in a different access sequence during subsequent insertion steps, thus providing an opportunity to choose a less congested preceding road segment to reach the station.

[0196] Site energy margin removal method. The energy margin of battery swapping station i is determined by the following formula:

[0197] In the formula, The energy margin of battery swapping station i; This refers to the current inventory of fully charged battery packs at battery swapping station i during the current time period. Improve battery charging efficiency; iPV(t) represents the renewable energy generation capacity available to the battery swapping station during that time period. This represents the battery pack demand of the battery swapping station during that time period. The rated capacity of a single standard battery pack; It is a small positive number used to avoid taking zero in the denominator. The larger the value, the more abundant the fully charged inventory and the charging output converted from available new energy sources are relative to the demand of the battery swapping station; the smaller the value, the tighter the energy supply of the battery swapping station is relative to the demand, and the greater the possibility of a shortage of fully charged battery packs.

[0198] The site energy margin removal method sorts all battery swapping stations to be evaluated from largest to smallest Weng(i) value, prioritizing the removal of stations with larger Weng(i) values. This is because stations with higher energy margins have a surplus of fully charged inventory and rechargeable output compared to their projected demand, making it less urgent for mobile energy storage vehicles to access them. After removing a station from the current path, the mobile energy storage vehicle's capacity can be reallocated to stations with lower energy margins (i.e., stations with larger shortages of fully charged battery packs) during the insertion step, thus concentrating limited mobile energy storage vehicle capacity on addressing the most pressing supply and demand issues.

[0199] The weights of the three removal methods are maintained independently, and are updated in each iteration according to the same adaptive weight update mechanism as described above, based on different results. These results include whether a new globally optimal solution is generated, whether operating costs are improved, and whether the solution is accepted. In the early stages of the search, the weights of the three removal methods may be relatively close, and the probability of each method being selected is not significantly different. As iterations progress, removal methods that perform better under the current traffic congestion and station supply-demand distribution gain a higher selection probability, causing the search to gradually focus on more effective removal strategies. When the road network status or the supply-demand status of battery swapping stations changes, previously effective removal methods may no longer be effective, and their weights decrease with several consecutive rounds of lower scores, while the weights of other removal methods relatively increase, and the search strategy switches accordingly.

[0200] The three removal methods described above identify battery swapping station access nodes suitable for removal from the current path from three perspectives: randomness, road traffic conditions, and site energy conditions. Random removal maintains search diversity, high traffic impedance removal selectively removes access nodes on paths with high transport delays, and site energy margin removal releases capacity from low-urgency battery swapping stations. Therefore, path disruption operations can adjust the search direction based on the current road network conditions and site supply and demand, increasing the probability of finding effective paths, avoiding wasting evaluation attempts in irrelevant areas, and allowing the search to enter areas with lower operating costs earlier within a limited number of evaluation attempts.

[0201] Optionally, the plurality of insertion methods include: For any swapping station to be inserted, traverse all mobile energy storage vehicles and their feasible insertion positions along their travel paths, determine the incremental operating cost of each mobile energy storage vehicle after inserting the swapping station at each feasible insertion position, and insert the swapping station into the corresponding feasible insertion position in the travel path of the mobile energy storage vehicle that minimizes the incremental operating cost. For any swapping station to be inserted, determine the minimum and second minimum incremental operating costs after inserting the swapping station into the travel paths of all mobile energy storage vehicles, and use the difference between the two as the regret value of the swapping station. In descending order of the regret values ​​of each swapping station to be inserted, sequentially insert each swapping station into the travel path of the mobile energy storage vehicle corresponding to the minimum incremental operating cost.

[0202] The two insertion methods described above, namely greedy insertion and regretful insertion, share the following basic operation: For each battery swapping station to be inserted, traverse all mobile energy storage vehicles and all feasible insertion positions along their current travel path. For each "battery swapping station - mobile energy storage vehicle - insertion position" combination, call the inner energy optimization model to calculate the operating cost corresponding to the new path after insertion, and subtract it from the operating cost before insertion to obtain the operating cost increment for that combination. The combination with the smallest operating cost increment is considered the optimal insertion method for that battery swapping station. The difference between the two insertion methods lies in the different insertion orders among the battery swapping stations to be inserted.

[0203] The greedy insertion method is executed as follows: In each insertion iteration, for all battery swapping stations not yet inserted, the minimum operating cost increment for each feasible mobile energy storage vehicle and each feasible insertion position is calculated. The battery swapping station that minimizes this minimum operating cost increment is selected from all the stations to be inserted and inserted into the corresponding feasible insertion position of the mobile energy storage vehicle. After the battery swapping station is inserted, the travel path of the mobile energy storage vehicle and the status of each battery swapping station are updated. Then, based on the updated path and status, the next round of greedy insertion is performed on the remaining battery swapping stations until all stations to be inserted are inserted, or until none of the remaining stations can be inserted at a cost increment not exceeding the preset limit. At this point, the insertion of the remaining stations is abandoned.

[0204] The advantage of the greedy insertion method is that it selects the insertion operation with the minimum increase in current cost at each step, maintaining a local optimum at each step of the insertion iteration. Its limitation is that if the first battery swapping station is inserted, it occupies a better insertion position—for example, a position between two battery swapping stations on a mobile energy storage vehicle's path that doesn't incur additional detour distance. Subsequent battery swapping stations can only choose from the remaining feasible positions. Even if all remaining feasible positions are high-cost or infeasible for a particular station, it can only accept this result given the already determined insertion order. In other words, greedy insertion determines the insertion order according to the principle of "whoever inserts first with the lowest cost gets inserted first," without considering the different sensitivities of different battery swapping stations to insertion positions.

[0205] The regret insertion method addresses the aforementioned shortcomings. For any battery swapping station to be inserted, firstly, the incremental operating cost after inserting into each feasible insertion position along the travel path of each mobile energy storage vehicle is calculated, obtaining the minimum incremental operating cost within that mobile energy storage vehicle's travel path; then, the minimum incremental operating cost among each mobile energy storage vehicle is compared, and the minimum value is taken as its optimal insertion cost, the second smallest value as its suboptimal insertion cost, and the difference between the two is defined as the regret value of the battery swapping station; where, the optimal insertion cost is the minimum incremental operating cost of the battery swapping station among all feasible combinations, and the suboptimal insertion cost is the minimum incremental operating cost of the battery swapping station among the remaining mobile energy storage vehicles without selecting the mobile energy storage vehicle corresponding to the optimal combination.

[0206] A higher regret value indicates that if the battery swapping station does not occupy its optimal insertion position in this round of insertion and is forced to be accessed by other mobile energy storage vehicles at other locations, it will incur significant additional costs. In other words, the battery swapping station is most sensitive to "whether it can be accessed in the optimal position" and should be prioritized. A regret value close to zero indicates that the suboptimal insertion cost of the battery swapping station is similar to the optimal insertion cost. Even if it does not occupy the optimal position in this round, being assigned to a suboptimal position will not significantly increase operating costs, and its assignment can be postponed.

[0207] After calculating the regret values ​​of all battery swapping stations to be inserted, each station is inserted sequentially into the feasible insertion position of the mobile energy storage vehicle corresponding to its minimum operating cost increment, in descending order of regret value. After each battery swapping station is inserted, the travel path of the mobile energy storage vehicle and the status of each battery swapping station are updated. The regret values ​​of the remaining battery swapping stations to be inserted may change due to changes in feasible insertion positions. In this case, the regret values ​​of the remaining battery swapping stations can be recalculated, and the largest one can be selected for insertion.

[0208] The following simplified scenario illustrates the difference between greedy insertion and regretful insertion. Assume there are two mobile energy storage vehicles, M1 and M2, and two battery swapping stations, A and B, to be inserted. After inserting station A into a certain position on M1, the incremental operating cost is 10. The minimum incremental operating cost after inserting station A into any position on M2 is also 10. After inserting station B into a certain position on M1, the incremental operating cost is 5, but this position is the same as station A's optimal insertion position; that is, the two stations cannot simultaneously occupy the same optimal insertion position. However, after inserting station B into any position on M2, the incremental operating cost is 30. In this scenario: the optimal insertion cost for station A is 10, the second-best insertion cost is 10, and the regret value is 0; the optimal insertion cost for station B is 5 (inserting into M1), the second-best insertion cost is 30 (inserting into M2), and the regret value is 25.

[0209] In the greedy insertion method, the optimal insertion cost of each swapping station is compared in the first round: swapping station A has a cost of 10, and swapping station B has a cost of 5. Swapping station B, which has a smaller cost increment, is selected to insert M1 first. After swapping station B inserts M1, its optimal insertion position is occupied, and swapping station A can only insert M2, with an operating cost increment of 10. The total operating cost increment is 5 + 10 = 15.

[0210] In the regretful insertion method, the first round compares the regret values ​​of each swapping station: swapping station A has a regret value of 0, and swapping station B has a regret value of 25. Swapping station B, with the larger regret value, is selected and inserted into M1 first, which is the same as greedy insertion. However, if the regret value of swapping station A is greater than that of swapping station B, the regretful insertion order changes: swapping station A is inserted into M1 first because it is more sensitive to the insertion position, and swapping station B is then inserted into M2. The total operating cost increment is 10 + 30 = 40, which is higher than the result of greedy insertion. In this case, regretful insertion avoids the situation where, if swapping station A is delayed, its most sensitive position is occupied by swapping station B, forcing it to be inserted in a way that is extremely costly or even infeasible. Greedy insertion, on the other hand, only sees that swapping station B has a smaller cost increment and prioritizes it, without considering the greater loss to swapping station A due to its position being occupied.

[0211] The weights of greedy insertion and regretful insertion are maintained independently, and are scored and updated according to the same adaptive weight update mechanism as removal. At different stages of the search, the probability of each insertion method being selected is dynamically adjusted based on its recent performance: in the early stages of the search, greedy insertion may have a higher weight because each decision increases the operating cost to the minimum, quickly constructing a complete path with low operating costs; in the later stages of the search, when the feasible path structure tends to stabilize and the remaining room for improvement is small, the weight of regretful insertion may increase because it can prioritize the placement of location-sensitive battery swapping stations, preventing these stations from being repeatedly moved to unfavorable locations and causing the algorithm to repeatedly oscillate in local areas.

[0212] The two insertion methods each have their advantages at different stages of the search: greedy insertion quickly builds a complete path with low operating costs in the early stages of the search, while regretful insertion prioritizes the protection of battery swapping stations that are sensitive to the insertion position in the middle and later stages of the search, preventing them from incurring high costs due to the occupancy of the optimal insertion position. This improves the quality of the candidate scheduling schemes obtained within a limited number of evaluations, and enables the search to converge to the region with low operating costs more quickly.

[0213] The following specific embodiment will be used to further illustrate the battery swapping network scheduling method and its technical effects provided in this application.

[0214] Figure 5 The diagram shown is a system overall scheduling flowchart provided in an embodiment of this application. This diagram illustrates the overall process of the centralized scheduling platform performing rolling scheduling within a complete operating cycle. Figure 5 As shown, the process includes: I. Obtaining the Current System Status. After scheduling begins, the centralized scheduling platform first establishes a battery swapping network model and initializes rolling scheduling parameters: the road network is abstracted as a directed graph containing road connection nodes and battery swapping station nodes; the road segment length, free-flow speed, and maximum traffic flow are configured for each road segment; the maximum battery pack carrying capacity, initial location, state of charge, and number of fully charged and depleted battery packs are configured for each mobile energy storage vehicle; the continuous operating time is discretized into scheduling periods, and a predetermined number of scheduling periods are selected to form the prediction time domain. At each scheduling moment, the centralized scheduling platform obtains the current system status, including: real-time traffic flow for each road segment from the traffic information platform; fully charged battery pack inventory, depleted battery pack inventory, battery charging production progress, new energy power generation output, electricity purchase price, and battery swapping service price from the station-side management system (EMS / BMS) of each battery swapping station; battery swapping service price from the operating price platform; current location, state of charge, and load status of each mobile energy storage vehicle; and current location, remaining state of charge, and feasible travel path from the target vehicle. Then, traffic saturation is determined based on the real-time traffic flow and maximum traffic flow of each road segment, and the dynamic travel time of vehicles after entering each road segment is calculated accordingly. This serves as the basis for calculating the travel time, energy consumption, and path cost of the target vehicle to different battery swapping stations. At the same time, based on the obtained mobile energy storage vehicle status and battery swapping station status, a location transfer model, a battery pack loading status model, a self-energy state model, and a battery production and inventory status model of the battery swapping station are established. This ensures that the mobile energy storage vehicle can only unload fully charged or depleted battery packs when it stops at a battery swapping station node, and ensures that its own state of charge is not lower than a preset safety threshold after performing a candidate transportation task.

[0215] II. Proxy Model Derivation of Dynamic Charging and Battery Swapping Demand for Heavy Trucks at Each Station. The real-time road network status, the first-state information of each battery swapping station, and the third-state information of the target vehicle are input into a pre-trained proxy model. A forward calculation is performed to deduce the battery pack demand of each battery swapping station at each time period within the prediction time domain. The proxy model is pre-trained using the station selection equilibrium solution among candidate battery swapping stations as training labels: In the offline stage, an electric heavy truck station selection game model is established. The model iteratively solves the station selection process for each vehicle with the objective of minimizing the vehicle's generalized charging cost (including dynamic driving time, driving energy consumption, queuing time, and battery swapping service fees), until no vehicle can reduce its generalized charging cost by unilaterally changing its selected battery swapping station. The equilibrium number of arriving vehicles, the distribution of vehicle service types, and the corresponding standard battery pack demand at each battery swapping station are obtained and used as training labels. Training samples are generated offline by combining perturbations of the overall vehicle arrival scale, traffic saturation of each road segment, fully charged battery pack inventory at each battery swapping station, and battery swapping service prices, and then solving for the station selection equilibrium. These samples are divided into training sets, validation sets, and independent test sets. During online scheduling, the proxy model outputs the expected number of vehicles arriving at each battery swapping station in a single forward calculation. It then combines the probability of each service type and uses the product of the expected number of vehicles arriving and the average value of the service type as the demand baseline. Finally, it takes into account the safety margin considering the uncertainty of the service type to obtain the standard battery pack demand of each battery swapping station in each time period within the prediction time domain, without the need to iteratively solve a high-dimensional station selection game model in real time.

[0216] Third, the global road network is divided into weakly coupled service subdomains. Based on the spatial location of each battery swapping station and the battery pack demand obtained in step two, demand-weighted dynamic clustering is performed on all battery swapping stations to divide the global road network into multiple weakly coupled service subdomains. The initial cluster centroid of each service subdomain at the current scheduling time inherits the centroid converged at the previous scheduling time to avoid frequent jumps in partition boundaries due to small fluctuations in demand between adjacent rolling scheduling times. The battery margin of each service subdomain is calculated: when the battery margin is not less than zero, candidate dispatch routes for mobile energy storage vehicles are generated within that service subdomain first; when the battery margin of a service subdomain is less than zero, that service subdomain is determined as a demand subdomain, and cross-regional support candidate routes are generated from other service subdomains with positive battery margins, surplus fully charged battery packs, and available mobile energy storage vehicle capacity. Dynamic partitioning is only used to organize path search and reduce candidate access nodes; it does not change the complete road network or delete the originally feasible dispatch routes for mobile energy storage vehicles.

[0217] IV. Initialize the mobile energy storage vehicle scheduling path and set the maximum number of iterations. During non-initial rolling scheduling, prioritize mobile energy storage vehicle paths that were not executed in the previous scheduling cycle and are still feasible in the current state as the initial scheduling scheme. When the initial scheduling or the original scheme is no longer feasible, an initial path can be generated according to any of the following principles: prioritize accessing the battery swapping station with the largest shortage of fully charged battery packs, prioritize accessing the battery swapping station with the shortest dynamic travel time, prioritize selecting tasks that can alleviate the largest shortage of fully charged battery packs per unit transportation time, or prioritize assigning mobile energy storage vehicles with similar current locations to the same service subdomain. Simultaneously, set the maximum number of iterations for path search as one of the termination conditions for subsequent solution loops.

[0218] V. Enter the inner and outer decoupling solution loop. This loop includes the following sub-steps: (1) Spatial transfer scheme generated based on physical heuristic operators. In the outer layer, a destruction operator is used to remove some battery swapping station access nodes from the current scheduling path. The destruction operator includes a random removal method, a high traffic impedance removal method that removes nodes according to the dynamic traffic impedance of the preceding road segment from large to small, and a site energy margin removal method that removes nodes according to the site energy margin from large to small. Then, a repair operator is used to re-insert the removed battery swapping stations into the driving paths of each mobile energy storage vehicle to form a new complete scheduling scheme. The repair operator includes a greedy insertion method that traverses each mobile energy storage vehicle and each feasible insertion position and selects the "battery swapping station-mobile energy storage vehicle-insertion position" combination that minimizes the increase in operating cost, and a regret insertion method that inserts nodes according to the difference between the optimal insertion cost and the second-best insertion cost (i.e., the regret value) of each battery swapping station from large to small. The physical heuristic operator embeds dynamic traffic impedance and site energy margin information into the destruction and repair process of the path, increasing the probability that an effective path is found.

[0219] (2) Solve for the system operating cost and flexible energy supply degradation under a given route. In the inner layer, under the condition that the outer layer path is fixed, solve for the number of battery packs charged in each battery swapping station, the amount of fully charged and depleted battery packs unloaded by each mobile energy storage vehicle at each battery swapping station, the flexible performance adjustment amount of each battery swapping station from instant battery swapping service to in-station charging service, and the allocation of new energy generation energy and grid-purchased energy, and calculate the system operating cost. The system operating cost includes the transportation cost of mobile energy storage vehicles, the charging cost of battery swapping stations, the flexible energy supply cost, and the terminal status evaluation item at the end of the predicted time domain. The transportation cost of mobile energy storage vehicles is determined based on the length of the road segments traversed and the energy consumption during travel; the energy consumption increases with the number of battery packs carried and the traffic saturation of the road segments. The charging cost of battery swapping stations is determined based on the electricity consumed to charge the battery packs within the station and the electricity purchase price of the node where the station is located. The flexible energy supply cost includes the time cost caused by the increased quantification of recharge time and queuing time, as well as the penalty for concentrated switching to prevent concentrated service switching at the same battery swapping station within the same time period. The terminal status evaluation item guides mobile energy storage vehicles to remain near potentially high-demand battery swapping stations or carry sufficient fully charged battery packs at the end of the predicted time domain. The solution process must satisfy constraints on the vehicle path and location of mobile energy storage vehicles, carrying capacity constraints, battery production and inventory constraints of each battery swapping station, the authorized demand ratio constraint applicable to flexible energy supply, and the saturation constraint of service resources within the station. The flexible performance adjustment amount, also known as the flexible power supply degradation amount, refers to the demand of each battery swapping station when switching from immediate battery swapping service to in-station charging service during the corresponding time period.

[0220] (3) Determine if the convergence requirement is met. If the convergence requirement is not met, score each operator and update its selection weight based on whether each destruction operator and repair operator generates a new global optimal solution, whether it improves the current solution, and whether the generated new solution is accepted. Return to sub-step (1) of this loop to regenerate the spatial transfer solution. If the convergence requirement is met, exit the solution loop. Among them, when the maximum number of iterations is reached, the preset computation time limit is reached, or the optimal solution is not improved in multiple consecutive iterations, it is determined that the convergence requirement is met, and the optimal control sequence in the prediction time domain is output.

[0221] VI. Issuing routing and charging / swapping instructions for the first time step of the optimal control sequence. Based on the optimal control sequence, control instructions for the mobile energy storage vehicle and the battery swapping station are generated: the control instructions issued to the mobile energy storage vehicle include the target station for the current scheduling period, the recommended travel route, the estimated departure time and estimated arrival time, and the unloading quantity of fully charged and depleted battery packs at the target station; the control instructions issued to the battery swapping station include the number of battery packs generated for charging in the current scheduling period, the amount of new energy generation energy and grid-purchased energy used, the allowable flexible performance adjustment, and the battery pack unloading task corresponding to the estimated arrival time of the mobile energy storage vehicle. Only the instructions for the first scheduling period in the optimal control sequence are executed, instead of executing all control instructions within the prediction time domain at once.

[0222] 7. Determine if the daily scheduling cycle has ended. If not, after the first scheduling period ends, reacquire the actual road traffic status, the actual location and load status of each mobile energy storage vehicle, the actual fully charged and depleted battery pack inventory of each battery swapping station, the actual charging production progress of the battery packs, the actual number and service type of the target vehicles, and the actual number of service switches performed. Update the current decision time to the next scheduling time step along the scheduling time increment, and return to step one to reacquire the system status at the current time. Repeat the above demand deduction, dynamic partitioning, and scheduling solution process. If the daily scheduling cycle has ended, the process terminates.

[0223] Through the above process, the centralized scheduling platform uses a proxy model to perform a forward calculation to extrapolate the battery pack demand of each battery swapping station. It uses dynamic partitioning to compress the path search range of mobile energy storage vehicles. It uses outer path search and inner energy optimization to collaboratively solve the mobile energy storage vehicle path, battery pack energy allocation and flexible performance adjustment. It also issues scheduling instructions corresponding to the current scheduling period on a rolling basis, thereby adapting to the real-time changes in road, battery swapping station and vehicle status, improving the timeliness and accuracy of battery swapping demand perception, and reducing the operating cost of the battery swapping network.

[0224] Through the above process, the centralized scheduling platform uses a proxy model to perform a forward calculation to predict the battery pack demand of each battery swapping station. It uses dynamic partitioning to compress the path search range of mobile energy storage vehicles. It uses outer path search and inner energy optimization to collaboratively solve the adjustment of mobile energy storage vehicle paths, battery pack energy allocation and replenishment methods. It also continuously issues scheduling instructions corresponding to the current scheduling period, thereby adapting to the real-time changes in road, battery swapping station and vehicle status, improving the timeliness and accuracy of battery swapping demand perception, and reducing the operating cost of the battery swapping network. In a simulated battery swapping network comprising multiple battery swapping stations and corresponding road networks, multiple mobile energy storage vehicles were deployed to verify the above scheme, yielding the following technical effects: The proxy model integrating the station selection game mechanism can track the peak demand and intraday demand fluctuations of each battery swapping station without significant systemic lag, and can reflect the linkage effect of changes in the state of one battery swapping station on the demand of other battery swapping stations, identifying the spatial migration of battery swapping demand among multiple selectable battery swapping stations, unlike the prediction method that adjusts the load of each station according to a fixed proportion or historical average; The dynamic partitioning driven by both distance and demand can adjust the service subdomain boundary according to the change of the spatial center of gravity of battery swapping demand, narrowing the priority path search range of mobile energy storage vehicles without changing the complete road network and the original feasible paths; After embedding dynamic traffic impedance and site energy margin information into the destruction and repair operators, the algorithm can enter the lower cost area within a limited number of evaluations without significantly increasing the single neighborhood search. The computational overhead is reduced; by using a proxy model to dynamically perceive demand instead of historical average demand, the battery pack transportation direction of mobile energy storage vehicles is more consistent with the actual battery swapping demand, reducing resource mismatch between stations and battery idleness, and improving the utilization rate of renewable energy generation at battery swapping stations; mobile energy storage vehicles alleviate the shortage of fully charged battery packs in some areas and reduce inventory backlog at other battery swapping stations by transporting fully charged and depleted battery packs across stations; under the operating conditions of local high load and traffic congestion, the energy replenishment mode adjustment mechanism can convert some immediate battery swapping demand into in-station charging services within the authorized scope, providing additional feasible space for the rearrangement of mobile energy storage vehicle routes and battery pack transportation tasks, while the vast majority of vehicles still receive immediate battery swapping services; after comprehensively adopting the above schemes, the centralized scheduling platform can complete demand projection, dynamic partitioning, mobile energy storage vehicle route optimization, and battery swapping station energy allocation before the next scheduling time arrives, meeting the real-time requirements of rolling scheduling of the battery swapping network.

[0225] Exemplary device The apparatus embodiments of this application can be used to execute the method embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the method embodiments of this application.

[0226] One embodiment of this application provides a scheduling device for a battery swapping network. The battery swapping network includes multiple battery swapping stations, multiple mobile energy storage vehicles, and a road network connecting the battery swapping stations. The battery swapping stations are used to provide battery swapping services to vehicles based on battery packs and to charge the battery packs. The mobile energy storage vehicles are used to transport battery packs between the battery swapping stations along the road network. The device includes an acquisition module, a demand forecasting module, and a scheduling optimization module.

[0227] The acquisition module is used to acquire the real-time road network status of the road network, the first status information of each of the battery swapping stations, the second status information of each mobile energy storage vehicle, and the third status information of the target vehicle currently having energy replenishment needs; the first status information includes at least the inventory of fully charged battery packs, the inventory of depleted battery packs, and the battery swapping service price; the second status information includes at least the current location of each mobile energy storage vehicle, the number of fully charged battery packs it carries, and the number of depleted battery packs it carries; the third status information includes at least the current location of the vehicle and its remaining charge status.

[0228] The demand prediction module is used to input the real-time road network status, the first state information and the third state information of each of the battery swapping stations into a pre-trained proxy model to obtain the battery pack demand of each battery swapping station in the prediction time domain. The proxy model is trained by using the station selection equilibrium solution of the vehicle among the candidate battery swapping stations as the training label and including the deviation of the equilibrium solution in the training loss. The station selection equilibrium solution is the station selection distribution when no vehicle can reduce its generalized charging cost by unilaterally changing the selected battery swapping station.

[0229] The scheduling optimization module is used to determine a target scheduling scheme, including the first scheduling information of the battery swapping stations and the second scheduling information of each mobile energy storage vehicle, based on the full-charge battery pack shortage of each battery swapping station, the first status information of each battery swapping station, and the second status information of each mobile energy storage vehicle, with the goal of minimizing the operating cost of the battery swapping network. The full-charge battery pack shortage of each battery swapping station is determined based on the battery pack demand and the full-charge battery pack inventory. The first scheduling information includes at least the number of battery packs being charged at each battery swapping station. The second scheduling information includes at least the travel route, the unloading volume of fully charged battery packs and the unloading volume of depleted battery packs at each battery swapping station.

[0230] The functional details of each module are consistent with the description of the corresponding steps in the aforementioned method embodiments, and will not be repeated here.

[0231] Exemplary electronic devices The electronic device in this application includes one or more processors and a memory.

[0232] The processor can be a processing unit with data processing and instruction execution capabilities, and can control other components in the electronic device to perform desired functions. The memory can include one or more computer program products, which can include various forms of computer-readable storage media, such as volatile memory and non-volatile memory. One or more computer program instructions can be stored on the computer-readable storage medium, and the processor can execute the program instructions to implement the scheduling methods of the battery swapping network in the various embodiments of this application described above, as well as other desired functions. Various contents such as the battery swapping network topology, agent model parameters, and historical requirements of each battery swapping station can also be stored in the computer-readable storage medium.

[0233] In one example, the electronic device may also include input and output devices, which are interconnected via a bus system and other forms of connection mechanisms (not shown). The input device may include means for receiving user input data and information, such as a keyboard, mouse, camera, scanner, light pen, voice input device, touchscreen, pedometer, or gravity sensor. The output device may output various information to external devices, such as a display, speaker, printer, and communication networks and their connected remote output devices.

[0234] Of course, for simplicity, only some of the components of the electronic device relevant to this application are shown in the figures, omitting components such as buses, input / output interfaces, etc. In addition, the electronic device may include any other suitable components depending on the specific application.

[0235] Exemplary computer program products and computer-readable storage media In addition to the methods and devices described above, embodiments of this application may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the steps in the scheduling methods of the battery swapping network according to various embodiments of this application as described in the above method embodiments of this specification.

[0236] The computer program product can be written in any combination of one or more programming languages ​​to perform the operations of the embodiments of this application. The programming languages ​​include object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0237] Furthermore, embodiments of this application may also be computer-readable storage media storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps in the scheduling method of the battery swapping network according to various embodiments of this application described in the above method embodiments of this specification.

[0238] The basic principles of this application have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this application are merely examples and not limitations, and should not be considered as essential features of each embodiment of this application. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the application to the necessity of employing the aforementioned specific details for implementation.

[0239] For the foregoing method embodiments, in order to simplify the description, they are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because according to this application, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

Claims

1. A scheduling method for a battery swapping network, the battery swapping network comprising multiple battery swapping stations, multiple mobile energy storage vehicles, and a road network connecting the battery swapping stations; The mobile energy storage vehicle is used to transport battery packs; the method includes: The system acquires the real-time road network status, the first status information of each battery swapping station, the second status information of each mobile energy storage vehicle, and the third status information of the target vehicle currently requiring energy replenishment. The real-time road network status, the first state information and the third state information of each of the battery swapping stations are input into a pre-trained proxy model to obtain the battery pack demand of each battery swapping station in the predicted time domain; wherein, the proxy model is obtained by using the station selection equilibrium solution of the vehicle among the candidate battery swapping stations as the training label; the station selection equilibrium solution is the station selection distribution when no vehicle can reduce its generalized charging cost by unilaterally changing the selected battery swapping station. Based on the battery pack demand of each battery swapping station, the first status information of each battery swapping station, and the second status information of each mobile energy storage vehicle, a target scheduling scheme is determined with the goal of minimizing the operating cost of the battery swapping network. This scheme includes the first scheduling information of the battery swapping stations and the second scheduling information of each mobile energy storage vehicle.

2. The scheduling method for a battery swapping network according to claim 1, characterized in that, The method of obtaining the battery pack demand of each battery swapping station in the predicted time domain includes: Obtain the expected number of vehicles arriving at each battery swapping station in the prediction time domain, as output by the proxy model, and the probability of each battery swapping station corresponding to each service type; the service type represents the number of battery packs replaced in one charging cycle for a vehicle. Based on the probabilities of each service type, determine the mean and variance of the service type corresponding to the battery swapping station; The product of the estimated number of arriving vehicles and the average value of the service type is used as the baseline demand. The safety margin is calculated by multiplying the square root of the product of the expected number of arriving vehicles and the variance of the service type by the robust adjustment factor. The sum of the aforementioned demand baseline and the aforementioned safety margin is taken as the battery pack demand of the battery swapping station during the corresponding time period.

3. The scheduling method for the battery swapping network according to claim 2, characterized in that, The battery swapping station is also used to provide in-station charging services to vehicles, wherein the in-station charging service is the direct charging of the vehicle's on-board battery pack by the battery swapping station. The service type also includes the in-station charging service, and the number of battery packs replaced in one charging session corresponding to the in-station charging service is zero. The generalized charging cost when a vehicle selects the in-station charging service includes the economic cost and time cost that the vehicle needs to pay to accept the in-station charging service.

4. The scheduling method for a battery swapping network according to claim 1, characterized in that, The battery swapping station is equipped with a new energy power generation device; The electrical energy required by the battery swapping station to charge the battery pack is primarily provided by the power generation of the new energy power generation device. Any shortfall in power generation is purchased from the grid, and the power purchased from the grid does not exceed the power purchase limit of the battery swapping station. The first status information also includes the electricity purchase price of the node where the battery swapping station is located; the battery swapping service price is determined based on the electricity purchase price, and increases as the electricity purchase price increases relative to the benchmark electricity purchase price; The price of the battery swapping service is included in the generalized charging cost when the vehicle selects the battery swapping station, and the generalized charging cost increases as the price of the battery swapping service increases.

5. The scheduling method for a battery swapping network according to claim 1, characterized in that, The determination of the first scheduling information of the battery swapping station and the second scheduling information of each mobile energy storage vehicle includes: Generate an initial scheduling scheme; Obtain the current scheduling plan; the scheduling plan includes the order of the battery swapping stations visited by each mobile energy storage vehicle and the travel route. According to the target removal method, some battery swapping stations are removed from the travel path of the current scheduling scheme to obtain the first path; wherein, the target removal method is determined according to the first weight corresponding to each preset removal method; According to the target insertion method, at least some of the removed battery swapping stations are re-inserted into the first path to obtain the second path; wherein, the target insertion method is determined according to the second weight corresponding to each preset insertion method; With the goal of minimizing operating costs, we determine the candidate scheduling schemes for the second path and the corresponding operating costs of each candidate scheduling scheme. Based on the operating cost corresponding to the candidate scheduling scheme, the operating cost corresponding to the current scheduling scheme, and the preset acceptance criteria, it is determined whether to accept the candidate scheduling scheme to obtain the current scheduling scheme for the next execution. Update the first weight corresponding to the target removal method and the second weight corresponding to the target insertion method based on whether the candidate scheduling scheme is accepted. Repeated execution yields multiple candidate scheduling schemes until a preset termination condition is met; From the initial scheduling scheme and the obtained candidate scheduling schemes, the scheduling scheme with the lowest operating cost is determined to obtain the target scheduling scheme.

6. The scheduling method for a battery swapping network according to claim 5, characterized in that, The generation of the initial scheduling scheme includes: The battery swapping network is divided into multiple service subdomains by using the spatial location of each battery swapping station as the clustering object and the battery pack demand of the battery swapping station in the predicted time domain as the clustering weight. For any service sub-domain, the battery margin of that service sub-domain is determined based on the fully charged battery pack inventory of each battery swapping station in that service sub-domain, the expected number of battery packs to be charged and the battery pack demand, as well as the number of fully charged battery packs carried by the mobile energy storage vehicle located in that service sub-domain. When the battery margin is not less than zero, candidate driving paths are generated for mobile energy storage vehicles within the service subdomain. When the battery margin is less than zero, cross-subdomain candidate driving paths are generated from other service subdomains with positive battery margins to reach that service subdomain. Based on the generated candidate travel paths, the order and travel path of the battery swapping stations visited by each mobile energy storage vehicle in the initial scheduling scheme are determined.

7. The scheduling method for a battery swapping network according to claim 6, characterized in that, The division of the battery swapping network into multiple service subdomains includes: The centroids of each service subdomain converged at the previous scheduling time are used as the initial centroids of the cluster at the current scheduling time. Based on the initial centroid, the centroids of each service subdomain are iteratively adjusted until the clustering converges, thus obtaining the service subdomain partitioning at the current scheduling time.

8. The scheduling method for a battery swapping network according to claim 1, characterized in that, The operating cost of the battery swapping network includes the transportation cost of mobile energy storage vehicles in each time period within the prediction time domain, the charging cost of the battery swapping stations, and the terminal status evaluation item at the end of the prediction time domain. The transportation cost of the mobile energy storage vehicle is determined based on the length of the road segment traversed by the mobile energy storage vehicle and the driving energy consumption of the mobile energy storage vehicle on that road segment; the driving energy consumption increases with the increase of the number of battery packs carried by the mobile energy storage vehicle and the increase of the traffic saturation of the road segment as determined by the real-time road network status. The charging cost is determined based on the electricity consumed by the battery swapping station to charge the battery packs within the station and the electricity purchase price of the node where the battery swapping station is located. The terminal status evaluation item is used to guide the mobile energy storage vehicle to stay near a potentially high-demand battery swapping station or carry a sufficient number of fully charged battery packs at the end of the predicted time domain.

9. The scheduling method for a battery swapping network according to claim 5, characterized in that, The multiple removal methods include: Randomly remove a battery swapping station from the travel path of the current scheduling scheme; Battery swapping stations are removed in descending order of the ratio of dynamic passage time of the preceding road segment to free passage time of that road segment. Battery swapping stations are removed in descending order of the ratio of their fully charged battery pack inventory to their battery pack demand during the corresponding time period.

10. The scheduling method for a battery swapping network according to claim 5, characterized in that, The multiple insertion methods include: For any battery swapping station to be inserted, traverse each mobile energy storage vehicle and each feasible insertion position in its travel path, determine the increase in operating cost after each mobile energy storage vehicle inserts the battery swapping station at each feasible insertion position, and insert the battery swapping station into the corresponding feasible insertion position in the travel path of the mobile energy storage vehicle that minimizes the increase in operating cost. For any battery swapping station to be inserted, determine the minimum and second minimum operating cost increments after inserting the station into the travel paths of each mobile energy storage vehicle, and use the difference between the two as the regret value of the battery swapping station; in descending order of the regret values ​​of each battery swapping station to be inserted, insert each battery swapping station into the travel path of the mobile energy storage vehicle corresponding to the minimum operating cost increment.