How Much Can Large Language Models Help Solve MIPs?

Yicheng Huang, Wenzhi Gao, Dongdong Ge, Madeleine Udell, Yinyu YearXiv 2026

TL;DR

Mixed-integer programming (MIP) powers everything from airline crew scheduling to energy grid management, yet hundreds of notoriously tough benchmark problems have stumped commercial optimization solvers for years. By giving a large language model internet access, numerical solvers, and two hours to poke at the underlying math, researchers resolved nearly a quarter of these long-standing open problems. Rather than brute-forcing numbers, LLMs act like automated operations research consultants—uncovering hidden problem structures, inventing custom shortcuts, and occasionally proving optimality with pure mathematical logic.

What Problem Does This Paper Address?

Mixed-integer programming (MIP) is the mathematical workhorse of optimization: you try to minimize a cost function subject to linear constraints, where some variables must be whole numbers. Solving a MIP to optimality is a two-sided pincer movement:

  1. The Primal side: Finding an actual valid configuration (setting an upper bound on the minimum possible cost).
  2. The Dual side: Mathematically certifying that no better configuration can possibly exist (pushing up the lower bound until the two bounds meet).

State-of-the-art commercial solvers (like Gurobi or COPT) pack decades of clever heuristics and "cutting planes" (extra constraints that slice away useless search space without removing valid integer answers). Still, when faced with novel, weird problem structures, general-purpose solvers hit a wall. Historically, breaking through that wall meant hiring human experts with a rare blend of mathematical creativity, algorithm design, and software engineering to hand-craft custom strategies for a single problem. Given LLMs' recent leaps in coding and abstract math, the authors ask: Can LLMs step in and crack open MIPs on their own?

Methods

Instead of training a specialized model, the authors built an agentic workflow (LLM4MIP) around a base model (Codex GPT 5.6-sol) with a remarkably simple prompt: "Please solve the open MIPLIB instance... Try exploiting the instance structure and use solvers sparingly."

The pipeline unfolds in four stages:

  • Initial Screening: The LLM gets 1 hour to scan summary statistics of all open problems, predicting a 0–100 "confidence score" for closing each one and guessing whether to attack the primal or dual side.
  • Structure-Driven Solving: Given a 2-hour wall-clock budget per problem, the LLM can search the internet for background literature, write code, and call commercial/open-source solvers (Gurobi, COPT, OR-Tools) to test sub-problems or reformulations.
  • Validation: Primal solutions are easy to check—just plug the numbers into Gurobi and COPT to see if constraints hold. Dual bounds (proving no better solution exists) are much trickier if they rely on custom math rather than a standard solver run. To verify these, the authors cross-check reasoning across independent LLMs, ask the LLM to formalize proofs in Lean, and perform human mathematical review.
  • Iterative Skill Distillation: Mimicking how human engineers build solvers over time, the team saves the LLM's successful reasoning traces and failed attempts, distilling them into reusable "skill packages" (what structures to look for and how to exploit them) to load into future runs.
Figure 3: Iterative skill distillation.

Datasets

The authors introduce LLM4MIP, an evaluation benchmark built around MIPLIB 2017—the gold-standard public library of real-world MIP instances:

  • 217 Open Instances: Problems from MIPLIB 2017 officially tagged as unsolved (divided into a batch of 132 to build initial skills, and 85 harder ones to apply them).
  • Skill Generalization Set: 20 unseen open instances from the broader MIPLIB collection dataset.
  • Solver-Free Anonymized Set: 20 MIPLIB instances with scrambled rows, columns, and variable names to test pure LLM problem-solving without external MIP solvers or online lookups.

Key Insights and Ideas

  • LLMs possess a surprisingly diverse optimization toolkit: Rather than relying on one trick, the LLM adapted to what each problem needed—running targeted local searches, decomposing massive models, adapting solutions from academic papers, deriving custom cutting planes, or proving bounds via simple counting and geometry (e.g., calculating minimum enclosing square areas).
Breakdown of methods used by the LLM for primal and dual improvements
  • Pure math beats brute computation—sometimes: At least 8 complex open instances (one having over 9.4 million rows and 3.1 million variables) were proven optimal via logical/mathematical certificates without relying on an external MIP solver at all.
  • Good optimization intuition: Even a quick pass over problem metadata let the LLM gauge difficulty. Its solve rate climbed from 17.5% on low-confidence problems to 58.8% on high-confidence ones.
  • Distilled experience transfers: Packaging learned tactics into explicit "skills" meaningfully boosted performance on unseen problems, mirroring how human domain knowledge compounds.
  • Don't throw away your MIP solver: When stripped of MIP solvers on 20 anonymized problems (armed only with NumPy/SciPy), the LLM still solved 9/20, whereas COPT solved 20/20 in less than a third of the average time. LLMs are force multipliers for solvers, not replacements.

Key Results

  • Closing open problems: Out of 217 open MIPLIB instances, the workflow completely resolved 52 instances (24.0%)—proving 49 optimal, 2 infeasible, and 1 unbounded.
  • Broad progress: Even when not fully closing a problem, it found new or improved primal solutions on 59 instances and improved dual bounds on 136 instances (beating a 10-hour COPT baseline).
Summary of results on 217 open MIPLIB instances
  • Skill distillation wins: On 20 unseen open instances (150-minute limit), the skill-equipped LLM beat the base LLM on gap reduction 18 to 2, and beat standalone Gurobi 17 to 2 (with 1 tie), shrinking the optimality gap by an average of 19.28 percentage points over Gurobi.

Limitations and Future Work

  • The Dual Verification Bottleneck: Checking a feasible solution takes milliseconds; verifying an LLM's bespoke mathematical reformulation or counting proof still requires heavy human intervention. Automating formal non-numerical certificates (like Lean integration) is a major frontier.
  • Benchmark Quirkiness: Open MIPLIB problems are outliers by definition—often featuring niche structures where bespoke tricks shine, which may not reflect routine industrial MIPs.
  • Privacy: Handing proprietary supply-chain or financial formulations over to commercial cloud LLMs is a non-starter for many companies.
  • Future Solvers: Rather than monolithic black boxes, future optimization software may feature richer callback interfaces designed specifically so LLM agents and numerical branch-and-cut engines can collaborate seamlessly.

Summary updated

BibTeX
@misc{huang2026how,
  author = {Yicheng Huang and Wenzhi Gao and Dongdong Ge and Madeleine Udell and Yinyu Ye},
  title = {{How Much Can Large Language Models Help Solve MIPs?}},
  year = {2026},
  eprint = {2611.38194},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38194},
}
Figure