Skip to main navigation Skip to search Skip to main content

Automatic Programming for the Optimal Power Flow in Distribution Networks: An Edge-side Adaptive Computing Approach Based on Large Language Models

  • School of Electrical Engineering and Automation, Harbin Institute of Technology

Research output: Contribution to journalArticlepeer-review

Abstract

Existing optimal power flow (OPF) computations typically require manual programming tailored to a fixed operational environment. However, the environment of the distribution network (DN) varies with the frequent changing of modern power systems. This paper proposed an adaptive OPF approach based on large language models (LLMs) to achieve automatic programming of environment changes. First, the approach utilizes publicly available DN datasets and OPF computation scripts, combined with expert knowledge, to construct a supervised fine-tuning (SFT) dataset. Second, the generated dataset is used to perform post-training on low-parameter-scale LLMs, which are suitable for edge-side deployment, using a low-rank adaptation (LoRA) method. Third, to further enhance the accuracy of edge-side LLMs, a feedback self-correction mechanism based on a multi-agent workflow is introduced. Simulation results demonstrate that the proposed approach significantly enhances the capability of edge-side LLMs in solving the OPF problems for the DNs with frequent environment changes.

Original languageEnglish
Pages (from-to)609-621
Number of pages13
JournalCSEE Journal of Power and Energy Systems
Volume12
Issue number2
DOIs
StatePublished - 1 Mar 2026
Externally publishedYes

Keywords

  • Code programming
  • distribution networks
  • large language models
  • optimal power flow
  • supervised fine-tuning

Fingerprint

Dive into the research topics of 'Automatic Programming for the Optimal Power Flow in Distribution Networks: An Edge-side Adaptive Computing Approach Based on Large Language Models'. Together they form a unique fingerprint.

Cite this