power flow equations: complexity, approximations and relaxations · 2015. 1. 14. · nicta...

162
NICTA Copyright 2014 From imagination to impact Power Flow Equations: Complexity, Approximations and Relaxations Pascal Van Hentenryck

Upload: others

Post on 16-Mar-2021

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Flow Equations:

Complexity, Approximations and Relaxations

Pascal Van Hentenryck

Page 2: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Credits‣ Power systems

– PSCC’11, PES’12 (2), PSCC’14 (5) – IJEPES (to appear)

‣ Operations research – IJOC 2014, Mathematical Programming 2015

‣ Submissions – complexity results (under submission)

‣ People – C. Coffrin, A. Grastien, H. Hijazi, K. Lehmann, T. Mak – R. Bent (LANL) – D. Hill and I. Hiskens

2

Page 3: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Outline

‣ Motivation ‣ Power Flow Formulations ‣ Complexity ‣ The LPAC Approximation ‣ Case Studies for LPAC ‣ Convex Relaxations ‣ Case Studies for Convex Relaxations ‣ Beyond Steady States

3

Page 4: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Systems‣ Biggest machine on earth

– 400 billions of electricity

4

Page 5: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Why fix it?‣ New challenges

– challenging existing assumptions ‣ New applications

– requiring new technology ‣ New enabling technologies

– enabling new functionalities

5

Page 6: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Motivation.

6

‣ Category 3 – August 21-28, 2011

‣ Fatalities – 49 direct (+ 7)

‣ Damages – ~ $15 billions

Page 7: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact 7NICTA Copyright 2012 From imagination to impact

Hurricane Irene

‣ Strategic Stockpiling ‣ Repositioning ‣ Power Restoration

Page 8: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

San Diego Blackout ‣ Causes

– Tripping of a line between Arizona and California – Cascading effect (not supposed to happen)

‣ Effects – >4 millions people without power, Sept. 8-9, 2011

‣ Economic Losses over US$ 100 million – Opportunity losses: $70 million – Overtime workers: $20 million – Spoiled food: $18 million

8

Page 9: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Joint Repair and Power Restoration

‣The challenge - Schedule a fleet of repair crews to repair the grid and

minimize the overall size of the blackout after a disaster ‣Two fundamental aspects

- Scheduling the repairs - Scheduling the power restoration - Both are challenging in their own right

‣Assumptions for Last-Mile Restoration - Steady state behavior of the power grid - Ability to dispatch load and generation continuously

Page 10: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact 10

Joint Repair and Power Restoration

Component  repair

Increase  in  served  demand

Page 11: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact 11

Joint Repair and Power Restoration

Page 12: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

• 2-Step Approach (PSCC’11)

• Restoration Ordering Problem (ROP)

• Pickup and Delivery Routing with Precedences • Randomized Adaptive Decomposition over LNS over CP

Joint Repair and Power Restoration

12

Page 13: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Restoration Ordering Problem (ROP)

13

Initial Steady State Steady State 1 Steady State 2 Final Steady

State N

Fix item x1 Fix item x2

Fix item x3, x4,…, xN

‣Find the best sequence of restoration [x1,x2,x3,…,xn] so that the size of the blackout is minimised

Page 14: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

The ROP Problem

‣ Extremely challenging computationally – generalizes transmission switching

14

Page 15: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Computational Challenge

15

presolved problem has 1960 variables and 2186 constraints 510 constraints of type <varbound> 1475 constraints of type <linear> 201 constraints of type <logicor> Presolving Time: 0.52 time | node | dualbound | primalbound | gap 1.0s | 1 | 1.602999e+02 |-0.000000e+00 | 100.00% 14.3s | 1 | 1.602999e+02 | 1.213604e+02 | 24.29% 779s | 12012 | 1.602999e+02 | 1.228179e+02 | 23.38% 812s | 12658 | 1.602999e+02 | 1.238971e+02 | 22.71% 827s | 12858 | 1.602999e+02 | 1.263328e+02 | 21.19% 1019s| 18895 | 1.602999e+02 | 1.324728e+02 | 17.36% 1147s| 24867 | 1.602999e+02 | 1.353018e+02 | 15.59% 1276s| 33091 | 1.602999e+02 | 1.362924e+02 | 14.98% 1294s| 34851 | 1.602999e+02 | 1.419186e+02 | 11.47% 1958s| 91300 | 1.602999e+02 | 1.447137e+02 | 9.72% 5882s|435468 | 1.602999e+02 | 1.460944e+02 | 8.86% 202m| 1038k | 1.602999e+02 | 1.464802e+02 | 8.62% 253m| 1344k | 1.602999e+02 | 1.464802e+02 | 8.62%

Page 16: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

The ROP Problem

‣ Extremely challenging computationally – generalizes transmission switching

‣ Braess paradox – restoring a line may decrease the network flow

16

Page 17: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Braess Paradox

17

Page 18: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact 18

Joint Repair and Power Restoration

Page 19: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact 19

The ROP Problem

‣ Modeling the power system – Line capacities (thermal constraints) – Constraints on real and reactive power injections – Power Flow equations

Page 20: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Flow Equations‣ Ohm’s law for each line (i,j)

‣ Kirchhoff’s current law for each bus i

20

pij “ gijv2i ´ gijvivj cosp✓i ´ ✓jq ´ bijvivj sinp✓i ´ ✓jq (1)

qij “ ´bijv2i ` bijvivj cosp✓i ´ ✓jq ´ gijvivj sinp✓i ´ ✓jq (2)

pi “ÿ

pi,jqPEpij

qi “ÿ

pi,jqPEqij

Page 21: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

The Core ROP Subproblem‣ Push as much load as possible in the network

while satisfying the power flow and side constraints – nonlinear – nonconvex – discrete

21

Page 22: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

The Linear DC Model

22

Ignore reactive power

conductance is much smaller than susceptance

sin(x) close to x when x is small

pij “ gijv2i ´ gijvivj cosp✓i ´ ✓jq ´ bijvivj sinp✓i ´ ✓jq (1)

qij “ ´bijv2i ` bijvivj cosp✓i ´ ✓jq ´ gijvivj sinp✓i ´ ✓jq (2)

Voltage magnitudes are close to 1.0

Page 23: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

pi “ÿ

pi,jqPEpij

The Linear DC Model‣ Ohm’s law for each line (i,j)

‣ Kirchhoff’s current law for each bus i

23

pij “ ´bijp✓i ´ ✓jq

Page 24: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

pij § bijp✓i ´ ✓jq ` Mp1 ´ zijqpij • bijp✓i ´ ✓jq ´ Mp1 ´ zijq

‣ The power equation becomes

‣ It is nonlinear: can be linearized since zi is a 0/1 variable

In the ROP

pij “ ´bijzijp✓i ´ ✓jq

Page 25: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Case Studies

‣ 15 large disaster scenarios – with damage size in 50-1000

‣ Generated using, – US Transmission and Transportation Infrastructure – State-of-the-art disaster simulation tools (NHC, FEMA)

‣ Study quality over 0.5 - 8 hours – Average of 10 runs

‣ Comparing with best practices in the field – utilisation heuristics + greedy routing

‣ Lower bound – assuming infinitely many crews

25

Page 26: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact26

Case Studies

0 500 1000 1500 2000

1600

1800

2000

2200

2400

2600

Restoration Timeline − BM2 S16

Time

Powe

r Flo

w

● ●● ●

● ●●● ●●●●● ●●● ●● ● ●●●● ●

● ● ●●● ● ● ● ●● ●● ●● ●

● ●

● ●

292835.177

Page 27: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact27

0 500 1000 1500 2000

1600

1800

2000

2200

2400

2600

Restoration Timeline − BM2 S16

Time

Powe

r Flo

w

● ●● ●

● ●●● ●●●●● ●●● ●● ● ●●●● ●

● ● ●●● ● ● ● ●● ●● ●● ●

● ●

● ●

532409.453

Case Studies

Page 28: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact28

0 500 1000 1500 2000

1600

1800

2000

2200

2400

2600

Restoration Timeline − BM2 S14

Time

Powe

r Flo

w

● ● ●

●● ● ●●

● ●

●● ● ● ●● ●

● ●●

●● ●●

● ● ●● ●

● ● ● ●

366219.884

Case Studies

Page 29: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Case Studies

0 500 1000 1500 2000

1400

1600

1800

2000

2200

2400

2600

Restoration Timeline − BM2 S9

Time

Powe

r Flo

w

● ●● ●●●●● ●●●●●● ●●●● ●●●●●●●●●● ●●●●●● ●●●●●● ●

●●●

●●●

●●●●●●●●●●●●

● ●●●●●●●●●●●●●●

●● ● ●● ● ●●●

●● ●

567393.666

29

Page 30: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Case Studies

0 500 1000 1500 2000 2500

1000

1500

2000

2500

Restoration Timeline − BM2 S3

Time

Powe

r Flo

w

● ● ● ●●●● ●●●●●●●●

●● ●●●●●●●● ●●●●●●●

●●●●●●●●●

●●●●●●●●●●●●●●●

●●● ●●●●●●●●●●●●●●●●

●●●●●● ●●●

●●● ●●● ●

●● ●●●●

● ●

981149.0342

30

Page 31: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Case Studies

31

Page 32: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Restoration

32

Page 33: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact 33

q A fundamental open question ‣Is this “optimal” restoration plan “feasible” operationally?

Power Restoration

Page 34: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact 34

q A fundamental open question ‣Is this “optimal” restoration plan “feasible” operationally?

‣ These are not “normal operating” conditions -“Maddeningly difficult” to find an AC solution in cold start contexts [Overbye et al, 2004]

‣ The ROP is stressing the network

Power Restoration

Page 35: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

AC Power/Load Flow ‣ Seed a power flow study

– with the optimization results ‣ Different information for different buses

35

Page 36: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact 36

Power Restoration

Page 37: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2012 From imagination to impact

N-3 Contingencies (IEEE-30)

37

IEEE PES’12

Page 38: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2012 From imagination to impact

N-10 Contingencies (IEEE-30)

38

Page 39: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Expansion Planning

‣ Simplest problem formulation – starting point

‣ Network design problem – add lines to meet the increased load

‣ Under – voltage constraints – thermal limits – constraints on real and reactive power injection

39

Page 40: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Expansion Planning

40

Page 41: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

New Challenges

‣ Power applications that – are mixed nonlinear optimisation problems – require accurate (coupled?) models of the power

system • congestion

‣ Observe that – the discrete nature precludes some technology

• integrating discrete optimization and homotopy methods is not easy

– need for relaxations! • performance guarantees

41

Page 42: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Outline

‣ Motivation ‣ Power Flow Formulations ‣ Complexity ‣ The LPAC Approximation ‣ Case Studies for LPAC ‣ Convex Relaxations ‣ Case Studies for Convex Relaxations ‣ Beyond Steady States

42

Page 43: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Flows‣ Complex Number Formulation

43

Page 44: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Flows‣ Rectangular formulation

44

Page 45: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Flows‣ Hybrid formulation

45

Page 46: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Flows‣ Side constraints

46

Page 47: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

W-Formulation‣ Define

‣ Power Flow becomes

47

Wij = ViV⇤j

Page 48: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

W-Formulation

48

pij = gijwRii � gijwR

ij � bijwIij

qij = �bijwRii + bijwR

ij � gijwIij

Page 49: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Dist-Flow Relaxation

‣ M. E. Baran and F. F. Wu, “Network reconfiguration in distribution systems for loss reduction and load balancing,” 1989.

49

Page 50: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Outline

‣ Motivation ‣ Power Flow Formulations ‣ Complexity ‣ The LPAC Approximation ‣ Case Studies for LPAC ‣ Convex Relaxations ‣ Case Studies for Convex Relaxations ‣ Beyond Steady States

50

Page 51: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Complexity of AC-Feasibility‣ AC-Feasibility is NP-Hard

– D. Bienstock and A. Verma (2006)

51

‣ What are bananas? – small circuits that create discontinuities

Page 52: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Complexity of AC-Feasibility‣ AC-Feasibility is NP-Hard

– D. Bienstock and A. Verma (2006) – Introducing discontinuities

52

max

X

i

pdi

subject to

pgi � pdi =

X

(i,j)

pij

pij = �bijsin(✓i � ✓j)

|✓i � ✓j | ✓u

pgli pgi pgu

i

pdli pgi pdu

i

Only extension to LDC needed to be NP-

hard

Page 53: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Complexity of AC-Feasibility‣ AC-Feasibility on Acyclic Networks is NP-Hard

– K. Lehmann, A. Grastien, and P. Van Hentenryck

53

solve

pgi � pd

i =

X

(i,j)

pij

qgi � qd

i =

X

(i,j)

qij

pij = gij(1� cos(✓i � ✓j))� bij sin(✓i � ✓j)

qij = �bij(1� cos(✓i � ✓j))� gij sin(✓i � ✓j)

|✓i � ✓j | ✓u

Page 54: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

AC-Feasibility on Acyclic Networks‣ Star Network

‣ Key ideas

54

L G

G

G

G

Page 55: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Outline

‣ Motivation ‣ Power Flow Formulations ‣ Complexity ‣ The LPAC Approximation ‣ Case Studies for LPAC ‣ Convex Relaxations ‣ Case Studies for Convex Relaxations ‣ Beyond Steady States

55

Page 56: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact 56

The AC/DC Conundrum

‣Find an approximation of AC power flows that - is more accurate than the LDC model - is useful outside normal operating conditions - reasons about voltage magnitudes and reactive power - can be embedded in discrete optimization solvers

• mixed integer programming solvers

Page 57: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Trigonometric Functions

‣ Two approximations – sin(x) is replaced by x – cosine is replaced by its piecewise linear relaxation

57

pij = gijv2i � gijvivj ccos(✓i � ✓j))� bijvivj(✓i � ✓j)qij = �bijv2i + bijvivj ccos(✓i � ✓j))� gijvivj(✓i � ✓j)

Page 58: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Trigonometric Functions

58

Page 59: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Voltage Magnitudes

59

‣ Understanding power flows [Grainger, 94]

– Phase angle differences determine active power

– Voltage magnitude differences determine reactive power

‣ Experiments

– Per unit system

– Look at how the equations behave when

• g = 0.2 and b = 1.0 vi “ 1.0, vj P p0.8, 1.2q, p✓i ´ ✓jq P p´⇡{6,⇡{6q

Page 60: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Voltage Magnitudes

60

Page 61: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

v “ v̂ ` �

Voltage Magnitudes

61

‣ Key ideas

- Substitute into the power flow equations - First-order Taylor expansion to remove quadratic terms

Page 62: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Outline

‣ Motivation ‣ Power Flow Formulations ‣ Complexity ‣ The LPAC Approximation ‣ Case Studies for LPAC ‣ Convex Relaxations ‣ Case Studies for Convex Relaxations ‣ Beyond Steady States

62

Page 63: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Experimental Settings‣ Bonmin (Bonami 2008)

– heuristics for solving MINLPs. – outer approximation method for convex MINLPs

‣ QP and SOCP – CPLEX 12.8 or Gurobi

‣ Ipopt (Waechter and Biegler 2006) – NLP

63

Page 64: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Experimental Results

64

‣ Wide variety of IEEE and MATPOWER Benchmarks

- ieee14,mp24,ieee30,mp30,mp39,ieee57,ieee118,ieedd17,mp300

- Small benchmarks are easy in general - IEEE 118 is also easy

- All LPAC models solved almost instantly (LPs)

‣ Comparison with an AC Solver

- LDC and LPAC solutions versus an AC solution

Page 65: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Line Active Power

Page 66: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Line Active Power

DC Model LPAC Model

66

Page 67: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Bus Angles

LPAC ModelDC Model

Page 68: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2012 From imagination to impact

Importance of cos: Reactive Power

Cold-Start LPAC Model (cos=1) Cold-Start LPAC Model

Page 69: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Restoration

69

Page 70: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Restoration

70

Page 71: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Restoration

71

Page 72: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

DC versus LPAC in Restoration

72

Page 73: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

DC versus LPAC in Restoration

73

How good is the DC ordering?

Page 74: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Expansion Planning

‣ Simplest problem formulation – starting point

‣ Network design problem – add lines to meet the increased load

‣ Under – voltage constraints – thermal limits – constraints on real and reactive power injection

74

Page 75: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Expansion Planning

75

Page 76: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Heuristic AC Method (HAC)

‣ Many proposals

‣ Destructive heuristics – start with all the possible lines (feasible solution) – consider each line l in turn for removal

• if feasible in AC model, remove the line l – order the line by increasing relative load

‣ Outperforms the state of the art – constructive methods

76

Page 77: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Case Studies

‣ Traditional benchmarks

‣ New benchmarks – MathPower benchmarks – load and generation scaled by a factor of 3 – reaction injection is half of the real injection – cost is 1

77

Page 78: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Measuring Accuracy

‣ Thermal limits

‣ Voltage magnitudes

78

max(

pp2nm + q2nmSunm

,

pp2mn + q2mn

Sumn

)

max(0,vun � vn, vn � vl

n)

Page 79: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Core Results

79

Page 80: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Constraint Tightening (10%)

80

Page 81: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

VAr Compensation

‣ VAr compensation is cheaper – can be used to meet voltage bounds

‣ Case study: Perfect Voltage Profile (PVP) – unlimited Var compensation at each bus – bus becomes synchronous condenser

• unlimited reactive power injection, voltage set-point at 1.0

– DC model • VAr compensation used in second step (cross-over)

– LPAC model • a single, integrated model

81

Page 82: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

VAr Compensation

82

Page 83: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

VAr Compensation

83

Page 84: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

VAr Compensation

84

Page 85: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Outline

‣ Motivation ‣ Power Flow Formulations ‣ Complexity ‣ The LPAC Approximation ‣ Case Studies for LPAC ‣ Convex Relaxations ‣ Case Studies for Convex Relaxations ‣ Beyond Steady States

85

Page 86: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

SDP Relaxation‣ Lavaei, J., Low, S.: Zero duality gap in optimal power flow

problem. (2012)

86

Page 87: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

SOCP Relaxation‣ Jabr, R.: Radial distribution load flow using conic

programming. (2006) ‣ Sojoudi, S., Lavaei, J.: Network Topologies Guaranteeing

Zero Duality Gap for Optimal Power Flow Problem.(2012)

87

wii wij

wji wjj

�⌫ 0

Page 88: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

SOCP Relaxation‣ Jabr, R.: Radial distribution load flow using conic

programming. (2006) ‣ Sojoudi, S., Lavaei, J.: Network Topologies Guaranteeing

Zero Duality Gap for Optimal Power Flow Problem.(2012)

88

wii � 0wiiwjj � (wR

ij)2 + (wI

ij)2

Page 89: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Dist-Flow Relaxation

‣ Define

89

only appear squared

Page 90: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Dist-Flow Relaxation

‣ M. Farivar et al: Inverter var control for distribution systems with renewables, 2011

90

Page 91: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Transcendental Relaxation‣ Key ideas

– compositional, structural relaxation – relax trigonometric functions – exploit the narrow bounds in power systems

– dual modelling ‣ Resulting optimization model

– quadratic and convex

91

Page 92: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Flow Equations‣ Ohm’s law for each line (i,j)

‣ Kirchhoff’s current law for each bus i

92

pij “ gijv2i ´ gijvivj cosp✓i ´ ✓jq ´ bijvivj sinp✓i ´ ✓jq (1)

qij “ ´bijv2i ` bijvivj cosp✓i ´ ✓jq ´ gijvivj sinp✓i ´ ✓jq (2)

pi “ÿ

pi,jqPEpij

qi “ÿ

pi,jqPEqij

Page 93: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Convex Quadratic Relaxation‣ Quadratic convex relaxation of

– cosine function – square function

‣ Polyhedral relaxation of – sine function

‣ MacCormick relaxation of – multi-linear terms

93

Page 94: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact 94

QP Relaxation of Cosine

Page 95: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

‣Convex quadratic relaxation of cosine

‣Proposition:

|cosp✓q “ 1 ´˜1 ´ cosp✓uq

p✓uq2

¸✓2.

@✓ P r´✓u, ✓us : |cosp✓q • cosp✓q.

QP Relaxation of Cosine

95

Page 96: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

QP Relaxation of Square

96

Page 97: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

QP Relaxation of Square‣ Convex quadratic Relaxation

97

qv2 • v2

qv2 §`vu ` vl

˘v ´ vuvl

Page 98: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

QP Relaxation of Sine

98

Page 99: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Polynomial Relaxation of Sine

‣ Polynomial relaxation

‣ Proposition:

99

|sinp✓q § cos

ˆ✓u

2

˙ ˆ✓ ´ ✓u

2

˙` sin

ˆ✓u

2

˙

|sinp✓q • cos

ˆ✓u

2

˙ ˆ✓ ` ✓u

2

˙´ sin

ˆ✓u

2

˙

@✓ P r´✓u, ✓us : cos

`✓u

2

˘ `✓ ´ ✓u

2

˘` sin

`✓u

2

˘• sinp✓q.

Page 100: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

MacCormick Relaxations

‣ Sequential Bilinear Relaxations

100

}vivj • vlivj ` vljvi ´ vlivlj

}vivj • vui vj ` vuj vi ´ vui vuj

}vivj § vlivj ` vuj vi ´ vlivuj

}vivj § vui vj ` vljvi ´ vui vlj

Page 101: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

The Initial QC Model

101

Page 102: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Dual Modelling‣ Key idea

– Use several models of the optimisation problem – The solution set is the intersection

‣ Heavily used in optimisation for decades – constraint programming (early 1990s)

• improving propagation – mathematical programming

‣ In nonlinear optimisation – Formalized by [Liberty, 04] to strengthen the relaxation – Generalized reduction constraints [Ruiz & Grossmann, 11]

• intersecting several formulations based on physical interpretation of the problem

102

Page 103: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Redundancy in MINLP

103

Page 104: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Redundancy in MINLP

104

Page 105: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Loss Formulation‣ Power loss on line (i,j)

105

Current magnitude squared

Page 106: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

The QC-NLP Model

106

‣ Power loss on line (i,j)

‣ Proposition:

How to prove this?

Use the perspective z f(x/z,y/z) where f(x,y) = x2 + y2

Page 107: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

The QC-SOCP Model

107

‣ Second-Order Cone Formulation – [Farivar, M., Clarke, C., Low, S., Chandy, K. 2011]

Page 108: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

One/Off Constraints

108

‣ Can we avoid big-M transformations?

Page 109: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

On/Off Constraints

109

Page 110: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

On/Off Constraints

110

‣ Can I represent the convex hull in the original space of variables?

Page 111: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

On/Off Constraints: Point Case‣ When is a point,

the convex hull becomes

111

Page 112: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

On/Off Constraints: quadratic‣ Consider the function

‣ The convex hull becomes

112

Page 113: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

On/Off Constraints‣ The idea can be generalised for intervals and

monotone functions: e.g. linear constraints

113

Page 114: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

On/Off Constraints‣ The idea can be generalised for intervals and

monotone functions: e.g. linear constraints

114

Page 115: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

On/Off Constraints in Power Systems‣ When a line is switched off, the phase angle

difference must increase. ‣ We can then apply the above results to each

constraint

115

Page 116: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

On/Off Constraints in Power Systems‣ Sine constraint

116

Page 117: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

On/Off Constraints in Power Systems

117

Page 118: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Outline

‣ Motivation ‣ Power Flow Formulations ‣ Complexity ‣ The LPAC Approximation ‣ Case Studies for LPAC ‣ Convex Relaxations ‣ Case Studies for Convex Relaxations ‣ Beyond Steady States

118

Page 119: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Experimental Settings‣ Instances: [Matpower 2011]

‣ Congested Instances

119

Page 120: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Power Flows

‣ The problem – Minimize the cost of generation for a given load – Intensively studied – Purest

120

Page 121: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Power Flows

121

quadratic production cost

Page 122: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Power Flows

122

Page 123: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Power Flows

123

Page 124: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Power Flows

124

Page 125: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Power Flows

125

Page 126: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Power Flows: Summary‣ Dual modelling is critical ‣ QC-NLP dominates the SOCP relaxation

– especially on congested benchmarks ‣ QC-NLP is orders of magnitude faster than the

SDP relaxation with minimal loss in accuracy ‣ QC-NLP is orders of magnitude faster than QC-

SOCP

126

Page 127: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Outline‣ Motivation ‣ Complexity ‣ The LPAC Approximation

– The model – Power restoration

‣ The QC Relaxation – The model – Optimal power flow – Optimal line-switching power flow – Capacitor placement

‣ Conclusion and future work

127

Page 128: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Line-Switching Power Flows‣ The Problem

– same as OPF but allows to switch off lines – exploit Braess paradox in power systems – very hard computationally

‣ Prior work – [Fisher, O’Neil, Ferris, 07], [Bienstock, 12] – shows the cost benefits of switching lines off – based on the LDC model

‣ This work – First attempt at provable quality bounds

128

Page 129: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Line-Switching Power Flows

129

‣ The AC Model

Page 130: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Line-Switching Power Flows‣ AC-MINLP

– the AC version ‣ DC

– the original version: Fisher, O’Neill, Ferris, 2008 ‣ QC

– QC-NLP – QC-SOP

130

Page 131: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Line-Switching Power Flows

131

Page 132: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Line-Switching Power Flows

132

Page 133: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Line-Switching Power Flows

133

Page 134: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Line-Switching Power Flows

134

Page 135: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Optimal Line-Switching Power Flows‣ The DC model is overly optimistic

– infeasible configurations – suboptimal solutions when crossed-over

‣ QC bounds shows the quality of heuristic B&B – small gaps: 0.13% and 1.95% on traditional

benchmarks at the root node – gaps can reached 40% on congested benchmarks at

the root node – gaps can be reduced to 4% by solving the mixed

integer version

135

Page 136: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Outline‣ Motivation ‣ Complexity ‣ The LPAC Approximation

– The model – Power restoration

‣ The QC Relaxation – The model – Optimal power flow – Optimal line-switching power flow – Capacitor placement

‣ Conclusion and future work

136

Page 137: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Capacitor Placement‣ Capacitors inject reactive power ‣ The problem is to place capacitors in a network

to improve the voltage profile – well-studied problems – almost always tackled by heuristics

• need to reason about reactive power and voltage magnitudes

‣ The goal is to minimize the number of capacitors

137

Page 138: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Capacitor Placement

138

Page 139: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Capacitor Placement‣ Key Messages

– MINLP heuristics give near optimal solutions – QC gives tight lower bounds

• justifying the first message – The QC model scales well to medium-sized instances

139

Page 140: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Capacitor Placement

140

Page 141: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Reconfiguration Problems‣ Find out the network topology (by opening and

closing switches) to – minimize losses – or maximize balances

‣ while satisfying operational constraints – thermal limits – phase angle and voltage magnitude constraints – …

‣ Relaxation – Dist-flow for radial networks, QC for meshed networks

141

Page 142: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Loss Minimization

142

Page 143: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Loss Minimization

143

Page 144: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Reconfiguration Problems‣ Key messages

– Zero-gap relaxation on radial networks – Tight on meshed networks

• loses accuracy on the largest one – Scalability

144

Page 145: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Outline

‣ Motivation ‣ Power Flow Formulations ‣ Complexity ‣ The LPAC Approximation ‣ Case Studies for LPAC ‣ Convex Relaxations ‣ Case Studies for Convex Relaxations ‣ Beyond Steady States

145

Page 146: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Restoration Ordering Problem (ROP)

146

Initial Steady State Steady State 1 Steady State 2 Final Steady

State N

Fix item x1 Fix item x2

Fix item x3, x4,…, xN

‣Find the best sequence of restoration [x1,x2,x3,…,xn] so that the size of the blackout is minimised

Page 147: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Key Question‣ Can I move from steady states to steady states?

‣ Capturing the dynamics

147

State VariablesDynamic

Variables

Network State

Dynamics

Page 148: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Transient Analysis‣ Can you correct the steady states to ensure

transient stability? – rotor angle stability – Swing equation

148

Page 149: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Transient Analysis‣ Can you correct the steady states to ensure

transient stability? – rotor angle stability – Swing equation

149

Page 150: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Transient Stability‣ Angle for the center of inertia

150

Page 151: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Transient Stability‣ A generator is modeled as an internal bus

151

Page 152: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Network State

152

‣ Power flow equations before closing

Page 153: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Network State

153

‣ Power flow equations after closing

Page 154: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Network State

154

‣ Voltage Stability Constraints

Page 155: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Minimal Transient-Stable Correction

155

Page 156: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Overall Procedure

156

Page 157: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Overall Procedure

157

Page 158: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Overall Procedure

158

Page 159: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Restoration with Transient Stability

‣ Minimize the distance to the steady-state dispatch while constraining the rotor angle

159

Page 160: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Power Restoration with Transient Stability

160

‣ Minimizing the rotor angle while maintaining a certain dispatching distance

Page 161: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Beyond Steady States‣ Using the dynamics to correct the steady state

– hierarchical approach – feedback loop

‣ The power flow equations – need to be solved exactly – the relaxations are “cheating”

‣ Scalability is the next frontier – more realistic dynamic models – thermal limits – scaling performance

161

Page 162: Power Flow Equations: Complexity, Approximations and Relaxations · 2015. 1. 14. · NICTA Copyright 2014 From imagination to impact Computational Challenge 15 presolved problem has

NICTA Copyright 2014 From imagination to impact

Open Issues‣ Power Flows

– Can we get scalable approximations with performance guarantees on these problems?

– Can we get scalable relaxations? – Can we define what normal operating conditions

means? ‣ Dynamics

– Can we get scalable optimization approaches? ‣ Stochastic and robust optimisation

– Generalizing the deterministic case

162