SlideShare una empresa de Scribd logo
1 de 32
Descargar para leer sin conexión
Solving Quadratic Assignment Problems (QAP)
using Ant Colony System
Ajay S. Bidyarthy , Vivek Gupta
09012305 , 09010367
April 15, 2013
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Aim and Motivation
Aim:
Solution to Quadratic Assignment Problems (QAP) using Ant
Colony System
Motivation
The quadratic assignment problem (QAP) is one of the most
difficult problems in NP-hard class.
It has applications in several areas such as:
Opearional Research
Parallel and Distributed Computing and
Combinatorial data Analysis
Some famous combinatorial optimization problems such as
TSP, maximal clique, isomorphism and graph partitioning can
be formulated as a QAP.
In this project, we use a well known heuristic algorithm, the
ant colony system, to solve some of the real applicable QAP.
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Survey for the quadratic assignment problem in the
existing literature
The QAP was introduced by Koopmans and Beckmann in
1957 as a mathematical model for the location of indivisible
economical activities
In 1972, Dickey and Hopkins used QAP for assignment of
buildings in University campus.
In 1974, Francis and White used QAP to develop a decision
framework for assigning new facilities.
In 1976, Geoffrion and Graves used QAP for solving
scheduling problems.
In 1978, krarup and Pruzan used QAP in archeology.
In 1987, Bokhari used QAP in parallel and distrubuted
computing.
In 2003, Rabak and Sichman used QAP in placement of
electronic components.
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Problem formulation and research work
Identifying a permutation matrix X of dimension n × n (whose
elements Xij are 1 if activity j is assigned to location i and 0
in the other cases) such that:
min z =
n
i,j=1
n
h,k=1
dihfjkXij Xhk
Subject to
n
i=1
Xij = 1 for j = 1, 2, 3, ..., n
n
j=1
Xij = 1 for i = 1, 2, 3, ..., n
Xij ∈ (0, 1) for i, j = 1, 2, 3, ..., n (1)
Where dih ∈ D distance matrix and fjk ∈ F flow matrix.
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Problem formulation and research work
ACS have been applied to various combinatorial optimization
problems.
ACS is competitve with other nature inspired algorithms such
as particle swarm optimization, simulated annealing and
evolutionary computation algorithms.
The running time of ACS is O(mn2k), which is much better
for big graphs than the recursive solution O(n!)3 where n is
the number of cities that may be visited by m ants for k
cycles.
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Problem formulation and research work
ACS have been applied to various combinatorial optimization
problems.
ACS is competitve with other nature inspired algorithms such
as particle swarm optimization, simulated annealing and
evolutionary computation algorithms.
The running time of ACS is O(mn2k), which is much better
for big graphs than the recursive solution O(n!)3 where n is
the number of cities that may be visited by m ants for k
cycles.
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
QAP to SBRP Formulation
School Bus Routing Problem (SBRP)
QAP to SBRP
SBRP objectve
Implementation assumptions
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Ant Colony System Algorithm
We assume that ants travel from bus stop r to bus stop s.
Each edge on the graph has length δ(r, s), and a pheromone
measure,τ(r, s).This pheromone measure is updated every
time ant walks over this edge.
: How ants exploit pheromone to find a shortest path
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Ant Colony System Algorithm continue...
Transition Rule
s =
arg maxu∈Jk (r) {[τ(r, u)]µ[η(r, u)]β} if q < q0
pk(r, s) otherwise
(2)
Where
Jk(r) is the set of cities that remain to be visited by ant k
positioned in city r and η(r, u) = 1/δ(r, u)
[µ, β] are parameters that set the relative importance of
pheromone vs. distance
q0 is a constant parameter, defined by the range (0 < q0 < 1),
which is selected to establish the exploitation vs. exploration.
q = is a random number defined by the range (0 < q < 1)
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Ant Colony System Algorithm continue...
pk(r, s) =



[τ(r,s)]µ[η(r,s)]β
u∈Jk (r)[τ(r,u)]µ[η(r,u)]β if s ∈ Jk(r)
0 otherwise
(3)
Where
Pk(r, s) is the chance of city s to be chosen by ant k
positioned in bus stop r
Since the pheromone on the edge is multiplied by η, which
depends on δ, better odds are given to shorter edges with
more pheromone.
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Ant Colony System Algorithm continue...
After each ant relocation step, the pheromone on all edges is
updated according to a local pheromone-updating rule given
by:
τ(r, s) = ((1 − ρ) × τ(r, s) + ρ × ∆τ(r, s)) (4)
Where
ρ is a parameter defined in the range (0 < ρ < 1), describes
the local evaporation of pheromone
∆τ(r, s) is the sum of all pheromone left by ants that used
this edge in their last step
Normally ρ is fixed during the path search. An ant using edge
(r, s), normally leaves 1/δ(r, s) pheromone on the edge
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Ant Colony System Algorithm continue...
Once all ants have completed a tour, a global
pheromone-updating rule is applied. The global updating rule
is described by the equation:
τ(r, s) = ((1 − α) × τ(r, s) + α × ∆τ(r, s) (5)
Where
α is the global evaporation parameter defined by the range
(0 < α < 1).
∆τ(r, s) =
1
length of global best tour If (r, s) belongs to this global be
0 otherwise
(6)
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
ACO for SBRP Implementation
Show code
Dummy input data
output
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Benchmark Algorithm and Problems
Algorithms
Genetic Algorithm
Particle Swarm Optimization
Evolutionary Algorithm
Simulated Annealing
Problems
Travelling Salesman Problem
Vehicle Routing problems
Time tabling problem
Campus designing problem
Scheduling problems
Elevator Problem
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
How Ants Find a Shortest Path
: How ants exploit pheromone to find a shortest path
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Running time complexity
Assuming that n is the number of cities that may be visited by m
ants for k cycles.
Every ants has to decide among n cities, using probability function,
this requires n calculations. Thus for all ants combined, one step
requires m × n calculations.
To complete 1 cycle, one ant must go through all n cities. This
requires m × n × n calculations for each cycle.
Therefore the running time is O(mn2k), which is much better for
big graphs than the recursive solution - O(n!)3.
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
ACO for QAP
Consider the QAP of order 8
: Position of the units in the three buildings available
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Distance Flow Matrix
DF =












0 1 2 3 1 2 3 4
5 0 1 2 2 1 2 3
2 3 0 1 3 2 1 2
4 0 0 0 4 3 2 1
1 2 0 5 0 1 2 3
0 2 0 2 10 0 1 2
0 2 0 2 0 5 0 1
6 0 5 10 0 1 10 0












For ants = 5, µ = −1 (weight of pheromone), β = 1 (weight of
heuristic info), ρ = 0.9 (evaporation parameter), Q = 10
(Constatnt for pheromone update).
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Iteration to Solution
Figure 4 shows a ACO solution for the QAP input matrix shown
above, this is a sub optimal solution at 118 whereas the ideal
solution is 107.
10 20 30 40 50 60 70 80 90 100
115
120
125
130
135
140
145
150
cost vs. iteration
costindistance*flow
iteration
: Typical Iteration to Solution
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Demonstration of local and global optimization
0 20 40 60 80 100 120 140 160 180 200
105
110
115
120
125
130
200 trial comparision
costindistance/flow
trial
: Comparison with the number of ants = number of nodes (8)
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Demonstration of local and global optimization
0 20 40 60 80 100 120 140 160 180 200
105
110
115
120
125
130
200 trial comparisioncostindistance/flow
trial
: Comparison with number of ants fixed at four
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Results for QAP
Name n given opt our opt time max iter
chr12a 12 9552 10633 5.1224 2000
chr12c 12 11156 10119 5.1951 2000
esc16b 16 292 150 0.0736 2000
esc16d 16 16 31 0.0312 2000
nug15 15 1150 667 6.9119 2000
scr12 12 31410 19111 5.0277 2000
scr15 15 51140 35737 6.9073 2000
chr15a 15 9896 13562 6.8983 2000
Table: Results for standard QAP problems
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
ACO for SBRP
Radial input
: Bus Stops are aligned radially outwards from the school on three
radials
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
ACO for SBRP
Radial input
school_id(down)/bus_s
top_id(right)
2 3 4 5 6 7 8 9 10 11 12 13
1 4 4 4 4 4 4 4 4 4 4 4 4
Bus stop Vs. students matrix
1 2 3 4 5 6 7 8 9 10 11 12 13
1 0 10 7.5 5 2.5 10 7.5 5 2.5 10 7.5 5 2.5
2 10 0 2.5 5 7.5 10 10 10 10 10 10 10 10
3 7.5 2.5 0 2.5 5 10 7.5 7.5 7.5 10 7.5 7.5 7.5
4 5 5 2.5 0 2.5 10 7.5 5 5 10 7.5 5 5
5 2.5 7.5 5 2.5 0 10 7.5 5 2.5 10 7.5 5 2.5
6 10 10 10 10 10 0 2.5 5 7.5 10 10 10 10
7 7.5 10 7.5 7.5 7.5 2.5 0 2.5 5 10 7.5 7.5 7.5
8 5 10 7.5 5 5 5 2.5 0 2.5 10 7.5 5 5
9 2.5 10 7.5 5 2.5 7.5 5 2.5 0 10 7.5 5 2.5
10 10 10 10 10 10 10 10 10 10 0 2.5 5 7.5
11 7.5 10 7.5 7.5 7.5 10 7.5 7.5 7.5 2.5 0 2.5 5
12 5 10 7.5 5 5 10 7.5 5 5 5 2.5 0 2.5
13 2.5 10 7.5 5 2.5 10 7.5 5 2.5 7.5 5 2.5 0
Distance Matrix of Bus Stops
: Bus stops Vs. students matrix and distance matrix of bus stops
(radial)
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
ACO for SBRP
Radial output
Output for bus 1
Cheapest Cost for bus id 1 is 270. Bus id 1 is assigned to bus stops
in following order: − > 5− > 2− > 6− > 10− > 9− > 4− >
13− > 3− > 7− > 12− > 8− > 11− > 1. CPU time taken (in
Seconds): 1.8778.
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
ACO for SBRP
Radial output
Figure 9 represents cost in distance multiplied by flow Vs.
iterations.
: Cost in distance multiplied by flow Vs. iterations
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
ACO for SBRP
Clustered input
: Bus Stops are clustered in 4 clusters around the school in all
directions
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
ACO for SBRP
Clustered input
school_id(down)/bus_s
top_id(right)
2 3 4 5 6 7 8 9 10 11 12 13
1 4 4 4 4 4 4 4 4 4 4 4 4
Bus stop Vs. students matrix
Distance Matrix of Bus Stops
1 2 3 4 5 6 7 8 9 10 11 12 13
1 0 3 4 6 5 11 9 8 10 4 5 6 5
2 3 0 1 3 2 10 8 7 9 7 8 9 8
3 4 1 0 2 3 9 7 8 10 8 9 10 9
4 6 3 2 0 1 11 9 10 12 10 11 12 11
5 5 2 3 1 0 12 10 9 11 9 10 11 10
6 11 10 9 11 12 0 2 3 1 11 10 11 12
7 9 8 7 9 10 2 0 1 3 9 8 9 10
8 8 7 8 10 9 3 1 0 2 9 8 9 10
9 10 9 10 12 11 1 3 2 0 11 10 11 12
10 4 7 8 10 9 11 9 9 11 0 1 2 1
11 5 8 9 11 10 10 8 8 10 1 0 1 2
12 6 9 10 12 11 11 9 9 11 2 1 0 1
13 5 8 9 11 10 12 10 10 12 1 2 1 0
: Bus stops Vs. students matrix and distance matrix of bus stops
(clustered)
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
ACO for SBRP
Clustered output
Output for bus 1
Cheapest Cost for bus id 1 is 300. Bus id 1 is assigned to bus stops
in following order: − > 2− > 6− > 9− > 4− > 5− > 12− >
13− > 11− > 10− > 7− > 8− > 3− > 1. CPU time taken (in
Seconds): 1.9089.
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
ACO for SBRP
clustered output
Figure 12 represents cost in distance multiplied by flow Vs.
iterations.
: Cost in distance multiplied by flow Vs. iterations
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Summary and Future Work
Summary
Successfully applied the Ant colony System to the Quadratic
Assignment Problem (QAP) and School Bus Routing Problem
(SBRP).
The results obtained using ACO are better than the results
obtained using standard QAP approach in some cases.
For SBRP, three test cases were considered i.e. radial ,
clustered and random arrangement of bus stops.
For radial arrangement of bus stops, the optimal route
obtained are radial, whereas for clustered arrangement of bus
stops, the optimal routes are clustered.
Future Work
As future work ACO can be applied to distributed environment
to further increase the efficiency of the algorithm.
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
Koopmans, T.C. and Beckmann, M.J. (1957). Assignment
problems and the location of economic activities.
Econometrica, 25, 53-76.
Francis, R.L. and White, J.A. (1974). Facility layout and
location: An analytical approach. Prentice-Hall, Englewood
Cliffs, New Jersey
Krarup, J. and Pruzan, P.M. (1978). Computer-aided layout
design. Mathematical Programming Study, 9, 75-94.
Hubert, L. and Schulz, J. (1976). Quadratic assignment as a
general data analysis strategy.British Journal of Mathematical
Psychology, 29, 190-241.
Dickey, J.W. and Hopkins, J.W. (1972). Campus building
arrangement using topaz. Transportation Research, 6, 59-68.
Rabak, C.S., Sichman, J.S. (2003). Using A-Teams to
optimize automatic insertion of electronic components,
Advanced Engineering Informatics, 17. (2), 95-106.
Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo

Más contenido relacionado

La actualidad más candente

The Traveling Salesman Problem
The Traveling Salesman ProblemThe Traveling Salesman Problem
The Traveling Salesman Problem
Maryam Alipour
 
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
RahulSharma4566
 
Linear programming using the simplex method
Linear programming using the simplex methodLinear programming using the simplex method
Linear programming using the simplex method
Shivek Khurana
 

La actualidad más candente (20)

The Traveling Salesman Problem
The Traveling Salesman ProblemThe Traveling Salesman Problem
The Traveling Salesman Problem
 
Problems problem spaces and search
Problems problem spaces and searchProblems problem spaces and search
Problems problem spaces and search
 
Sementic nets
Sementic netsSementic nets
Sementic nets
 
Travelling SalesMan Problem(TSP)
Travelling SalesMan Problem(TSP)Travelling SalesMan Problem(TSP)
Travelling SalesMan Problem(TSP)
 
graph theory
graph theory graph theory
graph theory
 
Introduction to Graph and Graph Coloring
Introduction to Graph and Graph Coloring Introduction to Graph and Graph Coloring
Introduction to Graph and Graph Coloring
 
Convex optimization methods
Convex optimization methodsConvex optimization methods
Convex optimization methods
 
DIGITAL COMMUNICATION: ENCODING AND DECODING OF CYCLIC CODE
DIGITAL COMMUNICATION: ENCODING AND DECODING OF CYCLIC CODE DIGITAL COMMUNICATION: ENCODING AND DECODING OF CYCLIC CODE
DIGITAL COMMUNICATION: ENCODING AND DECODING OF CYCLIC CODE
 
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
 
KNOWLEDGE REPRESENTATION ISSUES.ppt
KNOWLEDGE REPRESENTATION ISSUES.pptKNOWLEDGE REPRESENTATION ISSUES.ppt
KNOWLEDGE REPRESENTATION ISSUES.ppt
 
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
 
Travelling Salesman Problem using Partical Swarm Optimization
Travelling Salesman Problem using Partical Swarm OptimizationTravelling Salesman Problem using Partical Swarm Optimization
Travelling Salesman Problem using Partical Swarm Optimization
 
9. chapter 8 np hard and np complete problems
9. chapter 8   np hard and np complete problems9. chapter 8   np hard and np complete problems
9. chapter 8 np hard and np complete problems
 
Lecture 16 memory bounded search
Lecture 16 memory bounded searchLecture 16 memory bounded search
Lecture 16 memory bounded search
 
Linear programming graphical method (feasibility)
Linear programming   graphical method (feasibility)Linear programming   graphical method (feasibility)
Linear programming graphical method (feasibility)
 
Travelling Salesman Problem
Travelling Salesman ProblemTravelling Salesman Problem
Travelling Salesman Problem
 
NP Complete Problems
NP Complete ProblemsNP Complete Problems
NP Complete Problems
 
Coin Change : Greedy vs Dynamic Programming
Coin Change : Greedy vs Dynamic ProgrammingCoin Change : Greedy vs Dynamic Programming
Coin Change : Greedy vs Dynamic Programming
 
np complete
np completenp complete
np complete
 
Linear programming using the simplex method
Linear programming using the simplex methodLinear programming using the simplex method
Linear programming using the simplex method
 

Similar a Solving Quadratic Assignment Problems (QAP) using Ant Colony System

Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...
Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...
Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...
AIRCC Publishing Corporation
 
SLAM of Multi-Robot System Considering Its Network Topology
SLAM of Multi-Robot System Considering Its Network TopologySLAM of Multi-Robot System Considering Its Network Topology
SLAM of Multi-Robot System Considering Its Network Topology
toukaigi
 

Similar a Solving Quadratic Assignment Problems (QAP) using Ant Colony System (20)

An improved ant colony algorithm based on
An improved ant colony algorithm based onAn improved ant colony algorithm based on
An improved ant colony algorithm based on
 
Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...
Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...
Automated Information Retrieval Model Using FP Growth Based Fuzzy Particle Sw...
 
Improving initial generations in pso algorithm for transportation network des...
Improving initial generations in pso algorithm for transportation network des...Improving initial generations in pso algorithm for transportation network des...
Improving initial generations in pso algorithm for transportation network des...
 
Chaotic ANT System Optimization for Path Planning of the Mobile Robots
Chaotic ANT System Optimization for Path Planning of the Mobile RobotsChaotic ANT System Optimization for Path Planning of the Mobile Robots
Chaotic ANT System Optimization for Path Planning of the Mobile Robots
 
MVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priorsMVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priors
 
USING LEARNING AUTOMATA AND GENETIC ALGORITHMS TO IMPROVE THE QUALITY OF SERV...
USING LEARNING AUTOMATA AND GENETIC ALGORITHMS TO IMPROVE THE QUALITY OF SERV...USING LEARNING AUTOMATA AND GENETIC ALGORITHMS TO IMPROVE THE QUALITY OF SERV...
USING LEARNING AUTOMATA AND GENETIC ALGORITHMS TO IMPROVE THE QUALITY OF SERV...
 
Scalable trust-region method for deep reinforcement learning using Kronecker-...
Scalable trust-region method for deep reinforcement learning using Kronecker-...Scalable trust-region method for deep reinforcement learning using Kronecker-...
Scalable trust-region method for deep reinforcement learning using Kronecker-...
 
Robust Image Denoising in RKHS via Orthogonal Matching Pursuit
Robust Image Denoising in RKHS via Orthogonal Matching PursuitRobust Image Denoising in RKHS via Orthogonal Matching Pursuit
Robust Image Denoising in RKHS via Orthogonal Matching Pursuit
 
α Nearness ant colony system with adaptive strategies for the traveling sales...
α Nearness ant colony system with adaptive strategies for the traveling sales...α Nearness ant colony system with adaptive strategies for the traveling sales...
α Nearness ant colony system with adaptive strategies for the traveling sales...
 
Chaotic based Pteropus algorithm for solving optimal reactive power problem
Chaotic based Pteropus algorithm for solving optimal reactive power problemChaotic based Pteropus algorithm for solving optimal reactive power problem
Chaotic based Pteropus algorithm for solving optimal reactive power problem
 
SLAM of Multi-Robot System Considering Its Network Topology
SLAM of Multi-Robot System Considering Its Network TopologySLAM of Multi-Robot System Considering Its Network Topology
SLAM of Multi-Robot System Considering Its Network Topology
 
Q-Metrics in Theory and Practice
Q-Metrics in Theory and PracticeQ-Metrics in Theory and Practice
Q-Metrics in Theory and Practice
 
Q-Metrics in Theory And Practice
Q-Metrics in Theory And PracticeQ-Metrics in Theory And Practice
Q-Metrics in Theory And Practice
 
An Improved Quantum-behaved Particle Swarm Optimization Algorithm Based on Ch...
An Improved Quantum-behaved Particle Swarm Optimization Algorithm Based on Ch...An Improved Quantum-behaved Particle Swarm Optimization Algorithm Based on Ch...
An Improved Quantum-behaved Particle Swarm Optimization Algorithm Based on Ch...
 
Delayed acceptance for Metropolis-Hastings algorithms
Delayed acceptance for Metropolis-Hastings algorithmsDelayed acceptance for Metropolis-Hastings algorithms
Delayed acceptance for Metropolis-Hastings algorithms
 
QTML2021 UAP Quantum Feature Map
QTML2021 UAP Quantum Feature MapQTML2021 UAP Quantum Feature Map
QTML2021 UAP Quantum Feature Map
 
A NEW IMPROVED QUANTUM EVOLUTIONARY ALGORITHM WITH MULTIPLICATIVE UPDATE FUNC...
A NEW IMPROVED QUANTUM EVOLUTIONARY ALGORITHM WITH MULTIPLICATIVE UPDATE FUNC...A NEW IMPROVED QUANTUM EVOLUTIONARY ALGORITHM WITH MULTIPLICATIVE UPDATE FUNC...
A NEW IMPROVED QUANTUM EVOLUTIONARY ALGORITHM WITH MULTIPLICATIVE UPDATE FUNC...
 
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHMTHE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
 
Kolev skalna2018 article-exact_solutiontoa_parametricline
Kolev skalna2018 article-exact_solutiontoa_parametriclineKolev skalna2018 article-exact_solutiontoa_parametricline
Kolev skalna2018 article-exact_solutiontoa_parametricline
 
Strategic Oscillation for Exploitation and Exploration of ACS Algorithm for J...
Strategic Oscillation for Exploitation and Exploration of ACS Algorithm for J...Strategic Oscillation for Exploitation and Exploration of ACS Algorithm for J...
Strategic Oscillation for Exploitation and Exploration of ACS Algorithm for J...
 

Más de Ajay Bidyarthy

Más de Ajay Bidyarthy (9)

Student Database Management System
Student Database Management SystemStudent Database Management System
Student Database Management System
 
Some real life data analysis on stationary and non-stationary Time Series
Some real life data analysis on stationary and non-stationary Time SeriesSome real life data analysis on stationary and non-stationary Time Series
Some real life data analysis on stationary and non-stationary Time Series
 
Skip Graphs and its Applications
Skip Graphs and its ApplicationsSkip Graphs and its Applications
Skip Graphs and its Applications
 
Implementation of parallel randomized algorithm for skew-symmetric matrix game
Implementation of parallel randomized algorithm for skew-symmetric matrix gameImplementation of parallel randomized algorithm for skew-symmetric matrix game
Implementation of parallel randomized algorithm for skew-symmetric matrix game
 
Environmental clearance procedure in India: Principal of Governance
Environmental clearance procedure in India: Principal of GovernanceEnvironmental clearance procedure in India: Principal of Governance
Environmental clearance procedure in India: Principal of Governance
 
DOW JONES INDUSTRIAL AVERAGE Time series Data Analysis: Analysis and Results ...
DOW JONES INDUSTRIAL AVERAGE Time series Data Analysis: Analysis and Results ...DOW JONES INDUSTRIAL AVERAGE Time series Data Analysis: Analysis and Results ...
DOW JONES INDUSTRIAL AVERAGE Time series Data Analysis: Analysis and Results ...
 
Design and Implementation of Parallel and Randomized Approximation Algorithms
Design and Implementation of Parallel and Randomized Approximation AlgorithmsDesign and Implementation of Parallel and Randomized Approximation Algorithms
Design and Implementation of Parallel and Randomized Approximation Algorithms
 
Design and Implementation of Parallel and Randomized Approximation Algorithms
Design and Implementation of Parallel and Randomized Approximation AlgorithmsDesign and Implementation of Parallel and Randomized Approximation Algorithms
Design and Implementation of Parallel and Randomized Approximation Algorithms
 
Optimization Techniques
Optimization TechniquesOptimization Techniques
Optimization Techniques
 

Último

Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
JoseMangaJr1
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
only4webmaster01
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
amitlee9823
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
amitlee9823
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
amitlee9823
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
amitlee9823
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
amitlee9823
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
amitlee9823
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 

Último (20)

Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 

Solving Quadratic Assignment Problems (QAP) using Ant Colony System

  • 1. Solving Quadratic Assignment Problems (QAP) using Ant Colony System Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 April 15, 2013 Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 2. Aim and Motivation Aim: Solution to Quadratic Assignment Problems (QAP) using Ant Colony System Motivation The quadratic assignment problem (QAP) is one of the most difficult problems in NP-hard class. It has applications in several areas such as: Opearional Research Parallel and Distributed Computing and Combinatorial data Analysis Some famous combinatorial optimization problems such as TSP, maximal clique, isomorphism and graph partitioning can be formulated as a QAP. In this project, we use a well known heuristic algorithm, the ant colony system, to solve some of the real applicable QAP. Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 3. Survey for the quadratic assignment problem in the existing literature The QAP was introduced by Koopmans and Beckmann in 1957 as a mathematical model for the location of indivisible economical activities In 1972, Dickey and Hopkins used QAP for assignment of buildings in University campus. In 1974, Francis and White used QAP to develop a decision framework for assigning new facilities. In 1976, Geoffrion and Graves used QAP for solving scheduling problems. In 1978, krarup and Pruzan used QAP in archeology. In 1987, Bokhari used QAP in parallel and distrubuted computing. In 2003, Rabak and Sichman used QAP in placement of electronic components. Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 4. Problem formulation and research work Identifying a permutation matrix X of dimension n × n (whose elements Xij are 1 if activity j is assigned to location i and 0 in the other cases) such that: min z = n i,j=1 n h,k=1 dihfjkXij Xhk Subject to n i=1 Xij = 1 for j = 1, 2, 3, ..., n n j=1 Xij = 1 for i = 1, 2, 3, ..., n Xij ∈ (0, 1) for i, j = 1, 2, 3, ..., n (1) Where dih ∈ D distance matrix and fjk ∈ F flow matrix. Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 5. Problem formulation and research work ACS have been applied to various combinatorial optimization problems. ACS is competitve with other nature inspired algorithms such as particle swarm optimization, simulated annealing and evolutionary computation algorithms. The running time of ACS is O(mn2k), which is much better for big graphs than the recursive solution O(n!)3 where n is the number of cities that may be visited by m ants for k cycles. Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 6. Problem formulation and research work ACS have been applied to various combinatorial optimization problems. ACS is competitve with other nature inspired algorithms such as particle swarm optimization, simulated annealing and evolutionary computation algorithms. The running time of ACS is O(mn2k), which is much better for big graphs than the recursive solution O(n!)3 where n is the number of cities that may be visited by m ants for k cycles. Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 7. QAP to SBRP Formulation School Bus Routing Problem (SBRP) QAP to SBRP SBRP objectve Implementation assumptions Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 8. Ant Colony System Algorithm We assume that ants travel from bus stop r to bus stop s. Each edge on the graph has length δ(r, s), and a pheromone measure,τ(r, s).This pheromone measure is updated every time ant walks over this edge. : How ants exploit pheromone to find a shortest path Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 9. Ant Colony System Algorithm continue... Transition Rule s = arg maxu∈Jk (r) {[τ(r, u)]µ[η(r, u)]β} if q < q0 pk(r, s) otherwise (2) Where Jk(r) is the set of cities that remain to be visited by ant k positioned in city r and η(r, u) = 1/δ(r, u) [µ, β] are parameters that set the relative importance of pheromone vs. distance q0 is a constant parameter, defined by the range (0 < q0 < 1), which is selected to establish the exploitation vs. exploration. q = is a random number defined by the range (0 < q < 1) Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 10. Ant Colony System Algorithm continue... pk(r, s) =    [τ(r,s)]µ[η(r,s)]β u∈Jk (r)[τ(r,u)]µ[η(r,u)]β if s ∈ Jk(r) 0 otherwise (3) Where Pk(r, s) is the chance of city s to be chosen by ant k positioned in bus stop r Since the pheromone on the edge is multiplied by η, which depends on δ, better odds are given to shorter edges with more pheromone. Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 11. Ant Colony System Algorithm continue... After each ant relocation step, the pheromone on all edges is updated according to a local pheromone-updating rule given by: τ(r, s) = ((1 − ρ) × τ(r, s) + ρ × ∆τ(r, s)) (4) Where ρ is a parameter defined in the range (0 < ρ < 1), describes the local evaporation of pheromone ∆τ(r, s) is the sum of all pheromone left by ants that used this edge in their last step Normally ρ is fixed during the path search. An ant using edge (r, s), normally leaves 1/δ(r, s) pheromone on the edge Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 12. Ant Colony System Algorithm continue... Once all ants have completed a tour, a global pheromone-updating rule is applied. The global updating rule is described by the equation: τ(r, s) = ((1 − α) × τ(r, s) + α × ∆τ(r, s) (5) Where α is the global evaporation parameter defined by the range (0 < α < 1). ∆τ(r, s) = 1 length of global best tour If (r, s) belongs to this global be 0 otherwise (6) Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 13. ACO for SBRP Implementation Show code Dummy input data output Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 14. Benchmark Algorithm and Problems Algorithms Genetic Algorithm Particle Swarm Optimization Evolutionary Algorithm Simulated Annealing Problems Travelling Salesman Problem Vehicle Routing problems Time tabling problem Campus designing problem Scheduling problems Elevator Problem Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 15. How Ants Find a Shortest Path : How ants exploit pheromone to find a shortest path Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 16. Running time complexity Assuming that n is the number of cities that may be visited by m ants for k cycles. Every ants has to decide among n cities, using probability function, this requires n calculations. Thus for all ants combined, one step requires m × n calculations. To complete 1 cycle, one ant must go through all n cities. This requires m × n × n calculations for each cycle. Therefore the running time is O(mn2k), which is much better for big graphs than the recursive solution - O(n!)3. Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 17. ACO for QAP Consider the QAP of order 8 : Position of the units in the three buildings available Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 18. Distance Flow Matrix DF =             0 1 2 3 1 2 3 4 5 0 1 2 2 1 2 3 2 3 0 1 3 2 1 2 4 0 0 0 4 3 2 1 1 2 0 5 0 1 2 3 0 2 0 2 10 0 1 2 0 2 0 2 0 5 0 1 6 0 5 10 0 1 10 0             For ants = 5, µ = −1 (weight of pheromone), β = 1 (weight of heuristic info), ρ = 0.9 (evaporation parameter), Q = 10 (Constatnt for pheromone update). Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 19. Iteration to Solution Figure 4 shows a ACO solution for the QAP input matrix shown above, this is a sub optimal solution at 118 whereas the ideal solution is 107. 10 20 30 40 50 60 70 80 90 100 115 120 125 130 135 140 145 150 cost vs. iteration costindistance*flow iteration : Typical Iteration to Solution Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 20. Demonstration of local and global optimization 0 20 40 60 80 100 120 140 160 180 200 105 110 115 120 125 130 200 trial comparision costindistance/flow trial : Comparison with the number of ants = number of nodes (8) Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 21. Demonstration of local and global optimization 0 20 40 60 80 100 120 140 160 180 200 105 110 115 120 125 130 200 trial comparisioncostindistance/flow trial : Comparison with number of ants fixed at four Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 22. Results for QAP Name n given opt our opt time max iter chr12a 12 9552 10633 5.1224 2000 chr12c 12 11156 10119 5.1951 2000 esc16b 16 292 150 0.0736 2000 esc16d 16 16 31 0.0312 2000 nug15 15 1150 667 6.9119 2000 scr12 12 31410 19111 5.0277 2000 scr15 15 51140 35737 6.9073 2000 chr15a 15 9896 13562 6.8983 2000 Table: Results for standard QAP problems Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 23. ACO for SBRP Radial input : Bus Stops are aligned radially outwards from the school on three radials Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 24. ACO for SBRP Radial input school_id(down)/bus_s top_id(right) 2 3 4 5 6 7 8 9 10 11 12 13 1 4 4 4 4 4 4 4 4 4 4 4 4 Bus stop Vs. students matrix 1 2 3 4 5 6 7 8 9 10 11 12 13 1 0 10 7.5 5 2.5 10 7.5 5 2.5 10 7.5 5 2.5 2 10 0 2.5 5 7.5 10 10 10 10 10 10 10 10 3 7.5 2.5 0 2.5 5 10 7.5 7.5 7.5 10 7.5 7.5 7.5 4 5 5 2.5 0 2.5 10 7.5 5 5 10 7.5 5 5 5 2.5 7.5 5 2.5 0 10 7.5 5 2.5 10 7.5 5 2.5 6 10 10 10 10 10 0 2.5 5 7.5 10 10 10 10 7 7.5 10 7.5 7.5 7.5 2.5 0 2.5 5 10 7.5 7.5 7.5 8 5 10 7.5 5 5 5 2.5 0 2.5 10 7.5 5 5 9 2.5 10 7.5 5 2.5 7.5 5 2.5 0 10 7.5 5 2.5 10 10 10 10 10 10 10 10 10 10 0 2.5 5 7.5 11 7.5 10 7.5 7.5 7.5 10 7.5 7.5 7.5 2.5 0 2.5 5 12 5 10 7.5 5 5 10 7.5 5 5 5 2.5 0 2.5 13 2.5 10 7.5 5 2.5 10 7.5 5 2.5 7.5 5 2.5 0 Distance Matrix of Bus Stops : Bus stops Vs. students matrix and distance matrix of bus stops (radial) Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 25. ACO for SBRP Radial output Output for bus 1 Cheapest Cost for bus id 1 is 270. Bus id 1 is assigned to bus stops in following order: − > 5− > 2− > 6− > 10− > 9− > 4− > 13− > 3− > 7− > 12− > 8− > 11− > 1. CPU time taken (in Seconds): 1.8778. Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 26. ACO for SBRP Radial output Figure 9 represents cost in distance multiplied by flow Vs. iterations. : Cost in distance multiplied by flow Vs. iterations Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 27. ACO for SBRP Clustered input : Bus Stops are clustered in 4 clusters around the school in all directions Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 28. ACO for SBRP Clustered input school_id(down)/bus_s top_id(right) 2 3 4 5 6 7 8 9 10 11 12 13 1 4 4 4 4 4 4 4 4 4 4 4 4 Bus stop Vs. students matrix Distance Matrix of Bus Stops 1 2 3 4 5 6 7 8 9 10 11 12 13 1 0 3 4 6 5 11 9 8 10 4 5 6 5 2 3 0 1 3 2 10 8 7 9 7 8 9 8 3 4 1 0 2 3 9 7 8 10 8 9 10 9 4 6 3 2 0 1 11 9 10 12 10 11 12 11 5 5 2 3 1 0 12 10 9 11 9 10 11 10 6 11 10 9 11 12 0 2 3 1 11 10 11 12 7 9 8 7 9 10 2 0 1 3 9 8 9 10 8 8 7 8 10 9 3 1 0 2 9 8 9 10 9 10 9 10 12 11 1 3 2 0 11 10 11 12 10 4 7 8 10 9 11 9 9 11 0 1 2 1 11 5 8 9 11 10 10 8 8 10 1 0 1 2 12 6 9 10 12 11 11 9 9 11 2 1 0 1 13 5 8 9 11 10 12 10 10 12 1 2 1 0 : Bus stops Vs. students matrix and distance matrix of bus stops (clustered) Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 29. ACO for SBRP Clustered output Output for bus 1 Cheapest Cost for bus id 1 is 300. Bus id 1 is assigned to bus stops in following order: − > 2− > 6− > 9− > 4− > 5− > 12− > 13− > 11− > 10− > 7− > 8− > 3− > 1. CPU time taken (in Seconds): 1.9089. Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 30. ACO for SBRP clustered output Figure 12 represents cost in distance multiplied by flow Vs. iterations. : Cost in distance multiplied by flow Vs. iterations Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 31. Summary and Future Work Summary Successfully applied the Ant colony System to the Quadratic Assignment Problem (QAP) and School Bus Routing Problem (SBRP). The results obtained using ACO are better than the results obtained using standard QAP approach in some cases. For SBRP, three test cases were considered i.e. radial , clustered and random arrangement of bus stops. For radial arrangement of bus stops, the optimal route obtained are radial, whereas for clustered arrangement of bus stops, the optimal routes are clustered. Future Work As future work ACO can be applied to distributed environment to further increase the efficiency of the algorithm. Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo
  • 32. Koopmans, T.C. and Beckmann, M.J. (1957). Assignment problems and the location of economic activities. Econometrica, 25, 53-76. Francis, R.L. and White, J.A. (1974). Facility layout and location: An analytical approach. Prentice-Hall, Englewood Cliffs, New Jersey Krarup, J. and Pruzan, P.M. (1978). Computer-aided layout design. Mathematical Programming Study, 9, 75-94. Hubert, L. and Schulz, J. (1976). Quadratic assignment as a general data analysis strategy.British Journal of Mathematical Psychology, 29, 190-241. Dickey, J.W. and Hopkins, J.W. (1972). Campus building arrangement using topaz. Transportation Research, 6, 59-68. Rabak, C.S., Sichman, J.S. (2003). Using A-Teams to optimize automatic insertion of electronic components, Advanced Engineering Informatics, 17. (2), 95-106. Ajay S. Bidyarthy , Vivek Gupta 09012305 , 09010367 Solving Quadratic Assignment Problems (QAP) using Ant Colo