Académique Documents
Professionnel Documents
Culture Documents
College of Engineering
Electrical Engineering Department
Optimal Reconfiguration of
Colony Method
A thesis By
Abdullah M. Alshehri
Supervised by
RIYADH
Jumada AlAwla, 1428 H
June , 2007
A thesis By
Abdullah M. Alshehri
Committee Members:
ﻤﻠﺨﺹ
ﺍﻟﺘﺸﻜﻴل ﺍﻷﻤﺜل ﻟﺸﺒﻜﺎﺕ ﺍﻟﺘﻭﺯﻴﻊ ﺒﺎﺴﺘﺨﺩﺍﻡ ﻁﺭﻴﻘﺔ ﻤﻤﻠﻜﺔ ﺍﻟﻨﻤل
ﺘﻤﺘﻠﻙ ﺃﻨﻅﻤﺔ ﺘﻭﺯﻴﻊ ﺍﻟﻁﺎﻗﺔ ﺍﻟﻜﻬﺭﺒﺎﺌﻴﺔ ﻤﻔﺎﺘﻴﺢ ﺭﺒﻁ ﻭﻓﺼل ﺘﺤﺩﺩ ﺸﻜل ﺸﺒﻜﺎﺕ
ﺍﻟﺘﻭﺯﻴﻊ ﺍﻟﻜﻬﺭﺒﺎﺌﻴﺔ .ﻴﻌﺎﺩ ﺘﺸﻜﻴل ﺸﺒﻜﺎﺕ ﺍﻟﺘﻭﺯﻴﻊ ﺍﻟﻜﻬﺭﺒﺎﺌﻴﺔ ﻤﻥ ﺨﻼل ﺘﺸﻐﻴل ﻤﻔﺎﺘﻴﺢ
ﺍﻟﺭﺒﻁ ﻭﺍﻟﻔﺼل ﺒﺎﻟﺘﺒﺎﺩل .ﻓﺸﺭﻜﺎﺕ ﺘﻭﺯﻴﻊ ﺍﻟﻁﺎﻗﺔ ﺍﻟﻜﻬﺭﺒﺎﺌﻴﺔ ﺘﺴﻌﻰ ﻟﻠﺤﺼﻭل ﻋﻠﻰ
ﺃﻓﻀل ﺸﻜل ﻟﺘﺸﻐﻴل ﺸﺒﻜﺎﺕ ﺍﻟﺘﻭﺯﻴﻊ ﺍﻟﻜﻬﺭﺒﺎﺌﻴﺔ ﻤﻥ ﺨﻼل ﺘﻘﻠﻴل ﺍﻟﻔﻘﺩ ﻓﻲ ﺍﻟﻁﺎﻗﺔ
ﻭﻤﻭﺍﺯﻨﺔ ﺍﻷﺤﻤﺎل ﻤﻤﺎ ﻴﺤﻘﻕ ﺘﺭﺸﻴﺩ ﻓﻲ ﺍﻟﻁﺎﻗﺔ ﻭﻴﺤﺴﻥ ﺃﺩﺍﺀ ﺍﻟﻨﻅﺎﻡ ﺍﻟﻜﻬﺭﺒﺎﺌﻲ.
ﻋﺎﺩﺓ ﻴﺘﻡ ﺼﻴﺎﻏﺔ ﻤﺴﺄﻟﺔ ﺇﻋﺎﺩﺓ ﺘﺸﻜﻴل ﺍﻟﺸﺒﻜﺔ ﺍﻟﻜﻬﺭﺒﺎﺌﻴﺔ ﻜﺩﺍﻟﺔ ﺘﺤﻘﻴﻕ ﺍﻟﻤﺜﺎﻟﻴﺔ
ﺫﺍﺕ ﻫﺩﻑ ﻤﻔﺭﺩ ﺒﻘﻴﻭﺩ ﻤﺘﻌﺎﺩﻟﺔ ﻭﻤﺘﺭﺍﺠﺤﺔ .ﺘﻌﺘﺒﺭ ﻤﺴﺄﻟﺔ ﺇﻋﺎﺩﺓ ﺘﺸﻜﻴل ﺍﻟﺸﺒﻜﺔ ﻫﻲ
ﻤﺴﺄﻟﺔ ﺘﺤﻘﻴﻕ ﺍﻟﻤﺜﺎﻟﻴﺔ ﺍﻟﻤﻌﻘﺩﺓ ﻭﺍﻟﻤﺩﻤﺠﺔ ﻟﻭﺠﻭﺩ ﻗﻴﻭﺩ ﻻ ﻴﻤﻜﻥ ﺘﺠﺎﻭﺯﻫﺎ ﻋﻨﺩ ﺇﻴﺠﺎﺩ
ﺤل ﻤﺜﺎﻟﻲ ﺃﻭ ﺸﺒﻪ ﻤﺜﺎﻟﻲ ﻟﻠﻤﺴﺄﻟﺔ ،ﻭﻨﺘﻴﺠﺔ ﻟﺫﻟﻙ ﻴﺘﻁﻠﺏ ﻁﺭﻕ ﺫﺍﺕ ﻜﻔﺎﺀﺓ ﻋﺎﻟﻴﺔ
ﻟﻠﺘﻌﺎﻤل ﻤﻊ ﻫﺫﺍ ﺍﻟﻨﻭﻉ ﻤﻥ ﺍﻟﻤﺴﺎﺌل.
ﺨﻼل ﻫﺫﻩ ﺍﻟﺭﺴﺎﻟﺔ ﺍﻟﻌﻠﻤﻴﺔ ،ﺘﻡ ﺍﺴﺘﺨﺩﺍﻡ ﻁﺭﻴﻘﺔ ﺫﻜﻴﺔ ﻭﻗﻭﻴﺔ ﺘﺩﻋﻰ ﻤﻤﻠﻜﺔ
ﻫﺫﻩ ﺍﻟﻁﺭﻴﻘﺔ ﺘﻌﺘﻤﺩ ﻋﻠﻰ ﺍﻟﻨﻤل ﻟﺤل ﻤﺴﺄﻟﺔ ﺇﻋﺎﺩﺓ ﺘﺸﻜﻴل ﺍﻟﺸﺒﻜﺔ ﺍﻟﻜﻬﺭﺒﺎﺌﻴﺔ.
ﻤﺠﻤﻭﻋﺎﺕ ﻤﻥ ﺍﻟﻨﻤل ﺘﺴﺘﺨﺩﻡ ﺍﻟﺒﺤﺙ ﺍﻟﺴﺭﻴﻊ ﻭﺍﻟﻤﻜﺜﻑ ﻭﺍﻷﺜﺭ ﺍﻟﺭﺠﻌﻲ ﺍﻟﻤﻭﺠﺏ ﻓﻲ
ﺍﻻﺴﺘﻜﺸﺎﻑ.
ﺍﻟﻁﺭﻴﻘﺔ ﺍﻟﻤﻘﺘﺭﺤﺔ ﺍﺴﺘﻭﺤﻴﺕ ﻤﻥ ﺍﻟﺴﻠﻭﻙ ﺍﻟﻁﺒﻴﻌﻲ ﻟﻠﻨﻤل ﻓﻲ ﺇﻴﺠﺎﺩ ﺍﻟﻘﻭﺕ
ﻭﺠﻠﺒﻪ ﺇﻟﻰ ﺍﻟﻤﺴﺘﻌﻤﺭﺓ ﺘﺎﺭﻜﺔ ﺍﺜﺭ ﻓﻲ ﻁﺭﻴﻘﻬﺎ ﺘﺘﺒﻌﻪ ﺍﻟﻤﺠﻤﻭﻋﺎﺕ ﺍﻷﺨﺭﻯ،ﺤﻴﺙ ﻴﻤﺘﻠﻙ
ﺍﻟﻨﻤل ﺍﻟﻘﺩﺭﺓ ﻟﻠﺒﺤﺙ ﻋﻥ ﺃﻓﻀل ﻭﺍﻗﺼﺭ ﻤﺴﺎﺭ ﻟﻠﺤﺼﻭل ﻋﻠﻰ ﺍﻟﻘﻭﺕ ﻤﻥ ﺨﻼل ﺇﻓﺭﺍﺯ
ﻤﻭﺍﺩ ﻜﻴﻤﻴﺎﺌﻴﺔ ﻓﻲ ﺍﻟﻤﺴﺎﺭ ﺍﻟﺫﻱ ﺘﺴﻠﻜﻪ.
Power distribution systems have tie and sectionalizing switches whose states
Power companies are interested in finding the most efficient configuration for
minimization of real power losses and load balancing among distribution feeders to
save the energy and enhance the operation performance of distribution system.
The objective of this thesis is to show that the ant colony optimization
algorithm can be used successfully in the reconfiguration of electrical distribution
networks to minimize the power losses of the system and to balance the loading of the
feeders. This work is to provide a basis for power companies to use it in the
reconfiguration of the distribution networks to reduce the operational costs and to
enhance the performance of their networks.
The network reconfiguration problem is usually formulated as a single
objective optimization problem with equality and inequality constraints. The network
reconfiguration is a complex combinatorial optimization problem. This is because
there are multiple constraints which must not to be violated while finding an optimal
or near optimal solution to the distribution network reconfiguration problem. As a
result, more efficient approaches are required to handle this combinatorial problem.
In this thesis, a new and powerful intelligent evolution method, called ant colony
population based approach that uses the exploration of positive feedback as well as
greedy search. The proposed method was inspired from natural behavior of the ant
colonies on how they find the food source and bring them back to their nest by
building the unique trail formation. Artificial ants are able to search for the
pheromone trail deposited on the edge of their traveling path. The algorithm required
for carrying out the steps of the ACO is not unique. In this research, a new algorithm
Then, ACO algorithm has been applied to the distribution system reconfiguration
distribution networks of different sizes has been evaluated using MATLAB to test the
effectiveness and validity of the proposed algorithm. Also, the studied distribution
networks have been simulated using the PowerWorld simulator to verify the
MATLAB results in addition to perform other evaluation tools. The obtained results
2.1 Introduction……………………….……………..………………..……………….3
3.1.3 Constraints………………………………………….……………………...24
3.3.1 Background….……………………………………………….…………….27
4.2.1 Introduction………………………………………………………………..36
5.1 Introduction…………………………………………………………………….46
5.2.5 Contours……………………………………………………………………51
5.3.5 Contours…………………………………………………………………..62
5.4.5 Contours…………………………………………………………………74
References………………………………………………………………………81
Figure 5.3: Bus voltage of Baran and Wu system of the initial configuration……51
Figure 5.4: Bus voltage of Baran and Wu system of the optimal configuration for
Figure 5.5: Bus voltage of Baran and Wu system of the optimal configuration for
load balancing…………………………………….…………………..52
Figure 5.8: MW loss of Baran and Wu system of the optimal configuration for
load balancing……………………………………………………...….54
Figure 5.9: Line current of Baran and Wu system of the initial configuration…….56
Figure 5.10: Line current of Baran and Wu system of the optimal configuration for
Figure 5.11: Line current of Baran and Wu system of the optimal configuration for
load balancing……………………………………….……………..…57
Figure 5.15: Bus voltage of Taiwan network of the optimal configuration for
Figure 5.16: Bus voltage of Taiwan network of the optimal configuration for
load balancing……………………………………….………………...64
load balancing………………………………………….……………...66
Figure 5.21: Line current of Taiwan network of the optimal configuration for
load balancing……………………………………….………………..69
Figure 5.29: Line current of SEC network of the optimal configuration…….… ..77
Table 5.2: Results for power loss minimization of Baran and Wu system………….48
t: Network Configuration………….…………….……………………………...……22
x: Operating State…………………………...………………………………………..22
n: Number of Nodes…………………………….…………………………….….…..22
V: Voltage Magnitude……………….………………………………………………23
i: A branch………………...………………………………………………………....23
k: An ant ……….…………………………………….……………………………....32
INTRODUCTION
In the past decades, there have been many advances in communications and data
automation can improve the reliability, efficiency and service quality of the system. It
has become possible to install distribution operating center to monitor and control the
Distribution networks have two types of switches, sectionalizing switches that are
normally close and tie switches that are normally open. The distribution system has
multi substations and multi feeders, so that any load in the system can be supplied
more than one route. Accordingly, the distribution system can be reconfigured by
changing the status of sectionalizing and tie switches. The reconfiguration is applied
• Load balancing.
The goal of this research is to optimize the configuration of distribution system for
power loss minimization and load balancing by using the ant colony optimization
having different scales among them is a part of the Saudi Electric Company system
(SEC).
needed to quickly find the network reconfiguration which minimizes the total real
power losses of the network and balances loading which satisfying all of the system
constraints. Several methods have been applied to solve this problem with varying
degree of success. Some methods find suboptimal solution rapidly and other find
Through this thesis an approach based on ant colony optimization has been used to
solve the reconfiguration problem. This thesis consists of five chapters that discuss
the topic. A literature review about optimization methods has been discussed in
comparative study among optimization methods has been done and the proposed
method has been selected. Also, it presents a background about the proposed method
problem using the proposed method and the simulator software have been discussed
in chapter Four. In chapter Five the proposed method is tested on three distribution
systems and numerical results are discussed. Finally, the conclusions are presented in
chapter Six. At the end of the research, three appendices are attached.
LITERATURE REVIEW
2.1 Introduction
Distribution automation is one of the hot issues in power systems. The distribution
systems are automated to improve their reliability, efficiency, and service quality.
monitored and control actions can be made remotely. One of the actions that can
residential, and industrial type loads. These load types have different daily patterns
which make the peak load of feeders occur at different times. In normal operating
conditions, part of loads can be transferred from heavily loaded to relatively less
(sectionalized switches) and switches that are normally open (tie switches).
and tie switches. When the operation conditions change, network reconfiguration is
performed by the opening / closing of the network switches under the constraints of
problem. This is because there are multiples of constraints which must not be
1975, Merlin and Back [1] proposed a branch and bound type heuristic method to
determine the network configuration for minimum line losses. Its solution scheme
starts with a meshed network by initially closing all switches in the network. The
switches are then opened one at a time until a new radial configuration is reached. In
this process the switch to be opened at each stage is selected in order to minimize line
losses of the resulting network. The principal advantages of this method are:
configuration.
Shirmomohammadi and Hong [2] improved the method of Merlin and Back. As a
result, it shares the two principle benefits of that methodology, convergence to the
optimum or near optimum solution and the independent of the final solution from the
initial status of the network switches. At the same time, this method avoids all the
Civanlar [3] developed a branch exchange method. In this method, loss reduction
one for opening and the other for closing so that the resulting network has lower line
losses while remaining connected and radial. The major drawbacks of this method
are:
consuming.
branch exchange to reduce losses and balance the loads in the feeders. To assist in the
search, two approximated load flows for radial networks with different degrees of
accuracy are used. They are simple Dist flow method and back and forward update of
Dist flow method. The method is very time consuming due to the complicated
combinations in large scale system and converges to a local optimum solution, that is,
quadratic costs using the quadratic simplex method. The network starts with just the
segment available to switch in, the one with minimum unit transshipment cost is
chose first. The linearlized transshipment cost was defined as the segment capacity
times resistance, so it does not depend on load. Then, of the other segment available
to serve that new load point, the chosen segment is checked to make sure it results in
minimum increase in losses. This search does not necessary guarantee global optima.
Safri and Chikhani [6] defined a new set of heuristic rules for distribution system
reconfiguration problem. The rules have been developed with the objective of
reducing losses directly and make an effort quantize the suitability of switching
removing undesirable switching options without the need to perform a complex load
flow analysis.
Peponis [7] used a combined method the switch exchange (SEM) and sequential
switch opening method (SSOM) for reconfiguration of the network for loss reduction.
performed. Both manual and automatic switches are used to reconfigure the system
for seasonal studies where as only automatic switches are considered for daily studies.
information technology and equipment. It is shown that switching at the system peak
can reduce losses but cause a marginal increase in system peak. The practical aspects
Chiang and Darling [9] proposed an efficient algorithm for real network
the network topology as needed for loss reduction and load balancing in response to
Safri [10] proposed an algorithm that is based on network portioning into groups of
load buses such that the line section losses between the groups of nodes are
Bouchard and Salma [11] represented the distribution system buses and sections as
adjacency and incidence matrices. Three algorithms are used for reconfiguration.
The first determines the admittance matrix for a feeder. The second algorithm
performs a brand exchange between two feeders ensuring no loads are left
Fan and Zhang [12] attempted to provide an analytical description and a systematic
understanding about the single loop optimization approach via qualitative analysis. It
optimization problem with a quadratic objective function, 0-1 type state variables can
linear constraints equation with sate dependent formulas. This non-linear integer
integer linear programming (LP) problem. This leads to the consideration of applying
the concept of simplex method normally used for solving LP problems which in turns
lead to the direct deviation of the single loop optimization approach. In addition, an
efficent and simple scheme to calculate load flow and loss change in the network after
obtain the optimal switch plan by eliminating those unnecessary switch operations
during the iterative solution procedure of the single loop optimization approach to
accomplish the transition from the initial configuration to the optimal configuration.
Borozan [13] analyzed the influence of load imbalances on the minimum loss
developed. The method is direct extension of the improved method for loss reduction
Rudnick [15] modified the solution method proposed by Baran and Wu where
requires a large amount of load flow calculations, and due to the great computation
effort. In this method a simplified non iterative calculation method that allows
calculating the power flows and the bus voltage with reasonable accuracy, reducing
Zhou described a new feeder reconfiguration algorithm for the purpose of reducing
the operating cost in the real time operation environment. The methodology
operation over a specified period rather than simply reducing losses for a fixed
operating point.
Taleski [16] proposed a heuristic minimal loss method based oriented ordering of
evaluation, all together combined in the energy summation method for computation of
energy losses. Basically, the method belongs to the branch exchange techniques.
Possible loops in the network are analyzed and reconfigured one at a time. The
reconfiguration is performed by closing the open tie switch that defines the loop and
opening the switch in the branch that produces maximum savings in energy losses.
by Civanlar but applied to energy losses rather than the power losses. The order by
which the loops are analyzed and reconfigured is determined by heuristic rules.
Zhou [17] provided a real time operation decision support tool using a combination
of optimization techniques with heuristic rules and the fuzzy logic approach to obtain
Lin and Chin [18] developed a new approach for the distribution network
proper set of switching operations. Switching indices were defined by using branch
voltage drops and line constraints. In normal operational state, switches with the
exchange algorithm for load balancing. The method is based on two stages. Initially
a graphical representation is used to determine the loop that gives the maximum
that loop to get the maximum improvements in load balancing. Using the proposed
technique the optimal or near optimal solution is achieved with improved load
McDermott [20] presented a heuristic constructive algorithm that starts with all
operable switches open and at each step closes the switch that results in the least
losses divided by incremental load served. A simplified loss formula is used to screen
candidate switch but a full load flow after each actual switch closing maintains
accurate loss and constraint information. A back tracking option mitigrates the
algorithm's greedy search to avoid local minima. This algorithm takes more
computation time but it models the constraints and control action more accurately.
Kashem [21] proposed a new algorithm for enhancing the voltage stability by
generated using the combination of tie and its two neighboring switches at the best
combination of switching for maximizing the voltage stability in the network among
them is determined. This search is extended by considering the branches next to the
open branches of the beat configuration only by one to check whether there is any
stability.
to identify the optimum configuration for loss minimization. At the beginning of the
tie switch and its two neighbors are selected and the infeasible combinations in the
selection are omitted. The minimum loss configuration in the selected combinations
status one at a time, by either moving to left or to the right of the open branch in the
determined.
Mortan and Marlees [23] suggested a brute force algorithm for determining a
minimal loss radial configuration using an exhaustive search algorithm. The graph
theory involving semi sparse transformations of a current sensitivity matrix were used
Delbem [24] presents the graph chain representation to reduce significantly the
Ebrahimi and Mohseni [25] proposed a heuristic fuzzy reasoning based method for
Ramos [26] proposed new solution takes into account the status of all branches in
the network and at the same time introduces some approximations to reduce
computation times. The main idea consists of defining binary variables to model the
network topology incorporating them into the optimization problem. No load flow
solution is required throughout the process since branch losses are taken into account
three phase distribution power flow algorithm and an algorithm for determining
optimal matching loop flow, which is firmly based on loop analysis in basic circuit
form a meshed network first, and then calculating the optimal matching loop flows to
produce a radial network with minimum losses. The solution method can consider the
demand to discuss the loss reduction during the planning period. Their contributions
are a careful analysis of the loss reduction problem with variable demands and two
Wu and Yu [30] presented a global optimization method for solving the snapshot
and time varying reconfiguration problem for large scale electronic power distribution
network. The snapshot reconfiguration problem using single snapshot of the network
loading condition is solved using two steps: firstly, search for the local optimum by
Dijkstrass shortest path algorithm and form core schema chromosome by core schema
algorithm. Secondly, search possible core schema chromosome for the global
Lorenzeti and Castro [31] proposed a heuristic method to improve voltage stability
calculation proposed by Gubinc and Strmcnic. A back and forward sweep load flow
method is used for computing the network operating state after switching operation
candidate is selected and taken into effect. Also, an approximate voltage update
Gomes and Garcia [32] proposed a heuristic method based on optimal power flow
proposed method starts with a meshed distribution system obtained by considering all
switches closed. Then, the switches are opened successively to eliminate the loss.
various objectives. They are either heuristics with fast and local optimum solution or
a blend of heuristics and optimizations guarantee the global optimum with much
computation time.
Nara [33] used the genetic algorithm (GA) which is a search algorithm based on
the mechanism of natural selection and natural genetics. It combines the adaptive
nature of the natural genetics or the evolution procedure of organs with functional
Fudou and Fukuyama [34] presents a GA using three phases unbalanced load flow.
A proper string representation for loads and power supplies is devised and a method
operator which modifies the string so as to improve the objective function of the
problem and to satisfy the radial network constraints. A modification to the fitness
Zhou [35] refined the GA method by modifying the string structure and fitness
Some improvements are made on chromosome coding (real coding), fitness function
mutation is developed not only to present premature convergence but also to produce
smooth convergence.
Lin and Cheng [36] proposed a refined GA (RGA) that takes advantage of the
optimal flow pattern [2], GA and the Tabu search (TS). Cross over and mutation
Xiaming and Xiangen [37] used the loop coding technique to reduce the length of
chromosome and the tree decoding used for back suppressor power flow algorithm to
Ming and Pengxiang [38] proposed an improved GA which making use of the
exchange between templates which mutation operations and inversion operations are
restricted in templates. Above strategies greatly reduce the infeasible solution which
was also proposed to reduce the length of the chromosome and reciprocal value of the
Yu and Wu [39] proposed an efficient global optimization algorithm for large scale
algorithm.
maximizing the fuzzy satisfaction allows the operator to simultaneously consider the
Radha [41] proposed real coded GA using a fixed cross over probability of 0.7 and
Radha and King [42] solved the problem with implementation simplicity,
valued genes and adaptive mutation rate is proposed. This approach obtains global
optimum solution in less time than exhaustive search (brute force) followed by
heuristic method. The genetic string is in a shortened format to minimize the required
Wang and Li [43] proposed a kind of GA aiming at power system i.e. predigest ion
based on the main genetic operator of clonal GA and its nature. It can be used to
reduce the unsolvable code of the distribution system reconfiguration to enhance the
Parsad and Ranjan [44] proposed an improved GA where efficient and improved
coding and decoding technique for the chromosome representing the network. The
attractive feature is the application of standard genetic operators i.e. crossover and
mutation does not destroy the radial property of the chromosome (network) and much
computation time is served in the process. As efficient search of the global search
constraints.
King and Radha [45] used a fuzzy logic controller to adapt the cross over and
mutation probabilities based on the fitness function. The main advantages of fuzzy
control system over the conventional method are: ability of modeling the quantitive
aspects of human knowledge and reasoning process, model free estimator, robustness,
and easy implementation. The fuzzy logic controlled GA always finds the global
optimum and has proved to have faster convergence than a GA using fixed cross over
Parsad and Ranjan [46] presented efficient coding and decoding chromosome
which represented the network. The advantage of this coding and decoding scheme is
that at every stage of genetic operations, then network remain radial and islanding of
load points are prevented. Also, fuzzy modeling of mutation probability in the
genetic paradigm.
Hong and Ho [47] presented a method based on integration of both GA and fuzzy
system. The Prufer number encoding can avoid the tedious “mesh check” algorithm.
It can be proved that the prufer number encoding requires only (N-2) bits for encoding
which is less than that required by the traditional branch encoding methods.
Parsad and Ranjan [48] proposed a fuzzy mutated GA which overcomes the
combination nature of the reconfiguration problem and deals with non continous
presentation of radial property the network without islanding any load points by an
Kim [49] presented the strategy of feeder reconfiguration to reduce the power loss
where are the aspects that the load transfer and the corresponding load flow solution
during the search process are not required. The training set of ANN is the optimal
system topology corresponding to various load patterns which minimizes the load
Bouchard and Chikhani [50] presented a Hopfield neural network for optimization
problem because the solution is determined collectively is very short time by a large
number of neurons. The results show the network did not converge to a valid solution
Taylor and Lubkeman [51] presented an expert system using heuristic rules to
shrink the search space for reducing the computation time. However, only a feasible
Lin [52] presented a rule based expert system with a colored perti net (CPN)
algorithm for load balancing of distribution system. CPN models of the distribution
components such as four ways line switches are proposed to derive the proper
switching operation.
Jin and Zhao [53] presented method based on binary particle swarm optimum for
trying to reach an unknown destination. Each solution is a ‘bird’ in the flock and is
Li and Chen [54] introduced an efficient and robust method based on tabu search
(TS) technique which is a recent member in the family of modern heuristics methods
novel variable “upward node expression” approach is adopted and an efficient scheme
is integrated to restrict each trial solution in radial network formats (speeding up).
The other components of TS are neighborhood design, evaluation function design and
tabu list.
Mori and Ogita [55] proposed parallel TS to reduce the computation effort and
enhance the solution accuracy by the TS. A couple of strategies are introduced into
subneighbourhood. The other is to consider different tabu lengths that make solution
more diverse.
tuning of conventional Meta heuristics like GA, SA, and TS. RTS proposes the
problem. RTS is one of the RS methods and it has feedback based tuning mechanism
intensification.
Chiang and Jumeu [57], [58] proposed a two solution algorithm for general
global no inferior point by applying the modified simulated annealing (SA) technique
for the multiobjectives problem. The second stage applies the € constraint method to
find accessible non inferior solution by adjusting the €’s according to the global non
inferior point obtained from stage one and a trade off choice made by the designer.
incorporated into the solution algorithm by employing two efficient load flow
Jeon and Kim [59] proposed simulated annealing (SA) for solving combinatorial
but high computation time limits their acceptability for the optimization of real
distribution system.
Gracia and Lopez [61] proposed and evaluated the reconfiguration problem for
minimum loss using SA and a radial load flow. The proposed technique has an ability
to avoid becoming trapped at local minimum. The SA algorithm does not require or
method (FCEP) to overcome the shortcomings caused by the fixed mutation rate in
fuzzy controller adaptively adjusts the mutation rate during the evolutionary process.
controlled parameter 0 or 1. The length of string is much shorter than the one in GA
[33]. In addition, a chain table and depth breadth search strategy is employed to
further speed up the optimization process. The equality and inequality constraints are
inserted in the fitness function by some penalty factors to guarantee the optimal
Hsiao and Chien [63] developed a fuzzy satisfied method based on EP to solve the
optimal solution.
Su and Lee [ 64] proposed improved mixed integer hybrid differential evolution
which lead to a smaller population for the solution search with global optimum and
Hsiao [65] modeled the multiple objectives such as power loss, voltage quality,
reliability and number of switching using fuzzy sets to evaluate their imprecise nature
and for ease of integration. Then, EP method is used to solve the constrained
multiobjectives problem.
Chiou and chang [66] proposed variable scaling hybrid differential evolution
(VSHDE) to overcome the fixed and random scaling factor which lead to a faster
Carpento and Chicco [68] presented a new application of ant colony search
Ahuja and Pahwa [69] presented the use of ant colony optimization for solving
feeder reconfiguration problem for loss minimization. This method has proved to be
traveling salesman problem and sequential ordering problem. Also, they found that
Su, Chung and Chiou [70] proposed a method employing the ant colony search
algorithm to solve the network reconfiguration problems. The merit of the algorithm
is parallel search and optimization capabilities. They found that this method is better
than SA and GA comparing with the same system used with the two methods.
Charles, Khan and Rarichandrson [71] proposed a new methodology based on ant
colony system algorithm for the network reconfiguration. The method is very flexible
and global optimum in presence of constraints. It has some good characteristics such
as positive feedback, distributed computation and greedy heuristic that make the
PROPOSED METHDOLOGY
having economical losses during any desirable conditions exists in the network. Each
laws.
network components.
appropriate bounds.
linear optimization consists on finding an optimal radial network t* among all possible
radial networks ti generated with the switch condition changes that minimizes the
objective function without violation of the constraints. The mathematical model can
be expressed as
subject to
F ( x,t i ) = 0 (3-2)
G ( x,t i ) ≤ 0 (3-3)
x = ( P , Q, V ) (3-4)
where
F(x,ti) is the vector of equality constraints and represents the load flow equations.
P and Q represent the active and reactive power of the receiving end of the branch in
the network.
This objective of the model describing the studied problem is to minimize the
system power losses subject to operating constraints under a certain load pattern.
m
C1 ( x, t i ) = ∑ I i2 ⋅ Ri (3-5)
i =1
where
avoid heavy loading of any part of the electrical distribution system. The branch
m
I i2
C 2 ( x, t i ) = ∑ 2
(3-6)
i =1 I max
Where
In order to quantify the extent of violation of limits imposed on voltages (Vi) at all
defined as
N
C 3 ( x, t i ) = ∑ Vi − Vi sp (3-7)
i =1
Where
Visp is the specified voltage of bus i and is taken as 1.0 per unit in this study.
3.1.3 Constraints
• Power flow at each node must be kept in balance and power flow at
S i ≤ S imax (3-9)
i) Heuristic Methods
Many papers used this technique to solve the reconfiguration problem to different
objective functions. The solution process leads to the optimum or near optimum in
It uses the logic rules and does not require load flow solution. This method can
can be used to solve the multiobjective optimization problem. This method depends
on the efficient coding and decoding of the chromosome and the structure of the
fitness function. It converges smoothly to global optimum with less time computation
This approach is different where the aspects that the load transfer and the
corresponding load flow solution during the search process are not required. It needs
a large number of neurons and leads to divergent solution in the large system.
v) Expert System
The search space is shrunk using heuristic rules to reduce the computation time.
It enhances the solution accuracy to get the global optimal with less computation
This method can avoid local optima but requires an excessive computation time.
This method uses a fixed mutation rate that leads the convergence to local optima.
mimics the behavior of real ants. It uses the heuristic information of the problem and
the pheromone trails to build the solution and guides the search.
In this research, the ant colony optimization method is used for the application of
3.3.1 Background
The ant colony optimization (ACO) method was introduced by Marco Dorigo in
his doctoral thesis in 1992 [72]. It models the living style of ant, mimicking how ants
find their way to a food source from their colony and back again. It was first applied
Ants are social insects living in colonies with interesting foraging behavior. In
particular, an ant can find shortest paths between food sources and a nest while
walking from food sources to the nest and vice versa, ants deposit on the ground a
chemical substances called pheromone smelled by other ants to choose path marked
In Figure 3.1.a, ants walk between two points via unobstacled path. When an
obstacle breaks the path (Figure 3.1.b) ants try to get around the obstacle randomly
choosing either way. If the two paths encircling the obstacle have the different length,
more ants pass the shorter route on their continuous pendulum motion between the
nest points in particular time interval. While each ant keeps marking its way by
consequently more and more ants choose this route. This feedback leads soon to final
stage in Figure 3.1.c, where entire ant colony uses the shortest path. [73]
a) Positive Feedback
b) Negative Feedback
c) Cooperation
It explores different solutions, where multiple ants exploring solution space and
Table 3.1 illustrates a comparison between the real and artificial ants to construct
Ants move in their environment in Ants are synchronized where they follow
asynchronous way. the same path back to the nest at each
iteration.
The foraging behavior is based on an They evaluate a solution with respect to
implicit evaluation of a solution, where some quality measure which is used to
the shorter paths will be completed earlier determine the strength of pheromone
than longer ones. reinforcement that the ants perform
during their return trip to the nest.
They leave pheromone on the ground They only deposit pheromone on their
where ever they move. way back to the nest.
3.3.4 Applications
There are many researches have applied ant colony optimization algorithm in
various applications [68-71],[73] and [80-86]. Some of those applications are written
below.
• Network Reconfiguration.
• System Restoration.
• Network Routing.
• Graph Coloring.
• Vehicle Routing.
• Time Tabling.
approach for solving hard combinatorial optimization problems. The inspiring source
of ACO is the pheromone trail laying and following behavior of real ants which use
ants, mediated by artificial pheromone trails. The pheromone trails in ACO serve as
solutions to the problem being solved and which the ants adapt during the algorithm’s
partial solution by taking into account (i) heuristic information on the problem
instance being solved and (ii) artificial pheromone trails which change dynamically at
states of the problem by building paths on the graph(G). They move by applying a
stochastic local decision policy that makes use of pheromone trails and heuristic
problem. Once an ant has built a solution, or while the solution is being built, the
ant evaluates the solution and deposits pheromone trails on the connections it used.
This pheromone information will direct the search of the future ants. [74-79]
The concept of ACO is clear but the algorithm is not unique [74-79] and [86-87].
The model of selection of a proper algorithm depends on the application [68-71], [73]
and [80-87]. The proposed ACO algorithm that is introduced here is shown in the
flow chart of figure 3.2. The following steps give explanations to the flow chart of
figure 3.2.
1) Close all the tie and sectionalizing switches in the network to construct
meshed loops. The number of meshed loops equal the number of tie switches.
evaporation parameter (ρ) for local updating rule, evaporation factor (μ) for
global updating rule, and initial pheromone values for each switch.
Ants select their next state (switch) according to this rule given by (3-10)
S k (i , j ) = { S1 if q ≤qo
S 2 otherwise } (3-10)
Sk(i,j) is the state (switch) that antk chooses in its next move.
k is the ant
S1 and S2 are random variables represent the state (switch) that antk selects
S2 =
[τ (i, j )]α • [η (i, j )]β if j ∈ N k (i ) (3-12)
∑ [τ (i, l )]α • [η (i, l )]β
l∈Nk ( i )
c1 if 0 ≤ cycle ≤ no
q o = co if no ≤ cycle ≤ n1 (3-13)
c1 if n1 ≤ cycle ≤ n max
Where
N k (i ) is the set of states (switches) that selected by ant k that is called tabu
list.
After ants finish from selecting the switches (states), the objective function is
While constructing a solution each ant modifies the pheromone by this rule
given by (3-14).
τ (i , j ) = (1 − ρ ) • τ (i , j ) + ρ • τ o (3-14)
Where
When all ants complete their tour (an iteration), this rule is applied to the
states (switches) belonging to the best solution. This rule provides a great
m
τ (i , j ) = (1 − µ ) • τ (i , j ) + µ ∑ ∆τ (i , j ) (3-15)
k =1
Q
if ant k selects the edge or state (i,j)
∆τ (i , j ) = Lk (3-16)
0 otherwise
Where
iteration.
Read System
Data
Iteration N=0
Yes
N< Nmax
End
The ACO algorithm adopted in this research has been coded using MATLAB. A
4.2.1 Introduction
The name MATLAB stands for matrix laboratory. MATLAB was originally
written to provide easy access to matrix software developed by the LINPACK and
EISPACK projects. Today, MATLAB engines incorporate the LAPACK and BLAS
libraries, embedding the state of the art in software for matrix computation.
It is an interactive system whose basic data element is an array that does not
require dimensioning. This allows you to solve many technical computing problems,
Development Environment: this is the set of tools and facilities that help using
MATLAB functions and files. Many of these tools are graphical user interfaces.
more sophisticated functions like matrix inverse, matrix eigenvalues, and fast Fourier
transforms.
programming features.
Graphics: MATLAB has extensive facilities for displaying vectors and matrices as
The MATLAB Application Program Interface (API): this is a library that allows
you to write C and Fortran programs that interact with MATLAB. It includes facilities
The program incorporates two main subprograms. The first is used to solve the
load flow problem of the system, and hence, determines the bus voltage and the
sites. This program is valid where it is tested on different power systems given good
results.
Raphson method.
pheromone on branches.
rule.
No IF NO. of
Iterations
abort
Yes
Optimal Solution
4.3.1 Introduction
most of the power system operation problems through an interactive and graphical
systems of up to 100,000 buses. The simulator also contains all the tools necessary to
analysis. All of the above features and tools are easily accessible through a
configurations of the studied systems. The results obtained for the developed
MATLAB program is used here for verifications. The steps for implementing the
From the menu in ‘insert’, the components, buses, generator, lines and loads
From the menu in ‘case information’, the parameters of selected components are
From the menu in ‘options’, ‘simulator options, ’general’ the base power is set as
Finally, the network is finished as shown in figure 4.11. Then, the mode is
switched into the ‘Run Mode’ and from ‘Simulation’ select ‘ solve and animate’ to
calculate the power loss, bus voltage and branch current as shown in figure 4.12.
To show the result, In ’Edit Mode’ ‘case information’, the power loss, bus voltage,
and branch current is displayed from ‘Line and Transformer’ as shown in figures 4.13
& 4.14
5.1 Introduction
This chapter discusses the results obtained by applying the proposed method (ACO) to
three distribution systems of different sizes. The proposed method is implemented using
MATLAB and run on a Pentium III 1.6 GHz computer. Also, the PowerWorld Simulator
is used to test the three studied distribution systems to evaluate the results of MATLAB
program. The systems are represented in the simulator as shown in figures B.1, B.2 and
B.3 (Appendix B). To evaluate the proposed method three indices are used. These
indices are system power loss, load balancing index and voltage deviation index. The
indices are defined in chapter three in equations (3-5), (3-6) and (3-7).
The first example which is used to test the proposed reconfiguration algorithm is
Baran and Wu test system, which is shown in Figure 5.1. It consists of a feeder, 33
switches (tie switches). The system is a three phase system, 12.6 KV and whose input
data is shown in table A.1(Appendix A). The system loads are assumed constant and
Sbase is 100MVA. As explained in chapter 3 (section 3.4, figure 3.2) the proposed
method requires dividing this network into five meshed loops as shown in table 5.1.
The proposed method (ACO) is applied to this system by assuming two objective
functions. The power loss minimization has been defined in equation (3-5) and load
balancing has been defined in equation (3-6). Throughout this study, the values of
number of ants, α, ß, μ and ρ are selected based on trial and error approach.
The objective function in equation (3-5) is used here. The proposed algorithm in
section 3.4 is applied. A group of five ants are generated to construct the feasible
solution of the system in each iteration. All the switches are initialized with a
pheromone of 0.5. The parameters of the proposed method are set as α=1, ß= 0.1,
Table 5.2: The results for power loss minimization of Baran and Wu system
The objective function in equation (3-6) is used here. The proposed algorithm in
section 3.4 is applied. A group of five ants are generated to construct the feasible
solution of the system at each iterations. All the switches are initialized with a
pheromone of 0.5. The maximum branch current is assumed 250 Amp for all
branches. The parameters of the proposed method are set as α=1, ß=0.5, ρ=0.9 and
Table 5.3: The results for load balancing of Baran and Wu system
It is observed that solving the problem for load balancing improves significantly
In the test system in case 1 (Baran and Wu), the proposed method (ACO) is used to
solve the reconfiguration problem for two objective functions. These objective
functions are power loss minimization and load balancing. Throughout this section,
the comparison between the two configurations obtained from minimization of two
5.2 in a form of bar chart as shown in figure 5.2. It is observed from the bar charts in
figure 5.2(a) and 5.2(b) that the power loss minimization is the best for power loss
and voltage deviation index whereas in figure 5.2(c) the load balancing is the best for
PowerWorld Simulator can create a contour map of various system quantities, such
and reactive load. Such displays resemble a contour map of temperatures like one
quantities such as power loss, voltage profile and line current can flow through the
illustrate the bus voltage profile in the initial configuration and the optimal
configurations by studying the system for power loss minimization and load
balancing. The following figures 5.3, 5.4, and 5.5 illustrate the bus voltage contour
In the optimal configuration for power loss minimization, figure 5.4, one can
observe a remarkable part of the bold blue zone changed to light blue zone illustrating
In the optimal configuration for load balancing, figure 5.5, a little part of the bold
blue zone changed to light blue zone illustrating little improvement in the voltage.
illustrate the power loss in the initial configuration and the optimal configurations by
studying the system for power loss minimization and load balancing. The following
figures 5.6, 5.7, and 5.8 illustrate the power loss contour for the considered network
configurations.
a high power loss. Three branches in the green zone have a fair power loss. Also, a
In the optimal configuration for power loss minimization, figure 5.7, two branches
in the red zone changed to light green showing a high decrease in power loss and one
branch changed to yellow showing a fair decrease in the power loss. Three branches
in the green zone changed to bold blue showing a high decrease in power loss. Also,
a branch in the light blue zone changed to bold blue showing a little decrease in power
loss.
In the optimal configuration for load balancing, figure 5.8, three branches in the
red zone changed to light green showing a high decrease in power loss. Two branches
in the green zone changed to bold blue showing a high decrease in power loss and one
branch changed to light blue zone showing a fair decrease in power loss. Also, a
branch in the light blue zone changed to bold blue showing a little decrease in power
loss.
illustrate the line current in the initial configuration and the optimal configurations by
studying the system for power loss minimization and load balancing. The following
figures 5.9, 5.10, and 5.11 illustrate the line current contour for the considered
network configurations
In the initial configuration, figure 5.9, one can observe bad distributions where
some zones (red) are heavily loaded and the other zones (blue) are lightly loaded.
In the optimal configuration for power loss minimization, figure 5.10, there is a
In the optimal configuration for load balancing, figure 5.11, there is a significant
improvement where the bold zones get lighter clearly given a good distribution.
Company . Its conductor mainly employ both overhead lines ACSR 477 KCM and
under ground lines copper conductors 500 KCM. The system is shown in Figure 5.12
and the relating data are shown in table A.2 (Appendix A). It is a three phase, 11.4
13 normally open tie switches. Three phase balance and constant loads are assumed
proposed method requires dividing this network into thirteen meshed loops as shown
are connected to different transformers. In this thesis, it will be assumed that all these
nodes are connected to a single bus. This bus is selected as the slack bus.
The proposed method (ACO) is applied to this system by assuming two objective
functions. The power loss minimization has been defined in equation (3-5) and load
balancing has been defined in equation (3-6). Throughout this study, the values of
number of ants, α, ß, μ and ρ are selected based on trial and error approach.
The objective function in equation (3-5) is used here. The proposed algorithm in
section 3.4 is applied. A group of five ants is generated to construct the feasible
solution of the system at each iteration. All the switches are initialized with a
pheromone of 0.5. The parameters of the proposed method are set as α=1, ß=0.1 ,
It is observed that solving the problem for power loss minimization leads to
balancing and a fair improvement in the voltage deviation because of unloading the
system.
The objective function in equation (3-6) is used here. The proposed algorithm in
section 3.4 is applied. A group of five ants is generated to construct the feasible
solution of the system at each iteration. All the switches are initialized with a
pheromone of 0.5. The maximum branch current is assumed 600 Amp for all
branches. The parameters of the proposed method are set as α=1 ,ß=0.5 , ρ=0.6 and
It is observed that solving the problem for load balancing improves slightly
loading distributions on lines because of unloading the system. Also, there is a fair
In the test system in case two (Taiwan), the proposed method (ACO) is used to
solve the reconfiguration problem for two objective functions. These objective
functions are power loss minimization and load balancing. Throughout this section,
the comparison between the two configurations obtained from minimization of two
objective functions is performed by representing the data of results in table 6.5 and
6.6 in a form of bar chart as shown in figure 5.13. It is observed from the bar charts
in figure 5.13(a) that the power loss minimization is the best for the power loss
whereas in figure 5.13(b) and figure 5.13(c) the load balancing is the best for the load
5.3.5 Contours
The test system in case two (Taiwan ) is represented in contouring to illustrate the
bus voltage profile in the initial configuration and the optimal configurations by
studying the system for power loss minimization and load balancing. The following
figures 5.14, 5.15, and 5.16 illustrate the bus voltage contour for the considered
network configurations.
47
55
0 MW
0 Mvar
8 0 MW
0 Mvar
slack
F 1 2 3 4 5 6 7 9 0 MW 54
0 Mvar
29 MW 0 MW 0 MW 0 MW 0 MW 0 MW 0 MW 48
0 Mvar 0 Mvar 0 Mvar 0 Mvar 1 MW 0 Mvar 0 Mvar
22 Mvar 1 Mvar
10
0 MW
0 Mvar 53 52 51 50 49
64
1 MW
0 MW 1 Mvar 0 MW
0 MW 0 MW 0 Mvar 0 Mvar
0 Mvar 0 Mvar
63 62 61 60 59 58 57
0 MW
0 MW 0 MW 0 Mvar 0 MW 1 MW 0 MW
0 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar
65
12 72
11 13
1 MW 0 MW
1 Mvar 0 Mvar
1 MW
1 Mvar
71 70 69 68 67 66
14 2 MW 0 MW 0 MW
2 Mvar 0 Mvar 0 Mvar
1 MW
0 Mvar
15 16 17 18 19 20 21 22 24 76 75 74
0 MW 0 MW 1 MW 1 MW 0 MW 0 MW 0 MW 0 MW 1 MW
0 Mvar 0 Mvar 0 Mvar 1 Mvar 0 Mvar 0 MW 0 Mvar 23 0 Mvar 0 Mvar 1 Mvar
0 Mvar
83 0 MW 82 81 80 79 78
0 Mvar
2 MW
0 MW 0 MW 0 MW 0 MW 1 Mvar 0 MW
0 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar
40
25 26 27 28 29 39
0 MW
0 MW 0 MW 0 MW 2 MW 0 MW 0 MW 0 Mvar
0 Mvar 0 Mvar 0 Mvar 1 Mvar 0 Mvar 0 Mvar
30 31 32 33 34 35 36 37 38 41 42
0 MW
2 MW 0 MW 0 Mvar 1 MW 0 MW 0 MW 0 MW 0 MW 0 MW 0 MW
2 Mvar 0 Mvar 1 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar
43
44 45 46
1 MW 0 MW
0 MW 1 Mvar 0 Mvar
0 Mvar
73
77
5 6
47
5 5
0 MW
0 Mvar
8 0 MW
0 Mvar
slack
F 1 2 3 4 5 6 7 9 0 MW 54
0 Mvar
2 9 MW 0 MW 0 MW 0 MW 0 MW 0 MW 0 MW 4 8
0 Mvar 0 Mvar 0 Mvar 0 Mvar 1 MW 0 Mvar 0 Mvar
2 2 Mvar 1 Mvar
10
0 MW
0 Mvar
53 52 5 1 5 0 49
6 4 1 MW
0 MW 1 Mvar 0 MW
0 MW 0 MW 0 Mvar 0 Mvar
0 Mvar 0 Mvar
6 3 62 61 60 5 9 5 8 57
0 MW
0 MW 0 MW 0 Mvar 0 MW 1 MW 0 MW
0 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar
65
1 2 7 2
11 13
1 MW 0 MW
1 Mvar 0 Mvar
1 MW
1 Mvar
71 70 6 9 6 8 67 66
14 2 MW 0 MW 0 MW
2 Mvar 0 Mvar 0 Mvar
1 MW
0 Mvar
15 1 6 1 7 1 8 1 9 20 2 1 22 2 4 76 75 7 4
0 MW 0 MW 1 MW 1 MW 0 MW 0 MW 0 MW 0 MW 1 MW
0 Mvar 0 Mvar 0 Mvar 1 Mvar 0 Mvar 0 MW 0 Mvar 0 Mvar 0 Mvar 1 Mvar
0 Mvar 23
0 MW
8 3 0 Mvar 8 2 81 80 79 7 8
2 MW
0 MW 0 MW 0 MW 0 MW 1 Mvar 0 MW
0 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar
4 0
25 26 2 7 28 29 39
0 MW
0 MW 0 MW 0 MW 2 MW 0 MW 0 MW 0 Mvar
0 Mvar 0 Mvar 0 Mvar 1 Mvar 0 Mvar 0 Mvar
3 0 31 3 2 3 3 34 35 36 37 38 41 42
0 MW
2 MW 0 MW 0 Mvar 1 MW 0 MW 0 MW 0 MW 0 MW 0 MW 0 MW
2 Mvar 0 Mvar 1 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar
43
44 4 5 4 6
1 MW 0 MW
0 MW 1 Mvar 0 Mvar
0 Mvar
73
77
Figure 5.15: Bus voltage of Taiwan network of the optimal configuration for power
loss minimization
47
55
0 MW
0 Mvar
8 0 MW
0 Mvar
slack
F 1 2 3 4 5 6 7 9 0 MW 54
0 Mvar
29 MW 0 MW 0 MW 0 MW 0 MW 0 MW 0 MW 48
0 Mvar 0 Mvar 0 Mvar 0 Mvar 1 MW 0 Mvar 0 Mvar
22 Mvar 1 Mvar
10
0 MW
0 Mvar 53 52 51 50 49
64 1 MW
0 MW 1 Mvar 0 MW
0 MW 0 MW 0 Mvar 0 Mvar
0 Mvar 0 Mvar
63 62 61 60 59 58 57
0 MW
0 MW 0 MW 0 Mvar 0 MW 1 MW 0 MW
0 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar
65
12 72
11 13
1 MW 0 MW
1 Mvar 0 Mvar
1 MW
1 Mvar
71 70 69 68 67 66
14 2 MW 0 MW 0 MW
2 Mvar 0 Mvar 0 Mvar
1 MW
0 Mvar
15 16 17 18 19 20 21 22 24 76 75 74
0 MW 0 MW 1 MW 1 MW 0 MW 0 MW 0 MW 0 MW 1 MW
0 Mvar 0 Mvar 0 Mvar 1 Mvar0 Mvar 0 MW 0 Mvar 23 0 Mvar 0 Mvar 1 Mvar
0 Mvar
83 0 MW 82 81 80 79 78
0 Mvar
2 MW
0 MW 0 MW 0 MW 0 MW 1 Mvar 0 MW
0 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar
40
25 26 27 28 29 39
0 MW
0 MW 0 MW 0 MW 2 MW 0 MW 0 MW 0 Mvar
0 Mvar 0 Mvar 0 Mvar 1 Mvar 0 Mvar 0 Mvar
30 31 32 33 34 35 36 37 38 41 42
0 MW
2 MW 0 MW 0 Mvar 1 MW 0 MW 0 MW 0 MW 0 MW 0 MW 0 MW
2 Mvar 0 Mvar 1 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar 0 Mvar
43
44 45 46
1 MW 0 MW
0 MW 1 Mvar 0 Mvar
0 Mvar
73
77
Figure 5.16: Bus voltage of Taiwan network of the optimal configuration for load
balancing
In the initial configuration, figure 5.14, one can observe a bold blue zone where the
remarkable part of the bold blue zone changed to light blue zone illustrating an
improvement in the voltage. Also, the light blue zone changed to light green showing
In the optimal configuration for load balancing, figure 5.16, a little part of the bold
blue zone changed to light blue zone illustrating an improvement in the voltage. Also,
the light blue zone changed to light green showing an improvement in the voltage.
The test system in case two (Taiwan) is represented in contouring to illustrate the
power loss in the initial configuration and the optimal configurations by studying the
system for power loss minimization and load balancing. The following figures 5.17,
5.18, and 5.19 illustrate the power loss contour for the considered network
configurations.
Figure 5.19: MW loss in line of Taiwan network of the optimal configuration for load
balancing
In the optimal configuration for power loss minimization, figure 5.18, five
branches in the red zone changed to light green showing a high decrease in power loss
and two branches changed to bold green showing a very high decrease in the power
loss, two branches changed to yellow showing a fair decrease in power loss and one
In the optimal configuration for load balancing, figure 5.19, three branches in the
red zone changed to light green showing a high decrease in power loss, two branches
changed to yellow showing a fair decrease in power loss, one branch changed to bold
blue showing a very high decrease in the power loss and one branch changed to
illustrate the line current in the initial configuration and the optimal configurations by
studying the system for power loss minimization and load balancing. The following
figures 5.20, 5.21, and 5.22 illustrate the line current contour for the considered
network configurations.
Figure 5.21: Line current of Taiwan network of the optimal configuration for power
loss minimization
In the initial configuration, figure 5.20, one can observe bad distributions where
some zones (red) are heavily loaded and the other zones (blue) are lightly loaded.
In the optimal configuration for power loss minimization, figure 5.21, there is a
In the optimal configuration for load balancing, figure 5.22, there is a remarkable
improvement where the bold zones get lighter clearly given a good distribution.
Company [SEC]. Its conductor mainly employs XLPE copper cable 185 mm2 and it
is assumed the same impedance for all branches. The system is shown in Figure 5.23
and the relating data are shown in table A.3 (Appendix A). It is a three phase, 13.8
KV system. The system consists of 149 normally closed sectionalizing switches, and
and Sbase is 100 MVA. As explained in chapter 3 (section 3.4, figure 3.2) the
proposed method requires dividing this network into thirteen meshed loops as shown
in table 5.7. It is should be noted that the nodes 201, 202, 203, 204, 205, 206, 207,
208, 209, 210, 211, 212, 213 and 214 are connected to different transformers. In this
thesis, it will be assumed that all these nodes are connected to a single bus. This bus
The proposed method (ACO) is applied to this system by assuming two objective
functions. The power loss minimization has been defined in equation (3-5) and load
balancing has been defined in equation (3-6). Throughout this study, the values of
number of ants, α, ß, μ and ρ are selected based on trial and error approach.
The objective function in equation (3-5) is used here. The proposed algorithm in
section 3.4 is applied. A group of five ants is generated to construct the feasible
solution of the system at each iteration. All the switches are initialized with a
pheromone of 0.5. The parameters of the objective function are set as α=2, ß=0.2,
It is observed that solving the problem for power loss minimization leads to
The objective function in equation (3-6) is used here. The proposed algorithm in
section 3.4 is applied. A group of five ants is generated to construct the feasible
solution of the system at each iteration. All the switches are initialized with a
pheromone of 0.5. The maximum branch current is assumed 400 Amp for all
branches. The parameters of the objective function are set as α=1, ß=0.1, ρ=0.9 and
μ=0.9.
It is observed that solving the problem for load balancing improves significantly
In the test system in case three (SEC), the proposed method (ACO) is used to solve
the reconfiguration problem for two objective functions. These objective functions
are power loss minimization and load balancing. It is observed from the tables 5.8
and 5.9 that the power loss minimization and load balancing are the same for power
loss, load balancing index and voltage deviation index. Because it is assumed that the
impedance of all branches are the same for lack of the available information.
The test system in case three (SEC ) is represented in contouring to illustrate the
bus voltage profile in the initial configuration and the optimal configurations by
studying the system for power loss minimization and load balancing. Here, it is
enough to represent the system for one objective function where they give the same
figures 5.24 and 5.25 illustrate the bus voltage contour for the considered network
configurations.
In the optimal configuration (power loss minimization and load balancing), figure
5.25, the bold blue zone changed to light blue and light green illustrating a significant
The test system in case three (SEC) is represented in contouring to illustrate the
power loss in the initial configuration and the optimal configurations by studying the
system for power loss minimization and load balancing. Here, it is enough to
represent the system for one objective function where they give the same contour
5.26 and 5.27 illustrate power loss contour for the considered network configurations
In the initial configuration, figure 5.26, there are twenty four branches in the red
zone have a high power loss. Also, twelve branches in the light green zone have a fair
power loss.
In the optimal configuration (power loss minimization and load balancing), figure
5.27, eight branches in the red zone changed to light green showing a fair decrease in
the power loss, four branches changed to light blue showing a high decrease in the
power loss, five branches changed to bold blue showing a very high decrease in the
power loss and one branch changed to orange showing a little decrease in the power
loss. Also, there are twelve branches in the light green zone changed to bold blue
The test system in case three (SEC) is represented in contouring to illustrate the
line current in the initial configuration and the optimal configurations by studying the
system for power loss minimization and load balancing. Here, it is enough to
represent the system for one objective function where they give the same contour
5.28 and 5.29 illustrate line current contour for the considered network configurations.
some zones (red) are heavily loaded and the other zones (blue) are lightly loaded.
In the optimal configuration (power loss minimization and load balancing), figure
5.29, there is an improvement in distributions where the bold zones get lighter.
CONCLUSIONS
The objective of this thesis is to test the feasibility of applying the ant colony
minimize the power losses of the system and to balance the loading of the feeders.
This work is to provide a basis for power companies to use it in the reconfiguration of
the distribution networks to reduce the operational costs and to enhance the
performance of their networks. The following points summarize the results of this
research:
distribution systems.
5. The current implementation also requires the solution of the load flow
search algorithm.
voltage profile. Also, the load balancing is enhanced but the voltage
the power loss is enhanced but the voltage deviation and the power loss
are suboptimal.
may reduce both the installations cost and operational cost and helps in
networks for resistive line losses reduction”, IEEE Transactions on Power Delivery,
reconfiguration for loss reduction, IEEE Transactions on Power Delivery, Vol. 3, No.
[4] M.E Baran and F.F Wu, “Network reconfiguration in distribution systems for
loss reduction and load balancing”, IEEE Transactions on Power Delivery, Vol. 4,
[6] R.J Safri, M.M.A Salama and A.Y Chickani, “Distribution system
[9] J-C. Wang, H-D. Chiang and G. Darling, “An efficient algorithm for real time
IEEE Transactions on Power System, Vol. 11, No. 1, 1996, pp. 504-510.
[11] D.E Bouchard, M.M.A Salama and Y. Chickani, “Algorithms for distribution
single loop optimization “, IEEE Transactions on Power System, Vol. 11, No. 3,
energy loss reduction”, IEEE Transactions on Power System, Vol. 12, No. 1, 1997,
pp. 398-406.
balancing”, IEEE Transactions on Power System, Vol. 12, No. 2, 1997, pp. 724-729.
[18] W-M. Lin and H-C. Chin, “A new approach for distribution feeder
[19] M.A Kashem, V. Ganapathy and G.B. Jasmon, “Network reconfiguration for
[21] M.A. Kashem, V. Ganapathy and G.B Jasmon, “Network reconfiguration for
[22] M.A Kashem, V. Ganapathy and M.I Buhari, “A novel method for loss
2000.
[23] A.B Mortan and I.M.Y Marleez, “An efficient brute-force solution to the
distribution networks for power loss reduction”, , 2001 IEEE Porto Power Tech.
[28] W. Wu and B. Zhang, “Loop flow based method for distribution system
Power System Control, Operation and Management (APSCOM 2003) , Hong Kong,
[29] E.A Bueno and C. Cavellucci, “Distribution network reconfiguration for loss
[30] J. Wu and Y. Yu, “A new method for snapshot and time varying distribution
[31] J.F.C Lorenzeti, M.A.N. Guimars and C.A Castro, “Reconfiguration of radial
pp. 243-248.
flow technique and sensitivity analysis for loss reduction”, Summary prepared for the
Panel Session Entitled Models for Distribution System Analysis, 2005 IEEE PES
for network reconfiguration using three unbalanced load flow”, Intelligent System
[35] J.Z Zhu, “Optimal reconfiguration of electrical distribution network using the
refined GA” , Electric Power System Research, Vol. 62, 2002, pp. 37-84.
[36] W.M. Lin, F.S Cheng and M.T. Tsay, “Distribution feeder reconfiguration
with refined GA”, IEEE Proc-Gener. Transmission Distribution, Vol. 147, No. 6,
distribution network reconfiguration”, IEEE, Poc-Gener. Trans. Dist., Vol. 149, No. 5,
[41] B. Radha, R.T.F Ah King and H.C.S Rughooputh, “A real GA for optimal
[43] J. Wang, A. Luo, M. Qi and M. Li, “The improved clonal GA and its
[44] K. Prasad, N.C. Sahoo, R. Ranjan and A. Chaturvedi; “An improved GA for
[45] R.T.F Ah King, B. Radha and H.C.S Rughooputh, “A fuzzy logic controlled
pp. 577-582.
[49] H. Kim, “ANN based feeder reconfiguration for loss reduction in distribution
system”, IEEE Transaction on Power Delivery, Vol. 8,No. 3, 1993, pp. 1356-1366.
[52] C.-H. Lin, “Distribution network reconfiguration for load balancing with a
colonal Petri net algorithm”, IEEE Proc-Gener. Transm. Dist., Vol. 150, No. 3, 2003,
pp. 317-324.
distribution systems”, Proceeding of IEEE/ PES Summer Meeting, Seatle, WA, 2000,
pp. 73-78.
[56] Fukuyoma, “RTS for distribution load transfer operation”, IEEE Power
system”, Part 1:A new formulation and solution methodology, IEEE Transaction on
[58] H.D. Chiang and J.J Rene, “Optimal network reconfiguration in distribution
[59] Y.J. Jeon and J.C. Kim, “Network reconfiguration in RDS using SA and TS “,
[60] E. Carpaneto and G. Chicco, “Performance of the SA based algorithms for the
for loss reduction using fuzzy controlled evolutionary programming”, IEEE Proc-
[63] Y.T Hsiao and C.Y Chein, “Multiobjective optimal feeder reconfiguration”,
IEEE Proc-Gener. Transm. Distri., Vol. 148, No. 4, 2001, pp. 333-336.
[64] C-T. Su and C.S Lee, “Network reconfiguration of distribution system using
improved mixed integer Hybrid DE”, IEEE Transaction on Power Delivery., Vol. 18,
reconfiguration “,IEEE Transaction on Power System., Vol. 19, No. 1, 2004, pp. 594-
599.
[66] J-P. Chiou, C.-C. Chang and C-T. Su, ” Variable Scaled Hybrid Differential
[67] A.C.B Delbem, A.C.P Carvalho and N.G Bretas, “Main chain representation
[68] E. Carpaneto and G. Chicco, “Ant Colony Search based minimum losses
[69] A. Ahuja and A. Pahwa, “Using ant colony optimization for loss minimization
in distribution network s”, Proceedings of the 37th Annual North American on Power
loss reduction by ant colony search algorithm”, Electric Power System Research,
reconfiguration for loss reduction using ant colony system algorithms”, IEEE
propagation model for urban microcell”, URSI XXVIIth General Assembly, Vol. 11,
[74] C. Blum, “Ant colony optimization : introduction and recent trends “, Physics
[76] M. Dorigo and G.Di Caro, “Ant colony optimization : a new meta heuristic “,
In D. Crone, M. Dorigo and F.Glover, Editors, New Ideas in Optimization, pp. 11-32,
[78] M. Dorigo and L.M. Gambardella, “Ant algorithm for discrete optimization “,
[80] X-Y. Ye, X-R. Cheng, L-M. Lin and Q-Y. Feng, “Research of the best repair
path based on an improved ant colony algorithm in power distribution network”, 2005
IEEE/PES Trans. and Dist Conference and Exhibition, Asia and Pacific, China, 2005,
pp. 1-5.
[81] M. Dorig and L.M. Cambardella, “Ant colony system: Acooperative learning
approach to the TSP”, IEEE Trans. on Evolutionary Computating, Vol. 1,No. 1, 1997.
22.
[85] W.Q Xiong and P. Wei, “A kind of ant colony algorithm for function
[86] C. Blum and M. Dorigo, “The hyber cube framework for ant colony
optimization “, IEEE Trans. on System Man. And Cybernetics, Vol. 34, No. 2, 2004,
pp. 1161-1172.
System Data
Bus R X PL QL
(Ω) (Ω) (KW) (KVAR)
A-1 0.1944 0.6624 0 0
1-2 0.2096 0.4304 100 50
2-3 0.2358 0.4842 300 200
3-4 0.0917 0.1883 350 250
4-5 0.2096 0.4304 220 100
5-6 0.0393 0.0807 1100 800
6-7 0.0405 0.1380 400 320
7-8 0.1048 0.2152 300 200
7-9 0.2358 0.4842 300 230
7-10 0.1048 0.2152 300 260
B-11 0.0786 0.1614 0 0
11-12 0.3406 0.6944 1200 800
12-13 0.0262 0.0538 800 600
12-14 0.0786 0.1614 700 500
C-15 0.1134 0.3864 0 0
15-16 0.0524 0.1076 300 150
16-17 0.0524 0.1076 500 350
17-18 0.1572 0.3228 700 400
18-19 0.0393 0.0807 1200 1000
19-20 0.1703 0.3497 300 300
20-21 0.2358 0.4842 400 350
21-22 0.1572 0.3228 50 20
21-23 0.1965 0.4035 50 20
23-24 0.1310 0.2690 50 10
D-25 0.0567 0.1932 50 30
25-26 0.1048 0.2152 100 60
26-27 0.2489 0.5111 100 70
27-28 0.0486 0.1656 1800 1300
28-29 0.1310 0.2690 200 120
E-30 0.1965 0.3960 0 0
30-31 0.1310 0.2690 1800 1600
31-32 0.1310 0.2690 200 150
32-33 0.0262 0.0538 200 100
33-34 0.1703 0.3497 800 600
34-35 0.0524 0.1076 100 60
35-36 0.4978 1.0222 100 60
36-37 0.0393 0.0807 20 10
37-38 0.0393 0.0807 20 10
38-39 0.0786 0.1614 20 10
39-40 0.2096 0.4304 20 10
Bus R X PL QL
(Ω) (Ω) (KW) (KVAR)
201-1 0.129 0.11 268.4741 167.4015
1-2 0.129 0.11 268.4741 167.4015
2-3 0.129 0.11 268.4741 167.4015
3-4 0.129 0.11 268.4741 167.4015
4-5 0.129 0.11 268.4741 167.4015
5-6 0.129 0.11 268.4741 167.4015
6-7 0.129 0.11 268.4741 167.4015
7-8 0.129 0.11 268.4741 167.4015
8-9 0.129 0.11 268.4741 167.4015
9-10 0.129 0.11 268.4741 167.4015
10-11 0.129 0.11 268.4741 167.4015
11-12 0.129 0.11 268.4741 167.4015
12-13 0.129 0.11 268.4741 167.4015
13-14 0.129 0.11 268.4741 167.4015
202-15 0.129 0.11 279.3581 174.188
15-16 0.129 0.11 279.3581 174.188
16-17 0.129 0.11 279.3581 174.188
17-18 0.129 0.11 279.3581 174.188
18-19 0.129 0.11 279.3581 174.188
19-20 0.129 0.11 279.3581 174.188
20-21 0.129 0.11 279.3581 174.188
21-22 0.129 0.11 279.3581 174.188
203-23 0.129 0.11 199.2625 124.246
23-24 0.129 0.11 199.2625 124.246
24-25 0.129 0.11 199.2625 124.246
25-26 0.129 0.11 199.2625 124.246
26-27 0.129 0.11 199.2625 124.246
27-28 0.129 0.11 199.2625 124.246
28-29 0.129 0.11 199.2625 124.246
29-30 0.129 0.11 199.2625 124.246
30-31 0.129 0.11 199.2625 124.246
31-32 0.129 0.11 199.2625 124.246
32-33 0.129 0.11 199.2625 124.246
33-34 0.129 0.11 199.2625 124.246
34-35 0.129 0.11 199.2625 124.246
35-36 0.129 0.11 199.2625 124.246
36-37 0.129 0.11 199.2625 124.246
37-38 0.129 0.11 199.2625 124.246
38-39 0.129 0.11 199.2625 124.246
39-40 0.129 0.11 199.2625 124.246
MATLAB PROGRAM
=====================================
bus]=
؛1 0 0 0 0 0 0 0 1 201
؛1 0 0 0 0 0 0 0 1 202
؛1 0 0 0 0 0 0 0 1 203
؛1 0 0 0 0 0 0 0 1 204
؛1 0 0 0 0 0 0 0 1 205
؛1 0 0 0 0 0 0 0 1 206
؛1 0 0 0 0 0 0 0 1 207
؛1 0 0 0 0 0 0 0 1 208
؛1 0 0 0 0 0 0 0 1 209
؛1 0 0 0 0 0 0 0 1 210
؛1 0 0 0 0 0 0 0 1 211
؛1 0 0 0 0 0 0 0 1 212
؛1 0 0 0 0 0 0 0 1 213
؛1 0 0 0 0 0 0 0 1 214
=====================================
%Line Data
line1]=
tol=1e-8؛
vmin=0.90؛
vmax=1.02؛
iter_max=200؛
flag=1؛
acc=1؛
display='n'؛
Vb=13.8؛
Sb=100؛
Zb=Vb^2/Sb؛
bus(:,6:7)=bus(:,6:7)/Sb/1000؛
line1(:,3:4)=line1(:,3:4)/Zb؛
line=line1؛
line(openline(=] [؛:،
]bus_sol,line_flow,P_loss]
=loadflow(bus,line,tol,iter_max,vmin,vmax,acc,display,flag(؛
%parameters
rau=0.9؛
alpha=2؛
beta=0.5؛
alp=.01؛
c0=1؛
calloss؛
for x=1:N؛
antselection؛
ant=[ant1 ant2 ant3 ant4 antt5 ant6 antt7 ant8 ant9 ant10 ant11 ant12 ant13];%
switchopening؛
localphermonupdate؛
]plossmin(x) switches(x)]=min(Ploss(
bestswitch(x,:)=ant(switches(x(:،(
globalphermoneupdate3؛
end
]ploss sw]=min(plossmin(
bestantswitch=bestswitch(sw(:،
L8=[95 96 97 98 99 100 101 102 103 104 106 107 108 109 158]; %Loop 8
L11=[123 124 125 126 127 128 129 130 131 132 159]; % Loop 11
L13=[138 139 140 141 142 143 144 145 146 147 148 149 162]; % Loop 13
n1=21؛
n2=16؛
n3=7؛
n4=15؛
n6=13؛
n7=10؛
n8=15؛
n9=6؛
n10=7؛
n11=11؛
n12=4؛
n13=13؛
ant=zeros(k,m(؛
Ploss=zeros(k,1 (؛
plossmin=zeros(N,1(؛
DTL1=zeros(n1,1(؛
DTL2=zeros(n2,1(؛
DTL3=zeros(n3,1(؛
DTL4=zeros(n4,1(؛
DTL5=zeros(n5,1(؛
DTL6=zeros(n6,1(؛
DTL7=zeros(n7,1(؛
DTL8=zeros(n8,1(؛
DTL10=zeros(n10,1 (؛
DTL11=zeros(n11,1 (؛
DTL12=zeros(n12,1 (؛
DTL13=zeros(n13,1 (؛
T1DL1=zeros(1,n1 (؛
T1DL2=zeros(1,n2 (؛
T1DL3=zeros(1,n3 (؛
T1DL4=zeros(1,n4 (؛
T1DL5=zeros(1,n5 (؛
T1DL6=zeros(1,n6 (؛
T1DL7=zeros(1,n7 (؛
T1DL8=zeros(1,n8 (؛
T1DL9=zeros(1,n9 (؛
T1DL10=zeros(1,n10(؛
T1DL11=zeros(1,n11(؛
T1DL12=zeros(1,n12(؛
T1DL13=zeros(1,n13(؛
DTLS1=zeros(n1,1(؛
DTLS2=zeros(n2,1(؛
DTLS3=zeros(n3,1(؛
DTLS4=zeros(n4,1(؛
DTLS6=zeros(n6,1(؛
DTLS7=zeros(n7,1(؛
DTLS8=zeros(n8,1(؛
DTLS9=zeros(n9,1(؛
DTLS10=zeros(n10,1 (؛
DTLS11=zeros(n11,1 (؛
DTLS12=zeros(n12,1 (؛
DTLS13=zeros(n13,1 (؛
%initial Phermone T
T1=c0*ones(n1,1 (؛
T2=c0*ones(n2,1 (؛
T3=c0*ones(n3,1 (؛
T4=c0*ones(n4,1 (؛
T5=c0*ones(n5,1 (؛
T6=c0*ones(n6,1 (؛
T7=c0*ones(n7,1 (؛
T8=c0*ones(n8,1 (؛
T9=c0*ones(n9,1 (؛
T10=c0*ones(n10,1(؛
T11=c0*ones(n11,1(؛
T13=c0*ones(n13,1(؛
openline=] [؛
main2؛
]nb mb]=size(line_flow(؛
in1=1:2:nb؛
in2=2:2:nb؛
pfl1=line_flow(in1,4 (؛
pfl2=line_flow(in2,4 (؛
pflt=abs(pfl1+pfl2(؛
swl=pflt؛
%inversion of losses
swL1=swl(L1 (؛
swL2=swl(L2 (؛
swL3=swl(L3 (؛
swL4=swl(L4 (؛
swL5=swl(L5 (؛
swL6=swl(L6 (؛
swL8=swl(L8 (؛
swL9=swl(L9 (؛
swL10=swl(L10(؛
swL11=swl(L11(؛
swL12=swl(L12(؛
swL13=swl(L13(؛
invswL1=1./swL1؛
invswL2=1./swL2؛
invswL3=1./swL3؛
invswL4=1./swL4؛
invswL5=1./swL5؛
invswL6=1./swL6؛
invswL7=1./swL7؛
invswL8=1./swL8؛
invswL9=1./swL9؛
invswL10=1./swL10؛
invswL11=1./swL11؛
invswL12=1./swL12؛
invswL13=1./swL13؛
if x<=(0.05*N(
q0=0.95؛
elseif x<=(0.90*N(
q0=0.20؛
else
q0=0.95؛
end
T1DL1=(invswL1).^beta.*(T1).^alpha؛
T1DL2=(invswL2).^beta.*(T2).^alpha؛
T1DL3=(invswL3).^beta.*(T3).^alpha؛
T1DL4=(invswL4).^beta.*(T4).^alpha؛
T1DL5=(invswL5).^beta.*(T5).^alpha؛
T1DL6=(invswL6).^beta.*(T6).^alpha؛
T1DL7=(invswL7).^beta.*(T7).^alpha؛
T1DL8=(invswL8).^beta.*(T8).^alpha؛
T1DL9=(invswL9).^beta.*(T9).^alpha؛
T1DL10=(invswL10).^beta.*(T10).^alpha؛
T1DL11=(invswL11).^beta.*(T11).^alpha؛
T1DL13=(invswL13).^beta.*(T13).^alpha؛
]maxTDL1 s1ws1]=max(T1DL1(؛
]maxTDL2 s1ws2]=max(T1DL2(؛
]maxTDL3 s1ws3]=max(T1DL3(؛
]maxTDL4 s1ws4]=max(T1DL4(؛
]maxTDL5 s1ws5]=max(T1DL5(؛
]maxTDL6 s1ws6]=max(T1DL6(؛
]maxTDL7 s1ws7]=max(T1DL7(؛
]maxTDL8 s1ws8]=max(T1DL8(؛
]maxTDL9 s1ws9]=max(T1DL9(؛
]maxTDL10 s1ws10]=max(T1DL10(؛
]maxTDL11 s1ws11]=max(T1DL11(؛
]maxTDL12 s1ws12]=max(T1DL12(؛
]maxTDL13 s1ws13]=max(T1DL13(؛
for i=1:k؛
q=rand(m,1(؛
if q(1)<=q0؛
else
s1=L1(one_out_of_n(n1 ((؛
ant1(i,1)=s1؛
end
if q(2)<=q0؛
ant2(i,1)=L2(s1ws2(؛
else
s2=L2(one_out_of_n(n2 ((؛
ant2(i,1)=s2؛
end
if q(3)<=q0؛
ant3(i,1)=L3(s1ws3(؛
s3=L3(one_out_of_n(n3 ((؛
ant3(i,1)=s3؛
end
if q(4)<=q0؛
ant4(i,1)=L4(s1ws4(؛
else
s4=L4(one_out_of_n(n4 ((؛
ant4(i,1)=s4؛
end
if q(5)<=q0؛
antt5(i,1)=L5(s1ws5 (؛
else
antt5(i,1)=s5؛
end
if q(6)<=q0؛
ant6(i,1)=L6(s1ws6(؛
else
s6=L6(one_out_of_n(n6 ((؛
ant6(i,1)=s6؛
end
if q(7)<=q0؛
antt7(i,1)=L7(s1ws7 (؛
else
s7=L7(one_out_of_n(n7 ((؛
antt7(i,1)=s7؛
if q(8)<=q0؛
ant8(i,1)=L8(s1ws8(؛
else
s8=L8(one_out_of_n(n8 ((؛
ant8(i,1)=s8؛
end
if q(9)<=q0؛
ant9(i,1)=L9(s1ws9(؛
else
s9=L9(one_out_of_n(n9 ((؛
ant9(i,1)=s9؛
end
if q(10)<=q0؛
ant10(i,1)=L10(s1ws10 (؛
else
s10=L10(one_out_of_n(n10 ((؛
ant10(i,1)=s10؛
end
if q(11)<=q0؛
ant11(i,1)=L11(s1ws11 (؛
else
s11=L11(one_out_of_n(n11 ((؛
ant11(i,1)=s11؛
end
if q(12)<=q0؛
ant12(i,1)=L12(s1ws12 (؛
else
s12=L12(one_out_of_n(n12 ((؛
ant12(i,1)=s12؛
end
if q(13)<q0؛
ant13(i,1)=L13(s1ws13 (؛
else
s13=L13(one_out_of_n(n13 ((؛
ant13(i,1)=s13؛
end
End
y=round(rand*(n-1)+1);
for i=1:k؛
Tabu(i,:)=ant(i(؛:،
openline=Tabu(i(؛:،
main2؛
Ploss(i)=P_loss؛
end
%change in phermone
%LOOP 1
for z=1:n1؛
for i=1:k؛
if ant(i,1)==L1(z(؛
DTL1(z)=1/Ploss(i)+DTL1(z(؛
else
DTL1(z)=DTL1(z(؛
end
end
end
%LOOP 2
for z=1:n2؛
for i=1:k؛
if ant(i,2)==L2(z(؛
DTL2(z)=1/Ploss(i)+DTL2(z(؛
else
end
end
end
%LOOP 3
for z=1:n3؛
for i=1:k؛
if ant(i,3)==L3(z(؛
DTL3(z)=1/Ploss(i)+DTL3(z(؛
else
DTL3(z)=DTL3(z(؛
end
end
end
%LOOP 4
for z=1:n4؛
for i=1:k؛
if ant(i,4)==L4(z(؛
DTL4(z)=1/Ploss(i)+DTL4(z(؛
DTL4(z)=DTL4(z(؛
end
end
end
%LOOP 5
for z=1:n5؛
for i=1:k؛
if ant(i,5)==L5(z(؛
DTL5(z)=1/Ploss(i)+DTL5(z(؛
else
DTL5(z)=DTL5(z(؛
end
end
end
%LOOP 6
for i=1:k؛
if ant(i,6)==L6(z(؛
DTL6(z)=1/Ploss(i)+DTL6(z(؛
else
DTL6(z)=DTL6(z(؛
end
end
end
%LOOP 7
for z=1:n7؛
for i=1:k؛
if ant(i,7)==L7(z(؛
DTL7(z)=1/Ploss(i)+DTL7(z(؛
else
DTL7(z)=DTL7(z(؛
end
end
end
%LOOP 8
for i=1:k؛
if ant(i,8)==L8(z(؛
DTL8(z)=1/Ploss(i)+DTL8(z(؛
else
DTL8(z)=DTL8(z(؛
end
end
end
%LOOP 9
for z=1:n9؛
for i=1:k؛
if ant(i,9)==L9(z(؛
DTL9(z)=1/Ploss(i)+DTL9(z(؛
else
DTL9(z)=DTL9(z(؛
end
end
end
for z=1:n10؛
for i=1:k؛
if ant(i,10)==L10(z(؛
DTL10(z)=1/Ploss(i)+DTL10(z(؛
else
DTL10(z)=DTL10(z(؛
end
end
end
%LOOP 11
for z=1:n11؛
for i=1:k؛
if ant(i,11)==L11(z(؛
DTL11(z)=1/Ploss(i)+DTL11(z(؛
else
DTL11(z)=DTL11(z(؛
end
end
%LOOP 12
for z=1:n12؛
for i=1:k؛
if ant(i,12)==L12(z(؛
DTL12(z)=1/Ploss(i)+DTL12(z(؛
else
DTL12(z)=DTL12(z(؛
end
end
end
%LOOP 13
for z=1:n13؛
for i=1:k؛
if ant(i,13)==L13(z(؛
DTL13(z)=1/Ploss(i)+DTL13(z(؛
else
DTL13(z)=DTL13(z(؛
end
end
%the phermone
T1=(1-rau)*DTL1+(rau)*c0؛
T2=(1-rau)*DTL2+(rau)*c0؛
T3=(1-rau)*DTL3+(rau)*c0؛
T4=(1-rau)*DTL4+(rau)*c0؛
T5=(1-rau)*DTL5+(rau)*c0؛
T6=(1-rau)*DTL6+(rau)*c0؛
T7=(1-rau)*DTL7+(rau)*c0؛
T8=(1-rau)*DTL8+(rau)*c0؛
T9=(1-rau)*DTL9+(rau)*c0؛
T10=(1-rau)*DTL10+(rau)*c0؛
T11=(1-rau)*DTL11+(rau)*c0؛
T12=(1-rau)*DTL12+(rau)*c0؛
T13=(1-rau)*DTL13+(rau)*c0;
%LOOP 1
for z=1:n1؛
if ant(switches(x),1)==L1(z(؛
DTLS1(z)=1/plossmin(x)+DTLS1(z(؛
else
DTLS1(z)=DTLS1(z(؛
end
end
%LOOP 2
for z=1:n2؛
if ant(switches(x),2)==L2(z(؛
DTLS2(z)=1/plossmin(x)+DTLS2(z(؛
else
DTLS2(z)=DTLS2(z(؛
end
end
for z=1:n3؛
if ant(switches(x),3)==L3(z(؛
DTLS3(z)=1/plossmin(x)+DTLS3(z(؛
else
DTLS3(z)=DTLS3(z(؛
end
end
%LOOP 4
for z=1:n4؛
if ant(switches(x),4)==L4(z(؛
DTLS4(z)=1/plossmin(x)+DTLS4(z(؛
else
DTLS4(z)=DTLS4(z(؛
end
end
for z=1:n5؛
if ant(switches(x),5)==L5(z(؛
DTLS5(z)=1/plossmin(x)+DTLS5(z(؛
else
DTLS5(z)=DTLS5(z(؛
end
end
%LOOP 6
for z=1:n6؛
if ant(switches(x),6)==L6(z(؛
DTLS6(z)=1/plossmin(x)+DTLS6(z(؛
else
DTLS6(z)=DTLS6(z(؛
end
end
for z=1:n7؛
if ant(switches(x),7)==L7(z(؛
DTLS7(z)=1/plossmin(x)+DTLS7(z(؛
else
DTLS7(z)=DTLS7(z(؛
end
end
%LOOP 8
for z=1:n8؛
if ant(switches(x),8)==L8(z(؛
DTLS8(z)=1/plossmin(x)+DTLS8(z(؛
else
DTLS8(z)=DTLS8(z(؛
end
end
%LOOP 9
if ant(switches(x),9)==L9(z(؛
DTLS9(z)=1/plossmin(x)+DTLS9(z(؛
else
DTLS9(z)=DTLS9(z(؛
end
end
%LOOP 10
for z=1:n10؛
if ant(switches(x),10)==L10(z(؛
DTLS10(z)=1/plossmin(x)+DTLS10(z(؛
else
DTLS10(z)=DTLS10(z(؛
end
end
%LOOP 11
if ant(switches(x),11)==L11(z(؛
DTLS11(z)=1/plossmin(x)+DTLS11(z(؛
else
DTLS11(z)=DTLS11(z(؛
end
end
%LOOP 12
for z=1:n12؛
if ant(switches(x),12)==L12(z(؛
DTLS12(z)=1/plossmin(x)+DTLS12(z(؛
else
DTLS12(z)=DTLS12(z(؛
end
end
%LOOP 13
if ant(switches(x),13)==L13(z(؛
DTLS13(z)=1/plossmin(x)+DTLS13(z(؛
else
DTLS13(z)=DTLS13(z(؛
end
end
%the phermone
T1=(1-alp)*T1+alp*DTLS1؛
T2=(1-alp)*T2+alp*DTLS2؛
T3=(1-alp)*T3+alp*DTLS3؛
T4=(1-alp)*T4+alp*DTLS4؛
T5=(1-alp)*T5+alp*DTLS5؛
T6=(1-alp)*T6+alp*DTLS6؛
T7=(1-alp)*T7+alp*DTLS7؛
T8=(1-alp)*T8+alp*DTLS8؛
T9=(1-alp)*T9+alp*DTLS9؛
T10=(1-alp)*T10+alp*DTLS10؛
T11=(1-alp)*T11+alp*DTLS11؛
T12=(1-alp)*T12+alp*DTLS12؛
T13=(1-alp)*T13+alp*DTLS13؛