osu-particle-astrophysics / Shared-Code

This is a storage directory designed to house and develop any code that is shared by multiple projects.
0 stars 0 forks source link

Tournament fix #25

Open Ryantdebolt opened 1 year ago

Ryantdebolt commented 1 year ago

(Ignore branch name nothing in crossover changes, the issue was in Tournament). Essentially, I made the following changes to Tournament:

  1. Changed the pool size to a fixed 2 individuals for now.
  2. Added fix that ensures Tournament does not have duplicate individuals in pools.

These were because, in runs that involved only Tournament selection, the GA was stalling in Crossover because there were not enough different individuals being selected to be able to finish crossover in later populations. We will need to revisit this later but for now these changes are fixing the problem in tests.

Ryantdebolt commented 1 year ago

Still seeing some stalling when Crossover and Tournament are being used by a lot. Looking into it and will update