用大模型把电力优化需求转为可求解数学模型,提升决策可靠性
From Natural Language to Solver-Ready Power System Optimization: An LLM-Assisted, Validation-in-the-Loop Framework
- 通过提示工程与验证闭环,将自然语言转为可求解的数学公式
- 在机组组合问题上达到最优或近优调度,成本准确可复现
- 适合能源系统工程师快速建模,无需精通优化算法
本文提出一种基于大语言模型(LLM)的智能代理,能将电力系统优化场景的自然语言描述自动转化为紧凑、可直接求解的数学模型,并生成对应解。与直接让大模型输出结果的方法不同,该方法聚焦于发现数学上相容、可被现成优化求解器高效处理的公式。直接使用大模型生成解常因缺乏数值精度和约束处理能力导致不可行或次优结果。该流程结合领域感知提示与模式,通过系统化验证与迭代修复确保可行性,最终输出求解器可用模型及用户友好的结果。以机组组合问题为例,该代理生成最优或近优调度方案及其目标成本。实验表明,将求解器与任务特定验证结合显著提升解的可靠性。本工作证明,将AI与成熟优化框架融合,可实现从高层问题描述到可执行数学模型的无缝衔接,推动能源系统更高效决策。
原文摘要 · Abstract (English)
This paper introduces a novel Large Language Models (LLMs)-assisted agent that automatically converts natural-language descriptions of power system optimization scenarios into compact, solver-ready formulations and generates corresponding solutions. In contrast to approaches that rely solely on LLM to produce solutions directly, the proposed method focuses on discovering a mathematically compatible formulation that can be efficiently solved by off-the-shelf optimization solvers. Directly using LLMs to produce solutions often leads to infeasible or suboptimal results, as these models lack the numerical precision and constraint-handling capabilities of established optimization solvers. The pipeline integrates a domain-aware prompt and schema with an LLM, enforces feasibility through systematic validation and iterative repair, and returns both solver-ready models and user-facing results. Using the unit commitment problem as a representative case study, the agent produces optimal or near-optimal schedules along with the associated objective costs. Results demonstrate that coupling the solver with task-specific validation significantly enhances solution reliability. This work shows that combining AI with established optimization frameworks bridges high-level problem descriptions and executable mathematical models, enabling more efficient decision-making in energy systems
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。