Abstract
Dynamic scheduling in real-world environments often struggles to adapt to unforeseen disruptions, making traditional static scheduling methods and human-designed heuristics inadequate. This paper introduces an innovative approach that combines Genetic Programming (GP) with a Transformer trained through Reinforcement Learning (GPRT), specifically designed to tackle the complexities of dynamic scheduling scenarios. GPRT leverages the Transformer to refine heuristics generated by GP while also seeding and guiding the evolution of GP. This dual functionality enhances the adaptability and effectiveness of the scheduling heuristics, enabling them to better respond to the dynamic nature of real-world tasks. The efficacy of this integrated approach is demonstrated through a practical application in container terminal truck scheduling, where the GPRT method outperforms traditional GP, standalone Transformer methods, and other state-of-the-art competitors. The key contribution of this research is the development of the GPRT method, which showcases a novel combination of GP and Reinforcement Learning (RL) to produce robust and efficient scheduling solutions. Importantly, GPRT is not limited to container port truck scheduling; it offers a versatile framework applicable to various dynamic scheduling challenges. Its practicality, coupled with its interpretability and ease of modification, makes it a valuable tool for diverse real-world scenarios.
Introduction
Scheduling in industrial environments is a "moving target." Unlike static theoretical models, real-world operations—such as those in container ports—are frequently disrupted by machine failures, sudden weather changes, and urgent last-minute job arrivals.
Traditional approaches to these dynamic challenges generally fall into two categories, both of which possess significant drawbacks:
- Human-designed heuristics: These rules are transparent and dependable but often lack the efficiency required for modern operations because they cannot adapt to rapidly evolving system dynamics.
- Pure Machine Learning (RL): While deep Reinforcement Learning (RL) models are powerful, they are often "black boxes." Industrial operators are frequently reluctant to trust systems they cannot interpret or manually override in critical situations.
This research introduces GPRT, a hybrid framework designed to bridge this gap by creating a system that is both high-performing and fully interpretable.
Methodology
The core innovation of the GPRT framework is the treatment of scheduling rules as symbolic expressions. These expressions can be represented in two complementary ways: as a tree structure for Genetic Programming (GP) or as a sequence of tokens in Polish notation for a Transformer model.
The GPRT Framework
- Genetic Programming (GP): GP is utilized to evolve tree-based heuristics. It excels at global search, exploring a wide variety of feasible solutions within the symbolic space.
- Transformer Decoder: A Transformer model is trained using Reinforcement Learning (specifically Vanilla Policy Gradient) to predict the next token in a heuristic sequence. This allows the model to refine existing rules or generate high-quality "seeds" for the initial GP population.
- The Hybrid Loop: The Transformer generates an initial population of high-quality heuristics, giving the GP process a massive head start. GP then evolves these further. Crucially, the data generated during GP's evolution is fed back to the Transformer to improve its training, creating a reciprocal learning cycle.
By using the Transformer as a bridge, the system overcomes the primary weakness of GP (slow local search and refinement) and the primary weakness of RL (lack of interpretability).
Experimental Setup
The authors validated GPRT using historical operational data from the Ningbo Meishan Port, one of the world's largest container hubs. The dataset included 20 days of actual operational data, split into 10 training and 10 test sets, each containing 4,000 individual tasks. An event-driven simulator modeled the port's dynamics, incorporating 14 environmental features such as truck travel times, crane statuses, and queue lengths.
Results and Discussion
GPRT demonstrated clear superiority over manual heuristics, standalone GP, and standalone RL methods across several metrics:
- Throughput Performance: In training, GPRT achieved an 18.77% improvement in TEU (Twenty-foot Equivalent Unit) per hour over manual heuristics. On unseen test data, it maintained a 16.14% improvement, significantly outperforming standard GP (7.36%).
- The "Symbolic Bridge": Converting GP trees into Polish notation allows symbolic AI to communicate with deep learning. This enables the Transformer to "read" and "write" human-readable mathematical logic.
- Attention and Logic: The research found that Transformers significantly outperform RNNs in this context because the self-attention mechanism captures long-range dependencies in nested logic, such as
IF-THEN-ELSEblocks.
- Interpretability and Conciseness: GPRT produced heuristics that were not only more effective but also shorter (fewer tokens) than those produced by standard GP, directly improving interpretability for port operators.
Conclusion
GPRT represents a significant step forward in combining the global search capabilities of Genetic Programming with the predictive power of Transformers. While the implementation is more complex than single-algorithm approaches, the gains in throughput and the maintenance of symbolic interpretability make it highly suitable for real-world industrial deployment. Future work will explore applying this framework to other domains, such as AGV routing in warehouses and job-shop scheduling in manufacturing.
Summary updated