跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2509.14623 (cs)
[提交于 2025年9月18日]

标题:Automating Modelica Module Generation Using Large Language Models: A Case Study on Building Control Description Language

作者:Hanlong Wan, Xing Lu, Yan Chen, Karthik Devaprasad, Laura Hinkle
查看论文《Automating Modelica Module Generation Using Large Language Models: A Case Study on Building Control Description Language》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Dynamic energy systems and controls require advanced modeling frameworks to design and test supervisory and fault tolerant strategies. Modelica is a widely used equation based language, but developing control modules is labor intensive and requires specialized expertise. This paper examines the use of large language models (LLMs) to automate the generation of Control Description Language modules in the Building Modelica Library as a case study. We developed a structured workflow that combines standardized prompt scaffolds, library aware grounding, automated compilation with OpenModelica, and human in the loop evaluation. Experiments were carried out on four basic logic tasks (And, Or, Not, and Switch) and five control modules (chiller enable/disable, bypass valve control, cooling tower fan speed, plant requests, and relief damper control). The results showed that GPT 4o failed to produce executable Modelica code in zero shot mode, while Claude Sonnet 4 achieved up to full success for basic logic blocks with carefully engineered prompts. For control modules, success rates reached 83 percent, and failed outputs required medium level human repair (estimated one to eight hours). Retrieval augmented generation often produced mismatches in module selection (for example, And retrieved as Or), while a deterministic hard rule search strategy avoided these errors. Human evaluation also outperformed AI evaluation, since current LLMs cannot assess simulation results or validate behavioral correctness. Despite these limitations, the LLM assisted workflow reduced the average development time from 10 to 20 hours down to 4 to 6 hours per module, corresponding to 40 to 60 percent time savings. These results highlight both the potential and current limitations of LLM assisted Modelica generation, and point to future research in pre simulation validation, stronger grounding, and closed loop evaluation.
评论: This is the pre-peer-review version of a journal paper; the repo is available at: https://github.com/pnnl/prompt2control
主题: 软件工程 (cs.SE); 人工智能 (cs.AI); 程序设计语言 (cs.PL); 系统与控制 (cs.SY); 系统与控制 (eess.SY)
报告编号: PNNL-SA-215964
引用方式: arXiv:2509.14623 [cs.SE]
  (或者 arXiv:2509.14623v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2509.14623

提交历史

来自:Hanlong Wan
[v1] 2025年9月18日 星期四 05:07:17 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-09
切换浏览方式为:
cs
cs.AI
cs.PL
cs.SY
eess.SY

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站