Has anyone seen convincing results from a .Net Genetic Algorithm Scheme ?
I see poor randomization in the trial version of the problem salesman presented in the Genetic Algorithm. The following call generates the same gene shuffling order for the entire x 100 chromosome population:
chromosome.Genes.ShuffleFast();
If I take one step through the code, the gene order looks randomized, so I suspect there is a / Rdn () time error in ShuffleFast (), or I skip the setup step.
I tried to solve the problem by pre-pressing the sequences of the chromosome genes, and this caused minor changes in the results of the TSP. However, the console mileage magazine continues to show that GAF only detects 4 potential solutions for 400 generations of the population. This diverges from GA videos on YouTube that demonstrate the implementation of the genetic algorithm, offering a solution with great jitter. I cite this as yet another indication that GAF has a system internal problem with generating random numbers.
The genetic algorithm diagram is very well documented through the authors blog, so I try to keep an open mind as a reason.
Steps to play = Download GAF ββfrom nuget, compile and debug the project by default with a breakpoint after creating chromosomes for the loop, inspect population.Solutions. Windows 7, VS2015, .Net 4.5 and 4.61. Debug or release.
source share