AI & Computingarticle2026-11-23

Synthesizing mixed-integer linear programming models from natural language descriptions

Open access46 citations

Abstract

Mixed-Integer Linear Programming (MILP) is a powerful tool for solving numerous real-world decision-making problems. However, the formulation process typically requires substantial expert effort. This study investigates whether it is possible to automatically recognize constraints and generate accurate MILP formulations from unstructured textual descriptions. We propose a multi-stage framework that integrates Large Language Models (LLMs) and mathematical modeling techniques. The framework comprises three stages: (1) identification of decision variables, (2) classification of objectives and constraints with fine-tuned LLMs, and (3) generation of mathematical expressions based on templates, including implicit constraints for logical relations. We conduct numerical evaluation on a new dataset of 30 problems comprising 177 paragraph-level descriptions. The proposed framework is able to generate correct models for 29 of 30 instances and 176 of 177 mathematical expressions. Compared with direct prompting and recent automatic model generation methods, including a training-based framework and an agentic system, our approach achieves 7 to 24 additional accurate models and produces consistent results across multiple trials. Error analysis shows that competing methods often fail to capture implicit constraints or logical relations. Our framework enhances the automation of MILP formulation and also offers opportunities for developing training tools for operations research practitioners and supporting automatic decision problem solving in practice.

// Source

View paper (DOI)Open access versionOpenAlexINFOR Information Systems and Operational ResearchPublished 2026-11-23

Authors: Qingyang Li, Vicky H. Mak-Hau

Institutions: The University of Melbourne, Deakin University