Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Asymmetric TSP on digraph by Evolutionary Algorithm?by zli034 (Monk) |
on Mar 08, 2008 at 02:24 UTC ( [id://672928]=perlquestion: print w/replies, xml ) | Need Help?? |
zli034 has asked for the wisdom of the Perl Monks concerning the following question: March 8th modification note: Just found out this problem is called Asymmetric TSP. I'm going to do some reading on this topic. Hi Guys: To have a place to talk what I like make this wonderful world much more wonderful. I appreciate everyone's opinion on calibrating this problem. Traveling Salesman Problem(TSP) have been well studied by evolutionary algorithm, such as inver-over operator can be really good for TSP on a simple graph representation of set of cities and routes. I want to know if there are studies also about TSP on a digraph, that is directed graph. If the distance between 2 city can be different according to the direction which people travel. Say between cities A and B, if the people travel from A to B, that can be 2 units of distance; if the people travel from B to A, then the distance becomes 1 unit of distance. The adjacency matrix representation of distance on the digraph is also different from the simple graph cities. The adjacency matrix of simple graph of cities is only a half of the square matrix; because the entry of distances below the diagonal are just the repeats of distance entries which above the diagonal. So that in the digraph adjacency matrix representation, it is complete square matrix. There are both entries below and above the diagonal, because they represents distances travel between 2 cities in different direction. And the diagonal fills with 0, that is 0 distance. In my opinion, the inver-over shouldn't be a good approach to the digraph TSP problem. When a permutation of cities is inverted, it fitness then be changed depending on the directions. This prevents potential fit permutation to be retained in population, if they are placed into wrong direction. I'm not going to show you guys the matrix I have, I like to work on it by myself, otherwise it becomes other people's work. Thanks guys, all the best.
Back to
Seekers of Perl Wisdom
|
|