Abstract
Normally, Travelling salesman problems (TSPs) are formulated with deterministic parameters and either total cost or time is minimized. In real life TSPs, the travel costs and times are not defined precisely and represented by fuzzy or rough data. Very often, in addition to single objective cost or time, both total cost and time are also minimized. These uncertain problem are difficult to optimize. In this paper, some TSPs are formulated as linear programming’s problems with imprecise data and there cost, time, or both are minimized by a hybrid heuristic algorithm combining Ant colony optimization (ACO) and Genetic algorithm (GA). Here, hybrid algorithm consumes less resources such as CPU time, then the single heuristic methods. Developed algorithm is capable of solving both single and multi-objective constrained large TSPs with crisp, fuzzy and rough data. In the algorithm, different types of crossovers (multi-point crossover, order crossover, partially mapped crossover) and mutations (single point, multi point) are randomly used. Performance of the algorithm is tested against standard test problems from TSPLIB. Proposed TSPs are solved with proposed and existing algorithms and results are compared. Both the problems and algorithm are illustrated with numerical examples. Some sensitivity analyses are also presented.
Introduction
In Travelling Salesman Problem (TSPs) a salesman visits a number of cities in his/her territory, going to each city exactly once and then returns to the starting point. The objective of a travelling salesman is to choose an appropriate path so that total travel cost or time is minimum. During the last decades, several TSPs have been investigated by researchers using several algorithms.
Recently several heuristic algorithms here emerged to approximate the optimal solutions of TSPs. These are Tabu search [16], Neural networks ([18]), Genetic algorithms (GA) [17, 20], Ant Colony Optimization (ACO) [1, 10]. Genetic Algorithm (GA) is an important technique for solving optimization problems. Recently Turker and Erbill [23] used both GA and ACO simultaneously for process control. There are many approaches of GAs to solve TSP [17, 24]. ACO is another important soft computing techique for solving optimization problems. ACO is a meta-huristic approach. In ACO, the behaviour of real ants to find the shortest path between their nest and food source, has been mimiced. Several ACO algorithms are available to solve the well-known NP-Hard TSP problems [1, 10].
Sometimes, the application of single heuristic algorithm does not provide the desired results in TSP. Some hybrid algorithms have also been used to get approximate optimal solutions. Several algorithms incorporated other algorithms to improve the performance of the system. To improve the performance of ACO, GA is combined with it. In 2011, Chen and Chien [4] used a method based on parallelized genetic ant colony systems for solving a TSP. In 2012, Dong, Guo and Tichle [7] developed a method solving a TSP using cooperative genetic ant system.
In all the above investigations, normally it is assumed that TSP parameters- cost and times are precisely known and deterministic. But, in real life, the travelling costs or times between the cities depend on the conveyance used for travelling, availability of number of vehicles on the journey date, road condition, etc.. Hence these parameters vary and are uncertain in non-stochastic sense. This may be imprecise - either fuzzy or rough. For an unknown path, it is often said that unit travel cost is about R$ or nearer to R$ which can be represented by a fuzzy number. Sometimes, said cost or time is specified by upper and lower intervals [a, b] and [c, d] i.e, by a rough number, defined by a rough set. There are very few TSPs with these realistic parameters, recently, Changdar et al. [3] have developed solid TSPs and solved the problems using GA and ACO separately. Assuming the travel costs as intervals, they minimized travel cost only. But study of occurance of imprecise parameters in different routing problems is made by several authors [11, 22].
Moreover, in some cases, a salesman is asked to complete his/her tour within a fixed time bound or against a limited budget. There are also some situations where a salesman desires to minimize both travel cost and time. In spite of several TSPs available in the literature, there are very few constrained TSPs and bi-objective TSPs with imprecise costs and times. To fill up this vacuum, the proposed TSPs are developed and solved by the appropriate hybrid heuristic algorithm.
In this paper, some TSP problems are considered in three different environments - crisp, fuzzy and rough environments, In each environment, for the first type, total travel cost is minimized; for the second type, cost is minimized with a travel time constraint and both total travel cost and time are minimized for the third type problem. In addition to these, two more problems - minimization total time without and with cost constraint are considered in crisp environment. Here, combining the features of ACO and GA, an algorithm is proposed which can solve single/multi-objective constrained TSPs in crisp, fuzzy, rough environment and is used to solve the proposed problems. To deal with fuzzy problems, following credibility measure of fuzzy events, an approach is proposed to compare fuzzy objectives. For rough parameters, trust measures [15] of the rough events are used. Again using dominance property of objectives, an approach is proposed to find fitness of a solution for both single as well as multi-objective problems in crisp, fuzzy and rough environments. In the algorithm, different types of crossover operations- multi-point crossover, order crossover and partially mapped crossover are randomly used to improve the performance of the algorithm. Two types of mutation are randomly used in the algorithm. Performance of the algorithm is tested against standard test problems from TSPLIB. Results show that performance of the proposed algorithm for single objective problems are comparable with other existing algorithms. The problems are illustrated with some numerical data. The proposed TSPs is solved by proposed hybrid algorithm (HA) and individual algorithms ACO and GA. It is established that HA fetches better results in terms of iteration, population size, etc. Some sensitivity analyses are done with respect to number of iterations, etc.
The contribution of the present work can be summarised as follows. A hybrid algorithm using ACO and GA is developed which gives better results for the test and proposed TSP problems. Several types of TSP problems are formulated with imprecise cost and times and solved in crisp, fuzzy and rough environments. TSP problems with rough costs and times are also formulated and solved using trust measures.
Mathematical prerequisite
Classical TSP with cost minimization (Problem 1A):
In a classical two-dimensional TSP, a salesman has to travel N cities at minimum cost. In this tour, the salesman starts from a city, visits all the cities exactly once and comes to the starting city in minimum cost. Let c
ij
be the cost for travelling from ith city to jth city. Then the problem is mathematically formulated as:
Let (x1, x2, . . . , x N , x1) be a complete tour of a salesman, where x i ∈ {1, 2, . . , N} for i = 1, 2,...,N and all x i are distinct in a complete tour. Then the above problem reduces to
In Problem 1A, let us add travel time t
ij
to travel from ith city to jth city along with cost c
ij
. There is also a restriction on total travel time of the tour. Then the problem belongs to the class of classical TSP with time constraint. Let t
max
is the maximum time that a traveler is allowed for his/her tour. Then the problem can be mathematically formulated as in (7):
If c
max
is the maximum cost that a traveler can use for his/ her tour, then the problem of travel time minimization can be mathematically formulated as given bellow.
In Problem 3, decision maker (DM) likes to minimize total cost as well time. Then the problem is a bi-objective TSP and can be mathematically represented as follows in (9).
In Problem 1A, if all the costs c
ij
are fuzzy numbers then it reduces to a classical two-dimensional TSP with fuzzy costs. Similar to previous problems this problem can also be mathematically represented as given below: Let (x1, x2, . . . , x
N
, x1) be a complete tour of a salesman, where x
i
∈ {1, 2, . . , N} for i = 1, 2, ⋯ , N and all x
i
are distinct. Then the above problem can be represented as
In Problem 4, let s are the fuzzy traveling times from i - th city to j - th city along with cost . Also let there is a restriction on total travel time of the tour. Then the problem belongs to the class of fuzzy TSP with fuzzy time constraint. Let is the maximum allowable fuzzy time that a traveler can use for his/her tour. Then the problem can be mathematically formulated as follows.
In Problem 4, if decision maker (DM) likes to minimize both total fuzzy cost as well fuzzy time, then the bi-objective problem with TFN costs and times is
In Problem 1A, if all the costs c
ij
are rough in nature then it reduces to a classical two-dimensional TSP with rough cost. The problem can be represented as
If all and are rough in problem 2A, then taking , [tij3, tij3]), the above problem reduces to
In Problem 4 if DM likes to minimize total rough cost as well rough time, then the problem can be mathematically formulated as
Proposed hybrid Algorithm
Both algorithms GA and ACO have some merits and demerits in solving combinatorial optimization problems. Here combining the features of these algorithms, a hybrid algorithm is proposed to solve TSP in some modified forms. The algorithm is strong enough to solve single-objective as well as multi-objective constraint TSP. In the algorithm, initially ant colony system is used to produce a set of paths which is a set of potential solutions. Then before updation of pheromone, genetic operations are done on the solution(path of an ant) set and produced children to replace the weaker parents, i.e., if fitness of a child is better than a parent then it replaces the parent. This process continues until termination conditions hold. To improve the performance of the algorithm, different types of cross over and mutation operations are used. For large size problems, this algorithm is used a finite number of times (under small size iterations) to create a set of potential solutions. Then only GA operations are operated on this set of solutions to find better solutions. The hybrid ACO-GA system is presented below. In the algorithm, τ ij represents amount of pheromone lies on the path between node i and node j, iter represents iteration counter, maxiter represents maximum iteration number of the algorithm, p c and p m represent probabilities of crossover and mutations respectively. n represents number of ants or population size and N represents number of nodes/cities in the problem, B is best solution:
j = 1, 2, ⋯ , N.
using τ ij . Let this set be P.
Roulette-wheel selection process [19]. Let
this set be M.
on p c .
one parent then parent is replaced by the child
solution.
it’s parent then parent is replaced by the child
solution.
Procedures for the proposed hybrid algorithm
Numerical Illustration
Testing of hybrid algorithm:
The hybrid algorithm developed in the Section 4 is tested against some standard test problems (single objective TSPs) with symmetric and asymmetric travel costs from TSPLIB. The names of the problems, their optimal costs as well as results obtained using the proposed algorithm are tabulated in Table 1 along with the results following usual GA and ACO. Number of iterations used to obtain the results of the problems following different approaches are also presented in the Table 1. For a particular test problem, result using proposed algorithm with specific mutation and crossover along with randomly selected types are presented in Table 2.
Input test data for different problems
The problems are illustrated for ten cities (N=10). The assumed values of travel costs and times between different cities are presented in Table 3 (times are presented under slash(/)). For the Problem 2A, the total travel time is limited to 30 or 50 time units (i.e t max = 30 or 50 units) and for Problem 2B, total travel cost is limited to 250 or 150 cost units. The imprecise travel costs and times between different cities are given in Tables 4 (fuzzy cost) and 5 (rough costs). Here, maximum permitted travel time are also fuzzy for fuzzy TSP with its value is [29.01,30,31.01] and rough for rough TSP and its value as [29.5,30,29,30.5].
Here we generate large TSP problems with virtual data set, travel costs (c
ij
) and travel times (t
ij
) for 40, 60 and 100 cities. These values are randomly generated within some specified values, (c
l
, c
u
) and (t
l
, t
u
) (Normally, when travel time is less (high), then travel cost is high (less). The feature is followed in some cases during the creation of these data). The above ranges differ for different problems. Random data sets are generated using rand() function in C++ language. For the present problem, t
ij
s are obtained as
Solutions of different TSPs
The Problems-(1A, 1B, 2A, 2B, 3), (4, 5, 6) and (7, 8, 9) with the above crisp, fuzzy and rough input data’s are solved by the developed HA (cf. Section 2). The appropriate crisp representation of the fuzzy and rough problems are obtained followings the Section 4 and then the results are presented in Tables 6, 7, 8.
Performance of the proposed method is statistically tested running it 25 times and calculating the average value, standard deviation and percentage relative error according to optimal solution against virtual data problems given in Table 9. The percentage relative error is defined as
Examining the Table 10, it is concluded that the proposed Problem 3, Problem 6 and Problem 9 which solved by Hybrid ACO-GA, is effective for the most of instances. The above Table shows that standard deviation (SD) low for 40, 60 node problems but for 100 node as well as percentage error propagate smoothly for every instances i.e. not too much high.
Discussion
From Table 1, it is observed that the proposed HA gives the optimum results exactly for four test problems out of nine test problems considered here. For the other test problems, it is marginally out i.e, it gives little higher values than the standard optimum results. However, it can be noticed that the usual GA and ACO furnish the optimum results only for a test problem (Br17) and much worse results for the others than the proposed HA. From this experiment, it can be concluded that the proposed algorithm is efficient to deal with TSPs compared to the existing ones. Moreover, HA takes less number of iterations than the usual GA and ACO to get the optimum results.
From Table 2, out of the proposed different types of crossovers and mutations for HA, the different combination of these types do not furnish the better result than the use of randomly selection of the types of crossover and mutation.
In Table 6, for Problem 3, three different paths including the optimum path for the salesman are presented. This is because, due to some reason or other, if the salesman fails to follow the optimum path, he/she can think of the next suitable path.
From Table 6, the results are as per the usual expectation with respect to the nature of the problems. In all the problems, behaviours of costs and times are contradictory i.e, less cost takes more time for journey where as higher expenditures (costs) require less time. When we minimize cost (Problem 1A), cost is 111 units (minimum of all costs of the problems) and required time is 80 units (maximum of times of the problems). In Problem 1B (minimization of total travel time), the above figures are exactly opposite i.e, minimum time is 27 units, where as corresponding maximum cost is 376 units. Other models (Problem 2A, Problem 2B) including the bi-objective Problem 3 (minimization of both cost and time) give intermediate values for total travel costs and times. For the Problem 4, Problem 5 and Problem 6, input data for travel costs and times are fuzzy and hence the optimum outputs are also fuzzy. As it is not possible to compare the fuzzy numbers directly like crisp numbers, we evaluate the crisp equivalent of fuzzy numbers following the GMIV formula (for triangular fuzzy number (a, b, c), GMIV value is ([a + 4b + c]/6). From the GMIV values, it is observed that the nature of optimum values for the Problem 4, Problem 5 and Problem 6 are same as the Problem 1A, Problem 2A andProblem 3.
Similarly, for the TSPs with rough data i.e, for Problem 7, Problem 8 and Problem 9, the optimum costs and times which are also rough numbers are presented in Table 8 along with their rough expected values (i.e, crisp numbers). Comparing these crisp values, it is seen that the nature of optimum values for the Problem 7, Problem 8, and Problem 9 are same as the corresponding crisp and fuzzy Problems as mentioned above.
In Table 9 large scale input data are taken and their results are given. Here also it is seen that the nature of optimum values for the Problems- 1A, 1B, 3, 4, 6, 7, 9 are same as the corresponding crisp and fuzzy Problems as mentioned in Section 3.
Sensitivity analyses
Here, using the proposed hybrid algorithm, some sensitivity analyses are presented for the crisp bi-objective problem (Problem 3) with respect to cost matrix size, iteration number and population size.
Problem size versus iteration number
Here a study is made for the number of iterations required for optimum results for different sizes of cost matrices. For crisp TSP (Problem 3), optimum results ware obtained with (5 ×5) , (6 × 6) , ⋯ , (10 × 10) matrices and corresponding iteration numbers were noted. These are plotted in Fig. 1. It is to be noted that (6 ×6) matrix size onwards, number of iterations required for optimum values increases sharply. But when matrix size increases from (5 ×5) size to (6 ×6) size, the increase in iteration number is less. On the other hand, when matrix size increases from (9 ×9) to (10 × 10), the increase in iteration number is very high. This is as per our expectation. As the problem is a NP-hard problem, the complexity and time increase with the size of cost matrices and hence the number of iterations for optimum results sharply increases with problem sizes.
Problem size versus population size
Another study is also presented for population size against different sizes of cost matrices. Here for crisp TSP (Problem 3), optimum results ware derived with (5 ×5) , (6 × 6) , ⋯ , (10 × 10) matrices and corresponding population sizes were noted. These are plotted in Fig. 2. It is observed that (6 ×6) matrix size onwards, number of population sizes required for optimum values increases sharply. However, for the TSPs with (5 ×5) and (6 ×6) cost matrices or with (9 ×9) and (10 × 10) cost matrices, the required population size for optimum results are almost same.
Efficiency of HA
Here, the efficiency of the proposed HA with respect to iteration numbers for problem eil76 is tested and presented in Fig. 3. It is observed that after initial high values and then slight fluctuation for small number of iterations, the optimum values converges after a certain number of iteration. For the test problem eil76 value is 100.
Conclusion and future extension
In this paper, a hybrid algorithm is presented for the optimum results of single and multi-objective TSPs in crisp, fuzzy and rough environments. It works exactly upto 76 × 76 size TSPs and furnishes better results than the conventional algorithms-ACOs and GAs. The proposed algorithm is quite general and can be used to solve the decision making problems in other areas such as Inventory control system, Supply chain, Portfolio management, etc. It can be applied to the TSPs with multiple constraints such as total safety constraint, total distance constraint etc. in different environments. It can be extended to include other uncertainties such as random, fuzzy-random, random-fuzzy, etc in TSPs. It can be also extended to solve the three dimensional TSPs i,e. solid TSPs.
Footnotes
Acknowledgments
We are grateful to Dipak Kumar Jana, Department of Engineering Science, Haldia Institute of Technology, Haldia Purba Midnapur-721657, West Bengal, India for his advice to improve the paper.
