Shared electric scooter static rebalance scheduling method allowing multiple access to sites

By optimizing the vehicle allocation of shared electric scooters through a vehicle rebalancing scheduling heuristic algorithm that allows multiple visits to the same site, it solves the problems of site demand overload and rough vehicle delivery in the existing technology, achieving more efficient operations and lower costs. operating costs.

CN118735181AActive Publication Date: 2024-10-01SOUTHWEST JIAOTONG UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410785645.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-01
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

The existing shared electric scooter rebalancing dispatch method cannot effectively solve the problem of site demand overload, and the vehicle placement is rough and the utilization rate is low, resulting in resource waste and increased operating costs.

Method used

A vehicle rebalancing scheduling heuristic algorithm that allows multiple visits to the same site is adopted. By obtaining order travel data and geographical information data, the minimum fleet size and virtual site demand are calculated, and vehicle allocation is optimized to minimize the time of the rebalancing process.

Benefits of technology

It improves the operating efficiency and flexibility of shared electric scooters, reduces operating costs, improves service quality, and solves the problem of site demand overload.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735181A_ABST
    Figure CN118735181A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of static rebalance scheduling of shared electric scooters, and discloses a static rebalance scheduling method for shared electric scooters allowing multiple access to sites. The method comprises the steps of obtaining order travel data and traffic area geographic information data; calculating the minimum fleet scale of the shared electric scooters; virtual station coordinates are identified under the minimum motorcade scale, and the vehicle demand of each virtual station and the Euclidean distance between the virtual stations are calculated; and taking the vehicle demand of each virtual station and the shortest distance between the virtual stations as input, taking the time of minimizing the rebalance process as an optimization target, and adopting a vehicle rebalance scheduling heuristic algorithm allowing multiple access to the same station to solve a static rebalance scheduling result of the shared electric scooter. According to the method, the problem of station demand overload possibly existing in the real situation is considered, and a heuristic algorithm allowing multiple access to the same station is adopted to adjust vehicle distribution, so that more reasonable rebalance scheduling is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of static rebalancing scheduling of shared electric scooters, and in particular to a static rebalancing scheduling method for shared electric scooters that allows multiple visits to sites. Background Art

[0002] Shared electric scooters are a new type of urban transportation. They combine the convenience of traditional scooters with the electric properties of electric vehicles. They usually consist of a rectangular platform, two small wheels and one or two electric drive systems, equipped with handles or pedals for passengers to stand or step on. Users can find nearby electric scooters through mobile phone applications, unlock and use them, and then park them in designated areas at the end of the trip.

[0003] When studying the operation and management of shared electric scooters, the determination of the actual fleet size (the number of all scooters in operation) is a core issue. On the other hand, operators will also consider the minimum fleet size, that is, the minimum number of scooters required to meet user needs. The rebalancing scheduling of shared electric scooters refers to the process of redistributing or reallocating vehicle resources to meet user needs and improve service efficiency in response to the uneven temporal and spatial distribution of shared micro-transportation vehicles during use. The main purpose of rebalancing scheduling is to ensure the reasonable distribution of shared transportation vehicles to avoid problems such as imbalance in supply and demand, waste of resources and reduced user experience.

[0004] Past studies have often overlooked the optimization of rebalancing scheduling based on the minimum fleet size. With this approach, the minimum fleet size can be determined, and the vehicle rebalancing scheduling process can be optimized based on this. This method can not only reduce the initial deployment and maintenance costs of vehicles, but also reduce the cost of rebalancing scheduling. Normally, the rebalancing scheduling of shared electric scooters only allows each station to be visited once. However, in actual operation, if the demand for some stations exceeds the capacity of the rebalancing vehicle, the premise of only visiting each station once cannot solve this problem. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the present invention provides a static rebalancing scheduling method for shared electric scooters that allows multiple visits to sites, so as to effectively reduce the operating costs of shared electric scooters and solve the problem of possible site demand overload.

[0006] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0007] A static rebalancing scheduling method for a shared electric scooter that allows multiple visits to a station includes the following steps:

[0008] Obtaining order travel data and traffic area geographic information data of shared electric scooters;

[0009] Calculate the minimum fleet size of shared electric scooters based on the order travel data of all shared electric scooters;

[0010] Identify virtual station coordinates based on the order travel data of all shared electric scooters under the minimum fleet size, and calculate the vehicle demand of each virtual station and the Euclidean distance between the virtual stations;

[0011] Taking the vehicle demand of each virtual station and the shortest distance between virtual stations as input, minimizing the time of the rebalancing process as the optimization goal, a vehicle rebalancing scheduling heuristic algorithm that allows multiple visits to the same station is adopted to solve the static rebalancing scheduling result of shared electric scooters.

[0012] Preferably, the minimum fleet size of shared electric scooters is calculated based on the order travel data of all shared electric scooters, including the following steps:

[0013] Set time threshold and distance threshold;

[0014] Traverse each row of the order travel data of all shared electric scooters, extract the trip number, the electric scooter number, the starting latitude, the starting longitude, the trip start time, the trip end time, the ending latitude, the ending longitude, the trip distance, and set the trip flag to false;

[0015] Traverse the set of trips performed by each shared electric scooter in the shared electric scooter fleet set;

[0016] Calculate the time difference between the start time of the currently traversed order travel data and the latest end time of the current travel set;

[0017] Calculate the distance difference between the starting longitude and starting latitude of the currently traversed order travel data and the ending latitude and ending longitude of the current trip set;

[0018] When the time difference of the trips is greater than or equal to the time threshold and the distance difference of the trips is less than or equal to the distance threshold, the current trip set is updated and the trip flag is set to true;

[0019] When the trip flag is not set to true, create a new trip set, add the trip number, electric scooter number, starting latitude, starting longitude, trip start time, trip end time, end latitude, end longitude, and trip distance of the currently traversed order travel data to the new trip set, and add the new trip set to the shared electric scooter fleet set;

[0020] The minimum fleet size of shared electric scooters is determined based on the length of the shared electric scooter fleet collection.

[0021] Preferably, updating the current itinerary set includes:

[0022] Update the end time of the current trip set to the larger value between the end time of the currently traversed order travel data and the original end time of the current trip set;

[0023] Update the end longitude of the trip to the end longitude of the currently traversed order travel data;

[0024] Update the end latitude of the trip to the end latitude of the currently traversed order travel data;

[0025] The sum of the travel distances of the current travel set plus the travel distances of the currently traversed order travel data is updated to the new sum of the travel distances;

[0026] Add the sequence number of the trip and the sequence number of the shared electric scooter to the trip collection.

[0027] Preferably, the virtual station coordinates are identified according to the order travel data of all shared electric scooters under the minimum fleet size, and the vehicle demand of each virtual station and the Euclidean distance between the virtual stations are calculated, including the following steps:

[0028] Based on the order travel data of all shared electric scooters under the minimum fleet size, extract the coordinate positions of all shared electric scooters at the beginning and end;

[0029] The maximum silhouette coefficient is calculated according to the positions of all shared electric scooters at the beginning and the end, and the number of clusters is determined according to the maximum silhouette coefficient;

[0030] According to the coordinate positions of all shared electric scooters at the beginning, the K-means clustering algorithm is used to cluster and obtain the coordinates of the virtual stations. The number of electric scooters at each virtual station is the number of electric scooters clustered to form the station.

[0031] Match the coordinate positions of all shared electric scooters at the end with the coordinates of the virtual stations. The number of electric scooters at each virtual station at the end is the number of electric scooters matched to the virtual station.

[0032] Calculate the vehicle demand at each virtual station based on the number of e-scooters at each virtual station at the beginning and end;

[0033] The Euclidean distance between virtual sites is calculated based on the virtual site coordinates.

[0034] Preferably, the vehicle demand of each virtual station and the shortest distance between the virtual stations are used as input, and minimizing the time of the rebalancing process is used as the optimization goal. A vehicle rebalancing scheduling heuristic algorithm that allows multiple visits to the same station is used to solve the static rebalancing scheduling result of the shared electric scooter, including the following steps:

[0035] Initialize the initial path, and set the initial virtual site demand data to the original virtual site demand data, and the vehicle starts from the parking lot;

[0036] When the values ​​in the initial virtual site demand data are not all zero, the last visited virtual site is found from the initial path, and the distance matrix between the virtual site and other virtual sites is determined;

[0037] When the values ​​in the initial virtual station demand data are all greater than or equal to zero, the distance to the virtual station with a demand value of zero in the distance matrix is ​​marked as infinite; otherwise, the candidate stations are screened according to the vehicle load; when the vehicle load is greater than zero, the distance to the virtual station with a positive demand in the distance matrix is ​​marked as infinite; otherwise, the distance to the virtual station with a negative demand in the distance matrix is ​​marked as infinite;

[0038] Select the virtual site closest to the virtual site in the distance matrix as the next nearest virtual site to be visited;

[0039] updating the load of the vehicle after visiting the nearest virtual station and the vehicle demand of each virtual station according to the vehicle demand of the nearest virtual station and the load of the current vehicle;

[0040] Add the nearest virtual site to the current path and update the length of the current path;

[0041] When the values ​​in the initial virtual site demand data are all zero, add the parking lot as the end site at the end of the current path to obtain the optimal path, and determine the length of the optimal path;

[0042] The time of the optimal path is calculated based on the length of the optimal path and the average speed of the shared electric scooters.

[0043] As a preferred embodiment, the load of the vehicle after updating the visit to the nearest virtual station is specifically:

[0044]

[0045] in, The nearest virtual site n nearest The vehicle demand is b, and b is the vehicle demand for visiting the nearest virtual station n nearest The vehicle load before, c is the vehicle capacity limit, max is the maximum value function, min is the minimum value function, b tmp To access the nearest virtual site nnearest The vehicle load after.

[0046] As a preferred embodiment, the vehicle demand of each virtual station after updating the visit to the nearest virtual station is specifically as follows:

[0047]

[0048] in, The nearest virtual site n nearest The vehicle demand is b, and b is the vehicle demand for visiting the nearest virtual station n nearest Vehicle load before, b tmp To access the nearest virtual site n nearest After the vehicle load, To access the nearest virtual site n nearest The subsequent vehicle demand.

[0049] Preferably, updating the length of the current path is specifically as follows:

[0050]

[0051] Among them, n last is the last virtual site on the current path, n nearest For the nearest virtual site, The last virtual site n on the current path last and the nearest virtual site n nearest The shortest distance between them, += represents accumulation, and L is the length of the current path.

[0052] Preferably, the length of the optimal path is determined as follows:

[0053]

[0054] Among them, n last is the last virtual site on the current path, n depot For the parking lot, The last virtual site n on the current path last and parking lot depot The shortest distance between them, L is the length of the current path, L best is the length of the optimal path.

[0055] Preferably, the time of the optimal path is calculated according to the length of the optimal path and the average speed of the shared electric scooters, specifically:

[0056] T best ←L best / v

[0057] Among them, T best is the time of the optimal path, L bestis the length of the optimal path, and v is the average speed of the shared electric scooter.

[0058] The present invention has the following beneficial effects:

[0059] The present invention first determines the minimum fleet size by utilizing the actual operation data of scooters and the geographic information data of traffic communities, and optimizes the rebalancing and scheduling process of vehicles on this basis. Compared with the traditional method in which vehicles are only allowed to visit a station once, the present invention takes into account the possible overload problem of station demand in reality, and adopts a heuristic algorithm that allows multiple visits to the same station to adjust vehicle allocation to achieve a more reasonable rebalancing and scheduling. Therefore, the present invention aims to improve the operational efficiency and flexibility of shared electric scooters, thereby reducing costs and improving service quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 A flowchart of a static rebalancing scheduling method for shared electric scooters that allows multiple visits to a station;

[0061] Figure 2 Schematic diagram of the set time threshold and distance threshold. DETAILED DESCRIPTION

[0062] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0063] In the existing static rebalancing scheduling method for shared electric scooters, the vehicles in the rebalancing scheduling cannot visit the same site multiple times, and the problem of site demand exceeding vehicle load cannot be solved; in addition, the deployment of vehicles is too rough and the vehicle utilization rate is low, resulting in resource waste and increased operating costs. Therefore, the present invention proposes a static rebalancing scheduling method for shared electric scooters that reduces operating costs. The present invention first determines the minimum fleet size by utilizing the actual operation data of the scooters and the geographic information data of the traffic community, and optimizes the vehicle rebalancing scheduling process on this basis; compared with the traditional method in which the vehicle is only allowed to visit the site once, the present invention takes into account the possible site demand overload problem in the actual situation, and adopts a heuristic algorithm that allows multiple visits to the same site to adjust the vehicle allocation to achieve a more reasonable rebalancing scheduling; therefore, the present invention aims to improve the operating efficiency and flexibility of shared electric scooters, thereby reducing costs and improving service quality.

[0064] like Figure 1As shown, an embodiment of the present invention provides a static rebalancing scheduling method for a shared electric scooter that allows multiple visits to a site, comprising the following steps S1 to S5:

[0065] S1. Obtaining the order travel data and traffic area geographic information data of shared electric scooters;

[0066] In an optional embodiment of the present invention, the shared electric scooter order travel data obtained in this embodiment is specifically the relevant information of users riding shared electric scooters recorded and stored by the shared electric scooter operator on its platform, including the user's travel record, the vehicle's location status, payment information, etc.

[0067] The traffic area geographic information data obtained in this embodiment is specifically the boundary range of the traffic area in the study area, such as an administrative boundary or a census area.

[0068] S2. Calculate the minimum fleet size of shared electric scooters based on the order travel data of all shared electric scooters;

[0069] In an optional embodiment of the present invention, this embodiment calculates the minimum fleet size of shared electric scooters based on the order travel data of all shared electric scooters, including the following steps:

[0070] Set time threshold and distance threshold;

[0071] Traverse each row of the order travel data of all shared electric scooters, extract the trip number, the electric scooter number, the starting latitude, the starting longitude, the trip start time, the trip end time, the ending latitude, the ending longitude, the trip distance, and set the trip flag to false;

[0072] Traverse the set of trips performed by each shared electric scooter in the shared electric scooter fleet set;

[0073] Calculate the time difference between the start time of the currently traversed order travel data and the latest end time of the current travel set;

[0074] Calculate the distance difference between the starting longitude and starting latitude of the currently traversed order travel data and the ending latitude and ending longitude of the current trip set;

[0075] When the time difference of the trips is greater than or equal to the time threshold and the distance difference of the trips is less than or equal to the distance threshold, the current trip set is updated and the trip flag is set to true;

[0076] When the trip flag is not set to true, create a new trip set, add the trip number, electric scooter number, starting latitude, starting longitude, trip start time, trip end time, end latitude, end longitude, and trip distance of the currently traversed order travel data to the new trip set, and add the new trip set to the shared electric scooter fleet set;

[0077] The minimum fleet size of shared electric scooters is determined based on the length of the shared electric scooter fleet collection.

[0078] The information for updating the current itinerary set includes:

[0079] Update the end time of the current trip set to the larger value between the end time of the currently traversed order travel data and the original end time of the current trip set;

[0080] Update the end longitude of the trip to the end longitude of the currently traversed order travel data;

[0081] Update the end latitude of the trip to the end latitude of the currently traversed order travel data;

[0082] The sum of the travel distances of the current travel set plus the travel distances of the currently traversed order travel data is updated to the new sum of the travel distances;

[0083] Add the sequence number of the trip and the sequence number of the shared electric scooter to the trip collection.

[0084] This embodiment determines whether different user trips can use the same electric scooter by setting a time threshold and a distance threshold. Figure 2 The specific meanings of these two thresholds are shown in Figure 2 In the example, assume that there are two trips T1 and T2. bc represents the distance difference between the end point b of trip T1 and the starting point c of trip T2, T bc Represents the time difference between the end point b of trip T1 and the start point c of trip T2. d and θ t Represent the distance threshold and time threshold respectively. If D bc and T bc At the same time, the constraint D bc ≤θ d and T bc ≥θ t , it means that an electric scooter can complete two user trips T1 and T2 successively.

[0085] In this embodiment, based on the order travel data of all shared electric scooters, the minimum fleet size M and the list F storing the detailed information of each fleet can be solved. By expanding the fleet information in the list F, the minimum fleet at the beginning and end of the day in each traffic area can be obtained.

[0086] S3, identifying the coordinates of virtual stations based on the order travel data of all shared electric scooters under the minimum fleet size, and calculating the vehicle demand of each virtual station and the Euclidean distance between the virtual stations;

[0087] In an optional embodiment of the present invention, the embodiment identifies virtual station coordinates according to the travel order data of all shared electric scooters under the minimum fleet size, and calculates the vehicle demand of each virtual station and the Euclidean distance between the virtual stations, including the following steps:

[0088] Based on the order travel data of all shared electric scooters under the minimum fleet size, extract the coordinate positions of all shared electric scooters at the beginning and end;

[0089] The maximum silhouette coefficient is calculated according to the positions of all shared electric scooters at the beginning and the end, and the number of clusters is determined according to the maximum silhouette coefficient;

[0090] According to the coordinate positions of all shared electric scooters at the beginning, the K-means clustering algorithm is used to cluster and obtain the coordinates of the virtual stations. The number of electric scooters at each virtual station is the number of electric scooters clustered to form the station.

[0091] Match the coordinate positions of all shared electric scooters at the end with the coordinates of the virtual stations. The number of electric scooters at each virtual station at the end is the number of electric scooters matched to the virtual station.

[0092] The vehicle demand at each virtual station is calculated based on the number of e-scooters at each virtual station at the beginning and end;

[0093] The Euclidean distance between virtual sites is calculated based on the virtual site coordinates.

[0094] Specifically, this embodiment first uses the K-means clustering algorithm to identify virtual sites. In order to determine the optimal number of clusters, the maximum silhouette coefficient needs to be calculated first. The silhouette coefficient of each object i is calculated as follows:

[0095]

[0096] Among them, a(i) is the average distance from the i-th object to other objects in the same cluster; b(i) is the minimum average distance from the i-th object to objects in different clusters, which is minimized in the cluster.

[0097] This embodiment uses the location data of the scooters at the beginning and end of the day in the traffic area geographic information data and the travel order data of the minimum fleet as input. The identification and matching process of the virtual station is as follows:

[0098] (1) Obtain the coordinates of all electric scooters at the starting point of the study traffic area and try to calculate different silhouette coefficients.

[0099] (2) Select the value k with the largest silhouette coefficient as the optimal number of clusters.

[0100] (3) Cluster the coordinates of all electric scooters at the beginning to obtain virtual stations, and count the number of electric scooters at each station.

[0101] (4) Match the coordinates of all electric scooters at the end with the virtual stations and count the number of electric scooters at each station.

[0102] After obtaining the number of electric scooters at each virtual station at the beginning and the end, this embodiment can further calculate the demand of each station. The rebalancing demand of each station is obtained by subtracting the number of electric scooters at the beginning from the number of electric scooters at the end. If the demand of a station is negative, it means that there is a lack of electric scooters; if the demand is positive, it means that there are excess electric scooters. In addition, due to the existence of electric scooters traveling across zones, the number of electric scooters at the beginning and end of the traffic area may be different. To solve this problem, this embodiment sets up a parking lot equipped with enough electric scooters in each traffic zone.

[0103] S4. Taking the vehicle demand of each virtual station and the shortest distance between virtual stations as input, minimizing the time of the rebalancing process as the optimization goal, a vehicle rebalancing scheduling heuristic algorithm that allows multiple visits to the same station is used to solve the static rebalancing scheduling result of shared electric scooters.

[0104] In an optional embodiment of the present invention, the vehicle demand of each virtual station and the shortest distance between the virtual stations are used as inputs, and the time of the rebalancing process is minimized as the optimization goal. The vehicle rebalancing scheduling heuristic algorithm that allows multiple visits to the same station is used to solve the static rebalancing scheduling result of the shared electric scooter, including the following steps:

[0105] Initialize the initial path, and set the initial virtual site demand data to the original virtual site demand data, and the vehicle starts from the parking lot;

[0106] When the values ​​in the initial virtual site demand data are not all zero, the last visited virtual site is found from the initial path, and the distance matrix between the virtual site and other virtual sites is determined;

[0107] When the values ​​in the initial virtual site demand data are all greater than or equal to zero, the distance to the virtual site with a demand value of zero, that is, the distance to the balanced virtual site in the distance matrix is ​​marked as infinite to avoid revisiting; otherwise, the site is determined to be a suitable candidate site based on the rebalancing vehicle load; if the rebalancing vehicle load is greater than zero, the distance to the virtual site with positive demand in the distance matrix is ​​marked as infinite, and the sites with negative demand are preferentially satisfied while avoiding overloading of the rebalancing vehicle; otherwise, the distance to the virtual site with negative demand in the distance matrix is ​​marked as infinite, and the sites with positive demand are preferentially visited to increase the load of the rebalancing vehicle first;

[0108] Select the virtual site closest to the virtual site in the distance matrix as the next nearest virtual site to be visited;

[0109] updating the load of the vehicle after visiting the nearest virtual station and the vehicle demand of each virtual station according to the vehicle demand of the nearest virtual station and the load of the current vehicle;

[0110] Add the nearest virtual site to the current path and update the length of the current path;

[0111] When the values ​​in the initial virtual site demand data are all zero, a depot is added at the end of the current path as the end site to indicate that the rebalancing vehicle returns to the depot to complete the rebalancing task, and the optimal path is obtained, and the length of the optimal path is determined;

[0112] The time of the optimal path is calculated based on the length of the optimal path and the average speed of the shared electric scooters.

[0113] Specifically, this embodiment uses a vehicle rebalancing scheduling heuristic algorithm that allows multiple visits to the same site to solve the optimal vehicle rebalancing scheduling strategy. The definition of the optimal rebalancing strategy is that the rebalancing vehicle redeploys the vehicles at the end of the day to the state at the beginning of the day in the shortest time, and the starting point and end point of all vehicles used for rebalancing scheduling are the parking lot. The specific process is as follows:

[0114] A1. On the initial path R initial Add a parking lot to the initial route R initial Initialize and set the initial virtual site demand data Set to the original virtual site demand data D i ;

[0115] A2. Determine the initial virtual site demand data Are the values ​​in not all zero? If so, proceed to A3; otherwise, proceed to A8;

[0116] A3. From the initial path R initial Find the last visited virtual site n last, according to the distance matrix Determine the virtual site n last The shortest distance to other virtual sites;

[0117] A4. Determine the initial virtual site demand data Are the values ​​in greater than or equal to zero? If so, then The distance of the virtual station with zero demand value, that is, the virtual station that has been balanced, is marked as infinite; otherwise, the stations are determined as suitable candidate stations based on the rebalanced vehicle load; if the rebalanced vehicle load b is greater than zero, the distance matrix The distance to the virtual site with positive demand is marked as infinite; otherwise, the distance matrix The distance to the virtual site with negative demand is marked as infinite

[0118] A5. Select the distance matrix The virtual site n last The nearest virtual site is used as the next nearest virtual site to visit n nearest ;

[0119] A6. According to the nearest virtual site n nearest The vehicle demand and the current vehicle load are updated to visit the nearest virtual station and the vehicle demand of each virtual station;

[0120] The load of the vehicle after updating the visit to the nearest virtual station is as follows:

[0121]

[0122] in, The nearest virtual site n nearest The vehicle demand is b, and b is the vehicle demand for visiting the nearest virtual station n nearest The vehicle load before, c is the vehicle capacity limit, max is the maximum value function, min is the minimum value function, b tmp To access the nearest virtual site n nearest The vehicle load after.

[0123] The vehicle requirements of each virtual station after updating the visit to the nearest virtual station are as follows:

[0124]

[0125] in, The nearest virtual site n nearest The vehicle demand is b, and b is the vehicle demand for visiting the nearest virtual station n nearest Vehicle load before, b tmp To access the nearest virtual site n nearest After the vehicle load, To access the nearest virtual site n nearest The subsequent vehicle demand.

[0126] A7. Set the nearest virtual site n nearest Add to current path R initial And update the length L of the current path best ;

[0127] The specific update of the current path length is:

[0128]

[0129] Among them, n last is the last virtual site on the current path, n nearest For the nearest virtual site, The last virtual site n on the current path last and the nearest virtual site n nearest The shortest distance between them, += represents accumulation, and L is the length of the current path.

[0130] A8. In the current path R initial Add the warehouse as the end site at the end to get the optimal path R best , and determine the length L of the optimal path best ;

[0131] After the rebalanced vehicle returns to the parking lot, the length of the optimal path is determined as:

[0132]

[0133] Among them, n last is the last virtual site on the current path, n depot For the parking lot, The last virtual site n on the current path last and parking lot depot The shortest distance between them, L is the length of the current path, L best is the length of the optimal path.

[0134] A9. Calculate the optimal path time based on the length of the optimal path and the average speed of the shared electric scooters. Specifically:

[0135] T best ←L best / v

[0136] Among them, T best is the time of the optimal path, L best is the length of the optimal path, and v is the average speed of the shared electric scooter.

[0137] The static vehicle rebalancing scheduling optimization method proposed in this invention makes full use of the travel data of shared electric scooters, and based on this, reduces the operating cost by optimizing the minimum fleet size. This method fully considers the problem of overload of site demand in reality, and adopts a heuristic algorithm that visits the same site multiple times, so that the problem solving is closer to the actual situation and has a stronger guiding significance. In addition, our method is widely applicable and can be implemented in various urban scenarios without specific adjustments. This provides important technical support for the operation of shared electric scooters, an emerging micro-transportation mode, and provides a powerful tool for urban traffic management.

[0138] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0139] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0141] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

[0142] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

Claims

1. A static rebalancing scheduling method for shared electric scooters that allows multiple visits to sites, characterized in that: The following steps are involved: Obtaining order travel data and traffic area geographic information data of shared electric scooters; Calculate the minimum fleet size of shared electric scooters based on the order travel data of all shared electric scooters; Identify virtual station coordinates based on the order travel data of all shared electric scooters under the minimum fleet size, and calculate the vehicle demand of each virtual station and the Euclidean distance between the virtual stations; Taking the vehicle demand of each virtual station and the shortest distance between virtual stations as input, minimizing the time of the rebalancing process as the optimization goal, a vehicle rebalancing scheduling heuristic algorithm that allows multiple visits to the same station is adopted to solve the static rebalancing scheduling result of shared electric scooters.

2. The static rebalancing scheduling method for shared electric scooters that allows multiple visits to sites according to claim 1 is characterized in that: The minimum fleet size of shared electric scooters is calculated based on the order travel data of all shared electric scooters, including the following steps: Set time threshold and distance threshold; Traverse each row of the order travel data of all shared electric scooters, extract the trip number, the electric scooter number, the starting latitude, the starting longitude, the trip start time, the trip end time, the ending latitude, the ending longitude, the trip distance, and set the trip flag to false; Traverse the set of trips performed by each shared electric scooter in the shared electric scooter fleet set; Calculate the time difference between the start time of the currently traversed order travel data and the latest end time of the current travel set; Calculate the distance difference between the starting longitude and starting latitude of the currently traversed order travel data and the ending latitude and ending longitude of the current trip set; When the time difference of the trips is greater than or equal to the time threshold and the distance difference of the trips is less than or equal to the distance threshold, the current trip set is updated and the trip flag is set to true; When the trip flag is not set to true, create a new trip set, add the trip number, electric scooter number, starting latitude, starting longitude, trip start time, trip end time, end latitude, end longitude, and trip distance of the currently traversed order travel data to the new trip set, and add the new trip set to the shared electric scooter fleet set; The minimum fleet size of shared electric scooters is determined based on the length of the shared electric scooter fleet collection.

3. The static rebalancing scheduling method for shared electric scooters that allows multiple visits to sites according to claim 2 is characterized in that: Updates to the current itinerary collection include: Update the end time of the current trip set to the larger value between the end time of the currently traversed order travel data and the original end time of the current trip set; Update the end longitude of the trip to the end longitude of the currently traversed order travel data; Update the end latitude of the trip to the end latitude of the currently traversed order travel data; The sum of the travel distances of the current travel set plus the travel distances of the currently traversed order travel data is updated to the new sum of the travel distances; Add the sequence number of the trip and the sequence number of the shared electric scooter to the trip collection.

4. The static rebalancing scheduling method for shared electric scooters that allows multiple visits to sites according to claim 1, characterized in that: The virtual station coordinates are identified based on the order travel data of all shared electric scooters under the minimum fleet size, and the vehicle demand of each virtual station and the Euclidean distance between the virtual stations are calculated, including the following steps: Based on the order travel data of all shared electric scooters under the minimum fleet size, extract the coordinate positions of all shared electric scooters at the beginning and end; The maximum silhouette coefficient is calculated according to the positions of all shared electric scooters at the beginning and the end, and the number of clusters is determined according to the maximum silhouette coefficient; According to the coordinate positions of all shared electric scooters at the beginning, the K-means clustering algorithm is used to cluster and obtain the coordinates of the virtual stations. The number of electric scooters at each virtual station is the number of electric scooters clustered to form the station. Match the coordinate positions of all shared electric scooters at the end with the coordinates of the virtual stations. The number of electric scooters at each virtual station at the end is the number of electric scooters matched to the virtual station. Calculate the vehicle demand at each virtual station based on the number of e-scooters at each virtual station at the beginning and end; The Euclidean distance between virtual sites is calculated based on the virtual site coordinates.

5. The static rebalancing scheduling method for shared electric scooters that allows multiple visits to sites according to claim 1, characterized in that: Taking the vehicle demand of each virtual station and the shortest distance between virtual stations as input, minimizing the time of the rebalancing process as the optimization goal, a vehicle rebalancing scheduling heuristic algorithm that allows multiple visits to the same station is used to solve the static rebalancing scheduling results of shared electric scooters, including the following steps: Initialize the initial path, and set the initial virtual site demand data to the original virtual site demand data, and the vehicle starts from the parking lot; When the values ​​in the initial virtual site demand data are not all zero, the last visited virtual site is found from the initial path, and the distance matrix between the virtual site and other virtual sites is determined; When the values ​​in the initial virtual station demand data are all greater than or equal to zero, the distance to the virtual station with a demand value of zero in the distance matrix is ​​marked as infinite; otherwise, the candidate stations are screened according to the vehicle load; when the vehicle load is greater than zero, the distance to the virtual station with a positive demand in the distance matrix is ​​marked as infinite; otherwise, the distance to the virtual station with a negative demand in the distance matrix is ​​marked as infinite; Select the virtual site closest to the virtual site in the distance matrix as the next nearest virtual site to be visited; updating the load of the vehicle after visiting the nearest virtual station and the vehicle demand of each virtual station according to the vehicle demand of the nearest virtual station and the load of the current vehicle; Add the nearest virtual site to the current path and update the length of the current path; When the values ​​in the initial virtual site demand data are all zero, add the parking lot as the end site at the end of the current path to obtain the optimal path, and determine the length of the optimal path; The time of the optimal path is calculated based on the length of the optimal path and the average speed of the shared electric scooters.

6. The static rebalancing scheduling method for shared electric scooters that allows multiple visits to sites according to claim 5, characterized in that: The load of the vehicle after updating the visit to the nearest virtual station is as follows: in, The nearest virtual site n nearest The vehicle demand is b, and b is the vehicle demand for visiting the nearest virtual station n nearest The vehicle load before, c is the vehicle capacity limit, max is the maximum value function, min is the minimum value function, b tmp To access the nearest virtual site n nearest The vehicle load after.

7. The static rebalancing scheduling method for shared electric scooters that allows multiple visits to sites according to claim 5, characterized in that: The vehicle requirements of each virtual station after updating the visit to the nearest virtual station are as follows: in, The nearest virtual site n nearest The vehicle demand is b, and b is the vehicle demand for visiting the nearest virtual station n nearest Vehicle load before, b tmp To access the nearest virtual site n nearest After the vehicle load, To access the nearest virtual site n nearest The subsequent vehicle demand.

8. The static rebalancing scheduling method for shared electric scooters that allows multiple visits to sites according to claim 5, characterized in that: Update the length of the current path as follows: Among them, n last is the last virtual site on the current path, n nearest For the nearest virtual site, The last virtual site n on the current path last and the nearest virtual site n nearest The shortest distance between them, += represents accumulation, and L is the length of the current path.

9. The static rebalancing scheduling method for shared electric scooters that allows multiple visits to sites according to claim 5, characterized in that: The length of the optimal path is determined as follows: Among them, n last is the last virtual site on the current path, n depot For the parking lot, The last virtual site n on the current path last and parking lot depot The shortest distance between them, L is the length of the current path, L best is the length of the optimal path.

10. The static rebalancing scheduling method for shared electric scooters that allows multiple visits to sites according to claim 5, characterized in that: The time of the optimal path is calculated based on the length of the optimal path and the average speed of the shared electric scooters, specifically: T best ←L best / v Among them, T best is the time of the optimal path, L best is the length of the optimal path, and v is the average speed of the shared electric scooter.

Citation Information

Patent Citations

  • Shared bicycle demand prediction and delivery scheduling method

    CN115936240A

  • Shared bicycle system putting scale calculation method based on intelligent scheduling behavior

    CN116307558A

  • Dynamic planning-based ride-sharing trip organization method, device, apparatus, and storage medium

    WO2021232586A1