Abstract
This paper offers a methodological contribution at the intersection of machine learning and operations research. Namely, we propose a methodology to quickly predict expected tactical descriptions of operational solutions (TDOSs). The problem we address occurs in the context of two-stage stochastic programming where the second stage is demanding computationally. We aim to predict at a high speed the expected TDOS associated with the second stage problem, conditionally on the first stage variables. This may be used in support of the solution to the overall two-stage problem by avoiding the online generation of multiple second stage scenarios and solutions. We formulate the tactical prediction problem as a stochastic optimal prediction program, whose solution we approximate with supervised machine learning. The training dataset consists of a large number of deterministic operational problems generated by controlled probabilistic sampling. The labels are computed based on solutions to these problems (solved independently and offline), employing appropriate aggregation and subselection methods to address uncertainty. Results on our motivating application on load planning for rail transportation show that deep learning models produce accurate predictions in very short computing time (milliseconds or less). The predictive accuracy is close to the lower bounds calculated based on sample average approximation of the stochastic prediction programs.
Introduction
In many industrial sectors, such as rail transportation and logistics, managers must make high-stakes "tactical" decisions based on "operational" constraints that are only fully realized later. For instance, a rail manager might need to decide whether to accept a cargo booking (tactical) without knowing exactly how those containers will be arranged on a train or their precise final weights (operational).
This challenge is traditionally modeled as two-stage stochastic programming. The first stage involves the tactical decision, while the second stage addresses the operational problem—often an NP-hard task like bin packing. Solving these problems in real-time is hindered by two factors: the extreme computational cost of Integer Linear Programming (ILP) solvers and the inherent uncertainty of the data. This paper proposes a hybrid methodology that leverages deep learning to predict summaries of optimal solutions, providing tactical guidance in milliseconds rather than minutes.
The TDOS Methodology
The core innovation of this research is the concept of the Tactical Description of Operational Solution (TDOS). Rather than attempting to predict the full, complex solution of an operational problem (e.g., the exact coordinates of every container on a train), the authors propose predicting a simplified summary. This summary contains only the essential information required to inform the tactical stage, such as the total number of containers loaded or the number of railcars utilized.
The proposed methodology follows a four-step pipeline:
- Data Generation: A large volume of operational problem instances is sampled under "perfect information" scenarios where all variables are known.
- Labeling: These instances are solved offline using an exact ILP solver (such as IBM ILOG CPLEX). The solutions are then synthesized into TDOS labels.
- Machine Learning Training: Deep learning models, specifically Multilayer Perceptrons (MLPs), are trained to map tactical-level inputs directly to the expected TDOS.
- Aggregation under Uncertainty: To account for imperfect information (like unknown container weights), the models are trained to minimize Mean Squared Error (MSE). This mathematical approach forces the model to learn the expected value of the solution summary across the distribution of unknown variables, effectively "baking" the stochasticity into the neural network's weights.
Experimental Setup: Load Planning Problem
The methodology was tested on the Load Planning Problem (LPP) for double-stack railcars, using synthetic datasets based on historical distributions from an industrial partner. The data was categorized into four classes (A through D) based on problem size and complexity:
- Class A: Up to 150 containers (simplest).
- Class D: Up to 300 containers and 100 platforms (hardest).
Two specific neural architectures were evaluated: ClassMLP, which treats the output as discrete probability distributions using softmax, and RegMLP, a standard regression model that outputs continuous scalars rounded to the nearest integer.
Key Insights and Results
Computational Efficiency
The most striking result is the speed of the machine learning approach. While the ILP solver required a median of 0.48 seconds for simple cases and over 5.44 seconds for complex ones (with some instances taking significantly longer), the ML models delivered predictions in less than 1 millisecond. This represents a speedup of several orders of magnitude, making real-time tactical decision support feasible.
Predictive Accuracy
Despite the speed, the models maintained high accuracy. The predictive performance of the deep learning models was remarkably close to the theoretical lower bounds calculated via Sample Average Approximation (SAA). Furthermore, the neural networks significantly outperformed baseline models, including greedy heuristics and linear/logistic regression, suggesting that the relationship between tactical inputs and operational outcomes is highly non-linear.
Generalization and Robustness
The study found that models trained on simpler instances (Class A) generalized surprisingly well to larger, more complex instances (Class D). While accuracy naturally decreased as the problem size diverged from the training set, the models remained robust enough to provide useful tactical insights.
Conclusion and Future Work
This research demonstrates that machine learning can serve as a powerful "expectation engine" for complex operational problems. By focusing on the "what" (the summary) rather than the "where" (the full solution), deep learning models can approximate the results of NP-hard stochastic programs with high fidelity and near-zero latency.
Future research directions include exploring more flexible architectures, such as Pointer Networks or graph-based models, to handle variable-sized inputs and outputs. Additionally, the authors suggest investigating methods to better incorporate explicit physical or logical constraints directly into the machine learning architecture to ensure that every predicted TDOS is strictly feasible.
Summary updated