Free Essay

Ant Colony Optimisation

In:

Submitted By swayam
Words 5585
Pages 23
Ant Colony Optimization

1

A Seminar Report on

“Ant Colony Optimization”
A Seminar submitted in partial fulfilment of the requirements for the award of degree

BACHELOR OF TECHNOLOGY
In

COMPUTER SCIENCE ENGINEERING
Presented By
Ranjith Kumar A (06J11A0534)

Department of computer science engineering HITECH COLLEGE OF ENGG & TECHNOLOGY (Affiliated to Jawaharlal Nehru Technological University, Hyderabad) Himayathnagar, C.B.Post, Moinabad, Hyderabad-5000
2

075.

CERTIFICATE

This is to certify that the Seminar Report on “Ant Colony Optimization”, is a bonafide Seminar work done by Ranjith Kumar A (06J11A0534), in partial fulfillment for the award of the degree Bachelor of Technology in “Computer Science engineering” J.N.T.U Hyderabad during the year 2010.

Y.V.S Pragathi M.Tech Head of CSE Department

3

Abstract

Ant Colony Optimization (ACO) has been successfully applied to those combinatorial optimization problems which can be translated into a graph exploration. Artificial ants build solutions step by step adding solution components that are represented by graph nodes. The existing ACO algorithms are suitable when the graph is not very large (thousands of nodes) but is not useful when the graph size can be a challenge for the computer memory and cannot be completely generated or stored in it. In this paper we study a new ACO model that overcomes the difficulties found when working with a huge construction graph. In addition to the description of the model, we analyze in the experimental section one technique used for dealing with this huge graph exploration. The results of the analysis can help to understand the meaning of the new parameters introduced and to decide which parameterization is more suitable for a given problem. For the experiments we use one real problem with capital importance in Software Engineering: refutation of safety properties in concurrent systems. This way, we foster an innovative research line related to the application of ACO to formal methods in Software Engineering.

4

CONTENTS PAGENO

1. Introduction 1.1 Swarm Intelligence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Ant Colony. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3 Real Ant Behavior. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. Ant Colony Optimization(ACO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 6

3. Applications OF ACO. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1 Travelling sales man. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.2 Quadratic Assignment Problem(QAP) . . . . . . . . . . . . . . . . . . . . 17 3.3 Network Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.4 Vehicle Routing Problem with Time Windows. . . . . . . . . . . . . . .25 4. Advantages And Disadvantages.. . . . . . . . . . . . . . . . . . . . . . . . . . . . .27

5. Conclusion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 6. Bibliography. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

5

1 Introduction:
1.1 Swarm Intelligence: Swarm intelligence (SI) describes the collective behaviour of decentralized, self-

Organized systems, natural or artificial. The concept is employed in work on artificial intelligence. The expression was introduced by Gerardo Beni and Jing Wang in 1989, in the context of cellular robotic systems. Swarm intelligence is the discipline that deals with natural and artificial systems composed of many individuals that coordinate using decentralized control and self-organization. In particular, the discipline focuses on the collective behaviours that result from the local interactions of the individuals with each other and with their environment. Examples of systems studied by swarm intelligence are colonies of ants and termites, schools of fish, flocks of birds, herds of land animals. Some human artefacts also fall into the domain of swarm intelligence, notably some multi-robot systems, and also certain computer programs that are written to tackle optimization and data analysis problems. Emphasis is given to such topics as the modelling and analysis of collective biological systems; application of biological swarm intelligence models to real-world problems; and theoretical and empirical research in ant colony optimization, particle swarm optimization, swarm robotics, and other swarm intelligence algorithms. Articles often combine experimental and theoretical work.

1

1.2 Ant Colony: The complex social behaviours of ants have been much studied by science, and computer scientists are now finding that these behaviour patterns can provide models for solving difficult combinatorial optimization problems. The attempt to develop algorithms inspired by one aspect of ant behaviour, the ability to find what computer scientists would call shortest paths, has become the field of ant colony optimization (ACO), the most successful and widely recognized algorithmic technique based on ant behaviour. This book presents an overview of this rapidly growing field, from its theoretical inception to practical applications, including descriptions of many available ACO algorithms and their uses.

The book first describes the translation of observed ant behaviour into working optimization algorithms. The ant colony metaheuristic is then introduced and viewed in the general context of combinatorial optimization. This is followed by a detailed description and guide to all major ACO algorithms and a report on current theoretical findings. The book surveys ACO applications now in use, including routing, assignment, scheduling, subset, machine learning, and bioinformatics problems. AntNet, an ACO algorithm designed for the network routing problem, is described in detail. The authors conclude by summarizing the progress in the field and outlining future research directions. Each chapter ends with bibliographic material, bullet points setting out important ideas covered in the chapter, and exercises. Ant Colony Optimization will be of interest to academic and industry researchers, graduate students, and practitioners who wish to learn how to implement ACO algorithms.

2

1.3 Real Ant Behavior :
Natural behaviour of ants have inspired scientists to mimic insect operational methods to solve real-life complex problems such as Travelling sales man problem, Quadratic assignment problem, Network model, Vehicle routing. By observing ant behaviour, scientists have begun to understand their means of communication Ants communicate with each other through tapping with the antennae and smell. They are considered, together with the bees, as one of the most socialized animals. They have a perfect social organization, and each type of individual specializes in a specific activity within the colony. They are thought by many as having a collective intelligence, and each ant is considered then as an individual cell of a bigger organism. Ants wander randomly & on finding food return to their colony while laying “PHEROMONE TRIALS”.

If other Ants find such paths they do not travel randomly but follow the Pheromone trail. Ants secrete pheromone while travelling from the nest to food and vice versa in order to communicate with each other to find shortest path. Pheromone is a highly volatile substance which starts to evaporate, more the time taken by the ant to travel to and fro more time the pheromone have to evaporate. A shortest path gets marched over faster and thus the pheromone density remains high. If one of the ant finds the shortest path from colony to food source other ants are more likely to follow the same path.

3

Behaviour of ant in presence of an obstacle:
Ants are forced to decide whether they should go left or right. The choice that is made is a random one. Pheromone accumulation is Faster on shortest path.

4

Ants: One of the first researchers to investigate the social behaviour of insects was the French entomologist Pierre-Paul Grasse. In the forties and fifties of the 20-th century, he was observing the behaviour of termites { in particular, the Bellicositermes natalensis and Cubitermes species. He discovered [26] that these insects are capable to react to what he called \significant stimuli", signals that activate a genetically encoded reaction. He observed that the effects of these reactions can act as new significant stimuli for both the insect that produced them and for the other insects in the colony. Grasse used the term stigmergy to describe this particular type of indirect communication in which the \workers are stimulated by the performance they have achieved". The two main characteristics of stigmergy that di®erentiate it from other means of communication are: • the physical, non-symbolic nature of the information released by the communicating insects, which corresponds to a modification of physical environmental states visited by the insects and • the local nature of the released information, which can only be accessed by those insects that visit the place where it was released (or its immediate neighbourhood). Examples of stigmergy can be observed in colonies of ants. In many ant species, ants walking to, and from, a food source deposit on the ground a substance called pheromone. Other ants are able to smell this pheromone, and its presence influences the choice of their path i.e., they tend to follow strong pheromone.

5

2 Ant Colony Optimization(ACO):
Ant Colony Optimization (ACO) is a paradigm for designing metaheuristic algorithms for combinatorial optimization problems. The first algorithm which can be classified within this framework was presented in 1991 and, since then, many diverse variants of the basic principle have been reported in the literature. The essential trait of ACO algorithms is the combination of a priori information about the structure of a promising solution with posterior information about the structure of previously obtained good solutions. Metaheuristic algorithms are algorithms which, in order to escape from local optima, drive some basic heuristic: either a constructive heuristic starting from a null solution and adding elements to build a good complete one, or a local search heuristic starting from a complete solution and iteratively modifying some of its elements in order to achieve a better one. The metaheuristic part permits the low-level heuristic to obtain solutions better than those it could have achieved alone, even if iterated. Usually, the controlling mechanism is achieved either by constraining or by randomizing the set of local neighbour solutions to consider in local search (as is the case of simulated annealing [ or tabu ), or by combining elements taken by different solutions (as is the case of evolution strategies algorithms). The characteristic of ACO algorithms is their explicit use of elements of previous solutions. In fact, they drive a constructive low-level solution, as GRASP does, but including it in a population framework and randomizing the construction in a Monte Carlo way. A Monte Carlo combination of different solution elements is suggested also by Genetic Algorithms , but in the case of ACO the probability distribution is explicitly defined by previously obtained solution components. The particular way of defining components and associated probabilities is problem- specific, and can be designed in different ways, facing a trade-off between the specificity of the information used for the conditioning and the number of solutions which need to be constructed before effectively biasing the probability dis- tribution to favour the emergence 6 and genetic or bionomic

of good solutions. Different applications have favoured either the use of conditioning at the level of decision variables, thus requiring a huge number of iterations before getting a precise distribution, or the computational efficiency, thus using very coarse conditioning information. The chapter is structured as follows. Section 2 describes the common elements of the heuristics following the ACO paradigm and outlines some of the variants proposed. Section 3 presents the application of ACO algorithms to a number of different combinatorial optimization problems and it ends with a wider overview of the problem attacked by means of ACO up to now. Section 4 outlines the most significant theoretical results so far published about convergence properties of ACO variants.

ACO is a class of algorithms, whose first member, called Ant System, was initially proposed by Colorni, Dorigo and Maniezzo . The main underlying idea, loosely inspired by the behaviour of real ants, is that of a parallel search over several constructive computational threads based on local problem data and on a dynamic memory structure containing information on the quality of previously obtained result. The collective behaviour emerging 7

from the interaction of the different search threads has proved effective in solving combinatorial optimization (CO) problems. we use the following notation. A combinatorial optimization problem is a problem defined over a set C = c1, ... , cn of basic components. A subset S of components represents a solution of the problem; F ⊆ 2C is the subset of feasible solutions, thus a solution S is feasible if and only if S ∈ F. A cost function z is defined over the solution domain, z : 2C � R, the objective being to find a minimum cost feasible solution S*, i.e., to find S*: S* ∈ F and z(S*) ≤ z(S), ∀S∈F. Given this, the functioning of an ACO algorithm can be summarized as follows (see also [27]). A set of computational concurrent and asynchronous agents (a colony of ants) moves through states of the problem corresponding to partial solutions of the problem to solve. They move by applying a stochastic local decision policy based on two parameters, called trails and attractiveness. By moving, each ant incrementally constructs a solution to the problem. When an ant completes a solution, or during the construction phase, the ant evaluates the solution and modifies the trail value on the components used in its solution. This pheromone information will direct the search of the future ants. Furthermore, an ACO algorithm includes two more mechanisms: trail evaporation and, optionally, daemon actions. Trail evaporation decreases all trail values over time, in order to avoid unlimited accumulation of trails over some component. Daemon actions can be used to implement centralized actions which cannot be performed by single ants, such as the invocation of a local optimization procedure, or the update of global information to be used to decide whether to bias the search process from a non-local perspective .More specifically, an ant is a simple computational agent, which iteratively constructs a solution for the instance to solve. Partial problem solutions are seen as states. At the core of the ACO algorithm lies a loop, where at each iteration, each ant moves (performs a step) from a state ι to another one ψ, corresponding to a more complete partial solution. That is, at each step σ, each ant k computes a set Ak σ(ι) of feasible expansions to its current state, and moves to one of these in probability. The probability distribution is specified as follows. For ant k, the probability pιψk of moving from state ι to state ψ depends on the combination of two values: • the attractiveness ηιψ of the move, as computed by some heuristic indicating the a priori desirability of that move. • the trail level τιψ of the move, indicating how proficient it has been in the past to make that particular move: it represents therefore an a posterior indication of the desirability of that move. 8

Trails are updated usually when all ants have completed their solution, increasing or decreasing the level of trails corresponding to moves that were part of "good" or "bad" solutions, respectively. The general framework just presented has been specified in different ways by the authors working on the ACO approach. The remainder of Section 2 will outline some of these contributions. The ant system simply iterates a main loop where m ants construct in parallel their solutions, thereafter updating the trail levels. The performance of the algorithm depends on the correct tuning of several parameters, namely: α, β, relative importance of trail and attractiveness, ρ, trail persistence, τij(0), initial trail level, m, number of ants, and Q, used for defining to be of high quality solutions with low cost. The algorithm is the following. 1. {Initialization} Initialize τιψ and ηιψ, ∀(ιψ). 2. {Construction} For each ant k (currently in state ι) do repeat choose in probability the state to move into. append the chosen move to the k-th ant's set tabuk. until ant k has completed its solution. end for 3. {Trail update} For each ant move (ιψ) do compute Δτιψ update the trail matrix. end for 4. {Terminating condition} If not(end test) go to step 2

9

3 Applications OF ACO: 3.1 Travelling sales man:
The TSP is a very important problem in the context of Ant Colony Optimization because it is the problem to which the original AS was first applied, and it has later often been used as a benchmark to test a new idea and algorithmic variants. OBJECTIVE: Given a set of n cities, the Traveling Salesman Problem requires a salesman to find the shortest route between the given cities and return to the starting city, while keeping in mind that each city can be visited only once

10

The TSP was chosen for many reasons: • • • It is a problem to which the ant colony metaphor It is one of the most studied NP-hard problems in the combinatorial optimization it is very easily to explain. So that the algorithm behavior is not obscured by too many technicalities. Since the route B is shorter, the ants on this path will complete the travel more times and thereby lay more pheromone over it. The pheromone concentration on trail B will increase at a higher rate than on A, and soon the ants on route A will choose to follow route B Since most ants will no longer travel on route A, and since the pheromone is volatile, trail A will start evaporating Only the shortest route will remain

WHY TSP IS DIFFICULT TO SOLVE Finding best solution may entail an exhaustive search for all combination of cities, this can be prohibitive as “N” gets large. Heuristic like greedy methods doesn’t guarantee optimal solutions.

11

Ant colony optimization in TSP:
The meta heuristic Ant Colony Optimization (ACO) is an optimization algorithm successfully used to solve many NP hard optimization problems introduced in ACO . ACO algorithms are a very interesting approach to find minimum cost paths in graphs especially when the connection costs in the graphs can change over time, i.e. when the problems are dynamic. The artificial ants have been successfully used to solve the (conventional) Traveling Salesman Problem (TSP) , as well as other NP hard optimization problems, including applications in quadratic assignment or vehicle routing. The algorithm’s based on the fact that ants are always able to find the shortest path between the nest and the food sources, using information of the pheromones previously laid on the ground by other ants in the colony. When an ant is searching for the nearest food source and arrives at several possible trails, it tends to choose the trail with the largest concentration of pheromones, with a certain probability p. After choosing the trail, it deposits another pheromone, increasing the concentration of pheromones in this trail. The ants return to the nest using always the same path, depositing another portion of pheromone in the way back. Imagine then, that two ants at the same location choose two different trails at the same time. The pheromone concentration on the shortest way will increase faster than the other: the ant that chooses this way, will deposit more pheromone in a smaller period of time, because it returns earlier. If a whole colony of thousands of ants follows this behaviour, soon the concentration of pheromone on the shortest path will be much higher than the concentration in other paths. Then the probability of choosing any other way will be very small and only very few ants among the colony will fail to follow the shortest path. There is another phenomenon related with the pheromone concentration since it is a chemical substance, it tends to evaporate, so the concentration of pheromones vanishes along the time. In this way, the concentration of the less used paths will be much lower than that of the most used ones, not only because the concentration increases on the other paths, but also because its own concentration decreases.

12

Flow chart for TSP using ACO

13

Ant Colonies Optimization Algorithm: procedure Ant colony algorithm Set for every pair (i, j): Tij = Tmax Place the g ants For i = 1 to N: Build a complete tour For j = 1 to m For k = 1 to g Choose the next node using pk ij in (2) Update the tabu list T End End Analyze solutions For k = 1 to g Compute performance index fk Update globally Tij(t + m × g) using (3) End End
Euclidean distance between two locations dij is used as heuristic. However, within a city, the traveling time tij between two machines is more relevant than distance, due to traffic reasons. Therefore, the heuristic function is given by _ = (tij − tmin)/(tmax − tmin), where tij is the estimated traveling time between location i and location j and tmin = min tij and tmax = max tij are the minimum and maximum travelling times considered. In this way, the heuristic matrix _ entries are always restricted to the interval [0, 1]. The objective function to minimize, fk(t), is simply the sum of travelling time between all the visited locations:

14

Rules for Transition Probability 1. Whether or not a city has been visited Use of a memory(tabu list):
N 2. ij

J ik

: set of all cities that are to be visited

1 =

d ij

visibility: Heuristic desirability of choosing city j when in city i.
Tij (t ) This

3.Pheromone trail:

is a global type of information

Transition probability for ant k to go from city i to city j while building its route.

 [τ i (j t ) α][η i j] β i fj∈ a l l ok w e d  α β pik (j t ) =  ∑ [τ i k( t ) ][η i k] k∈ a l l ok w e d   0 o th e rw is e a = 0: closest cities are selected Trial visibility is η ij = 1/dij The intensity in the probabilistic transition is α The visibility of the trial segment is β The trail persistence or evaporation rate is given as ρ Trail intensity is given by value of τ ij 15

TSP Applications
• Lots of practical applications • Routing such as in trucking, delivery, UAVs • Manufacturing routing such as movement of parts along manufacturing floor or the amount of solder on circuit board • Network design such as determining the amount of cabling required • Two main types – Symmetric – Asymmetric

TSP Heuristics
• Variety of heuristics used to solve the TSP • The TSP is not only theoretically difficult it is also difficult in practical application since the tour breaking constraints get quite numerous • As a result there have been a variety of methods proposed for the TSP • Nearest Neighbour is a typical greedy approach

Advantages:
• Positive Feedback accounts for rapid discovery of good solutions • Distributed computation avoids premature convergence • The greedy heuristic helps find acceptable solution in the early solution in the early stages of the search process. • The collective interaction of a population of agents.

16

3.2 Quadratic Assignment Problem(QAP):

The quadratic assignment problem (QAP) is one of fundamental combinatorial optimization problems in the branch of optimization or operations research in mathematics, from the category of the facilities location problems. There are a set of n facilities and a set of n locations. For each pair of locations, a distance is specified and for each pair of facilities aweigh or flow is specified (e.g., the amount of supplies transported between the two facilities). The problem is to assign all facilities to different locations with the goal of minimizing the sum of the distances multiplied by the corresponding flows The formal definition of the quadratic assignment problem is Given two sets, P ("facilities") and L ("locations"), of equal size, together with a weight function w : P × P → R and a distance function d : L× L → R. Find the bijection f : P → L ("assignment") such that the cost function:

is minimized. Usually weight and distance functions are viewed as square realvalued matrices, so that the cost function is written down as:

17

Problem is: • Assign n activities to n locations (campus and mall layout). • D= d i , j, [ d i , j ] n,n , distance from location i to location j • F= [ f h , k ]n ,n f i , j,flow from activity h to activity k , • Assignment is permutation Π n • Minimize: C (π ) = ∑d ij f π ( i )π ( j ) • It’s NP hard i, j= 1

QAP Example

18

Algorithms 1) Ant System for the QAP: Ant System (AS) uses ants in order to construct a solution from scratch. The algorithm uses a heuristic information on the potential quality of a local assignment that is determined as follows: two vectors d and f whose components are the sum of the distances, resp. flows from location, resp. facility i to all other locations, resp. facilities are computed. This leads to a coupling matrix E = f · dT where eij = fi · dj . Thus, _ = 1/eij denotes the heuristic desirability of assigning facility i to location j. A solution is constructed by using both this heuristic information and information provided by previous ants using pheromones. At each step an ant k assigns the next still unassigned facility i to a location j belonging to the feasible neighbourhood of the node i, i.e. the locations that are still free, with a probability pk ij given by Equation 2.

After their run, the ants update the pheromone information Tij :

This algorithm uses an evaporation rate of (1 − p) in order to forget previous bad choices at the cost of loosing useful information too. the edge (i, j): is the amount of pheromone ant k deposits on

The algorithm parameters are the number of ants n, the weight given to either heuristic or pheromone information’s _, _ and the maximal amount of laid pheromone Q. 2) The MAX − MIN Ant System: MAX − MIN Ant System (MMAS) is an improvement over AS that allows only one ant to add pheromone. The pheromone trails are initialized to the upper trail limit, which cause a higher exploration at the start of algorithm. Finally, methods to increase the diversification of the search can be used, for example by reinitialising the pheromone trails to _max if the algorithm makes no progress. In MMAS, the ant k assigns the facility i to the location j with a probability pk ij given by formula 4. MMAS does not use any heuristic information but is coupled with a local search for every ant.

19

SIMPLIFIED CRAFT (QAP) Simplification Assume all departments have equal size Notation distance between locations i and j travel frequency between departments k and h 1 if department k is assigned to location i 0 otherwise Example

1 2 3 4

1 1 1 2

2 1 2 1

3 1 2 1

4 2 1 1 -

20

Ant System (AS-QAP)
Constructive method: step 1: choose a facility j step 2: assign it to a location i Characteristics: – each ant leaves trace (pheromone) on the chosen couplings (i,j) – assignment depends on the probability (function of pheromone trail and a heuristic information) – already coupled locations and facilities are inhibited (Tabu list) Heuristic information

  Di =  j   

The coupling Matrix:
1200 1100 1300 800 1440 1320 1560 960

720 660 S = 780  480

Ants choose the location according to the heuristic desirability “Potential goodness”

3210   6   0 6 5 1  0 01 0 5401 1  0 6 0 3 20 01 0  ⇒ Di=   Fi =  j  Fi =⇒   6042  1  25 3 0 50 0 1 0       0653  1  41 2 5 0  0 08 

1680  1540   1820   1120 

2 0 1 0 3 0 0

s11 = f1 • d1 = 720 s 34 = f 3 • d 4 = 960

ζ ij =

1 sij

21

AS-QAP Constructing the Solution: AS-QAP Constructing the Solution facilities are ranked in decreasing order of the flow potentials, Ant k assigns the facility i to location j with the probability given by

 [τ (t )]α [η ]β  ij ij k pij (t ) =  α β  ∑l∈N ik [τ ij (t )] [ηij ] 

if

j ∈ N ik

where

N ik is the feasible Neighborhood of node i

Ø When Ant k choose to assign facility j to location i it leave a substance, called trace “pheromone” on the coupling (i,j) Ø Repeated until the entire assignment is found

AS-QAP Pheromone Update:
Pheromone trail update to all couplings: k τ ij (t +1) = ρ.τ ij (t ) + ∑ ∆τ ij k =1 k ∆τij is the amount of pheromone ant k puts on the coupling (i,j)

m

Q  k if facility i is assigned to location j in the solution of ant k ∆ =  Jψ  0 otherwise  k ij k Jψ …the objective function v alue

Q...the amount of pheromone deposited by ant k

22

3.3 Network Model:
Routing (or routeing) is the process of selecting paths in a network along which to send network traffic. Routing is performed for many kinds of networks, including the telephone network, electronic data networks (such as the Internet), and transportation networks. This article is concerned primarily with routing in electronic data networks using packet switching technology. In packet switching networks, routing directs packet forwarding, the transit of logically addressed packets from their source toward their ultimate destination through intermediate nodes; typically hardware devices called routers, bridges, gateways, firewalls, or switches. General-purpose computers with multiple network cards can also forward packets and perform routing, though they are not specialized hardware and may suffer from limited performance. The routing process usually directs forwarding on the basis of routing tables which maintain a record of the routes to various network destinations. Thus, constructing routing tables, which are held in the routers' memory, is very important for efficient routing. Most routing algorithms use only one network path at a time, but multipath routing techniques enable the use of multiple alternative paths. Routing task is performed by Routers. Routers use “Routing Tables” to direct the data.

23

Problem statement:
• Dynamic Routing At any moment the pathway of a message must be as small as possible. (Traffic conditions and the structure of the network are constantly changing) • Load balancing Distribute the changing load over the system and minimize lost calls

Algorithm:
Increase the probability of the visited link by: ρ= ρold + ∆ρ 1 + ∆ρ

Decrease the probability of the others by : ρ= ρold 1 + ∆ρ
   

Where Example:

 1 ∆ρ = f   age 

Node8

Node1 Node3

Node7

Node4

24

3.4 Vehicle Routing Problem with Time Windows (VRPTW):
The vehicle routing problem (VRP) is a combinatorial optimization and integer programming problem seeking to service a number of customers with a fleet of vehicles. Proposed by Dantzig and Ramser in 1959, VRP is an important problem in the fields of transportation, distribution and logistics.[1] Often the context is that of delivering goods located at a central depot to customers who have placed orders for such goods. Implicit is the goal of minimizing the cost of distributing the goods. Many methods have been developed for searching for good solutions to the problem, but for all but the smallest problems, finding global minimum for the cost function is computationally complex. Objective Functions to Minimize • • •


Total travel distance Total travel time Number of vehicles Vehicles ( # ,Capacity, time on road, trip length) Depots (Numbers) Customers (Demands, time windows)

Subject to: •


• Vehicle Routing Problem with Time Windows (VRPTW):

Simple Algorithm:
25

- Place ants on depots (Depots # = Vehicle #). - Probabilistic choice ~ (1/distance, di, Q) ~ amount of pheromone - If all unvisited customer lead to a unfeasible solution: Select depot as your next customer. - Improve by local search. - Only best ants update pheromone trial.

Multiple ACS For VRPTW:

26

ADVANTAGES OF ACO:
1. Inherent parallelism. – Ants works in parallel to find a solution.
2. Parallelism at the level of data.

– Ants working for sub-problems
3. Efficient for several problems like TSP, QAP.

4. Positive feedback which accounts for rapid discovery of good solution 5. Can be used in dynamic application(Adapts to change such as new distances etc)

DISADVANTAGES OF ACO:
1. Theoretical analysis is difficult.
2. Probabilistic distribution changes by iteration.

3. Research is experimental rather than theoretical. 4. Time to converge is uncertain.

27

Conclusions:
• ACO is a recently proposed metaheuristic approach for solving hard combinatorial optimization problems. • Artificial ants implement a randomized construction heuristic which makes probabilistic decisions. • The a cumulated search experience is taken into account by the adaptation of the pheromone trail. • ACO Shows great performance with the “illstructured” problems like network routing. • In ACO Local search is extremely important to obtain good results.

28

BIBLIOGRAPHY:
• Dorigo M. and G. Di Caro (1999). The Ant Colony Optimization Meta-Heuristic. In D. Corne, M. Dorigo and F. Glover, editors, New Ideas in Optimization, McGraw-Hill, 11-32. • M. Dorigo and L. M. Gambardella. Ant colonies for the travelling salesman problem. Bio Systems, 43:73–81, 1997. • M. Dorigo and L. M. Gambardella. Ant Colony System: A cooperative learning approach to the travelling salesman problem. IEEE Transactions on Evolutionary Computation, 1(1):53–66, 1997. • G. Di Caro and M. Dorigo. Mobile agents for adaptive routing. In H. El-Rewini, editor, Proceedings of the 31st International Conference on System Sciences (HICSS-31), pages 74–83. IEEE Computer Society Press, Los Alamitos, CA, 1998. • M. Dorigo, V. Maniezzo, and A. Colorni. The Ant System: An autocatalytic optimizing process. Technical Report 91-016 Revised, Dipartimento di Elettronica,Politecnico di Milano, Italy, 1991. • L. M. Gambardella, ` E. D. Taillard, and G. Agazzi. MACS-VRPTW: A multiple ant colony system for vehicle routing problems with time windows. In D. Corne, M. Dorigo, and F. Glover, editors, New Ideas in Optimization, pages 63–76. McGraw Hill, London, UK, 1999. • L. M. Gambardella, ` E. D. Taillard, and M. Dorigo. Ant colonies for the quadratic assignment problem. Journal of the Operational Research Society,50(2):167–176, 1999. • V. Maniezzo and A. Colorni. The Ant System applied to the quadratic assignment problem. IEEE Transactions on Data and Knowledge Engineering, 11(5):769–778, 1999. • Gambardella L. M., E. Taillard and M. Dorigo (1999). Ant Colonies for the Quadratic Assignment Problem. Journal of the Operational Research Society, 50:167-176.

29

Similar Documents

Free Essay

“Native Ants Use Chemical Weapons to Turn Back Invading Argentine Ants”

...Biology 219 Invertebrates in the News “Native Ants Use Chemical Weapons to Turn Back Invading Argentine Ants” Although we may think that humans dominate the globe, one Argentine species of ant, Linepithema humile, is making strides to challenge this supremacy. In fact, this invasive species may be part of a colony that is “ the largest of its type ever known for any insect species, and could rival humans in the scale of its world domination” (Walker). This mega colony has spread its reach over several continents, including Africa, Europe, Australia, and North America, and unwittingly humans have played a role in the formation of this colony by transporting these insects in contaminated crates of Argentinean sugar. Unfortunately, the spread of this invasive species has resulted in some serious ecological implications, such as the demise of the native ants inhabiting these conquered territories. The extermination of the native ants has greatly impacted the surrounding ecosystem, because “some native ant species that eat seeds have coevolved with certain native grasses and other plants to become a crucial part of the plant's propagation by carrying the seeds to new areas” ("Native Ants Use…”). Thus, the disappearances of these native species have drastically affected the dispersal and survival of these grasses, and the creatures that feed on or reside in these plants. However, one ant species native to North America, Prenolepis imparis, has decided to take a stand...

Words: 730 - Pages: 3

Premium Essay

Cross-Docking

...Multiple-product & Various Truck Capacities Cross-docking Problem Introduction Customer demands are getting more complicated and even harder to be satisfied nowadays. It is highly needed for the company to have such flexibility, agility and reliability in terms of answering the demand requests from their customers. But their limitations in improving customer satisfaction might be a big problem for them and the operation of single company can have a bad impact on those of the other companies in the supply chain, meaning that if one company fails to fulfill the demands required, it will affect the related companies and obviously will put them in jeopardy in terms of customers trust and the cost they would have to spend. Therefore, improving supply chain management is really attractive for those companies looking to efficiently improve their customer satisfaction. Apte and Viswanathan (2000) stated that distribution process is responsible for 30% of an item price and this is the reason why there are a lot of companies trying their very best to develop new distribution strategies in order to manage their product flow in efficient manner. Cross docking is definitely one of those strategies people believe to be an efficient strategy to minimize inventory and to reduce cycle times. Apte and Viswanathan (2000) also defined cross docking as the continuous process to the final destination through the cross-dock storing products and materials in the distribution center. When cross-docking...

Words: 1829 - Pages: 8

Free Essay

The Research of Robot Path Planning System

...The Research of Robot Path Planning System Keqing LIN College of Information Science and Engineering, Northeastern University, P. R. China Abstract: First we analyze all of the aspects of the algorithm in detail, including environmental modeling, path initialization, the fitness function design, the operator design, the analysis and selection of algorithm parameters. Then, use the MATLAB write, simulate and debug the program, continually analyze the simulation result in static environment. Simulation results showed that genetic simulated annealing algorithm in a variety of obstacles environment can plan out an optimal or near-optimal path effectively, which demonstrate the effectiveness of the algorithm. Key words: Path planning、Genetic algorithms、Simulated annealing algorithms Introduction Robot is the agent which can stay in the physical state, is a automatic or semi-automatic machine to perform work. It can be perceived by the sensor surroundings in the surrounding environment to make certain reactions. Robot is the popular trend of modern scientific and technological research in the 21st century which will increasingly play an important role in reflecting its importance. Since the invention of the world's first generation of robots, robots applications in various fields widely, the ability to interact with the environment are increasing. Robots need to focus on the following issues specially, namely: determine where it is, where to go, how to get. The third problem...

Words: 966 - Pages: 4

Free Essay

Generic Algorithim for Travelling Salesman

...Introduction TSP (Travelling salesman problem) is an optimization problem that it is difficult to solve using classical methods. Different Genetic Algorithm (GA) have been right to solve the TSP each with advantages and disadvantages (Davis, 2005) In this research paper, I highlight a new algorithm by merging different genetic Algorithm results to the better solution for TSP. In amalgam algorithm, appropriateness of algorithm and traveled distance for TSP has been considered. Results obtained suggest that it does not quickly establish in the local optimum and enjoys a good speed for an inclusive answer (Fogel, 2010). New methods such as GAs, refrigeration algorithms, Artificial Neural Networks, and ACO (Ant Colony Optimization) to solve TSP problem, in recent past have been suggested. Both ACO and GAs is centered on repetitive (Goldenberg, 2005) ACO system was unfilled for the first time by Dorigoat al. to solve TSP. In ACO algorithms, people work together to find the solution. In collective intelligence algorithms, it uses the real life of creatures without putting in consideration the complex mechanisms in run their day to day life in all aspects as best as possible. GA is an iterative procedure that contains a population of individuals or chromosomes. Coding of randomly or heuristic by a string of symbols as a gene in possible solution is done. All possible solution in this search space is examined. When search space is large, GAs usually are used. People can select an...

Words: 3446 - Pages: 14

Premium Essay

Nt1310 Unit 1 Lab Report

...3.4. PARTICLE SWARM OPTIMIZATION PSO was developed by Kennedy and Eberhart. The PSO is inspired by the social behavior of a flock of migrating birds trying to reach an unknown destination. In PSO, each solution is a ‘bird’ in the flock and is referred to as a ‘particle’. A particle is analogous to a chromosome (population member) in GAs. As opposed to GAs, the evolutionary process in the PSO does not create new birds from parent ones. Rather, the birds in the population only evolve their social behavior and accordingly their movement towards a destination [10]. Physically, this mimics a flock of birds that communicate together as they fly. Each bird looks in a specific direction, and then when communicating together, they identify the bird that is in the best location. Accordingly, each bird speeds towards the best bird using a velocity that depends on its current position. Each bird, then, investigates the search space from its new local position, and the process repeats until the flock reaches a desired destination. It is important to note that the process involves both social interaction and intelligence so that birds learn from their own experience (local search) and also from the experience of others around them (global search) [1]. 3.4.1 Comparison Between Genetic Algorithm and Particle Swarm Optimization In PSO, instead of using more traditional genetic operators, each particle (individual) adjusts its "flying" according to its own flying experience and its companions'...

Words: 614 - Pages: 3

Premium Essay

An Iterated Dynasearch Algorithm for the Single-Machine Total Weighted Tardiness Scheduling Problem

...An Iterated Dynasearch Algorithm for the Single-Machine Total Weighted Tardiness Scheduling Problem Faculty of Mathematical Studies, University of Southampton, Southampton, SO17 1BJ, UK Faculty of Mathematical Studies, University of Southampton, Southampton, SO17 1BJ, UK Department of Decision and Information Sciences, Rotterdam School of Management, Erasmus University, P.O. Box 1738, 3000 DR Rotterdam, The Netherlands Richard.Congram@paconsulting.com • C.N.Potts@maths.soton.ac.uk • S.Velde@fac.fbk.eur.nl Richard K. Congram • Chris N. Potts • Steef L. van de Velde T his paper introduces a new neighborhood search technique, called dynasearch, that uses dynamic programming to search an exponential size neighborhood in polynomial time. While traditional local search algorithms make a single move at each iteration, dynasearch allows a series of moves to be performed. The aim is for the lookahead capabilities of dynasearch to prevent the search from being attracted to poor local optima. We evaluate dynasearch by applying it to the problem of scheduling jobs on a single machine to minimize the total weighted tardiness of the jobs. Dynasearch is more effective than traditional first-improve or best-improve descent in our computational tests. Furthermore, this superiority is much greater for starting solutions close to previous local minima. Computational results also show that an iterated dynasearch algorithm in which descents are performed a few random moves away from previous...

Words: 11016 - Pages: 45

Free Essay

Artificial Neural Network for Biomedical Purpose

...ARTIFICIAL NEURAL NETWORKS METHODOLOGICAL ADVANCES AND BIOMEDICAL APPLICATIONS Edited by Kenji Suzuki Artificial Neural Networks - Methodological Advances and Biomedical Applications Edited by Kenji Suzuki Published by InTech Janeza Trdine 9, 51000 Rijeka, Croatia Copyright © 2011 InTech All chapters are Open Access articles distributed under the Creative Commons Non Commercial Share Alike Attribution 3.0 license, which permits to copy, distribute, transmit, and adapt the work in any medium, so long as the original work is properly cited. After this work has been published by InTech, authors have the right to republish it, in whole or part, in any publication of which they are the author, and to make other personal use of the work. Any republication, referencing or personal use of the work must explicitly identify the original source. Statements and opinions expressed in the chapters are these of the individual contributors and not necessarily those of the editors or publisher. No responsibility is accepted for the accuracy of information contained in the published articles. The publisher assumes no responsibility for any damage or injury to persons or property arising out of the use of any materials, instructions, methods or ideas contained in the book. Publishing Process Manager Ivana Lorkovic Technical Editor Teodora Smiljanic Cover Designer Martina Sirotic Image Copyright Bruce Rolff, 2010. Used under license from Shutterstock.com First published March, 2011 Printed in...

Words: 43079 - Pages: 173

Premium Essay

Is Vct

...MASTER OF TECHNOLOGY ADVANCED ELECTIVES SELECTION For Semester II 2014/2015 ATA/SE-DIP/TS-11/V1.34 Master of Technology in Software /Knowledge Engineering and Enterprise Business Analytics Table of Contents. MTECH ADVANCED ELECTIVES 1. INTRODUCTION. 1.1 Overview. 1.2 Courses. 1.3 Assessment. 1.4 Elective Selection Process. 2 2 2 2 3 3 2. SCHEDULE FOR ADVANCED ELECTIVES OFFERED DURING SEMESTER II 2014/2015. 2.1 MTech SE and KE Students. 2.2 MTech EBAC Students. 5 5 9 3. CURRICULUM. 12 4. DESCRIPTION OF COURSES. 4.1 Department of Electrical & Computer Engineering. 4.2 School of Computing. 4.3 Institute of Systems Science. 4.4 Department of Industrial & Systems Engineering. 4.5 Division of Engineering & Technology Management. 12 15 23 31 32 34 ATA/SE-DIP/TS-11/V1.34 page 1 of 35 Master of Technology in Software /Knowledge Engineering and Enterprise Business Analytics MASTER OF TECHNOLOGY Advanced Electives 1. INTRODUCTION 1.1 Overview All students that expect to have passed four core courses and eight basic electives after completing the scheduled examinations in November, and also have or expect to pass their project/internship, will be entitled to commence their Advanced Electives in NUS Semester II 2014/2015, which starts on 12 January 2015. However, it should be noted that a student’s registration for the Advanced Electives will be withdrawn if they either: 1. 2. 3. 4. 5. Fail any elective examination in November. Do not successfully...

Words: 15607 - Pages: 63

Premium Essay

Design of Modern Hueristics

...Natural Computing Series Series Editors: G. Rozenberg Th. Bäck A.E. Eiben J.N. Kok H.P. Spaink Leiden Center for Natural Computing Advisory Board: S. Amari G. Brassard K.A. De Jong C.C.A.M. Gielen T. Head L. Kari L. Landweber T. Martinetz Z. Michalewicz M.C. Mozer E. Oja G. P˘ un J. Reif H. Rubin A. Salomaa M. Schoenauer H.-P. Schwefel C. Torras a D. Whitley E. Winfree J.M. Zurada For further volumes: www.springer.com/series/4190 Franz Rothlauf Design of Modern Heuristics Principles and Application Prof. Dr. Franz Rothlauf Chair of Information Systems and Business Administration Johannes Gutenberg Universität Mainz Gutenberg School of Management and Economics Jakob-Welder-Weg 9 55099 Mainz Germany rothlauf@uni-mainz.de Series Editors G. Rozenberg (Managing Editor) rozenber@liacs.nl Th. Bäck, J.N. Kok, H.P. Spaink Leiden Center for Natural Computing Leiden University Niels Bohrweg 1 2333 CA Leiden, The Netherlands A.E. Eiben Vrije Universiteit Amsterdam The Netherlands ISSN 1619-7127 Natural Computing Series ISBN 978-3-540-72961-7 e-ISBN 978-3-540-72962-4 DOI 10.1007/978-3-540-72962-4 Springer Heidelberg Dordrecht London New York Library of Congress Control Number: 2011934137 ACM Computing Classification (1998): I.2.8, G.1.6, H.4.2 © Springer-Verlag Berlin Heidelberg 2011 This work is subject to copyright. All rights are reserved, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations...

Words: 114592 - Pages: 459

Free Essay

Nit-Silchar B.Tech Syllabus

...NATIONAL INSTITUTE OF TECHNOLOGY SILCHAR Bachelor of Technology Programmes amï´>r¶ JH$s g§ñWmZ, m¡Úmo{ à VO o pñ Vw dZ m dY r V ‘ ñ Syllabi and Regulations for Undergraduate PROGRAMME OF STUDY (wef 2012 entry batch) Ma {gb Course Structure for B.Tech (4years, 8 Semester Course) Civil Engineering ( to be applicable from 2012 entry batch onwards) Course No CH-1101 /PH-1101 EE-1101 MA-1101 CE-1101 HS-1101 CH-1111 /PH-1111 ME-1111 Course Name Semester-1 Chemistry/Physics Basic Electrical Engineering Mathematics-I Engineering Graphics Communication Skills Chemistry/Physics Laboratory Workshop Physical Training-I NCC/NSO/NSS L 3 3 3 1 3 0 0 0 0 13 T 1 0 1 0 0 0 0 0 0 2 1 1 1 1 0 0 0 0 4 1 1 0 0 0 0 0 0 2 0 0 0 0 P 0 0 0 3 0 2 3 2 2 8 0 0 0 0 0 2 2 2 2 0 0 0 0 0 2 2 2 6 0 0 8 2 C 8 6 8 5 6 2 3 0 0 38 8 8 8 8 6 2 0 0 40 8 8 6 6 6 2 2 2 40 6 6 8 2 Course No EC-1101 CS-1101 MA-1102 ME-1101 PH-1101/ CH-1101 CS-1111 EE-1111 PH-1111/ CH-1111 Course Name Semester-2 Basic Electronics Introduction to Computing Mathematics-II Engineering Mechanics Physics/Chemistry Computing Laboratory Electrical Science Laboratory Physics/Chemistry Laboratory Physical Training –II NCC/NSO/NSS Semester-4 Structural Analysis-I Hydraulics Environmental Engg-I Structural Design-I Managerial Economics Engg. Geology Laboratory Hydraulics Laboratory Physical Training-IV NCC/NSO/NSS Semester-6 Structural Design-II Structural Analysis-III Foundation Engineering Transportation Engineering-II Hydrology &Flood...

Words: 126345 - Pages: 506

Free Essay

Deep Learning Wikipedia

...Deep Learning more at http://ml.memect.com Contents 1 Artificial neural network 1 1.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2.1 Improvements since 2006 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.3.1 Network function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.3.2 Learning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.3.3 Learning paradigms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.3.4 Learning algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.4 Employing artificial neural networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.5 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.5.1 Real-life applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.5.2 Neural networks and neuroscience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.6 Neural network software ...

Words: 55759 - Pages: 224

Premium Essay

Fundamental of Strategy

...gerry JoHnson KeVan sCHoles rICHard WHIttIngton Fundamentals oF strategy ACCESS CODE INSIDE unlock valuable online learning resources Once opened this pack cannot be returned for a refund Welcome to FUNDAMENTALS OF STRATEGY Strategy is a fascinating subject. It’s about the overall direction of all kinds of organisations, from multinationals to entrepreneurial start-ups, from charities to government agencies, and many more. Strategy raises the big questions about these organisations – how they grow, how they innovate and how they change. As a manager of today or of tomorrow, you will be involved in influencing, implementing or communicating these strategies. Our aim in writing Fundamentals of Strategy is to give you a clear understanding of the fundamental issues and techniques of strategy, and to help you get a great final result in your course. Here’s how you might make the most of the text: ● Focus your time and attention on the fundamental areas of strategy in just 10 carefully selected chapters. Read the illustrations and the case examples to clarify your understanding of how the concepts of strategy translate into an easily recognisable, real-world context. Follow up on the recommended readings at the end of each chapter. They’re specially selected as accessible and valuable sources that will enhance your learning and give you an extra edge in your course work. KEY CONCEPT AUDIO SUMMARY ● ● Also, look out for the Key Concepts and Audio Summary icons...

Words: 129967 - Pages: 520