Abstract Operations Research Modeling Using Natural Language Inputs
Junxuan Li, Ryan Wickman, Sahil Bhatnagar, Raj Kumar Maity, Arko Mukherjee
TL;DR
This paper introduces NL2OR, an end-to-end pipeline that converts natural language queries into abstract OR models and then into concrete models solvable by OR solvers, enabling what-if analysis for non-experts. It leverages large language models to generate DSLs, performs automated post-processing with error handling, and uses a FORA-based execution framework with solver triage to deliver solutions and reports. Compared to existing AMP approaches, NL2OR emphasizes abstract modeling, solver-agnostic triage, and an interactive multi-turn NL interface, achieving high accuracy across diverse problem sets and datasets such as LPWP. The experimental results show that NL2OR can create and edit OR models effectively, with GPT-4o often delivering the best accuracy and acceptable latency, suggesting practical impact for non-technical users and industrial deployments. The work highlights future directions including more compact language models and reinforcement learning to further improve efficiency and adaptability in real-world settings.
Abstract
Operations research (OR) uses mathematical models to enhance decision-making, but developing these models requires expert knowledge and can be time-consuming. Automated mathematical programming (AMP) has emerged to simplify this process, but existing systems have limitations. This paper introduces a novel methodology that uses recent advances in Large Language Model (LLM) to create and edit OR solutions from non-expert user queries expressed using Natural Language. This reduces the need for domain expertise and the time to formulate a problem. The paper presents an end-to-end pipeline, named NL2OR, that generates solutions to OR problems from natural language input, and shares experimental results on several important OR problems.
