Hybrid Particle Swarm Optimization Approach For Solving The Discrete OPF Problem Considering The Valve Loading Effects
Hybrid Particle Swarm Optimization Approach For Solving The Discrete OPF Problem Considering The Valve Loading Effects
4, NOVEMBER 2007
Abstract—This paper presents a hybrid particle swarm opti- backbone tool that has been extensively researched since its
mization algorithm (HPSO) as a modern optimization tool to solve first introduction by Carpentier in 1962 [1].
the discrete optimal power flow (OPF) problem that has both The goal of OPF is to find the optimal settings of a given
discrete and continuous optimization variables. The problem is
classified as constrained mixed integer nonlinear programming
power system network that optimize a certain objective function
with multimodal characteristics. The objective functions consid- while satisfying its power flow equations, system security, and
ered are the system real power losses, fuel cost, and the gaseous equipment operating limits. Different control variables, some of
emissions of the generating units. Two different types of fuel cost which are generators’ real power outputs and voltages, trans-
functions are considered in this study, namely the conventional former tap changing settings, phase shifters, switched capaci-
quadratic function and the augmented quadratic function to tors, and reactors, are manipulated to achieve an optimal net-
introduce more accurate modeling that incorporates the valve
loading effects. The latter model presents nondifferentiable and work setting based on the problem formulation. A major dif-
nonconvex regions that challenge most gradient-based optimiza- ficulty of the OPF problem is the nature of the control vari-
tion algorithms. The proposed algorithm makes use of the PSO, ables since some of them are continuous (real power outputs
known for its global searching capabilities, to allocate the optimal and voltages) and others are discrete (transformer tap setting,
control settings while Newton–Raphson algorithm minimizes phase shifters, and reactive injections). The most commonly
the mismatch of the power flow equations. A hybrid inequality
constraint handling mechanism that preserves only feasible solu-
used objective is the minimization of the overall fuel cost func-
tions without the need to augment the original objective function tion. However, other traditional objectives are minimization of
is incorporated in the proposed approach. To demonstrate its active power loss, bus voltage deviation, emission of generating
robustness, the proposed algorithm was tested on the IEEE 30-bus units, number of control actions, and load shedding. Deregu-
system with six generating units. Several cases were investigated lation of the electric power industry has also introduced new
to test and validate the consistency of detecting optimal or near objectives to the OPF problem like maximization of the social
optimal solution for each objective. Results are compared to solu-
tions obtained of MATPOWER software outcomes that employs welfare and individual supplier’s profit [2], [3].
sequential quadratic programming algorithm to solve the OPF. Researchers proposed different mathematical formulations of
The impact of the proposed inequality constraint handling method the OPF problem. It can be broadly classified as follows.
in improving the HPSO performance is illustrated. Furthermore, 1) Linear problem in which objectives and constraints are
a study of HPSO parameters tuning with regard to the OPF given in linear forms with continuous control variables.
problem is presented and analyzed.
2) Nonlinear problem where either objectives or constraints or
Index Terms—Emission, optimal power flow (OPF), particle both combined are linear with continuous control variables.
swarm optimization, power system operation. 3) Mixed-integer linear and linear problems when control
variables are both discrete and continuous.
Various traditional optimization techniques were developed
I. INTRODUCTION to solve the OPF problem but the most popular ones are linear
programming, sequential quadratic programming, generalized
However, this model ignores the valve point loading that intro-
II. PROBLEM FORMULATION duces rippling effects to the actual input–output curve. Equation
The OPF goal is to optimize a certain objective subject to (6) is modified by adding an additional sine term to account for
several equality and inequality constraints. The problem can be the valve effects in this manner [13]
mathematically modeled as follows:
$ h
(1) (7)
2032 IEEE TRANSACTIONS ON POWER SYSTEMS, VOL. 22, NO. 4, NOVEMBER 2007
(14)
(15)
This more accurate modeling adds more challenges to most III. PROPOSED HYBRID ALGORITHM
derivative-based optimization algorithms in finding the global
PSO is a population based stochastic global optimizer that
solution since the objective is no longer convex nor differen-
was first introduced primitively by Eberhart and Kennedy in
tiable everywhere. Fig. 1 shows the shape of the fuel cost func-
1995 [14], [15]. The original PSO model was intended to handle
tion with the valve loading effects included.
only continuous nonlinear optimization problems. However,
3) Real Power Losses: With this objective, all control set-
further enhancements elevated the PSO capabilities to solve a
tings are adjusted such that the total real power losses are mini-
wider class of problems. The reader is directed to [16]–[18]
mized. Power losses can be modeled as follows:
for more information on PSO recent developments. The idea
behind this optimizer came from early attempts conducted by
(8) Eberhart and Kennedy to model the flocking behavior of many
species, like birds or school of fish, in their food hunting. They
realized that such species try to approach their target in an
where is the number of transmission lines in the system, optimal manner which resembles finding the optimal solution
is the conductance of the line connecting buses and , and to any mathematical optimization problem.
the bus voltage is represented in polar form by and . In PSO, a number of particles form a swarm that evolve or
fly throughout the problem hyperspace to search for optimal or
B. Constraints near optimal solution. The coordinates of each particle represent
The OPF problem has two categories of constraints: a possible solution with two vectors associated with it, the po-
1) Equality Constraints: These are the sets of nonlinear sition and velocity vectors. In -dimensional search
power flow equations that govern the power system, i.e., space, and
are the two vectors associated with each particle . During their
search, particles interact with each others in a certain way to
(9) optimize their search experience. There are different variants
of the particle swarm paradigms but the most general one is
the gbest model where the whole population is considered as a
(10)
single neighborhood throughout the optimization process [19].
In each iteration, the particle with the best solution shares its
where and are the real and reactive power outputs in- position coordinates (gbest) information with the rest of the
jected at bus respectively, the load demand at the same bus is swarm. Then, each particle updates its coordinates based on its
represented by and , and elements of the bus admit- own best search experience (pbest) and gbest according to the
tance matrix are represented by and . following equations:
2) Inequality Constraints: These are the set of continuous
and discrete constraints that represent the system operational
and security limits like the bounds on the following. (17)
1) The generators real and reactive power outputs (18)
(19)
the solution repair method, the process of reinstating the infea- require special initialization and treatment of the position
sible solution to a feasible one can be as challenging as solving vector throughout the optimization process. The continuous
the original problem. variables are initialized with uniformly distributed pseudo-
Within the context of PSO applications to the OPF and eco- random numbers that take the range of these variables, e.g.,
nomic dispatch, inequality constraints that represent the permis- and .
sible operating range of each optimization variable are typically However, in the case of the discrete variables, an additional
handled in the following two ways: operator was needed to account for the distinct nature of these
— Set to limit approach (SLA): If any optimization variable variables. A rounding operator was included to ensure that
exceeds its upper or lower bound, the value of the variable each discrete variable is rounded to its nearest decimal integer
is set to the violated limit. This resembles the idea found value that represents the physical operating constraint of a
in operating all generating units at equal incremental pro- given variable. Each transformer tap setting was rounded to its
duction cost to reach optimal power dispatch. Once any nearest decimal integer value of 0.01 by utilizing the rounding
unit violates its operating range, the real power is set to the operator as follows . The
violated limit. It is important to note that PSO has some same principle applies to the discrete reactive injection due
randomness in the update equation that might cause sev- capacitor banks with the difference being the step size, i.e.,
eral variables to exceed their limits during the optimization . This ensures that the fitness
process. Thus, this approach may fix multiple optimization of each solution is measured only when all elements of the
variables to their operating limits for which global solution solution vector are properly represented to reflect the real world
may not be reached. Also this approach fails to utilize the nature of each variable. Since the particle update equations
memory element that each particle has once it exceeds its have some uniformly distributed random operators built into it
boundaries. References [22]–[25] employ this approach. and because of the addition of two different types of vectors,
— Penalty factor: The other approach is to use penalty factors the rounding operator is called again after each update to act
to incorporate the inequality constraints with the objective. only on the discrete variables as follows: and
The main problem with this approach is introducing new . Once the rounding process is over, all solution
parameters that need to be properly selected in order to elements go through a feasibility check. This simple rounding
reach acceptable PSO performance. Values of the penalty method guarantees that power flow calculations and fitness
factors are problem dependant; thus, this approach requires measurements are obtained only when all problem variables
proper adjustments of the penalty factors in addition to are properly addressed and their nature types are accounted for.
tuning the PSO parameters. References [8], [11], and [12]
make use of this approach.
1) Hybrid Inequality Constraints Handling Mechanism: IV. SIMULATION RESULTS AND DISCUSSION
The inequality constraints are handled by a hybrid constraints The proposed algorithm was implemented in Matlab com-
handling mechanism that brings together the concepts of two puting environment and the standard IEEE 30-bus test system
common methods currently used in evolutionary computation was used to validate its potential. The test system consists of six
optimization methods to deal with constraints. It combines the generating units interconnected with 41 branches of a transmis-
ideas of preserving feasible solution and infeasible solution sion network to serve a total load of 189.2 MW and 107.2 Mvar
rejection methods to retain only feasible solutions throughout as shown in Fig. 3. Detailed description of the system’s data is
the optimization process without the need to introduce penalty presented in the Appendix, [26], [27]. The emission data used in
factors in the objective function. In most of the evolutionary this study are for nitrogen oxides . Note that the original
computation optimization methods that employ the infeasible system has two capacitors banks installed at bus 5 and 24 with
solution rejection method to handle constraints, any solution ratings of 19 and 4 Mvar, respectively. A series of experiments
candidate among the population is randomly re-initialized once were conducted to properly tune the HPSO parameters to suit
it crosses the boundaries of the feasible region. The majority the targeted OPF problem. Considering the quadratic fuel cost
of methods do not have memory elements associated with each function as an objective, Table I shows the HPSO outcomes as
candidate in the population. However, in the case of HPSO, a result of varying its parameters. To quantify the results, 50 in-
each particle has a memory element (pbest) that recalls the best dependent runs were executed for each parameter variation. The
visited location through its own flying experience to search most noticeable observation from this groundwork is that the op-
for the optimal solution and may use this information once timal settings for and are found to be 1.0. These values are
it violates the problem boundaries. Thus, this hybridization relatively small since most of the values reported in the previ-
makes use of the memory element that each particle has to ously related work are in the range of 1.4–2 [12], [22]–[25]. The
maintain its feasibility status. This restoration operation keeps best settings for number of particles and particle’s maximum ve-
the infeasible particle alive as a possible candidate that could locity are 20 and 0.1 respectively.
locate the optimal solution instead of a complete rejection that In our implementation, the is the upper limit used to
eliminates its potential in the swarm. randomly initialize and enforce the velocity vector throughout
the optimization process. A fixed value is used for all
B. Control Variables Treatment problem variables. This means that the velocity vector of all
The problem variables considered in our formulation are optimization problems is randomly initialized with a range of
of two types: continuous and discrete as shown in (4) that . It appears from the results shown in Table I
ALRASHIDI AND EL-HAWARY: HYBRID PARTICLE SWARM OPTIMIZATION APPROACH FOR SOLVING THE DISCRETE OPF PROBLEM 2035
TABLE II
COMPARISON BETWEEN HPSO AND SQP FOR CASE 1
TABLE III
RESULTS OF DIFFERENT OBJECTIVE MINIMIZATION WHEN BOTH DISCRETE
AND CONTINUOUS VARIABLES ARE CONSIDERED (CASE 2)
Fig. 4. High degree of convexity in the shape of the objective once valve
loading effects are included.
TABLE IV
RESULTS OF CASE 2 UNDER DIFFERENT SWARM’S SIZE
TABLE VI
STATISTICAL DATA FOR CASE 4
TABLE IX
BRANCH DATA FOR IEEE 30-BUS SYSTEM
TABLE VII
CHARACTERISTICS OF THE GENERATION UNITS
the flying experience of the swarm in the search for optimal so-
lution, the algorithm was modified such that the SLA approach
was incorporated to deal with the inequality constraints. Cases
2 and 3 were repeated with the same HPSO parameters pre-
viously used. The performance results of this version of PSO
are tabulated in Table VI. This type of inequality constraints
handling strategy degraded the PSO performance in solving the
OPF in both cases and for all the objectives considered when
compared to results shown in Table V. As anticipated, multiple objectives. Second, the equality constraints, i.e., the power
optimization variables (in some cases up to eight variables) were equations mismatch is minimized using the Newton–Raphson
set to their limits. This signifies the importance of utilizing the method in a separate subroutine. Third, the inequality con-
memory element of each particle to recall its pbest position once straints are handled by the proposed hybrid constraints handling
it flies outside the feasible solution hyperspace. mechanism to preserve feasibility of solutions. Results are
compared to the outcomes of other optimization techniques,
V. CONCLUSION namely SQP and modified PSO with conventional inequality
The work presented in this paper investigates the applica- constraints handling strategy. Comparison shows that HPSO
bility of HPSO in solving the OPF problem under different consistently outperforms both techniques once its parameters
formulations and considering different objectives. The HPSO are properly tuned. A study of HPSO parameters tuning is
algorithm treats the OPF problem in three major steps. First, the presented to enhance the optimizer performance in finding
optimal combinations of the mixed-type control variables are the minimum of several objectives. The PSO is combined
handled by the discrete HPSO to optimize convex and convex with Newton–Raphson algorithm to form a hybrid optimizer
2038 IEEE TRANSACTIONS ON POWER SYSTEMS, VOL. 22, NO. 4, NOVEMBER 2007
that can solve the discrete OPF problem with the inclusion of [13] D. C. Walters and G. B. Sheble, “Genetic algorithm solution of eco-
valve loading effects. This emphasizes the HPSO capability of nomic dispatch with valve point loading,” IEEE Trans. Power Syst.,
vol. 8, no. 3, pp. 1325–1332, Aug. 1993.
handling optimization problems with more complex modeling [14] R. Eberhart and J. Kennedy, “A new optimizer using particle swarm
of system objectives and/or constraints. In contrast, most gra- theory,” in Proc. 6th Int. Symp. Micro Machine and Human Science,
Nagoya, Japan, 1995, pp. 39–43.
dient-based optimization methods add more restrictions on the [15] J. Kennedy and R. Eberhart, “Particle swarm optimization,” in Proc.
nature of the problem formulation like continuity, convexity, IEEE Int. Conf. Neural Networks, Perth, Australia, 1995, vol. 4, pp.
and differentiability to ensure finding the optimal solution. 1942–1948.
[16] X. Hu, Y. Shi, and R. Eberhart, “Recent advances in particle swarm,”
Sometimes, such restrictions may lead to intolerable modeling in Proc. Congr. Evolutionary Computation, Portland, OR, 2004, vol.
simplifications that can produce gross error in computing the 1, pp. 90–97.
[17] R. C. Eberhart and Y. Shi, “Guest editorial special issue on particle
minimum of the objective at hand. swarm optimization,” IEEE Trans. Evol. Comput., vol. 8, no. 3, pp.
HPSO performance and robustness in its search for optimal 201–203, Mar. 2004.
[18] J. Kennedy and R. C. Eberhart, Swarm Intelligence. San Francisco,
solution is highly dependant on its parameters tuning and the CA: Morgan Kaufmann, 2001.
shape of the objective function. Objective functions with smooth [19] Y. Shi and R. Eberhart, “A modified particle swarm optimizer,” in Proc.
shapes tend to require less number of particles and iterations IEEE World Congr. Computational Intelligence, 1998, pp. 69–73.
[20] A. J. Korsak, “On the question of uniqueness of stable load-flow
to converge to the optimal solution while the ones with rough solutions,” IEEE Trans. Power App. Syst., vol. PAS-91, no. 3, pp.
surface would require more number of particles and iterations 1093–1100, May 1972.
[21] G. Coath and S. K. Halgamuge, “A comparison of constraint-han-
to reach the same quality of solution. dling methods for the application of particle swarm optimization
to constrained nonlinear optimization problems,” in Proc. Congr.
Evolutionary Computation, Canberra, Australia, 2003, vol. 4, pp.
APPENDIX 2419–2425.
[22] J. G. Vlachogiannis and K. Y. Lee, “A comparative study on particle
Tables VII–IX show the standard IEEE 30-bus test system swarm optimization for optimal steady-state performance of power sys-
tems,” IEEE Trans. Power Syst., vol. 21, no. 4, pp. 1718–1728, Nov.
data used to validate the proposed approach. 2006.
[23] J. B. Park, K. S. Lee, J. R. Shin, and K. Y. Lee, “A particle swarm
optimization for economic dispatch with nonsmooth cost functions,”
ACKNOWLEDGMENT IEEE Trans. Power Syst., vol. 20, no. 1, pp. 34–42, Feb. 2005.
[24] Z. L. Gaing, “Constrained optimal power flow by mixed-integer par-
The authors would like to thank the anonymous reviewers for ticle swarm optimization,” in Proc. IEEE Power Eng. Soc. General
Meeting, San Francisco, CA, 2005, pp. 243–250.
their valuable comments. [25] Z. L. Gaing, “Particle swarm optimization to solving the economic dis-
patch considering the generator constraints,” IEEE Trans. Power Syst.,
vol. 18, no. 3, pp. 1187–1195, Aug. 2003.
REFERENCES [26] R. D. Zimmerman, C. E. Murillo-Sanchez, and D. Gan, MATPOWER:
A Matlab Power System Simulation Package 2006 [Online]. Available:
[1] J. Carpentier, “Contribution e létude do Dispatching Economique,” http://www.pserc.cornell.edu/matpower
Bull. Soc. Franc. Elect., pp. 431–447, 1962. [27] R. Yokoyama, S. H. Bae, T. Morita, and H. Sasaki, “Multiobjective op-
[2] J. D. Weber and T. J. Overbye, “An individual welfare maximization timal generation dispatch based on probability security criteria,” IEEE
algorithm for electricity markets,” IEEE Trans. Power Syst., vol. 17, Trans. Power Syst., vol. 3, no. 1, pp. 317–324, Feb. 1988.
no. 3, pp. 590–596, Aug. 2002. [28] “Present Practices in the Economic Operation of Power Systems,”
[3] Y. He, Y. H. Song, and X. F. Wang, “Bidding strategies based on bid IEEE Trans. Power App. Syst., vol. PAS-90, no. 4, pp. 1768–1775,
sensitivities in generation auction markets,” Proc. Inst. Elect. Eng., vol. Nov. 1971.
149, no. 1, pp. 21–26, 2002. [29] T. Kulworawanichpong and S. Sujitjorn, “Optimal power flow using
[4] J. A. Momoh, R. Adapa, and M. E. El-Hawary, “A review of selected tabu search,” IEEE Power Eng. Rev., vol. 22, no. 6, pp. 37–55, Jun.
optimal power flow literature to 1993—I: Nonlinear and quadratic pro- 2002.
gramming approaches,” IEEE Trans. Power Syst., vol. 14, no. 1, pp. [30] L. Coelho and V. C. Mariani, “Combining of chaotic differential evo-
96–104, Feb. 1999. lution and quadratic programming for economic dispatch optimization
[5] J. A. Momoh, M. E. El-Hawary, and R. Adapa, “A review of selected with valve-point effect,” IEEE Trans. Power Syst., vol. 21, no. 2, pp.
optimal power flow literature to 1993—II: Newton, linear program- 989–996, May 2006.
ming and interior point methods,” IEEE Trans. Power Syst., vol. 14,
no. 1, pp. 105–111, Feb. 1999. M. R. AlRashidi (S’00) received the B.S. degree
[6] M. Avriel and B. Golany, Mathematical Programming for Industrial from the University of Portland, Portland, OR, and
Engineers. New York: Marcel Dekker, 1996. the M.S. degree from Youngstown State University,
[7] C. Wang, H. Yuan, Z. Huang, J. Zhang, and C. Sun, “A modified par- Youngstown, OH, both in electrical engineering,
ticle swarm optimization algorithm and its application in optimal power in 1997 and 2000, respectively. He is currently
flow problem,” in Proc. Int. Conf. Machine Learning and Cybernetics, pursuing the Ph.D. degree in electrical engineering
Guangzhou, China, 2005, vol. 5, pp. 2885–2889. at Dalhousie University, Halifax, NS, Canada.
[8] R. Ma, P. Wang, H. Yang, and G. Hu, “Environmental/economic His research interests include power system oper-
transaction planning using multiobjective particle swarm optimization ation, optimization techniques, and artificial intelli-
and non-stationary multi-stage assignment penalty function,” in Proc. gence.
IEEE/PES Transmission and Distribution Conf. Exhibition: Asia and
Pacific, Dalian, China, 2005, pp. 1–6.
[9] B. Zhao, C. X. Guo, and Y. J. Cao, “Improved particle swarm optimiza- M. E. El-Hawary (F’90) received the B.S. degree
tion algorithm for OPF problems,” in Proc. IEEE/PES Power Systems in electrical engineering with distinction from the
Conf. Exposition, New York, 2004, pp. 233–238.
University of Alexandria, Egypt, in 1965, and
[10] P. N. Biskas, N. P. Ziogos, A. Tellidou, C. E. Zoumas, A. G. Bakirtzis,
and V. Petridis, “Comparison of two metaheuristics with mathematical the Ph.D. degree from the University of Alberta,
programming methods for the solution of OPF,” Proc. Inst. Elect. Eng., Edmonton, AB, Canada, in 1972, where he was a
vol. 153, no. 1, pp. 16–24, 2006. Killam Memorial Fellow.
[11] S. He, J. Y. Wen, E. Prempain, Q. H. Wu, J. Fitch, and S. Mann, “An He is an Associate Dean of Engineering and
improved particle swarm optimization for optimal power flow,” in Proc. has been a Professor of electrical and computer
Int. Conf. Power System Technology, The Pan Pacific, Singapore, 2004, engineering at Dalhousie University, Halifax, NS,
vol. 2, pp. 1633–1637. Canada, since 1981. His research interests are
[12] M. A. Abido, “Optimal power flow using particle swarm optimization,” in power system economics and computational
Int. J. Elect. Power Energy Syst., vol. 24, no. 7, pp. 563–571, 2002. methods in power systems engineering.