Research note

Agentic MIP Solvers: Commercial-Grade Performance from Open-Source Solvers, and What That Means for Solver Design

A single coding agent steering open-source solvers proves 220 of 240 MIPLIB 2017 benchmark instances in 2 hours each, close to the leading commercial solvers. What does that mean for an AI-native optimization solution?

The OptinAGI Team

· 13 min read

Summary

What we did. We gave a single coding agent four open-source solvers (SCIP, HiGHS, OR-Tools CP-SAT, and CaDiCaL) and a computational budget comparable to that of Hans Mittelmann’s public benchmark: 12 vCPUs, 128 GB of RAM, and a 2-hour time limit per instance. We then ran it on anonymized, permuted copies of all 240 MIPLIB 2017 benchmark instances.

What we achieved. The agent solved 220 instances to proven optimality or infeasibility and reached the optimal objective value on 7 additional instances without proving optimality, bringing the total to 227. With the leading commercial solver solving 225 instances in Mittelmann’s benchmark, these results bring agentic MIP solving with open-source solvers close to the forefront of commercial solver performance in terms of proven solve counts. In solve time, however, a substantial gap remains: the agent’s shifted geometric mean (SGM) time is 592 seconds, compared with 71 seconds for the leading commercial solver, a difference we attribute to two main factors: the latency of language-model reasoning, and the performance gap between the underlying open-source solvers and commercial ones.

What it means. How the agent reached these results matters as much as the count. The agent autonomously tailors its solving methodology to each instance, from selecting and steering solvers to reformulating models, devising decompositions, and implementing specialized algorithms. In some cases, the agent even derives and proves optimal solutions through mathematical reasoning alone, without invoking any numerical optimization algorithm. Such instance-specific strategies go beyond the predefined capabilities of traditional general-purpose solvers and are difficult to accommodate within their existing architectures. Meanwhile, the solve-time gap highlights the computational efficiency of leading commercial solvers. The opportunity, therefore, lies in developing AI-native optimization solvers that combine the adaptive intelligence of agents with the computational efficiency of state-of-the-art solvers.

What comes next. We argue for a fundamental shift toward AI-native solver architectures that decouple high-level solving strategy from low-level, real-time execution: solvers provide reliable, composable, and hardware-optimized computational primitives, while agents autonomously design, orchestrate, and adapt instance-specific solving methodologies at runtime.

1. Introduction

Every Mixed-Integer Programming (MIP) solver makes thousands of decisions while it runs: how much to presolve, which cuts to add, which heuristics to call, how to branch, when to restart. Modern solvers already adapt many of these choices during search (Berthold, Hendel and Koch, 2018), yet they remain confined to a predefined set of components and control policies tuned to work well on average over large test sets. On a particular instance, the solver can still spend hours on effort that no longer moves the gap, while the method the instance needs is not in its repertoire at all.

A coding agent can step outside that repertoire while the solve is running. It analyses the instance in front of it: it studies the structure of the model, reasons about what makes it hard, and starts with a strategy suited to it, which solver and which settings. It then watches where the effort goes and changes course when progress stalls: it restarts with other settings, shifts the effort from finding solutions to proving bounds, or, when no existing algorithm fits, writes a new one, such as a reformulation, a decomposition, an exact search or a SAT encoding. The solvers still do the mathematics; the agent orchestrates them. We call this combination an agentic solver (Figure 1).

A coding agent receives a MIP instance, chooses solvers and settings, and develops methods in Python or C/C++. Incumbents, bounds, and the remaining gap guide its next decision.
Figure 1. The agentic solver: a coding agent chooses and steers the solvers, and develops its own methods during the solve.

This research note is motivated by two fundamental questions:

  1. How much performance can be unlocked by adopting an agentic approach, in which solving strategies are autonomously determined for each instance at runtime rather than predefined by solver developers?
  2. Can an agentic MIP solver built on open-source solvers achieve performance comparable to that of leading commercial solvers?

These questions build on recent studies that have tested how much language models can contribute to solving MIPs:

  • LLM4MIP combined language models with optimization solvers to resolve 52 of 217 open MIPLIB instances. The team established optimality for 49, infeasibility for 2, and unboundedness for 1. LLM4MIP study
  • Anthropic reported that, across 203 open MIPLIB instances, Claude agents improved the best-known solution on 72 and proved optimality on 45. Anthropic announcement
  • Gurobi found better feasible solutions than those reported by LLM4MIP on more than 50 open models. On the MIPLIB benchmark set, however, its LLM-guided approach took more than three times as long as Gurobi with default settings. Gurobi study

2. Experimental setup

2.1 Agent, tools and budget

We kept the setup deliberately minimal, with no custom orchestration framework and no solver-specific heuristics built into the harness. Each of the 240 instances is run as an independent task: a fresh session of Codex CLI starts in an empty directory containing only the problem file, with web search and network access disabled (Figure 2).

Each MIPLIB 2017 instance gets one Codex run with 12 dedicated vCPUs, 128 GB RAM, a 2-hour wall-clock limit, and no network access. Local tools include SCIP, HiGHS, OR-Tools, Python, C, and C++.
Figure 2. Setup of the experiment: the tools, resources and limits for each instance.

The prompt states only the goal: prove optimality or infeasibility where possible, otherwise find the best feasible solution, and save the solution together with a brief report (full script). It says nothing about how to solve the problem. Within the environment, the agent has access only to standard open-source software: SCIP, HiGHS, OR-Tools CP-SAT, the SAT solver CaDiCaL, Python, and C/C++ compilers. Each instance gets a single attempt with 12 dedicated vCPUs, 128 GB of memory, and 2 hours of wall-clock time. At the deadline every process is stopped, and only the files already saved to disk count.

2.2 Anonymized instances, and what counts as solved

MIPLIB instances are public, so an agent might recognize a model by its names or layout and recall its optimal value or a known way to solve it. We therefore run the agent on anonymized copies, in which the instances themselves are renamed to mip001, mip002, …, mip240, variables and constraints are renamed to x1, x2, … and c1, c2, …, and rows and columns are randomly permuted. An instance counts as solved when the saved result is a proven optimum or a proof of infeasibility that agrees with the MIPLIB reference.

3. Results

The agent solves 220 of the 240 instances: 213 are proven optimal, and all 7 infeasible instances are proven infeasible. Every result it reports as proven agrees with the MIPLIB reference. Figures 3 and 4 place this next to Mittelmann’s public benchmark, which runs standalone solvers on copies of the same 240 instances, with rows and columns randomly permuted and a quick presolve, for the same 2 hours and 12 threads, on its own hardware. The first two solvers shown are commercial solvers at the forefront of the field, labelled A and B here; the last four are the best open-source solvers in that benchmark.

Horizontal bars of instances solved within 2 hours, out of 240, where higher is better. Leading commercial solvers: commercial solver A solves 225 and commercial solver B solves 210. This work: the Agentic MIP Solver with open-source solvers solves 220. Leading open-source solvers: HiGHS 1.16.0 solves 185, SCIP 11.0 concurrent 160, FiberSCIP 11.0 158 and SCIP 10.0.0 136.
Figure 3. Instances solved within 2 hours with 12 threads, out of 240; higher is better. Solver results as reported by Mittelmann on 20 November 2026, on an AMD Ryzen 9 5900X.
Horizontal bars of shifted geometric mean time in seconds, where lower is better. Leading commercial solvers: commercial solver A takes 71 seconds and commercial solver B takes 173. This work: the Agentic MIP Solver with open-source solvers takes 592. Leading open-source solvers: HiGHS 1.16.0 takes 434, SCIP 11.0 concurrent 586, FiberSCIP 11.0 688 and SCIP 10.0.0 1,003.
Figure 4. Shifted geometric mean (SGM) time in seconds, with unsolved instances counted at 7,200 s; lower is better. For the agent, this is the time of its whole session. Solver results as in Figure 3.

The results reveal two contrasting aspects of agentic MIP solving:

  • Solving capability: competitive with leading commercial solvers. The agent solves 220 instances, 35 more than HiGHS, the best-performing standalone open-source solver, placing it between the two leading commercial solvers shown, commercial solver B (210) and commercial solver A (225). This demonstrates the potential of agentic intelligence to substantially narrow the gap between open-source and commercial MIP solving in terms of proven solve counts.
  • Computational efficiency: substantial room for improvement. The agent’s SGM time is 592 s, compared with 71 s for commercial solver A and 173 s for commercial solver B. It is also slower than HiGHS (434 s) and marginally slower than concurrent SCIP 11.0 (586 s). Notably, the agent’s runtime includes the entire solving process: model analysis, LLM reasoning, code generation, numerical computation, and solution verification. Hardware differences (12 vCPUs in our experiments versus 12 hardware threads on AMD processors in Mittelmann’s benchmark) should be taken into account when interpreting these results but are unlikely to alter the main conclusion.

4. How the agent reaches its results

4.1 A common starting routine

In almost every session, the agent starts the same way.

  1. It reads the model, notes its size, the types of its variables and what the objective allows.
  2. It starts the general solvers right away, keeps every improved solution, and writes a checker against the original file.
  3. It studies the matrix for structure, such as independent blocks, a network, a precedence graph, a packing or covering pattern, or a known combinatorial problem in disguise, and in about half of the sessions it names one.
  4. What it finds decides the route: when the solvers converge, it lets them finish; otherwise it changes the model, by strengthening it, translating it exactly or reformulating it, or changes the method, by decomposing the problem, splitting it into cases or writing its own algorithm.

Most instances are settled within minutes; the hard ones turn into a sequence of attempts.

The agent inspects the model, then solves and analyses its structure at the same time. If the solvers converge, it continues solving; if they stall, it adapts by changing the model or the method and iterates. A checker built at the start verifies the result on the original model.
Figure 5. The routine the agent follows in a session.

4.2 Orchestrating the solvers

Along the way, the agent orchestrates the solvers rather than running one. It runs SCIP and HiGHS side by side, often with CP-SAT, passes the best solution found by one to the others as a starting point, and tunes each run for its job, some toward finding solutions and others toward the bound. It watches their progress, stops runs that stall, restarts them from better solutions, and moves the effort from finding solutions to proving them optimal. When the general solvers stop making progress, it writes its own heuristics, neighbourhood searches or exact searches in Python or C++, and keeps bounds from simplified models apart from the proof unless it can show that the simplification loses nothing.

Timeline of one 32-minute session with four rows: HiGHS, the agent's own search, CP-SAT on the agent's exact-cover model, and SCIP on the agent's reduced model. Dots mark each new best solution in the colour of the run that found it, and a thin path links them in time order. HiGHS and the agent's own search take turns from minute 10 to 23 as the gap falls from 3.8% to about 0.1%; CP-SAT contributes twice; SCIP takes over from minute 25, HiGHS rules out one case at minute 29, and SCIP proves the optimum at minute 30.
Figure 6. Orchestration in solving one MIP instance: each new best solution, in the colour of the run that found it, is passed on to the other runs. HiGHS and the agent's own search take turns, CP-SAT and SCIP join on models the agent built, and SCIP proves the optimum.

4.3 What established each result

Figure 7 shows which of these attempts finally established each result, as recorded from the agent’s logs, scripts and reports. Direct solves of the given file, with settings and starting solutions chosen by the agent, are the most common; the others rest on a model or method the agent built, from strengthened and reformulated models to exact translations, relaxations and decompositions, case analyses, its own exact algorithms and mathematical arguments.

Horizontal bars of the method that established each of the 220 solved instances: direct solve 109, strengthened formulation 14, exact translation 24, reformulation 24, relaxation or decomposition 14, case analysis 7, specialized exact algorithm 14, mathematical argument 14.
Figure 7. Method that established each of the 220 solved instances.

5. Case studies

In both cases, the agent saw only the names x1, x2, … for variables and c1, c2, … for constraints.

5.1 Case 1: From a stalled search tree to an exact meet in the middle

The first instance (markshare2, classified hard in MIPLIB) is small: 60 binary variables and 7 equality constraints, each with a nonnegative slack, and the objective is the total slack. Since all data are integers, every feasible objective is a whole number, and an objective of 0 would mean hitting all 7 right-hand sides exactly. Run side by side, SCIP and CP-SAT reached 13 within 3 minutes, with the bound still at 0.

The agent saw what such an exact target allows: “The targets are close to half the sum of the binary columns, so I’m also trying an exact meet-in-the-middle search.” It split the variables into two halves of 30 and wrote a C++ program that stores the 7 row sums of all 2302^{30} subsets of one half in a 32 GB hash table, then looks up, for each subset of the other half, the one complement that would hit all 7 targets. A billion insertions and a billion lookups replace a search over 2602^{60} assignments, and they took about a minute: no complement exists, so objective 0 is impossible and the bound rises to 1.

To make that “no” a proof, it packed each row-sum vector into an exact 84-bit key and confirmed the result with a second program written from scratch, with a different split and lookup. The same search, aimed at the 7 ways of leaving one unit of slack, found a solution with objective 1, matching the bound, 10 minutes into the task; a script checked it, and the data the searches used, against the original file in exact arithmetic.

5.2 Case 2: Spotting a mine in an anonymous matrix, and building a solver for it

The second instance (opm2-z10-s4) has 6,250 binary variables and 160,633 constraints. Two minutes in, the agent described the structure: “The constraints consist of an acyclic graph of binary implications plus eight resource limits.” This is the structure of open-pit mining, where a block can be removed only after the blocks above it. Without the resource limits, the cheapest selection that respects every implication is a minimum-weight closure of the graph, which a single minimum cut computes (Picard, 1976). The agent moved the resource limits into the objective with nonnegative multipliers, so that every minimum cut gives a lower bound.

With these bounds, a few CP-SAT checks and the implications, it fixed 1,795 variables and split the remaining choices into 4,455 cases. CP-SAT was too slow on the 484 cases still open, so it wrote its own network-flow branch and bound, which bounds each node with minimum-cut subproblems instead of a linear relaxation, and divided the last case across 8 workers. After 78 minutes it had the optimum, −33,269, with a matching bound; a separate verifier checked the bound of every case in exact integer arithmetic and replayed the CP-SAT checks, and the task ended after 82 minutes.

5.3 What the two cases show

Both cases end on methods an expert would recognize: an exact meet-in-the-middle search for market split problems, and minimum cuts for open-pit mining. The agent reached each from the anonymous matrix alone, implemented it during the solve, and backed the result with a rigorous check. None of them is built into the solvers it was given, which is exactly the gap described at the start: the method an instance needs is not in the solver’s repertoire.

6. What we tested, and what we did not

How far the proofs go. For direct solves and exact translations, the solver’s result is the proof. When the agent adds inequalities or fixings, reformulates the model or decomposes it, the proof also relies on that derivation being valid, for example that an added inequality removes no optimal solution. The agent saved checks of most of its derivations against the original file, and every result it reported as proven agrees with the MIPLIB reference value. Checking every derivation systematically, for example by having the agent produce certificates that standard tools can verify, is a limitation of this study and a step that agentic solvers will need to handle better in the future.

Not tested. We did not test open instances, where no reference value exists, other agents or models, longer time limits, or repeated runs of the same configuration. These are the next experiments.

7. Outlook

Our results suggest that the future of mathematical optimization may lie beyond the conventional paradigm of engineering increasingly sophisticated general-purpose solvers. As AI becomes more capable of mathematical reasoning, algorithm design, and autonomous decision-making, an increasing portion of the intelligence currently embedded in solver algorithms and heuristics could be transferred to agents. Solving methodologies would no longer need to be fully determined at design time, but could instead be constructed and adapted to individual problem instances at runtime.

This opens up a compelling research direction: AI-native optimization solvers that combine the adaptive intelligence of agents with the computational efficiency of state-of-the-art numerical algorithms. Realizing this vision requires rethinking solver architectures from the ground up, with reliable, fine-grained, composable, and hardware-optimized computational primitives designed for agentic orchestration. The goal is not simply to make existing solvers more intelligent, but to build optimization systems that can autonomously determine how best to solve each problem and execute those decisions efficiently.

Appendix: Runner script

The entire harness is a single 72-line Python file (solve_mip.py), invoked with --minutes 120 for each instance (bundled_codex_path() resolves the installed codex CLI binary).

Show solve_mip.py (72 lines)
"""Usage: python solve_mip.py <instance> [--minutes 10] [--model <model>] [--effort high]"""
import argparse, ctypes, os, shutil, signal, subprocess
from datetime import datetime, timedelta
from pathlib import Path
from codex_cli_bin import bundled_codex_path

ap = argparse.ArgumentParser()
ap.add_argument("instance")
ap.add_argument("--minutes", type=float, default=10)
ap.add_argument("--model", default="<model>")
ap.add_argument("--effort", default="high")
args = ap.parse_args()

instance = Path(args.instance).resolve()
run_dir = Path(__file__).parent / "runs" / "agentic_mip" / f"run_{datetime.now():%Y%m%d_%H%M%S}"
(run_dir / "problem").mkdir(parents=True)
problem = run_dir / "problem" / instance.name
shutil.copyfile(instance, problem)

if os.name == "nt":
    ctypes.windll.kernel32.SetProcessAffinityMask(ctypes.windll.kernel32.GetCurrentProcess(), 0b11)
else:
    os.sched_setaffinity(0, sorted(os.sched_getaffinity(0))[:12])

deadline = datetime.now() + timedelta(minutes=args.minutes)
prompt = f"""Solve the Mixed-Integer Programming (MIP) problem in problem/{problem.name}.

You have {args.minutes:g} minutes of wall-clock time, ending at {deadline:%H:%M:%S} (machine clock). All execution will be stopped at the deadline, without warning. Nobody will remind you of the time, so set up your own way to keep track of it.

Your objective is to solve the problem as effectively as possible: prove optimality, infeasibility, or unboundedness when possible. Otherwise, find the best feasible solution you can within the time limit.

The environment is already set up with Python 3.13 (numpy, scipy), the C and C++ compilers gcc and g++, the SCIP solver (PySCIPOpt), the HiGHS solver (highspy), OR-Tools, PySAT, and the SAT solver CaDiCaL. You have 12 vCPUs and 128 GB of memory.

You are free to choose your approach. Do not search the web for solutions.

Before the deadline, save your results in two files:
- solution.sol: the best feasible solution found, if any, with one line `<variable> <value>` per variable.
- report.md: start with one line per key below, writing `unknown` when a value is not available:
  status: <optimal | infeasible | unbounded | feasible | no solution found>
  proven: <yes | no>
  objective: <value>
  best_bound: <value>
  gap: <value>
  runtime_seconds: <value>
  Then explain how you solved the problem: what you did, which methods and tools you used, and what led to your result.

Only the results saved in these two files will count. Do not claim a result is proven without valid justification. If you report the problem as infeasible, you must prove it. If you want to support a claim, you can save proof files (for example scripts, logs or certificates) in proof/.
"""

cmd = [str(bundled_codex_path()), "exec", "--json", "--skip-git-repo-check",
       "--sandbox", "workspace-write", "-C", str(run_dir),
       "-m", args.model,
       "-c", f'model_reasoning_effort="{args.effort}"',
       "-c", 'model_reasoning_summary="detailed"',
       "-c", 'web_search="disabled"',
       "-c", "sandbox_workspace_write.network_access=false",
       "--disable", "apps", "--disable", "plugins", "--disable", "remote_plugin",
       "--disable", "browser_use", "--disable", "browser_use_external",
       "--disable", "in_app_browser", "--disable", "computer_use",
       prompt]

with open(run_dir.parent / f"{run_dir.name}.events.jsonl", "w") as events:
    proc = subprocess.Popen(cmd, stdout=events, stderr=subprocess.STDOUT, start_new_session=os.name != "nt")
    try:
        proc.wait(timeout=(deadline - datetime.now()).total_seconds())
    except subprocess.TimeoutExpired:
        if os.name == "nt":
            subprocess.run(["taskkill", "/T", "/F", "/PID", str(proc.pid)], capture_output=True)
        else:
            os.killpg(proc.pid, signal.SIGKILL)
        proc.wait()
print(run_dir)

References

  1. T. Berthold, G. Hendel and T. Koch. From feasibility to improvement to proof: three phases of solving mixed-integer programs. Optimization Methods and Software, 33(3):499–517, 2018. doi:10.1080/10556788.2017.1392519
  2. LLM4MIP. llm4mip.github.io
  3. Anthropic. Announcement on X. x.com/claudeai/status/2119899477855379913
  4. Gurobi Optimization. Recent advances in the use of large language models to solve mixed-integer programming models. gurobi.com
  5. H. D. Mittelmann. Benchmarks for optimization software. plato.asu.edu/bench.html
  6. MIPLIB 2017 benchmark set. miplib.zib.de/tag_benchmark.html
  7. J.-C. Picard. Maximal closure of a graph and applications to combinatorial problems. Management Science, 22(11):1268–1272, 1976. doi:10.1287/mnsc.22.11.1268

Reproducibility

Models
A coding agent run in Codex CLI 0.163.0, with web search and network access disabled
Solvers
SCIP 10.0.2 (PySCIPOpt 6.3.0), HiGHS 1.16, OR-Tools CP-SAT 9.15, CaDiCaL (PySAT)
Hardware
12 dedicated vCPUs and 128 GB of memory per instance
Budget
2 hours of wall-clock time per instance
Seeds
One run on the anonymized instances
Notes
The complete 72-line runner script (solve_mip.py) is included in the Runner script section above (invoked with --minutes 120).

Changelog

  • First published.

Use of AI in this post

AI assistants were used to help edit the text and correct grammatical issues.

Cite this post

@misc{optinagi2026agenticmipsolvers,
  title        = {Agentic MIP Solvers: Commercial-Grade Performance from Open-Source Solvers, and What That Means for Solver Design},
  author       = {{The OptinAGI Team}},
  year         = {2026},
  month        = nov,
  howpublished = {Optimization in the Era of AGI},
  url          = {https://optinagi.blog/posts/agentic-mip-solvers/}
}