Professional Documents
Culture Documents
Ant colonies, and more generally social insect societies, are distributed
systems that, in spite of the simplicity of their individuals, present a highly
structured social organization. As a result of this organization, ant colonies can
accomplish complex tasks that in some cases far exceed the individual
capabilities of a single ant.
The main idea is that the self-organizing principles which allow the highly
coordinated behavior of real ants can be exploited to coordinate populations
of artificial agents that collaborate to solve computational problems. Several
different aspects of the behavior of ant colonies have inspired different kinds
of ant algorithms. Examples are foraging, division of labor, brood sorting, and
cooperative transport. In all these examples, ants coordinate their activities
via stigmergy, a form of indirect communication mediated by modifications of
the environment. For example, a foraging ant deposits a chemical on the
ground which increases the probability that other ants will follow the same
path. Biologists have shown that many colony-level behaviors observed in
social insects can be explained via rather simple models in which only
stigmergic communication is present. In other words, biologists have shown
that it is often sufficient to consider stigmergic, indirect communication to
explain how social insects can achieve self-organization. The idea behind ant
algorithms is then to use a form of artificial stigmergy to coordinate societies
of artificial agents.
One of the most successful examples of ant algorithms is known as ‘‘ant colony
optimization,’’ or ACO. ACO is inspired by the foraging behavior of ant
colonies, and targets discrete optimization problems.
Ant colony optimization is a population-based metaheuristic that can be used
to find approximate solutions to difficult optimization problems. It is inspired
by the above-described foraging behavior of ant colonies. In ant colony
optimization (ACO), a set of software agents called "artificial ants" search for
good solutions to a given optimization problem transformed into the problem
of finding the minimum cost path on a weighted graph.
1.1.1 Behavior and optimization of ants
The visual perceptive faculty of many ant species is only rudimentarily
developed and there are ant species that are completely blind. In fact, an
important insight of early research on ants’ behavior was that most of the
communication among individuals, or between individuals and the
environment, is based on the use of chemicals produced by the ants.
These chemicals are called pheromones. This is different from, for
example, what happens in humans and in other higher species, whose
most important senses are visual or acoustic. Particularly important for
the social life of some ant species is the trail pheromone. Trail pheromone
is a specific type of pheromone that some ant species, such as Lasius niger
or the Argentine ant Iridomyrmex humilis use for marking paths on the
ground, for example, paths from food sources to the nest. By sensing
pheromone trails foragers can follow the path to food discovered by
other ants. This collective trail-laying and trail-following behavior
whereby an ant is influenced by a chemical trail left by other ants is the
inspiring source of ACO.
A double bridge experiment was made to see the behavior of ant, in fig
1.1.1(a) there is no much pheromone deposit where as in second figure the
deposit of pheromone is way too much in order to find the shortest path.
1.2 Practical advantages of Ant Colony Optimization (ACO)
1.2.1 Ant Colony Optimization Approach for Optimizing Traffic Signal
Timings
where τij and ηij are respectively the pheromone value and the heuristic value
associated with the component cij . Furthermore, α and β are positive real
parameters whose values determine the relative importance of pheromone versus
heuristic information.
2.3.2 Daemon Actions
Once solutions have been constructed, and before updating the pheromone values,
often some problem specific actions may be required. These are often
called daemon actions, and can be used to implement problem specific and/or
centralized actions, which cannot be performed by single ants. The most used
daemon action consists in the application of local search to the constructed
solutions: the locally optimized solutions are then used to decide which pheromone
values to update.
2.3.3 Update Pheromones
The aim of the pheromone update is to increase the pheromone values associated
with good solutions, and to decrease those that are associated with bad ones.
Usually, this is achieved (i) by decreasing all the pheromone values
through pheromone evaporation, and (ii) by increasing the pheromone levels
associated with a chosen set of good solutions Supd :
where Supd is the set of solutions that are used for the update, ρ∈(0,1] is a
parameter called evaporation rate, and F:S→R+0 is a function such that
7 9
3
6
8
5 4
Fig – 3.2.1
6
Now we can consider from any city and formulate different solutions. We consider
city 1 and with it we calculate a solution which is 1 -> 5 -> 2 -> 4 -> 3 -> 1 and we
get Z =34. We calculate from city 2 we get 2 -> 4 -> 5 -> 1 -> 3 -> 2 and we get Z =36.
Similarly we calculate for city 3,4,5 and we get a feasible solution which is Z = 36.
And also provides a upper bound to the problem UB that is here is 34 and Lh and
Lo are the length of optimal solution solution and length of heuristic solution which
is always Lh>= Lo.
3.2.2 Minimum Spanning Tree
We consider the fig 3.2.1 and calculate the minimum spanning tree from
the graph. And then we calculate the length of minimum spanning tree
and consider all such spanning trees and we update the minimum
spanning tree. From fig 3.2.1 we get the fig
4 8
5
3
2
6
5 1
Fig – 3.2.2
7
Lmst = 26, Lst <= Lo , LMST<= Lst ,so Lmst <= Lo.
So Lmst is the lower bound and hence the optimal solution.
3.2.3 Twice around the tree heuristic
Here we consider the same graph fig 3.2.1 and construct the Eulerian
graph where you can start with any vertex, go through every edge or arc
once and only once and comeback to the starting vertex.
4 3
5 1
Fig – 3.2.3
We get a optimal solution 1 -> 5 -> 2 -> 4 -> 3 -> 4 -> 2 -> 5 -> 1. We will get
Feasible solution from this we get 1 -> 5 -> 2 -> 4 -> 3 -> 1 (feasible solution
to TSP) Z = 34.
often described as: , is the probability that ant k moves form position i to position j
at time t. allowed k = { } 0,1,L,m −1 − tabu k denotes ant k has been allowed of
choice of the cities in the next step ( tabuk (k = 1,2,L,m) is the aggregation that ant
k already went across cities. In the beginning there is only one element that is the
starting city of ant k , With the development of evolution, element in the tabuk will
be increased ).α is the relatively weightiness of track. β is the parameter that
determines the influence of the heuristic function.
2) Once all ants have gone through solution construction and local search, the
pheromone update procedure is applied to these pheromone values.It can be
written as :
(2)
Where, ρ ∈ (0,1) means degree of attenuation of τ ij (t) with the process of time
(3)
Delta τ ij (t) is the amount of reinforcement in the edge (i ,j ). By different models
of algorithms of Ant Colony we have
In Ant System:
(4)
In Ant-Quantity System:
(5)
In Ant Density System:
(6)
Where Q is a constant that denotes the total information of which every ant leaves
behind after they travel once around the all cities; Lk is length of paths that ant k
have traveled in this cycle; dij means distance of two cities i and j.
3) Circulating the above steps until the time of travelachieve designated time or
haven’t appeared better solutions in a certain period of time. The flowchart of the
Ant Colony Algorithm is shown
It is not travelling salesman problem, it just shows the weights as fuzzy number.
4.1.1 Yager Ranking Approach
Yager’s method involves relatively simple computation and is easily
understandable. This method involves a procedure for ordering fuzzy sets
in which a ranking approach (A˜) is calculated for the fuzzy number A =
(m, n, α, β)L−R from its λ-cut Aλ = [m − αL−1(λ), n + βR−1(λ)] according to
the following formula:
Where
Constraints (1) and (2) ensure that each city is visited only once. Constraint (3)
is known as subtour elimination constraint and eliminates all 2−city subtours.
Constraint (4) eliminates all 3−city subtours. Constraint (5) eliminates all
(n − 1)−city subtours. For a feasible solution of travelling salesman problem, the
solution should not contain subtours. So, for a 5−city travelling salesman problem,
we should not have subtours of length 2, 3 and 4. For a 6−city travelling salesman
problem, we should not have subtours of length 2, 3, 4 and 5. Similarly, for an n−city
travelling salesman problem, we should not have subtours of length 2 to n-1.
CONCLUSION
Ant Colony Optimization is used to get the Travelling salesman
problem. We use the Ant Colony Optimization over other
algorithms because it can be applied to large number of cities
and as we will be using metaheuristic Ant colony optimization to
Travelling Salesman Problem we get optimal solutions as the
heuristics are problem- dependent techniques, as they are
adapted to the problem at hand and they try to take full
advantage of the particularities of this problem. However
because they are too greedy, they usually get trapped in a local
optimum and thus fail in general.
The fuzzy formulation of the Travelling salesman Problem we get
to the different distances from cities to different cities. Further
studies on fuzzy optimization will lead to great optimization in
many sectors of transportation and networking etc.