Type-Aware Retrieval-Augmented Generation with Dependency Closure for Solver-Executable Industrial Optimization Modeling

📅 2026-03-03
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the challenge that large language models often generate uncompilable optimization code when automatically translating natural language requirements due to type mismatches, missing declarations, and incomplete context. To overcome this, the authors propose a type-aware retrieval-augmented generation (RAG) approach that integrates a type system and dependency closure mechanism into the RAG framework for the first time. By constructing a domain-specific, typed knowledge graph and combining hybrid retrieval with a dependency propagation algorithm, the method produces structurally correct models satisfying minimal dependency closure. Evaluated on two industrial use cases—battery production demand response and flexible job shop scheduling—the approach successfully generates compilable models that achieve known optimal solutions, significantly outperforming conventional RAG baselines.

Technology Category

Application Category

📝 Abstract
Automated industrial optimization modeling requires reliable translation of natural-language requirements into solver-executable code. However, large language models often generate non-compilable models due to missing declarations, type inconsistencies, and incomplete dependency contexts. We propose a type-aware retrieval-augmented generation (RAG) method that enforces modeling entity types and minimal dependency closure to ensure executability. Unlike existing RAG approaches that index unstructured text, our method constructs a domain-specific typed knowledge base by parsing heterogeneous sources, such as academic papers and solver code, into typed units and encoding their mathematical dependencies in a knowledge graph. Given a natural-language instruction, it performs hybrid retrieval and computes a minimal dependency-closed context, the smallest set of typed symbols required for solver-executable code, via dependency propagation over the graph. We validate the method on two constraint-intensive industrial cases: demand response optimization in battery production and flexible job shop scheduling. In the first case, our method generates an executable model incorporating demand-response incentives and load-reduction constraints, achieving peak shaving while preserving profitability; conventional RAG baselines fail. In the second case, it consistently produces compilable models that reach known optimal solutions, demonstrating robust cross-domain generalization; baselines fail entirely. Ablation studies confirm that enforcing type-aware dependency closure is essential for avoiding structural hallucinations and ensuring executability, addressing a critical barrier to deploying large language models in complex engineering optimization tasks.
Problem

Research questions and friction points this paper is trying to address.

industrial optimization modeling
solver-executable code
type inconsistency
dependency closure
natural-language requirements
Innovation

Methods, ideas, or system contributions that make the work stand out.

type-aware retrieval-augmented generation
dependency closure
solver-executable modeling
typed knowledge graph
industrial optimization
🔎 Similar Papers
No similar papers found.
Y
Yuanjian Zhong
School of Petroleum, China University of Petroleum (Beijing) at Karamay, Karamay, 834000, China
R
Rui Huang
School of Petroleum, China University of Petroleum (Beijing) at Karamay, Karamay, 834000, China
M
Mengyao Wang
School of Petroleum, China University of Petroleum (Beijing) at Karamay, Karamay, 834000, China
Z
Zixin Guo
School of Petroleum, China University of Petroleum (Beijing) at Karamay, Karamay, 834000, China
Y
Yi-Chang Li
School of Petroleum, China University of Petroleum (Beijing) at Karamay, Karamay, 834000, China
M
Mengmeng Yu
School of Petroleum, China University of Petroleum (Beijing) at Karamay, Karamay, 834000, China
Zhong Jin
Zhong Jin
Professor, School of Chemistry and Chemical Engineering, Nanjing University
Nanomaterials - Carbon Nanotubes - 2D Materials - Graphene - Energy Storage - Nanoelectronics - Nanolithography