Rudy’s OBTF Rudolf Adamkovič

Home / Computer science / Traveling salesman problem (TSP) / Computation in Python / Implement


traveling_salesman.tour

def tour(solution, instance):
    """Convert a solution into a tour."""

    cities = instance[:, 0]

    a = np.array([10,20,30])

    # solution = cities[tour]

    return solution

© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.