AC Optimal Power Flow determines the cost-minimizing generator dispatch while satisfying the complete AC power flow equations, voltage constraints, and reactive power limits.
Aspect | DC-OPF | AC-OPF |
|---|---|---|
Power Flow | P only | P and Q |
Voltage | 1.0 (fixed) | Variable |
Network Model | X only | R + jX |
Equations | Linear | Nonlinear |
Variables | θ (angles) | |V| (magnitudes) + θ |
Losses | Ignored | Included |
Problem Type | LP/QP | NLP |
Solution | Global optimum | Local optimum |
Speed | Faster | Slower |
Accuracy | Approximate | High |
Use AC-OPF when:
Validating dispatch feasibility
Voltage stability critical
Reactive power planning
Accurate loss calculation
Generator capability curves matter
Detailed operational studies
Use DC-OPF when:
Faster speed is critical
Voltage is not a concern
Large-scale studies (many scenarios)
Market clearing considering active power only
Symbol | Description |
|---|---|
Set of generators | |
Set of buses | |
Set of transmission lines | |
Bus indices | |
Generator index | |
Line index |
Variable | Unit | Domain | Description |
|---|---|---|---|
p.u. | Continuous | Active power generation | |
p.u. | Continuous | Reactive power generation | |
p.u. | Continuous | Voltage magnitude at bus | |
rad | Continuous | Voltage angle at bus |
Key difference from DC: Voltage magnitudes are now variables!
Parameter | Description |
|---|---|
Admittance matrix element | |
Conductance between buses and | |
Susceptance between buses and | |
Angle difference |
Parameter | Unit | Description |
|---|---|---|
p.u. | Active power limits | |
p.u. | Reactive power limits | |
$/h | Generation cost (function of P only) |
Parameter | Unit | Description |
|---|---|---|
p.u. | Active load at bus | |
p.u. | Reactive load at bus | |
p.u. | Voltage magnitude limits | |
p.u. | Apparent power limit on line |
Minimize total generation cost:
Kirchhoff's Current Law (real part):
Physical meaning: For every bus, the net active power injection is balanced by the local active power demand.
Nonlinearity in AC power flow
Compare to DC: DC used simplified equation
Kirchhoff's Current Law (imaginary part):
Physical meaning:
Reactive power must also satisfy a nodal power balance at each bus.
Active power limits:
Reactive power limits:
Important: Real generators have coupled P-Q capability curves (more complex than box constraints).
Operational voltage range:
Limits in KPG 193:
345 kV, 765 kV: 0.95 ≤ V ≤ 1.05 p.u.
154 kV: 0.90 ≤ V ≤ 1.10 p.u.
Why limits matter:
Equipment designed for nominal voltage
Low voltage → Poor motor performance, dimming lights
High voltage → Insulation stress, equipment damage
Apparent power (thermal) limit:
More accurate than DC: Considers both P and Q flows
Line flow calculation:
Where is conjugate of line current.
Slack bus angle:
Same as DC-OPF: angles are relative.
For line from bus to bus :
Active power flow:
Reactive power flow:
Where:
- Conductance
- Susceptance
- Line charging (half at each end)
Products of variables:
(bilinear term)
, (trigonometric)
Consequence:
No global optimum guarantee
Multiple local optima possible
Convergence not guaranteed
Sensitive to starting point
Key principle: Reactive power supports voltage
Methods to control voltage:
Generator excitation (increase Q output)
Shunt capacitors (inject Q)
Shunt reactors (absorb Q)
Transformer taps (change voltage ratio)
In AC-OPF: Optimize generator Q dispatch
Phenomenon: Insufficient reactive power → voltage decay
Indicators in AC-OPF:
Voltage limits binding
Reactive limits binding
High losses
Power losses in line:
Where:
= Line current
= Line resistance
= Power flows
= Voltage magnitude
Key observations:
Losses are nonlinear in P and Q
Losses increase with square of power flow
Low voltage → higher losses
Security-Constrained AC-OPF with N-1 contingencies
Optimal Reactive Dispatch: Given P dispatch, optimize Q for voltage profile
Feature | ED | UC | DC-OPF | AC-OPF |
|---|---|---|---|---|
Problem Type | LP/QP | MIP | LP/QP | NLP |
Network Model | ✗ | ✗ | ✓ DC (Linearized) | ✓ AC |
Time Periods | Single | Multiple (24+) | Single | Single |
Commitment | ✗ | ✓ Binary | ✗ | ✗ |
Transmission Limits | ✗ | ✗ | ✓ | ✓ |
Voltage Constraints | ✗ | ✗ | ✗ | ✓ |
Reactive Power | ✗ | ✗ | ✗ | ✓ |
Transmission Losses | ✗ | ✗ | ✗ | ✓ |
Solve Time | Fastest | Slow | Fast | Medium |
Compare all models: Solver Comparison →
Multi-period scheduling: Unit Commitment →
Try it: KPG Run Getting Started →