Figures
Abstract
Bike-Sharing Systems (BSS) help address first- and last-mile travel challenges. As a limited public resource, the current pricing mechanism fails to fully exploit the service potential of bike-sharing or adequately capture heterogeneous user price sensitivity. We propose a Dynamic pricing-based Stochastic Demand-Response Optimization (DSDRO) method to address this gap. The method balances service fairness under varying demand stickiness while maximizing enterprise resource utilization. The DSDRO framework leverages spatiotemporal patterns in bike-sharing demand data and introduces a dynamic pricing model that differentiates user demand stickiness. This model is embedded in a two-stage allocation-rebalancing formulation. An improved Particle Swarm Optimization algorithm enhanced with Large-scale Neighborhood Search (PSO-LNS) is designed to solve the model, yielding the optimal bike allocation and dispatch routes at each node. Numerical experiments based on real operational data validate the proposed approach. Compared to a traditional genetic algorithm baseline, DSDRO increases expected revenue by 15.51% and net profit by 24.18% under identical resource conditions. An ablation study shows that dynamic pricing alone increases revenue by over 300% relative to fixed pricing, while the LNS component reduces rebalancing cost by 76.21% relative to pure PSO. Algorithm stability is confirmed through 10 independent runs, with all performance metrics exhibiting a coefficient of variation below 5%. These results suggest that DSDRO shows promise in improving the utilization of bike-sharing resources, though further validation across diverse operational contexts is needed before broader conclusions can be drawn.
Citation: Cai J, Wen Q, Chen T, Xie L, Yu J, Liu Y (2026) Optimization problem of bike-sharing system rebalancing based on dynamic pricing. PLoS One 21(4): e0347218. https://doi.org/10.1371/journal.pone.0347218
Editor: Nezir Aydin, Hamad Bin Khalifa University College of Science and Engineering, QATAR
Received: August 3, 2025; Accepted: March 28, 2026; Published: April 16, 2026
Copyright: © 2026 Cai et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data are within the manuscript and its Supporting Information files.
Funding: National Natural Science Foundation of China(Grant No. 52302389); National Natural Science Foundation of China(Grant No.52262046); Gansu Provincial Science and Technology Plan-Basic(Grant No.25JRRA221).
Competing interests: The authors have declared that no competing interests exist.
1. Introduction
With the rapid development of bike-sharing systems (BSS), growing attention has been paid to their significant potential in urban transportation. As indicated by the Bike-sharing World Map, since 2023, over 2,000 BSS have been implemented in 92 countries globally, with approximately 80 more under construction. As a green and convenient mode of transportation, scholars are optimistic about the significant role of BSS in alleviating urban traffic congestion and reducing environmental impact [1,2]. However, the sustainability of BSS operations remains a critical concern: nearly 1,900 systems have closed or suspended operations due to poor management and low profitability(https://bikesharingworldmap.com), forcing them out of the market. Even well-established enterprises like Mobike and Velib must operate cautiously and strategically [3]. Therefore, improving operational quality to maintain stable profitability is essential for the long-term, healthy development of BSS.
A central challenge facing BSS operators is the spatial and temporal mismatch between bike supply and user demand, commonly addressed through rebalancing strategies. The existing literature on rebalancing allocation schemes is extensive, spanning dynamic adjustment and static distribution approaches. Dynamic adjustment methods leverage machine learning and data mining techniques to rebalance bikes in real time based on user behavior [4–6], while static distribution approaches focus on station capacity and demand forecasting to pre-allocate bikes and improve overall system utilization [7–9]. In addition, some studies have provided comprehensive reviews of rebalancing patterns, strategies, and influencing factors at the system level [10,11], and others have incorporated user satisfaction into resource allocation decision frameworks to enhance service quality [12]. More specifically, rebalancing strategies can be categorized as supply-demand-based [13], user behavior-based [14,15], and geographic information-based [16,17]. However, most existing studies focus primarily on minimizing rebalancing costs—such as total travel distance, scheduling time, and operating expenses—while neglecting the direct impact of operational decisions on corporate revenue. In practice, cost reduction alone cannot guarantee the long-term viability of BSS enterprises; only by ensuring stable profitability can operators continue to provide high-quality services to society.
Beyond rebalancing, pricing strategy is a crucial yet underexplored lever for improving BSS operational performance. Dynamic pricing—adjusting fees based on demand fluctuations and market conditions—has demonstrated considerable promise in balancing supply and demand while maximizing revenue. Existing dynamic pricing research primarily pursues two objectives: maximizing total system profit or social welfare at the macro level [18,19], and improving system utilization and spatial balance [20–22]. Some studies have analyzed travel pattern differences between docked and dockless bike-sharing users, revealing the heterogeneity in price responsiveness across user groups and providing empirical foundations for differentiated pricing [23]. Others have explored the integration of green constraints and route optimization into scheduling frameworks, offering new perspectives for the coordination of pricing and dispatch [24]. A number of studies model dynamic pricing as sequential decision-making problems, addressed via model predictive control [25], dynamic programming [26], and reinforcement learning [27], respectively. Another stream of research employs pricing as an incentive mechanism to encourage users to participate voluntarily in rebalancing, thereby reducing operational costs [28,29]. However, these incentive-based approaches do not fundamentally address pricing from the enterprise’s perspective; they treat users as auxiliary rebalancing agents rather than as demand segments with heterogeneous price sensitivity. Critically, existing pricing models largely apply uniform or undifferentiated charges, failing to distinguish users’ demand stickiness—the degree to which different users depend on bike-sharing and their tolerance for price variation. This limitation results in less-dependent users occupying shared resources that could otherwise serve more committed users, reducing the overall efficiency and fairness of resource utilization.
The interplay between pricing and rebalancing further highlights a structural gap in the literature: allocation schemes, rebalancing plans, and charging measures are most often studied in isolation, yet in practice they jointly determine enterprise net profit. An allocation scheme directly affects user satisfaction and vehicle utilization; a rebalancing strategy shapes operational costs through routing efficiency; and a pricing mechanism links user demand to resource availability. Optimizing any single dimension independently cannot guarantee global optimality or long-term profitability. What is urgently needed is an integrated framework that jointly considers dynamic pricing, resource allocation, and rebalancing scheduling, driven by enterprise revenue maximization rather than cost minimization alone.
To fill this gap, this paper proposes a Dynamic pricing-based Stochastic Demand-Response Optimization (DSDRO) method. The main contributions are as follows:
- (1) A demand-differentiated dynamic pricing model is established by incorporating departure time, riding distance, and node importance. The model differentiates users’ demand stickiness by charging higher fees during peak periods while maintaining accessibility for price-sensitive users, thereby improving the fairness and efficiency of bike-sharing resource utilization.
- (2) A two-stage joint optimization model targeting enterprise net profit is constructed. The first-stage allocation model determines the optimal bike deployment at each node under dynamic pricing; its output directly feeds into the second-stage rebalancing model, which optimizes dispatch routes to minimize operational costs. This integrated structure jointly optimizes pricing and routing decisions within a unified profit-maximization framework.
- (3) An improved Particle Swarm Optimization algorithm enhanced with Large-scale Neighborhood Search (PSO-LNS) is designed to solve the joint model, providing enterprises with revenue-oriented dispatch plans, with the potential to inform operational practice in broader real-world settings pending further validation.
The remainder of this paper is organized as follows. Section 2 presents the DSDRO model, including the dynamic pricing mechanism and the joint allocation-rebalancing optimization formulation. Section 3 describes the PSO-LNS algorithm designed to solve the model. Section 4 reports numerical experiments and comparative analyses. The Conclusion section summarizes the findings, discusses managerial implications, and outlines directions for future research.
2. Allocation and rebalancing model based on dynamic pricing
2.1. Problem description and parameter definition
Bike-sharing enterprises always aim to maximize the net profit of the system while controlling dispatch costs by formulating reasonable dispatch strategies. Therefore, the problem of maximizing the net profit of bike-sharing enterprises can be transformed into: how to reasonably plan the number of bike-sharing and dispatch routes at each node in the area, to maximize the difference between the expected revenue of bike-sharing and the dispatch cost.
To establish a reasonable model, the following assumptions are made under full consideration of the actual situation:
- (1) It is assumed that each area has only one dispatch center, from which all dispatch trucks depart and to which they return after dispatching;
- (2) Each dispatch truck can visit the same node only once, but the same node can be visited by multiple dispatch trucks;
- (3) The coordinates of the dispatch center and nodes are fixed and unchangeable;
- (4) Special dispatch factors such as special weather or traffic conditions are not considered;
- (5) Damage to and recovery of bike-sharing are not considered;
- (6) The dispatch trucks travel at the maximum safe average speed during the dispatch process.
- (7) Users’ demand for bike-sharing is sensitive to pricing, and the demand response to price changes can be characterized by a price elasticity coefficient.
The main notations and parameter definitions used in this paper are detailed in Table 1.
2.2. Pricing model based on dynamic charges
The demand for bike-sharing is not entirely random. According to the analysis of bike-sharing order data, the usage of bike-sharing generally follows a normal distribution, reaching a peak in certain periods. During peak periods, the demand for bike-sharing is high while the supply is limited. In such situations, enterprises can guide user usage during peak periods by adjusting fees, thereby improving enterprise revenue and meeting user needs. Hence, this paper proposes a dynamic pricing method for bike-sharing operations. The empirical data used in this study are sourced from the 2021 Digital China Innovation Contest; a comprehensive description of the dataset, including preprocessing procedures and associated limitations, can be found in [30].
Bike-sharing stations play different roles across nodes. Based on spatial analysis of bike-sharing order data, we adopt node demand as a proxy for node importance. The greater the demand of a node, the higher its importance. We first rank the predicted demand values of all n nodes in ascending order. Let denote the rank of node i among all nodes in terms of demand importance. To reflect the asymmetry in riding importance—riding toward a high-demand node should be weighted higher than riding away from it—we define the directional weight from node
to node
as:
This ensures that , with
when the destination node
is at least as important as the origin node
, and
when the destination is less important. This asymmetric design reflects the practical consideration that rides toward high-demand nodes generate more system value. Accordingly, the weight matrix
from node
to node
can be obtained:
The distance traveled by the user from the origin node to the destination node is considered as the user’s basic riding cost. We assume that the user always chooses the shortest riding route from node to node
. The riding distance can be determined based on the coordinates of the electronic fences at each node. The distance matrix can be obtained:
During peak periods, the cost of riding varies with different departure times. According to the analysis of departure times, the usage of bike-sharing overall shows a normal distribution. This paper combines dynamic pricing with the normal distribution characteristics of bike-sharing demand.
Let denote the departure rate of bike-sharing at time
, which follows a normal distribution:
where and
are the mean and standard deviation obtained from fitting historical order data.
Since is a probability density function with dimension
, it cannot be directly used as a dimensionless pricing weight. We define the departure time pricing weight as:
where is the peak pricing premium coefficient. This ensures
, with
at the peak time
(maximum surcharge above the base rate) and
for off-peak times (standard rate). A larger
results in a stronger peak surcharge, more effectively discouraging peak-period usage. A smaller
results in a sharper pricing peak, concentrating the surcharge around peak hours; a larger
spreads the pricing effect over a wider time range, encouraging users to shift departures over a longer period.
To characterize the flow pattern of bike-sharing between nodes, we estimate the transition probability from node to node
directly from historical OD (Origin-Destination) data. Let
denote the observed number of trips from node
to node
in the historical data, then:
This ensures for each origin node
. The transition probability matrix
is:
Remark. If historical OD data is insufficient, the transition probability can be approximated by:
where is the borrowing demand at node
and
is the returning demand at node
. However, this independence approximation should be validated against actual OD patterns, as it ignores spatial correlations between origins and destinations.
Based on the above factors, the riding fee charged to a user departing at time from node
to node
is defined as:
where is the basic riding fee per unit distance. This formula reflects that the riding fee is proportional to distance, weighted by the directional importance of the route and the departure time.
Dynamic pricing affects user demand. We introduce a price elasticity mechanism to capture this feedback. Let denote the baseline demand (under standard pricing) at node
, and
denote the average riding fee at node
under dynamic pricing. The adjusted demand at node
is:
where is the reference (standard) fee and
is the price elasticity coefficient. When
is large, demand is highly sensitive to price changes; when
is small, demand is relatively inelastic.
The time-averaged riding fee from node to node
, weighted by the departure rate, is defined as:
where is the departure rate defined in formula (4), serving as a probability weight that reflects the likelihood of a departure occurring at time
. The average riding fee at node
is then:
where is the operational time window.
The expected revenue at node is the sum of expected riding fees generated by the bike-sharing deployed at that node:
where is the number of bike-sharing deployed at node
, and
reflects that the actual served demand cannot exceed either the supply or the adjusted demand.
When the number of bike-sharing deployed deviates from the optimal deployment number , opportunity costs arise. Under-supply leads to lost revenue from unmet demand, while over-supply leads to idle resource costs. Since the marginal cost of unmet demand (lost customers, reduced service quality) is typically higher than that of idle resources, we adopt an asymmetric penalty:
where , reflecting the higher penalty for under-supply compared to over-supply. The optimal deployment number
is determined by the adjusted demand:
. The opportunity cost function
also serves as an implicit fairness regularization term: by penalizing deviations from the target allocation
in both directions, the model discourages resource concentration at high-revenue stations and ensures a service level commensurate with local demand across all stations.
2.3. Joint optimization model for allocation and rebalancing
To overcome the limitation of independently optimizing allocation and rebalancing (which cannot guarantee global optimality), we propose a joint optimization model that integrates dynamic pricing revenue, opportunity cost, and dispatch cost into a unified objective function.
Overall Objective Function:
where is the total net profit,
is the total expected revenue,
is the total opportunity cost, and
is the total rebalancing cost.
The total rebalancing cost is defined as:
where is a binary decision variable indicating whether dispatch truck
is deployed (
) or not (
).
Allocation Constraints
where constraint (15) specifies the lower and upper bounds for bike-sharing deployment at each node (the lower bound ensures a minimum service level); constraint (16) ensures the total deployment equals the available fleet size
; constraints (17) is the row normalization conditions of the transition probability matrix, respectively.
Rebalancing Constraints
In the above rebalancing constraints, constraint (18) ensures that the number of bike-sharing picked up by all trucks at node does not exceed the available quantity before dispatch, while constraint (19) defines the post-dispatch quantity at node
as the original quantity minus the net pickup/delivery by all trucks. Constraint (20) further requires that the post-dispatch quantity at each node falls between the minimum service level and the target allocation determined by the upper-level optimization. Constraints (21) and (24) together govern the truck’s loading condition: the former specifies the initial load when leaving the dispatch center, and the latter limits the load capacity to the maximum
. Constraint (22) enforces flow balance by requiring that, for each truck
, the total bikes loaded at pickup nodes and the total bikes unloaded at delivery nodes sum to zero. This is consistent with the sign convention that
at pickup nodes
(truck gains bikes) and
at delivery nodes
(truck loses bikes), ensuring no bikes are created or lost in transit, and Constraints (25a) and (25b) together enforce exact load tracking between consecutive nodes: when truck
travels from node
to node
(
), the load upon leaving
equals the load upon leaving
adjusted by the loading/unloading amount
at
; when
, the big-
terms deactivate both constraints. Constraint (23) stipulates that the total driving distance of each truck cannot exceed the maximum threshold
, and Constraint (26) ensures the truck load remains within the feasible range
at all nodes throughout the route. The feasible range of
is implicitly determined by constraints (25a), (25b), and (26) jointly. Constraints (27) and (28) ensure that each dispatch truck departs from and returns to the dispatch center, and constraint (29) declares
as a binary decision variable. Constraint (30) ensures that if truck
is not deployed, it cannot traverse any arc. Constraint (31) declares
as a binary variable.
Since the joint optimization model involves both continuous variables (pricing, allocation) and integer variables (routing), and the price-demand feedback creates nonlinearity, we adopt an iterative decomposition approach:
Step 1 (Pricing and Allocation): Given an initial allocation , compute the dynamic pricing fees
using formula (8), the adjusted demand
using formula (9), and the expected revenue
using formula (11). Optimize the allocation
to maximize
.
Step 2 (Rebalancing): Given the target allocation from Step 1 and the current distribution
, solve the vehicle routing problem to minimize the dispatch cost
subject to constraints (18)-(31). The allocation
determined in Stage 1 directly defines the rebalancing targets
in Stage 2, creating an endogenous coupling in which pricing decisions and routing operations are jointly optimized through the unified objective function (13).
Step 3 (Joint Evaluation): Compute the total net profit from formula (13). If the profit improves compared to the previous iteration, update the solution; otherwise, adjust the pricing variance
and return to Step 1.
Step 4 (Convergence): Repeat Steps 1–3 until the change in between consecutive iterations falls below a predefined threshold
, or the maximum number of iterations is reached.
This iterative approach ensures that the allocation considers the rebalancing cost, and the pricing responds to the supply-demand dynamics, achieving an approximate joint optimum.
3. Algorithm design
3.1. Dynamic pricing algorithm
Based on the dynamic pricing model proposed in Section 2.2, we design a dynamic pricing algorithm that computes the riding fee, adjusts demand through price elasticity, and evaluates the expected revenue for each node. The algorithm proceeds through the following stages.
First, the predicted demand values of all nodes are sorted in ascending order to determine the importance ranking of each node. Let denote the ranking of node
. For each pair of nodes
and
, the asymmetric directional weight is computed as
, which ensures that rides toward high-demand nodes receive higher weights.
Second, the transition probability between nodes is estimated from historical OD data. For each origin node , the transition probability to destination node
is calculated as
, where
is the observed number of trips from node
to node
. If historical OD data is insufficient, the independence approximation
can be used as a fallback.
Third, the normalized departure time pricing weight is generated for each bike-sharing. For the -th bike-sharing departing at time
, the pricing weight is:
where and
are the mean and standard deviation obtained from historical data fitting, and
is the peak pricing premium coefficient. This weight ranges within
, reaching its maximum
at peak time
and approaching the standard rate 1 during off-peak periods. The riding fee for a user departing at time
from node
to node
is then
. The time-averaged fee from node
to node
is approximated as:
Fourth, the price elasticity mechanism is applied to adjust the demand at each node. The adjusted demand is , where
is the baseline demand,
is the reference fee, and
is the price elasticity coefficient. The expected revenue at node
is then
, reflecting that the actual served demand cannot exceed either the supply or the adjusted demand. The optimal deployment number at node
is
, where
denotes the ceiling function, ensuring
is an integer consistent with the discrete nature of bike-sharing deployment. The asymmetric opportunity cost is computed as
when
, or
when
, where
. Finally, the total allocation profit is evaluated as
.
3.2. Iterative joint optimization based on PSO-LNS
To solve the joint optimization model proposed in Section 3.3, this paper designs an iterative framework that alternates between the allocation optimization and the rebalancing optimization. The rebalancing sub-problem is solved using an improved Particle Swarm Optimization (PSO) algorithm based on Large-scale Neighborhood Search (LNS), significantly influenced by destroy-and-repair metaheuristic algorithms [31–33].
The overall iterative process is as follows. The algorithm initializes the best profit and the iteration counter. In each outer iteration, the dynamic pricing algorithm described in Section 4.1 is first executed with the current pricing variance
to obtain the allocation scheme
, the expected revenue
, the opportunity cost
, and the allocation profit
.
Next, the rebalancing sub-problem is solved using the PSO-LNS algorithm. A set of particles is initialized, where each particle encodes a dispatch plan including node-to-truck assignments and visiting sequences. The particle positions and velocities are initialized randomly within feasible bounds. For each particle, the fitness is evaluated using the joint objective , where
is the rebalancing cost of the dispatch plan encoded by the particle. In each generation, the velocity of each particle is updated according to the standard PSO formula:
, where
is the inertia weight,
and
are the learning factors,
and
are random numbers in
,
is the personal best position, and
is the global best position. The particle position is then updated as
. If the new fitness exceeds the personal or global best, the corresponding records are updated. This inner loop repeats until the maximum number of generations is reached.
After the PSO inner loop converges, a relocate local search operation is performed on the global best particle to further improve the solution quality. This operation first identifies nodes with constraint violations by computing the loss value at each node: for under-supplied nodes where , the loss is
; for all other nodes, the loss is zero. The node with the largest loss value is selected as the target for improvement. A GENE operation is then performed: two routes are randomly selected from the current dispatch plan, and a node exchange is executed between them. The new dispatch plan is evaluated using the joint objective
. If
, the new route is accepted; otherwise, the original route is retained. This mechanism ensures that local search decisions are consistent with the overall profit maximization goal, and that under-supplied nodes are prioritized for rebalancing due to the higher penalty coefficient
.
After the rebalancing optimization and local search are completed, the total net profit is computed as . If
, the best solution is updated with the current allocation scheme and dispatch routes. Otherwise, the pricing variance
is perturbed by
, where
is the perturbation factor, to explore alternative pricing strategies in the next iteration. The outer loop terminates when the change in profit between consecutive iterations falls below a predefined threshold
, or when the maximum number of outer iterations is reached. This iterative approach ensures that the allocation considers the rebalancing cost, and the pricing responds to the supply-demand dynamics, achieving an approximate joint optimum. The outer loop terminates when the improvement in net profit between consecutive iterations falls below
, or when the maximum of 20 iterations is reached. The PSO inner loop runs for a maximum of 200 generations per outer iteration. The hyperparameters are summarized in Table 2.
The complete source code is available at https://github.com/John-von/Optimization-problem-of-bike-sharing-system-rebalancing-based-on-dynamic-pricing.git.
4. Numerical studies
The analysis sample is based on shared bicycle order information in Xiamen City from 6:00–10:00 on December 21, 2020, within the latitude range [24.468, 24.478] and longitude range [118.098, 118.11]. The spatial coverage of the dataset, while geographically compact, encompasses a representative high-density commuting corridor with sufficient station density and demand heterogeneity for model validation purposes. The figure includes one shared bicycle dispatch center, labeled as 0, represented by a blue square; 78 shared bicycle nodes, labeled 1–78, represented by red dots, as shown in Fig 1. For detailed order data analysis and data processing, please refer to [30]. Although the data was collected during the COVID-19 pandemic, China had largely resumed normal urban commuting by December 2020, and the morning peak commuter demand exhibits structural stability less affected by pandemic-era behavioral shifts. More critically, the validity of the DSDRO framework depends on the existence of spatiotemporal demand heterogeneity—a feature that persists across demand regimes—rather than on any specific absolute demand level. It should be noted that the findings from this case study demonstrate the methodological feasibility of DSDRO, not universally applicable conclusions. Validation on additional datasets remains important future work.
To solve the dispatch plan for 1283 bike-sharing across 78 nodes, we assumed a maximum of 10 dispatch trucks at the dispatch center, with each truck having a maximum loading capacity of 100 bike-sharing, a maximum travel distance of 200 km, an average travel speed of 30 km/h, an operational cost of 100 USD per use for managing a dispatch truck, and a unit distance dispatch cost of 1 USD/km. The base parameters of the algorithm were chosen as the most reasonable values through repeated analysis of the results.
To verify the feasibility of the model and algorithm in this paper, first, based on the prediction of historical order data, a genetic algorithm was used to solve the traditional dispatch problem with the objective of minimizing total dispatch cost. The model converged after 61 iterations as shown in Fig 2, resulting in the optimal dispatch route of the dispatch trucks for the 78 sites as shown in Fig 3. The specific route is shown in Table 3.
Since the importance of each bike-sharing node varies, the demand for bike-sharing at different nodes will also differ, and the riding transition probabilities of bike-sharing in different areas will affect the revenue generated by the number of bike-sharing deployed. Therefore, we tested the above example using the model and algorithm proposed in this paper. The test results are shown in Fig 4, the specific route is shown in Table 4. As can be seen from the figure, the algorithm achieved good convergence at the 50th generation and produced the optimal dispatch plan for the 78 nodes, as shown in Fig 5. This demonstrates that the model and algorithm proposed in this paper can accurately consider the demand of different nodes and the transition probabilities of different areas, providing enterprises with more precise and efficient dispatch plans.
Fig 6 shows a comparison of key indicators, where it can be seen that the improved particle swarm algorithm exhibits significant advantages over the traditional genetic algorithm in core performance metrics. Although total travel distance increased from 54.4 km to 62.2 km and rebalancing costs rose from 854.4 to 862.2, expected revenue improved to 2,951.4, a gain of 15.51%, with net profit rising from 1,312–1,629.2, an increase of 24.18%. This outcome is consistent with the design logic of the proposed framework: the demand-elastic allocation concentrates bikes at high-demand nodes, reducing spatial mismatches and increasing ridership revenue, while the PSO-LNS optimizer consolidates rebalancing routes to keep additional costs minimal.
Fig 7 illustrates the percentage change in each key metric relative to the genetic algorithm baseline, revealing an asymmetric pattern in which rebalancing cost increases by only 0.91% while expected revenue and net profit improve by 15.51% and 24.18%, respectively. It is worth noting that the net profit growth rate exceeds the revenue growth rate, which is attributable to the operating leverage effect inherent in the cost structure. While revenue increases by 385.4, total costs increase by only 67.9, since the rebalancing cost—which contains a substantial fixed vehicle dispatch component—grows by merely 0.91%. This demonstrates that the dynamic pricing mechanism not only increases ridership revenue but also improves the overall cost efficiency of the rebalancing operation, thereby amplifying profit margins beyond the level of revenue growth alone.
Fig 8 evaluates performance differences between the two algorithms across five dimensions, with the improved algorithm achieving improvements across all dimensions, with revenue and profit gains of 15.51% and 24.18% respectively. The geometric configuration of the radar chart shows that the improved algorithm forms a larger and more balanced pentagon, indicating coordinated development across all performance dimensions. Particularly notable improvements are observed in revenue level and profit performance dimensions, while cost efficiency, resource utilization, and overall effectiveness dimensions also demonstrate stable performance enhancements. This comprehensive performance improvement fully demonstrates the synergistic effects of dynamic pricing strategies and optimized scheduling algorithms, validating the superior performance and well-balanced developmental characteristics of the improved algorithm in multi-objective optimization problems.
To validate the contribution of each component in the proposed framework, three comparative experiments were conducted(as Fig 9): fixed pricing with greedy routing (Method 1), dynamic pricing with pure PSO (Method 2), and the proposed dynamic pricing with PSO-LNS (Method 3). The results demonstrate that, compared with Method 1, the introduction of the dynamic pricing mechanism increases expected revenue by over 300%, confirming its effectiveness in capturing spatiotemporal demand heterogeneity. Compared with Method 2, the incorporation of the LNS component reduces rebalancing cost by 76.21% and shortens total travel distance by 71.0%, demonstrating the superior deep-search capability of large neighborhood search in route optimization. These results highlight a significant synergistic effect between the dynamic pricing module and the PSO-LNS algorithm, as neither component alone is sufficient to achieve optimal system performance, thereby further substantiating the necessity and superiority of the proposed two-stage joint optimization framework. To further validate the algorithmic reliability, we conducted 10 independent runs of the proposed PSO-LNS with different random seeds(The ten runs use the following random seeds: 42, 7, 13, 21, 55, 88, 101, 137, 200, and 256, which are fixed prior to each run to ensure reproducibility). Table 5 reports the mean, standard deviation, and coefficient of variation (CV) for all key metrics. All CV values remain below 5%, confirming that the algorithm produces consistent and reproducible results across independent runs.
Fig 10 shows the sensitivity of bike-sharing users to different charges over time, representing the frequency of bike-sharing use during different periods under various pricing scenarios. By dynamically adjusting pricing—that is, by changing the variance in the normal distribution of pricing, it is possible to effectively differentiate users’ demand stickiness for bike-sharing. As seen in the figure, the area enclosed by the curves represents the cumulative usage of bike-sharing, with both curves encompassing an area corresponding to the regional deployment number of 1,283 bike-sharing. In the [6, 7.2] time period, adjusting the pricing variance can cause approximately 1.8% of travelers to travel earlier or later, thereby reducing the number of people traveling during peak periods. This indicates that a smaller variance in charges leads most users to prefer clustered departures, which can easily result in larger peaks during rush hours. This indirectly shows that under low pricing standards, the differentiation in demand stickiness for bike-sharing among users is small, leading to inefficient resource utilization. Conversely, a larger variance can disperse the rate of departures, further differentiating the stickiness of user demand for bike-sharing. The reason for this outcome lies in the differing sensitivities of users to pricing standards. Considering the urgency of their needs, some users may have a higher tolerance for pricing, while others, due to non-urgent needs and pricing sensitivity, may avoid using bike-sharing during higher pricing periods.
Under the condition of keeping other parameters constant, we study the impact of different levels of bike-sharing deployment on the system’s cost and revenue. The specific trend of changes is shown in Fig 11. As the number of bike-sharing increases, profit and revenue initially increase and then decrease, while the overall transportation cost remains relatively unchanged. When the number of deployed bike-sharing is only 60% of the demand level, the enterprise operates at a loss in the area, meaning that the operational costs exceed the revenue generated by the bike-sharing in the area. This implies that there are fewer idle bike-sharing, resulting in higher opportunity costs and costs associated with unmet demand in the area. Therefore, the enterprise does not need to specifically dispatch bike-sharing in this area and can wait for users to self-dispatch, or dispatch only when more bike-sharing accumulate as idle. When the number of bike-sharing reaches 125% of the example level, the net profit begins to decline, indicating an excess of idle bike-sharing. Even if the enterprise relocates these idle bike-sharing to areas with higher demand, the excessive number of bike-sharing will still lead to a decrease in profit. In this case, the enterprise should consider relocating the surplus bike-sharing to other areas, or even reflect on whether too many bike-sharing have been deployed, leading to market saturation.
Fig 12 presents the robustness of the DSDRO framework across four demand scaling scenarios, measured by the revenue and profit gains relative to the fixed pricing baseline. Two notable patterns emerge. First, the revenue gain remains remarkably stable across all demand regimes, ranging from 256.30% to 258.75%—a variation of only 2.45 percentage points—indicating that the superiority of the dynamic pricing mechanism is independent of the absolute demand level. Second, the profit gain increases monotonically with demand, suggesting that the proposed framework becomes increasingly advantageous under demand recovery and post-pandemic high-demand conditions. These results demonstrate that the proposed framework maintains stable—and progressively stronger—performance advantages across a wide range of demand conditions, confirming its adaptability to varying operational environments.
5. Conclusion
In this study, we proposed a two-stage joint optimization model for bike-sharing implementing dynamic pricing, considering user demand stickiness and enterprise revenue maximization. The key decisions in this problem are the charging for bike-sharing at different times and nodes, and the initial dispatch allocation of bike-sharing. We introduced a Dynamic pricing-based Stochastic Demand-Response Optimization (DSDRO) model, aiming to effectively price for different user demand stickiness while optimizing the utilization of bike-sharing resources.
Specifically, we first analyzed the dynamic evolution of bike-sharing in time and space based on order data, quantifying the importance of each node. Next, we established a dynamic pricing model for bike-sharing’s stochastic distribution, fully considering factors such as departure time and node importance, to balance and quantify users’ riding costs. Finally, we proposed a two-stage joint optimization model and designed an improved Particle Swarm Optimization algorithm based on Large-scale Neighborhood Search (PSO-LNS) to solve the model. We tested the performance of the DSDRO model through comprehensive numerical experiments with bike-sharing order data provided by the 2021 Digital China Innovation Contest. Compared to the traditional genetic algorithm baseline, the DSDRO model increases expected revenue by 15.51% and net profit by 24.18% under identical resource conditions. An ablation study further demonstrates that dynamic pricing alone increases expected revenue by over 300% relative to fixed pricing, while the LNS component reduces rebalancing cost by 76.21% relative to pure PSO, confirming the necessity and synergistic effect of the two-stage joint optimization framework. Algorithm stability was verified through 10 independent runs, with all performance metrics exhibiting a coefficient of variation below 5%. Robustness analysis across four demand scaling scenarios shows that the revenue gain remains stable at 256%–259%, suggesting that the proposed framework maintains its performance advantages across the tested range of demand conditions. Additionally, sensitivity analysis on deployment levels reveals that when deployment falls below 60% of demand, the enterprise operates at a loss; when deployment exceeds 125% of demand, net profit begins to decline due to resource over-supply.
Our study also has some limitations. Firstly, the model rests on several simplifying assumptions, including a single dispatch center, no weather or traffic disruptions, no bike damage or recovery, and one visit per truck per node. These assumptions are standard in initial modeling studies but reduce real-world complexity; the findings should therefore be viewed as promising under simplified conditions rather than as a full real-world deployment test. Secondly, we only considered the dynamic pricing and dispatch allocation problems of BSS from the perspective of enterprise survival, lacking consideration of user acceptance, which will be further addressed in our next work. Thirdly, we used PSO-LNS to solve the problem considering the actual scale of the example; in the future, other gradient-based algorithms could be considered for solving larger-scale instances. Fourthly, the empirical validation is based on a single city (Xiamen), a single date, and a single morning peak window. While the robustness analysis across demand scaling factors provides partial evidence of generalizability, the reported performance gains should be interpreted as indicative of the method’s potential rather than as evidence of broad practical effectiveness. Future work should validate the proposed approach on datasets from multiple cities and time periods.
Supporting information
S1 File. Dataset and MATLAB implementation of the DSDRO algorithm.
This file contains the station coordinates, station demand data, and the source code for the proposed algorithm, including the PSO-LNS solver, ablation study scripts, and 10-run statistical validation scripts. The same materials are also publicly available at: https://github.com/John-von/Optimization-problem-of-bike-sharing-system-rebalancing-based-on-dynamic-pricing.git. The contents of this file and the GitHub repository are identical.
https://doi.org/10.1371/journal.pone.0347218.s001
(ZIP)
References
- 1. Pelechrinis K, Zacharias C, Kokkodis M, Lappas T. Economic impact and policy implications from urban shared transportation: The case of Pittsburgh’s shared bike system. PLoS One. 2017;12(8):e0184092. pmid:28859121
- 2. Jiang Z, Ouyang Y. Pricing and resource allocation under competition in a docked bike-sharing market. Transportation Research Part C: Emerging Technologies. 2022;143:103833.
- 3. Zhang J, Meng M, Koh PP, Wong YD. Life duration of bike sharing systems. Case Studies on Transport Policy. 2021;9(2):674–80.
- 4. Brinkmann J, Ulmer MW, Mattfeld DC. Dynamic lookahead policies for stochastic-dynamic inventory routing in bike sharing systems. Computers & Operations Research. 2019;106:260–79.
- 5. Cipriano M, Colomba L, Garza P. A Data-driven based dynamic rebalancing methodology for bike sharing systems. Applied Sciences. 2021;11(15):6967.
- 6. Li X, Wang X, Feng Z. Dynamic repositioning in bike-sharing systems with uncertain demand: An improved rolling horizon framework. Omega. 2024;126:103047.
- 7. Maggioni F, Cagnolari M, Bertazzi L, Wallace SW. Stochastic optimization models for a bike-sharing problem with transshipment. European Journal of Operational Research. 2019;276(1):272–83.
- 8. Alvarez-Valdes R, Belenguer JM, Benavent E, Bermudez JD, Muñoz F, Vercher E, et al. Optimizing the level of service quality of a bike-sharing system. Omega. 2016;62:163–75.
- 9. Li X, Xu Y, Zhang X, Shi W, Yue Y, Li Q. Improving short-term bike sharing demand forecast through an irregular convolutional neural network. Transportation Research Part C: Emerging Technologies. 2023;147:103984.
- 10. Médard de Chardon C, Caruso G, Thomas I. Bike-share rebalancing strategies, patterns, and purpose. Journal of Transport Geography. 2016;55:22–39.
- 11. Zhou J, Guo Y, Sun J, Yu E, Wang R. Review of bike-sharing system studies using bibliometrics method. Journal of Traffic and Transportation Engineering (English Edition). 2022;9(4):608–30.
- 12. Caggiani L, Camporeale R, Marinelli M, Ottomanelli M. User satisfaction based model for resource allocation in bike-sharing systems. Transport Policy. 2019;80:117–26.
- 13. Gan J, Zhang G, Zhang Y. Bike rebalancing: How to find a balanced matching in the k center problem?. European Journal of Operational Research. 2024;316(3):845–55.
- 14. Cheng Y, Wang J, Wang Y. A user-based bike rebalancing strategy for free-floating bike sharing systems: A bidding model. Transportation Research Part E: Logistics and Transportation Review. 2021;154:102438.
- 15. Jin H, Liu S, So KC, Wang K. Dynamic incentive schemes for managing dockless bike-sharing systems. Transportation Research Part C: Emerging Technologies. 2022;136:103527.
- 16. Wang X, Zheng S, Wang L, Han S, Liu L. Multi-objective optimal scheduling model for shared bikes based on spatiotemporal big data. Journal of Cleaner Production. 2023;421:138362.
- 17. Fu C, Zhu N, Ma S, Liu R. A two-stage robust approach to integrated station location and rebalancing vehicle service design in bike-sharing systems. European Journal of Operational Research. 2022;298(3):915–38.
- 18. Zhou S, Zhuang Y, Wu Z. Planning and real-time pricing of EV charging stations considering social welfare and profitability balance. CSEE Journal of Power and Energy Systems. 2020;7(6):1289–301.
- 19. Sun S, Dong M, Liang B. Real-time welfare-maximizing regulation allocation in dynamic aggregator-EVs system. IEEE Trans Smart Grid. 2014;5(3):1397–409.
- 20. Saharan S, Bawa S, Kumar N. Dynamic pricing techniques for intelligent transportation system in smart cities: A systematic review. Computer Communications. 2020;150:603–25.
- 21. He S, Shin KG. Spatio-temporal adaptive pricing for balancing mobility-on-demand networks. ACM Trans Intell Syst Technol. 2019;10(4):1–28.
- 22. Wang N, Tian H, Guo J, Wu H, Lyu J. Efficiency-oriented vehicle relocation of shared autonomous electric fleet in station-based car-sharing system. Journal of Traffic and Transportation Engineering (English Edition). 2024;11(4):681–99.
- 23. Ma X, Ji Y, Yuan Y, Van Oort N, Jin Y, Hoogendoorn S. A comparison in travel patterns and determinants of user demand between docked and dockless bike-sharing systems using multi-sourced data. Transportation Research Part A: Policy and Practice. 2020;139:148–73.
- 24. Lv C, Liu Q, Zhang C, Ren Y, Zhou H. A feature correlation reinforce clustering and evolutionary algorithm for the green bike-sharing reposition problem. Computers & Operations Research. 2024;166:106627.
- 25. Nourinejad M, Ramezani M. Ride-Sourcing modeling and pricing in non-equilibrium two-sided markets. Transportation Research Part B: Methodological. 2020;132:340–57.
- 26. Zhang J, Meng M, Wang D ZW. A dynamic pricing scheme with negative prices in dockless bike sharing systems. Transportation Research Part B: Methodological. 2019;127:201–24.
- 27. Pan L, Cai Q, Fang Z, Tang P, Huang L. A deep reinforcement learning framework for rebalancing dockless bike sharing systems. AAAI. 2019;33(01):1393–400.
- 28. Pfrommer J, Warrington J, Schildbach G, Morari M. Dynamic vehicle redistribution and online price incentives in shared mobility systems. IEEE Trans Intell Transport Syst. 2014;15(4):1567–78.
- 29. Amin A, Tareen WUK, Usman M, Ali H, Bari I, Horan B, et al. A review of optimal charging strategy for electric vehicles under dynamic pricing schemes in the distribution charging network. Sustainability. 2020;12(23):10160.
- 30. Cai J, Wen Q, Chen T, Xie L, Yu J, Liu Y. Comprehensive spatiotemporal dataset of shared bicycle operations in Xiamen China. Sci Data. 2026;13(1):217. pmid:41484113
- 31. Zhao YW, Wu B, Wang WL, Ma YL, Wang WA, Sun H. Particle swarm optimization for vehicle routing problem with time windows. MSF. 2004;471–472:801–5.
- 32. Maurice C, James K. The particle swarm-explosion, stability, and convergence in a multidimensional complex space. IEEE Trans Evol Comput. 2002;6(1):58–73.
- 33. Qiao J, He M, Sun N, Sun P, Fan Y. Factors affecting the final solution of the bike-sharing rebalancing problem under heuristic algorithms. Computers & Operations Research. 2023;159:106368.