TSP matlab how many cities the program visit every t seconds

1 回表示 (過去 30 日間)
Ang Vas
Ang Vas 2016 年 2 月 17 日
回答済み: Walter Roberson 2016 年 2 月 17 日
Hello everybody, I need your help about an issue. I have found a TSP code from http://www.mathworks.com/matlabcentral/fileexchange/24857-another-tsp-solver/content/solveTSP.m and where when I run it everything is crystal clear. I want to ask if there is any way to calculate how many cities the salesman visits at a specific period of time. For instance let assume that we run cities = solveTSP( rand(10000,2), true );. The code start to visit the cities in order to find the optimum path, but what I want to know is how many cities the program visit every 0.5sec ( or in more general every t seconds);

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 2 月 17 日
That algorithm visits all of the cities every step.

カテゴリ

Help Center および File ExchangeTraveling Salesman (TSP) についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by