In the standard formulation of the TSP, the optimal solution can start at any city. If you want to force the solution to start at a specific city, you can manipulate the output as follows:
Supposing that you have requested "optRoute" as an output and that you want the solution to start at the first city, you can type the following into the Command Window:
>> index = find(optRoute == 1);
>> finalRoute = optRoute([index:end 1:index-1])
Hi I was wondering, how can I set an initial starting point/stop points? when I run the algorithm for mywaypoints, the starting position becomes the 6th visited city, but that is where I start, so ofcourse I want that to be the initial position.