Autoformulation of Mathematical Optimization Models Using LLMs
Abstract
Lay Summary
(1) Building mathematical optimization models from real-world problem descriptions is essential in fields like logistics, finance, and healthcare, but it remains a labor-intensive task requiring expert knowledge. (2) We introduce an autoformulator that uses large language models (LLMs) to automatically convert natural language problem descriptions into solver-ready optimization models. Our method uses Monte Carlo Tree Search to systematically explore modeling choices, guided by LLM-generated hypotheses and correctness evaluations, while symbolic tools prune redundant formulations to keep the search efficient. (3) This approach not only significantly outperforms prior baselines on real-world benchmarks, but also brings us closer to making powerful optimization tools accessible to non-experts, streamlining decision-making across industries and expanding the applications of AI-assisted modeling.