IEEE PESGM 2026 Learning to optimize · Power systems

Homotopy-Guided Self-Supervised Learning of Parametric Solutions for AC Optimal Power Flow

Shimiao Li1 Aaron Tuor2 Draguna Vrabie2 Larry Pileggi3 Jan Drgona4

1 University at Buffalo2 Pacific Northwest National Laboratory3 Carnegie Mellon University4 Johns Hopkins University

SOLARIS Lab Johns Hopkins Whiting School of Engineering Pacific Northwest National Laboratory

Learn the solution map.
Ease the training path.

A neural network can predict power-system decisions from changing loads. Training that network directly against nonlinear power-flow constraints can be difficult.

This work guides self-supervised training through a sequence of easier problems, gradually restoring the original objective and constraints while carrying the learned weights forward.

Explore the method
SOLARIS graphical abstract showing neural predictions, homotopy training stages, and AC grid physics.
The animated graphical abstract from the SOLARIS papers page. Motion illustrates continuation through learning problems and changing grid states; it does not reproduce reported experimental results.

Research summary

Continuation as a training heuristic

The method learns an approximate parametric solution to alternating-current optimal power flow (AC-OPF) using the optimization objective and constraint penalties as the training signal. It requires no solver-generated optimal labels. Two families of homotopy transformations guide training: general relaxations of the loss and constraints, and transformations that exploit power-system structure. On the reported 30-bus benchmark, these choices reduce constraint violations relative to direct penalty training.

1

Self-supervised learning

Evaluate generation cost and physical constraints directly on the network’s predictions.

2

A sequence of problems

Train at a fixed homotopy parameter, advance it, and reuse the previous network weights.

3

Empirical validation

Compare residuals on case30 and synthetic nonconvex problems. Benefits depend on the chosen transformation.

Scientific content and reported results follow the published IEEE PESGM 2026 paper. The arXiv version provides an openly accessible manuscript.

The problem

Dispatch generation under nonlinear AC constraints

AC-OPF seeks a low-cost generation dispatch that satisfies power balance and operating bounds. Here, varying active and reactive loads form the problem parameters \(\xi\); the predicted decisions are complex bus voltages \(V\), active generation \(P_g\), and reactive generation \(Q_g\).

The challenge is in training: nonlinear AC balance creates a nonconvex loss landscape, and minimizing a weighted penalty can leave substantial constraint residuals.

\[\min_{x=[V,P_g,Q_g]}\;\sum_{g\in\mathcal N_g}\alpha_g P_g^2+\beta_gP_g+\gamma_g\]
\[(P_g-P_d)+j(Q_g-Q_d)=V\odot(Y_{\mathrm{bus}}V)^*\]

Subject also to voltage-magnitude and active/reactive generation bounds, with a fixed reference-bus angle. Paper, Eq. (1).

The method

Change the training problem, retain the learned weights

Reading the graphical abstract

In the graphical abstract above, the neural network represents the map from problem parameters to candidate power-system decisions. The central sequence of stylized optimization landscapes illustrates how homotopy gradually restores the original training problem as \(\lambda_H\) increases from 0 to 1. The grid represents the AC-OPF application and its nonlinear power-flow constraints.

The lower feedback loop closes the training process: evaluate the objective and constraint penalties on the predictions, then differentiate this loss to update the network weights. The abstract groups loads and network data as problem information; the reported AC-OPF experiments vary load profiles on a fixed network. Moving points and grid states are explanatory illustrations, not measured training trajectories.

The overall algorithm

  1. Predict from sampled loads. Sample active and reactive load profiles \(\xi\). The neural policy \(x=\pi_\Theta(\xi)\) predicts bus voltages \(V\), active generation \(P_g\), and reactive generation \(Q_g\), without solver-generated optimal labels.
  2. Train at the current homotopy stage. Choose the transformations and hold \(\lambda_H\) fixed while minimizing the current objective and equality/inequality penalties through automatic differentiation. The AC-OPF generation pull-up penalty remains active and unchanged.
  3. Advance and reuse the weights. Increase \(\lambda_H\) toward 1, carry the learned weights into the next stage, and train again. Depending on the selected transformation, this restores the original loads or admittance matrix, tightens relaxed bounds or equality tolerances, or increases penalty strength.
  4. Use the trained solution map. After training at \(\lambda_H=1\), keep the network weights fixed. A forward pass predicts an approximate dispatch for a new load profile. Homotopy guides offline training; it does not provide an exact feasibility or optimality certificate for the prediction.
\[\mathcal L_{\lambda_H}(\Theta)=f_{\lambda_H}(x,\xi)+\sum_i w_i p_i\!\left(h_{\lambda_H,i}(x,\xi)\right)+\sum_i w_i p_i\!\left(g_{\lambda_H,i}(x,\xi)\right),\qquad x=\pi_\Theta(\xi)\]

Objective plus penalties for equality and inequality violations. The AC-OPF experiments add a generation pull-up penalty throughout the schedule. Eq. (5) and Appendix A.

Type I · Relax the training problem

  • Convexify Objective (CObj): interpolate from a convex surrogate to the original objective.
  • Shrink Bounds (SBnds): gradually tighten relaxed variable bounds.
  • Grow Penalty (GPen): increase the influence of inequality violations in the training loss.
  • Split and Shrink (SaS): replace an equality by a tolerance band, then shrink the band toward zero.

Type II · Use power-system structure

Load stepping scales loads from zero toward their target values in the power-balance equations.

Transmission (Tx) stepping interpolates the admittance matrix from nearly shorted lines to the original network:

\[Y_{\lambda_H}=(1-\lambda_H)Y_0+\lambda_HY_{\mathrm{bus}}.\]

These transformations can be paired with Type I relaxations. They guide training without certifying the feasibility of the entire path.

Original paper diagram: supervised and self-supervised learning
Paper Figure 1 compares supervised training against solver-generated optimal labels with self-supervised training using objective and constraint evaluations.
Original Figure 1. The method on this page uses the self-supervised route.

Reported experiments

Smaller constraint residuals on case30

On the 30-bus AC-OPF benchmark, all six reported homotopy configurations have lower mean and maximum equality violations than the original penalty method. Tx-stepping with Grow Penalty has the smallest reported mean equality violation: 0.0017 (0.0009), compared with 0.0036 (0.0027) for direct penalty training.

Mean equality violations across 100 case30 test instances, with standard deviations: Original penalty 0.0036 (0.0027); SaS and SBnds 0.0027 (0.0015); SaS and GPen 0.0023 (0.0014); Tx and SBnds 0.0024 (0.0013); Tx and GPen 0.0017 (0.0009); Load and SBnds 0.0020 (0.0012); Load and GPen 0.0024 (0.0016).
Redrawn from Table I. Points and error bars show the average and standard deviation of the per-instance mean-equality metric over 100 test instances. They are not confidence intervals or variation across training seeds.
Table I · AC-OPF on case30, 100 test instances
MethodObjective
($/h)
Mean equality
violation
Max equality
violation
Mean inequality
violation
Max inequality
violation
SaS + SBnds6660.0027 (0.0015)0.010 (0.005)0.0000 (0.0000)0.000 (0.001)
SaS + GPen6660.0023 (0.0014)0.008 (0.005)0.0000 (0.0000)0.000 (0.000)
Tx-stepping + SBnds6650.0024 (0.0013)0.008 (0.005)0.0000 (0.0000)0.000 (0.000)
Tx-stepping + GPen6650.0017 (0.0009)0.006 (0.003)0.0000 (0.0000)0.000 (0.000)
Load-stepping + SBnds6660.0020 (0.0012)0.007 (0.004)0.0000 (0.0000)0.000 (0.000)
Load-stepping + GPen6670.0024 (0.0016)0.009 (0.005)0.0000 (0.0000)0.000 (0.000)
Original penalty6730.0036 (0.0027)0.013 (0.010)0.0000 (0.0000)0.001 (0.003)

Violation entries are average (standard deviation) across test instances; units are not specified in the table. Zeros are reported at the paper’s displayed precision. Objective values describe the predicted dispatch, not a certified optimality gap. Source: Table I.

Experimental setting and training details
Data
50,000 sampled load profiles; 80/10/10% train/validation/test split. Loads range from 75% to 150% of the base profile. Table I reports 100 test instances.
Network and optimizer
Two-layer cylinder network, hidden size 200; PyTorch and Adam; batch size 1,024.
Loss and schedule
Equality weight 105; inequality, warm homotopy loss, and pull-up weights 106. Homotopy step ΔλH = 0.05.
Training budget
Original penalty: up to 1,000 epochs. Homotopy: up to 100 epochs per stage. Early stopping is used; the schedules do not impose equal total computation.

Appendix A gives learning-rate and early-stopping settings. Hardware and inference runtimes are not reported.

Synthetic problems expose the trade-off

The paper also tests a nonconvex objective with random linear constraints at 5, 25, 50, and 100 variables. At 100 variables, SaS + SBnds reduces the reported mean inequality violation from 0.0015 (0.0023) to 0.0002 (0.0009), while its objective is higher: 272.36 versus 208.71. SaS + GPen instead has a larger mean violation, 0.0031 (0.0067). The choice of homotopy matters.

Table II, n = 100, 100 test instances; ΔλH = 0.005 and inequality weight 500. Objective and residual units are unspecified. Lower objectives from infeasible candidates do not establish better feasible solutions. Full results in Table II.

Scope and interpretation

A useful heuristic, with empirical evidence

What the experiments establish

The reported case30 comparisons show lower constraint violations than the original neural penalty baseline. The synthetic tests illustrate how different continuation choices affect the balance between objective value and residuals.

What remains open

Penalty training does not provide exact feasibility or global optimality. The manuscript reports no physical-grid deployment, inference-speed benchmark, feasibility percentage, or explicit numerical comparison with a full OPF solver. Generalization beyond the sampled load conditions is not established.

Read and cite

Resources

Published in the 2026 IEEE Power & Energy Society General Meeting (PESGM), Montréal, Canada.

Citation

IEEE PESGM 2026
@inproceedings{li2026homotopy,
  title = {Homotopy-Guided Self-Supervised Learning of Parametric
           Solutions for {AC} Optimal Power Flow},
  author = {Li, Shimiao and Tuor, Aaron and Vrabie, Draguna
            and Pileggi, Larry and Drgona, Jan},
  booktitle = {2026 IEEE Power \& Energy Society General Meeting (PESGM)},
  year = {2026},
  doi = {10.1109/PESGM58988.2026.11693405},
  url = {https://ieeexplore.ieee.org/document/11693405/}
}

The scientific presentation, equations, results, and training settings were checked against the published IEEE PESGM 2026 paper, including Appendix A. Links to the arXiv manuscript provide open access to the corresponding sections.