Introduction
Modern power system analysis is a fragmented and highly technical field. Performing critical tasks such as Optimal Power Flow (OPF) or Contingency Analysis (CA) typically requires deep domain expertise, proficiency in specialized programming languages, and the manual integration of various simulation tools. This "knowledge barrier" significantly slows down decision-making in increasingly complex electric grids.
GridMind addresses these challenges by introducing a multi-agent AI framework that enables "conversational scientific computing." By positioning Large Language Models (LLMs) as intelligent orchestrators for deterministic engineering solvers, GridMind allows researchers to perform complex grid analyses through natural language while maintaining the strict numerical rigor required for critical infrastructure.
Architecture and Methodology
GridMind employs a multi-agent architecture where specialized LLM-powered agents are coordinated by a central Planner. The system is designed not to rely on the LLM's inherent mathematical capabilities—which are often unreliable—but rather on its ability to orchestrate external tools.
Key technical components include:
- Function Calling: Agents invoke vetted engineering solvers (e.g., PandaPower) via structured JSON calls.
- Reason-Act-Reflect Loop: Agents decompose user requests into subgoals, execute tool calls, validate results against physical constraints, and narrate findings.
- Structured Context Management: Using the PydanticAI framework, the system enforces strict data schemas, ensuring the "shared memory" between agents consists of validated physical states (e.g., bus voltages, line loadings).
- Automatic Recovery: If a solver fails to converge, the agent can automatically adjust tolerances or attempt alternative algorithms before reporting back.
Experimental Setup
The framework was evaluated using standard industry benchmarks from the IEEE test case archive, specifically the IEEE 14, 30, 118, and 300-bus systems. These represent power grids of increasing complexity. The evaluation compared several state-of-the-art LLMs, including versions of GPT and Claude, to assess how model size and reasoning capability affected analytical accuracy and speed.
Results and Discussion
The experimental results demonstrate the robustness of the agentic approach. All tested LLMs achieved a 100% success rate in solving the ACOPF for the IEEE 118-bus case. In Contingency Analysis, the models consistently identified the same critical transmission lines and reported identical maximum overload percentages (137%), proving that the tool-calling approach effectively grounds the AI in physical reality.
While accuracy remained consistent across models, execution efficiency varied significantly. Smaller, faster models (such as GPT-O4 Mini) often achieved the same analytical accuracy as much larger models but with significantly lower latency. This suggests that for tool-augmented scientific tasks, massive reasoning models may not always be necessary; efficient orchestration is the primary driver of performance.
Conclusion
GridMind demonstrates that natural language interfaces can be integrated into power system operations without sacrificing precision. By mapping natural language intents to exact data fields and solver functions, the system maintains a transparent audit trail. Future work will focus on expanding the domain to include resource forecasting and state estimation, as well as developing more sophisticated coordination protocols for larger agent swarms in real-time control room environments.
Summary updated