Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import itertools
- def main():
- allTogether = [[0, 1, 2], \
- [0, 0.05, 0.1, 0.15, 0.2], \
- [0, 1, 2], \
- [0, 0.05, 0.1, 0.15, 0.2, 0.25], \
- [0], \
- [5], \
- [10], \
- [0], \
- [-9.8], \
- [0], \
- [20], \
- [700, 800, 900, 1000, 1100, 1200, 1300], \
- [10, 20, 30, 40, 50, 60, 70, 80, 90, 100], \
- [0, 0.05, 0.1, 0.15, 0.2], \
- [0, 0.05, 0.1, 0.15, 0.2], \
- [1000] \
- ]
- mutationMethod = [0, 1, 2]
- mutationDelta = [0, 0.05, 0.1, 0.15, 0.2]
- crossOverMethod = [0, 1, 2]
- tournmentSize = [0, 2, 4, 6, 8, 10]
- eliteSize = [0, 0.05, 0.1, 0.15, 0.2, 0.25]
- startPointX = [0]
- startPointY = [5]
- endPointX = [10]
- endPointY = [0]
- g = [-9.8]
- startVelocity = [0]
- numTrackPoints = [20]
- numGenerations = [700, 800, 900, 1000, 1100, 1200, 1300]
- populationSize = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
- mutationProbability = [0, 0.05, 0.1, 0.15, 0.2]
- crossoverProbability = [0, 0.05, 0.1, 0.15, 0.2]
- evaluationsPerStep = [1000]
- statsFileName = ""
- print(len(list(itertools.product(*allTogether))))
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement