Efficiently solving Optimal Power Flow (OPF) problems in power systems is crucial for operational planning and grid management. There is a growing need for scalable algorithms capable of handling the increasing variability, constraints, and uncertainties in modern power networks while providing accurate and fast solutions. To address this, machine learning techniques, particularly Graph Neural Networks (GNNs) have emerged as promising approaches. This letter introduces PowerGraph-LLM, the first framework explicitly designed for solving OPF problems using Large Language Models (LLMs). The proposed approach combines graph and tabular representations of power grids to effectively query LLMs, capturing the complex relationships and constraints in power systems. A new implementation of in-context learning and fine-tuning protocols for LLMs is introduced, tailored specifically for the OPF problem. PowerGraph-LLM demonstrates reliable performances using off-the-shelf LLM. Our study reveals the impact of LLM architecture, size, and fine-tuning and demonstrates our framework's ability to handle realistic grid components and constraints.
翻译:高效求解电力系统中的最优潮流问题对于运行规划与电网管理至关重要。随着现代电力网络可变性、约束条件及不确定性的日益增加,亟需能够提供精确快速解的可扩展算法。为此,机器学习技术,特别是图神经网络,已成为具有前景的解决方案。本文首次提出PowerGraph-LLM框架,该框架专门设计用于利用大语言模型求解最优潮流问题。所提方法结合电网的图结构与表格化表示,有效查询大语言模型以捕捉电力系统中的复杂关系与约束条件。针对最优潮流问题,本文创新性地实现了大语言模型的上下文学习与微调协议。PowerGraph-LLM采用现成大语言模型展现出可靠的性能。本研究揭示了大语言模型架构、规模及微调策略的影响,并验证了该框架处理实际电网组件与约束条件的能力。