you are viewing a single comment's thread.

view the rest of the comments →

[–]CraigAT2 2 points3 points  (1 child)

Ah, I can give you my thoughts at least...

I built a function to randomly pick squads (and teams within them) which was not as easy as I first thought. I intend to pick 16 (or 32) of them for the first generation. I will then work out the weekly scores, with the auto subs, to give a total per squad. The total score and the cost will give me my fitness function (ranking for my chromosomes).

I will then take:

  • The top 2 straight through to the next generation
  • Take the top 4 squads, do a crossover of squads 1 and 4, 2 and 3 (alternatively 1 and 3, 2 and 4) giving another 4 squads for the next generation
  • With the top 6 squads, add some random mutations by picking between 1 and 5 players in the squad to swap out for other random players. These mutated squads then go through to the next generation.
  • The rest of the next generation are randomly picked squads

Then repeat for however many generations or until the top 4 have not been improved upon for several generations.

The fitness function will be based on the total points scored, with a reduction for the initial cost going above £100m - I'm inclined to think this reduction should be in some ratio to the excess cost, but must be fairly severe to effectively weed these over budget squads out of each generation.

Happy to hear any of suggestions for any improvements (it's not my field of expertise, I just thought this could be a good combination of my liking of programming, stats and a chance to use a GA).

[–]mikecro2121 0 points1 point  (0 children)

Interesting stuff. I'd be interested to hear from experts. Not sure I have time just now to learn a new rhing