Last active
March 3, 2019 04:30
-
-
Save gkhayes/6b8bc87fc579da4845404d913662bc94 to your computer and use it in GitHub Desktop.
TSP Optimization Using a Genetic Algorithm - Attempt 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Solve problem using the genetic algorithm | |
| best_state, best_fitness = mlrose.genetic_alg(problem_fit, random_state = 2) | |
| print('The best state found is: ', best_state) | |
| print('The fitness at the best state is: ', best_fitness) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment