Advertisement
openaiken

Untitled

Oct 29th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. [haiken@haiken-manjaro 02-project3]$ time ./main
  2. Sufficient distances.txt file loaded. Would you like to use the existing one?
  3. (1 => use existing; 0=> generate new): 0
  4. Recreating and flooding distances.txt...
  5. Enter how many (integer) cities to simulate: 12
  6. Enter how many (integer) individual tours are in a given generation: 2
  7. Enter how many (integer) generations to simulate: 2
  8. Enter what percentage (float) of each generation should be comprised of mutations: 2
  9. Best possible tour time: 415.037
  10. Best possible tour: 7, 10, 9, 5, 2, 8, 3, 12, 1, 11, 6, 4
  11.  
  12. real 0m31.874s
  13. user 0m29.964s
  14. sys 0m0.013s
  15. [haiken@haiken-manjaro 02-project3]$ make clean main
  16. rm -f brute.o main test genrand *.out *.core vgcore*.* *.vcore core
  17. g++ -std=c++11 -Wall -g -c -o brute.o brute.cpp
  18. g++ -std=c++11 -Wall -g -o main brute.o main.o
  19. g++ -std=c++11 -Wall -g -o genrand genrand.cpp
  20. [haiken@haiken-manjaro 02-project3]$ time ./main
  21. Sufficient distances.txt file loaded. Would you like to use the existing one?
  22. (1 => use existing; 0=> generate new): 1
  23. Enter how many (integer) cities to simulate: 12
  24. Enter how many (integer) individual tours are in a given generation: 2
  25. Enter how many (integer) generations to simulate: 2
  26. Enter what percentage (float) of each generation should be comprised of mutations: 2
  27. Best possible tour time: 415.038
  28. Best possible tour: 1, 11, 6, 4, 7, 10, 9, 5, 2, 8, 3, 12
  29.  
  30. real 0m4.472s
  31. user 0m2.503s
  32. sys 0m0.000s
  33. [haiken@haiken-manjaro 02-project3]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement