January 2020
Intermediate to advanced
346 pages
9h 8m
English
For our first attempt to solve the TSP using a genetic algorithm, we created the Python program 02-solve-tsp-first-attempt.py, located at the following URL:
The main parts of our solution are described by the following steps:
TSP_NAME = "bayg29"tsp = tsp.TravelingSalesmanProblem(TSP_NAME)
creator.create("FitnessMin", ...
Read now
Unlock full access