corl: Reinforcement Learning of MILP Policies Solved via Branch-and-Bound

Akhil S. Anand, Elias Aarekol, Martin Mziray Dalseg, Magnus Stålhane, Sebastien Gros

TL;DR

CORL (Combinatorial Optimization Reinforcement Learning) is a new framework that fine-tunes Mixed-Integer Linear Program (MILP) models directly using Reinforcement Learning to maximize real-world performance. By casting the Branch-and-Bound (B&B) solver as a differentiable stochastic policy, the authors bridge the gap between traditional combinatorial optimization and modern end-to-end learning.

What Problem Does This Paper Address?

In Operations Research, we typically solve combinatorial problems (like scheduling or logistics) by building a Mixed-Integer Linear Program (MILP) that mimics the real world and then solving it. However, there is often an "objective mismatch": a model that is highly accurate at predicting data might not actually lead to the best decisions in a stochastic, messy environment.

While Reinforcement Learning (RL) can learn optimal policies directly from experience, "model-free" RL often struggles with hard constraints, lacks explainability, and requires massive amounts of data. On the other hand, existing "Decision Focused Learning" (DFL) methods that try to train MILPs often rely on simplified surrogates or assume they have access to an "oracle" that knows the true optimal decisions.

The authors address the challenge of how to fine-tune the parameters of an MILP model end-to-end using RL, ensuring the resulting decisions are optimized for actual operational performance rather than just model accuracy.

Methods

The core innovation of CORL is treating the Branch-and-Bound (B&B) tree as a differentiable stochastic policy.

  1. Stochastic Policy from B&B: Standard MILP solvers are deterministic and non-differentiable. CORL overcomes this by defining a probability distribution over the nodes in a B&B tree. It uses a softmax over the objective values (lower bounds) of all explored nodes (both leaf nodes and "pruned" nodes that represent unexplored subtrees).
  2. Sampling Heuristics: To pick a concrete action from a "pruned" node (which represents a region of the solution space rather than a single point), the authors propose two heuristics:
  3. Uniform Sampling: Treating all feasible integer decisions in that subtree as equally likely.
  4. Nearest-Neighbor Sampling (NNS): Sampling decisions close to the fractional solution of the node using a Manhattan distance-based softmax.
  5. Differentiable Gradients: To update the MILP parameters ($\theta$), the framework needs gradients. The authors use the Envelope Theorem on the partial Lagrangian of the MILP subproblems. This allows them to calculate how the objective value changes with respect to the model parameters without having to differentiate through the discrete "argmin" operator.
  6. Actor-Critic Architecture: They implement this within a standard RL setup where the MILP solver acts as the "Actor" and a neural network serves as the "Critic" to estimate value functions.

Datasets

The paper validates the framework using a synthetic illustrative example:

  • A multi-stage combinatorial sequential decision-making problem.
  • It features linear stochastic transitions, integer constraints, and "slack variables" to handle soft constraints with penalties.
  • The environment is governed by a linear stochastic transition function with normally distributed disturbances.
  • The authors generated 5 different random seeds to test the robustness of the learning process.

Key Insights and Ideas

  • The B&B Tree as an Exploration Tool: Instead of just looking at the final "optimal" solution, CORL views the entire B&B tree as a map of the decision space. Pruned nodes aren't just discarded; they are treated as "promising regions" for the RL agent to explore.
  • Preserving Structure: Unlike pure neural network policies, CORL maintains the MILP structure. This means the policy remains explainable and inherently respects the mathematical constraints of the problem.
  • Bypassing Non-Differentiability: By using the envelope theorem on the Lagrangian of subproblems, the authors found a mathematically sound way to get gradients out of a discrete solver.

Key Results

  • Convergence: The experiments showed that the CORL agent successfully learned from data, with episodic costs decreasing and converging across all test seeds.
  • NNS vs. Uniform: The Nearest-Neighbor Sampling (NNS) method significantly outperformed uniform sampling. It was more robust, less noisy, and achieved higher returns earlier in the training process.
  • Tree Collapse: A fascinating qualitative result was that as the agent converged toward an optimal policy, the "solution set" (the number of nodes in the B&B tree) shrank. Eventually, the tree collapsed toward a single element, indicating the policy was becoming more confident and deterministic.

Limitations and Future Work

  • Computational Overhead: Solving an MILP at every single step of an RL training loop is computationally expensive. The authors suggest that future work should look into "warm-starting" solvers or using local policy approximations to speed things up.
  • Sampling Biases: The current node-sampling method can be biased (either too optimistic or too pessimistic). Refining how the agent explores the B&B tree is a key area for improvement.
  • Scale: This was a "proof-of-concept" on a relatively simple linear problem. The next step is to test CORL on large-scale, non-linear real-world combinatorial problems.
  • Integration: The authors aim to integrate this framework with commercial-grade MILP solvers (like Gurobi or CPLEX) to make it practical for industry use.

Summary updated

BibTeX
@inproceedings{anand2026corl,
  author = {Akhil S. Anand and Elias Aarekol and Martin Mziray Dalseg and Magnus Stålhane and Sebastien Gros},
  title = {{corl: Reinforcement Learning of MILP Policies Solved via Branch-and-Bound}},
  booktitle = {CPAIOR},
  year = {2026},
  doi = {10.1007/978-3-032-27242-3\_2},
}
Figure