ACOpy is a Python library implementing ant colony optimization for shortest-path problems. Install it with pip, represent cities and distances as a NetworkX graph, and use ACOpy’s solver and colony objects to search for tours. section 10.3.5
City-routing example
A 20-city graph produced a route from New York City through Columbus, Detroit, Philadelphia, and other cities to Indianapolis, with a reported length of 11058.541. Results can vary because ACO includes randomness. section 10.3.5
