arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.09995eess.SYcs.AIcs.SY
收藏

代理在电力网络静态分析中的应用:自动代码生成与错误修正

Agentic Application in Power Grid Static Analysis: Automatic Code Generation and Error Correction

Sun Yat-sen University(中山大学)

Qinjuan Wang, Shan Yang, Yongli Zhu

AI总结:

本文提出一个基于LLM的代理,通过将自然语言转换为MATLAB脚本实现电力网络静态分析自动化,采用三重纠错系统提升代码准确性,实验表明其在复杂任务中能有效消除幻觉。

摘要:

本文介绍了一个LLM代理,通过将自然语言转换为MATPOWER脚本实现电力网络静态分析的自动化。该框架利用DeepSeek-OCR构建增强型向量数据库,从MATPOWER手册中提取信息。为确保可靠性,设计了三级纠错系统:静态预检查、动态反馈回路和语义验证器。通过Model Context Protocol运行,该工具支持异步执行并在MATLAB中自动调试。实验结果表明,系统在代码保真度方面达到82.38%的准确性,即使在复杂分析任务中也能有效消除幻觉。

英文摘要:

This paper introduces an LLM agent that automates power grid static analysis by converting natural language into MATPOWER scripts. The framework utilizes DeepSeek-OCR to build an enhanced vector database from MATPOWER manuals. To ensure reliability, it devises a three-tier error-correction system: a static pre-check, a dynamic feedback loop, and a semantic validator. Operating via the Model Context Protocol, the tool enables asynchronous execution and automatically debugging in MATLAB. Experimental results demonstrate that the system achieves a 82.38% accuracy regarding the code fidelity, effectively eliminating hallucinations even in complex analysis tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑