OptiMUS: Scalable Optimization Modeling with (MI)LP Solvers and Large Language Models
Ali AhmadiTeshnizi, Wenzhi Gao, Madeleine Udell
Abstract
Optimization problems are pervasive in 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 because the expertise required to formulate and solve these problems limits the widespread adoption of optimization tools and techniques. This paper introduces OptiMUS, a Large Language Model (LLM)-based agent designed to formulate and solve (mixed integer) linear programming problems from their natural language descriptions. OptiMUS can develop mathematical models, write and debug solver code, evaluate the generated solutions, and improve its model and code based on these evaluations. OptiMUS utilizes a modular structure to process problems, allowing it to handle problems with long descriptions and complex data without long prompts. Experiments demonstrate that OptiMUS outperforms existing state-of-the-art methods on easy datasets by more than and on hard datasets (including a new dataset, NLP4LP, released with this paper that features long and complex problems) by more than .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
25 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- CO-Bench: Benchmarking Language Model Agents in Algorithm Search for Combinatorial Optimization cites Reflexion: language agents with verbal reinforcement learning
- HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimization cites CO-Bench: Benchmarking Language Model Agents in Algorithm Search for Combinatorial Optimization
- HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimization cites Large Language Models as Optimizers
- HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimization cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- PAL: Program-aided Language Models cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Reflexion: language agents with verbal reinforcement learning cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Large Language Models as Optimizers cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- StepORLM: A Self-Evolving Framework With Generative Process Supervision For Operations Research Language Models cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- StepORLM: A Self-Evolving Framework With Generative Process Supervision For Operations Research Language Models cites Solver-Informed RL: Grounding Large Language Models for Authentic Optimization Modeling
- MM-Agent: LLM as Agents for Real-world Mathematical Modeling Problem cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Solver-Informed RL: Grounding Large Language Models for Authentic Optimization Modeling cites Reflexion: language agents with verbal reinforcement learning
- Solver-Informed RL: Grounding Large Language Models for Authentic Optimization Modeling cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
Cited by top-tier papers25
- Solver-Informed RL: Grounding Large Language Models for Authentic Optimization ModelingYitian Chen, Jingfan Xia, Siyu Shao, Dongdong Ge et al.NeurIPS 2025 · 54 citations
- StepORLM: A Self-Evolving Framework With Generative Process Supervision For Operations Research Language ModelsChenyu Zhou, Tianyi Xu, Jianghao Lin, Dongdong GeICLR 2026 · 29 citations
- MM-Agent: LLM as Agents for Real-world Mathematical Modeling ProblemFan Liu, Zherui Yang, Cancheng Liu, Tianrui Song et al.NeurIPS 2025 · 28 citations
- HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial OptimizationHongzheng Chen, Yingheng Wang, Yaohui Cai, Hins Hu et al.ICLR 2026 · 26 citations
- CO-Bench: Benchmarking Language Model Agents in Algorithm Search for Combinatorial OptimizationWeiwei Sun, Shengyu Feng, Shanda Li, Yiming YangAAAI 2026 · 20 citations
Builds on6
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
- Reflexion: language agents with verbal reinforcement learningNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan et al.NeurIPS 2023 · 5,828 citations
- Improving Language Models by Retrieving from Trillions of TokensSebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai et al.ICML 2022 · 1,629 citations
- Large Language Models as OptimizersChengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu et al.ICLR 2024 · 817 citations
- PAL: Program-aided Language ModelsLuyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon et al.ICML 2023 · 700 citations
Related papers
- LLMOPT: Learning to Define and Solve General Optimization Problems from ScratchCaigao Jiang, Xiang Shu, Hong Qian, Xingyu Lu et al.ICLR 2025
- Autoformulation of Mathematical Optimization Models Using LLMsNicolás Astorga, Tennison Liu, Yuanzhang Xiao, Mihaela van der SchaarICML 2025
- Large Language Model-driven Large Neighborhood Search for Large-Scale MILP ProblemsHuigen Ye, Hua Xu, An Yan, Yaoyang ChengICML 2025
- Chain-of-Experts: When LLMs Meet Complex Operations Research ProblemsZiyang Xiao, Dongxiang Zhang, Yangjun Wu, Lilin Xu et al.ICLR 2024 · 136 citations
- Optimas: An Intelligent Analytics-Informed Generative AI Framework for Performance OptimizationMohammad Zaeed, Tanzima Z. Islam, Vladimir IndicKDD 2026
