AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Gentic Algo GEPChromosome

The forum is to discuss topics from different artificial intelligence areas, like neural networks, genetic algorithms, machine learning, etc.

Re: Gentic Algo GEPChromosome

Postby andrew.kirillov » Tue Sep 02, 2014 8:08 am

First specify random number generator, which will make sure all chromosome values are within required range. Then, if some values get out of the range after crossover/mutation, just assign them to min/max value of the range.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: Gentic Algo GEPChromosome

Postby bilal_78699 » Tue Sep 02, 2014 9:25 am

Thank you very much for the help. You mean i should write my own Random number generator or Chromosome(which resembles to double Array). Plus there are numerous random number generators available in aforge like exponential, gaussian and others, should i use them or write my own?

Thanks
Bilal
bilal_78699
 
Posts: 7
Joined: Mon Sep 01, 2014 5:47 am

Re: Gentic Algo GEPChromosome

Postby andrew.kirillov » Tue Sep 02, 2014 9:51 am

You can use existing random number generator. For example, if uniform generator works well for you, then use it. About handling chromosome values which get out of range - you can do it in your fitness function, which you may need to do anyway.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK



Previous

Return to Artificial Intelligence