ahmedfgad / GeneticAlgorithmPython

Source code of PyGAD, a Python 3 library for building the genetic algorithm and training machine learning algorithms (Keras & PyTorch).
https://pygad.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.9k stars 466 forks source link

FEATURE REQUEST: Spatial awareness #63

Open freekeys opened 3 years ago

freekeys commented 3 years ago

Hello, I've read that GAs can be improved by introduced a spatial dimension, which can avoid early local minima being found.

This effectively means giving each individual an x,y coordinate, and only allowing mating within a specific distance.

Have you considered introducing this to pyGAD? If so then I'd love to learn more and understand why you decided not to include it. If not then is this something you would consider?

Many thanks for a fantastic library!

ahmedfgad commented 3 years ago

Hello @freekeys,

Thanks for using PyGAD and suggesting this feature. This looks interesting really. I will consider doing some research to learn more about it and consider supporting this feature.

Please let me know if you have any other suggestions now or in the future.