Professional Documents
Culture Documents
Matos2004 Chapter MetaheuristicsAppliedToPowerSy
Matos2004 Chapter MetaheuristicsAppliedToPowerSy
449-464
Manuel A Matos, M. Teresa Ponce de Leao, J. Tome Saraiva, J. Nuno Fidalgo,
Vladimiro Miranda, J. Pes;as Lopes, J. Rui Ferreira, Jorge M. C. Pereira,
L. Miguel Proens;a, and J. Luis Pinto
©2003 Kluwer Academic Publishers B.V.
21 METAHEURISTICS APPLIED TO
POWER SYSTEMS
Manuel A. Matos 1 • 3 ~ M. Teresa Ponce de Leao1 •3 1
3 1NESC
Porto
Power Systems Unit
Porto, Portugal
lproenca42inescporto.pt
21.1 INTRODUCTION
This paper describes a number of real applications of metaheuristics (in this
case, simulated annealing) and genetic algorithms to power system problems.
The research work was developed in the framework of European projects and
industrial contracts and addresses areas like planning and operation of electri-
cal distribution systems, wind park layout, unit commitment of isolated sys-
tems with renewable energy sources and voltage collapse in systems. The
combinatorial nature comes naturally in power systems, since most of the de-
cision variables are binary or integer due to technical reasons. On the other
hand, a common characteristic of these problems is the presence of technical
constraints, which poses difficulties to the application of metaheuristics, lead-
ing to the need of penalty factors in the evaluation functions. The paper also
includes feature selection for security analysis using artificial neural networks,
a related topic, although not really an application of metaheuristics. The paper
is organized as follows. Regarding each topic, the corresponding problem is
briefly described, followed by the presentation of the approach and, in some
cases, a summary of the results. Global conclusions and references complete
the paper.
21.2.2 Approach
In the simulated annealing strategy, the analogy between the electric distribu-
tion planning problem and the Metropolis algorithm can be stated as follows.
The alternative solutions or configurations of the combinatorial electric distribu-
tion planning problem are equivalent to the physical system states. The net-
work configurations (alternative solutions) (attributes) are equivalent to the
different energy states. The control parameter, which is such that about half the
new configurations found are accepted at the start of the process, is equiva-
METAHEURISTICS APPLIED TO POWER SYSTEMS 451
• From our experience an average value for fJ was derived between 0.85
and 0.92. Larger values yield high computation times, and smaller val-
ues, below 0.85, lead to poorer solutions;
21.2.3 Results
A simulated annealing procedure was combined with the €-constraint search
to form a methodology for solving the multi-objective planning problem. In
practice, the initial multi-objective problem was split into several single objec-
tive problems, successively solved to generate non-dominated solutions. In
Ponce de Leao and Matos (1999), the detailed procedure to generate the set of
efficient solutions is explained in detail.
21.3.2 Approach
The basic simulated annealing algorithm was used for this problem, with the
following characteristics:
21.3.3 Results
Figure 21.2 shows the efficient solutions for a restoration situation. Note that
similar solutions in the attribute space may be very different in the decision
space. As can be observed, the power not supplied decreases as the number
of switching operations increases. The operator may now choose among the
given set for the most satisfying solution, according to his preferences and
temporary constraints not included in the model.
12
a 10
·JJ
; 8
• •
~
i 6 • •
i'a 4 •
z..
• •
•
2
0
0 2 4 6 8 10
Power Not Supplied (MW)
21.4.2 Approach
The problem of minimizing active power losses can be formulated by (21.1-
21.2). In this formulation, h() represents the AC power flow equations, t 1
stands for the available values of transformer taps, ec represents the available
reactive power steps of capacitor banks, V are the voltage magnitudes, I are
the branch currents, and gij corresponds to the conductance of branch ij. Tra-
454 METAHEURISTICS: COMPUTER DECISION-MAKING
ditionally, this problem has been solved assuming that transformer taps and
sections of capacitor banks are represented by continuous variables. Such for-
mulation consists of a nonlinear optimization problem which can be solved
using, for instance, gradient methods. The solution obtained this way must be
rounded to the closest discrete solution, which may, or may not, be the optimal
solution.
21.4.3 Results
Tests with the IEEE24 system (24 nodes, 31lines, 5 transformers) were con-
ducted considering 11 taps in each transformer. Each tap corresponds to a
0.01 increment within the interval [0.95,1.05]. Initially, the transformer taps
were considered at the nominal values (position 6). The selected simulated
annealing parameters were:
• the number of iterations for the same temperature level is 25;
• the initial temperature level was set to 1.0. The lowering step determin-
ing the cooling scheme (parameter (3) is 95% of previous temperature;
• the maximum number of iterations without improvement of the evalua-
tion function is set to 75;
With these parameters, the algorithm converged in 312 iterations and the tem-
perature was reduced till 0.54. Figure 21.3 shows the evolution, along the
search process, of the present evaluation function value (continuous line) and
for the best solution found till the current iteration (dotted line).
To evaluate the efficiency of the search process, we simulated all the pos-
sible combinations for the 5 transformer taps. This enumeration process re-
quired 161051 power flow studies, to obtain the true optimal solution, that
METAHEURISTICS APPLIED TO POWER SYSTEMS 455
138000
Figure 21.3 Evolution of the evaluation function for the current solution (continuous line)
and for the best-identified solution (dotted line) for the 24 node network.
happened to be the same that was obtained with our approach, with only 312
power flow studies. Additional tests with a larger distribution system (645
nodes, 59 million solutions) showed also a good performance, with conver-
gence obtained after only 256 iterations.
tions for the problem described was performed using a genetic algorithm that
implements the concept of geographic isolation, based on a niching scheme
(Mahfoud, 1995). The chromosome is a string of bits, each bit having a binary
value (0 or 1). In our problem, this string has 8 bits for each generator, that
represent:
• L 1 to L 4 - type of connections in terms of topology (£1 and L 3 are
mandatory lines, L 2 and L 4 alternative lines, used for reliability pur-
pose);
• Wgui - contains information associated with situations where generator
i is the last in the feeder;
• Seci - 3 bits used to encode the section type of the cable to be used;
The length of each chromosome is therefore 8 · n, where n is the number of
wind generators in the park. Figure 21.4 describes the adopted chromosome
coding.
The fitness function corresponds to the total cost, but it includes penalty
terms related to the technical constraints, as shown in (21.7), where nf is the
number of feeders, ngu in the number of generators in the end of the feeder,
LNc is the number of lines not connected correctly, Vc and VT are the number
of violations of the voltage profile and of the thermal limits, ec is the cost of
cables (including protections), eJL is the cost of energy losses, eND is the cost
of energy not delivered to the grid, due to internal faults on the wind park,
and kl ... k4 are penalty factors.
Figure 21.5 Two of the best possible layouts for the wind park
Critical po lnt
Load
21.6.2 Approach
The mathematical formulation of this problem corresponds to the optimiza-
tion problem (21.8-21.12). The objective function (21.8) integrates a term mea-
suring the distance to voltage collapse (given by the total increase of load ad-
mitted by the system) and a second term where J.t assumes a sufficiently large
value so that load shedding is used only if necessary. In this formulation, the
equality constraints f(X, u) represent the power flow equations, X is the state
vector and u is the vector of control variables. Constraint (21.10) puts a hard
limit on the distance to the collapse, and (21.11) and (21.12) constrain trans-
former taps and capacitor steps to their feasible (discrete) values.
21.6.3 Results
To evaluate the performance of the previously described approach, we con-
ducted several numerical tests considering the Reduced Mato Grosso system
(Granville et al., 1996). The results obtained were excellent in quality, match-
ing with the ones obtained when the optimization problem in a continuous
space was solved using the interior point method. When curtailment of loads
was needed, the approach adopted was able to provide better results than the
traditional methods, due to the fact that it was dealing with the real speci-
ficity and characteristics of the amount of load supplied by each feeder in a
substation.
The genetic algorithm used to solve the unit commitment problem is based on
the general scheme of genetic algorithm, but includes several enhancements
(Hang, 1999). It replaces the standard selection scheme with a dedicated nich-
ing selection scheme- deterministic crowding selection. In addition, a dy-
namic mutation rate technique, chromosome repair and neighborhood dig-
ging schemes are also included, in order to accelerate convergence and enforce
robustness. Encoding the chromosome plays an important role in the genetic
algorithm. In the UC module, an efficient way is proposed to compress the
length of the chromosome. The main idea comes from the observation that
the generators will not switch on/ off frequently and thus some of the vari-
ables can be reduced. With this method, the length of the chromosome can be
reduced a lot. For example, in a problem with 17 generators and an hourly
scheduling for 48 hours, the direct encoding will lead to 816 bits. On the other
hand, if divide the 48 hours into 16 sections, the length of the chromosome
will only be 368 bits.
The fitness function includes the generation and start-up and the shutdown
costs of generators. To identify an infeasible chromosome a penalty cost is
added when the schedule violates the constraints. To avoid trapping in local
optima, dynamic mutation rate adjustment is used. Deterministic crowding
(DC) selection scheme is a niching method, which is used to preserve the di-
versity of the genetic algorithm. Chromosome repair is a corrective algorithm.
The algorithm will correct slightly an infeasible chromosome, which is near
460 METAHEURISTICS: COMPUTER DECISION-MAKING
. . . . . .. . . . . . . . . ,. • .at
,.rMIItiiA(t • • t *UIIffllf
-·
. . ...... til • • ,. •
. . . . ,.W'I ......... • • • •lt•a
. . . . . . . . . . . . . 11'1 . . . .. . . . . ;
... .,. . ,~ . . . . 111 .
L...-....11'--•J...I_•...._•....1'--___..1_•'-1_...._._,_..1-- -- · I 1·1 ...... 1-- ·--I 1••1 ....... I .... 1- --1 ....
Alll 4ihllllloiM:r.tW!I•
...................,
····~- tdl tl
flwrlt~tttlt&~diU
Plltriufl
the feasible region. Afterwards, the corrected chromosome will place it back
to the population and enrich the genetic pool. Neighborhood digging con-
centrates mainly in feasible chromosomes. By searching the neighbor of the
chromosome, the algorithm will determine a better chromosome to replace
the original. By experience, we find that this genetic operator not only accel-
erates the convergence of the process, but also gives better results regarding
both the economic optimization and the execution time, which was an impor-
tant project constraint.
----......·
300 - - ·-- --·--··- --··- ---· ----- --------- - - . - •.•.
,_
- ·-
•oo
_ ..
=>Oooo.O
- ·· ....
.........
c:::::::::.~~-~
. ~--
"...
c.... "'" "'")
21.8.2 Approach
The FSS methodology applied in Fidalgo (2001) consists basically of three
steps:
2. Train an ANN with the remaining ones, compute sensitivities of its out-
put (dynamic security index) with respect to all inputs and discard in-
puts with lowest sensitivity Si indexes;
21.8.3 Results
Tests with a data set of the power system of Crete, initially with N1 = 60 at-
tributes, lead to N2 = 20 after correlation analysis. An ANN was then trained
and si calculus were performed, leading to further elimination of 14 variables.
A new ANN was finally trained with the remaining N3 = 6 features. Perfor-
mance was computed and results were compared to the ones reported in Pe<;as
Lopes et al. (1999), were 22 attributes were used, as shown in the Table 21.8.3.
Results show that some real data applications may be amazingly simplified
without loss of performance.
462 METAHEURISTICS: COMPUTER DECISION-MAKING
21.9 CONCLUSIONS
Many power system optimization or decision problems are of combinatorial
nature, due to the intrinsic presence of integer and binary variables. The use of
simulated annealing and genetic algorithms has proved to be successful even
on difficult situations, related to real planning and operation problems. The
examples shown are by no means complete, since many other applications
exist, but are sufficient to demonstrate the practical interest of these method-
ologies to a demanding engineering field.
Bibliography