Dynamic Railway Simulation Model for the Port of Paranaguá

Dynamic Railway Simulation Model for the Port of Paranaguá

Problem:

Rumo needed to evaluate the performance and future capacity of a highly complex railway system with stochastic train arrivals, route conflicts, wagon blocking operations, and shared infrastructure.

Solution:

Paragon developed a dynamic simulation model in AnyLogic representing the railway logistics process inside the port of Paranaguá. The model integrated Excel-based scenario management, configurable rail layouts, route reservation logic, KPI tracking, and parallel scenario execution to support flexible operational and strategic analysis.

Results:

  • Identified bottlenecks, route conflicts, and railway capacity constraints before implementation.
  • Accelerated strategic analysis through parallel scenario execution and replication management.
  • Supported collaborative decision-making for long-term railway and port expansion planning.

Introduction: railway infrastructure at the core of port operations

Brazil is one of the world’s largest exporters of agricultural commodities, and its ports play a critical role in global grain and sugar supply chains. Among them, the Port of Paranaguá stands out as one of Latin America’s most important bulk cargo gateways. It handles more than 21 million tons of grain and sugar exports annually and ranks as Brazil’s second-largest port for these commodities.

At the same time, growing export demand, terminal expansion projects, and new quay developments are placing increasing pressure on the railway infrastructure that feeds the port.

Problem: a highly complex stochastic system

Rumo, the largest railway operator in the country, is responsible for managing the rail network within the Port of Paranaguá. Every day, trains arriving from Rumo’s network come over different routes. Overall, operations within the port railway complex involve many interdependent activities, such as:

Screenshot of a map showing the railway system within the port complex with a map legend

A map showing the railway system within the port complex (click to enlarge)

These activities create a highly stochastic system where train arrivals, wagon distributions, route availability, and terminal capacities continuously interact. Small variations in these factors can quickly spread across the system, creating operational bottlenecks.

Traditional analytical tools could no longer capture operational variability and resource conflicts affecting system performance.

Rumo needed a solution capable of:

A visual with Rumo’s requirements for this project

Rumo’s requirements for this project (click to enlarge)

Solution: dynamic simulation model

Rumo partnered with Paragon, a consulting firm specializing in decision-making. Together, they decided to use simulation technology to address the needs of the port railway system. They developed a dynamic railway simulation model in AnyLogic that represented the full rail logistics process inside the Port of Paranaguá.

The consulting company used Process Modeling Library elements to create a flexible and scalable simulation, focused on the following activities:

One of the most complex modeling tasks was representing train arrival and dispatch logic, especially because wagon blocks could not always be split freely. The model had to respect operational rules around train composition and wagon separation.

The key design objective of the model was flexibility. Instead of creating a static network layout, Paragon modeled track segments as configurable agents that were dynamically generated from Excel-based layout definitions. This dynamic simulation approach allowed users to modify the railway topology, routes, and infrastructure without changing the simulation code itself.

The project also focused on usability for operational teams. Input data was managed through Excel spreadsheets containing train schedules, locomotive counts, processing times, layouts, routes, terminal capacities, and maintenance parameters.

Spreadsheets were converted to CSV files, which were read directly in AnyLogic. Simulation outputs could be exported back to CSV for further visualization and analysis in Power BI.

A visual with explanation of data integration for the dynamic simulation

Data integration for the dynamic simulation (click to enlarge)

To accelerate analysis, the team implemented functionality for queuing and running multiple scenarios and replications in parallel. Users could configure batches of scenarios, execute them simultaneously, and compare results efficiently across alternative investment or operational strategies.

Screenshot of a dynamic simulation model for the railway complex

Dynamic simulation model for the railway complex (click to enlarge)

Results: a risk-free decision support environment

The dynamic simulation model provided Rumo with a test environment capable of evaluating both operational and long-term strategic questions. This model was intentionally designed as a collaborative planning tool. This decision ensured that operational teams could understand, interpret, and apply the simulation results in real-world railway operations. Using defined KPIs, stakeholders could compare scenarios and identify bottlenecks, resource conflicts, and infrastructure limitations before making investment decisions.

The project delivered several important benefits:

Read another case study from Rumo to find out how the company makes informed decisions on train types, routing, and network expansion with the help of simulation.


The team also identified several opportunities for future model expansion, including:

The case study was presented by Luiz Gustavo Schmitt and Vinícius Freitas at the AnyLogic Conference 2025.

The slides are available as a PDF.


Similar case studies

More case studies

Get a brochure with industry case studies

Download