NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Solving Mixed Integer Programs Using Neural Networks

Vinod Nair, Sergey Bartunov, Felix Gimeno, Ingrid von Glehn, Pawel Lichocki, Ivan Lobov, Brendan O'Donoghue, Nicolas Sonnerat, Christian Tjandraatmadja, Pengming Wang, Ravichandra Addanki, Tharindi Hapuarachchi, Thomas Keck, James Keeling, Pushmeet Kohli, Ira Ktena, Yujia Li, Oriol Vinyals, Yori ZwolsarXiv 2020

Abstract

Mixed Integer Programming (MIP) is a fundamental tool for solving complex logistical and industrial optimization problems. While classical solvers rely on hand-crafted heuristics to navigate exponentially large search spaces, these generic approaches often fail to exploit the repetitive structure of real-world problem instances. This paper introduces a "Neural Solver" that augments the branch-and-bound algorithm with deep learning. By replacing traditional heuristics with Neural Diving for variable assignment and Neural Branching for variable selection, the proposed method achieves up to a 10,000x improvement in optimality gaps and significant speedups on large-scale industrial datasets.

Introduction

Mixed Integer Programs (MIPs) are a class of NP-hard optimization problems essential for managing power grids, routing logistics, and packing data centers. Classical solvers like SCIP, CPLEX, and Gurobi use complex heuristics to guide their search. However, these heuristics are designed for general-purpose use and do not adapt to the specific distributions of problems encountered in practice. This research explores whether machine learning can be used to discover application-specific heuristics from historical data, thereby customizing solvers for recurring real-world tasks.

Methodology: The Neural MIP Solver

The authors propose a hybrid approach that integrates deep learning into the open-source SCIP solver. The core idea is to represent MIPs as bipartite graphs—where variables and constraints form two distinct sets of nodes—and process them using Graph Convolutional Networks (GCNs).

Overview of the Neural MIP Solver architecture, illustrating the training pipeline and the integration of Neural Diving and Neural Branching into the solver.

The system consists of two primary neural components:

  1. Neural Diving: A learned primal heuristic that uses a generative model to predict high-quality partial assignments for integer variables. By fixing these variables, the solver focuses on a smaller, more manageable sub-MIP. The generative nature of the model allows for parallel sampling of multiple diverse sub-problems.
  2. Neural Branching: A policy trained via imitation learning to mimic "Full Strong Branching" (FSB), an effective but computationally expensive variable selection strategy.

To overcome the bottleneck of generating training data for large-scale MIPs, the researchers developed a GPU-accelerated batch Linear Programming (LP) solver using the Alternating Direction Method of Multipliers (ADMM). This innovation allowed for the generation of expert training data orders of magnitude faster than traditional CPU-based methods.

Experimental Evaluation

The Neural Solver was evaluated on a diverse set of large-scale datasets, including Google production packing, electric grid optimization, and neural network verification.

Performance comparison between the Neural Solver and a tuned SCIP baseline across various real-world datasets, showing significant reductions in the primal-dual gap over time.

The results demonstrate substantial improvements over a heavily tuned SCIP baseline:

  • Gap Reduction: The combined Neural Solver achieved gap reductions of 1.5x, 2x, and up to 10,000x on the largest datasets.
  • Efficiency: On Google Production Packing, the solver reached a 10% optimality gap five times faster than the baseline.
  • Generalization: Surprisingly, the model also improved performance on MIPLIB, a heterogeneous benchmark, suggesting that the learned heuristics capture fundamental structural properties of MIPs beyond specific domains.

Conclusion and Future Work

The integration of neural networks into MIP solvers represents a significant step toward automated, data-driven optimization. While Neural Diving excels at finding high-quality solutions quickly, future work aims to improve end-game optimality through reinforcement learning. Additionally, applying similar graph-based learning to "cutting planes" could further enhance the efficiency of modern solvers. By leveraging historical data, the Neural Solver transforms optimization from a static search into a learning process that improves with experience.

Summary updated

BibTeX
@misc{nair2020solving,
  author = {Vinod Nair and Sergey Bartunov and Felix Gimeno and Ingrid von Glehn and Pawel Lichocki and Ivan Lobov and Brendan O'Donoghue and Nicolas Sonnerat and Christian Tjandraatmadja and Pengming Wang and Ravichandra Addanki and Tharindi Hapuarachchi and Thomas Keck and James Keeling and Pushmeet Kohli and Ira Ktena and Yujia Li and Oriol Vinyals and Yori Zwols},
  title = {{Solving Mixed Integer Programs Using Neural Networks}},
  year = {2020},
  eprint = {2012.13349},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.13349},
}
Figure