Skip to content
@rssched

Rolling Stock Scheduling

Innosuisse project (SBB & ETHZ) to design highly efficient algorithms for optimizing rolling stock schedules.
  • Switzerland

Rolling Stock Scheduling (RSSched)

How will Switzerland’s mobility landscape look in 20 to 30 years? Undoubtedly, train service will continue to play a central role, but perhaps entirely new types of trains will operate on the Swiss rail network. Certainly, sophisticated optimization algorithms will ensure that future schedules are used as efficiently as possible by minimizing costs and emissions while satisfying the rising passenger demand.

To explore these questions, the Swiss Federal Railways (SBB) collaborated with the Institute of Operations Research (ETH Zürich) on a year-long research project to design highly efficient algorithms for optimizing rolling stock schedules. The key objectives of this project are to minimize the number of rolling stock vehicles for a given passenger demand and to minimize the total travel distance of deadhead trips (trips without passengers) while satisfying several constraints, such as maintenance regulations.

One of the most important tools for analyzing mobility scenarios is MATSim (Multi-Agent Transport Simulation), which provides a framework for large-scale agent-based transport simulations, combining modules for demand modeling, traffic flow simulation, re-planning, and output analysis. The railsim contribution within MATSim simulates realistic train operations, addressing aspects like spatial train expansion across multiple links, speed dynamics (acceleration/deceleration), and capacity effects at the resource level.

Based on this framework, the result of this successful collaboration consists of three software packages:

  1. Rolling Stock Scheduling Optimization Algorithm (or "Solver") – This multi-layered algorithm, developed by ETH, is written in Rust to achieve the highest performance. An input instance, provided via a predefined interface, consists of location data, including travel times and distances for deadhead trips, routes and departures, depots with capacities, fleet type information, and maintenance slots and regulations. Powered by classical algorithms (e.g., network-simplex to solve a batch of min-cost-circulation problems) and newly developed local-search-based meta-heuristics, this solver produces a rolling stock schedule that:

    • covers all service trips to meet passenger demand

    • meets maintenance regulations

    • minimizes the number of train vehicles needed

    • minimizes the total distance traveled to reduce costs and emissions

    This presentation contains a good overview of the optimization algorithm.

  2. MATSim Connector – SBB developed this pipeline algorithms written in Java to connect the simulation environment and the Solver. For analyzing future mobility scenarios in Switzerland, SBB uses MATSim simulations to create a realistic passenger demand. The pipeline transforms the standard output files of a MATSim simulation run into an input instance for the solver. As the solver input is a macroscopic view, multiple aspects must be transformed in this preprocessing step.

  3. Analysis and Visualization – To analyze the output of the Solver, SBB developed a visualization tool written in Python. This tool not only allows for the analysis of a rolling stock schedule on an intuitive/visual basis but also provides a sequence of key performance indicators, such as the total deadhead trip distance, the load over the day, and vehicle utilization.

All three parts work seamlessly with each other and can be integrated into SBB's MATSim simulation environment. The code is well tested and documented, and several realistic large-scale instances were successfully tested and analyzed.

It is planned to use the railsim contribution to validate the feasibility of the calculated schedule solutions at an operational level with given infrastructure.

schedule

Getting Started

Follow this step-by-step instruction to

  1. start the solver-server in a docker container

  2. use a MATSim run output (for example the publicly available matsim-kelheim instance) to produce a solver-request and send it to the solver-server to obtain a schedule as response

  3. visualize the schedule for analysis

Pinned Loading

  1. rssched-solver rssched-solver Public

    Rolling Stock Scheduling Optimization Algorithm

    Rust 2

  2. rssched-matsim-client rssched-matsim-client Public

    Convert MATSim simulation outputs to rolling stock scheduling service requests.

    Java 1

  3. rssched-analysis rssched-analysis Public

    Analysis and visualization of results from the scheduler service.

    Python 1

Repositories

Showing 4 of 4 repositories
  • rssched-analysis Public

    Analysis and visualization of results from the scheduler service.

    rssched/rssched-analysis’s past year of commit activity
    Python 1 MIT 0 0 0 Updated Nov 29, 2024
  • rssched-matsim-client Public

    Convert MATSim simulation outputs to rolling stock scheduling service requests.

    rssched/rssched-matsim-client’s past year of commit activity
    Java 1 GPL-3.0 0 0 0 Updated Nov 29, 2024
  • rssched-solver Public

    Rolling Stock Scheduling Optimization Algorithm

    rssched/rssched-solver’s past year of commit activity
    Rust 2 GPL-3.0 0 0 0 Updated Oct 29, 2024
  • .github Public
    rssched/.github’s past year of commit activity
    0 0 0 0 Updated Jun 22, 2024

Top languages

Loading…

Most used topics

Loading…