Introduction
Combinatorial optimization problems in logistics, scheduling, and resource allocation are traditionally solved using Mixed-Integer Linear Programming (MILP). However, these models often suffer from an "objective mismatch": a model that accurately predicts parameters (e.g., travel times) may not lead to the best operational decisions when solved in isolation from the real-world environment.
Reinforcement Learning (RL) offers a path to learn policies directly from environmental feedback. However, standard model-free RL struggles with the hard constraints inherent in combinatorial problems and lacks the interpretability of mathematical programming. CORL (Combinatorial Optimization Reinforcement Learning) bridges this gap by treating the MILP solver itself as a differentiable component within an RL loop.
The CORL Framework
The core innovation of CORL is the transformation of the Branch-and-Bound (B&B) tree into a differentiable stochastic policy. This allows the framework to fine-tune MILP parameters ($\theta$) to optimize for actual performance rather than just predictive accuracy.
B&B as a Stochastic Policy
Standard MILP solvers are deterministic and non-differentiable. CORL overcomes this by defining a probability distribution over the nodes in a B&B tree. By applying a softmax over the objective values (lower bounds) of explored nodes—including both leaf nodes and "pruned" nodes representing unexplored subtrees—the solver becomes a stochastic agent capable of exploration.
Sampling Heuristics and Gradient Estimation
To select a concrete action ($a_t$) from a pruned node, which represents a region of the solution space, the authors propose two heuristics:
- Uniform Sampling: Treating all feasible integer decisions in that subtree as equally likely.
- Nearest-Neighbor Sampling (NNS): Sampling decisions close to the fractional solution of the node using a Manhattan distance-based softmax.
To update the model parameters, CORL utilizes the Envelope Theorem on the partial Lagrangian of the MILP subproblems. This allows the calculation of gradients with respect to $\theta$ without needing to differentiate through the discrete "argmin" operator, bypassing a major hurdle in decision-focused learning.
Experimental Evaluation
The framework was validated using a synthetic multi-stage combinatorial sequential decision-making problem. The environment featured linear stochastic transitions and integer constraints, with "slack variables" used to handle soft constraints via penalties.
Key Results
- Convergence and Robustness: Across five different random seeds, the CORL agent successfully learned from experience, with episodic costs consistently decreasing and converging.
- Heuristic Comparison: The Nearest-Neighbor Sampling (NNS) method significantly outperformed uniform sampling. NNS proved more robust and less noisy, allowing the agent to achieve higher returns earlier in the training process.
- Tree Collapse: A qualitative analysis of the B&B tree during training revealed a "tree collapse" phenomenon. As the agent converged toward an optimal policy, the number of nodes in the B&B tree shrank, indicating the policy was becoming more confident and deterministic.
Conclusion and Future Work
CORL demonstrates that it is possible to train MILP models end-to-end using RL by viewing the B&B process as a map of the decision space. This approach preserves the explainability and constraint-satisfaction properties of MILPs while gaining the adaptive power of RL.
Future research will focus on reducing the computational cost of solving an MILP at every RL step. Potential solutions include "warm-starting" solvers or using local policy approximations. Additionally, the authors aim to integrate CORL with commercial-grade solvers like Gurobi or CPLEX to enable its application to large-scale, real-world industrial problems.
Summary updated