Docsity

Economic Dispatch and Optimization Introduction, Lecture notes of Applied Mathematics

Partial preview of the text

Download Economic Dispatch and Optimization Introduction and more Lecture notes Applied Mathematics in PDF only on Docsity!

© Daniel Kirschen

Economic Dispatch

and

Introduction

to Optimisation

Daniel Kirschen

Input Output Characteristic

  • Running costs
  • Input / Output curve
  • Fuel vs. electric power
  • Fuel consumption measured by its energy content B T^ G Input Fuel Electric Power Output (^) Output Pmin Pmax Input J/h MW

© Daniel Kirschen Cost Curve

  • Multiply fuel input by fuel cost
  • No-load cost
  • Minimum generation
  • Maximum generation Output Pmin Pmax Cost £/h MW No-load cost
  • Incremental cost curve
  • Derivative of cost curve
  • In £/MWh
  • Cost of the next MWh Incremental Cost Curve ∆ FuelCost ∆ Power vs Power ∆F ∆P Cost [£/h] MW Incremental Cost [£/MWh] MW

© Daniel Kirschen

Introduction to

Optimisation

“An Engineer is someone who can do for one

dollar what any fool can do for two”

© Daniel Kirschen Objective

  • Achieving the best possible design or

operating conditions requires a way of

measuring the goodness of this result

  • We will call this measure our objective F
  • Examples: n Minimise cost of building a transformer n Minimise cost of supplying power n Minimise losses in a power system n Maximise profit from a bidding strategy Decision Variables
  • The value of the objective is a function of

some decision variables:

  • Examples of decision variables: n Dimensions of the transformer n Output of generating units, position of taps n Parameters of bids for selling electrical energy F = f ( x 1 , x (^) 2 , x (^) 3 ,K x (^) n )

© Daniel Kirschen Minimisation and Maximisation x f(x) x* f(x) If x = x maximises f(x) then it minimises - f(x) -f(x) -f(x*) Minimisation and Maximisation

  • Maximising f(x) is thus the same thing as

minimising g(x) = -f(x)

  • Minimisation and maximisation problems are

thus interchangeable

  • Depending on the problem, the optimum is

either a maximum or a minimum

© Daniel Kirschen Necessary Condition for Optimality x f(x) x* f(x*) If x = x

maximises f ( x ) then: f ( x ) < f ( x *^ ) for x < x *^ ⇒ df dx

0 for x < x * f ( x ) < f ( x

) for x > x

⇒ df dx < 0 for x > x

df dx

df dx

Necessary Condition for Optimality x f(x) x* If x = x

maximises f ( x ) then df dx = 0 for x = x

df dx

© Daniel Kirschen How can we distinguish minima and maxima? x f(x) A B C D For x = A and x = D , we have: d 2 f dx

2 <^0

The objective function is concave around a maximum How can we distinguish minima and maxima? x f(x) A B C D For x = B we have: d^2 f dx

2 >^0

The objective function is convex around a minimum

© Daniel Kirschen How can we distinguish minima and maxima? x f(x) A B C D For x = C , we have: d 2 f dx

2 =^0

The objective function is flat around an inflexion point Necessary and Sufficient Conditions of Optimality

  • Necessary condition:
  • Sufficient condition: n For a maximum: n For a minimum: df dx

d^2 f dx

2 >^0

d^2 f dx

2 <^0

© Daniel Kirschen Feasible Set x f(x) xMIN A D (^) xMAX Feasible Set The values of the objective function outside the feasible set do not matter x f(x) xMIN^ A B D E xMAX Interior and Boundary Solutions

  • A and D are interior maxima
  • B and E are interior minima
  • XMIN^ is a boundary minimum
  • XMAX^ is a boundary maximum Do not satisfy the Optimality conditions!

© Daniel Kirschen Two-Dimensional Case x 1 x 2 f(x 1 ,x 2 ) x 2 * x 1 * f(x 1 ,x 2 ) is minimum for x 1 *, x 2 * Necessary Conditions for Optimality x 1 x 2 f(x 1 ,x 2 ) x 2 * x 1 *

∂ f ( x 1 , x 2 )

∂ x 1

x 1

  • (^) , x 2

∂ f ( x 1 , x 2 )

∂ x 2

x 1

  • (^) , x 2

© Daniel Kirschen Sufficient Conditions for Optimality x 1 x 2 f(x 1 ,x 2 ) Saddle point Sufficient Conditions for Optimality ∂ 2 f ∂ x (^) 1 2 ∂ 2 f ∂ x (^) 1 ∂ x (^) 2

L

∂ 2 f ∂ x (^) 1 ∂ x (^) n ∂ 2 f ∂ x (^) 2 ∂ x (^) 1 ∂ 2 f ∂ x (^) 22

L

∂ 2 f ∂ x (^) 2 ∂ x (^) n M M O M ∂ 2 f ∂ x (^) n ∂ x 1 ∂ 2 f ∂ x (^) n ∂ x (^) 2

L

∂ 2 f ∂ x (^) n^2

Calculate the Hessian matrix at the stationary point:

© Daniel Kirschen Sufficient Conditions for Optimality

  • Calculate the eigenvalues of the Hessian matrix

at the stationary point

  • If all the eigenvalues are greater or equal to zero: n The matrix is positive semi-definite n The stationary point is a minimum
  • If all the eigenvalues are less or equal to zero: n The matrix is negative semi-definite n The stationary point is a maximum
  • If some or the eigenvalues are positive and other

are negative:

n The stationary point is a saddle point Contours x 1 x 2 f(x 1 ,x 2 ) F 1 F 2

F 2

F 1

© Daniel Kirschen Example 1 Sufficient conditions for optimality: Hessian Matrix:

∂ 2 C

∂ x (^) 12

∂ 2 C

∂ x 1 ∂ x (^) 2 ∂ 2 C ∂ x (^) 2 ∂ x (^) 1

∂ 2 C

∂ x (^) 22

must be positive definite (i.e. all eigenvalues must be positive) λ − 2 2 2 λ − 8 = 0 ⇒ λ 2 − 10 λ + 12 = 0 ⇒ λ =

The stationary point is a minimum Example 1 x 1 x 2 C= C= C= Minimum: C=

© Daniel Kirschen Example 2 Minimise C = − x 12 + 3 x (^) 22 + 2 x 1 x (^) 2 Necessary conditions for optimality: ∂ C ∂ x 1 = − 2 x 1 + 2 x (^) 2 = 0 ∂ C ∂ x (^) 2 = 2 x 1 + 6 x (^) 2 = 0 x 1 = 0 x (^) 2 = 0

is a stationary point Example 2 Sufficient conditions for optimality: Hessian Matrix:

∂ 2 C

∂ x (^) 12

∂ 2 C

∂ x 1 ∂ x (^) 2 ∂ 2 C ∂ x (^) 2 ∂ x (^) 1

∂ 2 C

∂ x (^) 22

λ + 2 − 2 − 2 λ − 6 = 0 ⇒ λ^2 − 4 λ − 8 = 0 ⇒ λ =

or λ =

The stationary point is a saddle point