最小化碳排放的共享单车迁移问题
Sharing bicycle relocating with minimum carbon emission
收稿日期: 2022-01-8
Corresponding authors: LIN Guohui, E-mail:guohui@ualberta.ca
Received: 2022-01-8
Fund supported: |
|
本文考虑共享单车迁移问题, 它可看作是经典旅行售货商问题的一个新颖变形, 不同的是其目标函数为最小化碳排放。其中, 碳排放利用单车负载与其行驶路程的乘积进行刻画。我们提出了两个启发式算法:贪心和基于TSP的算法, 每个算法的核心思想均是优先减少单车负载。从理论上证明算法的可行性并给出数据实验以验证算法的实际性能。数据实验结果表明贪心算法优于基于TSP的算法, 这为共享单车企业进行日常单车分配提供了理论依据。
关键词:
We formulate the sharing bicycle relocating practice as a novel optimization problem, which can be regarded as a variant of the classic TSP problem while its objective function is no longer the length of the Hamiltonian tour but the carbon emission. A well-adopted carbon emission formula that is the product of the load of the vehicle and the travel distance is employed and we propose two heuristic algorithms Greedy and TSP-based, inside both of which we set the priority to reduce the load of the vehicle for minimizing carbon emission. The feasibility of both algorithms is proven and numerical experiments are conducted to validate their performance empirically. The promise of Greedy over TSP-based algorithm is shown to the sharing bicycle companies for their daily dispatching practice.
Keywords:
本文引用格式
苏兵, 范佳彬, GAO Arthur, 邵艳君, 林国辉.
SU Bing.
China promises to reduce its carbon emission up to 40–50% by 2020, in comparison with the total emission in 2005. This is one of the worldwide efforts in resolving global warming and climate change. In China, the transportation industry alone is estimated to release about 9% of the overall carbon emission, for which initiatives including carbon emission tax and re-developing operation strategies are required.
Sharing bicycle, as a new shared economic form, is in line with the sustainable development concept of "innovation, green, open, sharing, coordination". Sharing bicycles are conveniently used by public for a ride of one to several kilometers, from a hotspot such as a transit station, a shopping mall entrance or a residential district entrance, to another. Similar to rush hours, bicycle riding also shows a one-way pattern, that between two stations, there are many more rides from one to the other during certain periods of time, while the other periods tend to have more rides going the opposite way. Such a riding pattern causes the phenomenon of sharing bicycle overflow or shortage at many stations, despite the continuous efforts in selecting sites as stations to balance the needs[1, 2].
To resolve the subsequent problems of "no space to return the bicycle" and "no bicycle to borrow" at a station, it is necessary for the companies to re-locate the bicycles, that is, to collect the sharing bicycles from overflowing stations and re-distribute them to shortage stations. A usual practice process is first to calculate for each station the number of bicycles in surplus or in shortage, using the current number and the historical needs at the station, then to dispatch a service vehicle of certain capacity and to plan a tour for the vehicle to visit each station once, such that if the station is overflowing, then the extra bicycles are collected, or otherwise the shortage is filled up. Since the service vehicles are fuel-powered, both their selection and the service tour over all the stations are decided based on the principle of minimum carbon emission, to achieve the most "green and efficient" dispatching. We remark that in the literature, there are existing research on other objectives besides the traditional vehicle travel time, travel distance[3], and carbon emission, such as to minimize the deviation from the target numbers of bicycles for the stations[4, 5].
One sees that the above dispatching practice process, after the service vehicle is chosen, becomes a vehicle routing problem (VRP). Furthermore, since it is generally true that the vehicle leaves from the sharing bicycle depot and later comes back to the depot, and the planned tour is Hamiltonian in that every station is visited exactly once, the dispatching practice is actually a variant of the traveling salesman problem (TSP). Note that we do not have to visit a station that is neither overflowing nor lacking bicycles, and thus every station under consideration either has some positive number of bicycles to be collected by the service vehicle, or has a negative number of bicycles indicating the shortage to be filled up. Our problem is thus a generalization of the delivery TSP[6, 7, 8], in which each station is associated with either
In this paper, we attempt to formulate such a sharing bicycle relocating practice as an optimization problem, propose heuristic algorithms, and validate them empirically. Our goal is to show the promise of these heuristics to the sharing bicycle companies for their daily dispatching practice.
The rest of the paper is organized as follows. In the next section, we first present our optimization problem that models the sharing bicycle relocating practice, review briefly the formula for calculating carbon emission in terms of the traveled distance and the vehicle load, and provide a brief literature review on the past research related to our optimization problem. We propose two heuristic algorithms, namely Greedy and TSP-based, for our optimization problem in Section 3. In Section 4, we conduct the empirical experiments based on two real datasets of sharing bicycle stations in Xi'an, China, summarize the results, and discuss important discoveries that could be helpful for the real dispatching practice. Lastly in Section 5, we conclude the paper to provide some possible broader implications of the work and identify potential areas for future work.
1 Preliminaries
1.1 Problem description
We first formulate the optimization problem, denoted as SBR, from the Sharing Bicycle Relocating practice. In the SBR problem, we are given an edge-weighted complete graph
Among the vertex set
There is a service vehicle of capacity
* One sees that this is necessary by looking at a small instance of three stations, two of which each has a surplus
The goal of the SBR problem is to plan a Hamiltonian tour for the service vehicle such that 1) each station is visited exactly once, 2) its need is satisfied in full (that is, either the surplus bicycles are fully collected or the shortage is fully filled), and 3) the total carbon emission of the service vehicle is minimized. A Hamiltonian tour satisfying the first two conditions is said to be feasible. Given the easily seen NP-hardness of the SBR problem (see also discussion in Subsection 2.3), we propose and empirically validate two heuristic algorithms to compute feasible and low carbon emission solutions to the problem.
For simplicity we denote
In the above IQP formulation, (1) is the objective to minimize the total carbon emission, where the load of the vehicle is the sum of the vehicle weight
1.2 Carbon emission formula
Carbon emission, among several other emissions from fuel-powered engines, is estimated to be directly proportional to fuel consumption[11]. Many elements influence fuel consumption, including travel related factors such as driving style, vehicle characteristics such as engine size, road geometry such as gradients, and meteorological conditions such as ambient temperature. After averaging out most factors and regressing on the load of the vehicle, fuel consumption, and thus the subsequent carbon emission per unit distance, often takes an affine form of
We adopt this affine emission per unit distance in our formulation, but scale it (i.e., dividing it by
In practice, there are at least three different capacity vehicles that are available for sharing bicycle companies in Xi'an, China and Chengdu, China, one of which has capacity of
1.3 Related work
Our SBR problem is a variant of VRP, which has numerous applications in operations research and has been studied extensively for more than six decades. For most VRP variants, one major objective is to minimize the total distance traveled by the service vehicle (or by a group of multiple vehicles). This includes the classic TSP problem, for which Christofides' algorithm is a
The SBR problem we formulated seems novel and we found no existing work on it in the literature (to the best of our knowledge). When carbon emission has a weak dependence on the number of bicycles carried by the vehicle but is proportional to the traveled distance (that is,
2 Two heuristic algorithms
Given that carbon emission along an edge is measured as the product of the load of the vehicle and the weight of the edge, intuitively one should seek to reduce the vehicle load as much as possible and only pick up surplus bicycles from an overflowing station as the last choice; one should also seek to drive to the "closest" station from the current station, for either pick-up or drop-off purposes. In the following two algorithms, reducing the vehicle load is common to both and has a higher priority, while the "closest" station is defined differently, one globally in the greedy algorithm and the other guided in the TSP-based algorithm.
2.1 Greedy algorithm
Recall that the number of bicycles at the back of the service vehicle leaving the station
Let
Recall that we have the priority to reduce the vehicle load. If
Algorithm Greedy:
Each iteration (the vehicle is at
Theorem 1The algorithm Greedy runs in
Proof Note that when
Since each iteration takes
2.2 TSP-based algorithm
Assume an approximate TSP tour has been computed (in our implementation, by Christofides'
Starting at
Again recall that we have the priority to reduce the vehicle load. There are three possible situations below with decreasing preference:
1) The vehicle can fill the shortage of
2) The vehicle cannot fill the shortage of
(Comment: In this case,
3) The vehicle cannot fill the shortage of
(Comment: If this first surplus station is not
Algorithm TSP-based:
Each iteration: (stations
Theorem 2The algorithm TSP-based runs in
Proof When
Christofides'
3 Numerical experiments
We first describe the datasets and the settings we used in the empirical experiments, then summarize the main statistics on the results, followed by additional experiments and points of discussion.
3.1 Datasets and settings
We have obtained two real datasets of
We note that the sharing bicycle stations are quite well chosen, so that the surplus and the shortage (collected at one time for re-locating purpose) are mostly a single digit, with the maximum being slightly over a dozen. In both datasets, we have the latitude and the longitude for each station, which are used to calculate the inter-station approximate Manhattan distances between stations by using a factor of
Besides the above two, we simulated datasets with
For each
3.2 Algorithms and their implementation
We examine the performance of the two proposed heuristic re-locating algorithms Greedy and TSP-based, both were implemented in a Python (version 3.7.0) program. We employed the "
For each instance of the
3.3 Results
For every instance, we collect the following values whenever applicable:
● IQP-Cplex: the service path, the total carbon emission, the travel distance by the vehicle, and the running time;
● Greedy: the service path, the total carbon emission, and the travel distance by the vehicle;
● TSP-based: the length of the guide TSP tour by the component Christofides' algorithm, the service path, the total carbon emission, and the travel distance by the vehicle.
We remark that running either the Greedy or the TSP-based algorithm on a collection of
Table 1 summarizes the experimental results on the
Table 1
The performance of all three algorithms IQP-Cplex, Greedy and TSP-based on the
#Stations | |||||
Christofides' distance | 46.76 | 46.84 | 44.26 | 45.47 | 46.69 |
IQP-Cplex emission | 110.75 | 110.87 | 121.26 | 119.07 | 121.63 |
Greedy emission | 188.37 | 189.04 | 213.50 | 220.65 | 218.74 |
TSP-based emission | 229.75 | 255.32 | 258.47 | 252.58 | 256.84 |
IQP-Cplex distance | 50.81 | 52.43 | 59.23 | 59.22 | 61.04 |
Greedy distance | 49.91 | 51.40 | 57.25 | 58.75 | 59.97 |
TSP-based distance | 58.43 | 63.92 | 66.59 | 66.50 | 68.54 |
IQP-Cplex time (seconds) | 12.68 | 81.15 | 1 673.73 | 2 028.63 | 3 756.00 |
For
Fig.1
Fig.1
The performances of the three algorithms IQP-Cplex, Greedy and TSP-based on the
From Fig. 1(a), one also sees that, for these
The last row of Table 1 records the average running time of the IQP-Cplex solver, roughly seconds to minutes on a
Fig.2
Fig.2
The running time of IQP-Cplex on the
From the
Fig.3
Fig.3
The service paths generated by the three algorithms on two simulated instances of the
Since IQP-Cplex did not finish any instance associated with
Table 2
The performance of the two algorithms Greedy and TSP-based on the
25-station | won | 110-station | won | ||
Christofides' distance | 54.99 | 175.52 | |||
Greedy emission | 15/0 | 272.03 | 82 | 686.39 | 99 |
TSP-based emission | 342.90 | 18 | 1 099.99 | 1 | |
Greedy distance | 73.23 | 87 | 192.13 | 99 | |
TSP-based distance | 88.29 | 13 | 291.31 | 1 | |
Greedy emission | 25/10 | 1 199.28 | 82 | 3 129.66 | 100 |
TSP-based emission | 1 428.43 | 18 | 4 719.92 | 0 | |
Greedy distance | 74.42 | 84 | 194.47 | 100 | |
TSP-based distance | 86.43 | 16 | 287.97 | 0 | |
Greedy emission | 50/20 | 2 383.08 | 89 | 6 367.98 | 100 |
TSP-based emission | 2 911.67 | 11 | 9 568.11 | 0 | |
Greedy distance | 73.18 | 89 | 196.91 | 100 | |
TSP-based distance | 86.51 | 11 | 285.32 | 0 |
3.4 Discussion
3.4.1 Carrying extra bicycles doesn't really help
One might argue that starting with
We experimented with carrying extra
Table 3
The performance of the two algorithms Greedy and TSP-based on the
25-station | won | 110-station | won | ||
Greedy emission | 15(0+5) | 303.65 | 83 | 730.16 | 100 |
TSP-based emission | 394.12 | 17 | 1 180.03 | 0 | |
Greedy distance | 72.28 | 93 | 192.07 | 100 | |
TSP-based distance | 91.31 | 7 | 292.48 | 0 | |
Greedy emission | 15(0+10) | 355.52 | 81 | 763.26 | 99 |
TSP-based emission | 453.38 | 19 | 1 255.51 | 1 | |
Greedy distance | 71.91 | 94 | 190.68 | 99 | |
TSP-based distance | 93.09 | 6 | 293.69 | 1 | |
Greedy emission | 25(10+5) | 1 231.78 | 82 | 3 162.01 | 100 |
TSP-based emission | 1 501.64 | 18 | 4 835.77 | 0 | |
Greedy distance | 73.99 | 84 | 194.57 | 100 | |
TSP-based distance | 87.63 | 16 | 289.05 | 0 | |
Greedy emission | 25(10+10) | 1 245.23 | 86 | 3 199.52 | 100 |
TSP-based emission | 1 541.14 | 14 | 4 936.85 | 0 | |
Greedy distance | 72.46 | 90 | 193.88 | 100 | |
TSP-based distance | 88.13 | 10 | 290.35 | 0 | |
Greedy emission | 50(20+5) | 2 411.84 | 91 | 6 409.37 | 100 |
TSP-based emission | 2 993.68 | 9 | 9 808.92 | 0 | |
Greedy distance | 73.33 | 89 | 196.74 | 100 | |
TSP-based distance | 87.54 | 11 | 287.73 | 0 | |
Greedy emission | 50(20+10) | 2 476.63 | 92 | 6 417.28 | 100 |
TSP-based emission | 3 057.94 | 8 | 9 794.56 | 0 | |
Greedy distance | 74.01 | 88 | 195.71 | 100 | |
TSP-based distance | 87.56 | 12 | 285.04 | 0 |
From Table 3, and comparing against Table 2, one sees that carrying extra bicycles out of the depot does not have a significant impact on travel distance, for both Greedy and TSP-based algorithms. This is perhaps reasonable since the instances are randomly generated so that there are many service paths having similar distances. One could expect to see that on average carbon emission increases by an amount equal to the product of the number of extra bicycles and the travel distance. Nevertheless, for
We note that by the design idea in both Greedy and TSP-based algorithms, when carrying extra bicycles leaving the depot, the service vehicle first tries to drop off bicycles to the shortage stations, while at the end it needs to keep collecting the surplus bicycles from overflowing stations and brings them back to the depot. That is, extra bicycles allow for some extent of freedom at both ends of the service path, but they also incur higher emission; therefore, it is difficult to argue whether or not it is always helpful. Another interesting observation is that Greedy consistently performs better than TSP-based, and even slightly better than in the default setting of no extra bicycles.
3.4.2 Greedy performs well for delivery TSP
Recall that in the delivery TSP problem each station is associated with
Table 4 contains the collected statistics. Recall that we take the value of the capacity
Table 4
The performance of the two algorithms Greedy and TSP-based on a collection of
won | |||
Greedy emission | 1 | 83.86 | 100 |
TSP-based emission | 149.53 | 0 | |
Greedy distance | 169.80 | 100 | |
TSP-based distance | 311.11 | 0 | |
Greedy emission | 2 | 82.15 | 100 |
TSP-based emission | 154.12 | 0 | |
Greedy distance | 166.53 | 100 | |
TSP-based distance | 319.41 | 0 | |
Greedy emission | 4 | 85.99 | 100 |
TSP-based emission | 155.01 | 0 | |
Greedy distance | 166.15 | 100 | |
TSP-based distance | 313.98 | 0 | |
Greedy emission | 8 | 101.12 | 95 |
TSP-based emission | 176.22 | 5 | |
Greedy distance | 162.42 | 100 | |
TSP-based distance | 313.76 | 0 |
(1) The service paths by Greedy are much shorter than those by TSP-based (and in fact about half as long), compared to earlier results on the regularly simulated instances. On average, the service paths by Greedy are about
(2) The carbon emission is about half of the travel distance for both Greedy and TSP-based algorithms. One might be able to imagine that after the service vehicle picks up a surplus bicycle, it prefers to find a shortage station to drop the bicycle down, as this is designed into both algorithms; therefore, the expected travel distance without carrying any bicycle is about half of the total distance.
(3) Greedy outperformed the TSP-based algorithm, winning on all
We thus may once again safely recommend Greedy over TSP-based in such a special case.
4 Conclusions
In this paper, we formulated the sharing bicycle relocating practice as a novel optimization problem, which can be regarded as a variant of the classic TSP problem with its objective function no longer the length of the Hamiltonian tour but the total carbon emission by the service vehicle. We adopted the affine carbon emission formula and scaled it as the product of the load of the vehicle and the travel distance, and proposed two heuristic algorithms Greedy and TSP-based. The priority in both algorithms is to drop off bicycles to reduce the load of the vehicle, and Greedy seeks for the closest station globally while TSP-based also seeks for the closest station but guided by an approximate TSP tour. We designed numerical experiments to validate their performance empirically, showing the settings where each of Greedy and TSP-based outperforms the other to make recommendations to the sharing bicycle companies for their daily dispatching practice. We also formulated an integer quadratic program for the re-locating problem, solved it to the optimum inside CPLEX for small instances, and benchmarked the performances of Greedy and TSP-based against these optimal solutions.
参考文献
Balancing the stations of a self service bike hire system
[J].DOI:10.1051/ro/2011102 [本文引用: 1]
Green open location-routing problem considering economic and environmental costs
[J].
The bike sharing rebalancing problem: Mathematical formulations and benchmark instances
[J].DOI:10.1016/j.omega.2013.12.001 [本文引用: 1]
Balancing bike sharing systems with constraint programming
[J].DOI:10.1007/s10601-015-9182-1 [本文引用: 1]
The swapping problem
[J].DOI:10.1002/net.3230220408 [本文引用: 2]
Approximating capacitated routing and delivery problems
[J].DOI:10.1137/S0097539795295468 [本文引用: 2]
The multiple vehicle routing problems with simultaneous delivery and pickup points
[J].DOI:10.1016/0191-2607(89)90085-X [本文引用: 1]
Maximum skew-symmetric flows and matchings
[J].
/
〈 |
|
〉 |
