An Improved Iterated Local Search Algorithm for the Static Partial Repositioning Problem in Bike-Sharing System

. In this paper, a single-vehicle static partial repositioning problem (SPRP) is investigated, which distinguishes the user dissat-isfaction generated by diﬀerent stations. The overall objective of the SPRP is to minimize the weighted sum of the total operational time and the total absolute deviation from the target number of bikes at all stations. An iterated local search is developed to solve this problem. A novel loading and unloading quantity adjustment operator is proposed to further improve the quality of the solution. Experiments are conducted on a set of instances from 30 to 300 stations to demonstrate the eﬀectiveness of the proposed customized solution algorithm as well as the adjustment operator. Using a small example, this paper also reveals that the unit penalty cost has an eﬀect on the repositioning strategies.


Introduction
As urban traffic congestion and environmental pollution problems become more and more serious, bike-sharing systems (BSSs), as a means of sustainable transportation, can effectively solve the "last mile" problem of urban public transportation and provide benefits for users in terms of finances, health, and a low-carbon lifestyle [1]. However, when the BSS is in operation, the demand and supply of bikes in each station often become unbalanced: at some stations, users might not be able to find available bikes, and in some others, there are not enough lockers for users to return their bikes. As a result, user satisfaction decreases in such situations. As pointed out by Laporte et al. [2], several related problems arising at the strategic, tactical, and operational levels can be studied to improve the BSS. Among those, one of the well-known, yet challenging program is the bike rebalancing problem or bike repositioning problem (BRP). Solutions to BRP aim to determine the optimal vehicle routes and the loading and unloading quantities at stations in order to minimize the sum of travel cost and user dissatisfaction subject to operational constraints. As a common practice, the BSS operators redistribute bikes among unbalanced stations accordingly using a dedicated fleet of trucks.
Existing research on BRP are mainly divided into two categories: dynamic and static. Dynamic BRP considers daytime operations where the user demand is changing over time, while static BRP focuses on nighttime operations in which the temporal user demand change can be ignored. Despite that many of the recent works have focused on dynamic settings, there are certainly practical advantages and importance of investigating the static repositioning problem. For instance, the static repositioning allows the repositioning truck to travel quickly in the city without aggravating the traffic congestion and parking problems. Hence, most existing works that take into account the next day bike inventory arrangement in BSS have focused on static settings [3]. In terms of the number of trucks used, static BRP studies are mainly divided into two categories: single and multiple vehicle problems. However, compared with multiple-vehicle BRP [3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18][19][20][21], it is more realistic to consider a single-vehicle BRP for a particular street in the city [22][23][24][25][26][27][28][29][30][31][32]. In this paper, we focuses on the single-vehicle static BRP.
Often in the operation process of static BRP, considering various constraints of resource including operation time, capacity of the relocation trucks, and the inherent imbalance between supply and demand of the BSS (i.e., the number of surplus bikes is not equal to the number of deficit bikes at all stations), there is no way to achieve a complete or perfect balance among all stations [3]. erefore, in practice, only a partial balance among some stations can be achieved. is problem is defined as the static partial repositioning problem (SPRP) [13]. In the SPRP, it is necessary to determine which station needed to be rebalanced, and the loading and unloading quantities at those stations, as well as the route of trucks to minimize the sum of travel cost and user dissatisfaction.
Existing models to SPRP define user dissatisfaction either as the sum of the unmet demand (only consider stations with too few bikes) [4][5][6][7][8][9] or as the sum of the absolute differences between the current inventory and the target inventory at all stations (including stations with too many bikes and stations with too few bikes) [10,11,32]. ey commonly ignore the different level of dissatisfaction caused by different stations. However, existing study demonstrates that user dissatisfaction caused by not satisfying one unit of demand may vary from station to station [12]. For instance, at locations with high density of bike stations or convenient transportation, the level of user dissatisfaction may be low, because users can easily walk to other nearby stations or use other modes of transportation. However, it can be significantly higher in stations where bike sharing is the only option available to users. erefore, it is important to distinguish the level of user dissatisfaction generated by not satisfying one unit of demand at different stations. It is not very scientific to quantify the total dissatisfaction of all stations by simply using the sum of the number of bikes that are not satisfied at all stations.
In this paper, we build an SPRP on the model proposed by Di Gaspero et al. [9] and Szeto et al. [32] and develop customized solution to the SPRP. Different from existing work, our proposed model will distinguish the impact of different stations on user dissatisfaction by defining different unit penalty costs associated with unsatisfied one bike at different stations. To the best of our knowledge, we are among the first to develop customized solutions to SPRP that could take into account the differentiation of user dissatisfaction at different stations. e main contribution of this paper on the SPRP literature can be summarized as follows: (1) A comprehensive review of the static BRP literature is provided, including the complete and partial repositioning aspects (2) A new SPRP is introduced, where the level of user dissatisfaction could be different at different stations (3) A heuristic algorithm based on iterated local search is proposed to solve the problem (4) A novel loading and unloading quantity adjustment operator is designed to further improve the quality of the solution e remainder of this paper is organized as follows: Section 2 reviews the BRP literature. Section 3 describes the mathematical formulation of the problem as well as the nonlinear programming model. en, in Section 4, we present the improved iterated local search algorithm to solve the model. We present experimental results in Section 5 and conclude this paper with discussion on potential future research in Section 6.

Literature Review
e bike-sharing system has become an increasingly studied problem in the last two decades. Si et al. [33] provided a complete and insightful picture of all 208 relevant articles about bike-sharing research published from 2010 to 2018. As mentioned before, this paper focuses on the static bike repositioning problem (BRP), and hence, this section will mainly analyze the current literature on the static BRP. e research on the static BRP can be traced back to the seminal paper of Benchimol et al. [22], in which the authors introduced the static single-vehicle BRP and proved it to be NP-hard. For the first time, Pal and Zhang [13] categorized the static BRP into complete and partial repositioning problem based on the rigorous of a repositioning that needs to be performed. Table 1 presents a summary of the literature on the static BRP in terms of the type of repositioning (complete or partial), the number of trucks used (|V|), and the objective function.

Complete Repositioning Problem.
In the complete repositioning problem, achieving a perfect balance among stations is considered as a hard constraint. In this case, the ideal inventory of each station must be met after the repositioning operation. e objective of this problem is mostly to study how to arrange the order of stations' visits so that the travel cost is minimized, see, e.g., [15][16][17][22][23][24][25][26][27]. e exceptions are Pal and Zhang [13] and Wang and Szeto [14] where the objective is to minimize the makespan of the rebalancing fleet and the total CO 2 emissions, respectively.
Various solutions have been proposed to solve the static single-vehicle complete repositioning problem, for instances, Benchimol et al. [22] developed approximation algorithms, Chemla et al. [24] presented a branch-and-cut method embedded Tabu search, and Erdogan et al. [26] proposed the first exact algorithm that consists of a branchand-cut algorithm based on Benders combinatorial cuts. Later on, Cruz et al. [25] addressed the same problem by proposing an iterated local search algorithm. Compared with the algorithms proposed by Chemla et al. [24] and Erdogan et al. [26], the iterated local search developed by Cruz et al. [25] has more advantages in term of solution time 2 Journal of Advanced Transportation and quality. Bruck et al. [23] introduced static single-vehicle BRP with forbidden temporary operations and proposed three exact algorithms based on different mathematical formulations. ere are also studies on the static multivehicle complete repositioning problems, for instance, Bulhões et al. [15] presented a branch-and-cut algorithm and an iterated local search. Dell'Amico et al. [16] presented branch-and-cut algorithm. Dell'Amico et al. [17] developed a destroy and repair metaheuristic algorithm, which makes use of effective constructive heuristic and of several local search procedures.
It is worth mentioning that there are three BRP articles occurring in the BSS a bit different from most of those complete repositioning problems studied in this survey. Pal and Zhang [13] modeled a static BRP in a free-floating bikesharing system and presented a hybrid nested large neighborhood search with a variable neighborhood descent algorithm. Wang and Szeto [14] introduced a static green BRP with broken bikes, and applied CPLEX to determine the routing and loading decisions. Lahoorpoor et al. [27] proposed a bottom-up spatial cluster-based method to solve the static BRP with consideration of the users' behavior in the BSS.

Partial Repositioning Problem.
In the partial repositioning problem, achieving a perfect balance among stations is considered as a soft constraint; that is to say, it is not necessary to achieve the ideal inventory at each station after repositioning operation. As can be seen from the Table 1, with the exceptions of Ho and Szeto [28], and Alvarez-Valdes et al. [18], the partial repositioning problems in the literature are modeled as multiobjective optimization problems. e goal of these problems is not only to pursue the minimum transportation cost by determining routing decisions, but also to minimize user dissatisfaction by determining loading and unloading decisions at each station. User dissatisfaction is commonly measured by the penalty costs [3,12,19,28,29], the absolute deviation from the target number of bikes [4][5][6][7][8][9], and the unmet demand [10,11,32].
Raviv et al. [3] creatively defined the user dissatisfaction as penalty function which represents the expected number of shortages at any inventory level at each station. e authors addressed a multivehicle SPRP, and proposed a two-phase heuristic to first solve the routing subproblem then to solve the loading and unloading subproblem. en, Forma et al. [19] presented a 3-step math heuristic, and later on, Ho and Table 1: Summary of the static BRP in the literature.

≥1
Minimize the weighted sum of the penalty cost and total travel time Ho and Szeto [28] 1 Minimize total penalty cost Tang et al. [29] 1 e upper-level model minimizes the total penalty cost; the lower-level model minimizes the travel time Di Gaspero et al. [5,8] Raidl et al. [6] Rainer-Harbach et al. [4,7] ≥1 Minimize the weighted sum of the total absolute deviation from the target number of bikes, the total number of loading/unloading quantities, and the total travel time Di Gaspero et al. [9] ≥1 Minimize the weighted sum of the total absolute deviation from the target number of bikes, and the total travel time Alvarez-Valdes et al. [18] ≥1 Minimizing the overall cost of unsatisfied demands Erdogan et al. [30] 1 Minimize total travel cost and handling cost Li et al. [31] 1 Minimize the sum of travel, imbalance, substitution, and occupancy costs Liu et al. [10] ≥1 Minimize the weighted sum of the total unmet demand, the inconvenience of getting a bike and total operational time Szeto et al. [32] 1 Minimize the weighted sum of the total unmet demand and the total operational time Schuijbroek et al. [20] ≥1 Minimize maximum the sum of total travel, loading and unloading costs Szeto and Shui [20] ≥1 Minimize the positive deviation from the tolerance of total demand dissatisfaction first and then service time in form of the total service time or maximum service time You [21] ≥1 Minimize the sum of the total unmet demand and travel costs is paper 1 Minimize the weighted sum of the total deviation from the target number of bikes and the total operational time Szeto [12] developed a hybrid large neighborhood search algorithm (proven to be more effective than that proposed in [19]) to solve the same problem as in [3]. Ho and Szeto [28] presented an iterated Tabu search to solve a single-vehicle SPRP. Tang et al. [29] proposed a bilevel programming model by taking the outsourcing transportation mode into account and presented an iterated local search algorithm and Tabu search algorithm to solve the optimization problem.
In [4], Rainer-Harbach et al. measured the user dissatisfaction based on the deviation from the target number of bikes, and addressed the multivehicle SPRP. ey proposed a heuristic approach for the static BRP where the routing decisions are calculated by a variable neighborhood search metaheuristic and the loading decisions are computed by a helper algorithm. ere are a list of other solutions proposed for this problem setting, for instance, in [5], Di Gaspero et al. introduced a combination of constraint programming and ant colony optimization approach; in [6], Raidl et al. provided an efficient method for determining optimal loading operations based on two maximum flow computations; in [7], Rainer-Harbach et al. proposed PI-LOT, a greedy randomized adaptive search procedure, along with a variable neighborhood search algorithm to solve this problem; and in [8], Di Gaspero et al. employed constraint programming to tackle this problem. Last but not least, in [9], Di Gaspero et al. described a multivehicle SPRP with the objective of minimizing both the weighted sum of the total absolute deviation from the target number of bikes, as well as the total travel time.
ey proposed a constraint programming approach that utilizes a smart branching strategy and large neighborhood search algorithm to solve the problem.
For the first time, Szeto et al. [32] measured the user dissatisfaction based on the unmet demand, and addressed a single-vehicle SPRP by proposing an enhanced chemical reaction optimization algorithm. Liu et al. [10] studied a multivehicle SPRP for the free-floating bike-sharing system. ey took into account the different convenience level of getting bikes, and proposed an enhanced chemical reaction optimization algorithm to solve the problem. You [11] studied a multivehicle SPRP under a minimum service requirement over a planning horizon, and proposed a twophase heuristic algorithm to solve the problem based on linear programming.
In this section, there are five articles differentiate themselves from the above other studies. Alvarez-Valdes et al. [18] addressed a static BRP to optimize the level of service quality by a two-stage algorithm. Erdogan et al. [30] addressed a static BRP where the target inventory at each station must lie in a predetermined interval. ey developed and implemented a Benders decomposition scheme and a branch-but-cut algorithm to solve the problem. Li et al. [31] investigated a static BRP with multiple bike types, and proposed a combined hybrid genetic algorithm. Schuijbroek et al. [20] unified dual-bounded service level constraints (with added inventory flexibility) and vehicle routing for static BRP and proposed a cluster-first route-second heuristic. Szeto and Shui [21] developed an enhanced artificial bee colony algorithm that incorporated a new set of optimal loading and unloading strategies to solve the static BRP to minimize first the positive deviation from the tolerance of the total demand dissatisfaction and then the total service time of all trucks.
As demonstrated above, in complete repositioning problem, the loading and unloading quantities to a station are given in advance, as opposed to our partial repositioning problem where they are decision variable. e increase of decision variables also increased the computational complexity of solving partial positioning problems which is more in line with the operation of the actual BSS. When it comes to partial positioning problems, most researchers have focused their objective on minimizing the user dissatisfaction measured by the sum of unmet demand or deviations from the target fill levels at all stations [4][5][6][7][8][9][10][11]32]. However, as mentioned previously, the different level of user dissatisfaction caused by unmet demands or deviations at different stations is another important aspect to take into account although it has been ignored in most of the literature. In this paper, we do not only pursue the overall minimization of operational costs and user dissatisfaction costs but also consider the differences in user dissatisfaction at different stations. As summary above, two works have solved the complete repositioning problem by iterated local search [23,25], only one work has used iterated local search to solve the bilevel partial repositioning problem [29]. It is obvious that the iterated local search algorithm in the above three papers cannot effectively solve the partial repositioning problem studied in this paper. Considering the characteristics and solution quality of the problem, we improve the traditional iterated local search algorithm and propose a customized algorithm for solving the problem in this paper. Computational results show that the improved algorithm is effective.

Mathematical Formulation
e bike-sharing system studied in this paper comprises a depot, a set of stations, and a truck. Each station has a repositioning demand. If the repositioning demand at a station is greater than 0, the station is defined as a pickup station and can provide bikes to the delivery stations. e set of pickup stations is denoted by P. On the other hand, if the repositioning demand at a station is smaller than 0, then the station is defined as a delivery station and should be supplied with bikes from pickup stations. e set of delivery stations is denoted by D. If the demand at a station is equal to 0, then the station is called a balanced station. Balanced stations can be ignored in the partial repositioning problem as there is no visiting or loading/unloading operations needed.
We consider the scenario that only a single truck with a given capacity is available. e truck collects bikes from pickup stations and transports them to delivery stations. It starts from and returns to the depot empty and operates within a given repositioning time constraint. Moreover, each station is allowed to be visited at most once, and not all stations need to be visited. e objective is to determine the route of the truck and the loading and unloading quantities at each visited station to minimize the weighted sum of the total operational time as well as the total absolute deviation from the target number of bikes at all stations.
operational time that includes the travel time from station i to station j and the expected time required to load or unload bikes at station j Q: truck capacity T: repositioning time M: a very large number w i : the unit penalty cost associated with unsatisfied one bike at station i, w i ∈ (0, 1], ∀i ∈ N α: the weight associated with the truck's total operational time

Decision Variables
x ij : binary variable that equal 1 if truck travels directly from station i to station j, and 0 otherwise y ij : the number of bikes onto the truck when it travels directly from station i to station j y P i : the number of bikes loaded on the truck at station e formulation for the SPRP addressed in this study is given as follows: which is subject to Journal of Advanced Transportation Objective function (1) is defined as the weighted sum of the total operational time and the total weighted sum of deviation from the target number of bikes. Constraint (2) states that the truck departs from the depot only once and returns to the depot. Constraint (3) ensures that the truck starts from and returns to the depot empty. Constraints (4) ensure that the truck can visit a station at most once. Constraints (5) ensure that if the truck visits a station, it must leave that station. Constraint (6) ensures that total operational time of the truck does not exceed the repositioning time available. Constraints (7) are the subtour elimination constraint [34]. Constraints (8) require that the number of bikes loaded onto or unloaded from the truck at a given station equals the difference between the truck load before and after the station visit. Constraints (9) ensure that the load on the vehicle cannot be greater than the truck capacity. Constraint (10) ensures that bikes picked up from pickup stations by the truck are eventually delivered to delivery stations. Constraints (11) require that the unloading quantities at a station should not be greater than the number of bikes needed by that station and greater than the number of bikes on the truck when the vehicle reaches station. Constraints (12) require that the loading quantities at a station should not be greater than the number of bikes supplied by that station and greater than the available spaces on the truck when it arrives at the station. Constraints (13) ensure the auxiliary variable is nonnegative. Constraints (14)-(16) ensure that loading and unloading quantities at each station and the number of bikes on the truck are nonnegative integers. Constraints (17) define x ij to be a binary variable.

Solution Method
Similar to other existing works (e.g., [15,25,29]), we use iterated local search (ILS) to solve the BRP problem. e ILS algorithm is a metaheuristic algorithm. It obtains the optimal solution through two mechanisms of local search (see Section 4.3) and perturbation search (see Section 4.4). In this paper, local search is executed through the randomized variable neighborhood decent (RVND) procedure. Algorithm 1 illustrates the ILSSPRP algorithm for the SPRP. According to Algorithm 1, after constructing the initial solution s 0 by applying the initialization procedure (see Section 4.2), the procedure RVND (see Section 4.3) and perturbation search (see Section 4.4) are called repeatedly until the predefined termination criterion (the maximum consecutive iterations without improvement limit in our case) is satisfied. e local search including 6 neighborhood structures, such as Swap (N1), Insertion (N2), Delete (N3), Exchange (N4), 2-Opt (N5), and Reinsertion (N6) neighborhood structures, is executed using an RVND procedure, whereas the perturbation procedure performs Swap (P1), Insertion (P2), Exchange (P3), and Reinsertion (P4) neighborhood structures.
According to the characteristics of the SPRP, we improve the traditional ILS algorithm by adding a novel adjustment operator after RVND and perturbation search. Details of the adjustment operator can be found in Section 4.5, and we also verify the impact of the proposed adjustment operator on the ILSSPRP in Section 5.2. Let s represent the current solution for the SPRP and s * represent the best solution that can be searched currently. For a solution s, TC (s) gives the objective value of solution s. We also denote ConsIter as the current consecutive iterations without improvement, and MaxConsIter as the maximum consecutive iterations without improvement, respectively.

Solution Representation.
A solution w is represented by w � (x, y, q) as shown in Figure 1, where x is a vector that stores the routing sequence of the truck (x 0 , x 1 , ..., x n , x n+1 ), where represents the station visited by the truck, the subscript h indicates the order of stations being visited by the truck. y is a vector that stores the demand that has been met at the station visited by the truck, where positive and negative values indicate the quantities of bikes collected and delivered, respectively. q is a vector used to store the cumulative load after the truck visits the station. According to equations (3) and (9), if a solution is feasible, then q h � 0, ∀h ∈ 0, n + 1 { } and 0 ≤ q h ≤ Q, ∀h ∈ 0, 1, . . . , n, n + 1 { } where Q is the truck capacity.

Initialization.
In this paper, the initial feasible solution is efficiently generated by a construction heuristic algorithm (see [12,28,29]). e basic construction heuristic algorithm was first proposed by Ho and Szeto [28] to solve the singlevehicle BRP, and Ho and Szeto [12] developed it to solve the multiple-vehicle BRP, and then Tang et al. [29] improved it to solve the bilevel BRP. e construction heuristic algorithm can be divided into two main steps: Step one, Sort: we first divide stations into two categories: pickup stations and delivery stations. en, stations are sorted in descending order by the ranking criteria. Similar to Tang et al. [29], in this paper, the ranking criteria are Step two, Insert: we first insert the pickup stations in turn into the route, if no pickup station can be inserted into the current route without exceeding the capacity limits; then, delivery stations are inserted in turn in the route. We repeat this process until no station can be inserted without violating the predetermined repositioning time constraint.

Local Search.
After generating the initial solution, we improve this initial solution with local search technique. We consider two kinds of neighborhood structures: intersets and intraroute. e former performs moves between set R (the set of stations visited by the truck) and set U (the set of stations not visited by the truck), whereas the latter only considers moves within the route.

Interset Neighborhood Structures
(i) Swap-N 1 : randomly select a station i from the route (set R), then select another station j (|d i | ≤ |d j |) of the same type from set U, and exchange them. (ii) Insertion-N 2 : randomly select a station from the set U to insert into the route (set R). (iii) Delete-N 3 : randomly select a station from the route (set R) and delete it.

Intraroute Neighborhood Structures
(i) Exchange-N 4 : randomly select two stations from the route and exchange them.

Perturbation Search.
In order to avoid falling into local optimum and to realize global search, perturbation is used to constantly change the current local optimum solution. e following four kinds of moves are used to implement perturbations: (i) Swap-P 1 : randomly select a station i from the route, then select another station j of the same type from set U, and exchange them. (ii) Insertion-P 2 : randomly select a station from the set U and insert it into the route. For the infeasible neighborhood solution, when using the repair operator to repair, Insertion-P 2 randomly selects a feasible solution after repair as the new neighborhood solution, while Insertion-N 2 chooses the best feasible solution after repair as the new neighborhood solution. (iii) Exchange-P 3 : randomly select two adjacent stations from the route and swap them with two other adjacent stations from the route. (iv) Reinsertion-P 4 : randomly select two adjacent stations from the route, delete them, and reinsert them elsewhere on the route. (v) Here, we repair infeasible solutions obtained by applying P 2 (details to be discussed in Section 4.6.3). For other moves P 1 , P 3 , and P 4 , only feasible solutions are accepted as the new neighborhood solutions.

Adjustment Operator.
e basic idea of the adjustment operator is that a solution can be improved by properly adjusting the loading and unloading quantities between stations in a heuristically way [10,12,28,32].
Similar to the pickup-delivery cycle proposed by Lei and Ouyang [35], we first define a pickup-delivery pair as a sequence of consecutive visits that starts from a pickup station (preceded by the depot or delivery station) and ends at the corresponding delivery station (followed by the depot or pickup station). Figure 2 illustrates an example in which the truck visits two pickup-delivery pairs (with Q � 10). e first pickup-delivery pair contains one pickup station (station 1) and one delivery station (station 2), and the second pickup-delivery pair also contains one pickup station (station 4) and one delivery station (station 5). e truck starts from the depot with empty, picks up 5 bikes at station 1, and delivers directly to station 2, where 3 bikes are unloaded. en, 6 bikes are further collected at station 4, delivers 8 bikes at station 5, and finally ends at the depot empty.
In this paper, we divide the adjustment operator into two categories: adjustment of the quantities of different types of stations in one pickup-delivery pair and adjustment of the quantities of the same type of stations in different pickupdelivery pairs. We first adjust the quantities of stations within each pickup-delivery pair, and then adjust the quantities of the same type of stations across different pickup-delivery pairs.

Adjustment of the Quantities of Different Types of Stations in One Pickup-Delivery Pair.
In this case, on the current route, we adjust the quantities of different type of stations within each pickup-delivery pair, until all pickupdelivery pairs are adjusted. For one pickup-delivery pair, we consider one pickup station x i and one delivery station x j at a time (i and j indicate the order of stations being visited by the truck, respectively), with their loading and unloading quantities increased r at the same time, which is formulated by r � min d x i − y P x i , |d x j | − y D x j , Q − q i , subject to capacity and loading constraints. en, the loading and unloading quantities on station x i and station x j are updated at the same time by y P x i � y P x i + r; y D x j � y D x j + r. As shown in Figure 3(a), in the first pickup-delivery pair, pickup station 1 and delivery station 2 are selected (with Q � 10) to adjust the loading and unloading quantities. In this case, the increased loading/unloading quantities r � min d 1 In the second pickup-delivery pair, pickup station 4 and delivery station 5 are selected as shown in Figure 3(b), r � 1; then, y P 4 � y P 4 + 1 � 6 + 1 � 7, y D 5 � y D 5 + 1 � 8 + 1 � 9.

Adjustment of the Quantities of the Same Type of Stations in Different Pickup-Delivery Pairs.
For two stations of the same type, adjusting the loading (for pickup stations) and unloading (for delivery stations) quantities between them can improve the current solution, under the condition of ensuring the feasibility of the solution after the transformation. Each time, two stations of the same type in different pickup-delivery pairs are selected, and the loading and unloading quantities of one station are increased by 1 unit, while that of the other station is reduced by 1 unit, resulting in a decrease in the value of the objective function (i.e., the weighted sum of the operational time and deviation from target). e procedure is repeated until there is no loading and unloading quantity adjustment between stations to improve the current solution. Consider a current feasible solution shown in Figure 2. Figures 4(a) and 4(b) show an example where pickup station 1 (in the first pickup-delivery pair) and pickup station 4 (in the second pickup-delivery pair) are selected; then, we shift two unit quantity between them. For instance, in Figure 4(a), we increase the loading quantities at station 1 by two, and reduce the loading quantities at station 4 by two. We do the opposite, and it is shown in Figure 4(b). Under the two transformations, the new solution that could reduce the objective value will be accepted.
Similarly, as shown in Figures 4(c) and 4(d), delivery station 2 in the first pickup-delivery pair and delivery station 5 in the second pickup-delivery pair are selected; then, we shift two unit quantities between them. Figure 4(c) shows the operation where we increase the unloading quantities at station 2 by two, and decrease the unloading quantities at station 5 by two. And Figure 4(d) shows the opposite operation. Similarly, between the two newly generated solutions, we accept the one that could reduce the objective value as the current solution.

Repair Operator.
ere is a couple of constraints for a solution to be feasible. First of all, the sum of the total satisfied demand of stations visited by the truck on the route is 0 (according to equation (10)). For instance, a feasible solution is shown in Figure 5, suppose Q � 10, and the total satisfied demand of stations visited by the truck is 0, that is, 4−3 + 2 + 2−5 � 0. erefore, if we want to ensure that the neighbor solution obtained by applying the Insertion and Delete is feasible, we must make sure that the sum of the total satisfied demand of stations visited by the truck is 0. Besides, we also need to make sure that the solution meets the capacity and loading constraints  (3) and (9)). In the following sections, we describe the repair procedure for infeasible solutions obtained by local search and perturbation search, respectively.

Repairing Infeasible Solutions after Applying N2.
Given a feasible solution, if we insert a station into the solution, the obtain new neighbor solution is certainly not feasible. However, the feasibility of the new neighbor solution can be ensured by adjusting the loading/unloading quantity of a certain station. Assuming that the current satisfied demand of the inserted station is Δ I , then it is necessary to reduce Δ I on the basis of the current satisfied demand of a certain station on the route, in order to balance out the sum of the total satisfied demand on the route to be 0. In this case, the new neighbor solution after applying the repair procedure is feasible if the capacity and loading constraints are satisfied. ere might be more than one feasible adjustment scheme, under which the solution with the lowest objective value is selected as the new neighbor solution.
As shown in Figure 6, if we insert station 6 (Δ I � y P 6 � 2) into the current feasible solution (as shown in Figure 5), the total of all satisfied demands is 2 but not 0. en, we need to choose one station from the route and reduce its satisfied demand by Δ I . As shown in Figure 7, there are three feasible neighbor solutions can be obtained by applying the repair procedure, and we choose the neighbor solution with the lowest objective value as the new feasible solution.

Repairing Infeasible Solutions after Applying N 3 .
Assuming that the current satisfied demand for the deleted station is Δ D , then it is necessary to increase Δ D on the basis of the current satisfied demand of a certain station on the route, to ensure that the sum of the total satisfied demand on the route is 0. Similarly, if there are more than one feasible neighbor solutions, the solution with the lowest objective value is selected as the new neighbor solution.
As shown in Figure 8, if we delete station 4 (Δ D � y P 4 � 2) from the current feasible solution (Figure 5), the total of all satisfied demand is −2. erefore, we need to choose one station from the route and increase its satisfied demand by Δ D . As shown in Figure 9, there are three feasible neighbor solutions can be obtained from the repair procedure, and we choose the neighbor solution with the lowest objective value as the new neighbor solution.

Repairing Infeasible Solutions after Applying P2.
In this case, the repair operation would be the same as in Section 4.6.1, the only difference is that when there is more than one feasible neighborhood solution generated, we randomly select one as the new neighbor solution.

Computational Results
In this section, we present experiments conducted to verify the effectiveness of the proposed ILS SPRP algorithm as well as the proposed adjustment operator. We compare the performance of our proposed solution with the optimal solution of Lingo 18. We also analyze through experiments the    We follow the instances proposed by Rain-Harbach et al. [7] to conduct the experiments, where the size of the instances is ranging from 30 to 300 stations. For each instance, we select the first seed of the 30 independent seeds. e initial objective value, the total pickup, and total drop-off quantities of each instances are listed in Table 2. We consider instances with 30 and 60 stations as the small-size instances; instances contain 120 and 180 stations as the medium-size instances; and instances with 240 and 300 stations as the large-size instances. In this study, unless otherwise specified, we follow the setting in Szeto et al. [32], α � 0.00001. ree repositioning time constraints (in seconds) were used, T �14400 s, T � 21600 s, and T � 28800 s. Two truck capacities (in terms of the number of bikes) were considered: Q � 10 and Q � 20, respectively. e unit penalty cost w i associated with one unsatisfied bike at station i was randomly generated in the interval (0, 1], ∀i ∈ N. e experiments are conducted in Matlab, on a computer with Intel Core i5-4590 CPU @ 3.30 GHz and 4 GB RAM. We run each instance for 20 times, the best and average of the solutions and the average computing time of those 20 runs are used to evaluate the performance of the ILS SPRP . e main parameter of ILS SPRP to be calibrated is the maximum consecutive iterations without improvement (MaxConsIter). Here, we set its value as a function of the instance, MaxConsIter � max{100, |N|}, similar to Bulhões et al. [15].

Comparison between Lingo and ILS SPRP .
In terms of the quality of the solution and the calculation efficiency, Tables 3-5 show the comparison results obtained by Lingo and ILS SPRP under different repositioning times (T �14400 s, T � 21600 s, and T � 28800 s), truck capacity (Q � 10 and Q � 20), and number of stations (|N|). Gap Best and Gap Avg (%) indicate the performance of the ILS SPRP relative to that of Lingo based on the best and average objective values, respectively. e CPU (in seconds) indicates the average computing time of the ILS SPRP or the computing time for Lingo, respectively.
From Tables 3-5, we can see that Lingo is not able to obtain any feasible solutions for the large-size problems (where |N| � 240 and |N| � 300). It also generally fails to obtain any global optimal solutions within 3600 seconds even for small-size problems. In contrast, for the various size of problems from small to large, the average computing time of the ILS SPRP varies from 7.12 s to 33.71 s.
As shown in the Tables 3-5 is implies that the ILS SPRP performs better than Lingo when solving the SPRP with a longer repositioning time. erefore, we can draw the conclusion that the proposed ILS SPRP can obtain better feasible solutions much faster than Lingo.

e Effectiveness of Introducing Adjustment Operator into ILS SPRP .
In this study, the adjustment operator (presented in Section 4.5), which considers the characteristics of the SPRP, is introduced to improve the solution quality obtained by the proposed ILS SPRP . In this section, we study through experiments the effectiveness of the proposed adjustment operator by       comparing the performance of the ILS SPRP with and without adjustment operator using the various instances described in Section 5.1. Tables 6-8 present the results obtained by the proposed ILS SPRP algorithm with and without the adjustment operator, under different repositioning times, respectively. CPU denotes the average computing time in seconds. Gap Best and Gap Avg here are the deviations of the best/average of the objective values from 20 runs obtained by the ILS SPRP with the adjustment operator from the corresponding optimal solution obtained by ILS SPRP without the adjustment operator, respectively. From Tables 6-8, we can see ILS SPRP without the adjustment operator resulting in a shorter computation time than the ILS SPRP with the adjustment operator.   However, the Gap Best and Gap Avg values for all discussed instances are negative, which implies that the adjustment operator is necessary to improve the quality of the solution. As expected, when T increases, the absolute average value of Gap Best and Gap Avg increases. is also indicates that the ILS SPRP with the adjustment operator is more effective than the ILS SPRP without the adjustment operator to solve the SPRP with long repositioning time.
erefore, it can be concluded that it is beneficial to incorporate adjustment operator into the ILS SPRP to solve the SPRP.

Sensitivity Analysis on α.
In this set of experiments, we analyze the sensitivity of the performance of the proposed approach to the values of α. Note that increasing the value of α means that we are increasing the impact of operational time on the whole weighted objective function. When we set α � 0, it means that the objective function only considers user dissatisfaction.
We test the sensitivity of α with a small-size instance consisting of 30 stations (|N| � 30) and consider the three repositioning time constraints (T �14400 s, T � 21600 s and T � 28800 s) and two truck capacity constraints (Q � 10 and Q � 20).
Different values of α from 0 to 0.001 were considered, and for each value, we perform 20 runs of the experiment. e results obtained with Lingo 18 and the ILS SPRP were compared in Table 9. CPU (in seconds) is the computing time for Lingo or the average computing time of 20 runs for the ILS SPRP . Gap Best and Gap Avg are the deviations of the best/average of the objective values from 20 runs obtained by the ILS SPRP from the corresponding optimal solution obtained by Lingo, respectively.
As shown in Table 9, almost all of the values of Gap Best and Gap Avg are negative (with only one exception for the results obtained under α � 0, T � 21600 s, Q � 10). e average values of Gap Best and Gap Avg are −12.29 and −8.72, respectively. is then indicates that the proposed ILS SPRP    can always obtain better solutions than Lingo under different values of α, repositioning time and truck capacity. e average computing time of the ILS SPRP is 8.28 s, which is significantly less than that of Lingo (3032.13 s). erefore, we can conclude that the ILS SPRP works well under different values of α. 5.4. Sensitivity Analysis on w i . In this section, a small example is constructed to investigate the sensitivity of the proposed model to the parameter w i . We consider 2 scenarios and investigate the repositioning strategies, respectively:  Table 10. Note that when d i > 0, station i is a pickup station; otherwise, if d i < 0, station i is a delivery station. e results are displayed in Table 11, including the value of the objective function, the route of the truck, and the loading/unloading quantities at each station.
As shown in Table 11, the experimental results of scenario 1 and scenario 2 are significantly different. For pickup station 1 and 2, in scenario 2, the value of w 1 is relatively large. is means that the level of user dissatisfaction (for one bike) of station 1 is higher than that of station 2. erefore, in order to reduce the total cost, it is necessary to increase the loading quantity at station 1 to meet the demand of station 1 as much as possible. e loading quantity of station 1 increases from 6 bikes in scenario 1 (where we disregard the different values of w i ) to 9 bikes in scenario 2 (d 1 � 9, the maximum loading quantity of station 1 is 9 bikes); similarly, the loading quantity of station 2 decreases from 5 bikes in scenario 1 to 2 bikes in scenario 2.
Regarding the delivery stations 3, 4, and 6, in scenario 2, because w 3 >w 6 >w 4 , the priorities of meeting the demand are first given to station 3, followed by station 6, and last to station 4. From the results, we can see that the unloading quantity of station 3 increases from 0 bike in scenario 1 to 6 bikes in scenario 2 (d 3 � −6, the maximum unloading quantity of station 3 is 6 bikes), while the unloading quantity of station 4 decreases from 6 bikes in scenario 1 to 0 bike in scenario 2.
From the above results, it can be seen that different values of w i can directly impact the loading/unloading quantities of repositioning truck at each station, as well as the route of the truck, i.e., the repositioning strategy of the BSS operators. erefore, it can be concluded that it is necessary to take distinguishing the user dissatisfaction generated by different stations into account when modeling the bike repositioning problem, which is the key factor to the optimization of the bike repositioning.

Conclusions
In this paper, we study the static partial repositioning problem where the level of user dissatisfaction differs in different stations. We propose an iterated local search algorithm ILS SPRP to find solutions to the problem as well as an adjustment operator to further improve the obtained solutions. We conduct a comprehensive set of experiments to study the performance of the proposed approach in terms of solution quality and computational time, compared with Lingo.
e experimental results show that the proposed ILS SPRP almost always outperforms Lingo from small-to large-size problems, as well as under different relative importance set to the two objectives (i.e., operational time and deviation from the target number of bikes). We also use a small example to illustrate that the unit penalty cost w i has an effect on the repositioning route and the loading/ unloading quantities at each station.
ere are potential directions for future research. For instance, unbalance demands in the bike-sharing system will not only increase user dissatisfaction, but also aggravate urban traffic congestion. erefore, in addition to considering economic benefits, we will also need to consider environmental benefits in the bike repositioning problem. How to introduce environmental benefits into the objective function would be an interesting topic for future research. Besides, we are also interested in developing efficient and effective algorithms to verify feasibility of a given solution.

Data Availability
All data included in this study are available from the corresponding author upon request.

Conflicts of Interest
e authors declare that there are no conflicts of interest regarding the publication of this paper.