Skip to main content
QUICK REVIEW

[Paper Review] OptiMUS: Scalable Optimization Modeling with (MI)LP Solvers and Large Language Models

Ali AhmadiTeshnizi, Wenzhi Gao|arXiv (Cornell University)|Feb 15, 2024
Topic ModelingComputer Science6 citations
TL;DR

OptiMUS is an LLM-based multi-agent system that formulates and solves (MI)LP problems from natural language, using a modular structure and a connection graph to handle long descriptions and large data. It outperforms prior methods on multiple datasets, including a new NLP4LP benchmark.

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 $20\%$ and on hard datasets (including a new dataset, NLP4LP, released with this paper that features long and complex problems) by more than $30\%$.

Motivation & Objective

  • Bridge the expertise gap in optimization by automating problem formulation and solving from natural language descriptions.
  • Develop a modular LLM-based agent system that can generate mathematical models, solver code, and evaluate solutions.
  • Enable handling of long problem descriptions and large data without prompting explosion.
  • Introduce NLP4LP as a challenging open dataset to test long-form optimization modeling.

Proposed method

  • Preprocess natural language problem into a structured problem with Parameters, Clauses, and Background.
  • Use a manager and specialized agents (Formulator, Programmer, Evaluator) in a loop to formulate, code, and test each clause.
  • Maintain a connection graph to track variables, parameters, and their participation in clauses for context-focused prompts.
  • Leverage solver interfaces (e.g., Python with Gurobi) and structure-aware prompts to exploit problem structure like SOS and indicators.
  • Provide an optimization-layer that captures model structures and uses cheatsheet prompts to apply advanced optimization techniques.

Experimental results

Research questions

  • RQ1Can an LLM-based multi-agent system reliably formulate and solve MILP/LP problems from natural language descriptions?
  • RQ2Does modular prompting with a connection graph improve scalability to long descriptions and large data?
  • RQ3How does OptiMUS perform relative to state-of-the-art prompting methods on easy and hard optimization datasets?
  • RQ4What is the impact of agent orchestration (manager, formulator, programmer, evaluator) and debugging on solution accuracy?

Key findings

  • OptiMUS outperforms existing methods by over 20% on easy datasets and by over 30% on hard datasets including NLP4LP.
  • A modular approach with a connection graph enables handling long problem descriptions and large data without excessively long prompts.
  • GPT-4 based configurations yield substantially better accuracy than smaller LLMs, with debugging and manager roles contributing more on harder datasets.
  • The system scales by allowing more agent calls, improving performance on ComplexOR and NLP4LP datasets.
  • Prompt length remains stable across datasets for OptiMUS, unlike some baselines whose prompts grow with problem difficulty.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.