# Harnessing Language Models as Optimization Modeling Agents

DevFeed: [Harnessing Language Models as Optimization Modeling Agents](<https://devfeed.tech/articles/harnessing-language-models-as-optimization-modeling-agents-98133.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.30917>)

Author: Yunxiang Luo, Xin Xu, Tianhao Chen, Zhixi Xiong, Peiqi Jiang, Fan Zhang, Wei Shao, Xuejian Gao, Yuwei Fan, Can Yang

Published: 2026-10-23T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Operations research and optimization](<https://devfeed.tech/topics/operations-research-and-optimization.md>), [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [qwen](<https://devfeed.tech/topics/qwen.md>), [Agent Harness](<https://devfeed.tech/topics/agent-harness.md>), [post-training](<https://devfeed.tech/topics/post-training.md>)

Tags: [agentic-workflows](<https://devfeed.tech/tags/agentic-workflows.md>), [agents](<https://devfeed.tech/tags/agents.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [inference](<https://devfeed.tech/tags/inference.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [llms](<https://devfeed.tech/tags/llms.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [post-training](<https://devfeed.tech/tags/post-training.md>), [revision](<https://devfeed.tech/tags/revision.md>)

## AI overview

OPTICYCLE and OPTISTATE are lightweight inference harnesses that improve LLM generation of optimization solver programs without additional training. Across nine benchmarks (2,634 problems) and 11 Qwen variants from 0.6B to 27B parameters, execution-guided revision improved macro accuracy over direct generation for every evaluated model, by up to 49.46 percentage points. In same-model comparisons, both harnesses outperformed six adapted agentic workflows and four post-trained optimization models of comparable size. OPTISTATE's explicit formulation state provided additional gains for some models, but the benefit was model-dependent rather than universal.

## Source excerpt

arXiv:2610.30917v1 Announce Type: new 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.