OptiDSL Framework Boosts Optimization Modeling Accuracy and Speed

Shaofeng Zhang, Hongyuan Su, Qingwen Peng, Zefang Zong, Shengcai Liu, Ke Tang, Yong Li· August 10, 2026 View original

Key takeaways

  • OptiDSL is a DSL-centric framework for combinatorial optimization problems.
  • It uses LLMs to map natural language to domain-specific language representations.
  • The framework decouples problem formulation from solver execution, enabling flexibility.
  • OptiDSL significantly improves formulation accuracy and reduces modeling time compared to MILP.

Who benefits

LogisticsManufacturingSupply ChainFinanceOperations Research

Summary

OptiDSL is a new framework that shifts combinatorial optimization problem modeling from rigid MILP to domain-specific language (DSL) representations, using LLMs to map natural language to standardized structures. This approach significantly improves formulation accuracy and reduces modeling time by enabling integration with diverse specialized solvers.

Solving combinatorial optimization problems (COPs) requires not only efficient algorithms but also carefully constructed mathematical formulations. While large language models (LLMs) have been leveraged to automate optimization modeling, existing frameworks predominantly rely on the rigid mixed-integer linear programming (MILP) paradigm. This paper argues that forcing complex problem domains into linear constraints can lead to prohibitive modeling complexity and restrict solver flexibility.To address this, the researchers propose OptiDSL, a framework that reorients the focus from strict MILP formulations to domain-specific language (DSL) representations. OptiDSL uses LLMs to translate natural language problem descriptions into standardized, domain-accepted DSL structures. This decoupling of problem formulation from execution allows for seamless integration with a broad library of specialized solvers, encompassing traditional heuristics and modern learning-based methods.Experimental results across 44 types of COPs demonstrate that OptiDSL significantly outperforms MILP-based pipelines. It achieves a 51.66% gain in formulation accuracy and a remarkable 91.71% decrease in modeling time. Even when compared to existing MILP benchmarks, OptiDSL shows a 23.09% higher formulation accuracy. The code for OptiDSL has been made available.

Why it matters

For professionals dealing with complex optimization problems, OptiDSL offers a more flexible, accurate, and faster way to model and solve them, potentially unlocking solutions to previously intractable challenges and significantly streamlining operational planning.

How to implement this in your domain

  1. 1Explore the OptiDSL framework and its underlying DSL representations.
  2. 2Experiment with using LLMs to translate natural language problem descriptions into OptiDSL's DSL format.
  3. 3Integrate OptiDSL with a diverse set of specialized solvers relevant to your optimization tasks.
  4. 4Benchmark OptiDSL's performance against your current MILP-based optimization pipelines.
  5. 5Apply OptiDSL to complex combinatorial optimization problems that are difficult to model with traditional MILP.

Original post by Shaofeng Zhang, Hongyuan Su, Qingwen Peng, Zefang Zong, Shengcai Liu, Ke Tang, Yong Li

"arXiv:2608.07040v1 Announce Type: new Abstract: Solving combinatorial optimization problems (COPs) requires not only efficient algorithms but also carefully crafted formulations. While recent works have leveraged LLMs to automate optimization modeling, current frameworks predomin…"

View on X

Originally posted by Shaofeng Zhang, Hongyuan Su, Qingwen Peng, Zefang Zong, Shengcai Liu, Ke Tang, Yong Li on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses