Search code examples
c#algorithmgenetic-algorithmaforge

Using the Aforge genetic algorithm library to implement a chromosome which has doubles as genes?


I downloaded the Aforge Genetics library and it's dependencies, and I have read the example provided for the IChromosome interface but I'm just not getting it, for my problem the genes of the chromosome must be doubles let's say between -1 and 1 how can I implement that in aForge ?

If anybody has any example please share.

I admit all my previous genetic algorithm experience is with JGAP in the Java world, so I might be asking for a feature too specific to that library and for which aForge wasn't designed if so I would appreciate if a library closer in design to JGAP but in .Net were brought to my attention.


Solution

  • I believe that what you are looking for is the DoubleArrayChromosome class, which implements the IChromosome interface and is available in the AForge.Genetic library. API documentation for DoubleArrayChromosome is available here.