Presentation is loading. Please wait.

Presentation is loading. Please wait.

Particle Swarm Optimization with Partial Search To Solve TSP

Similar presentations


Presentation on theme: "Particle Swarm Optimization with Partial Search To Solve TSP"— Presentation transcript:

1 Particle Swarm Optimization with Partial Search To Solve TSP
M. A. H. Akhand, Shahina Akter, S. Sazzadur Rahman and M. M. Hafizur Rahman

2 Introduction to PSO Particle Swarm Optimization (PSO) is a population based optimization technique on metaphor of social behavior of flocks of birds and/or schools of fishes. PSO includes elements of exploration and exploitation (or local and global search) and found effective for function optimization. PSO recently studied to solve combinatorial problems such as Traveling Salesman Problem (TSP).

3 Position Change in PSO In PSO, each Particle changes position in every iteration calculating velocity based on own previous best position and best particle’s position. Velocity Vid(t)= ω*Vid (t-1)+η1*rand()* ( Pid − Xid )+η2*rand()* ( Pig − Xid ) New position Xid (t)= Xid(t-1) + Vid Where, ω = the inertia factor Xid = position of the particle Pid = best solution of particle (local best) Pig = global best solution of all the particles. η1*rand() and η2*rand() are weight determining the influence of Pid and Pig

4 Position Change in PSO Xi(t+1) Vi Vi(t+1) Pig Pid Xi
Xi = current position of the particle Vi = velocity of the particle Pid = best solution of particle (local best) Pig = global best solution of all the particles.

5 PSO simulation(Initial state)

6 After 5 Generation

7 After 10 Generation

8 After 15 Generation

9 After 30 Generation

10 After 50 Generation

11 After 100 Generation

12 After 500 Generation

13 PSO for TSP PSO found effective for function optimization and recently studied to solve combinatorial problems such as Traveling Salesman Problem (TSP). Every particle in PSO is considered as a complete tour for solving TSP. The velocity is termed as Swap Sequence (SS) of several Swap Operators (SOs). A SS may define as SS= (SO1, SO2, SO3... SOn) . A SO indicates two positions in the tour that might be swap. PSO representation for TSP, : Xi (t) = Xi (t-1) +Vi (t) Vi (t) = Vi (t-1) α( Pid (t-1) − Xi (t-1) ) β (Pig (t-1) − Xi (t-1) ) The operator means to merge two SSs into a new SS. All swap operators of a SS are applied maintaining order on a particle and gives a new tour.

14 Swap Operator in Detail
Suppose a tour of five cities is S= (l, 2, 3, 5, 4). For Swap Operator SO (1, 2), the new tour S’ is: S'= S + SO (1, 2) = (1, 5, 3, 2, 4) + (1, 2) = (5, 1, 3, 2, 4) Here meaning of ‘+’ is to conceive swap operator and change the position of cities in the solution indicated in the operator. A Swap Sequence (SS) is set of SOs. SS= (SO1, SO2, SO3,... SOn). If S2 =S1+SS 12 = S1 + (SO1, SO2, SO3,... Son) then SS 12= S2 -S1 = (SO1, SO2, SO3,... SOn) N.B.: Different SSs may produce same new solution acting on a solution.

15 New Tour applying SS based Velocity
5 4 3 1 8 6 2 9 7 10 5 4 3 1 8 6 2 9 7 10 Vi (t) = (4,9),(1,7),(2,7),(3,9). Vi (t) = (4,9),(1,7),(2,7),(3,9). Vi (t) = (4,9),(1,7),(2,7),(3,9). Vi (t) = (4,9),(1,7),(2,7),(3,9). Vi (t) = (4,9),(1,7),(2,7),(3,9). ∫(x) 3 7 6 9 2 4 10 5 8 1 3 7 6 8 2 4 10 5 9 1 10 7 6 8 2 4 3 5 9 1 10 3 6 8 2 4 7 5 9 1 ∫(x) 10 3 9 8 2 4 7 5 6 1 10 3 9 8 2 4 7 5 6 1 ∫(x) All the SOs of the velocity SS are applied to get new tour. Implementation of every SO gives a new tour and partial implementation of velocity SS may give better tour

16 Motivation to PSO with Partial Search
5 4 3 1 8 6 2 9 7 10 5 4 3 1 8 6 2 9 7 10 5 4 3 1 8 6 2 9 7 10 5 4 3 1 8 6 2 9 7 10 5 4 3 1 8 6 2 9 7 10 Vi (t) = (4,9),(1,7),(2,7),(3,9). Vi (t) = (4,9),(1,7),(2,7),(3,9). Vi (t) = (4,9),(1,7),(2,7),(3,9). Vi (t) = (4,9),(1,7),(2,7),(3,9). Vi (t) = (4,9),(1,7),(2,7),(3,9). ∫(x) 3 7 6 9 2 4 10 5 8 1 ∫(x) 3 7 6 8 2 4 10 5 9 1 ∫(x) 10 7 6 8 2 4 3 5 9 1 ∫(x) 10 7 6 8 2 4 3 5 9 1 ∫(x) 10 3 6 8 2 4 7 5 9 1 10 3 9 8 2 4 7 5 6 1 ∫(x) Partial implementation velocity SS give better tour. In PSOPS evaluation is made after applying every SO of velocity SS and final is partial SS which give best tour.

17 Equations for PSOPS Xi (t) = Xi (t-1) +Vi (t)
Vi (t) = Vi (t-1) α( Pid (t-1) − Xi (t-1) ) β (Pig (t-1) − Xi (t-1) ) Suppose Vi(t)= SO1, SO2,……SOn then X1i(t) = Xi(t-1)+SO1 ; X2i(t) = X1i(t) +SO2= Xi(t-1)+SO1 + SO2 Xni(t) = Xn-1i(t) +SOn Xi(t) = Xji(t) where Xji(t) belongs minimum Tour Cost among X1i(t), X2i(t) .. Xji(t) .. Xni(t). Velocity Considered Vi(t) = Xi(t) - Xi(t-1) (9)

18 Proposed PSO with Partial Search (PSOPS) algorithm
Initialize particles with random tours. Calculate fitness of each particle and copy as Pid; identify Pig in the population. For each particle Calculate tentative velocity V’i(t) using Eq. 7. Calculate new solution (i.e., tour) Xi(t) using Eq. 8. Calculate final velocity Vi(t) using Eq. 9. Update Pid with current new solution (i.e., tour) if new one is better than exiting Pig Update Pig if there is a new best solution, which is superior to Pig. If stopping criteria reach then take Pig as a solution; otherwise go to Step 2. PSO with Partial Search (PSOPS) algorithm for TSP.

19 Experimental Results on Benchmark Problems
Tour cost comparison among GA, PSO and PSOPS for benchmark TSP problems. Problem GA PSO PSOPS burma14 32.49 33.02 30.95 eil51 860.71 870.23 768.18 berlin52 eil76 kroA100 kroA200 For a method, the results are the average of five independent runs with population size 100 and number of generation 500. PSOPS is shown to achieve better results than other methods for any problem.

20 Analysis: Tour Cost Vs Generation for Burma14 problem
PSOPS converge rapidly with respect to PSO and GA

21 Analysis: Req. Time vs Generation for Burma14 problem
PSO and PSOPS require similar time that is less than GA

22 Conclusion A Partial Search option is explained and investigated for PSO for solving TSP. In proposed PSO with Partial Search (PSOPS) tentative velocity is calculated and tour cost is measured after applying every Swap Operator (SO) of the tentative velocity Swap Sequence (SS). Final velocity is part of SS that gives best tour. The PSOPS algorithm produces optimal solution within a minimal time than standard PSO and Genetic Algorithm in solving benchmark TSPs.

23 Thank You All


Download ppt "Particle Swarm Optimization with Partial Search To Solve TSP"

Similar presentations


Ads by Google