Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+11 votes

In the comments for the runGeneticAlgorithm, it indicates what the parameters are and recommends some minimums for certain parameters. When it comes to the population size and the number of generations, what is a recommended maximum for those values? I understand that other factors such as the number of rules in the wizard, the number of duels, and the number of moves influence the time it takes to complete this (as well as time remaining to run the genetic algorithm), but if you were to use the values that will be used in the tournament (100 duels and 300 moves in each duel), what would be those maximum values be?

asked in CSC320 by (1 point)

1 Answer

+5 votes

There are no maximum values, but if you choose the values to be too large, you may find that it takes too many hours to get any results!

I would recommend doing a short/small GA test first, measuring the time taken for that, and then using that to estimate how much larger you can make the GA parameters and still expect the code to finish in a reasonable amount of time.

answered by (3.4k points)
...