FACULDADE DE TECNOLOGIA
DEPARTAMENTO DE ENGENHARIA ELETRICA
Fundamentos de Otimizao
Definies:
Funo Objetivo: funo que se deseja otimizar (minimizar ou maximizar)
+ custos
+ perdas
+ benefcios
+ desvios
Restries:
So as condies que devem ser satisfeitas ao mesmo tempo em que
otimizada a funo objetivo.
Estas condies so representadas por funes e/ou limites em
variveis.
Regio Factvel:
a regio delimitada pelo conjunto de restries. Qualquer soluo
dentro desta regio satisfaz simultaneamente as restries.
Solues fora desta regio de factibilidade so solues infactveis.
Restrio Ativa:
uma restrio que faz parte do limite da regio de factibilidade no
qual ocorre a soluo tima de um problema de otimizao restrito
(R1, R2).
X1
R1
Regio
Factvel
R2
Max f(x1,x2)
R3
X2
Restrio no ativa:
uma restrio que no faz parte do limite onde ocorre a soluo
tima (R3).
Exemplo:
Minimizar f ( x1 , x 2 ) =
1 2
x1 + x 22
4
Sujeito a: w( x1 , x 2 ) = x1 + x 2 5 = 0
X2
X 1 = 4
f =5
X 2 = 1
X1 + X 2 = 5
F=5
f ( x1(1) , x2(1) )
f ( x1( 0 ) , x2( 0 ) )
F=5
w( x1(1) , x2(1) )
5
f ( x1( 2 ) , x2( 2 ) )
w( x1( 0 ) , x2( 0 ) )
w( x1( 2 ) , x2( 2 ) )
1
w =
1
(0)
f ( x1 , x2( 0 ) ) + .w( x1( 0 ) , x2( 0 ) ) = 0
Multiplicador de Lagrange
X1
L( x1 , x 2 , ) = f ( x1 , x 2 ) .w( x1 , x 2 )
L f
w
=
.
x1 x1
x1
L
f
w
=
.
x 2 x 2
x 2
L f
w
x x
x
1 = 1 . 1
L f
w
x 2 x 2
x 2
L = f .w = 0
No ponto de timo:
L
=0 ;
x1
L
=0 ;
x 2
L
=0
No exemplo:
1 2
x1 + x 22 (x1 + x 2 5)
4
L 1
x = 2
= .x1 . = 0 1
x1 2
= 2 x 2 = 0 x 2 =
x 2
2
L
= x1 + x 2 = 5
2 + = 5
L( x1 , x 2 , ) =
= 2
x1 = 4
x 2 = 1
L ( x1 , x 2 , 1 , 2 , 3 ) = f ( x1 , x 2 ) .i wi ( x1 , x 2 )
i =1
Condies:
L
L
L
L
L
=0 ;
=0 ;
=0 ;
=0 ;
=0
x1
x 2
1
2
3
g ( x1 , x 2 ,...) 0
Minimizar
f ( x1 , x2 ) =
1 2
x1 + x22
4
S.a:
w( x1 , x 2 ) = x1 + x 2 5 = 0
g ( x1 , x 2 ) = x1 +
1
x2 5 0
5
g ( x1 , x 2 ) = x1 +
1
x2 4 0
5
X2
Restrio no ativa
=0
G(X1*, X2*) = 0
> 0
1
4
X1
Minimizar f ( x )
S.a.
wi ( x ) = 0 , i = 1,....Nw
g i ( x ) 0 , i = 1,....Ng
x
vetor de dimenso N
Funo Lagrangeana
Nw
Ng
i =1
i =1
L ( x, , ) = f ( x) .i wi ( x) .i g i ( x)
L 0 0 0
x , , = 0 , i = 1,.....N
xi
( )
g (x ) 0
0
2. wi x = 0 , i = 1,.....Nw
3.
, i = 1,.....Ng
i .g i (x ) = 0
, i = 1,.....Ng
i 0
4.
2.1.
Pg1
Pg2
PDTotal
Pgn
Ci(Pgi)
Ci(Pgi)
PgiMin
PgiMax
Pgi
PgiMin
PgiMax
C (Pg ) = Ci (Pg i )
(1)
i =1
Atendimento da carga:
n
Pg
= PDTotal + PPerdas
(2)
i =1
Pg iMin Pg i Pg iMax
(3)
Pgi
2.2.
Minimizar
n
C (Pg ) = C i (Pg i )
i =1
S.a
n
Pg
= PDTotal
i =1
Funo Lagrangeana:
n
n
Total
L(Pg i , ) = C i (Pg i )
.
{ Pg i PD
i =1
1
1
4243 $ / MWH 1i =4
42443
$/h
(4)
MW
dC i
L
=
=0
Pg i dPg i
dC i
= CI i
dPg i
L
= CI i = 0
Pg i
, i = 1,....n
(6)
(5)
n
L
= Pg i + PDTotal = 0
i =1
C (Pg )
1
C1 (Pg1 ) = Co1 + a1 Pg1 + b1 Pg 12
2
1
C2 (Pg 2 ) = Co2 + a2 Pg 2 + b2 Pg 22
2
Pg
Pg
dc
Pg
IC1
dC
= a1 + b1 Pg 1
Pg 1
IC2
dC2
= a2 + b2 Pg 2
Pg 2
Pg1
Pg2
Pg
Pg2
dC ( Pg ) = dCi
i =1
n
dC ( Pg ) =
i =1
dCi
.dPg i
dPg i
dC ( Pg ) = CI i .dPg i
(8)
i =1
n
dC ( Pg ) = .dPg i
i =1
n
dC ( Pg ) = dPg i
i =1
dC ( Pg ) = ..dPDTotal
dC ( Pg )
=
dPDTotal
(7)
]
];
];
(9)
C0 = C01 , C0 2 ,....., C0 n ;
[
b = [b , b ,............, b
a = a1 , a 2 ,..........., a n
1
e = [1 , 1 ,..................,1] ;
T
(10)
Pg = [Pg1 , Pg 2 ,.., Pg n ] ;
T
PD = [PD1 , PD 2 ,....., PD n ] ;
T
B = diag(b)
(11)
Min,
1
C (Pg ) = e T .C O + a T .Pg + Pg T .B.Pg
2
(12)
S.a
e T .Pg = PDTotal = e T .PD
Funo Lagrangeana:
L(Pg , ) = C (Pg ) (e T .Pg PDTotal )
Condies Necessrias:
L
= a + BPg = .e
Pg
L
= e T .Pg = PDTotal = e T .PD
(13)
Soluo analtica:
Pg = .B 1 .e B 1 .a
(14)
PDTotal = .e T B 1 .e B 1 .a.e T
P Total + e T .B 1 .a
= D T 1
e .B .e
(15)
e .B .e
Pg = .PDTotal +
Sendo que:
B 1 .e
>0
e T .B 1 .e
B 1 .e.(e T .B 1 .a )
=
B 1 .a
T
1
e .B .e
=
(16)
2.3.
Min
C = Ci (Pg i )
i
S.a
Pg
= PDTotal
Max
Pg iMin
{ Pg i
{ Pg i , i = 1,.........n
iMin
iMax
CI2
CI1
Min
Pg2Min Pg1 Pg2
iMin 0
iMax 0
Pg1
Max
Pg2Max Pg1
L
= iMin L = iMin .Pg iMin
Min
Pg i
L
= iMax L = iMax .Pg iMax
Max
Pg i
C.N:
L
= CI i iMin + iMax = 0
Pg i
L
= Pg i PDTotal = 0
i
L
= Pg iMin Pg i
iMin
L
Max
i
i = 1,.....n
= Pg i Pg iMax
i = 1,.....n
Min
i
i = 1,......n
i = 1,......n
iMax 0
Pelas condies de folga complementar:
1) Se Pg iMin < Pg i < Pg iMax
Ento,
CIi =
i = 1, 2, .....n
2) Se Pg iMin = Pg i
Ento,
iMin > 0
= CI i iMin
CI i iMin = 0
< CI i
iMin
PgiMin
3) Se Pg i = Pg iMax
Ento,
iMax > 0
= CI i + iMax
CI i + iMax = 0
> CI i
iMax
PgiMax
Algortmo:
CI2
CI1
C1Min
Min
Pg2Min Pg1 Pg2
Pg1
Max
Pg2Max Pg1
1) CIMin = Min(CI)
2) CIMax = Max(CI)
CI + CI Max
3) = Min
2
CI i =
4) = ai + bi Pg i
5) Se Pg
Pg i =
6) Pg i < Pg iMin
bi
Pg i = Pg iMax
< Pg i
Max
i
ai
Pg i = Pg iMin
7) Pg Total = Pg i
i
8) Se Pg
Total
> PDTotal
Ento = CI Max
v ao passo 3)
9) Pg
Ento = CI Min
v ao passo 3)
<P
10) Pare.
Pgi a soluo e o preo da energia.
Total
Total
D
Ordem de mrito.
Exemplo:
G
1
2
C0($/h)
100
200
Ci = C0i + a.Pg i +
Caso
A2
B2
C2
D2
a ($/MWh)
20
25
b ($/MWh)
0,05
0,10
PgMin
0
0
PgMax
400
300
1
b.Pg i2
2
(MW)
($/MWh)
($/MWh)
C($/h
(MW)
CI2
(MW)
40
250
300
600
40
200
233,3
400(Max)
0
50
66,7
200
22
30
31,67
40
25
30
31,67
45
22
30
31,67
45
1140
6675
8217
19300
PDTotal
Pg1
Pg2
CI1
2.4.
Ci($/h)
MW
CI1
CI1
a13=45
a13=40
a11=25
a11=20
a11=15
a11=10
20
10
15
20
Unidade
1
1+2
1+2
30
35
MW
Carga
20
20 PD 30
30 PD 40
10
25
30
MW
2.5.
Perdas
b8
}a 67
CI1 = 7 + 0,004P1
0,0002P12
P1
b8
}a 67
CI 2 = 7 + 0,004P2
P2
Min = 70 MW
Max = 400 MW
Min = 70 MW
Max = 400 MW
500MW
P
L
= CI1 1 Perdas
P1
P1
= 0
L
= CI 2 1 Perdas = 0
P2
P2
L
= P1 + P2 500 PPerdas = 0
Ento,
(38)
CI 1
647
48
L
= 7 + 0,004 P1 (1 0,004 P1 ) = 0
P1
CI 2
647
48
L
= 7 + 0,004 P2 = 0
P2
L
= P1 + P2 500 0,0002 P12 = 0
Custo:
C1 + C 2 = 4623,15$ / h
Perdas:
6,378 MW
3) Suponha que decidimos ignorar a influncia econmica das perdas, e
despachamos a unidade 1 suprindo asperdas.
Perdas =13,932
P1 = 263,932 MW
P2 = 250 MW
P2 = 250 MW
Neste caso,
500MW
P2 = 400 MW
P1 = 102,084 MW
PPerdas = 2,084 MW
C1 (102,084 ) + C 2 (400 ) = 4655,43$ / h
Linearizao
(1)
(2)
Perdas na Linha:
= Perdas
(3)
Suponha que:
1. as perdas de potncia ativa so nulas; ou seja,
g km =
bkm =
rkm
0 << bkm
2
rkm2 + xkm
x km
1
2
x km
r + x km
2
km
2. Vk Vm 1.0 p.u
3.
Sen km km
(5)
Senkm
km
(4)
Pkm =
km
Pkm =
ou seja,
x km
k m
(6)
xkm
Ikm
Vk
rkm
I km =
Vm
V k Vm
rkm
(7)
I = Y .E
No circuito cc:
F.C Linear:
1
Pkm = x km
. km
(12)
Pk
Pk =
km
m k
1
km
m k
. km ;
para k = 1,2,....NB
1
1
+ xkm
Pk = k xkm
. m
k
k
(14)
P = B'.
vetor de ngulos das tenses nodais k
(13)
(NBx1)
B 'kk =
1
km
(16)
m k
P1=1.5
P2 = -0.5
X12=1/3
X13 =1/2
Barra de
referncia a
barra 1.
1 = 0
X23 =1/2
5 3 2
B' = 3 5 2
2 2 4
2
1.0 2 2 4 3
Sistema reduzido:
0.5 5 2 2
1.0 = 2 4 .
P3 = -1.0
Soluo:
1 / 4
2 =
3 1 / 8
r = (B r ' ) 1.Pr
1 / 8 0 .5
5 / 16 1 . 0
1 / 4
2 =
3 3 / 8
Fluxos:
12
P12 =
x12
13
P13 =
P23 =
x13
23
x23
0 ( 1 / 4)
1/ 3
P12 = 0.75
0 ( 3 / 8)
1/ 2
P13 = 0.75
(1 / 4) ( 3 / 8)
1/ 2
P23 = 0.25
Minimizar
Sujeito a :
B = P = PG PD
P
max
fluxo
Pf P
max
fluxo
min
max
Onde,
1.
2.
i =1
i =1
Observe que: Pf = X 1 A T .
Funo Lagrangeana para o caso 1. com carga inelstica:
l
= CI = 0
P
l
= B T + AX 1 = 0
l
= B P = 0
l
= X 1 A T Pfmax 0
T [ X 1 A T Pfmax ] = 0
0
Os multiplicadores de Lagrange so os preos nodais.
Caso existam linhas saturadas pode ser mostrado com as equaes anteriores que os
agentes do sistema devem pagar:
n
P
i
i =1
Como
k Pfmax
k 0
Gi
+ k P
max
f k
= i PD i
k =1
i =1
i =1
i =1
k =1
max
O valor MS = i PG i i PD i = k Pf k > 0 chamado de Merchandising
Surplus.
FLUXO DE CARGA TIMO (FCO)
Minimizar
Sujeito a :
f (PG , PE )
PG PD = P ( v, )
Q G Q D = Q ( v, )
max
max
P fluxo
Pf ( v, ) P fluxo
min
max
PGmin PG PGmax
QGmin QG Q Gmax
v min v v max
p
q
Exemplo: