用微调大模型实现配电网快速最优重构,省去人工干预。
LLM4DistReconfig: A Fine-tuned Large Language Model for Power Distribution Network Reconfiguration
- 用提示词工程+自定义损失函数微调大模型,输入网络参数预测最优配置。
- 推理速度远超传统算法,5个测试集均最小化系统损耗。
- 生成结果无无效边、环路或子图,适合实际配电网部署。
配电网因分布式能源接入和用户参与度提升而日益复杂,需频繁重构以优化运行、降低损耗并满足负荷变化。传统依赖优化软件与专家操作的方法难以应对系统复杂性增长,亟需更快速自适应的解决方案。数据驱动方法凭借高精度、高速度和对不完整数据的鲁棒性逐渐兴起。本文提出LLM4DistReconfig,一种基于微调大语言模型的配电网重构方法。通过设计特定提示词与自定义损失函数,模型接收节点、可通线路、断开线路、节点电压及系统损耗等输入,输出能最小化系统损耗且满足运行约束的最优网络配置。实验表明,该方法在五个独立及合并测试集上均生成最优配置,且所有数据集均未产生无效边、环路或子图。在已见网络中,不当输出占比低于5%;在未见网络上也表现良好,验证了其有效性与可靠性,支持训练后近实时重构。
原文摘要 · Abstract (English)
Power distribution networks are evolving due to the integration of DERs and increased customer participation. To maintain optimal operation, minimize losses, and meet varying load demands, frequent network reconfiguration is necessary. Traditionally, the reconfiguration task relies on optimization software and expert operators, but as systems grow more complex, faster and more adaptive solutions are required without expert intervention. Data-driven reconfiguration is gaining traction for its accuracy, speed, and robustness against incomplete network data. LLMs, with their ability to capture complex patterns, offer a promising approach for efficient and responsive network reconfiguration in evolving complex power networks. In this work, we introduce LLM4DistReconfig, a deep learning-based approach utilizing a fine-tuned LLM to solve the distribution network reconfiguration problem. By carefully crafting prompts and designing a custom loss function, we train the LLM with inputs representing network parameters such as buses, available lines, open lines, node voltages, and system loss. The model then predicts optimal reconfigurations by outputting updated network configurations that minimize system loss while meeting operational constraints. Our approach significantly reduces inference time compared to classical algorithms, allowing for near real-time optimal reconfiguration after training. Experimental results show that our method generates optimal configurations minimizing system loss for five individual and a combined test dataset. It also produces minimal invalid edges, no cycles, or subgraphs across all datasets, fulfilling domain-specific needs. Additionally, the generated responses contain less than 5% improper outputs on seen networks and satisfactory results on unseen networks, demonstrating its effectiveness and reliability for the reconfiguration task.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。