运筹学学报, 2022, 26(3): 75-91 doi: 10.15960/j.cnki.issn.1007-6093.2022.03.006

最小化碳排放的共享单车迁移问题

苏兵1, 范佳彬2, GAO Arthur2, 邵艳君1, 林国辉,2

1. 西安工业大学经济管理学院, 陕西西安 710021

2. 阿尔伯塔大学计算科学系, 加拿大阿尔伯塔埃德蒙顿 T6G 2E8

Sharing bicycle relocating with minimum carbon emission

SU Bing1, CARLSON Wyatt2, FAN Jiabin2, GAO Arthur2, SHAO Yanjun1, LIN Guohui,2

1. School of Economics and Management, Xi'an Technological University, Xi'an 710021, Shaanxi, China

2. Department of Computing Science, University of Alberta, Edmonton, T6G 2E8 Alberta, Canada

收稿日期: 2022-01-8  

Corresponding authors: LIN Guohui, E-mail:guohui@ualberta.ca

Received: 2022-01-8  

Fund supported: National Social Science Foundation of China.  20XGL023

摘要

本文考虑共享单车迁移问题, 它可看作是经典旅行售货商问题的一个新颖变形, 不同的是其目标函数为最小化碳排放。其中, 碳排放利用单车负载与其行驶路程的乘积进行刻画。我们提出了两个启发式算法:贪心和基于TSP的算法, 每个算法的核心思想均是优先减少单车负载。从理论上证明算法的可行性并给出数据实验以验证算法的实际性能。数据实验结果表明贪心算法优于基于TSP的算法, 这为共享单车企业进行日常单车分配提供了理论依据。

关键词: 共享单车 ; 碳排放 ; 整数二次规划 ; 旅行售货商问题 ; 启发式算法 ; Cplex

Abstract

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: sharing bicycle ; carbon emission ; integer quadratic program ; traveling salesman problem ; heuristics ; Cplex

PDF (1154KB) 元数据 多维度评价 相关文章 导出 EndNote| Ris| Bibtex  收藏本文

本文引用格式

苏兵, 范佳彬, GAO Arthur, 邵艳君, 林国辉. 最小化碳排放的共享单车迁移问题. 运筹学学报[J], 2022, 26(3): 75-91 doi:10.15960/j.cnki.issn.1007-6093.2022.03.006

SU Bing. Sharing bicycle relocating with minimum carbon emission. Operations Research Transactions[J], 2022, 26(3): 75-91 doi:10.15960/j.cnki.issn.1007-6093.2022.03.006

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 $ +1 $ or $ -1 $. Moreover, recall that our objective function is to minimize the carbon emission, which is determined by both the distance traveled and the load of the vehicle (including a fixed portion representing the weight of the vehicle, if necessary); we will present some more details on the formula for calculating carbon emission in the next section. Therefore, our problem is not really any TSP variants that have been studied in the literature to minimize (traditionally only) the length of the tour.

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 $ G = (V, d(\cdot)) $ representing the underlying traffic network, where a vertex of $ V $ represents a station, the edge weight $ d(\cdot) $ measures the distance (or the travel time) between two stations, and the edge weights satisfy the triangle inequality.

Among the vertex set $ V = \{v_0, v_1, v_2, \cdots, v_n\} $, where $ n {\geqslant} 2 $, $ v_0 $ represents the sharing bicycle depot which is assumed to have unlimited storage and an unlimited supply of sharing bicycles, and each $ v_i $, $ i = 1, 2, \cdots, n $, represents a sharing bicycle station associated with an integer $ q_i $ stating the known surplus number of bicycles, when $ q_i > 0 $, or the known shortage, when $ q_i < 0 $.

There is a service vehicle of capacity $ Q $ and it is obliged to collect the surplus bicycles from all the overflowing stations, re-distribute them to shortage stations to fully satisfy their needs, and then come back to the depot. To this purpose, the vehicle has to carry extra $ q_0 = \max\{0, -\sum_{i=1}^n q_i\} $ bicycles out of the depot, and bring back to the depot $ \max\{0, \sum_{i=1}^n q_i\} $ bicycles. It is assumed without loss of generality that $ |q_i| {\leqslant} Q/2 $ for each $ i $ and $ |\sum_{i=1}^n q_i| {\leqslant} Q $, for the sake of feasibility, that is, there exists a feasible Hamiltonian tour for the service vehicle*. The cost for the vehicle traveling from $ v_i $ to $ v_j $ is measured by carbon emission, which is the product of the load of the vehicle (in the number of bicycles) and the travel distance $ d(v_i, v_j) $[9, 10] (see also discussion in Subsection 2.2). In general, the vehicle itself has weight that is equivalent to a fixed number $ a_0 $ of bicycles, and thus the load is $ a_0 + c $, with $ c $ being the actually number of bicycles at the back of the vehicle.

* One sees that this is necessary by looking at a small instance of three stations, two of which each has a surplus $ Q/2 $ while the third has a shortage of $ 1 + Q/2 $. Then a service vehicle of capacity strictly less than $ Q $ is not able to fulfill the re-locating purpose, under the Hamiltonian constraint that every station is visited exactly once and the constraint that the service vehicle leaves the depot with $ 0 $ bicycles and comes back to the depot with $ Q/2 - 1 $ bicycles.

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 $ d_{ij} = d(v_i, v_j) $. We next formulate an integer quadratic program (IQP) for the SBR problem, borrowing the ideas for the classic TSP problem. To this purpose, we define a binary variable $ x_{ij} = 1 $ if and only if the arc (i.e., directed edge) from $ v_i $ to $ v_j $ is included in the Hamiltonian tour. We note from $ n {\geqslant} 2 $ that $ x_{ii} = 0 $ (i.e., no loop), and $ x_{ij} = 1 $ implies $ x_{ji} = 0 $ (i.e., each edge is used at most once), for all $ i, j \in \{0, 1, 2, \cdots, n\} $. Let $ c_i $ denote the to-be-determined number of bicycles at the back of the vehicle leaving the station $ v_i $, which is a non-negative integer less than or equal to $ Q $; specifically, $ c_0 = q_0 $. If the vehicle travels along the edge from $ v_i $ to $ v_j $ (that is, $ x_{ij} = 1 $) and either picks up the surplus or fills the shortage at $ v_j $, then its number of bicycles at the station $ v_j $ is $ c_j = c_i + q_j $, which must also be a non-negative integer less than or equal to $ Q $, and the traveling along this arc $ (v_i, v_j) $ incurs an amount $ (a_0 + c_i) d_{ij} $ of carbon emission.

$ \begin{eqnarray} \mbox{min} & {\sum\limits_{i=0}^n \sum\limits_{j=0}^n (a_0 + c_i) \cdot d_{ij} x_{ij}} & \end{eqnarray} $

$ \begin{eqnarray} \mbox{s.t.} &\sum\nolimits_{j=0}^n x_{ij} = 1, &\forall i \in \{0, 1, 2, \cdots, n\}, \end{eqnarray} $

$ \begin{eqnarray} &\sum\nolimits_{i=0}^n x_{ij} = 1, &\forall j \in \{0, 1, 2, \cdots, n\}, \end{eqnarray} $

$ \begin{eqnarray} &\sum\nolimits_{i, j \in U} x_{ij} {\leqslant} |U| - 1, & \forall U \subset \{0, 1, 2, \cdots, n\}, \end{eqnarray} $

$ \begin{eqnarray} &c_0 = \max\{0, - \sum\nolimits_{i=1}^n q_i\}, & \end{eqnarray} $

$ \begin{eqnarray} &c_j = \sum\nolimits_{i=0}^n x_{ij} (c_i + q_j), & \forall j \in \{1, 2, \cdots, n\}, \end{eqnarray} $

$ \begin{eqnarray} &0 {\leqslant} c_j {\leqslant} Q, & \forall j \in \{1, 2, \cdots, n\}, \end{eqnarray} $

$ \begin{eqnarray} &x_{ij} \in \{0, 1\}, & \forall i, j \in \{0, 1, 2, \cdots, n\}. \end{eqnarray} $

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 $ a_0 $ and the number of bicycles $ c_i $ it carries when leaving $ v_i $; the constraints (2) and (3) state that every vertex $ v_i $ is visited by the service vehicle exactly once; the constraint (4) forces, together with (2) and (3), the tour to be Hamiltonian; the constraint (5) says that the service vehicle starts from the depot, carrying with it $ q_0 $ bicycles, and the constraints (6) and (7) express how the load changes along the tour and, the number of bicycles carried by the vehicle should not exceed the vehicle capacity at any point, nor go below $ 0 $.

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 $ a_0 + a_1 \cdot c $[9, 10], where $ a_0 $ is the amount of fuel consumption by the vehicle itself, $ a_1 $ is the additional amount of fuel consumption with unit goods on the vehicle, and $ c $ is the total number of units of goods.

We adopt this affine emission per unit distance in our formulation, but scale it (i.e., dividing it by $ a_1 $) to use $ c $ to denote the number of bicycles at the back of the service vehicle and $ a_0 $ to denote the weight of the service vehicle itself as an integral number of bicycles. That is, the carbon emission per unit distance for the service vehicle is its load of $ a_0 + c $.

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 $ Q = 15 $ and itself is so light that the weight is negligible, that is, $ a_0 = 0 $. The other two have capacities of $ 25 $ and $ 50 $, and their own weights are equivalent to the weights of $ 10 $ and $ 20 $ bicycles, respectively. In the empirical experiments, all three of these vehicles are examined.

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 $ 1.5 $-approximation[12], that is, it returns a Hamiltonian tour of length within $ 1.5 $ times of the minimum. When the service vehicle needs to pick up goods from some customers (e.g., extra bicycles at the overflowing stations in our case) and drop them off to the other customers (e.g., the shortage stations in our case), the problem is referred to as delivery TSP[13]. A special case of the delivery TSP, also a special case of our SBR problem, in which each $ q_i $ is either $ +1 $ or $ -1 $, was studied by Anily and Hassin[6], who presented a $ 2.5 $-approximation when the service vehicle has capacity $ Q = 1 $; Chalasani and Motwani[7] continued the study and proposed a better $ 2 $-approximation when the service vehicle has capacity $ Q = 1 $, a $ 9.5 $-approximation when the service vehicle has an arbitrary but finite capacity $ Q $, and a $ 2 $-approximation when the service vehicle has infinitely large capacity $ Q = +\infty $. The $ 9.5 $-approximation is improved to a $ 5 $-approximation by Charikar et al.[8].

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, $ a_0 \gg Q $), our SBR problem reduces to the classic TSP problem. Therefore, the SBR problem is NP-hard and likely more difficult to approximate.

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 $ v_i $ is $ c_i $, satisfying $ 0 {\leqslant} c_i {\leqslant} Q $. The greedy algorithm decides the next station to drive to as follows.

Let $ S^+ $ denote the set of unvisited stations with surplus, and $ S^- $ denote the set of unvisited stations $ v_j $ with shortage $ q_j {\geqslant} - c_i $ (that is, its shortage can be filled if chosen so in this iteration).

Recall that we have the priority to reduce the vehicle load. If $ S^- \ne {\varnothing} $, then the vehicle moves to the closest station $ v_j \in S^- $ (that is, $ v_j = \arg\min\{d(v_i, v_j) \mid v_j \in S^-\} $), drops down exactly $ - q_j $ bicycles, and updates the number of bicycles at the back as $ c_j = c_i + q_j $; otherwise, the vehicle moves to the closest station $ v_j \in S^+ $ (that is, $ v_j = \arg\min\{d(v_i, v_j) \mid v_j \in S^+\} $), collects the surplus $ q_j $, and updates the number of bicycles at the back as $ c_j = c_i + q_j $. A high level description of an iteration of the algorithm is depicted in the following.

Algorithm Greedy:

Each iteration (the vehicle is at $ v_i $, with $ c_i {\leqslant} Q $ bicycles at the back): set $ S^+ = \{v_j \mid v_j \mbox{ is not visited, and } q_j > 0\} $; set $ S^- = \{v_j \mid v_j \mbox{ is not visited, and } - c_i {\leqslant} q_j < 0\} $; if $ S^- \ne {\varnothing} $, then let $ v_j = \arg\min\{d(v_i, v_j) \mid v_j \in S^-\} $; otherwise, let $ v_j = \arg\min\{d(v_i, v_j) \mid v_j \in S^+\} $; the vehicle moves to $ v_j $, and updates the number of bicycles as $ c_j = c_i + q_j $.

Theorem 1The algorithm Greedy runs in $ O(n^2) $ time and outputs a feasible tour, where $ n $ is the number of stations.

Proof Note that when $ S^- = {\varnothing} $, if there is no more unvisited shortage station, then the vehicle is able to pick up the surplus bicycles from all the remaining unvisited stations and thus $ c_i + q_j {\leqslant} Q $ by the assumption $ |\sum_{i=1}^n q_i| {\leqslant} Q $; if there are unvisited shortage stations, then we conclude from $ |q_h| {\leqslant} Q/2 $ for any $ h \in \{1, 2, \cdots, n\} $ that $ c_i < Q/2 $ and thus $ c_i + q_j < Q $. In other words, the vehicle is able to collect all the surplus bicycles from the station $ v_j \in S^+ $. This proves that the algorithm Greedy terminates and outputs a feasible tour.

Since each iteration takes $ O(n) $ time, the overall running time for the algorithm Greedy is in $ O(n^2) $.

2.2 TSP-based algorithm

Assume an approximate TSP tour has been computed (in our implementation, by Christofides' $ 1.5 $-approximation), which takes only the edge weights into consideration with the objective to minimize the total travel distance, and the tour is $ C = \langle v_0, v_1, v_2, \cdots, v_n, v_0\rangle $. Note that the depot $ v_0 $ is regarded as both a surplus and shortage station, and at the start, the vehicle carries $ c_0 = \max\{0, - \sum_{j=1}^n q_j\} $ bicycles.

Starting at $ v_0 $, we fix a direction on $ C $ for the vehicle, such that the stations are visited by the vehicle in a sequential order. That is, $ C $ is the guide tour in our algorithm. The vehicle maintains $ v^+ $ and $ v^- $ to be the first unvisited surplus station and the first unvisited shortage station, respectively, and they are initialized to be the first ones in the sequential order from $ v_0 $. At the beginning of an iteration (a high level description of an iteration in the TSP-BASED algorithm is depicted in the following), the vehicle stands at a station, has $ c $ bicycles at the back, decides the next station to drive to and updates $ v^+ $ and $ v^- $ as follows.

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 $ v^- $. From its current location, the vehicle moves to $ v^- $, and subsequently updates the number $ c $ of bicycles and updates the station $ v^- $ to be the next unvisited shortage station in the sequential order from the current location.

2) The vehicle cannot fill the shortage of $ v^- $. If any, let $ v_j $ be the unvisited first shortage station on the way from the current station to $ v^+ $, of which the shortage can be filled by the vehicle; the vehicle moves to $ v_j $, and subsequently updates the number $ c $ of bicycles.

(Comment: In this case, $ v_j $ comes after $ v^- $ in the sequential order, but is visited before $ v^- $; therefore, $ v^- $ doesn't need to be updated.)

3) The vehicle cannot fill the shortage of $ v^- $, neither can it fill the shortage of any shortage station on the way from the current station to $ v^+ $, or there is no shortage station on the way from the current station to $ v^+ $ at all. The vehicle collects the surplus of the first unvisited surplus station in the sequential order from the current location, and subsequently updates the number $ c $ of bicycles; furthermore, if this first surplus station is $ v^+ $, then it updates the station $ v^+ $ to be the next unvisited surplus station in the sequential order from the current location.

(Comment: If this first surplus station is not $ v^+ $, then it comes after $ v^+ $ in the sequential order; therefore, $ v^+ $ doesn't need to be updated.)

Algorithm TSP-based:

Each iteration: (stations $ v^+ $ and $ v^- $ have been defined): if the vehicle can fill the shortage of $ v^- $, it moves to $ v^- $, updates $ c $ and $ v^- $; if the vehicle can fill the shortage of $ v_j $ on the way to $ v^+ $, it fills the shortage of $ v_j $, and updates $ c $; if the vehicle cannot fill the shortage of any station on the way to $ v^+ $, it moves to the first surplus station $ v_j $, and updates $ c $; if $ v_j = v^+ $, then it updates $ v^+ $.

Theorem 2The algorithm TSP-based runs in $ O(n^{2.5}/{\log n}) $ time and outputs a feasible tour, where $ n $ is the number of stations.

Proof When $ v^- $ becomes undefined (or $ v^- = v_0 $, if the depot $ v_0 $ is viewed also as a shortage station), the vehicle is able to pick up the surplus bicycles from all the unvisited stations, including $ v^+ $, by the assumption $ |\sum_{i=1}^n q_i| {\leqslant} Q $; otherwise, we conclude from $ |q_h| {\leqslant} Q/2 $ for any $ h \in \{1, 2, \cdots, n\} $ that $ c < Q/2 $ and thus the vehicle is able to collect all the surplus bicycles from the first unvisited surplus station on the way to $ v^+ $. This proves the feasibility.

Christofides' $ 1.5 $-approximation algorithm involves an $ O(n^{2.5} / \log n) $-time phase for computing a maximum weight matching[14], which is dominant. Afterwards, each iteration takes $ O(n) $ time, and thus the overall running time for the algorithm TSP-based is in $ O(n^{2.5} /\log n) $.

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 $ 25 $ and $ 110 $ sharing bicycle stations in Xi'an, China. The smaller one (referred to as real $ 25 $-station dataset) is from a northern small district of Xi'an city, and it doesn't have its own depot. The larger one (referred to as real $ 110 $-station dataset) is a superset of the former, it covers a much larger northern area of Xi'an city, and it has its own depot, which sits roughly at the geometric center. In our experiments, we add a pseudo-depot to the $ 25 $-station dataset at the average latitude and longitude of the $ 25 $ stations (this pseudo-depot is very close to the $ 110 $-station dataset depot, within a few tenths of a degree both latitude and longitude).

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 $ 110.574 $ km for one latitude degree and $ 111.320 \times \cos(\mbox{latitude}) $ km for one longitude degree. We remark that the Manhattan distance matches well with the grid-like street layout in Xi'an city.

Besides the above two, we simulated datasets with $ n \in [16, 20] $ stations using the first $ n $ stations from the real $ 25 $-station dataset plus the depot, which are referred to as the $ n $-station datasets, respectively.

For each $ n $-station dataset, $ n \in [16, 20] $, we independently randomly generate $ 100 $ simulated instances on the same set of stations, by only simulating the surplus/shortage value for every station within the closed interval $ [-Q/2, Q/2] $ and ensuring the total is within $ [-Q, Q] $. Recall that we have three different capacities $ Q = 15, 25, 50 $, for which the weights of the service vehicles are equivalent to $ a_0 = 0, 10, 20 $ bicycles, respectively. For the $ 25 $-station dataset and the $ 110 $-station dataset, we also independently randomly generate $ 100 $ simulated instances for each capacity $ Q = 15, 25, 50 $. We note that the real instances of the $ n $-station datasets for $ n \in [16, 20] $, that is, instances with the real surplus/shortage values, correspond to $ Q = 15 $; and the real instances of the $ 25 $-station dataset and the $ 110 $-station dataset correspond to $ Q = 25 $. Each real instance replaces one corresponding simulated instance in the experiments.

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 "$ {\tt math}$", "$ {\tt random}$", "$ {\tt csv}$" and "$ {\tt sys}$" libraries. Both algorithms can run on all the instances as their time complexities are low.

For each instance of the $ n $-station datasets with $ n \in [16, 20] $, we computed the optimal solution in CPLEX, where the IQP formulation was implemented using the CPLEX Studio IDE 12.10.0 (the implementation is denoted as IQP-Cplex from here on) and the instances were run from the prompt using the $ {\tt oplrun}$ command. In more details, the IQP formulation is written in the OPL language with some execution blocks written in JavaScript for pre-processing (calculating distances and problem setup) and post-processing (writing results into a file). Due to the high time and space complexity in the size of the instance, two of the CPLEX parameters were changed to more efficiently use memory while solving each instance: the memory reduction switch was set to "$ {\tt conserve ~~memory}$" wherever possible, and the variable selection strategy was set to "$ {\tt strong~~ branch}$" (partially solving subproblems to see which branch is the most promising).

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 $ 100 $ instances associated with a couple $ (n, Q) $ took within seconds on a computer with a Ryzen 5 2600 CPU @3.4GHz and 16Gb of 3 000 MHz DDR4 Ram; we therefore did not record their detailed running time for the experiments.

Table 1 summarizes the experimental results on the $ n $-station datasets with $ n \in [16, 20] $ (and the service vehicle has capacity $ Q = 15 $). The second row lists the lengths of the TSP tours by Christofides' algorithm; we note that for all the $ 100 $ simulated instances associated with $ (n, 15) $, their TSP tours are the same since the simulation is on the surplus/shortage values only. The next three rows contain the average emissions of the optimal solutions, the solutions by Greedy, and the solutions by TSP-based, and their standard deviations.

Table 1   The performance of all three algorithms IQP-Cplex, Greedy and TSP-based on the $ 100 $ simulated instances for the $ n $-station datasets, where $ n \in \{16, 17, \cdots, 20\} $. In this experiment, a light truck is dispatched with its capacity $ Q = 15 $ and its own weight ignored. Rows 3–5 (6–8, respectively) contain the average carbon emissions (average travel distances, respectively) and their standard deviations over the $ 100 $ instances, in the solutions by the three algorithms.The last row records the average running times of IQP-Cplex and the standard deviations

#Stations$ 16 $$ 17 $$ 18 $$ 19 $$ 20 $
Christofides' distance46.7646.8444.2645.4746.69
IQP-Cplex emission110.75$ \pm $18.31110.87$ \pm $21.79121.26$ \pm $22.83119.07$ \pm $19.61121.63$ \pm $19.01
Greedy emission188.37$ \pm $44.09189.04$ \pm $43.75213.50$ \pm $51.24220.65$ \pm $55.84218.74$ \pm $51.07
TSP-based emission229.75$ \pm $52.15255.32$ \pm $69.64258.47$ \pm $64.29252.58$ \pm $60.50256.84$ \pm $58.52
IQP-Cplex distance50.81$ \pm $5.4152.43$ \pm $4.9459.23$ \pm $5.7959.22$ \pm $6.5761.04$ \pm $6.20
Greedy distance49.91$ \pm $6.1551.40$ \pm $5.6357.25$ \pm $6.4658.75$ \pm $6.7759.97$ \pm $6.52
TSP-based distance58.43$ \pm $7.0963.92$ \pm $7.6166.59$ \pm $9.0566.50$ \pm $9.8268.54$ \pm $8.82
IQP-Cplex time (seconds)12.68$ \pm36.90 $81.15$ \pm $176.651 673.73$ \pm $5 331.302 028.63$ \pm $5 685.023 756.00$ \pm $8 362.41

新窗口打开| 下载CSV


For $ n = 20 $, the detailed emission values by the three algorithms are plotted in Figure 1(a), where the instances are sorted in their increasing optimal emission order. One sees that Greedy and TSP-based solutions emit on average about $ 1.76 $ and $ 2.15 $ times, respectively, that of the optimal solutions. Interestingly, in terms of travel distance, Greedy tours are often shorter, and in fact about $ 2\% $ shorter than the tour in the optimal solutions on average; while TSP-based tours are on average about $ 15\% $ longer than the tour in the optimal solutions. The detailed distance values for these $ 100 $ instances by the three algorithms are plotted in Figure 1(b), where the instances are sorted in their increasing Greedy distance order.

Fig.1

Fig.1   The performances of the three algorithms IQP-Cplex, Greedy and TSP-based on the $ 100 $ simulated instances of the $ 20 $-station dataset, when a light service vehicle of capacity $ Q = 15 $ is deployed: (a) The carbon emissions and (b) the travel distances. Note that in the two plots, the instances are sorted in different orders for better viewing


From Fig. 1(a), one also sees that, for these $ 100 $ instances, the emissions by Greedy and TSP-based fluctuate up and down, but interestingly the general tendencies are increasing. That is, in general, the emissions by Greedy and TSP-based correlate positively to the minimum emissions, with their correlation coefficients $ 0.686 $ and $ 0.622 $ respectively. For distances, one sees from Fig. 1(b) that 1) there doesn't seem to be any correlation between any two groups of the distances (their pairwise correlation coefficients are $ 0.272, -0.017, 0.386 $, respectively), 2) TSP-based looks inferior to both Greedy and IQP-Cplex on majority of the instances, and 3) IQP-Cplex wins over Greedy on $ 42 $ instances and thus they are competitive to each other.

The last row of Table 1 records the average running time of the IQP-Cplex solver, roughly seconds to minutes on a $ 16/17 $-station instance, half an hour on an $ 18/19 $-station instance, and one hour on a $ 20 $-station instance. Figure 2 plots the detailed running times on the $ 100 $ simulated instances of the $ 20 $-station dataset by the IQP-Cplex algorithm, sorted in their running time order. One sees that 1) there are huge differences in the solution spaces explored by IQP-Cplex, 2) $ 79 $ out of the $ 100 $ instances were solved by IQP-Cplex under an hour, while $ 13 $ instances required longer than two hours. The standard deviations in the last row of Table 1 are very large, suggesting the huge running time variation across different instances; indeed, one sees from Fig. 2 that the shortest and longest times for a $ 20 $-instance are $ 86 $ seconds and $ 14 $ hours, respectively.

Fig.2

Fig.2   The running time of IQP-Cplex on the $ 100 $ simulated instances of the $ 20 $-station dataset, where the instances are sorted in increasing running time order


From the $ 100 $ instances associated with the couple $ (20, 15) $, we pick two of them to illustrate the service paths by the three algorithms in Fig. 3. On one instance Greedy significantly outperforms TSP-based in carbon emission, and the carbon emissions for these three paths are 121.13, 146.90, 353.48 by IQP-Cplex, Greedy, TSP-based, respectively; on the other instance TSP-based significantly outperforms Greedy in carbon emission, and the carbon emissions for these three paths are 117.22, 176.41, 277.57 by IQP-Cplex, Greedy, TSP-based, respectively. A general observation from these two instances is that, a good service path does not seem to cross over itself too often.

Fig.3

Fig.3   The service paths generated by the three algorithms on two simulated instances of the $ 20 $-station dataset, on the left of which Greedy significantly outperforms TSP-based in carbon emission and on the right TSP-based significantly outperforms Greedy. (a) the paths by IQP-Cplex, with emission 121.13 and travel distance 52.52 (left) and emission 117.22 and travel distance 65.68 (right); (b) the paths by Greedy, with emission 146.90 and travel distance 53.67 (left) and emission 277.57 and travel distance 55.87 (right); (c) the paths by TSP-based, with emission 353.48 and travel distance 97.41 (left) and emission 176.41 and travel distance 68.82 (right). In the figures, the dots represent labelled stations with the depot labelled $ 0 $; a directed edge tells from which station to another the service vehicle moves along the streets


Since IQP-Cplex did not finish any instance associated with $ (25, 15) $ within the $ 24 $-hour time limit, we collected statistics for only the Greedy and TSP-based algorithms on the instances for the $ 25 $- and $ 110 $-station datasets. Table 2 summarizes the experimental results. The second row lists the lengths of the TSP tours by Christofides' algorithm. The next three groups of four rows each contain the results for deploying a light, a medium, and a heavy truck, respectively, with capacity $ Q = 15, 25 $, and $ 50 $, respectively. These results include the average emissions and the average travel distances in the solutions by Greedy and the solutions by TSP-based, and the standard deviations. For both carbon emission and travel distance, one sees that the solutions by Greedy are mostly better than the solutions by TSP-based, across all three different capacity values; on the $ 25 $-station instances, Greedy performs better on more than $ 80\% $ of the instances, and on the $ 110 $-station instances, Greedy performs better on all but one instance. Interestingly, one sees that the capacity $ Q $ does not seem to affect the travel distance much, for both algorithms. However, the capacity $ Q $ apparently affects emission. From this data (and the data on the $ n $-station datasets for $ n \in \{16, 17, \cdots, 20\} $), we might be able to safely make recommendations to the sharing bicycle companies to adopt Greedy for their dispatching practice.

Table 2   The performance of the two algorithms Greedy and TSP-based on the $ 100 $ instances for each of the $ 25 $-station and $ 110 $-station datasets. In the rows 3–6 (7–10, 11–14, respectively), a light (medium, large, respectively) truck is dispatched with its capacity $ Q = 15 $ ($ 25, 50 $, respectively) and its weight equivalent to $ a_0 = 0 $ ($ 10, 20 $, respectively) bicycles

$ Q/a_0 $25-stationwon110-stationwon
Christofides' distance54.99175.52
Greedy emission15/0272.03$ \pm $56.8982686.39$ \pm $98.4599
TSP-based emission342.90$ \pm $72.79181 099.99$ \pm $206.381
Greedy distance73.23$ \pm $7.3887192.13$ \pm $20.4599
TSP-based distance88.29$ \pm $11.8113291.31$ \pm $38.371
Greedy emission25/101 199.28$ \pm $161.65823 129.66$ \pm $295.90100
TSP-based emission1 428.43$ \pm $222.73184 719.92$ \pm $578.610
Greedy distance74.42$ \pm $8.1184194.47$ \pm $15.73100
TSP-based distance86.43$ \pm $12.2616287.97$ \pm $31.360
Greedy emission50/202 383.08$ \pm $326.58896 367.98$ \pm $555.97100
TSP-based emission2 911.67$ \pm $419.40119 568.11$ \pm $1 327.580
Greedy distance73.18$ \pm $8.2689196.91$ \pm $15.80100
TSP-based distance86.51$ \pm $10.8011285.32$ \pm $36.450

新窗口打开| 下载CSV


3.4 Discussion

3.4.1 Carrying extra bicycles doesn't really help

One might argue that starting with $ q_0 = \max\{0, - \sum_{i=1}^n q_i\} $ bicycles is too restricted for the service truck, and perhaps carrying a certain number of extra bicycles could be helpful. For example, in the illustration $ 3 $-station instance in which two stations each has a surplus $ Q/2 $ while the third has a shortage of $ 1 + Q/2 $, if the service vehicle is allowed an extra bicycle then one could pick up $ Q/2 $ from one surplus station, drop off the $ 1 + Q/2 $ bicycles to the shortage station, and move to the last station to pick up $ Q/2 $ bicycles before returning to the depot.

We experimented with carrying extra $ 5 $ and $ 10 $ (but no more than $ Q - q_0 $, to ensure that the service vehicle capacity is never exceeded) bicycles when leaving the depot, for all three different capacities, and collected the same statistics in Table 3.

Table 3   The performance of the two algorithms Greedy and TSP-based on the $ 100 $ instances for each of the $ 25 $-station and $ 110 $-station datasets, using a combination of a light (medium, large, respectively) truck and extra $ 5 $ ($ 10 $, respectively) bicycles

$ Q(a_0 + \mbox{#bicycles}) $25-stationwon110-stationwon
Greedy emission15(0+5)303.65$ \pm $68.9383730.16$ \pm $108.21100
TSP-based emission394.12$ \pm $78.14171 180.03$ \pm $213.490
Greedy distance72.28$ \pm $7.2493192.07$ \pm $20.12100
TSP-based distance91.31$ \pm $11.737292.48$ \pm $41.240
Greedy emission15(0+10)355.52$ \pm $90.6181763.26$ \pm $118.1799
TSP-based emission453.38$ \pm $73.05191 255.51$ \pm $214.031
Greedy distance71.91$ \pm $7.5594190.68$ \pm $19.4599
TSP-based distance93.09$ \pm $11.566293.69$ \pm $39.231
Greedy emission25(10+5)1 231.78$ \pm $175.21823 162.01$ \pm $309.60100
TSP-based emission1 501.64$ \pm $220.49184 835.77$ \pm $569.090
Greedy distance73.99$ \pm $8.3284194.57$ \pm $16.52100
TSP-based distance87.63$ \pm $11.8716289.05$ \pm $30.530
Greedy emission25(10+10)1 245.23$ \pm $165.22863 199.52$ \pm $277.91100
TSP-based emission1 541.14$ \pm $225.77144 936.85$ \pm $623.240
Greedy distance72.46$ \pm $7.6190193.88$ \pm $14.94100
TSP-based distance88.13$ \pm $11.3110290.35$ \pm $33.190
Greedy emission50(20+5)2 411.84$ \pm $333.12916 409.37$ \pm $588.91100
TSP-based emission2 993.68$ \pm $435.3999 808.92$ \pm $1382.580
Greedy distance73.33$ \pm $8.8189196.74$ \pm $16.60100
TSP-based distance87.54$ \pm $11.3411287.73$ \pm $38.430
Greedy emission50(20+10)2 476.63$ \pm $356.19926 417.28$ \pm $614.07100
TSP-based emission3 057.94$ \pm $442.2589 794.56$ \pm $1386.810
Greedy distance74.01$ \pm $9.3488195.71$ \pm $16.47100
TSP-based distance87.56$ \pm $12.1312285.04$ \pm $37.420

新窗口打开| 下载CSV


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 $ Q = 15 $, on average carbon emission increases by only $ 10\% $ of the expected amount on the $ 25 $-station instances, and by only $ 5\% $ of the expected amount on the $ 110 $-station instances; for $ Q = 25 $ and $ 50 $, the average carbon emission increases are similar.

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 $ +1 $ or $ -1 $, that is, in our problem this translates to one bicycle in surplus or in shortage. We also experimented with this case on the $ 110 $-station dataset, by dispatching a service vehicle with a capacity $ Q \in \{1, 2, 4, 8\} $; the vehicle weight is set to $ 0 $ since the capacity is lower than $ 15 $.

Table 4 contains the collected statistics. Recall that we take the value of the capacity $ Q $ into consideration during dataset simulation, that is, the absolute value of the sum of all the surpluses and shortages should be no greater than $ Q $. For the $ 100 $ instances simulated with $ Q = 1 $, if we deploy a vehicle with capacity $ Q > 1 $, then both Greedy and TSP-based yield the same route as deploying a vehicle with capacity $ Q = 1 $; this is not surprising since both algorithms set the higher priority to drop off the bicycles on the back. We have the following observations from Table 4:

Table 4   The performance of the two algorithms Greedy and TSP-based on a collection of $ 100 $ simulated instances for the $ 110 $-station dataset, where the simulated surplus or shortage is limited to $ 1 $ and the vehicle capacity $ Q \in \{1, 2, 4, 8\} $ (the weight of the vehicle is $ 0 $)

$ Q $$ 110 $-stationwon
Greedy emission183.86$ \pm $11.63100
TSP-based emission149.53$ \pm $25.990
Greedy distance169.80$ \pm $21.78100
TSP-based distance311.11$ \pm $46.250
Greedy emission282.15$ \pm $12.62100
TSP-based emission154.12$ \pm $27.630
Greedy distance166.53$ \pm $24.24100
TSP-based distance319.41$ \pm $50.310
Greedy emission485.99$ \pm $12.44100
TSP-based emission155.01$ \pm $26.100
Greedy distance166.15$ \pm $21.44100
TSP-based distance313.98$ \pm $42.460
Greedy emission8101.12$ \pm $29.8495
TSP-based emission176.22$ \pm $41.875
Greedy distance162.42$ \pm $20.13100
TSP-based distance313.76$ \pm $48.690

新窗口打开| 下载CSV


(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 $ 15\% $ shorter than their counterparts in Tables 2 and 3; but the service paths by TSP-based are about $ 8\% $ longer than their counterparts in Tables 2 and 3. In this sense, the delivery TSP problem is a quite special case in our SBR problem.

(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 $ 400 $ instances in travel distance, and winning on all $ 300 $ instances associated with capacities $ 1, 2 $ and $ 4 $ and on $ 95 $ out of $ 100 $ instances associated with capacity $ 8 $ in carbon emission.

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.

参考文献

Benchimol M , Benchimol P , Chappert B , de la Taille A , Laroche F , Meunier F , Robinet L .

Balancing the stations of a self service bike hire system

[J]. RAIRO Operations Research, 2011, 45, 37- 61.

DOI:10.1051/ro/2011102      [本文引用: 1]

Toro E M , Franco J F , Echeverri M G , et al.

Green open location-routing problem considering economic and environmental costs

[J]. International Journal of Industrial Engineering Computations, 2017, 8 (2): 203- 216.

[本文引用: 1]

Dell'Amico M , Hadjicostantinou E , Iori M , et al.

The bike sharing rebalancing problem: Mathematical formulations and benchmark instances

[J]. Omega, 2014, 45, 7- 19.

DOI:10.1016/j.omega.2013.12.001      [本文引用: 1]

Rainer-Harbach M, Papazek P, Hu B, and Raidl G R. Balancing bicycle sharing systems: A variable neighborhood search approach[C]//Proceedings of the 2013 Evolutionary Computation in Combinatorial Optimization, LNCS 7832, 2013: 121-132.

[本文引用: 1]

Gaspero L D , Rendl A , Urli T .

Balancing bike sharing systems with constraint programming

[J]. Constraints, 2016, 21, 318- 348.

DOI:10.1007/s10601-015-9182-1      [本文引用: 1]

Anily S , Hassin R .

The swapping problem

[J]. Networks, 1992, 22, 419- 433.

DOI:10.1002/net.3230220408      [本文引用: 2]

Chalasani P , Motwani R .

Approximating capacitated routing and delivery problems

[J]. SIAM Journal on Computing, 1999, 28, 2133- 2149.

DOI:10.1137/S0097539795295468      [本文引用: 2]

Charikar M, Khuller S, and Raghavachari B. Algorithms for capacitated vehicle routing[C]// Proceedings of the 30th Annual ACM Symposium on Theory of Computing (STOC'98), 1998: 349-358.

[本文引用: 2]

Peng Y, Wang X. Research on a vehicle routing schedule to reduce fuel consumption[C]//Proceedings of the 2009 IEEE International Conference on Measuring Technology and Mechatronics Automation, 2009: 825-827.

[本文引用: 2]

Scott C, Urquhart N, Hart E. Influence of topology and payload on CO$_2$ optimised vehicle routing[C]//Proceedings of EvoApplications 2010, Part Ⅱ, LNCS 6025, 2010, 141-150.

[本文引用: 2]

Palmer A. The development of an integrated routing and carbon dioxide emissions model for goods vehicles[D]. Bedford: Cranfield University, 2007.

[本文引用: 1]

Christofides N. Worst-case analysis of a new heuristic for the travelling salesman problem[R]. Graduate School of Industrial Administration, Carnegie Mellon University, 1976.

[本文引用: 1]

Min H .

The multiple vehicle routing problems with simultaneous delivery and pickup points

[J]. Transportation Research, 1989, 23, 377- 386.

DOI:10.1016/0191-2607(89)90085-X      [本文引用: 1]

Goldberg A V , Karzanov A V .

Maximum skew-symmetric flows and matchings

[J]. Mathematical Programming, 2004, 100, 537- 568.

[本文引用: 1]

/