-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
38 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
TSP_FILE_PATH=../../data/a280.tsp | ||
NUM_OF_GENERATIONS=10 | ||
OUTPUT_EVERY_X_GEN=2 | ||
MUTATION_RATE=0.1 | ||
POPULATION_SIZE=100 | ||
TOURNEY_SIZE=25 | ||
|
||
run: | ||
python main.py $(TSP_FILE_PATH) $(NUM_OF_GENERATIONS) $(OUTPUT_EVERY_X_GEN) $(MUTATION_RATE) $(POPULATION_SIZE) $(TOURNEY_SIZE) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
siddkumar sk35435 | ||
|
||
|
||
edit Makefile to set | ||
input file path, | ||
number of generations, | ||
how often you want to print output, | ||
the mutation rate, | ||
the population size, | ||
and the tournament size. | ||
|
||
special thanks to http://www.theprojectspot.com/tutorial-post/applying-a-genetic-algorithm-to-the-travelling-salesman-problem/5 | ||
|
This file contains 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