Documente Academic
Documente Profesional
Documente Cultură
EE 220
Numerical Methods
Lambda-Iteration Method
H L > Do
i=1
M
H
M
P
(
)
>
0
Then
=
P
Gi
D
Else L = M
End While
If
M = ( H + L ) / 2
While
i=1
i=1
H
P
(
Gi ) PD > 0
PGi ( ) PD < 0
$/MWh
IC3 ( PG 3 ) = 18 + 0.025PG 3
15
0.02
18
PG3 ( ) =
0.025
PG1 ( ) =
we have
PG2 ( ) =
0.01
20
$/MWh
IC2 ( PG 2 ) = 20 + 0.01PG 2
= 20 then
i=1
i =1
Try
H
0.01
= 30 then
0.02
0.025
i =1
= 1230 MW
1000 = 670 MW
i=1
m
L
P
(
15 20 18
Try
L
Pick so
L
i =1
H
P
(25)
1000
=
280
we
set
= 25
Gi
i =1
Then since
M = ( H + L ) / 2 = 25
PG1 (23.5) =
23.53 15
= 426 MW
0.02
23.53 20
PG 2 (23.5) =
= 353 MW
0.01
23.53 18
PG 3 (23.5) =
= 221 MW
0.025
i =1
i =1
PG 3 (24.43) = 257 MW
PG 2 (24.43) = 443 MW
Gradient Method
Gradient Method
f
x
1
where f =
f
x n
x ( k +1) = x ( k ) f
and
is a scalar
Gradient Method
L
P
g1
L = L
P
g
L
F1 ( Pg1 )
Pg1
F ( P )
= g
Pg
load Pgi
i =1
i =1
i =1
Gradient Method
Where
(k )
(k )
ng
i =1 2 i
ng
i =1
= PD Pi k
P ( k )
( k +1) = ( k ) + ( k )
Gradient Method
Example
(k )
(k )
ng
i =1 2 i
ng
i =1
= PD Pi k
P ( k )
Remember
( k +1)
(k )
(k )
= +
Example
i =1
ng
At = 6
( 0)
Example
(k )
i =1 2 i
ng
k)
( k +1) = 8.5
= 6 + 2.5 = 8.5
(k )
659.7 MW
=
= 2.5
1
1
1
+
+
2 ( 0.004 ) 2 ( 0.006 ) 2 ( 0.009 )
= +
with = 1
( k +1)
(k )
P (
x = g (x) 1 g (x)
g1
g1
x
g1 ( x1 , , x n )
x n
1
and g (x) =
where g(x) =
= J (Jacobian)
g m
g m
g m ( x1 , , xn
xn
x1
Newton Method
2 L
2L
P
Pg 1Pg
g1
L
x
x
= L
P P
g g1
2 L
Pg1
i =1
i =1
2 L
Pg 1
HessianMatrix
2
L
If we let ,g = L x then
x = Lx L
x
x( k +1) = x ( k ) + x
Newton Method
gi
= PD (supply-demand balance)
i =1
Subject to
i =1
Objective Function
Pgi Pgimin
L(Pg , ,
max
min
i =1
m
m max
) = Fi ( Pgi ) Pgi PD i ( Pgi Pgimax )
i =1
i =1
i =1
Lagrange Equation
Pgi Pgimin
C4 :
i = 1,2,..., m
= Pgimax Pgi = 0
imin
if Pgi = Pgimin
if Pgi = Pgimax
dFi
imax = 0
if Pgi = Pgimax
dPgi
dFi
L
=
+ imin = 0
if Pgi = Pgimin
Pgi dPgi
dFi
= 0
if Pgimin Pgi Pgimax
dPgi
dFi
L
=
imax + imin = 0
Pgi dPgi
L
= Pgi PD = 0
C2 :
i =1
L
= Pgi Pgimax = 0
C3 :
imax
C1 :
ai
0.032
0.038
bi
2.187
2.407
ci
120.312
74.074
min
Pgi
200 MW
100 MW
max
Pgi
350 MW
200 MW
max
min
(
P
+
100
)
2
g2
2 ( Pg 2 200)
At PD = 400 MW
1
2
Unit I
min
2 ( Pg 2 + 100) = 0
L
= 0 Pg1 + Pg 2 400 = 0
L
max
= 0 0.038Pg 2 + 2.407 + min
=0
2
2
Pg 2
L
= 0 0.032 Pg1 + 2.187 + 1min 1max = 0
Pg1
or
Pg 2 200 = 0
imin = 0
and imax = 0
max
=0
2
or Pg 2 + 100 = 0
min
=0
2
Pg1 380 = 0
or
or Pg1 + 200 = 0
1max = 0
1min = 0
Complementary conditions
Pg1 + Pg 2 + 0 = 400
Can be rewritten as
Pg1 + Pg 2 400 = 0
0.038 Pg 2 + 2.407 = 0
Then we have
Pg1 220.29 MW
P = 179.71 MW
g2
9.24 $/MWhr
The solution is
0
1 Pg1 2.187
0.032
0
P = 2.407
0
.
038
g2
1
1
0 400
In matrix form
Pg1 301.71 MW
P = 248.29 MW
g2
11.84 $/MWhr
The Solution is
0
1 Pg1 2.187
0.032
P = 2.407
0
0
.
038
g2
1
0 550
1
Pg1 + Pg 2 = 0
2max ( Pg 2 200) = 0
Pg1 350
P 200
g2 =
13.39
max
3.38
The solution is
2max is commonly termed as shadow price
0
1 0 Pg1 2.187
0.032
P 2.407
0
0
.
038
1
1
g2 =
1
550
1
0 0
max
1
0 0 2 200
0
In matrix form
Shadow Price
Shadow Price
A. Lambda Iteration
B. Gradient Method
Homework 2
Reference