OptiMUS: Optimization Modeling Using MIP Solvers and large language models

Ali AhmadiTeshnizi, Wenzhi Gao, Madeleine Udell
10/9/2023
cs.AI

Official code: teshnizi/OptiMUS (290 stars, MIT, last commit 2025-11-04).

Abstract

Optimization problems are pervasive across various sectors, from manufacturing and distribution to healthcare. However, most such problems are still solved heuristically by hand rather than optimally by state-of-the-art solvers, as the expertise required to formulate and solve these problems limits the widespread adoption of optimization tools and techniques. We introduce OptiMUS, a Large Language Model (LLM)-based agent designed to formulate and solve MILP problems from their natural language descriptions. OptiMUS is capable of developing mathematical models, writing and debugging solver code, developing tests, and checking the validity of generated solutions. To benchmark our agent, we present NLP4LP, a novel dataset of linear programming (LP) and mixed integer linear programming (MILP) problems. Our experiments demonstrate that OptiMUS solves nearly twice as many problems as a basic LLM prompting strategy. OptiMUS code and NLP4LP dataset are available at \href{https://github.com/teshnizi/OptiMUS}{https://github.com/teshnizi/OptiMUS}

View on arXivView PDF

Code Implementations(1)

teshnizi/OptiMUSOfficial100%
MIT

Optimization Modeling Using mip Solvers and large language models

29051Python, Jupyter NotebookOct 5, 202311 months agoMIT

Similar Papers

Cite this paper

@article{ahmaditeshnizi2023optimus,
  title  = {OptiMUS: Optimization Modeling Using MIP Solvers and large language models},
  author = {Ali AhmadiTeshnizi and Wenzhi Gao and Madeleine Udell},
  year   = {2023},
  eprint = {2310.06116},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.06116v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.06116.svg)](https://codeofpaper.com/paper/2310.06116)

Discussion