Circular Image

S. Sharif Azadeh

info

Please Note

34 records found

Journal article (2026) - Lixing Yang, Yahan Lu, Jiateng Yin, Shadi Sharif Azadeh
The intelligent upgrading of metropolitan rail transit systems has made it feasible to implement demand-side management policies that integrate multiple operational strategies in practical operations. However, the tight interdependence between supply and demand necessitates a coordinated approach combining demand-side management policies and supply-side resource allocations to enhance the urban rail transit ecosystem. In this study, we propose a mathematical and computational framework that optimizes train timetables, passenger flow control strategies, and trip-shifting plans through the pricing policy. Our framework incorporates an emerging trip-booking approach that transforms waiting at the stations into waiting at home, thereby mitigating station overcrowding. Additionally, it ensures service fairness by maintaining an equitable likelihood of delays across different stations. We formulate the problem as an integer linear programming model, aiming to minimize passengers’ waiting time and government subsidies required to offset revenue losses from fare discounts used to encourage trip shifting. To improve the computational efficiency, we develop a Benders decomposition-based algorithm within the branch-and-cut method, which decomposes the model into train timetabling with partial passenger assignment and passenger flow control subproblems. We propose valid inequalities based on our model's properties to strengthen the linear relaxation bounds at each node of the branch-and-bound tree. Computational results from proof-of-concept and real-world case studies on the Beijing metro show that our solution method outperforms commercial solvers in terms of computational efficiency. We can obtain high-quality solutions, including optimal ones, at the root node with reduced branching requirements thanks to our novel decomposition framework and valid inequalities. Our integrated optimization approach reduces the fleet size for operators by at least 8.33 % and decreases the waiting time of passengers on the tested instances, thereby validating the effectiveness of our proposed methods. ...
Vehicle-to-grid (V2G) technology allows electric vehicle (EV) to not only charge but also discharge electricity back to the grid, providing benefits for the energy system and financial incentives for users. However, unlocking V2G’s potential and ensuring reliable contributions to grid stability requires understanding people’s willingness to participate in V2G in their daily routines, as well as the behavioural drivers and their relative importance. This study investigates individuals’ willingness to plug in their private V2G-enabled EVs at each parking opportunity, adopting a flexible, daily routine-based perspective that reflects the trade-offs people make between the benefits gained and the inconveniences encountered in everyday life. In addition, recognising that plug-in behaviour involves both charging and discharging, we incorporate a range of factors that capture such complexity. A stated choice experiment was conducted in the Netherlands, where respondents made choices on whether to plug in their EVs in hypothetical scenarios. By combining stated choice experiments with latent class modelling, the study reveals heterogeneity in V2G willingness, thereby advancing current understanding and informing both energy system design and policy. Two distinct user segments are found: (1) cautious adopters, often women and non-EV owners, highly sensitive to inconvenience and battery-related concerns; and (2) confident EV pragmatists, primarily men and current EV users, showing greater tolerance for trade-offs. Policy implications are proposed in three areas: business model development, class-specific strategies and infrastructure planning. These insights contribute to enabling broader V2G adoption and integrating EVs more effectively into sustainable energy systems.
...
Journal article (2026) - Jinghui Zhang, Yahan Lu, Lixing Yang, Shadi Sharif Azadeh
This paper studies a coordinated service planning problem for public transport-oriented Mobility-as-a-Service (MaaS) systems under time-varying passenger demand. We consider the integrated optimization of schedules, vehicle compositions, stop patterns, pricing, the rebalancing strategy of modular units, and passenger routing in a multi-modal public transport network with metro and modular bus services. A public transport-oriented MaaS platform is modeled as a planning and coordination tool that recommends scheduling and pricing decisions to operators, rather than directly operating services or setting fares. To capture the interaction between supply-side service design and demand-side time-dependent passenger routing, we formulate a bi-objective mixed-integer nonlinear programming model that balances public welfare and financial sustainability. The model is reformulated as a single-objective optimization formulation via the ε-constraint method, and solved using a hybrid algorithm that combines Adaptive Large Neighborhood Search (ALNS) with GUROBI. Computational experiments on both small-scale and real-world instances demonstrate the effectiveness of the proposed approaches in supporting scalable, coordinated, and sustainable public transport planning within the MaaS framework and provide managerial insights. ...
Journal article (2026) - Dongyang Xia, Jihui Ma, Shadi Sharif Azadeh
Addressing the integrated timetabling and vehicle scheduling (TTVS) problem is important for improving transit operations. Recently, the emerging modular autonomous vehicles composed of modular autonomous units have made it possible to dynamically adjust onboard capacity to better match space-time imbalanced passenger flows. This paper introduces an integrated framework for the TTVS problem in a dynamically capacitated and modularized bus network considering time-varying and uncertain passenger demand. In this network, units can be (de-)coupled and rerouted across different lines within the network at various times and locations, providing passengers with the opportunity to make in-vehicle transfers—that is, to transfer between lines while remaining on board. We formulate a stochastic programming model to jointly determine the optimal robust timetable, dynamic formations of vehicles, and cross-line circulations of units, aiming to minimize the weighted sum of operators’ and passengers’ costs. To solve realistic instances, we propose a tailored integer L-shaped method to solve the formulated model dynamically through a rolling-horizon (RH) optimization algorithm. Furthermore, we extend our approach into a novel learning-based real-time decision-making framework that fine-tunes timetables and reoptimizes vehicle schedules in response to evolving and new demand realizations during practical operations. At its core is a scenario-retention method that selects a representative subset of scenarios using a machine learning model trained on scenario-level features. This subset is then incorporated into the optimization, ensuring both computational scalability and solution quality. To validate the effectiveness of our methods on realistic instances, we conduct experiments based on the Beijing bus network involving two bidirectional lines, 89 stops, up to 50 trips, and a four-hour operational horizon. Our integrated optimization method outperforms the sequential approach. Compared with fixed-formation vehicles, our approach generates timetables and vehicle schedules that require fewer units. Additionally, the learning-based real-time decision-making framework outperforms benchmark algorithms in solution quality within a one-minute computation time limit. ...
Journal article (2026) - Yahan Lu, Lixing Yang, Dongyang Xia, Fanting Meng, Shadi Sharif Azadeh
Emerging reservation-based travel technologies offer a promising solution to mitigate supply-demand mismatches in metro systems. This paper presents a framework to support metro operators by optimizing time-varying reservation slot allocation plans, passenger flow control strategies, and train schedules. The proposed approach ensures that passengers with reservations can directly access platforms and board the first available train services, while those without reservations are managed through effective passenger flow control strategies to optimize train capacity utilization. To address this, an integer nonlinear programming model is formulated, incorporating constraints that capture interactions between passengers with and without reservations, with the objective of minimizing passengers’ waiting time and line congestion. A hybrid algorithm is developed to improve computational efficiency, combining the adaptive large neighborhood search method with a commercial solver and incorporating valid inequalities tailored to the properties of the model. The effectiveness of the proposed approaches is demonstrated through numerical experiments using real-world operational data from the Beijing metro Batong line. Computational results indicate that the integrated optimization approach reduces the objective value by 6.19 % compared to a step-by-step optimization method, achieving better alignment of capacity with dynamic passenger flows. In addition, the extreme unfairness between reserved and unreserved passengers, where passengers with reservations have a 100 % service ratio compared to less than 20 % for unreserved passengers, is mitigated by increasing passenger waiting times by 3.51 % and line congestion by 0.51 %. Furthermore, the proposed algorithm efficiently solves large-scale and real-world instances, outperforming the state-of-the-art commercial solver. ...
Journal article (2025) - Maaike Snelder, Koen de Clercq, Gonçalo Homem de Almeida Correia, Maarten ‘T Hoen, Bahman Madadi, Irene Martinez, Shadi Sharif Azadeh, Bart van Arem
Automated driving developments should be considered when making decisions about investments in physical and digital infrastructure. This paper proposes four scenarios for automated driving developments in the Netherlands in 2040 and 2060 taking into account uncertainties regarding future penetration rates, the level of connectivity, the operational design domain, and the expected impacts of automated driving: 1) Late transition, 2) Automated vehicles on main roads, 3) Car-topia, and 4) Share-topia. To derive these scenarios, an extended switchboard method is introduced in which multiple driving forces for automated driving can be varied. The main driving forces were identified based on expert surveys. For each scenario, a modelling approach is used to compute the impact of automated driving on vehicle kilometres driven and congestion. The extended switchboard method offered more flexibility than existing scenario methods. The model-based impact assessment provided more conservative and probably more accurate insights into the expected impacts of automated driving on vehicle kilometres driven and congestion than expert estimates from the literature. The results show that in all scenarios automation leads to an increase in the number of trips, vehicle kilometres driven and congestion. In the scenarios with autonomous vehicles, congestion is expected to increase up to 17%. The higher the penetration rates of connected automated vehicles, the smaller the increase in congestion (1.5%-11%). The results indicate that investments in digital infrastructure are needed to prevent capacity reduction due to autonomous driving. The scenarios “car-topia” and “share-topia” may require additional physical infrastructure on motorways and regional roads, and/or the implementation of demand management strategies. ...
This paper addresses the challenges of charging infrastructure design (CID) for electrified public transport networks using Battery Electric Buses (BEBs) under conditions of sparse energy consumption data. Accurate energy consumption estimation is critical for cost-effective and reliable electrification but often requires costly field experiments, resulting in limited data. To address this issue, we propose two mathematical models designed to handle uncertainty and data sparsity in energy consumption. The first is a robust optimization model with box uncertainty, addressing variability in energy consumption. The second is a data-driven distributionally robust optimization model that leverages observed data to provide more flexible and informed solutions. To evaluate these models, we apply them to the Rotterdam bus network. Our analysis reveals three key insights: (1) Ignoring variations in energy consumption can result in operational unreliability, with up to 55% of scenarios leading to infeasible trips. (2) Designing infrastructure based on worst-case energy consumption increases costs by 67% compared to using average estimates. (3) The data-driven distributionally robust optimization model reduces costs by 28% compared to the box uncertainty model while maintaining reliability, especially in scenarios where extreme energy consumption values are rare and data exhibit skewness. In addition to cost savings, this approach provides robust protection against uncertainty, ensuring reliable operation under diverse conditions. ...
Journal article (2025) - Le Zhang, Shadi Sharif Azadeh, Hai Jiang
We study a class of assortment optimization problems where customers choose products according to the cross-nested logit (CNL) model and the number of products offered in the assortment cannot exceed a fixed number. Currently, no exact method exists for this NP-hard problem that can efficiently solve even small instances (e.g., 50 products with a cardinality limit of 10). In this paper, we propose an exact solution method that addresses this problem by finding the fixed point of a function through binary search. The parameterized problem at each iteration corresponds to a nonlinear binary integer programming problem, which we solve using a tailored Branch-and-Bound algorithm incorporating a novel variable-fixing mechanism, branching rule and upper bound generation strategy. Given that the computation time of the exact method can grow exponentially, we also introduce two polynomial-time heuristic algorithms with different solution strategies to handle larger instances. Numerical results demonstrate that our exact algorithm can optimally solve all test instances with up to 150 products and more than 90% of instances with up to 300 products within a one-hour time limit. Using the exact method as a benchmark, we find that the best-performing heuristic achieves optimal solutions for the majority of test instances, with an average optimality gap of 0.2%. ...
Supply chain networks face the critical challenge of enhancing resilience to disruptions while controlling the costs associated with resilience improvements. In this paper, we introduce an adaptive resilience improvement framework designed to sustain material flow by responding dynamically to emerging network vulnerabilities. Our framework centers on the production chain as a core element in resilience planning, integrating vulnerability assessment and reinforcement strategies through a tri-level optimization model. This model adapts to the network's changing conditions by (i) incorporating disruption scenario generation as an integral part of the decision-making process, allowing for the dynamic identification of vulnerabilities, and (ii) optimizing reinforcement strategies in response to them. We demonstrate the framework's effectiveness through two distinct case studies: a steel supply chain, where production flexibility improves resilience by 30%, and a pharmaceutical supply chain affected by climate-related disruptions. Our computational results confirm the scalability and effectiveness of this approach in strengthening network-wide resilience as vulnerabilities evolve. ...
Journal article (2025) - C. Yang, M. Y. Maknoon, H. Jiang, Sh Sharif Azadeh
This study introduces an optimization framework for deploying Mobile Fleet Inventories (MFIs) to address operational inefficiencies in on-demand delivery systems. Traditionally, these systems rely on stationary facilities to organize operations and manage resources. While stationary facilities provide stability and structured coverage, they are inherently rigid and struggle to adapt to the spatial and temporal fluctuations characteristic of urban service demand. By leveraging urban waterways, MFIs act as dynamic, mobile facilities, enabling real-time resource redistribution and offering greater flexibility to meet evolving demand patterns efficiently. We formulate the problem as a mixed-integer linear programming model to optimize MFI deployment, minimizing total system costs. The model incorporates both capital investments (e.g., MFI leasing and docking infrastructure) and operational expenses (e.g., rider idle time). Key decisions include determining the optimal number, placement of MFIs, and fleet size. To validate the approach, we apply it to a meal delivery platform in Amsterdam, demonstrating its practicality and scalability. Results show that implementing MFIs reduces overall system costs by 17% and decreases rider idle time by 35% compared to stationary facility operations. These findings underscore the transformative potential of MFIs to enhance the efficiency, sustainability, and adaptability of on-demand delivery systems in urban settings. ...

A stated preference experiment on route choice of food delivery riders

The rapid growth of the online food delivery industry has led to a significant increase in the number of delivery riders navigating urban streets, predominantly using bikes and e-bikes. This growth has been accompanied by a concerning rise in crashes involving these riders, posing a critical challenge for city authorities and policymakers. Promoting safer riding behavior, such as choosing safer routes while delivering food, can potentially reduce crash risks. With this motivation, this paper aims to evaluate the effectiveness of strategies that encourage riders to choose safer routes and estimate the value riders place on reducing the risk of road crashes. The paper presents a stated preference experiment conducted with food delivery riders in Amsterdam and Copenhagen to assess two targeted strategies: ’safety information’ and ’monetary incentives’, designed to encourage riders toward selecting safer routes. The results from the route choice model show that presenting information about safety against crashes on different routes and offering monetary incentives can effectively motivate riders to choose safer routes, even if these are longer. The trade-offs riders make between safer and shorter routes were quantified by calculating the Value of Risk Reduction (VRR) and Willingness to Accept (WTA) indicators, which offer valuable insights into riders’ safety preferences. These indicators highlight how much riders value risk reduction and the compensation required to choose safer routes. Furthermore, the findings reveal that factors related to riders’ working arrangements and socio-demographic profiles significantly influence their route choice decisions. The paper concludes with a discussion about the practical challenges associated with implementing the strategies to enhance rider safety and proposing potential solutions that can be useful for food delivery platforms and policymakers. ...
Journal article (2025) - Yimeng Zhang, Oded Cats, Shadi Sharif Azadeh
The shift from private vehicles to public and shared transport is crucial to reducing emissions and meeting climate targets. Consequently, there is an urgent need to develop a multi-modal transport trip planning approach that integrates public transport and shared mobility solutions, offering viable alternatives to private vehicle use. To this end, we propose a preference-based optimization framework for multi-modal trip planning with public transport, ride-pooling services, and shared micro-mobility fleets. We introduce a mixed-integer programming model that incorporates preferences into the objective function of the mathematical model. We present a meta-heuristic framework that incorporates a customized Adaptive Large Neighborhood Search algorithm and other tailored algorithms, to effectively manage dynamic requests through a rolling horizon approach. Numerical experiments are conducted using real transport network data in a suburban area of Rotterdam The Netherlands Model application results demonstrate that the proposed algorithm can efficiently obtain near-optimal solutions. Managerial insights are gained from comprehensive experiments that consider various passenger segments, costs of micro-mobility vehicles, and availability fluctuation of shared mobility. ...
Journal article (2025) - Christiane Barz, Shadi Sharif Azadeh
Revenue Management (RM) and Pricing have a long tradition of elegant mathematical formulations, typically as large-scale stochastic dynamic programs, see, for instance, Gallego and van Ryzin (1994), Talluri and van Ryzin (1998), or Talluri and van Ryzin (2004). These models capture, in full generality, the trade-offs among capacity, uncertainty, and customer choice that define RM. Yet, as already noted by Talluri and van Ryzin (1998), the resulting problems are often simply too large to solve exactly. The enduring challenge, therefore, lies not in formulating the “perfect” model but in extracting useful, implementable decision policies from systems that defy exact optimization.

This Special Issue on Revenue Management for Complex Systems brings together five contributions that embody precisely this philosophy. Each paper begins with a theoretically sound model that captures the richness of real-world complexity (multi-dimensional heterogeneity, dynamic decisions under uncertainty, coupled subsystems, and data-driven learning) but then forges a computational path that makes the model tractable and actionable. Although they operate across diverse domains from pricing consumer products to managing transportation, logistics, and mobility networks, they share a unifying spirit: to turn complexity into structure, and structure into insight. ...
Journal article (2025) - Jingyi Cheng, Shadi Sharif Azadeh
Micro-delivery services offer promising solutions for on-demand city logistics, but their success relies on efficient real-time delivery operations and fleet management. On-demand meal delivery platforms seek to optimize real-time operations based on anticipatory insights into city-wide demand distributions. To address these needs, this study proposes a short-term predict-then-cluster framework for on-demand meal delivery services. In the forecasting stage, point and distributional predictions are generated using multivariate features, including temporal, contextual, and lagged-dependent features to capture complex demand dynamics. In the clustering stage, we propose two methods: Constrained K-Means Clustering (CKMC) and Contiguity Constrained Hierarchical Clustering with Iterative Constraint Enforcement (CCHC-ICE). These approaches form dynamic, geographically coherent clusters based on predicted demand, while accommodating user-defined operational constraints. Case studies on European and Taiwanese datasets demonstrate that lagged-dependent ensemble learning models perform robustly under sparse, zero-inflated demand conditions, whereas deep learning models such as LSTM excel in denser data regimes. Furthermore, results from the European case study highlight that incorporating distributional forecasts effectively captures demand uncertainty, thereby enhancing the quality of clustering outcomes and operational decision-making. By integrating demand uncertainty and operational constraints, the proposed framework delivers forward-looking, actionable insights for optimizing real-time meal delivery operations. The approach is adaptable to other on-demand platform-based city logistics and passenger mobility services, contributing to more sustainable and efficient urban operations. ...
The evolving field of electric moped sharing systems is shaped by various determinants influencing user preferences, including range anxiety, pricing strategies, and regulatory changes. Utilizing a stated preference approach with a hybrid choice model, this research explores how these factors, along with attitudinal constructs, impact user decisions. The findings reveal that remaining driving range plays a critical role, with significant individual variability in its sensitivity, while perceived range anxiety did not significantly influence choices. Recent changes in helmet regulations have shifted preferences towards faster vehicles. Furthermore, dynamic pricing strategies, such as adjusting ride or unlock fees, can incentivize the use of less desirable vehicles with lower battery range or aid in user-based relocation. Nevertheless, low-range vehicles are less likely to be chosen, even with incentives. These insights provide valuable guidance for operators of electric moped sharing system to improve fleet management and optimize user satisfaction through strategic pricing and battery management. ...

A user-centric shared mobility service design

Journal article (2025) - Rongge Guo, Xiaobing Liu, Yite Sun, Xuedong Yan, Wei Guan, Shadi Sharif Azadeh
Ride-sharing services operated by transportation network companies (TNCs) have the potential to expand capacity and accommodate increasing urban mobility demands, presenting an alternative to traditional ride-hailing services. This study introduces a high-capacity ride-sharing (HCRS) system that leverages user-specific travel choices and incentive-based pricing schemes. This innovative system enhances the dynamic matching problem of HCRS by incorporating a nested choice model and dynamic fare adjustment strategies to boost profitability while encouraging shared travel behaviours. Additionally, a rolling horizon solution approach is employed, including a shared choice set generation algorithm for creating shared alternatives and an Adaptive Large Neighborhood Search (ALNS)-based method for optimal matching. By leveraging a real dataset from Beijing's ride-hailing services, this research underscores that the HCRS service can significantly improve system efficiency and service quality, achieving more than 10.44% reduction in operating costs, and reducing average fares (¥3.31) and emissions (3.49 kg) across various users, compared to traditional ride-hailing services. The findings also demonstrate that users' decision-making is profoundly affected by changes in incentives, highlighting the importance of incentive settings in enhancing user engagement and system performance. ...

Incorporating task buffering and dynamic batching strategies

Journal article (2024) - Miaojia Lu, Xinyu Yan, Shadi Sharif Azadeh, Pengling Wang
The volume of instant delivery has witnessed a significant growth in recent years. Given the involvement of numerous heterogeneous stakeholders, instant delivery operations are inherently characterized by dynamics and uncertainties. This study introduces two order dispatching strategies, namely task buffering and dynamic batching, as potential solutions to address these challenges. The task buffering strategy aims to optimize the assignment timing of orders to couriers, thereby mitigating demand uncertainties. On the other hand, the dynamic batching strategy focuses on alleviating delivery pressure by assigning orders to couriers based on their residual capacity and extra delivery distances. To model the instant delivery problem and evaluate the performances of order dispatching strategies, Adaptive Agent-Based Order Dispatching (ABOD) approach is developed, which combines agent-based modelling, deep reinforcement learning, and the Kuhn-Munkres algorithm. The ABOD effectively captures the system's uncertainties and heterogeneity, facilitating stakeholders learning in novel scenarios and enabling adaptive task buffering and dynamic batching decision-makings. The efficacy of the ABOD approach is verified through both synthetic and real-world case studies. Experimental results demonstrate that implementing the ABOD approach can lead to a significant increase in customer satisfaction, up to 275.42%, while simultaneously reducing the delivery distance by 11.38% compared to baseline policies. Additionally, the ABOD approach exhibits the ability to adaptively adjust buffering times to maintain high levels of customer satisfaction across various demand scenarios. As a result, this approach offers valuable support to logistics providers in making informed decisions regarding order dispatching in instant delivery operations. ...
Journal article (2024) - Dongyang Xia, Jihui Ma, Sh Sharif Azadeh
Integrating emerging shared mobility with traditional fixed-line public transport is a promising solution to the mismatch between supply and demand in urban transportation systems. The advent of modular vehicles (MVs) provides opportunities for more flexible and seamless intermodal transit. The MVs, which have been implemented, are comprised of automated modular units (MUs), and can dynamically change the number of MUs comprising them at different times and stops. However, this innovative intermodal urban transit brings with it a new level of dynamism and uncertainty. In this paper, we study the problem of jointly optimizing the timetable and the vehicle schedule within an intermodal urban transit network utilizing MVs within the context of distributionally robust optimization (DRO), which allows MVs to dynamically (de)couple at each stop and permits flexible circulations of MUs across different transportation modes. We propose a DRO formulation to explore the trade-off between operators and passengers, with the objective of minimizing the worst-case expectation of the weighted sum of passengers’ and operating costs. Furthermore, to address the computational intractability of the proposed DRO model, we design a discrepancy-based ambiguity set to reformulate it into a mixed-integer linear programming model. In order to obtain high-quality solutionss of realistic instances, we develop a customized decomposition-based algorithm. Extensive numerical experiments demonstrate the effectiveness of the proposed approach. The computational results of real-world case studies based on the operational data of Beijing Bus Line illustrate that the proposed integrated timetabling and vehicle scheduling method reduces the expected value of passengers’ and operating costs by about 6% in comparison with the practical timetable and fixed-capacity vehicles typically used in the Beijing bus system. ...
Journal article (2023) - Rongge Guo, Saumya Bhatnagar, Wei Guan, Mauro Vallati, Shadi Sharif Azadeh
This paper presents a novel framework for customised modular bus systems that leverages travel demand prediction and modular autonomous vehicles to optimise services proactively. The proposed framework addresses two prediction scenarios with different forward-looking operations: optimistic operation and pessimistic operation. A mixed integer programming model in a space-time-state network is developed for the optimistic operation to determine module routes, schedules, formations and passenger-to-module assignments. For the pessimistic case, a two-stage optimisation procedure is introduced. The first stage involves two formulations (i.e., deterministic and robust) to generate cost-saving plans, and the second stage adapts plans with control strategies periodically. A Lagrangian heuristic approach is proposed to solve formulations efficiently. The performance of the proposed framework is evaluated using smartcard data from Beijing and two state-of-the-art machine learning algorithms. Results indicate that the proposed framework outperforms the real-time approach in operating costs and highlights the role of module capacity and time dependency. ...
Journal article (2023) - Dongyang Xia, Jihui Ma, Sh. Sharif Azadeh, Wenyi Zhang
The collaborative design of the timetable and dynamic-capacity allocation plan of emerging modular vehicles (MVs) is a promising solution to the mismatch between supply and demand in public transportation studies; however, such efforts are subject to high-level dynamics and uncertainty inherent in operating environments. In this study, we focus on the timetabling and dynamic-capacity allocation problem of MVs within the context of distributionally robust optimization under time-dependent demand uncertainty. The dynamic capacity refers to the number of modular units (MUs) comprising an MV can be potentially changed at different times and stops. A Wasserstein distance-based ambiguity set with a time-dependent and station-wise perturbation parameter is adopted to incorporate all potential distributions within a 1-Wasserstein distance for addressing the uncertainty of passenger demand. Further, a data-driven distributionally robust optimization model that considers time-varying capacity is formulated to minimize passenger waiting costs and dispatching costs of operators over all possible demand distributions within the ambiguity set. Subsequently, an expansion that allows for flexible formations of MVs assigned to each trip at each stop is proposed, and this results in more customized operational plans driven by the passenger demand. To improve the computational efficiency of realistic problems, we design a customized integer L-shaped method to exactly solve the models, which incorporates a class of valid equalities to further speed up the computation. The effectiveness of the proposed approaches in reducing the costs for both passengers and operators compared with the practical fixed-capacity operations is verified by real-world case studies based on the operating data of Beijing Bus Line 468. Furthermore, the superiority of the distributionally robust optimization method in comparison to the stochastic programming and the robust optimization approaches is demonstrated. ...