21
Optimal Power Flow using Interior Point Method EE 8725 Dheeraj Reddy

Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Optimal Power Flow using Interior Point Method

EE 8725

Dheeraj Reddy

Page 2: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

OutlineInterior Point Method (Primal Dual)

Optimal Power Flow

Page 3: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Intro to IPMMinimize: f(x)

Subject to: g(x) = 0,

h(x) ≤0,

where f(x), x, g(x), h(x), represent, respectively, the objective function, the decision variables, the equality constraints and the inequality constraints.

x = [𝑥1, 𝑥2, 𝑥3,….., 𝑥𝑛𝑣]T

Page 4: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Steps in IPM1. Log Barrier

2. Necessary Conditions (KKT)

3. Newton Direction

4. Updating variables

5. Convergence check

Page 5: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Log Barrier Method

According to Fiacco and McCormick theorem, as µk→0 usually a local optimal solution is reached.

Page 6: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Necessary optimality conditionsThe first order necessary optimality conditions are obtained by setting to zero the derivatives of L µ with respect x, λ, γ and s:

KKT Interpretation: Eq. 2 and Eq. 3, along with s≥0, ensures primal feasibility

Eq. 1, together with γ ≥ 0,ensure dual feasibility.

Eq. 4 is the perturbed complementary condition.

Eq.1

Eq.2

Eq.3

Eq.4

Page 7: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

First order derivatives

Page 8: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Newton Direction

•This involves computing the step size in the Newton direction, updating the variables,and reducing the parameter µ.

•The algorithm terminates when primal and dual infeasibilities and the complementaritygap fall bellow predetermined tolerances.

•The Newton direction is used as a means to follow the path of minimization which isparameterized by µ.

Page 9: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Hessian

Page 10: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Updating Variables

•The value of 𝑘𝑠 can be updated during each iteration as needed.

•Scalars 𝛼𝑃 and 𝛼𝐷 are the step length parameters.•Scalar 𝑘𝑠 ∈(0, 1) represent the safety factor thatguarantees the strict positive condition of the slackvariables s and γ during each iteration.

Page 11: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Primal and dual step lengthTo update the variables, it is necessary to know the size of the primal and dual steps. These steps must be calculated in such a way that they guarantee the positive condition of the variables s and γ

The length of the primal and dual steps can be chosen from the intervals 𝛼𝑃∈(0, 𝛼𝑃𝑀𝐴𝑋 ] and 𝛼𝐷∈(0,𝛼𝐷𝑀𝐴𝑋 ].

Page 12: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Update µIn order to calculate µk, the complementarity gap is computed at each iteration k by:

In each iteration k the value of µk can be computed based on the decrement of thecomplementarity gap

σ is the centering parameter, usually σ = 0.1

Page 13: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Convergence check

Page 14: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Minimization of Cost Function

Rectangular: Polar:

Page 15: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Grad and Hessian of f(x)

Very Sparse

Extremely Sparse

Page 16: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Grad and Hessian of g(x)All the equality constraints are stored as

Gradient:

Hessian:

Page 17: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Grad and Hessian of h(x)All the inequality constraints are stored as

Page 18: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Line flow constraints

Page 19: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Grad:

Page 20: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Hessian:

Page 21: Optimal Power Flow using Interior Point Methodpeople.ece.umn.edu/class/ee8725/Butukuri_OPF using the...Optimal Power Flow Intro to IPM Minimize: f(x) Subject to: g(x) = 0, h(x) ≤0,

Thank you!