Harnessing Language Models as Optimization Modeling Agents

Yunxiang Luo, Xin Xu, Tianhao Chen, Zhixi Xiong, Peiqi Jiang +5 more
10/22/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) can translate natural-language optimization problems into solver programs, but reliably producing correct formulations and implementations remains challenging. Existing approaches improve optimization modeling through agentic workflows or task-specific post-training. This raises a practical question: can a lightweight harness using a single model role achieve competitive performance without additional training? We introduce OPTICYCLE and OPTISTATE, two lightweight inference harnesses for optimization modeling, and evaluate them on nine benchmarks comprising 2,634 problems using 11 Qwen variants spanning 0.6B-27B parameters. Our results show that execution-guided revision consistently improves macro accuracy over direct generation for all evaluated models, with gains of up to 49.46 percentage points. Despite their simplicity, both harnesses outperform six adapted agentic workflows in same-model comparisons and four evaluated post-trained optimization models at comparable model sizes, without additional training. Explicit formulation state provides further but model-dependent improvements, suggesting that additional structure is not universally beneficial.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{luo2026harnessing,
  title  = {Harnessing Language Models as Optimization Modeling Agents},
  author = {Yunxiang Luo and Xin Xu and Tianhao Chen and Zhixi Xiong and Peiqi Jiang and Fan Zhang and Wei Shao and Xuejian Gao and Yuwei Fan and Can Yang},
  year   = {2026},
  eprint = {2610.30917},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.30917v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.30917.svg)](https://codeofpaper.com/paper/2610.30917)

Discussion