Learning to Branch in Mixed Integer Programming

Elias Boutros Khalil, Pierre Le Bodic, Le Song, George L. Nemhauser, Bistra Dilkina

Introduction

Mixed Integer Programming (MIP) is a fundamental tool for industrial scheduling, logistics, and resource allocation. Solving these problems typically involves a Branch-and-Bound search tree. A critical decision at every node in this tree is variable selection: which variable should be "branched" on next?

Historically, solvers have faced a trade-off between Strong Branching (SB) and Pseudocost (PC) Branching. SB produces small, efficient trees by exhaustively testing candidates but is computationally expensive because it solves multiple sub-problems at every node. PC is fast per node but often results in massive, inefficient search trees. This paper introduces a machine learning framework that learns instance-specific branching strategies on-the-fly, aiming to combine the node efficiency of SB with the speed of simpler heuristics.

Methodology

The authors propose a three-phase, on-the-fly learning framework that treats variable selection as a learning-to-rank problem rather than a regression task.

  1. Data Collection: For the initial $\theta$ nodes (e.g., 500) of the search, the solver utilizes the expensive Strong Branching method. It records SB scores for candidate variables and extracts 72 "atomic" features.
  2. Model Learning: The solver learns to rank "good" variables (those within 20% of the best SB score) above "bad" ones using SVMrank with a polynomial kernel to capture feature interactions.
  3. ML-based Branching: For the remainder of the search, the solver switches to the learned model. It computes features for candidates, scores them with the fast SVM model, and branches on the winner.
Summary of the 72 features used for learning-to-rank branching decisions, categorized into static and dynamic types.

This approach is instance-specific, allowing the solver to adapt to the unique structure of the problem currently being solved rather than relying on manually tuned, input-agnostic heuristics.

Experimental Setup

The framework was evaluated using the MIPLIB 2010 "Benchmark" set, comprising 87 challenging instances across various real-world applications. After excluding a few infeasible instances, a testbed of 84 instances remained. Each instance was run with 10 different random seeds to ensure statistical robustness.

Results

The proposed method, SB+ML, was compared against CPLEX’s default solver (CPLEX-D) and several standard heuristics including SB, PC, and a hybrid SB+PC approach.

Performance comparison across unsolved instances, node counts, and total solution time for various branching strategies.
  • Node Efficiency: SB+ML demonstrated significant improvements in search tree size, using 36% fewer nodes than Pseudocost branching and 16% fewer nodes than the hybrid SB+PC approach.
  • Computational Time: On "Medium" and "Hard" instances, SB+ML outperformed Pseudocost branching by 28% and 14%, respectively. Despite the overhead of feature computation, the massive reduction in node count made it competitive with state-of-the-art commercial solvers.
  • Robustness: SB+ML solved more instances within the time limit than any other tested heuristic, second only to the highly optimized CPLEX-D.

Discussion and Key Insights

A primary finding of this research is that Ranking > Regression. Framing variable selection as a bipartite ranking problem makes the learning task easier and more robust. Furthermore, the use of a degree-2 polynomial kernel allows the model to capture interactions between structural features (like constraint degrees) and dynamic search features (like current pseudocosts).

The utility of the model is highly instance-specific. The researchers observed a low correlation (0.16) between models learned for different instances, confirming that universal branching rules are often suboptimal. Unlike previous offline ML approaches that required massive training sets, this "cold start" on-the-fly method is more practical for general-purpose solvers.

Limitations and Future Work

Current limitations include a fixed training period ($\theta = 500$), which may not be optimal for all problems, and the computational overhead of feature extraction. Future research could explore integrating this framework into other MIP components like node selection or cutting plane management, or evolving the batch-learning approach into a continuous online learning setup.

Summary updated

BibTeX
@inproceedings{khalil2016learning,
  author = {Elias Boutros Khalil and Pierre Le Bodic and Le Song and George L. Nemhauser and Bistra Dilkina},
  title = {{Learning to Branch in Mixed Integer Programming}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2016},
  doi = {10.1609/aaai.v30i1.10080},
}
Figure