Papers › OptiMUS-0.3: Using Large Language Models to Model and Solve Optimization Problems at Scale

OptiMUS-0.3: Using Large Language Models to Model and Solve Optimization Problems at Scale

29 Jul 2024arXiv:2407.19633archive 2025-07-28

Ali AhmadiTeshnizi, Wenzhi Gao, Herman Brunborg, Shayan Talaei, Madeleine Udell

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. We introduce a Large Language Model (LLM)-based system designed to formulate and solve (mixed integer) linear programming problems from their natural language descriptions. Our system is capable of developing mathematical models, writing and debugging solver code, evaluating the generated solutions, and improving efficiency and correctness of its model and code based on these evaluations. OptiMUS-0.3 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-0.3 outperforms existing state-of-the-art methods on easy datasets by more than 12% and on hard datasets (including a new dataset, NLP4LP, released with this paper that features long and complex problems) by more than 8%.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2407.19633")

Code

Syntology Ran 14 of 15 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong; 11 ran with no contract checked.

By repository: community (archive-listed): 15 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

teshnizi/optimus mentioned on GitHubMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 14 ran; 1 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
11ran
1unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from teshnizi/optimus. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

execute_code teshnizi/optimus/Reflexion.py community (archive-listed) ran fingerprinted MIT (permissive) · 0a6804b25b53643a · report
execute_code teshnizi/optimus/execute_code.py community (archive-listed) ran MIT (permissive) · dab23c4f1db56c16 · report
extract_code teshnizi/optimus/Reflexion.py community (archive-listed) ran fingerprinted MIT (permissive) · 3400042ef10a04a1 · report
extract_code teshnizi/optimus/execute_code.py community (archive-listed) ran fingerprinted MIT (permissive) · 1b35aeee4688c891 · report
extract_code_from_end teshnizi/optimus/target_code.py community (archive-listed) ran fingerprinted MIT (permissive) · e55cc7e0d69fd4cc · report
extract_json_from_end teshnizi/optimus/utils.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 1b919c0f41cadd94 · report
extract_json_from_end_backup teshnizi/optimus/utils.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 8db12a3fbdb85d30 · report
extract_keep_remove teshnizi/optimus/variables.py community (archive-listed) ran MIT (permissive) · 637439f058a00607 · report
extract_list_from_end teshnizi/optimus/utils.py community (archive-listed) ran · honoured contract MIT (permissive) · dfe55bee535745f0 · report
extract_objective teshnizi/optimus/objective.py community (archive-listed) ran fingerprinted MIT (permissive) · 2a3974ba00dea130 · report
extract_score teshnizi/optimus/parameters.py community (archive-listed) ran MIT (permissive) · edbd5ba229bb9dfc · report
extract_score teshnizi/optimus/variables.py community (archive-listed) ran MIT (permissive) · 90629c8ff26c53f1 · report
get_param_code teshnizi/optimus/generate_code.py community (archive-listed) ran MIT (permissive) · 729760725b6df4b3 · report
get_var_code teshnizi/optimus/generate_code.py community (archive-listed) ran MIT (permissive) · a6bbc053b1dfeae4 · report
extract_score_constraint_model teshnizi/optimus/constraint_model.py community (archive-listed) unverified MIT (permissive) · 4667ece67c9e29d5 · report

Tasks

Language ModelingLanguage ModellingLarge Language Model

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections