GeneticAlgorithmPython
GeneticAlgorithmPython copied to clipboard
Source code of PyGAD, a Python 3 library for building the genetic algorithm and training machine learning algorithms (Keras & PyTorch).
this engine has some nice features you may consider https://github.com/AluBhorta/UCSPy-Engine the definitions are in json - with soft / hard constraints / penalties defined.
 
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,...
Hi! Great project, thanks. However I've experianced some bugs. model = pygad.GA(someparameters - may be even sample model from documentation) model.run() model.plot_fitness(plot_type="scatter") ok model.run() model.plot_fitess() ok model.plot_fitness(plot_type="scatter") --------------------------------------------------------------------------- ValueError Traceback...
I am using pygad, for GA, to find combination of solutions which would satisfy conditions. I have got a code, which runs 15 generations with 40 populations. When GA stops...
Hi @ahmedfgad, First, you did an excellent project, congratulations! Secondly I have a question, my problem has a peculiar condition in gene generation, the sum of two genes must be...
HI ! I am trying to solve my problem with pygad :) I want to see the difference of fitness values by increasing population in one graph. For example, like...
With PyGAD 2.18.0 the `keep_elitism=1` paramter was introduced. Apparently this only works when no crossover operation is selected. This is a strange behavior, because in my understanding Selection(e.g. Elitism) and...
Hi, I encountered a case where, if I'm using roulette wheel selection or stochastic universal selection and if the fitness sum is 0, there will be a division by 0....
Hi, I tested the pygad library version 2.17.0 for solving the knapsack problem and I observed that even if I set allow_duplicate_genes=False, I still have duplicated genes in the solution....