Leveraging Large Language Models for Analysis and Control of Power Transmission Networks: Case Studies with the Llama3 LLM Model and Pandapower

Abstract Use of Artificial intelligence in power systems is the mainstream theme in the scientific and engineering communities. The integration of renewable energy sources and the increasing demand for electricity have led to a significant increase in the complexity of modern power systems. To address this challenge, there is a need for advanced control and analysing techniques that can ensure the stable and efficient operation of the power grids. This paper explores the application of large language models (LLMs) for control of power transmission and distribution networks, specifically focusing on the use of an LLM-based agent in the control and analysis power system networks. The paper begins by reviewing the current state of LLMs and their potential applications in power systems. It then presents a detailed description of the proposed Llama3-based agent, which is designed to interpret and execute control commands using natural language processing (NLP) techniques. The agent can interface seamlessly with the Pandapower model, allowing it to monitor the network in real-time and make informed decisions to maintain the system’s stability and efficiency. To evaluate the effectiveness of the proposed approach, the paper presents case studies using simulated power transmission and distribution network models. The results demonstrate that the LLM agent can quickly and accurately respond to changes in the system, maintaining its stability and efficiency even under challenging conditions. Second example is contingency analysis with llama3 based agent. AI agent gives recommendations for mitigation of contingencies in the predefined system. The paper also discusses the potential, limitations and challenges of using LLMs for the control and analysis of power systems and suggests directions for future research. Uncertainties of the LLMs are also interesting topic and opens the new point of view on power system problems. Overall, this paper provides insights into the potential of LLMs for control and analysis of power transmission and distribution networks and demonstrates the feasibility of using LLM agents for this purpose. It highlights the benefits of this approach, including improved system stability and efficiency, and provides a foundation for further research in this rapidly evolving field.

Authors

Institutions

Publication Details

Journal
B&H eletrical engineering
Published
2025-11-27
DOI
https://doi.org/10.2478/bhee-2025-0018
Primary Topic
Power System Optimization and Stability
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Leveraging Large Language Models for Analysis and Control of Power Transmission Networks: Case Studies with the Llama3 LLM Model and Pandapower

Alen Bernadić
B&H eletrical engineering
Power System Optimization and Stability
article

Leveraging Large Language Models for Analysis and Control of Power Transmission Networks: Case Studies with the Llama3 LLM Model and Pandapower

Alen Bernadić
article en

Abstract

Abstract Use of Artificial intelligence in power systems is the mainstream theme in the scientific and engineering communities. The integration of renewable energy sources and the increasing demand for electricity have led to a significant increase in the complexity of modern power systems. To address this challenge, there is a need for advanced control and analysing techniques that can ensure the stable and efficient operation of the power grids. This paper explores the application of large language models (LLMs) for control of power transmission and distribution networks, specifically focusing on the use of an LLM-based agent in the control and analysis power system networks. The paper begins by reviewing the current state of LLMs and their potential applications in power systems. It then presents a detailed description of the proposed Llama3-based agent, which is designed to interpret and execute control commands using natural language processing (NLP) techniques. The agent can interface seamlessly with the Pandapower model, allowing it to monitor the network in real-time and make informed decisions to maintain the system’s stability and efficiency. To evaluate the effectiveness of the proposed approach, the paper presents case studies using simulated power transmission and distribution network models. The results demonstrate that the LLM agent can quickly and accurately respond to changes in the system, maintaining its stability and efficiency even under challenging conditions. Second example is contingency analysis with llama3 based agent. AI agent gives recommendations for mitigation of contingencies in the predefined system. The paper also discusses the potential, limitations and challenges of using LLMs for the control and analysis of power systems and suggests directions for future research. Uncertainties of the LLMs are also interesting topic and opens the new point of view on power system problems. Overall, this paper provides insights into the potential of LLMs for control and analysis of power transmission and distribution networks and demonstrates the feasibility of using LLM agents for this purpose. It highlights the benefits of this approach, including improved system stability and efficiency, and provides a foundation for further research in this rapidly evolving field.

B&H eletrical engineeringVol. 19(2)
Verlab (Bosnia and Herzegovina) (BA)
Openalex Percentile: Top 63%
Power System Optimization and Stability
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.