Deep Operator Learning-Based Prediction of Primal and Dual Variables in AC Optimal Power Flow

Document Type : Original Research

Authors

1 Electrical Engineering, Faculty of Engineering, University of Guilan, Rasht, Iran

2 Faculty of Engineering, University of Guilan, Rasht, Iran

Abstract
This paper proposes a deep operator learning framework for fast and accurate prediction of both primal and dual variables in alternating-current optimal power flow (AC-OPF). Unlike conventional neural-network surrogates that learn a fixed input--output mapping and often ignore dual information, the proposed method is designed to approximate the underlying operator that maps varying system operating conditions to optimal OPF solutions. The framework is built on a primal--dual DeepONet architecture, where branch and trunk networks jointly encode system conditions and query locations to predict generator dispatch, voltage states, and associated Lagrange multipliers.

To better capture optimization structure, a differentiable dual completion layer is incorporated to improve dual feasibility and complementary slackness, and a KKT-informed loss function is used to guide training toward physically consistent and optimization-aware solutions. The proposed model is evaluated on standard IEEE benchmark systems, where it achieves high prediction accuracy for both primal and dual variables, millisecond-level inference time, and significantly reduced KKT residuals compared with conventional learning-based OPF approximations. These results highlight the promise of deep operator learning as an efficient surrogate for real-time AC-OPF analysis and power-system operation.

Keywords

Subjects

[1] A. Babiker, S. S. Ahmad, I. Ahmed, M. Khalid, M. A. Abido, and F. S. Al-Ismail, “Optimal power flow: A review of state-of-the-art techniques and future perspectives,” IEEE Access, vol. 13, pp. 60012–60039, 2025, doi: 10.1109/ACCESS.2025.3556168.
[2] D. K. Molzahn, J. T. Holzer, B. C. Lesieutre, and C. L. DeMarco, “Implementation of a large-scale optimal power flow solver based on semidefinite programming,” IEEE Transactions on Power Systems, vol. 28, no. 4, pp. 3987–3998, 2013, doi: 10.1109/TPWRS.2013.2260651.
[3] A. S. Zamzam and K. Baker, “Learning optimal solutions for extremely fast AC optimal power flow,” in 2020 IEEE International Conference on Communications, Control, and Computing Technologies for Smart Grids (SmartGridComm), 2020, pp. 1–6, doi: 10.1109/SmartGridComm47815.2020.9302941.
[4] G. Chen, H. Zhang, H. Hui, and Y. Song, “Deep-quantile-regression-based surrogate model for joint chance-constrained optimal power flow with renewable generation,” IEEE Transactions on Sustainable Energy, vol. 14, no. 1, pp. 657–672, 2022, doi: 10.1109/TSTE.2022.3223764.
[5] N. Kovachki, Z. Li, B. Liu, K. Azizzadenesheli, K. Bhattacharya, A. Stuart, and A. Anandkumar, “Neural operator: Learning maps between function spaces with applications to PDEs,” Journal of Machine Learning Research, vol. 24, no. 89, pp. 1–97, 2023, url: https://jmlr.org/papers/v24/21-1524.html.
[6] J. Xiao, J. Wang, Q. Sun, Q. Cui, X. Li, D. Niyato, and C.-L. I, “Learning Function-to-Function Mappings: A Fourier Neural Operator for Next-Generation MIMO Systems,” arXiv preprint arXiv:2510.04664, 2025, doi: 10.48550/arXiv.2510.04664.
[7] J. Berner, M. Liu-Schiaffini, J. Kossaifi, V. Duruisseaux, B. Bonev, K. Azizzadenesheli, and A. Anandkumar, “Principled approaches for extending neural architectures to function spaces for operator learning,” Nature Machine Intelligence, 2026, doi: 10.1038/s42256-026-01267-z.
[8] S. Wang, H. Wang, and P. Perdikaris, “Improved architectures and training algorithms for deep operator networks,” Journal of Scientific Computing, vol. 92, no. 2, p. 35, 2022, doi: 10.1007/s10915-022-01881-0.
[9] H. Khaloie, M. Dolanyi, J.-F. Toubeau, and F. Vallée, “Review of machine learning techniques for optimal power flow,” Applied Energy, vol. 388, p. 125637, 2025, doi: 10.1016/j.apenergy.2025.125637.
[10] A. Forsgren, P. E. Gill, and E. Wong, “Primal and dual active-set methods for convex quadratic programming,” Mathematical Programming, vol. 159, no. 1, pp. 469–508, 2016, doi: 10.1007/s10107-015-0966-2.
[11] S. Frank and S. Rebennack, “An introduction to optimal power flow: Theory, formulation, and examples,” IIE Transactions, vol. 48, no. 12, pp. 1172–1197, 2016, doi: 10.1080/0740817X.2016.1189626.
[12] S. Park and P. Van Hentenryck, “Self-supervised primal-dual learning for constrained optimization,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 37, no. 4, pp. 4052–4060, 2023, doi: 10.1609/aaai.v37i4.25520.
[13] S. Rezaei, A. Daeichian, A. Hedayati, and A. H. Karamali, “Wind power forecasting with a hybrid deep learning approach including LSTM and attention mechanism,” Power, Control, and Data Processing Systems, vol. 2, no. 2, pp. 39–52, 2025, doi: 10.30511/pcdp.2025.2060381.1023.
[14] A. Najafi, M. Tamimi, and E. Shahi, “Fault detection and classification in PV arrays with machine learning algorithms,” Power, Control, and Data Processing Systems, 2026, doi: 10.30511/pcdp.2026.2092605.1089.
[15] L. Madahali, “Graph topology and machine learning for enhanced link prediction,” Power, Control, and Data Processing Systems, vol. 2, no. 3, pp. 1–8, 2025, doi: 10.30511/pcdp.2025.2047611.1012.
[16] H. Shahdoosti and H. Amirbeigi, “A new method for detecting emotions in video using a hybrid CNN-RNN-RBM network,” Power, Control, and Data Processing Systems, vol. 3, no. 3, pp. 18–26, 2026, doi: 10.30511/pcdp.2026.2087714.1069.
[17] Z. Hu, H. Zhang, R. Yang, Y. Chen, and H. Wu, “Optimal power flow based on physical-model-integrated neural network with worth-learning data generation,” CSEE Journal of Power and Energy Systems, 2025, doi: 10.48550/arXiv.2301.03766.
[18] A. Ostovar, D. D. Davari, and M. Dzikuć, “Determinants of design with multilayer perceptron neural networks: A comparison with logistic regression,” Sustainability, vol. 17, no. 6, p. 2611, 2025, doi: 10.3390/su17062611.
[19] W. Zhang, W. Suo, J. Song, and W. Cao, “Physics-informed neural networks (PINNs) as intelligent computing technique for solving partial differential equations: Limitation and future prospects,” SCIENCE CHINA Physics, Mechanics & Astronomy, vol. 69, no. 1, p. 214602, 2026, doi: 10.1007/s11433-024-2665-5.
[20] A. Ghaemipour, H. Rajabi Mashhadi, and S. H. Mostafavi, “Optimal configuration of distribution network utilizing dueling deep Q network algorithm under different operating conditions,” in 2025 12th Iranian Conference on Renewable Energies and Distributed Generation (ICREDG), pp. 1–6, 2025, doi: 10.1109/ICREDG66184.2025.10966118.
[21] A. Mousaei, M. H. Abedinpour, and S. R. Murtadha, “Predicting optimal placement of electric vehicle charge stations in distribution networks using machine learning,” in 2025 12th Iranian Conference on Renewable Energies and Distributed Generation (ICREDG), pp. 1–6, 2025, doi: 10.1109/ICREDG66184.2025.10966078.
[22] M. R. Masoudi, M. Haghighi, and H. R. Sezavar, “Optimization of energy hub performance using the improved particle swarm optimization (IPSO) algorithm for integrated energy systems,” in 2025 12th Iranian Conference on Renewable Energies and Distributed Generation (ICREDG), pp. 1–6, 2025, doi: 10.1109/ICREDG66184.2025.10966138.
[23] M. Haghighi, H. Karimi, and S. Jadid, “Multi-objective scheduling of smart homes integrated with renewable energy sources and energy storage systems,” International Journal of Industrial Electronics, Control and Optimization, 2025, doi: 10.22111/ieco.2025.51901.1687.
[24] M. Haghighi, M. Mohammadi, and M. Allahbakhshi, “Intelligent digital twin for real-time remaining useful life prediction of lithium-ion batteries with cumulative incremental learning and ensemble strategy,” Results in Engineering, vol. 32, p. 111961, 2026, doi: 10.1016/j.rineng.2026.111961.
[25] H. Karimi, H. R. Sezavar, S. Hasanzadeh, M. Haghighi, and E. Heydarian-Forushani, “Identification of effective factors on formation generator coherent groups for islanding detection for renewable energy integration,” in 2025 12th Iranian Conference on Renewable Energies and Distributed Generation (ICREDG), pp. 1–6, 2025, doi: 10.1109/ICREDG66184.2025.10966108.
[26] R. Nellikkath and S. Chatzivasileiadis, “Physics-informed neural networks for AC optimal power flow,” Electric Power Systems Research, vol. 212, p. 108412, 2022, doi: 10.1016/j.epsr.2022.108412.
[27] F. S. Al-Ismail, “Physics informed neural networks-based AC optimal power flow under high RES penetration,” IEEE Access, vol. 12, pp. 189297–189306, 2024, doi: 10.1109/ACCESS.2024.3514362.
[28] B. Huang and J. Wang, “Applications of physics-informed neural networks in power systems - a review,” IEEE Transactions on Power Systems, vol. 38, no. 1, pp. 572–588, 2023, doi: 10.1109/TPWRS.2022.3162473.
[29] S. Goswami, A. Bora, Y. Yu, and G. E. Karniadakis, “Physics-informed deep neural operator networks,” in Machine Learning in Modeling and Simulation: Methods and Applications, pp. 219–254, Springer, 2023, doi: 10.1007/978-3-031-36644-4_6.
[30] R. A. Jabr, A. H. Coonick, and B. J. Cory, “A primal-dual interior point method for optimal power flow dispatching,” IEEE Transactions on Power Systems, vol. 17, no. 3, pp. 654–662, 2002, doi: 10.1109/TPWRS.2002.800900.
[31] K. Baker, “Learning warm-start points for AC optimal power flow,” in 2019 IEEE 29th International Workshop on Machine Learning for Signal Processing (MLSP), pp. 1–6, 2019, doi: 10.1109/MLSP.2019.8918690.
[32] F. Fioretto, T. W. K. Mak, and P. Van Hentenryck, “Predicting AC optimal power flows: Combining deep learning and Lagrangian dual methods,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 34, no. 1, pp. 630–637, 2020, doi: 10.1609/aaai.v34i01.5403.
[33] L. Zhang and B. Zhang, “Learning to solve the AC optimal power flow via a Lagrangian approach,” in 2022 North American Power Symposium (NAPS), pp. 1–6, 2022, doi: 10.1109/NAPS56150.2022.10012237.
[34] G. Qiu, M. Tanneau, and P. Van Hentenryck, “Dual conic proxies for AC optimal power flow,” Electric Power Systems Research, vol. 236, p. 110661, 2024, doi: 10.1016/j.epsr.2024.110661.
Volume 4, Issue 1
Winter 2027
Pages 62-79

  • Receive Date 31 July 2026
  • Revise Date 29 August 2026
  • Accept Date 14 September 2026
  • First Publish Date 14 September 2026
  • Publish Date 01 March 2027