Papers › Optimal Power Flow Using Graph Neural Networks

Optimal Power Flow Using Graph Neural Networks

21 Oct 2019arXiv:1910.09658archive 2025-07-28

Optimal power flow (OPF) is one of the most important optimization problems in the energy industry. In its simplest form, OPF attempts to find the optimal power that the generators within the grid have to produce to satisfy a given demand. Optimality is measured with respect to the cost that each generator incurs in producing this power. The OPF problem is non-convex due to the sinusoidal nature of electrical generation and thus is difficult to solve. Using small angle approximations leads to a convex problem known as DC OPF, but this approximation is no longer valid when power grids are heavily loaded. Many approximate solutions have been since put forward, but these do not scale to large power networks. In this paper, we propose using graph neural networks (which are localized, scalable parametrizations of network data) trained under the imitation learning framework to approximate a given optimal solution. While the optimal solution is costly, it is only required to be computed for network states in the training set. During test time, the GNN adequately learns how to compute the OPF solution. Numerical experiments are run on the IEEE-30 and IEEE-118 test cases.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1910.09658")

Code

Syntology Ran 0 of 20 code samples harvested from 1 repository linked to this paper; 20 have no recorded run.

By repository: community (archive-listed): 20 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

BNN-UPC/GNNPapersPowerNets mentioned on GitHub report
tomyvazquez/doraa-uy mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested; 0 ran; 0 honoured the contract we drafted; 20 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

20unverified

Licence: 0 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from tomyvazquez/doraa-uy. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

absolute_feas_error tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/metric.py community (archive-listed) unverified MIT (permissive) · 9684c22eafd4c345 · report
bus_pos tomyvazquez/doraa-uy/no-supervisado/URU/entrenamiento/src/Loss.py community (archive-listed) unverified MIT (permissive) · 8ffd20070371caaf · report
check_AC_flow tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/utils.py community (archive-listed) unverified MIT (permissive) · c20cfc00778112ae · report
constraint_violation_power_flow tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/Loss.py community (archive-listed) unverified MIT (permissive) · 0bc49f272d48aac8 · report
evaluate tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/train_eval.py community (archive-listed) unverified MIT (permissive) · 348e4f04f679cb34 · report
find_best_run tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/find_best_run.py community (archive-listed) unverified MIT (permissive) · 20264dbd7cd72af0 · report
find_best_run_from_tfevents tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/find_best_run.py community (archive-listed) unverified MIT (permissive) · b1ea19e462a3c45f · report
get_Ybus tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/utils.py community (archive-listed) unverified MIT (permissive) · 46f8c6740020e124 · report
get_Yline tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/utils.py community (archive-listed) unverified MIT (permissive) · 9a7ae36e45a95d92 · report
get_max_min_values tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/Loss.py community (archive-listed) unverified MIT (permissive) · 932c634b3d93be5c · report
get_max_min_values tomyvazquez/doraa-uy/no-supervisado/URU/entrenamiento/src/Loss.py community (archive-listed) unverified MIT (permissive) · fd88df33831b6622 · report
get_max_q tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/Loss.py community (archive-listed) unverified MIT (permissive) · 7f01ad9b482422c0 · report
get_max_q tomyvazquez/doraa-uy/no-supervisado/URU/entrenamiento/src/Loss.py community (archive-listed) unverified MIT (permissive) · 57cf95c88ec0e901 · report
get_stats tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/metric.py community (archive-listed) unverified MIT (permissive) · 77dc409702e10352 · report
get_stats tomyvazquez/doraa-uy/no-supervisado/URU/entrenamiento/src/metric.py community (archive-listed) unverified MIT (permissive) · 19a1e8e969cd43fe · report
load_data tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/Data_loader.py community (archive-listed) unverified MIT (permissive) · 792918ce2e8274a3 · report
load_data tomyvazquez/doraa-uy/no-supervisado/URU/entrenamiento/src/Data_loader.py community (archive-listed) unverified MIT (permissive) · d840ef5583c37f36 · report
non_linearity tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/arquitecturas.py community (archive-listed) unverified MIT (permissive) · 02fafc337e3894cb · report
relative_feas_error tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/metric.py community (archive-listed) unverified MIT (permissive) · 8b040a1c396bff89 · report
run_epoch tomyvazquez/doraa-uy/no-supervisado/IEEE/entrenamiento/src/train_eval.py community (archive-listed) unverified MIT (permissive) · e7dc5d3011a0ef63 · report

Tasks

Imitation Learning

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections