Synthesizing mixed-integer linear programming models from natural language descriptions

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.

Authors

Institutions

Publication Details

Journal
INFOR Information Systems and Operational Research
Published
2026-11-23
DOI
https://doi.org/10.1080/03155986.2026.2753960
Citations
46
Primary Topic
Advanced Optimization Algorithms Research
Type
article
Field-Weighted Citation Impact
30.67

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Synthesizing mixed-integer linear programming models from natural language descriptions

Vicky H. Mak-Hau, Qingyang Li
46 citations
INFOR Information Systems and Operational Research
Advanced Optimization Algorithms Research
30.67
article

Synthesizing mixed-integer linear programming models from natural language descriptions

Vicky H. Mak-Hau, Qingyang Li
article en
46 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.

INFOR Information Systems and Operational Research
Deakin University (AU), The University of Melbourne (AU)
Australian Government, Australian Research Council
Openalex Percentile: Top 0%
Advanced Optimization Algorithms Research
30.67
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon