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.
From Evidence to Trajectory: Abductive Reasoning Path Synthesis for Retrieval-Augmented Generation Agents Development
The Chinese University of Hong Kong, Sha Tin, NT, Hong Kong(香港中文大学);Université de Montréal, Montréal, Quebéc, Canada(蒙特利尔大学);McGill University, Montréal, Quebéc, Canada(麦吉尔大学);Mila - Quebéc AI Institute, Montréal, Quebéc, Canada(魁北克AI研究院);Huawei Noah’s Ark Lab, Montréal, Quebéc, Canada(华为诺亚实验室)
Call-Chain-Aware LLM-Based Test Generation for Java Projects
Research Ireland Lero Centre for Software(爱尔兰Lero软件研究中心);University of Limerick(利默里克大学);University of Ottawa(渥太华大学);The State Key Laboratory of Blockchain and Data Security(区块链与数据安全国家重点实验室);Software Engineering Application Technology Lab, Huawei(华为软件工程应用技术实验室)
PEACE: Towards Efficient Project-Level Efficiency Optimization via Hybrid Code Editing
Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security, Zhejiang University(浙江大学杭州高技区(滨江)区块链与数据安全研究院);The Chinese University of Hong Kong(香港中文大学)