Advertisement
Guest User

Untitled

a guest
May 24th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. import itertools
  2.  
  3. def main():
  4. allTogether = [[0, 1, 2], \
  5. [0, 0.05, 0.1, 0.15, 0.2], \
  6. [0, 1, 2], \
  7. [0, 0.05, 0.1, 0.15, 0.2, 0.25], \
  8. [0], \
  9. [5], \
  10. [10], \
  11. [0], \
  12. [-9.8], \
  13. [0], \
  14. [20], \
  15. [700, 800, 900, 1000, 1100, 1200, 1300], \
  16. [10, 20, 30, 40, 50, 60, 70, 80, 90, 100], \
  17. [0, 0.05, 0.1, 0.15, 0.2], \
  18. [0, 0.05, 0.1, 0.15, 0.2], \
  19. [1000] \
  20. ]
  21. mutationMethod = [0, 1, 2]
  22. mutationDelta = [0, 0.05, 0.1, 0.15, 0.2]
  23. crossOverMethod = [0, 1, 2]
  24. tournmentSize = [0, 2, 4, 6, 8, 10]
  25. eliteSize = [0, 0.05, 0.1, 0.15, 0.2, 0.25]
  26. startPointX = [0]
  27. startPointY = [5]
  28. endPointX = [10]
  29. endPointY = [0]
  30. g = [-9.8]
  31. startVelocity = [0]
  32. numTrackPoints = [20]
  33. numGenerations = [700, 800, 900, 1000, 1100, 1200, 1300]
  34. populationSize = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
  35. mutationProbability = [0, 0.05, 0.1, 0.15, 0.2]
  36. crossoverProbability = [0, 0.05, 0.1, 0.15, 0.2]
  37. evaluationsPerStep = [1000]
  38.  
  39. statsFileName = ""
  40.  
  41. print(len(list(itertools.product(*allTogether))))
  42.  
  43. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement