Научная статья на тему 'Practical application of population based ant colony optimization algorithm'

Practical application of population based ant colony optimization algorithm Текст научной статьи по специальности «Математика»

CC BY
152
39
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
ROUTING / SPLIT DELIVERY VEHICLE ROUTING PROBLEM / POPULATION BASED ANT COLONY OPTIMIZATION ALGORITHM / PHEROMONE

Аннотация научной статьи по математике, автор научной работы — Valeeva A. F., Goncharova Yu A.

In this paper we consider the Split Delivery Vehicle Routing Problem, which has a wide practical application. The SDVRP is NP-hard problem. We propose a population based ant colony optimization algorithm for solving the SDVRP. Computational experiments for developed algorithm are reported.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Текст научной работы на тему «Practical application of population based ant colony optimization algorithm»

ISSN 1992-6502 (P ri nt)_

Vol. 17, no. 6 (59), pp. 75-78, 2013.

Vestnik UQA7U

ISSN 2225-2789 (Online) http://journal.ugatu.ac.ru

UDC 004.7

Practical application of population based ant colony optimization algorithm

1 2 a. f. Valeeva , yu. a. Goncharova

1 [email protected], 2 [email protected] Ufa State Aviation Technical University, Russia Submitted 2013, June 19

Abstract. In this paper we consider the Split Delivery Vehicle Routing Problem, which has a wide practical application. The SDVRP is NP-hard problem. We propose a population based ant colony optimization algorithm for solving the SDVRP. Computational experiments for developed algorithm are reported.

Keywords: Routing; Split Delivery Vehicle Routing Problem; Population Based Ant Colony Optimization Algorithm; pheromone.

1. INTRODUCTION

At the present time due to the increased of freight traffic the actual problem is the development of methods for solving the Vehicle Routing Problems, the main objective of which - reducing costs of transportation and delivery of different goods to customers «just in time». Vehicle Routing Problems are key in areas of transportation, relocation and logistics.

The problem of delivery of equipment for building and service of base stations (BSs) of JSC «VimpelCom» company in the republic of Bashkortostan is considered. This problem belongs to a subclass of Vehicle Routing Problems, called Split Delivery Vehicle Routing Problems, SDVRP [2].

SDVRP is considered in many sources, because it has a very wide practical application in various fields of human activity [2]. This problem is a combinatorial problem of discrete optimization which falls into the category of NP-hard problems, meaning that the computational effort required to solve this problem increases exponentially with the problem size. Exact solutions of such problems may be reached only by using search algorithms, which require unacceptable much time. For such problems it is often desirable to obtain approximate solutions, so they can found fat enough and are sufficiently accurate for the purpose. Therefore usually these problems are solving by using various heuristic methods, which rely on some insight into the problem nature.

Population Based Ant Colony Optimization (PACO) algorithm is widely discussed in literature [1, 3-6]. This algorithm was used to solving different problem [4-7].

In this paper we consider the SDVRP, for the solving of which is used P-ACO algorithm.

The paper is organized as follows. In section 2 we provide the problem formulation. In section 4 we present the proposed method for solution. It also includes the experiments in Section 5, the analysis and discussion of the results in Section 6.

2. A MATHEMATICAL FORMULATION

Mathematically [2] the SDVRP can be difined over a weighted graph G=(V,A) with vertex set V={v0,vi,...,vn} and edge set A={(vl,v])/vl,v]e V;i^j}. Depot is represented by a vertex v0, vertex set V=V\{v0} represent n cities and Bss. The traversal cost (also called length) ciJ- of an edge (i,j) e A is supposed to be non-negative. An integer nonnegative demand di is associated with each BS vie V . Rv is the route of vehicle v, each vehicle has a capacity Qe Z+.

For the problem are given the following constraints: 1) the route of each vehicle has to start at finish at the depot v0; 2) the demands of the BSs in equipment must be satisfied; 3) the total length of the route is minimal.

We use the following notations:

xj is a Boolean variable which is equal to 1 if vehicle v travels directly from i to j, and to 0 otherwise,

yiv is the quantity of the demand of I delivered by the v-th vehicle.

The SDVRP can now be formulated as follows:

n n m

min III cyx* (1)

i=0 j=0 v=1

subject to:

n m

EE xv > 1 j = 0,..., n,

i=0 v=1

n n

E xlp - E xP = 0 P = 0,...,n; v = 1,...,m,

i=0

j =0

EE Xj < N-1 v = 1,..., m; S c V-{0} ,

ieS jeS

n

yiv <di E xj i = 1,...,n; j = 1,...,m, j =0

m

E yiv = di i = n,

v=1

n

E yiv ^ Q v = m,

i=1

xI/ e {0,1} i = 0,...,n; j = 0,...,n; v = 1,...,m ,

(2)

(3)

(4)

(5)

(6)

(7)

(8)

yv > 0 i = 1,...,n; v = 1,...,m . (9)

Constraints (2)-(4) are the classical routing constraints: constraints (2) impose that each vertex is visited at least once, (3) are the flow conservation constraints while (4) are the subtours elimination constraints. Constraints (5)-(7) concern the allocation of the demands of the customers among the vehicles: constraints (5) impose that customer i can be served by vehicle v only if v passes through i, constraints (6) ensure that the entire demand of each vertex is satisfied, while constraints (7) impose that the quantity delivered by each vehicle does not exceed the capacity.

3. POPULATION BASED ANT COLONY OPTIMIZATION ALGORITHM

Population Based Ant Colony Optimization (P-ACO) algorithm is a part of a large class of algorithms of swam intelligence, in which for solving the problem are used the peculiarities of behavior of social insects such as bees and ants, - independent artificial agents, each of which construct a feasible solution of discrete optimization problem on the base of accumulation and using static information - artificial traces of pheromone and heuristic problem-specific information.

P-ACO algorithm is based on the ability of ants to find the shortest path to a food source and to adapt to changing conditions. Ants communicate with each other by products of external secretion -pheromone, a fixed amount of which they lay on their path. The ant, who has found a shorter route, will be enrich a pheromone trace more intensively. When choosing the travel direction the ants take into account the intensity of pheromone trace, so, a shorter path gets advantage. Evaporation of phero-mone and an element of chance in choosing the path allow get out of local optimum and to find the shortest routes.

The basic idea of P-ACO algorithm consists in transmission to the following iteration only the most important and lesser on volume information. This idea is realized by creating a population P of the best solutions obtained by the agents on t iterations. Then, these solutions are used to calculate the level of pheromone [6].

4. APPLICATION OF P-ACO ALGORITHM FOR SOLVING THE SDVRP

At solving the SDVRP the agents imitate the vehicles, routes are constructed step by step by selection of the next customer until all customers will be served. Initially, the agent starts from the depot and a list of customers, included in its route, is empty. The agent selects the next customer from the list of available customers and updates its current load before the next selection. The agent returns to the depot, when its maximum capacity has been reached or all customers already have been visited. The total length Ll is calculated as the value of objective function of a complete route of l-th artificial agent. P-ACO algorithm constructs a complete route for the first ant before the second agent will begin its motion. This continues until a predetermined number of agents m haven't constructed a full route.

The general scheme of P-ACO-SDVRP algorithm is presented below:

Input parameters: a number of cities and BSs n, a number of vehicles m, a matrix of capacities of vehicles Qm, a distance matrix C={ci]}, the algorithm parameters a, /: a pheromone matrix: a matrix of demands of BSs dn; a number of agents l.

Output parameters: a matrix of population P (l best found solutions).

P:= 0 Repeat

For each agent le [1,...,/] {construction of solution} S := {1,...,n} {the set of given cities and BSs} Tour1 := 0 wit: = 0 (the depot) Tour1 := Tour1 + {init} For i := 1 to n do

Select the city of the BS next with probability p,n,t,next by the formula (1) If next is the BS then begin

If (Q~dmit<0), Q = Qv, then begin Another vehicle ve [1,...,m] with capacity Q := Qv > qnext continues to serve the BS next and the demand in equipment of next-th BS is satisfied End If Else begin

A. F. Valeeva, Yu. A. Goncharova • Practical application of population based ant colony .,

77

The previous vehicle continues to serve the next-th BS End Else End If

If the demand of the BS next is satisfied then begin

The BS next is removed from the set S: S := S - {next} Init := next End If

Tour1 := Tour1 + {init} If (S = 0 ) then begin

Break; End If

Calculate the length L of the Tour1 End For

Call the algorithm CALCULA-TION_THE_MATRIX_OF_PHEROMONE Until end condition

Select the best solution from the matrix of population P End P-ACO-SDVRP

CALCULATION_THE_MATRIX_OF_PHEROMONE

Input parameters: a number of agents 1, a matrix of population P (1 best found solutions).

Output parameters: an updated matrix of pheromone P.

If |P| = t then begin

Remove the most «old» solution ж from the population:

P := P

Determine the best solution of iteration and add it to the population:

P := P + ж*

Calculate a new pheromone matrix from P. End If

We use the following stopping criterion: if N = const, where N is the number of steps, we suppose, that the stopping criterion is fulfilled.

The probability of choosing a city j at city i is defined as

f

(10)

k

pkj =i

[*U (ОНщ

^ ■ \rk

у , если j e N

£ [*iw (t)№

leNk

0, otherwise

where N is the vertex set not yet visited by the

agent k; щ = — is heuristic information; j),

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

dij

where t is the number of iteration of P-ACO-SDVRP algorithm, is the pheromone level, which shows the «desirability» of transition into a city j from the city i, in other words, the desirability of the appearance of the edge (i, j) in the solution; pa-

rameters a and в define the relative influence between the heuristic information and the pheromone levels. At a = 0 the algorithm degenerates into greedy, when the nearest city is chosen without accounting of quantity of pheromone.

5. COMPUTATIONAL EXPERIMENTS

Three benchamark instances were selected for computational experiments from international test library OR-library. As test system the 2. workstation with 2-nuclear processor Intel Core 2 Duo GHz and 2 GB of operative memory were used.

Influence of the values of the parameters a and в on the quality of the solution was identified during the numerical experiment.

The problem with 55 customers pr01 was choosen for the first three test collections. The best known solution for this problem is equal to 524.61.

Influence of the parameter a was verified in the first test collection (a is the parameter of consequence of pheromone amount during selection of the next customer). The value of the parameter a was varied from 1 to 10, the others parameters were fixed: в = 1, P = 0.2, O = 524. Table 1 shows that the increase of the parameter a leads to considerable worsening of the solutions.

Table 1

Influence of the parameter a on the quality of the solution L

a 1 3 5 7 9

L 583.4 771.2 1221.3 1109.4 1144.8

Influence of the parameter / was verified in the second test collection (3 is the parameter of consequence of distance during selection of the next customer). The value of the parameter / was varied from 1 to 10, the others parameters were fixed: a = 1, p = 0.2, O = 524. Table 2 shows that the value of the parameter / virtually doesn't influence on the solution, the best solution is reached with the values of parameters are equal to 3 and 5.

Table 2

Influence of the parameter p on the quality of the solution L

ß 1 3 5 7 9

L 583.4 561.1 561.4 562.2 587.0

Table 3 shows some results for different combinations of a and /.

Table 4 shows the best solutions, obtained for 3 benchmark problems.

The behaviour of the parameters a and / is the same as in the first benchmark problem.

Table 3

Influence of the combinations of the parameters a and p on the quality of the solution L

a ß L a ß L

2 3 561.1 2 12 575.5

2 4 601.3 3 5 601.1

2 5 602.5 3 10 563.7

2 8 573.7 3 12 601.7

2 10 566.4 3 15 602.1

Table 4

The best obtained solutions

The problem The best known solution The best obtained solution

pr01 524.6 559.9

pr02 835.3 952.2

Pr03 826.1 962.1

6. CONCLUSIONS

The results of the computational experiment showed that the selection of the parameters a and / combinations influences on the quality of the obtained solution of the SDVRP: if a is large and / is small the obtained solution can be too worse as the best known solutions. The obtained results show that the best solutions are reached with / 3-5 times larger than a.

ACKNOWLEDGMENTS

This research has been partially supported by grants of the Russian Foundation of Basic Researches (RFBR) № 12-0700579.

REFERENCES

1. D. Angus, "Crowding population-based ant colony optimisation for the multi-objective travelling salesman problem," in Proc. IEEE Symp. Comp. Intell. Multicrit. Decision Making, pp. 333-340, 2007.

2. C. Archetti, A. Hertz, and M. G. Speranza, "A tabu search algorithm for the split delivery vehicle routing problem," Transportation Science, vol. 40, no. 1, pp. 64-73, 2006.

3. R. I. Faizrahmanov, "Probabilistic constructive algorithm for the placement circles and rectangles," (in Russian), Vestnik UGATU, vol. 14, no. 4 (39), pp. 132-138, 2010.

4. M. Guntsch and M. Middendorf, "Solving multi-objective permutation problems with population based ACO," in Proc. EMO 2003, LNCS vol. 2636, pp. 464-478, 2003.

5. Michael Guntsch and Martin Middendorf, "Applying population based ACO to dynamic optimization problems," AntAlgorithms, proc. 3rd Int. Workshop ANTS 2002, LNCS vol. 2463, pp. 111-122, 2002.

6. B. Scheuermann, K. So, M. Guntsch, M. Middendorf, O. Diessel, H. ElGindy, and H. Schmeck, "FPGA implementation of population-based ant colony optimization," Applied Soft Computing, pp. 303-322, 2004.

7. A. F. Valeeva, "Application of constructive heuristics in cutting-packing problems," (in Russian), Informatsyonnye tekhnologii (The appendix to the journal "Information Technology"), vol. 11, p. 24, 2006.

ABOUT AUTHORS

VALEEVA, Aida Faritovna, Prof., Dept. of Computational Mathematics and Cybernetics. Dipl. Of Mathematical Depatrment (BGU, 1982). Prof. of Tech. Sci. (UGATU, 2008), Dr. of Tech. Sci. (UGATU, 2007).

GONCHAROVA, Yuliya Alexandrovna, Postgrad. (PhD) Student, Dept. of Computational Mathematics and Cybernetics. Engineer of Computers and Automated Systems Software (UGATU, 2012).

i Надоели баннеры? Вы всегда можете отключить рекламу.