IDEAS home Printed from https://ideas.repec.org/a/eee/appene/v404y2026ics030626192501904x.html

Multi-task learning for solving OPF in an evolving environment

Author

Listed:
  • Jia, Yixiong
  • Wang, Yi
  • Zhou, Yao

Abstract

Optimal Power Flow (OPF) aims to minimize operating cost subject to AC network constraints, but its nonconvex, nonlinear nature makes the problem NP-hard, which in practice motivates solving simplified models or using conventional nonlinear solvers; both approaches typically fall short of real-time, high-quality AC-feasible solutions. By leveraging universal approximation ability with fast inference, modern machine-learning methods have become a promising direction for OPF surrogates. Despite the promising results achieved by existing methods, they typically focus on static scenarios without dataset distribution shifts. In contrast, practical power systems operate in an evolving environment where scenarios can change dynamically (e.g., generator outages), causing existing methods to fail to provide accurate OPF solutions. By proposing a multi-task learning framework, we aim to expand the application region of data-driven OPF methods. Specifically, to address the weak correlation across different scenarios, we model multiple scenarios simultaneously through shared network parameters in the proposed framework, with a hypernetwork facilitating knowledge transfer. Meanwhile, to address dataset imbalance under dynamic scenarios, we introduce an error-focused up-sampling method that resamples data exhibiting large deviations from the pre-trained model’s predictions. Furthermore, to balance the training process, we adopt an adaptive-weight algorithm that assigns trainable weights to each sample, updated alongside the hypernetwork weights in a dual ascent manner. Simulation results based on the 14-bus system and 118-bus system show that the proposed framework can provide optimality and feasibility-enhanced OPF solutions in near real time compared to existing methods with or without a post-processing step.

Suggested Citation

  • Jia, Yixiong & Wang, Yi & Zhou, Yao, 2026. "Multi-task learning for solving OPF in an evolving environment," Applied Energy, Elsevier, vol. 404(C).
  • Handle: RePEc:eee:appene:v:404:y:2026:i:c:s030626192501904x
    DOI: 10.1016/j.apenergy.2025.127174
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S030626192501904X
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.apenergy.2025.127174?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Ibrahim, Muhammad Sohail & Dong, Wei & Yang, Qiang, 2020. "Machine learning driven smart electric power systems: Current trends and new perspectives," Applied Energy, Elsevier, vol. 272(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Younes Zahraoui & Tarmo Korõtko & Argo Rosin & Saad Mekhilef & Mehdi Seyedmahmoudian & Alex Stojcevski & Ibrahim Alhamrouni, 2024. "AI Applications to Enhance Resilience in Power Systems and Microgrids—A Review," Sustainability, MDPI, vol. 16(12), pages 1-35, June.
    2. Lan, Puzhe & Han, Dong & Xu, Xiaoyuan & Yan, Zheng & Ren, Xijun & Xia, Shiwei, 2022. "Data-driven state estimation of integrated electric-gas energy system," Energy, Elsevier, vol. 252(C).
    3. Saima Akhtar & Sulman Shahzad & Asad Zaheer & Hafiz Sami Ullah & Heybet Kilic & Radomir Gono & Michał Jasiński & Zbigniew Leonowicz, 2023. "Short-Term Load Forecasting Models: A Review of Challenges, Progress, and the Road Ahead," Energies, MDPI, vol. 16(10), pages 1-29, May.
    4. Ahmad, Tanveer & Madonski, Rafal & Zhang, Dongdong & Huang, Chao & Mujeeb, Asad, 2022. "Data-driven probabilistic machine learning in sustainable smart energy/smart energy systems: Key developments, challenges, and future research opportunities in the context of smart grid paradigm," Renewable and Sustainable Energy Reviews, Elsevier, vol. 160(C).
    5. Mahfuzur Rahman & Solaiman Chowdhury & Mohammad Shorfuzzaman & Mohammad Kamal Hossain & Mohammad Hammoudeh, 2023. "Peer-to-Peer Power Energy Trading in Blockchain Using Efficient Machine Learning Model," Sustainability, MDPI, vol. 15(18), pages 1-15, September.
    6. Rasoulnia, Mohammad & Yaghoubi, Elnaz & Yaghoubi, Elaheh & Hussain, Akhtar & Kamwa, Innocent, 2026. "A comprehensive systematic and bibliometric review of technologies and measurement tools for power quality events detection, classification, and fault location in smart grids," Renewable and Sustainable Energy Reviews, Elsevier, vol. 226(PB).
    7. Fernández-Blanco, Ricardo & Morales, Juan Miguel & Pineda, Salvador, 2021. "Forecasting the price-response of a pool of buildings via homothetic inverse optimization," Applied Energy, Elsevier, vol. 290(C).
    8. Arsad, A.Z. & Hannan, M.A. & Ong, H.C. & Ker, Pin Jern & Wong, Richard TK. & Begum, R.A. & Jang, Gilsoo & Mahlia, T M Indra, 2025. "Artificial intelligence in hydrogen energy transitions: A comprehensive survey and future directions," Renewable and Sustainable Energy Reviews, Elsevier, vol. 224(C).
    9. Nebiyu Kedir & Phuong H. D. Nguyen & Citlaly Pérez & Pedro Ponce & Aminah Robinson Fayek, 2023. "Systematic Literature Review on Fuzzy Hybrid Methods in Photovoltaic Solar Energy: Opportunities, Challenges, and Guidance for Implementation," Energies, MDPI, vol. 16(9), pages 1-38, April.
    10. Wang, Keqi & Wang, Lijie & Meng, Qiang & Yang, Chao & Lin, Yangshu & Zhu, Junye & Zhao, Zhongyang & Zhou, Can & Zheng, Chenghang & Gao, Xiang, 2025. "Accurate photovoltaic power prediction via temperature correction with physics-informed neural networks," Energy, Elsevier, vol. 328(C).
    11. Sun, Zhengxiang & Wang, Rui, 2025. "Emerging nanomaterials for energy storage: A critical review of metrics, hotspots, and future directions," Renewable and Sustainable Energy Reviews, Elsevier, vol. 224(C).
    12. Hernandez-Matheus, Alejandro & Löschenbrand, Markus & Berg, Kjersti & Fuchs, Ida & Aragüés-Peñalba, Mònica & Bullich-Massagué, Eduard & Sumper, Andreas, 2022. "A systematic review of machine learning techniques related to local energy communities," Renewable and Sustainable Energy Reviews, Elsevier, vol. 170(C).
    13. Chongchong Xu & Zhicheng Liao & Chaojie Li & Xiaojun Zhou & Renyou Xie, 2022. "Review on Interpretable Machine Learning in Smart Grid," Energies, MDPI, vol. 15(12), pages 1-31, June.
    14. Lu, Yifan & Love, Peter E.D. & Luo, Hanbin & Fang, Weili, 2026. "Mitigating adversarial attacks and building robust deep learning models for assessing risks in tunnel construction," Reliability Engineering and System Safety, Elsevier, vol. 265(PB).
    15. Paul Arévalo & Francisco Jurado, 2024. "Impact of Artificial Intelligence on the Planning and Operation of Distributed Energy Systems in Smart Grids," Energies, MDPI, vol. 17(17), pages 1-22, September.
    16. Xi He & Heng Dong & Wanli Yang & Wei Li, 2023. "Multi-Source Information Fusion Technology and Its Application in Smart Distribution Power System," Sustainability, MDPI, vol. 15(7), pages 1-16, April.
    17. Arman Goudarzi & Farzad Ghayoor & Muhammad Waseem & Shah Fahad & Issa Traore, 2022. "A Survey on IoT-Enabled Smart Grids: Emerging, Applications, Challenges, and Outlook," Energies, MDPI, vol. 15(19), pages 1-32, September.
    18. Yu, Nanpeng & Zhang, Shaorong & Qin, Jingtao & Hidalgo-Gonzalez, Patricia & Dobbe, Roel & Liu, Yang & Dubey, Anamika & Wang, Yubo & Dirkman, John & Zhong, Haiwang & Lu, Ning & Ma, Emily & Ding, Zhaoha, 2025. "Data-driven control, optimization, and decision-making in active power distribution networks," Applied Energy, Elsevier, vol. 397(C).
    19. Keyong Hu & Zheyi Fu & Chunyuan Lang & Wenjuan Li & Qin Tao & Ben Wang, 2024. "Short-Term Photovoltaic Power Generation Prediction Based on Copula Function and CNN-CosAttention-Transformer," Sustainability, MDPI, vol. 16(14), pages 1-18, July.
    20. liu, Qian & li, Yulin & jiang, Hang & chen, Yilin & zhang, Jiang, 2024. "Short-term photovoltaic power forecasting based on multiple mode decomposition and parallel bidirectional long short term combined with convolutional neural networks," Energy, Elsevier, vol. 286(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:appene:v:404:y:2026:i:c:s030626192501904x. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/wps/find/journaldescription.cws_home/405891/description#description .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.