Solve tsp1 problem